Laravel 4.2/Laravel-Excel 1.3: Numbers formatted as text still appearing as number

I've been playing around with this for a few days but simply cannot make it work. I have some long numbers(16 digits) stored in my database which I am then using the toArray() function to create my xlsx excel spreadsheet. The code i'm using to format the column:
$sheet->setColumnFormat(array( 'A' => '@' ));
However the numbers are being shown in excel as numbers and they are being shortened with scientific notation.
Is there anything I can do about this outside of appending a space either side?
I'm aware of excel's 15 digit limit however when formatting as text I was lead to believe this would not be a problem.

Same issue here, however in my case it's 14 digit Strings.

If you want to avoid scientific notation for long numbers in Excel, then you need to set a format mask that explicitly displays those values as numbers..... using @ is simply telling MS Excel to use its default behaviour (which is to use scientific format for longer numbers).... I suggest you use a format mask of #0 instead

Even then it's not working. This is what I tried: $sheet->setColumnFormat(['id'=> '#0']);. I also suspect setColumnFormat doesn't work as well with CSVs since I've tried a number of formats and it didn't really have an effect on the column format.

I don't know if this makes a difference, however, I've been using $sheet->fromModel($result); and I tried $sheet->fromArray($result->toArray()) and they've both resulted in this issue.

For those that have this issue with CSVs, I created the following method:
public function getStringIdAttribute()
{
return '="' . $this->id . '"';
}
and at the top of my model I added:
protected $appends = ['string_id'];
and that forced the number to be displayed as text in Excel (as well as Kingsoft Spreadsheets).

If you're writing to CSV and viewing via Excel, the CSV doesn't store the format mask and Excel will display the result as a number using its default format (scientific for larger vales)..... always check any CSV using a text editor

I tried exporting the file using "#0" as the column format but it converts the last digit to 0. If @ is the identifier for the 'default' then how can I list the cell as just text so excel doesn't touch anything?
Currently my workaround is exporting from laravel-excel as a csv and then i'm using a python script I wrote to export as an xlsx as openpyxl seem to be able to format as text correctly.

Is there any fix for this behavior? I am exporting to XSLX from array where I have strings like "10E00" which are exported as number "10" in excel. setColumnFormat "@" not working for me...

@lachyn I never ended up finding a good fix, like I said above the workaround I ended up using was to export as a from laravel CSV then run a shell command to convert the output to xlsx with a python script.

@lszanto but this is strange, even if I export it to "CSV" I have value "10" instead of "10E00", and I am sure that in my array is string "10E00"....

@lachyn What are you opening the CSV with? If it's just a text editor then maybe laravel is touching something else as CSV should just be the raw output, no modifiers or anything.

@lszanto sublime text editor...
I am doing query with toArray() at the end. If I dump this array, its with "10E00", after export... "10". Export is done from this array, so all mutators are done in query.... So it must be changed during export.

@lszanto probably I found the cause of this problem. If i remove header row from my export
  $sheet->prependRow(..)

it is working now as expected.... so probably this function somehow breaks formatting. Tried generate sheet from model or from array, same results.
Excel::create('sklad_vyrobku-'.date('d-m-Y', time()), function($excel) use ($table) {
		  	$excel->sheet('Sklad vyrobku k '.date('d-m-Y', time()), function($sheet) use ($table) {
			   	$sheet->fromModel($table, null, 'A1', false, false);
		         $sheet->prependRow(array(		  		'id','kod','kod_odberatele','...'
				));
				$sheet->setColumnFormat(array('B'=>'@','C'=>'@','D'=>'@','E'=>'@'));
	    	});
		 })->download('xlsx');

I had a same problem (Laravel 4.2), but resolved by calling setColumnFormat right away after opening $excel->sheet function closure.
So I don't think this is a bug, just a logic approach.
Example:
$excel->sheet("FooBar", function($sheet) use ($x, $y, $z) {

    $sheet->setColumnFormat(array(
       "G:H" => "@",
       "Z" => "@",
       'AH:AI' => '0',
       "AO:BB" => "h:mm",
       "BE:BR" => "h:mm",
    ));

    ...

});

I was still having this issue and none of the solutions above worked for me. I was importing my data from an array and while all the values in there were strings, I was thinking that setColumnFormat would still do its job and convert the cells into Number Format, that wasn't the case though.
The way I solved it is by typecasting all the values in my array into floats/ints before using the fromArray method to import the data into the sheet.
So if nothing works for you, make sure the data you are importing is of the right type before inserting it into the sheet. Hope this helps someone :)

I found a workaround by using setCellValueExplicit()
eg:
$sheet->setColumnFormat(array( //se formatea la columna a texto
    'C' => \PHPExcel_Style_NumberFormat::FORMAT_TEXT,
    'I' => 'dd-mm-yyyy hh:mm'
));

$sheet->setCellValueExplicit('C10', $object->card_number, \PHPExcel_Cell_DataType::TYPE_STRING);

Hope this helps ;)

$excel->sheet('staff', function ($sheet) use ($data) {
$sheet->setColumnFormat(array(
'H' => '@',
));
$sheet->rows($data,true);
});
Hope this helps ;)

Im still with the same problem. In fact, it changes the format (font) but not the data format.

Is a bug or I am doing it the wrong way?

@minkadev
$sheet->rows($data, true) adds all rules "explicit". This means it will be added as string and thus column formatting will be ignored.

Thanks @patrickbrouwers.
I also try with:
$sheet->fromArray($data, null, 'A1', false, false);

So it won't work? :(

Just don't set explicit $sheet->rows($data, true); to true.
Use:
$sheet->rows($data);

Still not working. Plus, how can I format columns using:
$sheet->fromArray($data, null, 'A1', false, false);

Your example code with $sheet->rows($data); works fine for me. Column formatting is correct when I open it in Excel.

That's weird. Still not working:

I have the right version right? (v2.1.16)

Anyone?.. I'm still having this problem...

In Laravel 5.3, maatwebsite/excel 2.1.12
I was able to make it work with the following two changes

@LastxTemplar suggestion of casting the number to a float or int
placing the setColumnFormat() immediately after opening $excel->sheet function closure, per @nikola-absolute

I got this problem recently, this is my workaround:
foreach (...) {
    $sheet->row($row, [
        /* Your Data */
    ]);
    $sheet->setCellValueExplicitByColumnAndRow($column, $row, $value, \PHPExcel_Cell_DataType::TYPE_STRING);
}

Note type of $column and $row is integer, reference here.

In Laravel 5.1, maatwebsite/excel 2.1.0
I was able to make it work only casting the number to a float or int
:(
So I have to loop for every row to accomplish that.

Also experiencing this issue. Any updates are coming up?

All samples here are talking about exporting to excel,
how about import from excel samples
$path = $request->file('excel')->getRealPath();
$data = Excel::load($path, function ($reader) {
})->get(['brand', 'model', 'batch', 'imei_1', 'imei_2']);

if (!empty($data) && $total = $data->count()) {
	foreach ($data as $key => $value) {
	          $insert[] = ['brand' => $value->brand,
                           'model' => $value->model,
                           'batch' => $request->batch ? $request->batch : $value->batch,
                           'imei_1' => strval($value->imei_1),
                           'imei_2' => strval($value->imei_2),
                           'created_at' => Carbon::now(),
                           'updated_at' => Carbon::now()
                         ];
        }
	/*if (!empty($insert)) {
		Device::insert($insert);
		// dd('Insert Record successfully.');
	}*/
}

@Ra1da35ma  I am getting the same problem. Did you get anywhere with this?
I have tried setting a custom value binder but that is not working because the values being binded to cells are already in scientific notation.  I may open another issue to try and solve this as it is not strictly the same problem but hopefully you have some more information.

I have found a fix. The problem was to do with PHP and its precision .ini variable which is read by PHPExcel_Calculation class. You cannot override this in the Laravel-Excel package nor really in its parent package PHPExcel. Instead,  To fix this i just added  ini_set('precision', 20) before i called the Excel load function.
This is my function:
public function getXlsxFile($filePath)
    {
        ini_set('precision', 18);
        $collection = Excel::load($filePath);

        return $collection->get();
    }

This is how its working for me with laravel 5.1
$myFile= Excel::create($filename, function($excel) use($array) {             $excel->setTitle('title');             $excel->sheet('sheet 1', function($sheet) use($array) {                 $sheet->setColumnFormat(array('B'=>'0'));                 $sheet->setColumnFormat(array('C'=>'0'));                 $sheet->setColumnFormat(array('D'=>'0'));                 $sheet->setColumnFormat(array('E'=>'0'));                 $sheet->rows($array,false);                 //set colum names                 $sheet->prependRow(array(                     'Column name 1 ', 'Box 1','Box 2','Box 3 ','Total'                 ));             });         });

We are closing all old tickets, because version 2.* is reaching the End-of-Life stage. Our full attention is now allocated to version 3.0. It's still possible to use 2.*, but there will be no active support anymore.

Casting value to integer worked for me.

This is the best answer, type cast your variables in the array before passing them to the ->fromArray method: eg
$local_order['Quantity'] = (int) $item->quantity;
$local_order['Price'] = (float) $item->price;


Use QLargeIntSpinBox from superqt, remove internal one

Description
removes the QtLargeIntSpinBox from our code and uses the one in superqt (which is the same implementation)
Type of change

[ ] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

References

How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

Does that introduce a minimum version of superqt ?

nope, this one has been there for a bit. in any case, we're already pinned on 0.2.2, and it's definitely in there.

nope, this one has been there for a bit. in any case, we're already pinned on 0.2.2, and it's definitely in there.

Ok, well, let's get that in then.


What should licensee do about an inconsistent license identifier in the README when more definitive license indicators are present?

Problem
In Primer's README, it has a license heading, with MIT © GitHub.
Prior to v9.x, Licensee had no concept of multiple licenses, and would prefer the LicenseFile over the PackageManagerFile over the ReadmeFIle license section.
With 9.x, Licensee now identifies each individually, rather than stopping with the first. In the case of Primer, it gets MIT from the license file, MIT from the package manager, and "other" from the README, which means it's a mixed license and returns "other" for Project#license.
To note, if the README had the full license text, all three sources would report "MIT", meaning it'd be MIT licensed.
Solutions

Ignore the README heading if other, more definitive sources exist (or put another way, only look at the README if no other sources exist, or only look at the README if its license intent is conclusive). This would work fine for primer, but what if the README said "GPLv3" even though there was MIT license text in the license file or a MIT designation via the package manager. Would a downstream user want Licensee to flag this inconsistency? (I think so).

Some sort of fuzzy heuristics on matching the content of the license section of the README with the title / nickname of the suspected license.

Continue the current behavior and have downstream consumer migrate to Project#licenses and let them make their own determination / flag it for the user etc. (cc @bkeepers, @jonabc)

Drop README support entirely.

Thoughts?

:+1: to ignoring README if license detected in license file or package manager file.
I think looking for potentially conflicting license info maybe should be considered as a separate feature. Could be in README, could be elsewhere in project, e.g., source code comments.

Fixed via https://github.com/benbalter/licensee/pull/233.


This page contains many grammatical errors

Please review this page.  It contains many grammatical errors, making it difficult to read.

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

ID: d1a34b3c-a9b8-29ce-1eca-86f7f42981a1
Version Independent ID: 61d6e6b3-ec54-552d-1bef-86bbcbfea8ff
Content: Integration runtime - Azure Data Factory & Azure Synapse
Content Source: articles/data-factory/concepts-integration-runtime.md
Service: data-factory
Sub-service: integration-runtime
GitHub Login: @lrtoyou1223
Microsoft Alias: lle

@Chago2016 Thanks for the feedback. When you say "This page contains many grammatical errors", could you please share some of the examples to understand?

Sure...

"you should choose the type that best serve the data": serves?
"SSISDB without incurring excessive traffics": traffic?
"so there isn't need to scale": a need?
"When customer creates a Data Factory instance": a/the customer?
Inconsistent casing: Linked Service, linked service, linked Service
"A good practice would be to ensure Data flow runs": Data Flow?

There are examples throughout.  Not trying to be picky.  It's just that it reads choppy.  It seems to need a good going over.

@Chago2016  Thanks for the details. I have assigned the issue to the content author to evaluate and update as appropriate.

Thank you @Chago2016 for the much needed review suggestion, and for helping us improve the docs!  I reviewed the article and updated it to improve its grammar now.  This issue will automatically get closed when the change is merged shortly.


MIPS big endian target is very slow

I try to use mruby at Atheros SOC target on FreeBSD-Current. This SOC is big endian MIPS architecture. mruby is very slow compared to little endian MIPS target.
For example fib(32) check.
Big endian Atheros AR7240(350MHz) is 64 sec.
Little endian Ralink(Mediatek) RT3050(320MHz) is 25sec.
This is mruby 1.2.0 result.
I make mruby for mips on FreeBSD/amd64 by gcc 4.2.
Besides this Atheros AR9330 mruby 1.2.0 is fib(32) is 43 sec. But mruby 1.3.0 and todays github master is almost 90 sec.
I try to this setting on cross build target but not effective.
conf.mrbc do |mrbc|
mrbc.compile_options = "-E -g -B%{funcname} -o-"
end

Is it possible to run the program through the profiler?
I don't have a big endian machine so that it`s nearly impossible for me to improve the code.

FreeBSD/mips not work profiler. sorry.
I try to check with awk fib(32) on RT3050 and AR9330 on same version of FreeBSD.
RT3050 is 80 sec
AR9330 is 99 sec
I seem FreeBSD and compiler(gcc) is not cause this problem.

Sorry for my ignorance. But the performance of RT3050 and AR9330 (and AR7240) means nothing for me at the moment. What are the relations of those chips (and endianness)? We need more info to solve the issue.

RT3050 is Little endian mips 24K architecture. AR9330 is big endian mips 24K architecture. These soc support on FreeBSD by same code at kernel and user land. But only different making toolchain. Big endian mips is little bit slow at FreeBSD. But more slow at mruby. It is very strange . There is a possibility only FreeBSD. I can't check on linux because of I don't have linux.

Thank you for the info. But I still have no clue to isolate the problem.
If you have any idea, let me know, please.

I seem this is not mruby problem. I think this is Atheros SOC issue. Sorry for your patience.


University-1652 Benchmark

Hi
I have tried several times to apply for this data set by university email, but unfortunately, none of my emails have been answered.
Do you know another way to download University-1652 Benchmark?

Hi,
Can you left your email and I can share the link of the dataset with you.

Hi, Reza
Thank you for your reply
I managed to receive the dataset.
Reza @.***> در تاریخ یکشنبه ۵ نوامبر ۲۰۲۳ ساعت
۱۴:۲۲ نوشت:

Hi,
Can you left your email and I can share the link of the dataset with you.
—
Reply to this email directly, view it on GitHub
https://github.com/Reza-Zhu/ACMMM23-Solution-MBEG/issues/1#issuecomment-1793702201,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BDVHLAF7E5FBJ3LWMPDA2KLYC5VVJAVCNFSM6AAAAAA65P3PLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTG4YDEMRQGE
.
You are receiving this because you authored the thread.Message ID:
@.***>


feat: updated the multi-series mapping function to be consistent with…

… selection.each
BREAKING CHANGE: The signature of the multi-series mapping function has changed from (data, dataSeries, index), to (data, index, series)
fixes #35
improved documentation for multi-series fixes #34

Nice. Just realised this fixes the problem with series toString comparison where stuff previously worked a bit by accident!!


Add other vector DB vendors

OpenAI have a section of vector databases, which is a nice overview:
For searching over many vectors quickly, we recommend using a vector database. You can find examples of working with vector databases and the OpenAI API in our Cookbook on GitHub.
Vector database options include:
Chroma, an open-source embeddings store
Milvus, a vector database built for scalable similarity search
Pinecone, a fully managed vector database
Qdrant, a vector search engine
Redis as a vector database
Typesense, fast open source vector search
Weaviate, an open-source vector search engine
Zilliz, data infrastructure, powered by Milvus

@fengsh27 FYI


Exposed goToPage function so we can freely go to specific position of…

… carousel items

Hi @ninamanalo19 thanks for reporting this, however there's already a way to achieve this. You have to get a reference to the Carousel like this:
<Carousel ref={ c => this.carousel = c }>
  ... rest of your code here

Then you can do whenever you want:
this.carousel.goToPage(0); //or any valid index

I'll close this PR, let me know if this doesn't work for you.

thanks @machadogj


PipFunTest: Update expected test results

Signed-off-by: Sebastian Schuberth<EMAIL_ADDRESS>

These frequent updates are getting annoying... we should really start working on https://github.com/oss-review-toolkit/ort/issues/755.


Reject status is not present

Open https://developers.sap.com/tutorials/cp-mobile-cards-action.html#8a84954e-8669-43ff-9905-e74ef6e224ea
Step 8- Cross verify status update in the back end
Only accepted status is coming twice- Rejected, Invalid data record is not present.

Hi @Mukesh-50,
Thank you so much for raising the issue.
Can you please specify the actions you performed?
You are required to perform Accept on one Card and Reject another.
When you click on Reject, you are prompted to enter a Reason for Rejection.
Did you see this dialogue?
Also, can you please verify that the body of your Reject Action is as follows.
{"LifeCycleStatusName": "Rejected: ${reasonForRejection}", "LifeCycleStatus": "R"}
Warm Regards
Sandeep T D S

Thank you for your feedback. We haven't heard from you in a while, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


Continuously reloading settings file

When I load up sublime I noticed that sublime seems to be reloading the settings file over and over again:

Sublime Text 4 latest release.
Windows 10
Latest debugger plugin.
Was working to debug go.

It seems to be continuously rewriting:
{
"ui_rem_width_scale": 0.731,
}
At various sizes?

What values is it bouncing between?
ui_rem_width_scale adjusts the size of ui element calculations and the debugger attempt to find a value that makes the UI fit within the space given.
It does this by adjusting the ui_rem_width_scale up and down based on how much space is left over in the layout. The calculation appears to be bouncing back and forth between too large and too small. This calculation is done in def _adjust_rem_width_scale(self) if you want to adjust it.

This bouncing is causing the ui to constantly resize as you noted here https://github.com/daveleroy/sublime_debugger/issues/166

Closing since #166 is the actual issue


Issue #36 resolved.

Codes may seem a little bit messy. Request for reviewing the codes and refactor if necessary. Checked the test class and removed the @ignore annotation.

Hello @monjurmorshed793, and thank you for your contribution to Astra. I've made some tweaks, mostly just for formatting, but what you have is looking good.
Merging now - thanks again.


Random segfaults

My environment:

Debian stretch
libbrotli 1.0.3 from Debian backports
nginx 1.13.12 backported by me from Debian testing
ngx_brotli at f1fcc845611855855fbd34142840e947f161d486 using the system libbrotli

While in general it works, nginx workers segfault randomly. Unfortunately I am unable to reliably reproduce it myself yet, only throwing some real traffic at it manifests the problem.
Disabling brotli solved the problem with this build for me. I'll try to debug this further.

The fix-clean branches fixes above test. Also I haven't seen a single segfault on real traffic with this branch.

Thanks for checking. Going to merge it to master very soon and release a new tag.


Add extra_cmake_args

This mirrors the functionality available on the Linux side, and is added in support of https://github.com/openenclave/openenclave/pull/3263, to be able to enable Windows CI builds with snmalloc enabled.

Waiting on https://oe-jenkins-tf.westeurope.cloudapp.azure.com/blue/organizations/jenkins/OpenEnclave-sandbox/activity before merging

Smoke testing passed, doing full regression. https://oe-jenkins-tf.westeurope.cloudapp.azure.com/job/OpenEnclave-sandbox/179/


How to display two view the same time by using SwiftEntry ?

As the priority exists, if I display a new view above the view which has been displayed, the old one would be dismissed.

Yes, I too require ability to show few entries simultaneously. By example, popups and notifications. EKWindowProvider doesn't allow this, it contains only one entryWindow. EKWindowProvider should manage multiple windows, or we should have capability to use EKWindowProvider's directly

I love this feature too.

Nothing about this ?


Error and audit logs do not contain clear message indicating that a request was blocked by libmodsecurity

For example, below are contents of the error log for a single request:
curl -i 'http://localhost/?param="><script>alert(1);</script>'

Apache (2.4.18, ModSecurity 2.9.0):
[Thu Nov 17 13:50:03.622441 2016] [:error] [pid 7437:tid<PHONE_NUMBER>03648]
[client ::1] ModSecurity: Warning. detected XSS using libinjection. [file
"/etc/modsecurity/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf"] [line
"56"] [id "941100"] [rev "2"] [msg "XSS Attack Detected via libinjection"]
[data "Matched Data: accept found within ARGS:param:
\\x22><script>alert(1);</script>"] [severity "CRITICAL"] [ver
"OWASP_CRS/3.0.0"] [maturity "1"] [accuracy "9"] [tag "application-multi"]
[tag "language-multi"] [tag "platform-multi"] [tag "attack-xss"] [tag
"OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"]
[tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSensor/IE1"] [tag "CAPEC-242"]
[hostname "localhost"] [uri "/"] [unique_id "WC21i8CogA0AAB0N9YUAAABR"]

[Thu Nov 17 13:50:03.622543 2016] [:error] [pid 7437:tid<PHONE_NUMBER>03648]
[client ::1] ModSecurity: Warning. Pattern match
"(?i)([<\\xef\\xbc\\x9c]script[^>\\xef\\xbc\\x9e]*[>\\xef\\xbc\\x9e][\\\\s\\
\\S]*?)" at ARGS:param. [file
"/etc/modsecurity/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf"] [line
"91"] [id "941110"] [rev "2"] [msg "XSS Filter - Category 1: Script Tag
Vector"] [data "Matched Data: <script> found within ARGS:param:
\\x22><script>alert(1);</script>"] [severity "CRITICAL"] [ver
"OWASP_CRS/3.0.0"] [maturity "4"] [accuracy "9"] [tag "application-multi"]
[tag "language-multi"] [tag "platform-multi"] [tag "attack-xss"] [tag
"OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"]
[tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSensor/IE1"] [tag "CAPEC-242"]
[hostname "localhost"] [uri "/"] [unique_id "WC21i8CogA0AAB0N9YUAAABR"]

[Thu Nov 17 13:50:03.622646 2016] [:error] [pid 7437:tid<PHONE_NUMBER>03648]
[client ::1] ModSecurity: Warning. Pattern match
"(?i)<[^\\\\w<>]*(?:[^<>\\"'\\\\s]*:)?[^\\\\w<>]*(?:\\\\W*?s\\\\W*?c\\\\W*?r
\\\\W*?i\\\\W*?p\\\\W*?t|\\\\W*?f\\\\W*?o\\\\W*?r\\\\W*?m|\\\\W*?s\\\\W*?t\\
\\W*?y\\\\W*?l\\\\W*?e|\\\\W*?s\\\\W*?v\\\\W*?g|\\\\W*?m\\\\W*?a\\\\W*?r\\\\
W*?q\\\\W*?u\\\\W*?e\\\\W*?e|(?:\\\\W*?l\\\\W*?i\\\\W*?n\\\\W*?k|\\\\W*?o\\\
\W*?b\\\\W*?j\\\\W*?e\\ ..." at ARGS:param. [file
"/etc/modsecurity/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf"] [line
"267"] [id "941160"] [rev "2"] [msg "NoScript XSS InjectionChecker: HTML
Injection"] [data "Matched Data: <script found within ARGS:param:
\\x22><script>alert(1);</script>"] [severity "CRITICAL"] [ver
"OWASP_CRS/3.0.0"] [maturity "1"] [accuracy "8"] [tag "application-multi"]
[tag "language-multi"] [tag "platform-multi"] [tag "attack-xss"] [tag
"OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"]
[tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSensor/IE1"] [tag "CAPEC-242"]
[hostname "localhost"] [uri "/"] [unique_id "WC21i8CogA0AAB0N9YUAAABR"]

[Thu Nov 17 13:50:03.622841 2016] [:error] [pid 7437:tid<PHONE_NUMBER>03648]
[client ::1] ModSecurity: Access denied with code 403 (phase 2). Operator GE
matched 5 at TX:anomaly_score. [file
"/etc/modsecurity/rules/REQUEST-949-BLOCKING-EVALUATION.conf"] [line "57"]
[id "949110"] [msg "Inbound Anomaly Score Exceeded (Total Score: 15)"]
[severity "CRITICAL"] [tag "application-multi"] [tag "language-multi"] [tag
"platform-multi"] [tag "attack-generic"] [hostname "localhost"] [uri "/"]
[unique_id "WC21i8CogA0AAB0N9YUAAABR"]

[Thu Nov 17 13:50:03.622962 2016] [:error] [pid 7437:tid<PHONE_NUMBER>03648]
[client ::1] ModSecurity: Warning. Operator GE matched 5 at
TX:inbound_anomaly_score. [file
"/etc/modsecurity/rules/RESPONSE-980-CORRELATION.conf"] [line "73"] [id
"980130"] [msg "Inbound Anomaly Score Exceeded (Total Inbound Score: 15 -
SQLI=0,XSS=15,RFI=0,LFI=0,RCE=0,PHPI=0,HTTP=0,SESS=0): NoScript XSS
InjectionChecker: HTML Injection"] [tag "event-correlation"] [hostname
"localhost"] [uri "/"] [unique_id "WC21i8CogA0AAB0N9YUAAABR"]

nginx (1.11.5, libmodsecurity from current head of v3/master, modsecurity-nginx connector from current head of master):
2016/11/17 13:49:00 [info] 19637#19637: *5 [client <IP_ADDRESS>] ModSecurity:
Warning. detected XSS using libinjection. [file
"/etc/nginx/modsec/owasp-v3/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf"]
[line "17"] [id "941100"] [rev "2"] [msg "XSS Attack Detected via
libinjection"] [data "Matched Data:  found within ARGS:param:
"><script>alert(1);</script>"] [severity "2"] [ver "OWASP_CRS/3.0.0"]
[maturity "1"] [accuracy "9"] [tag "application-multi"] [tag
"language-multi"] [tag "platform-multi"] [tag "attack-xss"] [tag
"OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"]
[tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSensor/IE1"] [tag "CAPEC-242"]
[hostname "<IP_ADDRESS>"] [uri "/?param="><script>alert(1);</script>"]
[unique_id "147939054023.593817"], client: <IP_ADDRESS>, server: , request:
"GET /?param="><script>alert(1);</script> HTTP/1.1", host: "localhost"

2016/11/17 13:49:00 [info] 19637#19637: *5 [client <IP_ADDRESS>] ModSecurity:
Warning. Matched "Operator `@rx' with parameter
`(?i)([<\xffffffef\xffffffbc\xffffff9c]script[^>\xffffffef\xffffffbc\
xffffff9e]*[>\xffffffef\xffffffbc\xffffff9e][\s\S]*?)' against variable
`ARGS:param' (Value: `"><script>alert(1);</script>' ) " at ARGS:param [file
"/etc/nginx/modsec/owasp-v3/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf"]
[line "56"] [id "941110"] [rev "2"] [msg "XSS Filter - Category 1: Script
Tag Vector"] [data "Matched Data: <script> found within ARGS:param:
"><script>alert(1);</script>"] [severity "2"] [ver "OWASP_CRS/3.0.0"]
[maturity "4"] [accuracy "9"] [tag "application-multi"] [tag
"language-multi"] [tag "platform-multi"] [tag "attack-xss"] [tag
"OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"]
[tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSensor/IE1"] [tag "CAPEC-242"]
[hostname "<IP_ADDRESS>"] [uri "/?param="><script>alert(1);</script>"]
[unique_id "147939054023.593817"], client: <IP_ADDRESS>, server: , request:
"GET /?param="><script>alert(1);</script> HTTP/1.1", host: "localhost"

2016/11/17 13:49:00 [info] 19637#19637: *5 [client <IP_ADDRESS>] ModSecurity:
Warning. Matched "Operator `@rx' with parameter
`(?i)<[^\w<>]*(?:[^<>\"'\s]*:)?[^\w<>]*(?:\W*?s\W*?c\W*?r\W*?i\W*?p\W*?t|\W*
?f\W*?o\W*?r\W*?m|\W*?s\W*?t\W*?y\W*?l\W*?e|\W*?s\W*?v\W*?g|\W*?m\W*?a\W*?r\
W*?q\W*?u\W*?e\W*?e|(?:\W*?l\W*?i\W*?n\W*?k|\W*?o (3246 characters omitted)'
against variable `ARGS:param' (Value: `"><script>alert(1);</script>' ) " at
ARGS:param [file
"/etc/nginx/modsec/owasp-v3/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf"]
[line "231"] [id "941160"] [rev "2"] [msg "NoScript XSS InjectionChecker:
HTML Injection"] [data "Matched Data: <script found within ARGS:param:
"><script>alert(1);</script>"] [severity "2"] [ver "OWASP_CRS/3.0.0"]
[maturity "1"] [accuracy "8"] [tag "application-multi"] [tag
"language-multi"] [tag "platform-multi"] [tag "attack-xss"] [tag
"OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"]
[tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSensor/IE1"] [tag "CAPEC-242"]
[hostname "<IP_ADDRESS>"] [uri "/?param="><script>alert(1);</script>"]
[unique_id "147939054023.593817"], client: <IP_ADDRESS>, server: , request:
"GET /?param="><script>alert(1);</script> HTTP/1.1", host: "localhost"

2016/11/17 13:49:00 [info] 19637#19637: *5 [client <IP_ADDRESS>] ModSecurity:
Warning. Matched "Operator `@ge' with parameter
`_{tx.inbound_anomaly_score_threshold}' against variable `TX:ANOMALY_SCORE'
(Value: `15' ) " at TX:ANOMALY_SCORE [file
"/etc/nginx/modsec/owasp-v3/rules/REQUEST-949-BLOCKING-EVALUATION.conf"]
[line "38"] [id "949110"] [rev ""] [msg "Inbound Anomaly Score Exceeded
(Total Score: 15)"] [data ""] [severity "2"] [ver ""] [maturity "0"]
[accuracy "0"] [tag "application-multi"] [tag "language-multi"] [tag
"platform-multi"] [tag "attack-generic"] [hostname "<IP_ADDRESS>"] [uri
"/?param="><script>alert(1);</script>"] [unique_id "147939054023.593817"],
client: <IP_ADDRESS>, server: , request: "GET
/?param="><script>alert(1);</script> HTTP/1.1", host: "localhost"

2016/11/17 13:49:00 [info] 19637#19637: *5 [client <IP_ADDRESS>] ModSecurity:
Warning. Matched "Operator `@ge' with parameter
`_{tx.inbound_anomaly_score_threshold}' against variable
`TX:INBOUND_ANOMALY_SCORE' (Value: `15' ) " at TX:INBOUND_ANOMALY_SCORE
[file "/etc/nginx/modsec/owasp-v3/rules/RESPONSE-980-CORRELATION.conf"]
[line "64"] [id "980130"] [rev ""] [msg "Inbound Anomaly Score Exceeded
(Total Inbound Score: 15 -
SQLI=0,XSS=15,RFI=0,LFI=0,RCE=0,PHPI=0,HTTP=0,SESS=0): NoScript XSS
InjectionChecker: HTML Injection"] [data ""] [severity "0"] [ver ""]
[maturity "0"] [accuracy "0"] [tag "event-correlation"] [hostname
"<IP_ADDRESS>"] [uri "/?param="><script>alert(1);</script>"] [unique_id
"147939054023.593817"] while logging request, client: <IP_ADDRESS>, server: ,
request: "GET /?param="><script>alert(1);</script> HTTP/1.1", host:
"localhost"

OWASP CRS is v3.0.0 release in both cases.
Note the message in Apache logs:
ModSecurity: Access denied with code 403 (phase 2). Operator GE matched 5 at TX:anomaly_score.

There's nothing similar in the nginx logs, so it's hard to understand which particular rule actually blocks a request.

Just for the record, error log now contains the "Access denied with code %d (phase %d)" message after this commit: https://github.com/SpiderLabs/ModSecurity/commit/bfc30dad34784f18cb75099d20055e231f85f588
Audit log still doesn't contain this message in the "H" section.


Fix STM32H7 Kernel crash with BCM4=0

When running the blinky example on STM32H747, with the BOOT_CM4 bit set to 0, the M4 core goes into panic.
Increasing the value of the hardware semaphore retry prevents this.
Fixes #54230

I can confirm that it works on my disco board with blinky. The kernel crash is avoided and the sample runs as intended.
In addition I can confirm that our proprietary firmware works with this one too where we launch the m4 core from an m7 application after kernel boot and some other stuff.
One minor point which I discovered during testing: The blink frequencies of both LEDs (one per CPU core) in the blinky sample is not the same with this branch. After less than two minutes you will see this very clearly by looking at the LEDs.
I confirmed that this frequency difference is not present in the last commit  c0cc6c7 of the main branch which did not have the kernel crash regression. But I cherry-picked your commit from this merge request on top of c0cc6c7 and it had no frequency difference. So I would assume that there are other changes responsible for this frequency difference.
Finally some questions: Are there reasons why the exact new retry value is the right one? What are the limiting factors to raise or lower this value? And in addition: What is the idea behind the retry at all? Is it a kind of deadline to deal with the situation that the m7 could be working right now with clock configuration? I think that these questions are important to decide if this is a workaround which helps us right now or the final solution to the problem.
Summary: I think that this should be merged since it fixes the issue without any visible downsides.
Last but not least: Thank you very much for your help!

Thank you very much for your detailed explanation. Especially the two bullet points are interesting since they describe what goes wrong if the value is too extreme.


OSX Installer - use Packages

Hi @aronasorman and @cpauya.
This fixes #144.
Enhancement using Packages
Enhancement Checklist :

[x]  Show License
[x] Show readme
[x] Add pyrun
[x] Add assessment.zip
[x] Run setup.sh

Steps to create the installer:

Open terminal
Navigate to your ./installer/osx folder.
run ./setup.sh "https://github.com/learningequality/ka-lite/archive/0.15.x.zip" "https://learningequality.org/downloads/ka-lite/0.15/content/khan_assessment.zip".
open the build output ./installers/osx/temp/output/KA-Lite.mpkg
Install the newly built installer.

@arceduardvincent Looking good as per yesterday's demo!
Some notes:

Pls remove the use of create-dmg in the setup script and this should be good to go, we don't use it here anymore, right?
Let's not do the uninstall option here and do that as another issue.

@cpauya I update my recent changes according to your request above.
I think it is ready for merge  and I will create another PR for the uninstaller feature.

Does this use the sdist?

Sorry not yet @aronasorman - it's still using the pyrun setup.py install approach.
Should we be using python setup.py sdist already or perhaps we can create another issue for that so we can test it thoroughly?

The idea is for the installer to just accept an sdist in place of the full repo. From there I think you can just replace the setup.py install step to pyrun -m pip install <sdist path> to install it.
If this is working then we can merge it now, then work on the sdist after that as a separate issue.

Cool, will review this one more time tomorrow.  Will create a new issue for using sdist.
@arceduardvincent was able to demo this as working but I'm wary about the so many commits going into develop.  If all is good, will merge it after.

Closing, will work on #245 instead.


Singleton RabbitMQ

Hi,
I am trying to bind and use RabbitMQ in a simple Jersey application in plain java. I have RabbitMQ Installed in my local machine and I am able to communicate and exchange messages over the broker.
I am trying to use the same ove CF using Spring libs like this:-
// Set up for Cloud foundry
		ConnectionFactory cloudFactory = new CachingConnectionFactory();
		AmqpAdmin admin = new RabbitAdmin(cloudFactory);
		admin.declareQueue(new Queue("rabbitdemo"));
		AmqpTemplate template = new RabbitTemplate(cloudFactory);
		template.convertAndSend("rabbitdemo", message);

I am naming my service id as "rabbitdemo". When I try to send this message, I get an error:-
org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused
Exception in thread "Thread-5" org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused
	at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:54)
	at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:207)
	at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:441)
	at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils$1.createConnection(ConnectionFactoryUtils.java:80)
	at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactoryUtils.java:67)
	at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.doGetTransactionalResourceHolder(ConnectionFactoryUtils.java:130)
	at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1036)
	at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1029)
	at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1005)
	at com.sap.iot.demo.messaging.SpringNotificationProducer.run(SpringNotificationProducer.java:36)
	at org.springframework.amqp.rabbit.core.RabbitAdmin.declareQueue(RabbitAdmin.java:148)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused

Is there anything I am doing wrong or is this the right way to use RabbitMQ using Spring !? Any help would be appreciated.
thanks
Domnic

UPDATE:-
I got this working by setting the connection URI. I had the connection refused as my credentials were not passed on. Now the producer is working with the following:-
try{
			// Set up for Cloud foundry
			ConnectionFactory rmqFactory = (ConnectionFactory) new com.rabbitmq.client.ConnectionFactory();
			rmqFactory.setUri("amqp://joqwkalpha:Omw-mypassword-bAVTtwfx@turtle.rmq.cloudamqp.com/joqwkalpha");
			CachingConnectionFactory cloudFactory = new CachingConnectionFactory(rmqFactory);
			RabbitTemplate template = new RabbitTemplate(cloudFactory);
			log.info("Producing message: creating template");
			MessageProperties props = MessagePropertiesBuilder.newInstance()
					.setContentType(MessageProperties.CONTENT_TYPE_TEXT_PLAIN)
					.build();
			log.info("Producing message: creating msg properties");
				Message msg = MessageBuilder.withBody(this.message.getBytes())
					.andProperties(props)
					.build();
			log.info("Producing message: creating message");
			template.send(EXCHANGE_NAME, ROUTING_KEY, msg);
			log.info("Producing message: S E N T");
			cloudFactory.setCloseTimeout(cloudFactory.DEFAULT_CLOSE_TIMEOUT);
		} catch (Exception ex) {
			log.severe("Producing message: error " + ex.getLocalizedMessage());
		} finally {

		}
´´´

With this I am able to send my message. I am trying to receive them by polling. I am able to connect the same way as the producer. However, when I try:-

```java
try {

				// Set up for Cloud foundry
				ConnectionFactory rmqFactory = (ConnectionFactory) new com.rabbitmq.client.ConnectionFactory();
				rmqFactory.setUri("amqp://joqwkalpha-bAVTtwfx@turtle.rmq.cloudamqp.com/joqwkalpha");
				CachingConnectionFactory cloudFactory = new CachingConnectionFactory(rmqFactory);

				RabbitTemplate template = new RabbitTemplate(cloudFactory);
				template.setExchange(EXCHANGE_NAME);
while (!terminateListen) {

				try {
					log.info("Waiting here....: RX message" + System.currentTimeMillis());
					Object message = template.receiveAndConvert(ROUTING_KEY);

					if (message instanceof String) {
						log.info("Consuming message: String message");
						String strMessage = (String) message;
						setMessage(strMessage);
						terminateListen = true;

					}
.......
}

I am always getting a null.. even after producing a message from my sender. Is there something I need to consider while receiving the data ?
thanks
Dom

By the end of that you don't have any Spring Cloud code in there. Maybe this is a generic Spring AMQP question (Stackoverflow might be better for that)?

You don't show your ROUTING_KEY or EXCHANGE_NAME values.
Your described use case will only work if the EXCHANGE_NAME is "" and ROUTING_KEY is the queue name.
Setting the EXCHANGE_NAME on the receiving template does nothing. We send to exchanges (with a routing key) and receive from queues (bound to exchanges with some routing key).

@codecandy2015 As @dsyer said above, it does not appear that there is any Spring Cloud Connectors code involved in this issue, so it may not belong in this GitHub repo. Can we close this issue and have you ask the question in StackOverflow (using the spring amqp or spring rabbitmq tag)?


⚠ AsianCinema has degraded performance

In b597ba4, AsianCinema ($ACM) experienced degraded performance:

HTTP code: 200
Response time: 1360 ms

Resolved: AsianCinema performance has improved in 027256f after 6 minutes.


Updated Description

I fixed some grammatical errors in the README.md file and changed some wording to make it easier to read.

@microsoft-github-policy-service agree


Upgrade to gnista 1.0.1

This brings in the memory leak fix from https://github.com/emnl/gnista/pull/5 and obsoletes #8.
@nelgau

👍

@akerl Sorry for missing #8 and forcing you to fork. You may be interested in the memory leak fix here.


Django core integration

This lib looks like it would be extremely useful to include in the main Django framework.  As far as I can tell from the README it doesn't imply any breaking changes either.
I wonder if you could comment on whether you've reached out to django core or have any kind of open issue or pull request on it that I could follow?  Has any core maintainer already indicated their attitude to incorporating this sort of functionality?  A brief search on the core django repo didn't show anything but maybe I'm overlooking it.
Thanks!

Hi @browze, thanks for your thoughts.
I did at one point post this project to the django-developers mailing list with the aim of integrating it into Django. Simon Charettes expressed interest but the discussion fizzled out (my fault). However in a DjangoCon talk by Simon late last year he mentioned this project in the context of discussing functionality that was missing from the ORM. So it sounds like there is still some appetite there.
As you say, there are no breaking changes here - there's a bit of backwards-compatible monkeypatching and some  contortions of the ORM internals to make them do what we want, but as long as the tests pass that's OK! If this functionality were to be integrated into the ORM it would make sense to change some of those ORM internals to be a bit friendlier.

Thanks for the info @AlexHill - I'll check that talk out.  Might be worth sending them a nudge?  I think it will definitely make the ORM more comprehensive and it's reasonable to support giving users control of joins for prefetching etc.  I can understand 'encouraging' people to use standard FKs wherever possible - but I think most people will anyway - and a note in the docs + the requirement for extra args/kwargs when joining on non FK fields would hopefully suffice to ensure the vast majority use FKs where they reasonably can.


Switch to async-compatible locks in informer and reflector

Currently there are some RwLocks used in informer and reflector that are locked during an async path. This will lock the entire event loop as RwLock is a synchronous construct. Instead using something async compatible like futures::lock::Mutex. Currently there doesn't seem to be any implementations of an async RwLock, but there looks to be some progress towards that end in tokio - tokio-rs/tokio#1665.
This is my bad 🤦♂ I should have noticed and included this in #92

Fixed in #94.
Thanks again :slightly_smiling_face:


[TOPI] Minor fix in the LSTM recipe

This PR fixes the misbehavior of the LSTM recipe in Python 3, caused by / that should be //. By the way, it corrects the way to measure time cost, i.e. using time_evaluator instead of time.time().

Thanks, @junrushao1994 @vinx13 @were! this is merged


error of pointcloud after updating to the latest version

I am using SR300 and there was something wrong about the scale of pointcloud in the past. But after I update to the newest modified version, all the value of coodinate become nan.
I subscribe the  "camera/depth_registered/points", topic.
 ros::Subscriber point_cloud_sub =
      nh.subscribe("camera/depth_registered/points", 1, pointCouldCallback);

and deal the msgs like this
int u,v;

void darknetCallback(const darknet_ros_msgs::BoundingBoxes::ConstPtr &msg)

{
  obj_class = msg->bounding_boxes[0].Class;
  u = (msg->bounding_boxes[0].xmin + msg->bounding_boxes[0].xmax) / 2;
  v = (msg->bounding_boxes[0].ymin + msg->bounding_boxes[0].ymax) / 2;
}

void pointCouldCallback( const sensor_msgs::PointCloud2::ConstPtr &point_cloud_msg) {

  pcl::PointCloud<pcl::PointXYZ> point_pcl;
  pcl::fromROSMsg(*point_cloud_msg, point_pcl);

  auto pt = point_pcl.at(u,v);
  camera_x = 0.124987*pt.x;
  camera_y = 0.124987*pt.y;
  camera_z = 0.124987*pt.z;
   if (obj_class == target_obj &&(camera_x >= -1.5 &&camera_x<=1.5))
  {
  std::cout << "x  = " << camera_x << " y = " << camera_y
            << " z = " << camera_z << std::endl;
  }
  obj_class = "none";
}

pointcloud is like this in rviz

What's the most stable version for SR300 ? I will try it up.
The test result of build 2.2.3. The point cloud is more strange.

Its a bug. Thank you for informing me.
I just merged PR#717 to fix it.
I'd appreciate if you checked the latest version.

Its a bug. Thank you for informing me.
I just merged PR#717 to fix it.
I'd appreciate if you checked the latest commit.

In fact, the point cloud  is even more strange. @doronhi

Checked again with latest commit (f548ca5e43229d22c75ac3f994f9e4d85debf4d8) on development branch with librealsense v2.20.0, with rs_rgbd.launch and rs_camera.launch filters:=pointcloud.
Running SR300, firmware <IP_ADDRESS>.
Point cloud in RViz looks fine.
Where do you see the problem?

Sorry,I found that I stll used the released version and missed the commit. @doronhi

Excellent.  Thanks.


chore: releases v1.0.0

🎉

It is time to add the project link to Vant website:

I will add the document information and update the content of the demo as soon as possible


How to implement events over image container i.e. onClick

Hi, as I was working on a project where I want functionality like when I click on image it'll open a modal and show zoom on hover functionality there (same like on image container hover). So how I call onClick event on that image. Please help!
Thanks

Hi @psingh157 - Thanks for opening this issue. I think you can listen for click events on the parent component, that contains react-image-magnify. Here is an example on CodePen. Let me know if it needs more explanation or if I have misunderstood your question.

Hi, thank you for the response, as in my project Prettier isn't allowing onClick on div. But, OK, I'll see.
Another thing some styles are not applying on image as I am using imageStyle object, but it isn't working.
And if I give className to image, container, etc. then where I have to write those class declaration and properties.

@psingh157 - You're welcome! If you find react-image-magnify useful, please consider starring it on GitHub. Starring helps to grow the project, which benefits all who use it. Thanks!

it helps me a lot,thx


Slider knob positioning with mouse clicks is off (near the edges)!

Seems to strangely scale down the mouse range... Not font-size dependent. Also not a regression: wrong in upstream, too.
Test:

Demo: Crop rect (horiz.) slider: clicking at the edges (esp. the right?) won't bring the knob quite to the end
Demo: Rotation (vert.) slider: clicking at the edges, same thing, but not as much off

Well, "mostly fixed", at least it's now possible to click to 0 or 100.
Also fixed some obscure mispositioning of the groove fill ("progression") etc.

Well, the earlier approximate solution has finally been addressed properly.


Support external packages

Example Prompt:
evo.ninja.execute('text.sentimentAnalysis', {text: 'I love this product!'});
// Description: Analyze the sentiment of the provided text and return a score.

Generated Script:
const Sentiment = require('sentiment');
const sentiment = new Sentiment();
const result = sentiment.analyze(text);
return result.score;

We should support the use of external packages. Implementation details need to be discussed, a few approaches we could take.

Additionally, before we implement this (which could be complex) I think we can use this to figure out what wraps are most desired through a "request this package" functionality. Let me explain.
Instead of first trying to support the bundling of JS packages, we could first enable the calling of existing wraps via JS. This could be done in a very JS friendly way:
const Sentiment = wrap.import("wrapscan.io/polywrap/sentiment@1");
Sentiment.analyze(text)
return result.score;

If users of evo.ninja find things that don't exist, they could be prompted to "request" it, which would send us a notification. We (the polywrap team) could easily wrap all missing pieces, through leveraging existing packages in the Rust, Go, and JS ecosystem.

This issue is being replaced by: https://github.com/polywrap/evo.ninja/issues/134


Ways to prevent the browser from deprioritizing midiJS tasks in inactive tabs

I have an application which plays notes in sequence taking numeric cues using the MIDI.noteOn and MIDI.noteOff methods. The frequency in which the notes are played drops drastically when I move to another tab. Is there a workaround to this?

Just to clarify. I am using the setTimeout method to create delays between sounds.

You can do it by using a worker thread to do the scheduling. Check out the example application at https://github.com/cwilso/metronome. I have been experimenting with this to schedule midi.js events and it's working much better.
Hamish
Sent from my android device.
-----Original Message-----
From: Akash Agrahari<EMAIL_ADDRESS>To: "mudcube/MIDI.js"<EMAIL_ADDRESS>Sent: Sun, 17 Jul 2016 14:56
Subject: Re: [mudcube/MIDI.js] Ways to prevent the browser from deprioritizing midiJS tasks in inactive tabs (#185)
Just to clarify. I am using the setTimeout method to create delays between sounds.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mudcube/MIDI.js/issues/185#issuecomment-233165220

@hmoffatt could you please post some code sample for implementation of web worker in MIDI.js

I'm won't have a chance to share anything for a month at least.
I rewrote the whole scheduler. It depends on a web worker for accurate timing.
However I don't think it's compatible with the audio tag output method, which could be removed (only internet explorer needs it and I don't think it works very well anyway), or the scheduler could be moved into the output methods too.
I have no idea if it would work with webmidi. Does that output method actually work?
Sent from my android device.
-----Original Message-----
From: shivrajsa<EMAIL_ADDRESS>To: "mudcube/MIDI.js"<EMAIL_ADDRESS>Cc: hmoffatt<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Sent: Mon, 04 Sep 2017 10:06
Subject: Re: [mudcube/MIDI.js] Ways to prevent the browser from deprioritizing midiJS tasks in inactive tabs (#185)
@hmoffatt could you please post some code sample for implementation of web worker in MIDI.js
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/mudcube/MIDI.js/issues/185#issuecomment-326922901


Policy Attachment doc text does not match examples

What would you like to be added:
add missing example in policy-attachment
drainTimeout
it seems should have an example about override drainTimeout with policy attachment, but I could not find it.

/remove-lifecycle stale
This issue covers updating the policy attachment example to match the example in the text.
This would be a great early issue for someone who wants to contribute.
/help-wanted
/good-first-issue


Hexagon delegate (tflite) functionality broken after rebuilding project

I had the hexagon delegate working fine for weeks, but yesterday I clicked "Rebuild Project" in Android Studio, and now I cannot get it working again.
I have scrubbed every place on my disk where I can find the files libhexagon_interface.so and libtensorflowlite_hexagon_jni.so, and made sure that the only copy of those files present on my computer is one that I downloaded and extracted manually from oss.sonatype.org. I place these files into their location in .grade/caches/.... I'm using the latest 0.0.0-nightly-SNAPSHOT from there, which is dated Fri Aug 12 2022.
I delete all intermediate build directories, and wipe Android studio caches.
Still, I get this log dump when trying to load the hexagon delegate:
2022-08-12 09:34:50.182 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 61, configured heap IDs: system (0x2000000), contig (0x400000), secure (0x200), secure flags (0x80080000)
2022-08-12 09:34:50.182 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:3087: fastrpc_apps_user_init done with default domain:0 and &fastrpc_trace:0x73af5f9fa0
2022-08-12 09:34:50.188 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 62, configured heap IDs: system (0x2000000), contig (0x400000), secure (0x200), secure flags (0x80080000)
2022-08-12 09:34:50.189 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:3087: fastrpc_apps_user_init done with default domain:3 and &fastrpc_trace:0x73af548fa0
2022-08-12 09:34:50.195 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2636: Successfully opened /vendor/dsp/cdsp/fastrpc_shell_33
2022-08-12 09:34:50.195 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:200: Reading configuration file: com.journeyapps.visiondemo.debugconfig
2022-08-12 09:34:50.185 6374-6374/com.journeyapps.visiondemo I/apps.visiondemo: type=1400 audit(0.0:190): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=4237 scontext=u:r:untrusted_app_27:s0:c169,c256,c512,c768 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=1 app=com.journeyapps.visiondemo
2022-08-12 09:34:50.197 6374-6374/com.journeyapps.visiondemo E/ion: ioctl c0044901 failed with code -1: Inappropriate ioctl for device
2022-08-12 09:34:50.189 6374-6374/com.journeyapps.visiondemo I/apps.visiondemo: type=1400 audit(0.0:192): avc: denied { ioctl } for path="/dev/adsprpc-smd-secure" dev="tmpfs" ino=4237 ioctlcmd=0x5208 scontext=u:r:untrusted_app_27:s0:c169,c256,c512,c768 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=1 app=com.journeyapps.visiondemo
2022-08-12 09:34:50.241 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2843: Created user PD on domain 3 (attrs 0x0, debug_trace 0x0)
2022-08-12 09:34:50.245 6374-6402/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
2022-08-12 09:34:50.245 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_perf.c:273: fastrpc_perf_init: enabled systrace 0x0 and RPC traces (kernel 0, dsp 0) with frequency 1000
2022-08-12 09:34:50.246 6374-6403/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 3
2022-08-12 09:34:50.247 6374-6404/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_latency.c:96: FastRPC latency thread started for QoS
2022-08-12 09:34:50.247 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1345: remote_handle_open: Successfully opened handle 0x29f0d640 for adsp_current_process on domain 3
2022-08-12 09:34:50.248 6374-6403/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /data/app/~~1vCWmfHaESKkWu1hV7LMOg==/com.journeyapps.visiondemo-v9RYULlL0KQNWz-o9hPkYA==/lib/arm64/com.journeyapps.visiondemo.farf. (No such file or directory)
2022-08-12 09:34:50.249 6374-6374/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1798: remote_handle_control_domain: requested QOS 1, latency 115 for domain 3 handle 0xffffffffffffffff
2022-08-12 09:34:50.250 6374-6403/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /system/vendor/lib/rfsa/adsp/com.journeyapps.visiondemo.farf. (No such file or directory)
2022-08-12 09:34:50.252 6374-6403/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/com.journeyapps.visiondemo.farf. (No such file or directory)
2022-08-12 09:34:50.252 6374-6403/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/cdsp/com.journeyapps.visiondemo.farf. (No such file or directory)
2022-08-12 09:34:50.252 6374-6402/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_std opened with handle 0xaf54b9e8 (idx 0)
2022-08-12 09:34:50.253 6374-6403/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/com.journeyapps.visiondemo.farf. (No such file or directory)
2022-08-12 09:34:50.254 6374-6402/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/mod_table.c:464: is_reverse_handle_opened: reverse module apps_std  already found with handle 0xaf54b9e8 (idx 0)
2022-08-12 09:34:50.254 6374-6402/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_std opened with handle 0xaf54b9e8 (idx 0)
2022-08-12 09:34:50.256 6374-6402/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/listener_android.c:64::error: 512: AEE_SUCCESS == (nErr = mod_table_close(handle, errStr, errStrLen, dlErr))
2022-08-12 09:34:50.257 6374-6402/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:868: Successfully opened file /data/app/~~1vCWmfHaESKkWu1hV7LMOg==/com.journeyapps.visiondemo-v9RYULlL0KQNWz-o9hPkYA==/lib/arm64/libhexagon_nn_skel_v66.so
2022-08-12 09:34:50.271 6374-6402/com.journeyapps.visiondemo I/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_mem opened with handle 0xaf54bae8 (idx 1)
2022-08-12 09:34:50.281 6374-6374/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1325: Error 0x80000406: remote_handle_open_domain: dynamic loading failed for file:///libhexagon_nn_skel_v66.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3 (dlerror _rtld_map_object_ex: cannot open oemconfig.so, errno 2 (no such file
2022-08-12 09:34:50.281 6374-6374/com.journeyapps.visiondemo E/com.journeyapps.visiondemo: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1398: Error 0x80000406: remote_handle64_open failed for file:///libhexagon_nn_skel_v66.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp (errno Success)
2022-08-12 09:34:50.281 6374-6374/com.journeyapps.visiondemo W/tflite: Failed to fetch Hexagon NN version. This might be because you're using incompatible versions of libhexagon_interface and libhexagon_nn_skel. You must use compatible versions. Refer to Tensorflow Lite Hexagon Delegate Guide.
2022-08-12 09:34:50.282 6374-6374/com.journeyapps.visiondemo I/tflite: Hexagon Delegate is not supported.

Prior to hitting "Rebuild Project", this worked fine for weeks. Neither my Android hardware nor my software has changed.
This is a real-time project we're working on, and without hexagon support, inference time goes from 200ms to 1600ms, which makes this project dead in the water.
Please help!

Hi @bmharper !
Can you check below options and let us know.

Switch to 2.9/2.8 version of GPU delegates

You also root your device to resolve this issue.

adb root
adb shell setenforce 0

Attached relevant thread for reference.
Thank you!

Hi @mohantym,
I've tried 2.8.0 and 2.9.0 of the hexagon delegate, and I get the exact same error messages.
The GPU delegate runs without errors, but I specifically need the hexagon support.
My device is rooted, and I run with setenforce 0.
Like I said, I had this working for weeks.

@bmharper !
Sorry for the inconvenience.
@sachinprasadhs !
Could you please look at this issue.

OK... an update for posterity:
I finally managed to get the NNAPI delegate working, so I no longer need hexagon support.
The key thing that I was doing wrong, was calling options.setUseNNAPI(true).
Instead, the correct thing to do is just this:
delegate = new NnApiDelegate();
options.addDelegate(delegate);

@bmharper !
Thanks for sharing your fix.


Feature/revised people pages

Revises previous people pages (current/alumni) into new groupings: staff, students (both staff and grantees), and postdocs. Each page has current and alumni sections.
Profile detail page now only displayed for people with is_staff flag (probably need to update sitemap logic to make sure they are not included...)
Profile card now displays job title or grant recipient, with dates for non-current positions and grants.  It also links to an external website for people with a link and no local profile.
Added a new pu_status field to track grad/undergrad/staff/faculty, populates from ldap. We'll likely want to run init from ldap on accounts en masse to set this.

Codecov Report

Merging #120 into develop will increase coverage by 0.44%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #120      +/-   ##
===========================================
+ Coverage     96.7%   97.14%   +0.44%
===========================================
  Files           67       68       +1
  Lines         2579     2805     +226
===========================================
+ Hits          2494     2725     +231
+ Misses          85       80       -5

Impacted Files
Coverage Δ

cdhweb/people/urls.py
100% <ø> (ø)
:arrow_up:

cdhweb/projects/models.py
100% <100%> (ø)
:arrow_up:

...people/migrations/0005_add_pu_status_to_profile.py
100% <100%> (ø)

cdhweb/resources/models.py
100% <100%> (+2%)
:arrow_up:

cdhweb/people/views.py
97.82% <100%> (+0.85%)
:arrow_up:

cdhweb/people/admin.py
97.05% <100%> (+0.08%)
:arrow_up:

cdhweb/resources/tests/test_models.py
100% <100%> (ø)
:arrow_up:

cdhweb/people/tests.py
100% <100%> (ø)
:arrow_up:

cdhweb/people/models.py
99.31% <100%> (+3.31%)
:arrow_up:

... and 3 more

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 47f2dbf...9a5f781. Read the comment docs.

People are now sorted correctly for me, nice!
I did just notice that the dropdown menu that switches between pages doesn't reflect the status of the current page - e.g. if you switch to "students", the text in the dropdown will still say "staff and affiliates" (even though inside the dropdown, "students" will be highlighted).


Move reflect call outside loop

This does not need to be in the loop https://github.com/bounce-chat/TLJ/blob/master/server.go#L149

done in d9c44ad7


camera deprecated because of camera2 api

I am new on React and I am trying to run this project. I did step by step, but I got this error when trying in some new phone models (physical):
openalpr\ALPRCameraView.java: uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
Some input files use unchecked or unsafe operations.
Recompile with -Xlint:unchecked for details.
Thanks

FYI: https://github.com/RobertSasak/react-native-openalpr/issues/61

Which device, for example, the app works now ?

iOS. It works on Android, but you cannot publish non 64bit on Google Play any more.

Ok !! No, it´s just to try for now...

Strange that toFixed does not exists. Perhaps it is older JS engine.


Is there a way to set Picker to select a particular text

I'm trying to custom the cancel logic. Instead of displaying 'Canceled', I want the inputview display the text user selects last time, and set Picker to select the text user selects last time.

Hey @Pod5GS, yes you can do that. You will need to create some McPickerBarButtonItem's. Then setToolbarItems. The .done is the right side and will fire the closures with results and the .cancel does just that, and will not fire the closures you pass to McPicker.
let fixedSpace = McPickerBarButtonItem.fixedSpace(width: 20.0)
let flexibleSpace = McPickerBarButtonItem.flexibleSpace()
let fireButton = McPickerBarButtonItem.done(mcPicker: mcPicker, title: "Fire!!!") // Set custom Text
let cancelButton = McPickerBarButtonItem.cancel(mcPicker: mcPicker, title: "The Cancel Text You Want")

mcPicker.setToolbarItems(items: [fixedSpace, cancelButton, flexibleSpace, fireButton, fixedSpace])

Good luck!


Support CompressedImage and Stamped types

Following up https://github.com/eric-wieser/ros_numpy/pull/3 but only adding CompressedImage and the XXXXStamped types.

I don't like CompressedImage  at all here - it's doing something dangerously different from expectation, and it's caused you to try and roll your own PNG parser just to test a rosbag!
At the very least, I would consider CompressedImage a can of worms - so I would like to merge the rosbag and Stamped changes without mixing that in - and discuss it further in a separate PR.


TypeError: hook() got an unexpected keyword argument 'theme'

Hi there,
just found out about frosch and wanted to give it a try, because I really like the idea!
But I've encountered a problem pretty soon. Using hook() without any config works just fine, but I think I'm just plain dumb or blind or both, but trying to configure hook with the theme argument raises an exception on my side.

What am I missing?

I am sorry, I should not put something in the README which is not in a release yet. I will probably push a new version today, so you can use all the features :)

Haha, yeah that's kinda confusing!
But no worries, it's early days and I was assuming something like that was going on. ;)

Alright new version is released (0.1.6).
pip install --upgrade frosch or reinstall and themes should work too! :)


Write out a software_versions.csv file

Continuation of #184: here the folder "multiqc_plots", in which MultiQC stores the plots, is added to the output.
+
writing out a software_versions.csv file, in addition to what already noted at the bottom of the MultiQC report, so that it can be automatically parsed during further autonomous report production. See issue.
PR checklist

[x] This comment contains a description of changes (with reason)
[x] Make sure your code lints (nf-core lint .).
[x] CHANGELOG.md is updated
[ ] README.md is updated

Thank you for your time and patience @ewels :)

I think my fault - I am calling the keys of the dict regexes with regexes.items().keys() instead of regexes.keys() in rnaseq/bin/scrape_software_versions.py

I ran out of ideas ...

I'll have a look with @silviamorins and will try to apply my newly obtained python (s-)kills 😆

I find it a little suspicious that there is no error log from Python. I think if it was a problem with the script then there would be. As such, my guess is that it's one of the steps before the Python script is run which is causing the problem.

Can try adding || true to every line...

(also, you can test the Python code manually to see if it works or not - no need to wait for CI checks)

I just ran the pipeline with these changes and it works fine!

Side note: your work currently isn't linked to your GitHub profile - see https://help.github.com/en/articles/why-are-my-commits-linked-to-the-wrong-user


Compactness of the interface

Checklist

[X] I am able to reproduce the bug with the latest version.
[X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
[X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
[X] This issue contains only one bug, that only occurs in Squawker

Affected version
3.1.4
Steps to reproduce the bug
Not a bug, but I don't know how to submit a suggestion (sorry).
I find that the interface is not compact enough (especially on a small screen like mine of 5.2 inches).
I used the twidere app before and loved its compactness. We can hide the like/RT counters, and the layout of the name and the profile photo allow a significant space saving in height (in addition to reduced margins).
Expected behavior
No response
Actual behavior
No response
Screenshots/Screen recordings

We can see here in twidere how a 6 lines tweet takes up as much space in height as a 1 line tweet in squawker

Logs
No response
Affected Android/Custom ROM version
iodéOS (lineageOS 18.1)
Affected device model
Galaxy A5 2017
Additional information
No response

I think that when a single tweet or pic does not fit the screen, there is a compactness problem.
So in addition of the excellent suggestions of @GrosMatou27 , I suggest that embedded pic must respect a max height when displayed.
Example of pic/tweet too big :

Example of compactness for an embedded pic with Twidere (it does not try maximise 'horizontal' usage if it would exceed the max height)

I'll look into a solution to make post cards more compact


Suspend immigration - EO - Protecting the Nation..

Sec. 3.  Suspension of Issuance of Visas and Other Immigration Benefits to Nationals of Countries of Particular Concern.  (a)  The Secretary of Homeland Security, in consultation with the Secretary of State and the Director of National Intelligence, shall immediately conduct a review to determine the information needed from any country to adjudicate any visa, admission, or other benefit under the INA (adjudications) in order to determine that the individual seeking the benefit is who the individual claims to be and is not a security or public-safety threat.
Please follow (and edit) the guide below to expedite the pull request process.

You will be asked a few questions:
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: pull latest commits before reporting any issues.
Please look at /revamp for the newest version of the site.

[x] I've verified and I assure that I'm looking at the latest version of Trump Tracker.
[x] I've looked through /revamp and **I assure ** that this PR doesn't correlate to it.

Before submitting a Pull Request make sure you have:

[x] At least skimmed through README and most notably the To Do List and CONTRIBUTING.md pages.
[x] Searched through previous Pull Requests for similar issues including closed ones or just looking at the promises template

Description of your pull request, and other information

Updating Policies and Promises through Pull Requests
There are three variables that need to be modified when a promise gets updated, namely status, update, and citations, through data.yaml.
status has four options:

notStarted = Default status. Nothing of significance has been talked about the promise.
inProgress = Promise is in progress, backed up with news articles and/ or government documents.
broken = Promise is fully broken, backed up with news articles and/ or government documents.
achieved = Promise has been fully completed, backed up with news articles and/ or government documents.

The last modified date for the promise should be placed in the update section. This is for project maintainers to keep track of promises and - in the near future - might be plugged into the website, so it definitely needs to be kept up to date.
The format for date is YYYY-MM-DD, and is enclosed in double quotations. For example: An article about Trump in Feb 03, 2017 will be marked as "2017-02-03".
Where did you find out about the promise getting updated? These news articles should be added into the citations section. All you need to do is plug the news source into one of the provided spaces between the single quotes. The more the better, so please keep on adding news sources. We use this as a Wikipedia-style and In-Text Citations.
Note: Please try to keep the articles bias free, since we aren't trying to lean any way.
Please test after setting up to see if the promise got updated. Use the search function to check if the color got applied.
Setup instructions in Read Me.
After you're done with all of this you're ready to go! Send over the Pull Request and we will get back to you in one business day, if not sooner.
Thank you for your immense contribution, you're helping improve TrumpTracker everday.

Thank you for your contribution.


File not included without explicitly prepending --entry

Hey,
Just discovered a discrepancy between browserify and watchify — the latter fails to include a path given as a regular argument. Prepending it with --entry, however, makes it work.

They both have very subtle differences in their argument structure. However, if you stick to entry file first, they should both work.


discussion: ensure that buy/sell prices do not disapear from planets

superseded by #88

current implementation will generally keep the prices there, but the code does not technically guarantee it.
i consider this sufficient.

i take it back. the sell price may disappear if the planet has sufficient amount.


CHIPS support for comma separated partition key

Let's take an actual example of our live environment to explain the problem statement and solution.
https://vwo.com and https://wingify.com are part of the same RWS while https://dev.visualwebsiteoptimizer.com is a third-party script loaded on these 2 websites that can create third-party cookies as CHIPS.
We would like to have the ability to add comma-separated values as the partition keys if these domains are part of RWS so that these CHIPS-based cookies can be shared across different domains if they're part of the same RWS.
We look forward to your response!

Hi @anushshukla,
Thanks for filing! It looks like one of your colleagues brought this up to us already in https://github.com/WICG/first-party-sets/issues/94, but this is a tricky problem that we haven't found a great solution for yet.

Sangat bagus


We can have a brighter chip instead, as it is quite light and not visible properly

Issue Summary
since, the chips opacity is 0.5 and the text is also very light, we can have a better and a brighter chip instead. as per the website, such a vibrant one, these this much lighter chips are not looking so good.
earlier :

expected :

Steps to Reproduce

go to ghost.org
navigate on navbar and click on "For Developers" under "Product"

Ghost Version
5.68.0
Node.js Version
I just gone through the Ghost website
How did you install Ghost?
I just gone through the Ghost website
Database type
MySQL 5.7
Browser & OS version
Chrome, windows 11
Relevant log / error output
No response
Code of Conduct

[X] I agree to be friendly and polite to people in this repository

This is not part of the open source Ghost product 🙂

@daniellockyer  Oh, thanks for informing

Hey @daniellockyer , can you please tell, what is open source Ghost product, as i want to contribute in Ghost.
Thanks


QEMU 8+ - Last version - 2D

Hi,
First, thank you for your work.
I'm working on a projet with qemu and windows 98 on windows host. Because of a lot of problems with cirrus i started to look about what you have done.
I successfull made a w98 image by the past with your work and no problem i can ever launch currently it's ok. Yesterday i changed on another w98 hdd image the video card and installed the last drivers and it doesn't work.
System is not stable (bsod) sometimes, when i try to launch starcraft i receive an error

I don't remember how i did the last time, perhaps i used your advices on Vogons, this time i used the softgpu.iso, and tick only2D on the directx7 part.
I verified the file and ever copy/paste it, but i still to have the problem.
best regards.

I used the softgpu-0.4.2023.19.iso right now and it works fine.
I reinstalled directx9 just in case, removed the video card (restart each time without reboot), the first reboot is forced by directx9, i used the no fail mode to remove the video card then restart (windows host). I remove the softgpu directory, then i reinstalled all of it.
I didn't remember the IHM, i see there is a lot of difference and a new feature about VMHAL9x on the 0.5 alpha release, perhaps this is the reason...
It could be a bad setting from my side, or perhaps a real problem with this version.


class constructor parameters of a generic type can't be assigned a default

TypeScript Version<EMAIL_ADDRESS>Search terms
constructor generic type default
This should work, as type results = {} extends Record<string,never> ? 'yes' : 'no', says yes
and clearly {} is superset of Record<string,never> constraint

class ClassConstructorDefaultForGeneric<Rec extends Record<string,never>>
{
    // Error, [ts] Type '{}' is not assignable to type 'Rec'
    constructor(rec : Rec = {})
    {

    }
}

@DanielRosenwasser That is if you explicitly specify the type upfront, but if type inferal of the generic parameters is used when calling the constructor, anything that is not explicitly specified, can have a default parameter. If in this case you decided to in your cases specify the generic, then the default would fall away, because you must not explicitly supply constructor parameters.
The other issues here is that default are runTime values and thus typing system can't fix a runtime issue like as in below.
class ClassConstructorDefaultForGeneric<Rec extends Record<string, never>, RecDefault extends Rec = {}>
{
// This would now not be possible, because RecDefault is runTimeValue
    constructor(rec : Rec = RecDefault)
    {
    }
}

The one thing to remember here is that the classes is only written with a subset of knowledge.
So whether specifies a superset Record type like you show, the class is only written to run with the subset. So all instructions in the class which should handle only a subset of code would just work.
I don't see an issues with class being given a superset, I think the question to ask what should happen with default in that case, because default still be valid to run with as previously paragraphs said. I think what should the default become? The problem with that, is that the default is a runtime value pretty much.
I think the best thing would be, that if want to not allow the default, that one should the subclass and extends the class, and give it a new relevant runtime default values for the specialization of the generic class. If you explicitly specify the generic as in the above, that typescript, will then treat the constructors as if there are no defaults for each explicitly specified generic for type checking, which only requires modifications to typings engine and will results in ts validating everything correctly as expected.


Installations guide

It would be nice with a small guide for setting up this gallery behind a firewall

There really shouldn't be anything you need to do specific to the gallery to run behind a firewall. The gallery is a basic web app; it doesn't run on any non-standard ports. You should be able to follow the general guidance and documentation for the firewall you are using.

Cool


Failures on Make async error injection set stack trace on errors.

There are new test failures on Make async error injection set stack trace on errors..
The tests
vm/dart/isolates/concurrency_stress_sanity_test RuntimeError (expected Pass)

are failing on configurations
vm-appjit-linux-release-x64
vm-linux-release-x64

Log: https://dart-ci.appspot.com/log/vm-linux-release-x64/vm-linux-release-x64/3737/vm/dart/isolates/concurrency_stress_sanity_test
Looks like some of the tests that were deleted are still referenced here.

https://dart-review.googlesource.com/c/sdk/+/382561


Responsive boundary : 100vw or 100% screen width?

Is there anyway to set the boundary to responsive metrics: view port or percentage?
I'm trying to implement a twitter-like header upload.

I've tried updating the $scope.boundry with window.resize but it doesn't update on resize.., though the value changes in $scope. I've also tried overriding the CSS, but the scale breaks.


Deployment Stuck with ELB_LIST is empty. Must have at least one load balancer to deregister from, or "all", "any" values

Hello there, hope you can help me or guide in the right direction.
A couple of weeks ago I configured the scripts mentioned the elb load balancing section but they made the deployment very, very slow. Taking up to 9 minutes per machine (my deployment group have 7 machines).
One day, I decided to stop using those scripts and removed the instructions from appspec.yml and now every deployment gets stuck in:
LifecycleEvent - ApplicationStop
Script - scripts/deregister_from_elb.sh
[stderr]Running AWS CLI with region: us-east-1
[stderr]Started deregister_from_elb.sh at 2017-09-04 15:54:46
[stderr]Checking if instance i-0796eb8c749eb254c is part of an AutoScaling group
[stderr]Instance is not part of an ASG, trying with ELB...
[stderr][FATAL] ELB_LIST is empty. Must have at least one load balancer to deregister from, or "_all_", "_any_" values.

It always fails in the same machine.

I've removed the scripts (common_functions, deregister_from and register_to) from the source code folder
1.1. common_functions file have the ELB_LIST with any value
appspec.yml does not reference those scripts anymore
Deactivated the option in CodeDeploy to stop sending traffic to on-deployment machines
Had to edit appspec.yml in server (appspec.yml file in the server where it is failing had the scripts reference)
I've restarted code deploy agent, rebooted the machine

I'm really, really stuck with this. Thinking about launching new machines, one by one, to see if it helps but I'd like to know what's really going on.

If you put scripts/deregister_from_elb.sh in ApplicationStop lifecycle event before, the deployment ApplicationStop will also use the script from last successful revision, since you don't have the ELB there. The workaround is documented here: http://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-deployments-lifecycle-event-failures
Another thing I would suggest: stop using these elb script. CodeDeploy now SUPPORT ELB/ALB NATIVELY, you can easily configure it on the deployment group page. http://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-elastic-load-balancing.html


fix set_fps type to float

Description
fixes a small discrepancy between the signature of set_fps and the fps_changed emitter by ensuring that both are using the intfloat data type (one was float and one was int previously)
this fixes compatibility with PyQt5 and consequently, allows napari to be run on Python 3.8 if PyQt5 is used as the backend (see #766 as to why PySide2 cannot be used)
the reason that this was only erroring with PyQt5 is because it checks that the emitters and callbacks share compatible signatures while PySide2 does not
@tlambert03 please verify that int is the correct data type to use for this emitter since I was just guessing as to which one to use
Type of change

[x] Bug-fix (non-breaking change which fixes an issue)

How has this been tested?

[x] all tests pass with my change using both PySide2 on Python 3.7 and PyQt5 on Python 3.8

no it should be float, since we allow non-integer fps settings.  Sorry about that (thought I had caught all of those when switching from int to float), the slot should be changed to float:
https://github.com/napari/napari/blob/cf563b512ec7ede97654a15385ea58ba574f9d8a/napari/_qt/qt_dims_slider.py#L477-L482

@tlambert03 thanks for the quick response!

LTGM merging


[HELP NEEDED] Is there any working example of this repository?

I can't find any working sample and any corresponding documentation on this repository.
I have a sample work flow which works correctly on browsers, but using this repository in react-native application, IceConnectionState goes from 'checking' to 'failed' and remote video is not rendered correctly.

https://github.com/oney/RCTWebRTCDemo

Note that that repo is old and unmaintained. It will probably not work with the current version of this plugin.

@saghul Yes, that repo is old and not working.
Fortunately I found a solution for audio only calls (my problem), which working and maybe I publish a working demo based on current version of the module in future.

That would be appreciated.


[RFC] Reimplement MemberExpression printing

There are currently three issues related to suboptimal rendering of MemberExpression chains. The previous implementation was trying to flatten only a single group at the same time, but it didn't work well because we didn't have the full context to be able to make decisions.
In this implementation, I'm going through the entire chain at the same time and group it into logical units and make decisions based on this. It solves all the problems I can think of and if we need to tweak it in the future, it should be easy.
Fixes #268
Fixes #212
Fixes #21

I think this needs some tweaks. One case that I think is really convincing is the Object.keys case. That's a very common pattern and it's pretty ugly to force it to break. I don't understand all your code yet, but I thought we could talk about the results first.

Sorry it took me a while to answer those comments, I'm still not sure what the optimal way of printing those is, but I'll send another round of update soon.

Okay, I just had a breakthrough in the shower.
The reason we want to indent all those . is because we have an element that we want to apply various methods on. So, the element should be in one line and then each application should be indented and on its own line.
Here are some elements:

Object.keys(obj)
Promise.resolve(0)
Observable.of(editor)
items
arr

There's a clear pattern for them, if the first letter is capitalized, this is a factory and the first call is actually part of the element. But if it is not, then the variable is the element. While I don't like the fact that we use capitalization as a heuristic, in all the cases I can think of, it would actually give a great result.
So, given this fact, we just need to tweak the algorithm to merge the first two groups is the first node is a StringLiteral and have the first character capitalized.
A good side effect of merging the first two groups is that Object.keys(obj).map(fn) used to be 3 groups and therefore automatically indented now is only 2 and will not be if it fits in one line.

There's a clear pattern for them, if the first letter is capitalized, this is a factory and the first call is actually part of the element

I think this is a good idea to try, but I'm not sure it will work in practice. That kind of heuristic only works if the language enforces it and you can be sure all code abides by it (see Reason, capitals are important). There is going to be a lot of JS code that doesn't work with that.
One example I can think of is underscore/lodash:
_.values(obj).forEach(...)

I think we need more real-world examples for what this PR is trying to achieve. See my comment here: https://github.com/jlongster/prettier/issues/212#issuecomment-272674769
The only real-world code so far has been the testing APIs that do expect(obj).to.be.something.etc. Because those are meant to be read as a phrase, you don't want to break them up. In my opinion, this shows that this is a poor API; there's no reason not to do toBeSomething. But if we must make that work, we can special-case that syntax, unless there is othe real-world code where we don't want property accesses to break.

I just pushed an update and I'm happy about the way things are printed and the actual implementation. Some highlights:

No longer use FastPath and use a recursive method to traverse the paths correctly
Add proper support for comments
Use the heuristic I mentioned above in addition to identifiers that match [_$]+
Do not force the indentation if (only) the last group is a function, so it flows smoothly.
Added a bunch more comments to explain all the conditions the code is implementing.

@jlongster, I think it solves all the issues you had with the way the first version printed things and still fixes the three issues reported by people.

Cool, thanks for the work! I will take a look at it tomorrow -- already checked out for today :)

Awesome work! Sorry I haven't been able to closely look at this yet. Had a busy weekend and I'm starting a new contract today so I'll be a little slower to respond. I'd like to take a close look at this PR as it affects a lot of code, and I'll try to find time later today.

Use the heuristic I mentioned above in addition to identifiers that match [_$]+

This is the only thing that concerns me. I just don't feel comfortable with this heuristic; it's not based on code structure, and is the first one that begins treating the actual contents of the syntax as important.
In one of my projects I use transducers.js which is another set of utility functions and I import it as t and use t.map, t.filer, etc. Although not an extremely common use case, I would be very surprised if we don't run into this later. There are lots of libraries out there that will be provided with all sorts of names, so I don't think we should depend on the actual name. This is important because it will affect a lot of the code (I heavily used t.map and t.filter so everything would look bad).

Could you run this PR against your code that used transducers? They do not have a chained API so wouldn't trigger this codepath.
The tricky thing here is that there is nothing in the AST that defines the intent of the person who wrote the code, it only comes from the way variables are named and what they mean :(
Also, I would argue that the code doesn't look terrible when that heuristic is wrong. You'd see
t
  .map()
  .filter()

which while not optimal still feels like code that could have been written by a human.

Yeah, it's a hard problem. I see, most of the places where I use t are not triggered because I only called one method on it (t.map(x => x)). It's looking pretty good.
I still don't feel great about special-casing characters like _ just because a library uses that... but I suppose it might work out well in practice. Give me a day to think more about it :)

I'm definitely not excited about it either and if there was a way to avoid it. Right now I can't see of one :(

A lot of good work in here and I think, like binary expressions, there is never going to be a 100% perfect way to format all cases of it. It's impossible to know exactly the user's intent when just the AST, but I think this format provides a good base for most uses of member expressions. I've really enjoyed the consistency of binary expressions so far and I look forward to similar behavior with member expressions.
If we find this to be sub-optimal for other large use cases we haven't seen, we can continue to tweak it. Also, the fixes for comments are 💅 . Awesome work!
I scanned the code and, while I don't have the time to completely understand it, it looks find to me. In the future we could possibly break it up into a few smaller functions, but it's fine for now.
If you respond to my one comment, I think we should merge this!

I removed the comment handling part that needs more work. I'll land this without it and send another pull request for handling comments.


Plans for new release

Hi - there are quite some new cool features which i would like to have (for example the PagedMasonrySliverGrid)
are there any plans for a new release?
Will use a fork for now but would be interesting if and when there will be a new release

I am still looking to add another grid type before scheduling a release.
This will probably take another couple weeks.

scheduled a new release


keyError handler

fix #2
In auth.py added error handler for KeyError

@ahegde3 Sorry for the delayed response. Can you please elaborate on the changes that you've done?
Thanks

Basically its handles error if there is no authentication file in the directory.


BSM-004 Prevent duplicate detainees (and therefore events)

Coverage decreased (-0.2%) to 98.671% when pulling 9621e4f32c3c2f127c231e442f343d0439c7b8c9 on BSM-002 into a033c898b7add626f3343ff3d0f2fcdf09190363 on master.


Add symbology panel

This expands on the previous color expression work by refactoring it to a general symbology panel. Right now only singleband pseudocolor for GeoTifs is implemented.

Added support for Discrete and Exact interpolation functions. The color stop rows also automatically sort themselves when entering values to maintain an incrementing order.

bot please update snapshots

Let's get the visual regression tests fixed and robustified in a separate PR


SystemLayerImplSelect: add libev support: CHIP_SYSTEM_CONFIG_USE_LIBEV

When CHIP_SYSTEM_CONFIG_USE_LIBEV is set, SystemLayerImplSelect expects a libev [1] mainloop to be present to schedule timers and socket watches (similar to CHIP_SYSTEM_CONFIG_USE_DISPATCH for Darwin).
A libev mainloop must be passed to SystemLayer using SetLibEvLoop() before any timers or socket watches are used - otherwise, chipDie() is invoked.
Usage
The entire project needs to be build with CHIP_SYSTEM_CONFIG_USE_LIBEV=1 (this can be done via invoking a project-specific extra config via the default_configs_extra argument in args.gni)
Setting up the libev mainloop and handing it over to SystemLayer must be done in application specific code, outside the code provided by chip examples. Also adding libev as a dependency must be done in the application's BUILD.gn.
Background
libev is a multi-platform event library often used in embedded linux context to handle events, and builds the basis for various libraries with non-blocking APIs. This changeset allows using the connectedhomeip stack with libev based applications.
Testing

verified with regular chip-tool build that change does not affect builds with CHIP_SYSTEM_CONFIG_USE_LIBEV not set.
tested with an application which bases on libev and sets CHIP_SYSTEM_CONFIG_USE_LIBEV=1: chip timer and socket watches work the same way as with select or dispatch based applications.

Hi @plan44 , are you still working on this PR? It is a very useful feature!

Hi @plan44 , are you still working on this PR? It is a very useful feature!

Yes, I'm actively using it but currently from a fork of connectedhomeip, see top few commits there.
I'll rebase and post it upstream as soon as I find the time to do so with the needed care - unfortunately I'm currently distracted from working a lot on matter right now, it might take a few weeks to get it ready for posting again (and remove the draft status).

dear bot, the PR is not really stale... ;-)

@plan44 For future reference, I could have reopened this PR (and kept the history), if you had not created a new one from the same branch....  I was just on vacation a few days ago and did not get to this until now.

@bzbarsky-apple sorry, I did not realize it is possible at all to reopen a PR once it is closed - I did not want to stress anybody, just follow up on my promise to update the old PRs from pre-1.0 before Jan 3rd 😉

@plan44 Yeah, not a problem, just letting you know for future.  ;)


Astrobody Data processor not processing.

After completely filling the ADP's distance data buffer with data, inserting a Planet ID chip programmed to Luna, and turning the switch for distance data on, the ADP does nothing, and I cannot get it to process the data. I have tried putting the ID chip in both the slot in the upper right of the GUI and in the input bus and nothing happens, even when clicking every button on the interface.

The ADP no longer handles planet data.  As of 0.6.x all planet properties are already known and there is no need to research them.  The research system has been moved over to asteroid exploitation for now while I try to find a use for researching planet data.  May end up using for terraforming later?
Similar issue:
https://github.com/zmaster587/AdvancedRocketry/issues/157

Okay. That would explain a lot.Thank you.


haybaler in nf_wochenende - create filtered and unfiltered read outputs

Goal: create filtered and unfiltered read outputs
Create 2 sets of haybaler outputs, one for each of these bam_txts outputs

    path "*.bam.txt", emit: bam_txts
    path "*.calmd.bam.txt", emit: calmd_bam_txts

Complex, this is best achieved at the read reporting level