modified spring security user update and delete sql by use primary ke…

…y  for support database set SQL_SAFE_UPDATES = 1 #1997

Codecov Report

Merging #2016 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #2016      +/-   ##
============================================
- Coverage     50.21%   50.19%   -0.02%
- Complexity     1979     1980       +1
============================================
  Files           400      400
  Lines         12349    12349
  Branches       1275     1275
============================================
- Hits           6201     6199       -2
- Misses         5691     5693       +2
  Partials        457      457

Impacted Files
Coverage Δ
Complexity Δ

...lo/portal/spi/configuration/AuthConfiguration.java
5.74% <0%> (ø)
1 <0> (ø)
:arrow_down:

...mework/apollo/portal/component/PortalSettings.java
65.07% <0%> (-4.77%)
5% <0%> (ø)

...ervice/service/ReleaseMessageServiceWithCache.java
87.2% <0%> (+1.16%)
25% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b9d2aa...10585dd. Read the comment docs.

Coverage decreased (-0.02%) to 53.899% when pulling 10585ddd81bfb0e85ffa61e32353e8eb509cb246 on rhaonan:apollo-rhn into 0b9d2aadb5da3d8ef0d33a6f57aed722d2871ef2 on ctripcorp:master.


SSCollectionView has memory issues when loading large amounts of data

Using your SSCatalog example I had the SSCollectionView load some larger images.  This makes the memory usage quite high.  When you then pop the viewController back to the root you would expect all of that memory to be freed up, but it doesn't seem to be.
Added in SSCollectionViewDemoViewController.m in itemForIndexPath:
NSArray *items = [NSArray arrayWithObjects:
                      @"http://www.puc.edu/__data/assets/image/0006/33279/_MG_2948.jpg",
                      @"http://www.puc.edu/__data/assets/image/0016/33280/_MG_2951.jpg",
                      @"http://www.puc.edu/__data/assets/image/0017/33281/_MG_2978.jpg",
                      @"http://www.puc.edu/__data/assets/image/0018/33282/_MG_2988.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/33283/_MG_2995.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/33284/_MG_3015.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/33285/_MG_3044.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/33286/_MG_3058.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/33287/_MG_3067.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/33288/_MG_3076.jpg",
                      @"http://www.puc.edu/__data/assets/image/0007/33289/_MG_3085.jpg",
                      @"http://www.puc.edu/__data/assets/image/0017/33290/_MG_3094.jpg",
                      @"http://www.puc.edu/__data/assets/image/0011/34859/_MG_3682.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/34860/_MG_3688.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/34861/_MG_3691.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/34862/_MG_3717.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/34863/_MG_3727.jpg",
                      @"http://www.puc.edu/__data/assets/image/0007/34864/_MG_3747.jpg",
                      @"http://www.puc.edu/__data/assets/image/0008/34865/_MG_3773.jpg",
                      @"http://www.puc.edu/__data/assets/image/0009/34866/_MG_3795.jpg",
                      @"http://www.puc.edu/__data/assets/image/0010/34867/_MG_3803.jpg",
                      @"http://www.puc.edu/__data/assets/image/0011/34868/_MG_3822.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/34869/_MG_3830.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/34870/_MG_3839.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/34871/_MG_3845.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/34872/_MG_3847.jpg",
                      @"http://www.puc.edu/__data/assets/image/0007/34873/_MG_3861.jpg",
                      @"http://www.puc.edu/__data/assets/image/0008/34874/_MG_3870.jpg",
                      @"http://www.puc.edu/__data/assets/image/0009/34875/_MG_3881.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/35335/IMG_0010.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/35336/IMG_0034.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/35337/IMG_0060.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/35338/IMG_0067.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/35339/IMG_8080.jpg",
                      @"http://www.puc.edu/__data/assets/image/0015/35340/IMG_8082.jpg",
                      @"http://www.puc.edu/__data/assets/image/0016/35341/IMG_8083.jpg",
                      @"http://www.puc.edu/__data/assets/image/0017/35342/IMG_8129.jpg",
                      @"http://www.puc.edu/__data/assets/image/0018/35343/IMG_8171.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/35344/IMG_8283.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/35345/IMG_8329.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/35346/IMG_8332.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/35347/IMG_8398.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/35348/IMG_8405.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/35349/IMG_8408.jpg",
                      @"http://www.puc.edu/__data/assets/image/0016/35350/IMG_8439.jpg",
                      @"http://www.puc.edu/__data/assets/image/0017/35351/IMG_8441.jpg",
                      @"http://www.puc.edu/__data/assets/image/0018/35352/IMG_8466.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/35353/IMG_8482.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/35354/IMG_8540.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/35355/IMG_8721.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/35356/IMG_8815.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/35357/IMG_8824.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/35358/IMG_9100.jpg",
                      @"http://www.puc.edu/__data/assets/image/0007/35359/IMG_9723.jpg",
                      @"http://www.puc.edu/__data/assets/image/0017/35360/IMG_9730.jpg",
                      @"http://www.puc.edu/__data/assets/image/0018/35361/IMG_9754.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/35362/IMG_9778.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/35363/IMG_9803.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/35364/IMG_9877.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/35366/DSC_0007.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/35367/DSC_0049.jpg",
                      @"http://www.puc.edu/__data/assets/image/0007/35368/DSC_0056.jpg",
                      @"http://www.puc.edu/__data/assets/image/0008/35369/DSC_0057.jpg",
                      @"http://www.puc.edu/__data/assets/image/0018/35370/DSC_0080.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/35371/DSC_0101.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/35372/DSC_0105.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/35373/DSC_0127.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/35374/DSC_0144.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/35375/DSC_0146.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/35376/DSC_0186.jpg",
                      @"http://www.puc.edu/__data/assets/image/0007/35377/Jeff_and_Parents.jpg",
                      @"http://www.puc.edu/__data/assets/image/0008/35378/Ryan_and_Family.jpg",
                      @"http://www.puc.edu/__data/assets/image/0009/35379/The-Ackerman-Family-1.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/35380/The-Dunn-Family-5.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/35381/The-Vo-Family.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/35382/The-Wood-Family.jpg",
                      @"http://www.puc.edu/__data/assets/image/0008/36188/_MG_6018.jpg",
                      @"http://www.puc.edu/__data/assets/image/0009/36189/_MG_6030.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/36190/_MG_6042.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/36191/_MG_6067.jpg",
                      @"http://www.puc.edu/__data/assets/image/0003/36192/_MG_6081.jpg",
                      @"http://www.puc.edu/__data/assets/image/0004/36193/_MG_6083.jpg",
                      @"http://www.puc.edu/__data/assets/image/0005/36194/_MG_6086.jpg",
                      @"http://www.puc.edu/__data/assets/image/0006/36195/_MG_6098.jpg",
                      @"http://www.puc.edu/__data/assets/image/0007/36196/_MG_6101.jpg",
                      @"http://www.puc.edu/__data/assets/image/0008/36197/_MG_6142.jpg",
                      @"http://www.puc.edu/__data/assets/image/0009/36198/_MG_6146.jpg",
                      @"http://www.puc.edu/__data/assets/image/0010/36199/_MG_6155.jpg",
                      @"http://www.puc.edu/__data/assets/image/0011/36200/_MG_6158.jpg",
                      @"http://www.puc.edu/__data/assets/image/0012/36201/_MG_6160.jpg",
                      @"http://www.puc.edu/__data/assets/image/0013/36202/_MG_6164.jpg",
                      @"http://www.puc.edu/__data/assets/image/0014/36203/_MG_6168.jpg",
                      @"http://www.puc.edu/__data/assets/image/0015/36204/_MG_6170.jpg",
                      @"http://www.puc.edu/__data/assets/image/0016/36205/_MG_6171.jpg",
                      @"http://www.puc.edu/__data/assets/image/0017/36206/_MG_6172.jpg",
                      @"http://www.puc.edu/__data/assets/image/0018/36207/_MG_6173.jpg",
                      @"http://www.puc.edu/__data/assets/image/0019/36208/_MG_6175.jpg",
                      @"http://www.puc.edu/__data/assets/image/0020/36209/_MG_6182.jpg",
                      @"http://www.puc.edu/__data/assets/image/0012/36210/_MG_6195.jpg",
                      @"http://www.puc.edu/__data/assets/image/0013/36211/_MG_6199.jpg",
                      nil];

item.imageURL = [NSURL URLWithString:[items objectAtIndex:indexPath.row]];

If you noticed, the graph doesn't go down when you enter or leave any view controller. I'm not really sure why that is... I'll investigate further.

Yeah.  Any luck on figure out what is going on?  I was hoping to release our app soon which uses SSCollectionView in this way, but i don't want to have memory issues.


Updated through to 2.x.x

The reason is that I would like this module to not depend on readable-stream 0.x.
I propose to release this as 2.1.0.

:+1:


defaultRichTextElements methods only allow string | string[] return type

Hi! Playing around with this package as I've used react-intl quite a bit and would love to use it in Solid.
I'm trying to configure defaultRichTextElements to format translated messages, but I'm getting a type error that the result must return a string | string[] which I feel like would kind of defeat the purpose.

Digging into the types it looks like ResolvedIntlConfig comes with a generic that defaults to string which is used in FormatXMLElementFn for defaultRichTextElements.

I see you export ResolvedIntlConfig without the generic type specified.
https://github.com/the-cookbook/solid-intl/blob/a675ae53ab203bb20e88d6c0bbb834a900323f1e/src/types.ts#L3-L4
Should this instead be?:
type IntlConfig = Partial<Omit<ResolvedIntlConfig<JSXElement>, "locale" | "messages">> &
  Required<Pick<ResolvedIntlConfig<JSXElement>, "locale" | "messages">>;

I think this also aligns with the react-intl implementation:
https://github.com/formatjs/formatjs/blob/649a386f4437cdb0edb0f7d894d56c7a629e9f37/packages/react-intl/src/types.ts#L19-L23
Thoughts on this? If you agree I can put together a PR. Thanks!

It looks like even bypassing the type still doesn't transform the message. I think it's because we're missing defaultRichTextElements in the process-config function:
https://github.com/the-cookbook/solid-intl/blob/a675ae53ab203bb20e88d6c0bbb834a900323f1e/src/process-config.ts#L6-L18

Hey @lvl-mattwells thanks for the report! It was indeed a fault mine this "short interface" with missing type. I will be reviewing your PR by tomorrow and once merged, deploy a new npm package with the fix


⚠ Processors has degraded performance

In 069947e, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 80 ms

Resolved: Processors performance has improved in 52f7f21.


Migrate to AndroidX

We are using this library since long time and it works great. We have recently Migrating to AndroidX, although by adding android.enableJetifier=true and android.useAndroidX=true in gradle.properties converts all support package of dependency at build time. The stable release of 28.0.0 will be the final feature release packaged as android.support. All subsequent feature releases will only be made available as androidx-packaged artifacts.  For more detail please check. I suggest you to update the library with AndroidX to avoid confusion.

@davidvavra Can I work on this?

@MonikaJethani I don't work in Avast anymore and don't maintain this repo

@davidvavra Can you please point out who maintains this repo?

@MonikaJethani Not sure, but @OrfeusCZ should know

Hi @MonikaJethani any help is appreciated. Please prepare pull request and I will merge it.

@sakulisko I have completed the migration. Please review this PR https://github.com/avast/android-styled-dialogs/pull/142 , let me know if any modifications are required.


overly agressive regex for service bus namespace provisioning

The validation in the provisioning script prevents a namespace with a - in the name. However, this is acceptable. For example, abc-abc.
We should correct the validation.

I was on an old branch. :stuck_out_tongue_closed_eyes:


Mac: Ensure that launchd limit_load_to_session_type is properly handled

The key LimitLoadToSessionType is actually an array and not a string. This causes chef to fail or create an incorrect launchd.

@erikng please add a DCO signoff to your commit.
@chef/client-os-x please take a look.

Added sign off.

@jaymzh this look okay?

This is actually a string or an array of strings. This is still a bug ;)
As per the man:
    LimitLoadToSessionType <string or array or strings>
     This configuration file only applies to sessions of the type(s) specified. This key only applies to jobs which are agents. There are no distinct sessions in the privileged system context.

Also, the Chef web documentation for launchd is now wrong, because it still states that it takes a string, when the code now requires an array. It should take both.


Add quit extension

Description
Lists all running applications either to quit any of it or all.
Does not force quit. For Finder, instead of quiting, it closes all opened windows.
Screencast
https://github.com/raycast/extensions/assets/134923523/07e27abc-3cf4-4454-9898-cca0309d8214
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Maybe it would be better to enhance the current extension instead of making one almost identical extension with the same purpose so as not to confuse the end user. Did you check https://www.raycast.com/mackopes/quit-applications


Add 'border-radius: 0' to LeftNav menu style.

This improve a nice bit of performence when menu scroll.
I paste two screenshots from chrome dev Timeline tool.

menu border-radius: 2px. Paint performence when scroll the menu.

menu border-radius: 0. Pain performence when scroll the menu.

As you see. When border-radius: 0 applied, the repaint area is very small and simple. This achives almost 8 times performence improvement.

@maoziliang Good find! The material design spec does not specify a border radius (at least none that I could find for navigation/menus).

Thanks @maoziliang :+1:


Chore: update translations

we'll keep this open until arabic is finished. As this is for documentation only anyway. The changes are already done via API on production.


Skip installation of puppeteer chromium

Add these to the Dockerfile
# puppeteer environment variables
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
ENV PUPPETEER_SKIP_DOWNLOAD=true

not necessary anymore since its skipped anyway now


problems on deit_base_patch16_224_KAN

When I use torch.load('./KAN_768/best_checkpoint.pth', map_location=torch.device('cpu')), an error occurs.

Maybe your checkpoint file is corrupted, please try to download it again


Multiple Declaration Error after updating to angular 6

This is the error I get.
ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
node_modules/ngx-braintree/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

@CodeAnomalies support for Angular version 6 will be available in the the next version of ngx-braintree. By the mid of next week the next version will be released with several other bug fixes. This is being tracked via #68

Support for Angular 6 applications now available with several other bug fixes. Please install ngx-braintree version 6.0.0


DSA Problems

As a beginner, I want to make my first contribution
Can I add some beginner-level DSA questions using C++??

Hi @abhpd , Kindly please assign me this issue.


[FEATURE REQUEST] Add a way to execute batches that return ResultSets

Is your feature request related to a problem? If so, please give a short summary of the problem and how the feature would resolve it
It is currently extremely difficult to do batch INSERTs when you need to get back the auto-increment row IDs (#245 has quite a few people complaining about this) or any other generated column. As far as I can tell, there are currently only two solutions:

Do the inserts one at a time, thus losing all the performance benefits of batching.
Create a temp table and use OUTPUT INTO to add rows to that table during the batch insert, then read and drop the temp table at the end.

It is currently not possible to use OUTPUT without INTO when using batched statements, because mssql-jdbc follows the JDBC spec, which specifically bans batched statements from returning ResultSets.
Describe the preferred solution
Create a way to execute batches that are allowed to return ResultSets. This could maybe be done by adding a config property that allows the driver to violate the JDBC spec during executeBatch(), or by adding a new executeBatchWithResults() method to ISQLServerStatement. That way, it's possible to use OUTPUT without INTO when using batched statements, which makes batch inserts a lot easier and provides a straightfoward (though vendor specific) workaround for #245.

I'll need to discuss this with the team as issue 245 was point of very hot contention.

To be clear, I brought up 245 as an example of a situation where this would help, but this would be useful in any situation where the user wants to do a batched INSERT/UPDATE/DELETE with an OUTPUT clause.
I'm not asking the driver to do any magic here. Doing a non-batched INSERT/UPDATE/DELETE with an OUTPUT clause is already possible: just use executeQuery() to get back the ResultSet. What I'm asking for is an equivalent to that for batched queries, so a temp table is not needed.

hi @rdicroce
Thanks we understand the frustration but as mentioned in #245 this is a server limitation. Your suggestion is a possible enhancement which I have marked as such and will be triaged along with other bugs/features when we do planning for our next semester.

I'm regretting that I even mentioned 245. Please keep in mind that this is not really about 245. This is about the fact that OUTPUT clauses are incompatible with batch execution. If this is implemented, it happens to provide a solution to 245. But if 245 were implemented, that would NOT solve all cases that this request would solve.


Add support for glob pattern in file loader

Adding simple support for glob pattern.
Related to issue: #105

@cfnelson ok doki. Will do it tonight :D

@cfnelson done :D

@thebergamo Thanks for that! @RodMachado Will be taking a look at this PR tomorrow, if all goes well we will have it merged in before the weekend. 👍


Add support for Reddit Redesign banner images

Fixes # 1027
Feature Summary and Justification
This change provides upload and delete functions for the 3 new banner image types (banner image, additional banner image, and hover image) from the Reddit redesign.

#1027 didn't work for me but the commit works great! Here is my test code. for those who want to try it out.


Tighten Pub/Sub topic names

We see many more acceptance test failures for Pub/Sub tests.
We think this is due to how Travis-ci starts the tests.
Add a little more randomness to the topic names to avoid
accidental conflicts between the different versions of ruby
being tested concurrently.

LGTM


Memory error occurs when  preparing training

My memory is 32G and swap memory is also 32G. Train data is 16G.
After converting it(pandas df format) to lightgbm dataset,  I deleted the pandas df to release RAM.
There is much RAM left and I find that in the begin of training, it costs too much memory although in the course of training, the RAM usage % is very low.
So why in the beginning of training, there alwasys comes memory error.
How many RAM should be prepared for the training.
MemoryError                               Traceback (most recent call last)
<ipython-input-15-8ed11fc31ab5> in <module>()
     17 print 'Start training...'
     18 # train
---> 19 gbm = lgb.train(params,lgb_train,num_boost_round=500)

/root/anaconda2/lib/python2.7/site-packages/lightgbm/engine.pyc in train(params, train_set, num_boost_round, valid_sets, valid_names, fobj, feval, init_model, feature_name, categorical_feature, early_stopping_rounds, evals_result, verbose_eval, learning_rates, keep_training_booster, callbacks)
    166     """construct booster"""
    167     try:
--> 168         booster = Booster(params=params, train_set=train_set)
    169         if is_valid_contain_train:
    170             booster.set_train_data_name(train_data_name)

/root/anaconda2/lib/python2.7/site-packages/lightgbm/basic.pyc in __init__(self, params, train_set, model_file, silent)
   1248             """construct booster object"""
   1249             _safe_call(_LIB.LGBM_BoosterCreate(
-> 1250                 train_set.construct().handle,
   1251                 c_str(params_str),
   1252                 ctypes.byref(self.handle)))

/root/anaconda2/lib/python2.7/site-packages/lightgbm/basic.pyc in construct(self)
    805                                 weight=self.weight, group=self.group, predictor=self._predictor,
    806                                 silent=self.silent, feature_name=self.feature_name,
--> 807                                 categorical_feature=self.categorical_feature, params=self.params)
    808             if self.free_raw_data:
    809                 self.data = None

/root/anaconda2/lib/python2.7/site-packages/lightgbm/basic.pyc in _lazy_init(self, data, label, max_bin, reference, weight, group, predictor, silent, feature_name, categorical_feature, params)
    615             self.handle = None
    616             return
--> 617         data, feature_name, categorical_feature, self.pandas_categorical = _data_from_pandas(data, feature_name, categorical_feature, self.pandas_categorical)
    618         label = _label_from_pandas(label)
    619         self.data_has_header = False

/root/anaconda2/lib/python2.7/site-packages/lightgbm/basic.pyc in _data_from_pandas(data, feature_name, categorical_feature, pandas_categorical)
    255             msg = """DataFrame.dtypes for data must be int, float or bool. Did not expect the data types in fields """
    256             raise ValueError(msg + ', '.join(bad_fields))
--> 257         data = data.values.astype('float')
    258     else:
    259         if feature_name == 'auto':

MemoryError:

The issue seems from Pandas (caused by this line data = data.values.astype('float')) . I think this will consume many memories.
From this log, I think you didn't really delete the pandas Data frame.
The lgb.Dataset will store the DataFrame, and construct from it when calling lgb.train .
You can try to convert the pandas to numpy matrix first, then use it to construct lgb.Dataset .

lgb_train = lgb.Dataset(order_train[features], order_train[['reordered']].values.astype('int').flatten(),\
            categorical_feature = ['product_id','aisle_id','department_id','f40','f41','f41'])

Thanks. order_train is my pandas dataframe. After I create lgb_train, I excute: delete order_train in ipython. You mean that the delete execution is not in effect (actually the RAM has not been released at all) and the dataframe is still there.  So it leads to memory error.
By the way, when I use numpy array instead, what change should I make to categorical_feature parameters. Should it be like categorical_feature = ['c40', 'c60', c'98'] where specify the order of category columns. If train array's shape is (4833291, 243), c40 means that array[:,40] is the catrgory column. Thanks a lot and I am looking forward your help.

I think you can get feature_name from pandas.DataFrame. And you set feature_name and categorical_feature at the same time when define a lgb.Dataset. In that case, you can use the feature_name in categorical_feature (like categorical_feature = ['product_id','aisle_id','department_id','f40','f41','f41']).

Fine.  This should solve the memory error problem.
order_train_array = order_train[features].values
labels = order_train['reordered'].values.astype('int').flatten()
del order_train  # delete dataframe to release memory
lgb_train = lgb.Dataset(order_train_array, labels, feature_name = features, categorical_feature =                                ['product_id','aisle_id','department_id','f40','f41','f41'])

Guys help me with this memory error, below is the code and pic shows the error
cat_cols = ["channelGrouping", "device.browser",
"device.deviceCategory", "device.operatingSystem",
"geoNetwork.city", "geoNetwork.continent",
"geoNetwork.country", "geoNetwork.metro",
"geoNetwork.networkDomain", "geoNetwork.region",
"geoNetwork.subContinent", "trafficSource.adContent",
"trafficSource.adwordsClickInfo.adNetworkType",
"trafficSource.adwordsClickInfo.gclId",
"trafficSource.adwordsClickInfo.page",
"trafficSource.adwordsClickInfo.slot", "trafficSource.campaign",
"trafficSource.keyword", "trafficSource.medium",
"trafficSource.referralPath", "trafficSource.source",
'trafficSource.adwordsClickInfo.isVideoAd', 'trafficSource.isTrueD
for col in cat_cols:
print(col)
lbl = LabelEncoder()
lbl.fit(list(train_df[col].values.astype('str')) + list(test_df[col].values.astype('str')))
train_df[col] = lbl.transform(list(train_df[col].values.astype('str')))
test_df[col] = lbl.transform(list(test_df[col].values.astype('str')))
_


chore(deps): update cypress to 13.6.4

This PR updates the examples to Cypress 13.6.4 released Jan 30, 2024.
Yarn Modern examples are automatically updated to<EMAIL_ADDRESS>(current yarn@latest), also released on Jan 30, 2024.

Note that updating to<EMAIL_ADDRESS>has changed the corresponding yarn.lock files, for the two Yarn Modern examples, to prepend the cacheKey explicitly to each package's checksum. This should not cause any issues, and all tests passed before this PR was merged.


whatsapp share option

Can you add share via whatsapp option?

Of course. I'll do it later.

I have added the share via WhatsApp option,
It has some issues though,
Please check the PR.

Now you can add arbitrary social links. See https://g1en.site/hugo-theme-dream/social-links.


Pod version issue

Hey I want to 0.3 version.
pod 'QMServices', '~> 0.3'
I wrote this but it's downloading 0.3.2. That is giving error in my code. Please help me how can I get this version.

Hi,
Which error are you getting? Please post them here so we can help to migrate your code for the newest methods that were updated. Some old deprecated methods were deleted in the latest QMServices version.

@dhavaldev To download 0.3 version:
pod 'QMServices', '0.3'


nucmer cannot write output

Hi all,
I am trying to align a set of de novo assembled contigs against a reference genome using nucmer. However, the program complains that it couldn't use certain files (see below).
If I understand correctly, these are files that nucmer produces? However, I double-checked that I have write permissions to the current directory.
Thanks for any suggestion!
REF=E_coli.fasta
QUERY=contigs.fasta

$> ~/MUMmer3.23/nucmer ${REF} ${QUERY}

ERROR: The following critical files could not be used
out.delta
out.mgaps
out.ntref
Check your paths and file permissions and try again

$> ls -lah
total 9.0M
drwxr-xr-x 2 nobody nogroup 4.0K Apr 25 11:05 .
drwxrwxrwx 5 nobody nogroup 4.0K Apr 25 10:49 ..
-rwxr-xr-x 1 nobody nogroup 4.4M Apr 25 11:05 contigs.fasta
-rwxr-xr-x 1 nobody nogroup 4.6M Apr 25 11:05 E_coli.fasta
-rw-r--r-- 1 nobody nogroup  256 Apr 25 11:05 nucmer.error

$> less nucmer.error
20170425|105351| 16015| ERROR: The following critical files could not be used
20170425|105351| 16015| out.delta
20170425|105351| 16015| out.mgaps
20170425|105351| 16015| out.ntref
20170425|105351| 16015| Check your paths and file permissions and try again

$> ~/MUMmer3.23/nucmer --version
nucmer
NUCmer (NUCleotide MUMmer) version 3.1

Hi,
I am not the maintainer of version 3.23 of MUMmer, which you seem to be using. Things have changed significantly between 3.23 and 4.0.
That said, it looks that the directory you are working in is owned by nobody:nogroup. I doubt that is you! You don't have permission to write to that directory and nucmer fails.


Fatal Error on Indicator Import: KeyError: 'PERSONA_NAME'

python3 misp_import.py -f -nb -d -i
[2023-04-05 19:21:01,715] INFO     misp_tools    MISP Import for CrowdStrike Threat Intelligence v0.6.8
[2023-04-05 19:21:01,715] INFO     config  CHECK CONFIG
[2023-04-05 19:21:01,716] DEBUG    config  client_id                                   value redacted, check config file
[2023-04-05 19:21:01,716] DEBUG    config  client_secret                               value redacted, check config file
[2023-04-05 19:21:01,716] DEBUG    config  crowdstrike_url                             US1
[2023-04-05 19:21:01,716] DEBUG    config  api_request_max                             5000
[2023-04-05 19:21:01,716] DEBUG    config  api_enable_ssl                              True
[2023-04-05 19:21:01,716] DEBUG    config  reports_timestamp_filename                  lastReportsUpdate.dat
[2023-04-05 19:21:01,717] DEBUG    config  indicators_timestamp_filename               lastIndicatorsUpdate.dat
[2023-04-05 19:21:01,717] DEBUG    config  actors_timestamp_filename                   lastActorsUpdate.dat
[2023-04-05 19:21:01,717] DEBUG    config  init_reports_days_before                    365
[2023-04-05 19:21:01,717] DEBUG    config  init_indicators_minutes_before              20220
[2023-04-05 19:21:01,717] DEBUG    config  init_actors_days_before                     730
[2023-04-05 19:21:01,717] DEBUG    config  reports_unique_tag                          CrowdStrike: REPORT
[2023-04-05 19:21:01,717] DEBUG    config  indicators_unique_tag                       CrowdStrike: INDICATOR
[2023-04-05 19:21:01,717] DEBUG    config  actors_unique_tag                           CrowdStrike: ACTOR
[2023-04-05 19:21:01,717] DEBUG    config  reports_tags                                att:source="Crowdstrike.Report"
[2023-04-05 19:21:01,717] DEBUG    config  indicators_tags                             att:source="Crowdstrike.Indicators"
[2023-04-05 19:21:01,717] DEBUG    config  actors_tags                                 att:source="Crowdstrike.Actors"
[2023-04-05 19:21:01,717] DEBUG    config  unknown_mapping                             CrowdStrike:indicator:galaxy: UNATTRIBUTED
[2023-04-05 19:21:01,717] DEBUG    config  unattributed_title                          CrowdStrike Unattributed indicators:
[2023-04-05 19:21:01,717] DEBUG    config  indicator_type_title                        Indicator Type:
[2023-04-05 19:21:01,717] DEBUG    config  malware_family_title                        Malware Family:
[2023-04-05 19:21:01,717] DEBUG    config  log_duplicates_as_sightings                 True
[2023-04-05 19:21:01,717] DEBUG    config  misp_url                                    https://3samisp
[2023-04-05 19:21:01,717] DEBUG    config  misp_auth_key                               value redacted, check config file
[2023-04-05 19:21:01,717] DEBUG    config  crowdstrike_org_uuid                        ca4f4b5d-db04-4a5e-a6de-e60636dc01be
[2023-04-05 19:21:01,717] DEBUG    config  misp_enable_ssl                             False
[2023-04-05 19:21:01,717] WARNING  config  misp_enable_ssl                             SSL is disabled for MISP API requests
[2023-04-05 19:21:01,717] DEBUG    config  ind_attribute_batch_size                    2500
[2023-04-05 19:21:01,717] DEBUG    config  event_save_memory_refresh_interval          180
[2023-04-05 19:21:01,717] DEBUG    config  max_threads                                 16
[2023-04-05 19:21:01,717] DEBUG    config  miss_track_file                             no_galaxy_mapping.log
[2023-04-05 19:21:01,717] DEBUG    config  galaxies_map_file                           galaxy.ini
[2023-04-05 19:21:01,718] DEBUG    config  tag_unknown_galaxy_maps                     True
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_kill-chain                        True
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_information-security-data-source  True
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_type                              True
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_iep                               False
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_iep2                              True
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_iep2_version                      False
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_tlp                               True
[2023-04-05 19:21:01,718] DEBUG    config  taxonomic_workflow                          True
[2023-04-05 19:21:02,461] INFO     config  No configuration errors found (1 warning)
[2023-04-05 19:21:02,461] INFO     config
[2023-04-05 19:21:02,461] INFO     config  ____ _  _ ____ ____ _  _ ____    ___  ____ ____ ____ ____ ___
[2023-04-05 19:21:02,461] INFO     config  |    |__| |___ |    |_/  [__     |__] |__| [__  [__  |___ |  \
[2023-04-05 19:21:02,461] INFO     config  |___ |  | |___ |___ | \_ ___]    |    |  | ___] ___] |___ |__/
[2023-04-05 19:21:02,461] INFO     config
[2023-04-05 19:21:05,241] INFO     processor/main       BEGIN INDICATORS IMPORT
[2023-04-05 19:21:05,242] INFO     processor/main       Retrieving lookup data for import of CrowdStrike indicators into MISP.
[2023-04-05 19:21:05,619] INFO     processor/main       Adding 24 CrowdStrike indicator type events to MISP.
[2023-04-05 19:21:05,639] INFO     processor/main       Retrieved 0 CrowdStrike indicator malware family events from MISP.
[2023-04-05 19:21:05,728] INFO     processor/thread_8   Retrieved 309 bitcoin_address indicators from MISP.
[2023-04-05 19:21:05,736] INFO     processor/thread_12  Retrieved 495 registry indicators from MISP.
[2023-04-05 19:21:05,748] INFO     processor/thread_9   Retrieved 15 coin_address indicators from MISP.
[2023-04-05 19:21:06,002] INFO     processor/thread_3   Retrieved 1,770 hash_imphash indicators from MISP.
[2023-04-05 19:21:06,006] INFO     processor/thread_13  Retrieved 50 device_name indicators from MISP.
[2023-04-05 19:21:07,337] INFO     processor/thread_7   Retrieved 3,922 mutex_name indicators from MISP.
[2023-04-05 19:21:07,917] INFO     processor/thread_12  Retrieved 29 service_name indicators from MISP.
[2023-04-05 19:21:08,129] INFO     processor/thread_3   Retrieved 443 port indicators from MISP.
[2023-04-05 19:21:29,770] INFO     processor/thread_15  Retrieved 250 campaign_id indicators from MISP.
[2023-04-05 19:21:33,907] INFO     processor/thread_9   Retrieved 90,336 user_agent indicators from MISP.
[2023-04-05 19:21:40,469] INFO     processor/thread_4   Retrieved 201,108 file_name indicators from MISP.
[2023-04-05 19:21:45,887] INFO     processor/thread_5   Retrieved 201,108 file_path indicators from MISP.
[2023-04-05 19:21:59,117] INFO     processor/thread_2   Retrieved 412,705 hash_sha1 indicators from MISP.
[2023-04-05 19:22:08,775] INFO     processor/thread_10  Retrieved 65,980 email_address indicators from MISP.
[2023-04-05 19:23:52,617] INFO     processor/thread_14  Retrieved 1,611,349 domain indicators from MISP.
[2023-04-05 19:24:34,694] INFO     processor/thread_11  Retrieved 797,295 email_subject indicators from MISP.
[2023-04-05 19:28:23,455] INFO     processor/thread_1   Retrieved 2,807,413 hash_sha256 indicators from MISP.
[2023-04-05 19:30:26,405] INFO     processor/thread_0   Retrieved 3,351,444 hash_md5 indicators from MISP.
[2023-04-05 19:35:09,500] INFO     processor/thread_8   Retrieved 4,769,797 ip_address indicators from MISP.
[2023-04-05 20:02:58,184] INFO     processor/thread_6   Retrieved 16,365,828 url indicators from MISP.
[2023-04-05 20:03:23,340] INFO     processor/main       Found 0 pre-existing indicators within CrowdStrike reports.
[2023-04-05 20:03:51,666] INFO     processor/main       Starting import of CrowdStrike indicators into MISP.
[2023-04-05 20:05:09,132] INFO     processor/main       Retrieved 5,000 of 2,130,594 remaining indicators.
[2023-04-05 20:05:09,132] DEBUG    processor/main       Configuration states we should process batches of 2,500 indicators.
[2023-04-05 20:05:09,133] INFO     processor/main       Processing batch of 2,500 indicators.

<<>>
[2023-04-06 04:10:21,093] DEBUG    processor/thread_11  Tagged threat TARGETED
[2023-04-06 04:10:21,101] DEBUG    processor/thread_11  Added 99bfe2258817f3a9098cf69e90b2ade1f86bb0c6711ee40dcc2a5b9abc2f24ce indicators to event Malware Family: EggShellMilt
[2023-04-06 04:10:21,101] DEBUG    processor/thread_11  Creating attribute for indicator 99bfe2258817f3a9098cf69e90b2ade1f86bb0c6711ee40dcc2a5b9abc2f24ce
[2023-04-06 04:10:21,292] DEBUG    processor/thread_12  Added 698614eb8f717cb618055f8689360452ff9a3e21210b7327a3449b00ef527804 indicators to event Indicator Type: SHA256 hashes
[2023-04-06 04:10:21,292] DEBUG    processor/thread_12  Tagged malicious-confidence HIGH
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged malware CRAT
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck COLLECTION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck COLLECTION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck COLLECTION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck COMMANDANDCONTROL
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck COMMANDANDCONTROL
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck DEFENSEEVASION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck DEFENSEEVASION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck DEFENSEEVASION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck DISCOVERY
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck DISCOVERY
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck EXECUTION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck EXECUTION
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged mitre-attck INITIALACCESS
[2023-04-06 04:10:21,293] DEBUG    processor/thread_12  Tagged threat TARGETED
[2023-04-06 04:10:21,296] DEBUG    processor/thread_12  Added 698614eb8f717cb618055f8689360452ff9a3e21210b7327a3449b00ef527804 indicators to event Malware Family: CRAT
[2023-04-06 04:10:21,296] DEBUG    processor/thread_12  Creating attribute for indicator 698614eb8f717cb618055f8689360452ff9a3e21210b7327a3449b00ef527804
Traceback (most recent call last):
  File "misp_import.py", line 377, in <module>
    main()
  File "misp_import.py", line 356, in main
    importer.import_from_crowdstrike(int(settings["CrowdStrike"]["init_reports_days_before"]),
  File "/home/rx118r/src/crowdstrike/MISP-tools-main/cs_misp_import/importer.py", line 314, in import_from_crowdstrike
    self.indicators_importer.process_indicators(indicators_minutes_before)
  File "/home/rx118r/src/crowdstrike/MISP-tools-main/cs_misp_import/indicators.py", line 195, in process_indicators
    self.push_indicators(indicators_page)
  File "/home/rx118r/src/crowdstrike/MISP-tools-main/cs_misp_import/indicators.py", line 383, in push_indicators
    total, f_successes, f_failures, m_successes, m_failures = self.process_indicator_batch(batch)
  File "/home/rx118r/src/crowdstrike/MISP-tools-main/cs_misp_import/indicators.py", line 325, in process_indicator_batch
    if fut.result().get("feed"):
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/concurrent/futures/_base.py", line 437, in result
    return self.__get_result()
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/rx118r/src/crowdstrike/MISP-tools-main/cs_misp_import/indicators.py", line 225, in indicator_thread
    feed_return, fam_return = self.add_indicator_event(ind, batch_lock) # All sharing the same lock
  File "/home/rx118r/src/crowdstrike/MISP-tools-main/cs_misp_import/indicators.py", line 528, in add_indicator_event
    itype = IndicatorType[indicator.get('type', None).upper()].value
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/enum.py", line 387, in __getitem__
    return cls._member_map_[name]
KeyError: 'PERSONA_NAME'
(.ohm) [rx118r@md2nj02di:~/src/crowdstrike/MISP-tools-main]$

This looks to be related to a failed lookup in the IndicatorType enum.  I've not seen the PERSONA_NAME indicator type before.  Investigating where this originated from.

Lazy fix:
Added this line to cs_misp_import/indicator_type.py
PERSONA_NAME = "Persona / alias"

Lazy fix:
Added this line to cs_misp_import/indicator_type.py
PERSONA_NAME = "Persona / alias"

Adding this new type to the enum is the right solution. Adding this to the next revision.


Update the branch policies

After reviewing the branch policies for the repository, it seems that the main and release branches can benefit with more strict push and PR review policies. I would like to propose updating those as follows:
Note: @SteveLasker changed to checkboxes to indicate which are completed
Use the following rules for main branche:

[x] Require PR before merging
[x] Require 2 approvals
[x] Dismiss stale PR approvals when new commits are pushed
[x] Require review from Code Owners
[x] Require status checks to pass before merging
[ ] Require conversation resolution before merging
[x] Require signed commits
[x] Do not allow bypass the above settings
Please add your comments and proposals for additional changes to this issue.

LGTM but IANAM

LGTM but IANAM

I noticed most of these were complete, with a few (like the number of reviews) were incomplete.
The above checklist now reflects the current status.

LGTM but IANAM

LGTM but IANAM

LGTM but IANAM

LGTM but IANAM

@toddysm  it seems the policies are not completely applied to this repo. Could you take a look since I don't have the permission to do it.

The main branch in this repo had no policies enabled at all. I enabled the above and closing the issue


Custom names when uploading multiple files

I ran into a situation where I had no control over the API I'm using and I didn't want to send files one by one while I can use FormData to send several of them at once. So I needed to send them with the names that the API forces and not with names "file0", "file1" etc.
It would nice to have this customization.

Is fileFormDataName a possible fix anymore?
We recently upgraded from version 3 to version 10 (I know...).
I'm trying to do this
Upload
.upload({
headers: headers,
url: url,
file: file,
fileFormDataName: 'document'
})
But version 10 doesn't respect fileFormDataName.
Please help!

Replace with {url:..., data: {document: file}}

Thanks Danial!
That worked!


timeout parameter doesn't seem to have any effect

I'm not sure if I'm misunderstanding how to use the timeout parameter  (ref) or what its purpose is, but I tried the following snippet:
from anthropic import Anthropic

client = Anthropic(timeout=0.1)
client.messages.create(model='claude-3-5-sonnet-20240620', max_tokens=1024, messages=[{'role': 'user', 'content': 'Write a 20 paragraph essay'}])

... and the request seems to take as much time as it wants, without a timeout error being thrown.
SDK version: 0.31.2

Hey @ikbenale, thanks for the bug report, this is happening because we have a custom default timeout for the messages.create() endpoint which is overriding the timeout set at the client-level.
While we work on fixing this you can ensure the timeout is applied correctly by passing it to the method call directly, e.g.
client.messages.create(
  model='claude-3-5-sonnet-20240620',
  max_tokens=1024,
  messages=[{'role': 'user', 'content': 'Write a 20 paragraph essay'}],
  timeout=0.1
)

It's also worth noting that this timeout is for a single request & by default we retry 2 times,  if you do not want this behaviour you can instantiate the client with max_retries=0.

@ikbenale this was fixed in v0.32.0


Improve AttrPair alias. Make jsdom RawFrag extend Frag

This PR addresses 2 issues with ScalaJS api.
They are very small so I didn't separate them... Will do if needed.
AttrPair alias too restrictive
In Text api, AttrValue can only be String? as far as I understood.
But in JsDom api it can be almost any type?
Anyways, currently you can't abstract over AttrPairs in JsDom api.
Neither of these compiles:
import scalatags.JsDom.all._

val a1: AttrPair = required
val a2: AttrPair = tpe := "checkbox"
Seq[AttrPair](required, tpe := "checkbox")

See https://scalafiddle.io/sf/f8vAr2s/1
RawFrag isn't a Frag
This doesn't compile:
def component(frg: Frag) =
  div(frg)

component(
  raw("")
)

Currently it extends Modifier and not Frag.

@lihaoyi ? 😄


Set up similar to original UNet

Hello,
this is more for my understanding of the model, but I wondered if there is a way how I could implement the original UNet. Am I correct if I say that by setting BACKBONE = 'vgg16', I will get the same structure that was used for the original UNet, or not really?

Not quite; the (original paper)[https://arxiv.org/abs/1505.04597] uses a backbone similar to the VGG architecture (i.e. the same style), but it's not the exactly the same. This repo gives you the ability to use many different backbones either with or without pre-trained weights. If you wanted to get as close to the original U-NET as described in the paper, use VGG with no pre-trained weights.
Another possibility is building something from scratch: see this keras tutorial

Thank you for the answer. I thought so, but I wasn't sure :)

There is also (this)[https://github.com/karolzak/keras-unet] repo, which does create the U-NET as described in the original paper, though I've found it doesn't achieve the same results as a model using this repo.


Read-only replica sharing

currently doc share read gives an error, because it's not implemented. We should, you know, implement that.

From @Frando:
I think it shouldn't be too hard, but will likely involve some api shuffling..
This would be my plan:

rename Namespace to NamespaceSecret, it is confusing IMO to have the secret key be the namespace.
make Replica::namespace an enum { Writable(Namespace), ReadOnly(NamespaceId) }, or add the namespace_id to the replica and make the namespace an Option
return errors from mutating operations like doc insert etc if it is ReadOnly
adapt the store and actor APIs to be able to manage both readonly and writable replicas


WIP: kata-ctl: Add cpu check

Add architecture-specific code for x86_64 and generic calls handling
checks for CPU flags and attributes.
Signed-off-by: Chelsea Mafrica<EMAIL_ADDRESS>

@jodh-intel Could you please re-review? There are a couple of "to do" items as well as expanding the unit tests, but I think it might be better to move the project along and add them in separate PRs.


force update

I used g.Update to append lines to a text box that scrolls - like a tail -f.
Periodically i remove lines from buffer so the size doesnt grow forever, however the fact that g.Update() creates a go routine leaks lots of memory over time.  After a few 10k lines you end up with 10k go routines worth of descriptors in memory that will never be freed.
Editing the code and changing update to:
func (g *Gui) Update(f func(*Gui) error) {
	g.userEvents <- userEvent{f: f}
}

improves things for me drastically without impacting anything noticable.  Can you perhaps tell me the reason why Update does this in a go routine? Might we add a SyncUpdate or similar that doesnt create a go routine?

I implemented something similar but left the original Update function alone (for backwards compatibility), and created an "Update2" function of that does the same code.
Below is code I have to trim the maximum lines in the buffer, with some other bug fixes.  I should make a PR for this.
diff --git a/view.go b/view.go
index 42082f8..0b81d66 100644
--- a/view.go
+++ b/view.go
@@ -71,6 +71,9 @@ type View struct {
        // If Mask is true, the View will display the mask instead of the real
        // content
        Mask rune
+
+       // Set the maximum number of lines to store
+       MaxLines int
 }

 type viewLine struct {
@@ -215,7 +218,7 @@ func (v *View) Write(p []byte) (n int, err error) {
                        }
                default:
                        cells := v.parseInput(ch)
-                       if cells == nil {
+                       if cells == nil || len(cells) <= 0 {
                                continue
                        }

@@ -227,6 +230,12 @@ func (v *View) Write(p []byte) (n int, err error) {
                        }
                }
        }
+
+       if v.MaxLines > 0 && len(v.lines) > v.MaxLines {
+               cut := len(v.lines) - v.MaxLines
+               v.lines = v.lines[cut:]
+       }
+
        return len(p), nil
 }

@@ -322,7 +331,7 @@ func (v *View) draw() error {
        }

        if v.Autoscroll && len(v.viewLines) > maxY {
-               v.oy = len(v.viewLines) - maxY
+               v.oy = len(v.viewLines) - maxY - 1
        }
        y := 0
        for i, vline := range v.viewLines {

I would be able to add a function called UpdateAsync(), this way we wouldn't change any existing code and still have the wanted functionalities.
What are your thoughts

Ideally to avoid a unbounded growth it would be nice if there was a maxlines setting as suggested.
But yes, the UpdateAsync() would be great. If you agree with that I can send a PR

Yea totally! Go for it!

Can you open it on @awesome-gocui we run a fork of this project theere since the original ownwer hasnt responded to anything in a while

OK, I opened https://github.com/awesome-gocui/gocui/pull/67


Outlook for macOS support

I've lost a bunch of folders in Outlook. I just got off a support call with Microsoft Exchange Services, and the support engineer tells me that the only way to fix this problem is with your tool. He also said that your tool is only available on Windows machines - i.e. it will not run on macOS.
Can someone confirm that the tool is not available for macOS, and if not do you know of another tool that might perform a similar function on macOS is available. Or - are there plans for porting to macOS?

Sorry. This app is built on mapi, which is part of Outlook for Windows. It’s impossible to port to Mac. Maybe you could use the graph api?

@stephenegriffin :  Thanks for the feedback - is this where I should start for info on graph api?
And if I might trouble you with one other question: What is it that your program does that recovers lost folders? I know that's a dumb question, but I'm still shocked and astounded that Outlook for Mac can "lose" 40-50 of my folders, yet MS has no solution for that.

I don't know the specifics of your issue. Perhaps the folders have somehow been moved to a location not normally visible in the client, in which case the resolution would be to move them back. Or else maybe they have been marked as hidden, in which case the resolution would be to remove the properties marking them as hidden.
Do you know what happened to lead to the folders being lost?

No - I don't know how this happened. It's not my machine, but belongs to a friend & I'm trying to help. I helped her search, but I couldn't find them either. She has said she is certain that she did not delete the folders. And that seems likely to me because it was 15-20 folders missing, but 3 remain!
After failing in my search, I contacted M'soft's Exchange support (I have an account). The tech support guy mentioned the word "corrupted" referring I think to the database for mail. He was very nice, but in the end, he said they (MS Tech Support) couldn't "recover" the missing/lost/misplaced/hidden folders without mfcmapi, and that meant she had to have a Windows machine. Neither of us use Windows any longer, so this is a bit of a roadblock at the moment.
I find it incredible that MS has no method to resolve these corruption issues for macOS... but then this isn't the first time I've been surprised :)
Any advice or suggestions will be much appreciated.

I shared this with a Mac EE. Their comments:

My guess (based on the limited details) is that the folders were not sync’d with Exchange and at some point were deleted.
You should be using Time machine or a similar database backup tool to ensure you don’t lose data.  Time machine is the best IMO.
BTW, if the customer is fairly savvy AND the physical files are still on desk, the customer can navigate the low level structure with MySQL.  Generally speaking it’s rare that the files are still on desk. Outlook 2011 did have a way of restoring database files.
https://support.microsoft.com/en-us/office/rebuild-the-office-database-c21643be-0f0d-4997-9ec1-8044080054b0
Here’s an article about the 2016+ version of the database which does silent rebuilds.
https://support.microsoft.com/en-us/office/about-the-office-for-mac-database-62dd4473-5a7d-407b-b384-1d5f767e8b4b

The Time Machine idea is a very good one! She uses Time Machine, and it's set on "autopilot" - will definitely look into this.
I've also read the article re the 2016+ version. It implies that Microsoft denies the existence of any database problems. Not helpful, and one reason I'm not a MS customer any longer. Oh... wait - I am - I still use MS Outlook :)  Anyway - it just doesn't seem that helpful as it suggests something we've already done, and MS says your software is the only salvation.
But I do sincerely appreciate your help with this - many thanks!


enhancement request: Reduce list view header space

Is there an existing issue for this?

[X] I have searched the existing issues

Enhancement description
We need to consolidate the space List View headers take up presently. They are way too big and take up too much space.
🧑💻 Implementation
No response
Anything else?
Use in the commit msg -> MVP2023-480

@astra1 Please look into this request.

Not required


Update kythe vnames mapping

This change is

@weiminyu Sal is from the Kythe team and he thinks this PR should re-enable cross-referencing for generated files on cs.nomulus.foo for us.
Still need someone from the team to approve.
See b/261750209.


Add example to show most common output situation

Nearly all calls to the Azure CLI return an unnamed array of records.  This example doesn't show that situation.  Can I suggest adding a sample that shows how to us az account list to filter on where isDefault is true and display the account name?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e60c12ef-d293-5626-c7aa-c7e9241bf975
Version Independent ID: 7acca1dd-b735-7e1f-afd9-2b5b6ea06b1c
Content: Query command results with Azure CLI
Content Source: docs-ref-conceptual/query-azure-cli.md
Product: azure
GitHub Login: @sptramer
Microsoft Alias: sttramer

This is actually covered in the article already, under the get properties in an array heading. If you need a more detailed example, see the JMESPath homepage.


Remove additional exe produced as part of updating to 3.0 SDK

Fixes https://github.com/aspnet/Mvc/issues/8681

The exe was a result of an SDK change - https://github.com/dotnet/cli/issues/6237.


implemented binary search in javascript. issue #26

Why:
Closes #26
What's being changed:
Added a new file binary-search.js. Implemented binary search function.
Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

You should close the issue

No, I cant merge PR @harshraj8843  will do.


Fix an error when .rubocop.yml is empty

This PR fixes the following error when .rubocop.yml is empty.
% touch .rubocop.yml

% rubocop
/Users/koic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rubocop-1.34.1/lib/rubocop/server/cache.rb:75:in
`block in cache_root_dir_from_config': undefined method `dig' for nil:NilClass (NoMethodError)

            config_yaml.dig('AllCops', 'CacheRootDirectory')
                       ^^^^
        from /Users/koic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rubocop-1.34.1/lib/rubocop/cache_config.rb:9:in
                       `root_dir'
        from /Users/koic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rubocop-1.34.1/lib/rubocop/server/cache.rb:61:in
                       `cache_root_dir_from_config'
        from /Users/koic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rubocop-1.34.1/lib/rubocop/server/cache.rb:54:in
                       `cache_path'
        from /Users/koic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rubocop-1.34.1/lib/rubocop/server/cache.rb:45:in
                       `dir'
        from /Users/koic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rubocop-1.34.1/lib/rubocop/server.rb:36:in
                       `running?'
        from /Users/koic/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rubocop-1.34.1/exe/rubocop:11:in
                       `<top (required)>'
        from /Users/koic/.rbenv/versions/3.1.2/bin/rubocop:25:in `load'
        from /Users/koic/.rbenv/versions/3.1.2/bin/rubocop:25:in `<main>'

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Thanks!

Might also be a good idea to issue some warning when this happens as an empty .rubocop.yml doesn't make much sense in general.


Python de-indentation

Environment data

VS Code version: 1.13.1
Extension version (available under the Extensions sidebar): 2019.1.0
OS and version: macOS 10.13.6
Python version (& distribution if applicable, e.g. Anaconda): python 3.7.2
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: XXX

Expected behaviour
if True:
    print()
else:
    print()

try:
    print()
except:
    print()

Actual behaviour

Steps to reproduce:

XXX

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
XXX

This may be a duplicate of known issue #2367 and #771 and #3188 , but issue #2367 points to #771, and #771 says this was supposed to be fixed by #2724 , and was closed and locked.
Issue #3188 was also closed due to being upstream issue, while Microsoft/vscode#62464 (and Microsoft/vscode#62519 which was claimed as duplicate) says this should be reported to extension repository.
This issue was supposed to be fixed, which isn't, it seems it's not very certain where this issue should go to, I'm just hoping I'm reporting to right place. Thanks.

Please enable the following setting in you settings.json file:
"editor.formatOnType": true,

If you would like this just for Python code, then you can do as follows:
    "[python]":{
        "editor.formatOnType": true
    },


federation v2 support

# re-generate schema
dotnet run --project compatibility/Products.csproj schema export --output products.graphql

# run compatibility results
npx fedtest docker --compose compatibility/docker-compose.yaml --schema compatibility/products.graphql --debug

Results
*************
Federation v1 compatibility
*************
_service PASS
@key (single) PASS
@key (multi) PASS
@key (composite) WARNING
repeatable @key PASS
@requires PASS
@provides PASS
federated tracing WARNING

*************
Federation v2 compatibility
*************
@link PASS
@shareable PASS
@tag PASS
@override PASS
@inaccessible PASS
@composeDirective WARNING
@interfaceObject PASS

TLDR need to think to think about how to support @composeDirective.


[Backport release-24.11] incus: test refactor, fix CSM

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

aarch64 run of nixosTests.incus.all
/nix/store/z296a3hjmsb53naqpsf7mds25ibafq0g-vm-test-run-incus

x86 both suites
/nix/store/4ji46hbbdalm0aad3mqrrxic2dk2lf5h-vm-test-run-incus
/nix/store/yd7r8zj9kg9z35rvm1gilf81fjlj5njd-vm-test-run-incus-lts


Support Moonriver XCM

Support XCM between Moonriver and Kintsugi for:

[ ] MOVR
[ ] kBTC
[ ] KINT

Support XCM between Moonbeam and Interlay for:
TBC
Split off (not a must-have for launch):

[ ] #47

Blocked by https://github.com/interlay/interbtc-ui/issues/1376 which will allow us to support Moonbeam address formats.


Fix all Test setup booting host

There are few more test suites which needs fixes to power on clean

https://gerrit.openbmc-project.xyz/#/c/5264/


demo link is broken

Oh yeah, need to remove that for now. There isn't much to demo in this library. It's a collection of primitives that can be used to build a graph. To see it in action, go to http://github.com/LocusEnergy/ember-sparkles

Can you just change the link rather than removing?
Bryan

@bryan - yeah this is on my list, we do have a basic demo, I just need to setup the Github page, I will try to get to that this week

ok, the demo site now works


Changelog weblinks are broken

on
https://github.com/k9mail/k-9/wiki/ReleaseNotes#change-logs
->
http://k9mail.org/k-9/changelog_master_branch.xml
and
http://k9mail.org/k-9/changelog_5.0-MAINT_branch.xml
point both to a non-existant URL

Fixed


Recipe parser currently throws full page error when encountering invalid recipe file

Currently, the recipe parser throws any recipe errors to the user, causing full page error on the tenant setup screen or ‘Recipes’ tab in the admin area. It would be beneficial for these errors to be trapped and logged, so that users can still work with valid recipes.
If the RecipeParser validated the recipe text, it could return a null for any invalid files. Any null recipes returned by RecipeParser could then be logged, along with the file name. No error would occur for the user.
The manner in which the user is informed is flexible. I would propose a message on-screen informing them of the problem file or files, as a logging-only solution could mask problems.
There are no breaking changes involved in the implementation of the proposed amendments..
I have implemented a solution on our project, which I am happy to submit for review.

Good idea, I like it.

https://github.com/OrchardCMS/Orchard/pull/5344

+1

PR 5344 is now merged. Issue is resolved.


How to send data to socket and receive data back in Aqueduct?

This is not an issue yet (more like a missing documentation)
I have socket services in my close network thats provide a database communication in clear text.
Example:
**Send to Socket:**
'Q101:_:49785:_:x\r\n'

**Receive from Socket:**
'1:_:2:_:119351:_:NİYAZİ TOROS'

Now I am building Aqueduct Web Api so, I can connect over internet to send and receive data back. Using Aqueduct and dart:io how to send above data to Aqueduct web api, connect to socket services (in open mode, till user finishes the work and close the socket) request data and receive data back?
Main problem is that I can only set timer (which I don't know how) say every 5 minutes drop the connection so user can login again. Also once user login they get a token and use this token in every other request until connection close.
Second problem is that in 5 minutes when new request comes I have to restart to timer. Unless no user interaction after 5 minutes user must login again. In UI part I can redirect to new login but I need to set the timer in aqueduct.
I use dart.io in aqueduct. I can connect my local network (ex: <IP_ADDRESS>, 1024), send data to network socket and retrieve and answer. My problem is that I couldn't find any information how to send those data that comes from local network socket to www.
Any help please?

To contribute to above post;
How to show _xResult in <IP_ADDRESS>:8888
channel.dart
————————————————————
router.route('/login').link(() {
  return new WebGetController();
  //..contentType = ContentType.TEXT;
});

webget_controller.dart
—————————————————————————
import 'dart:convert';
import 'package:aqueduct/aqueduct.dart';
import 'package:capitalapi/capitalapi.dart';

class WebGetController extends Controller {
  String _xResult;
  @override
  Future<RequestOrResponse> handle(Request request) async {
    // TODO: (1) CONNECT TO SERVER
    Socket socket = await Socket.connect('<IP_ADDRESS>', 1234);
    print(
        '(1): CONNECTED TO: ${socket.remoteAddress.address}:${socket.remotePort}');

    // TODO: (2) SEND DATA TO SERVER
    socket.add(utf8.encode('who\r\n'));
    print('(2): SEND DATA TO SERVER');

    // TODO: (3) LISTEN GET DATA FROM SERVER
    socket.listen((List<int> event) {
      // expecting 1:_:2:_:119351:_:NİYAZİ TOROS
      String reply = utf8.decode(event);
      print('(3): RECIVED DATA FROM SERVER');
      print(reply);
      _xResult = reply;

      // TODO: (4) CLOSE CONNECTION
      print('(4): CONNECTION CLOSE TO: ${socket.remoteAddress.address}');
      socket.close();
      socket.destroy();
    });
    return Response.ok(_xResult);
  }
}

This question has more to do with Dart async methods than aqueduct in particular. It may be better served in stack overflow or in the dart gitter channel. The tldr is that you have to await on your socket response, otherwise you send an http response prior to that.


gri dev

Some reworks of boolean logic and new effects.
Beware of the snake!

Looks nice, one suggestion:
Please use yapf as Python Formatter :)


How to aggregate on the results of 2 columns?

In InfluxDB0.12, it is ok to do select min(a) from measurement, where a is a field/tag.
However, if I would like to do select min(a - b) from measurement, where a and b are columns.(which means that I would like to see the min/max/median of 2 columns). How shall I perform this action in InfluxDB?
I always receive error parsing query: expected field argument in min()

select min(c) from (select a - b as c from measurement)

Thanks, but I think
select min(*) from (select a-b from measurement)
will do as well...


Bump refs to Spin Operator from 0.0.1 to 0.0.2

With this commit, we move from v0.0.1 to v0.0.2 when referring files/assets in the context of Spin Operator

Also updated some parts of the AKS tutorial, that came across when updating Spin Operator links


[kf5*] update to kf6*

Library name
kf5*
New version number
kf6*
Other information that may be useful (release notes, etc...)
kf5archive
kf5attica
kf5auth
kf5bookmarks
kf5codecs
kf5completion
kf5config
kf5configwidgets
kf5coreaddons
kf5crash
kf5dbusaddons
kf5declarative
kf5diagram
kf5globalaccel
kf5guiaddons
kf5holidays
kf5i18n
kf5iconthemes
kf5itemmodels
kf5itemviews
kf5jobwidgets
kf5kcmutils
kf5kio
kf5newstuff
kf5notifications
kf5package
kf5parts
kf5plotting
kf5service
kf5solid
kf5sonnet
kf5syntaxhighlighting
kf5texteditor
kf5textwidgets
kf5wallet
kf5widgetsaddons
kf5windowsystem
kf5xmlgui
to
kf6archive
kf6attica
kf6auth
kf6bookmarks
kf6codecs
kf6completion
kf6config
kf6configwidgets
kf6coreaddons
kf6crash
kf6dbusaddons
kf6declarative
kf6diagram
kf6globalaccel
kf6guiaddons
kf6holidays
kf6i18n
kf6iconthemes
kf6itemmodels
kf6itemviews
kf6jobwidgets
kf6kcmutils
kf6kio
kf6newstuff
kf6notifications
kf6package
kf6parts
kf6plotting
kf6service
kf6solid
kf6sonnet
kf6syntaxhighlighting
kf6texteditor
kf6textwidgets
kf6wallet
kf6widgetsaddons
kf6windowsystem
kf6xmlgui

FYI you may encounter these issues with static triplets on Windows:
https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/360
https://bugs.kde.org/show_bug.cgi?id=481954

The upstream library name is:
KDE/karchive
KDE/attica
KDE/kauth
...

The name in vcpkg is:
kf5archive
kf5attica
kf5auth
...

When kf5* was added to vcpkg as a new port, the upstream was in the process of releasing 5.x.x, so the user added the character "f5" to the port name. As a result, when the upstream releases to 6.x.x, new users propose to update to kf6*, but this will change the names of 38 ports, and there will be other versions in the future... Therefore, convert this issue into a discussion to explore how to handle it better.


fix the pseudo code

Before we call DFS-VISIT(), the DFS() procedure already lets the specified vertex white color, so there is no need to assign the white again.
In CLRS, the pseudo code implies the assignment using <- not =, and the equal using = not ==. I think we should keep this style.

thanks


meta commands silently fail?

🐛 Bug Report
Running an unknown command silently fails. Something like meta npm dev (should be meta npm run dev) or even meta foo silently fails just outputs nothing.
To Reproduce
meta foo
Expected behavior
I would expect a failure message like No known command "meta foo". Are you sure you typed it correctly?"

Would love a pull request on this one.

this silently fails
meta import does/not/exist https://github.com/x/y


Add MIT license

We would like to use your code, but need to have an actual LICENSE file for an MIT license. Would this license file be acceptable?

Thanks for the PR, and sorry about the omission!


Issue after adding a sound file

Bug description
After I added a sound, it throws a box named this at me: DataGridView Default Error Dialog
To Reproduce
Steps to reproduce the behavior:

Up load an audio file
Every time you go to the audio files location it pops up with the box
Expected behavior
A box gets thrown at you called: DataGridView Default Error Dialog

Screenshots

Desktop:

OS: Windows 10
Browser: Edge
Version: 121.0.2277.128 (Official build) (64-bit)

Additional context
Add any other context about the problem here.

I've found a fix, make sure to create a category first

Thanks for mentioning this.
I still have  a question if you have the time (and maybe more followup questions afterwards depending on your case).
Did you install the soundboard plugin fresh? or better, is this your first use of the plugin? I'm curious about what caused this.

I have reopened the issue for now. Your workaround is valid, but I'd like to fix it, if I can.

I installed it fresh, used it the first time, then un installed it and added a sound then the issue continued. I added a sound category and it started working. Ive just come across another issue, the first sound i added isnt working anymore. and the rest are.

I can't be sure what's causing the issue with the first file. Right now, without more info (a log file created after you tried playing the file, and the soundboard.db in %APPDATA%/Macro Deck\plugins\PhoenixWyllow.Soundboard4MacroDeck\DB), my best guess at a solution is try reapplying the category to the file or creating a new category and changing the one assigned to the file.
If you can provide the files I might be able to take a look, but I have no idea why only one wouldn't work.

I had the same issue i beleive .
Let me describe all the steps :
First install of the pluggin.
Skipped the config.
Downloaded the sound on this page : https://www.myinstants.com/en/instant/helldivers-2-extract-21943/
Went to the Pluggin in Macro Deck 2.
Audio files and added it.
Then the same error appeared in loop.
You have to exit Macro Deck 2 or hold ESC to be able to go out of the loop.
If you go back to pluggin--> Audio files, the error appear again.
The sound can still be used and played if you don't go back to the pluggin-->Audio files
soundboard.zip

@Dr-Bely These changes were already implemented in v2.0.3. The original issue should no longer occur. Please open a new issue if this is still happening and provide a log file.


[Question]: Sections width and height support?

What happened?
Hey I know there's an option to specify the custom width and height in px, but I was wondering if there's any way to have compatibility with the new sections view in homeassistant?
Card Version
1.2.0
HomeAssistant Version
2024.11.2
Relevant log output
No response

I Join the discussion because I'm intrested too...

I already fixed this in my fork; the last part is adding the UI support (https://github.com/LesTR/homeassistant-minimalistic-area-card/issues/50). Until then, you can add something like this, and it should work:
layout_options:
  grid_columns: 2
  grid_rows: 2


[Refactor] Add new line

clang-14 complains that "error: no newline at end of file [-Werror,-Wnewline-eof]" So this PR adds a new-line to these files.
What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

starrocks_be_unittest succeeded.


Fix broken "Graphical view" on pseudogene pages

The "Graphical view" in the "Protein features" section should be hidden for pseudogenes.  I think it used to be.

Fixed for tomorrow's update.  Also fixed "Feature type	pseudogenic_transcript pseudogene" at the top of pseudogene pages.
I'm still not sure how that happened.


Confusing error code when simple_http times out

Arguably we're probably using a version of the jsonrpc crate that is older than this repo. Not sure where else to bring this up, the issue might persist.
We had some of our RPC calls timeout and the error we were getting was
JsonRpc(Transport(SocketError(Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" })))

That's honestly a very confusing wording for a timeout. We spent quite a long time thinking there was some TCP issue with bitcoind binding to the port or us making TCP connections to the TCP port until we noticed they were actually just timing out.
I checked the code and it seems this error comes straight out of stdlib's TcpStream type, which is kinda unfortunate.

Yeah man this is a fair place to raise the issue, thanks. I can definitely look into it. What were you hoping see?

we're probably using a version of the jsonrpc crate that is older than this repo.

Any reason you can't use the latest version of jsonrpc?

What were you hoping see?

Ideally there'd be some indication that the node just timed out. This happens often when hitting the RPC hard during IBD.
Unfortunately the symptom of this is that Core simply won't respond at all for several seconds until the TCP pipe dies. So it's a bit hard for us to detect this case and provide a more useful message.

If one knows they are hitting Core on the local network there is no reason for a delay right, so we could time each request and if it takes a second just return saying "timeout".

Yeah, adding our own timer is not a bad idea.
We should also make sure that this is configurable -- I believe it is in rust-jsonrpc (I use this in my wallet software, which needs a 10-second timeout during blockchain scanning if the node is otherwise busy).

BTW I just synced my wallet and the timeout errors I get look like
Caused by:
    0: getting hash of block 856785
    1: transport error: MINREQ error: the timeout of the request was reached
    2: MINREQ error: the timeout of the request was reached
    3: the timeout of the request was reached
    4: the timeout of the request was reached

I wonder if the Display impl is already ok, and it's just hte Debug impl which is hard to understand.


⚠ Bofrost.lu has degraded performance

In 74aed9e, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1126 ms

Resolved: Bofrost.lu performance has improved in a5f4299.


Multiple writes of complex types stop load from working

Hi,
It seems there is a way to break type saving/loading,
if you do multiple writes of a suitably complex type:
The MWE I could create is:
using JLD
using HDF5

jldopen("example.jld", "w") do fh
    write(fh, "weights", [(:Heavy,100), (:Light,50)])
end
jldopen("example.jld", "r+") do fh
    write(fh, "otherweights", [(:VeryHeavy, 200), (:VeryLight, 25)])

end
load("example.jld")

when you try to do the load you get:
LoadError: stored type Core.Tuple{Core.Symbol,Core.Int64} does not match currently loaded type
while loading In[5], in expression starting on line 9

 in jldatatype at /home/ubuntu/.julia/v0.5/JLD/src/jld_types.jl:689
 in read at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:370
 in read_ref at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:498
 in read_refs at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:471
 in read_array at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:407
 in read at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:372
 in read at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:346
 in anonymous at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:1185
 in jldopen at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:245
 [inlined code] from /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:243
 in load at /home/ubuntu/.julia/v0.5/JLD/src/JLD.jl:1184
 in load at /home/ubuntu/.julia/v0.5/FileIO/src/loadsave.jl:42
 [inlined code] from essentials.jl:114

however both load("example.jld","weights") and load("example.jld","otherweights") work.
It also works fine if they are both written at the same time.
A few more examples of things that work leading up to it
are on https://gist.github.com/oxinabox/95f71548345e8fc583
This is with

Julia Version 0.5.0-dev+1331
Commit 9d6dee5 (2015-11-18 04:38 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: AMD Opteron 63xx class CPU
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Piledriver)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.3
JLD                           0.5.7
HDF5                          0.5.7

Possibly related to https://github.com/JuliaLang/JLD.jl/issues/12
Possibly identical


Update task's outputs if the corresponding node is finished ok

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.55%. Comparing base (5937b88) to head (803da84).
Report is 78 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #330      +/-   ##
==========================================
+ Coverage   75.75%   80.55%   +4.79%
==========================================
  Files          70       66       -4
  Lines        4615     5147     +532
==========================================
+ Hits         3496     4146     +650
+ Misses       1119     1001     -118

Flag
Coverage Δ

python-3.11
80.55% <100.00%> (+4.88%)
:arrow_up:

python-3.9
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Filter out nil meshDescriptors

Not all primitive types are currently supported, this filters out those that are not handled.

This looks like a case for compactMap. Having said that, because we construct a parallel array of materials for the primitives, we need to filter both lists, so I switched to using tuples plus compactMap. This crash should be mitigated by 53afeab.
Thanks for reporting this. I'll put together a test suite to try to catch other crashes and prevent regressions.
Closing as superseded by 53afeab.


Link to SDEL Language is broken

The link to SDEL Language in "Configuring the SDEL query" section is broken. Perhaps it should go here: https://docs.microsoft.com/en-us/windows-hardware/drivers/wdtf/simple-data-evaluation-language-overview

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d8475c3b-1a33-76c6-fbb2-c3d05214c830
Version Independent ID: 1beb2abd-f4bb-41eb-da63-a810cb94cfcd
Content: Run the tests - Windows drivers
Content Source: windows-driver-docs-pr/devtest/run-the-tests.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @EliotSeattle
Microsoft Alias: eliotgra

Thanks for bringing this to my attention, @rahul-ramadas.
That link is the perfect one. I've made the fix and checked it into our main branch. Should be live shortly.
Appreciate the help.
Eliot


from markdown to ProseMirror

https://github.com/ProseMirror/prosemirror-model

Not for near future.


[EBPF] Fix TestAttacherSharedLibrary flaky test

What does this PR do?
Another attempt to fix a flake in TestAttacherSharedLibrary by fixing the retry mechanism introduced in the previous PR. In that PR, the cleanup function is always being called after each retry, which means that we might kill the PID, receive and process that event and then clean the list of received calls in the mock. This PR changes that behavior so that the process is only killed when we have missed the creation event. If it's not missed, we continue as normal.
Motivation
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


[Bug]: MenuLabel rendered as <label>, should be <div>

Environment
Developement/Production OS: MacOS 14.0
Node version: 18.16.1
Package manager<EMAIL_ADDRESS>Radix Vue version: 1.0.2
Vue version: 3.0.0
Nuxt version: 3.7.4
CSS framework<EMAIL_ADDRESS>Client OS: MacOS 14.0
Browser: Chromium 118

Link to minimal reproduction
https://github.com/radix-vue/radix-vue/blob/main/packages/radix-vue/src/Menu/MenuLabel.vue#L11
Steps to reproduce
Use the DropdownMenuLabel component in any project.
Describe the bug
I discovered that the DropdownMenuLabel uses the MenuLabel component, which renders as <label>. While the react radix renders it as a div.
radix-vue:
https://github.com/radix-vue/radix-vue/blob/main/packages/radix-vue/src/Menu/MenuLabel.vue#L11
radix:
https://github.com/radix-ui/primitives/blob/main/packages/react/menu/src/Menu.tsx#L594
Expected behavior
Expect to have the same html tag rendered for the same component.
Conext & Screenshots (if applicable)
No response

Let me know if that's a bug, or made intentional.
Happy to create a PR for this :)

Nice catch @madebyfabian ! Let me do some test quickly.. I forgot if it was intentional

PR in #486. I also updated it in docs. Checked if there where anything in the tests at Menu.test.ts that should been updated, but I did not found anything.

Should I do the same for the SelectLabel component? I just discovered that this is also a<div> in radix react and a <label> in radix-vue.

You are right about that too @madebyfabian.
I realized the Combobox.Label in headlessUI were <label>.
Let's change these SelectLabel, ComboboxLabel to div as well as it affect the accessbility in this case. 😁

@zernonia I think Combobox.Label in Headless UI is refering to the label of the form element 😄. Were <label> is indeed the correct way.
But I with Radix, the SelectLabel refers to this piece: which only indicates the name of the following options group in the dropdown content. And I researched a bit about that, seems that the <label> is the wrong tag in this case, especially because radix-vue already sets the aria-* stuff correctly.


Power BI doesn't show coloured headings in report view.

You've mentioned here that Power BI shows coloured headings in report view, but the image doesn't show that. Can you change the image to one that does show the point you are trying to make.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 1f402391-8dfc-cfa4-89b1-335f7c9dad1c
Version Independent ID: 31ba30b8-61df-54d2-f97c-93ba77319cba
Content: Model view in Power BI Desktop - Power BI
Content Source: powerbi-docs/transform-model/desktop-relationship-view.md
Service: powerbi
Sub-service: pbi-transform-model
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Thanks for your comment and feedback. I've updated that article to describe how the colors in the Model view headings work, to be more specific, and made sure the colors in the image map the description and explanation. Thanks.


Changing window.zoomLevel makes the opposite effect on the custom title bar menus

Issue Type: Bug
When changing window.zoomLevel, the menu bar shrinks instead of growing, and vice versa. See:

VS Code version: Code - Insiders 1.26.0-insider (90fc7e66e2e10f643871b42f9c0f1f989d0ed221, 2018-07-23T10:03:03.289Z)
OS version: Windows_NT x64 10.0.16299

@sbatten: This is maybe related to #54575, but not exactly.

resolved by  #55100


don't print GitHub oauth token

The token is the URL and the URL is printed in the public AppVeyor log. I've deleted that token, but going forward, that needs to be suppresed.

The work-a-round is simply to run it locally.


Following the install instructions for docker-compose on aarch64 returns "Not found" - if aarch64 isn't supported, the documentation page should specify

File: compose/install.md
I've installed Docker Engine on my Pi, and I came to this page to install docker-compose. The following cryptic error:
$ ./docker-compose --version
./docker-compose: line 1: Not: command not found

...arises because the file downloaded to /usr/local/bin/docker-compose (from https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-aarch64) is simply Not found.
If aarch64 isn't supported or its binaries aren't available, I would suggest one or more of the following:

Specify on the documentation page "Linux (x86_64)" where it now reads "Linux";
Add an option on the documentation page for Linux (aarch64), at least pointing to a URL where a user should go;
and/or place a file at https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-aarch64 with something like:

echo "aarch64 binaries not available. Please [install via pip/compile from source/whatever]: [URL a user should visit]"

Along these lines :
File: compose/install.md
The URL scheme specified for the 'Linux' section for composer versions  < 2 are not all available to download.
e.g.  .../1.29.2/docker-compose-$(uname -s)-$(uname -m) on a RPI would become
https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-aarch64 and that 404s
For composer versions > 2: the URLs listed need to be updated to include the v next to the version number
e.g.

URL
HTTP CODE

.../2.0.1/docker-compose-$(uname -s)-$(uname -m)
404

.../v2.0.1/docker-compose-$(uname -s)-$(uname -m)
200

@salt-lick

For composer versions > 2: the URLs listed need to be updated to include the v next to the version number

There's an entire page for installing versions > 2:

The URL scheme specified for the 'Linux' section for composer versions < 2 are not all available to download.

@salt-lick @sssheridan From this comment: https://github.com/docker/compose/issues/8758#issuecomment-936444604 the maintainers suggest replacing $(uname -m) with aarch64
@thaJeztah do you think anything can be done about this?

@salt-lick

For composer versions > 2: the URLs listed need to be updated to include the v next to the version number

There's an entire page for installing versions > 2:

Forest through the trees.... but the blue on slightly bluer is a bit harder to read. Thanks for pointing that out.

@sssheridan Hi the instructions on that page has been updated. Does it work for you now?

I returned to this project now, and installed docker compose through apt without issue. So this issue has been resolved.
In case anyone arrives here from Google still having an issue, try apt install docker-compose instead of docker-compose-plugin. On my Raspberry Pi 4 running Ubuntu 220.4, I have the apt packages docker and docker-compose installed. I'm a little confused about the docker-compose-plugin in the docs, and might open another issue on that topic, but the issue in this thread is closed, for me at least.


Please add support for local non-url based EPG files

Is your feature request related to a problem? Please describe.
iptvnator seems to only support online URL based EPG files?
Describe the solution you'd like
I would love for iptvnator to support adding local EPG files vs. only online URL's for EPG files.
Describe alternatives you've considered
I am not currently aware of an alternative to address this issue.
Additional context
I'm most concerned with the MacOS version of iptvnator if it matters.

You can also enter a link to a local file in the EPG url field, like file:///.... I've never tried it before, but If I remember correctly, someone wrote that it works.


Achieve loading cached data and cache data back within a callback

Thanks for open-sourcing this project. It helped me a lot.
I am trying to build a dashboard that requires data (pandas df) to be shared across callbacks.  In one such callback, input data (cached) needs to be transformed based on the client's selected option and cache back this data. The transformed output at the current step becomes the input data for the next step trigged by the click action.
If I understood correctly,  cc.cached_callback is used only to cache data and  app.callback to load cached data.
In my case, I want to load cached data and cache back the transformed data within the same callback.
Any advice or guidance in this matter would be greatly appreciated.

It is not clear to me what you are trying to do. And your code reference is to an old syntax. Please take a look at the current syntax (read me, examples, ...).