HTTPError: HTTP Error 400: Bad Request

I generated the API token for NCBI and CrossRef, then I tried running the colab notebook, but I was getting HTTP Error 400: Bad Request. Is there something wrong with my search query,
bioscraping(
    '"proteins"[MeSH Terms] OR "proteins"[All Fields] OR "protein"[All Fields]',
    email,
    NCBI_API_KEY,
    CROSSREF_API_KEY
)

Hello, thanks for trying cadmus, i'd use the abbreviations found here
"all fileds" is not necessary and mesh terms should be [MH], otherwise it looks ok to me.
Is it at the pubmed stage you are getting the 400 reponse?

Thanks for responding, I also tried using only "protein" as search term, but still I get 400 response, it throws the error at CROSSREF_API_KEY (I'm attaching the error log). I used the API token from the link which you mentioned here. It was mentioned The Click-through Service will be retired at the end of 2020. You can still view the licenses you have agreed to and access your token until December 2020. You should speak with publishers directly to make alternative arrangements for text and data mining. I'm not sure if this is related to this error.
Now creating output
Now creating output/retrieved_df
Now creating output/esearch_results
Now creating output/medline
Now creating output/medline/txts
Now creating output/medline/p
Now creating output/crossref
Now creating output/crossref/p
Now creating output/formats
Now creating output/formats/xmls
Now creating output/formats/pdfs
Now creating output/formats/htmls
Now creating output/formats/txts
Now creating output/formats/zips
Now creating output/formats/tgzs
This is a new project, creating all directories
This look like a search string or list of pmids.
If this is not correct Please stop now
---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
[<ipython-input-7-891f64f19f2a>](https://localhost:8080/#) in <module>
      3     email,
      4     NCBI_API_KEY,
----> 5     CROSSREF_API_KEY
      6 )

9 frames
[/usr/local/lib/python3.7/dist-packages/cadmus/main/bioscraping.py](https://localhost:8080/#) in bioscraping(input_function, email, api_key, click_through_api_key, start, idx, full_search, keep_abstract)
     95             if type(input_function) == str:
     96                 # This is the NCBI e-search step (PubMed API)when a query string is provided resulting in a list of pmids within a dictionary
---> 97                 results_d = search_terms_to_pmid_list(input_function, email, api_key)
     98             else:
     99                 # if the input is a list of pmids we just need to make a results_d to maintain the output variables

[/usr/local/lib/python3.7/dist-packages/cadmus/retrieval/search_terms_to_pmid_list.py](https://localhost:8080/#) in search_terms_to_pmid_list(query_string, email, api_key)
     16     # send the query string to entrez esearch with the retmax at 90,000
     17     # note if the number of returned records is > retmax we will need to iterate over the search results using a moving start and end point.
---> 18     search_results = Entrez.read(Entrez.esearch(db='pubmed', term = query_string, retmax=90000))
     19     # We can then save the total count returned and pmid list to new variables
     20     t_count = int(search_results['Count'])

[/usr/local/lib/python3.7/dist-packages/Bio/Entrez/__init__.py](https://localhost:8080/#) in esearch(db, term, **keywds)
    240     variables = {"db": db, "term": term}
    241     variables.update(keywds)
--> 242     return _open(cgi, variables)
    243
    244

[/usr/local/lib/python3.7/dist-packages/Bio/Entrez/__init__.py](https://localhost:8080/#) in _open(cgi, params, post, ecitmatch)
    604                 handle = urlopen(cgi, data=options.encode("utf8"))
    605             else:
--> 606                 handle = urlopen(cgi)
    607         except HTTPError as exception:
    608             # Reraise if the final try fails

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in urlopen(url, data, timeout, cafile, capath, cadefault, context)
    220     else:
    221         opener = _opener
--> 222     return opener.open(url, data, timeout)
    223
    224 def install_opener(opener):

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in open(self, fullurl, data, timeout)
    529         for processor in self.process_response.get(protocol, []):
    530             meth = getattr(processor, meth_name)
--> 531             response = meth(req, response)
    532
    533         return response

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in http_response(self, request, response)
    639         if not (200 <= code < 300):
    640             response = self.parent.error(
--> 641                 'http', request, response, code, msg, hdrs)
    642
    643         return response

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in error(self, proto, *args)
    567         if http_err:
    568             args = (dict, 'default', 'http_error_default') + orig_args
--> 569             return self._call_chain(*args)
    570
    571 # XXX probably also want an abstract factory that knows when it makes

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in _call_chain(self, chain, kind, meth_name, *args)
    501         for handler in handlers:
    502             func = getattr(handler, meth_name)
--> 503             result = func(*args)
    504             if result is not None:
    505                 return result

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in http_error_default(self, req, fp, code, msg, hdrs)
    647 class HTTPDefaultErrorHandler(BaseHandler):
    648     def http_error_default(self, req, fp, code, msg, hdrs):
--> 649         raise HTTPError(req.full_url, code, msg, hdrs, fp)
    650
    651 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 400: Bad Request

Hello, thanks for trying cadmus, i'd use the abbreviations found here  "all fileds" is not necessary and mesh terms should be [MH], otherwise it looks ok to me. Is it at the pubmed stage you are getting the 400 reponse?

Hello, thanks for trying cadmus, i'd use the abbreviations found here  "all fileds" is not necessary and mesh terms should be [MH], otherwise it looks ok to me. Is it at the pubmed stage you are getting the 400 reponse?

Thanks for responding, I also tried using only "protein" as search term, but still I get 400 response, it throws the error at CROSSREF_API_KEY (I'm attaching the error log). I used the API token from the link which you mentioned here. It was mentioned The Click-through Service will be retired at the end of 2020. You can still view the licenses you have agreed to and access your token until December 2020. You should speak with publishers directly to make alternative arrangements for text and data mining. I'm not sure if this is related to this error.
Now creating output
Now creating output/retrieved_df
Now creating output/esearch_results
Now creating output/medline
Now creating output/medline/txts
Now creating output/medline/p
Now creating output/crossref
Now creating output/crossref/p
Now creating output/formats
Now creating output/formats/xmls
Now creating output/formats/pdfs
Now creating output/formats/htmls
Now creating output/formats/txts
Now creating output/formats/zips
Now creating output/formats/tgzs
This is a new project, creating all directories
This look like a search string or list of pmids.
If this is not correct Please stop now
---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
[<ipython-input-7-891f64f19f2a>](https://localhost:8080/#) in <module>
      3     email,
      4     NCBI_API_KEY,
----> 5     CROSSREF_API_KEY
      6 )

9 frames
[/usr/local/lib/python3.7/dist-packages/cadmus/main/bioscraping.py](https://localhost:8080/#) in bioscraping(input_function, email, api_key, click_through_api_key, start, idx, full_search, keep_abstract)
     95             if type(input_function) == str:
     96                 # This is the NCBI e-search step (PubMed API)when a query string is provided resulting in a list of pmids within a dictionary
---> 97                 results_d = search_terms_to_pmid_list(input_function, email, api_key)
     98             else:
     99                 # if the input is a list of pmids we just need to make a results_d to maintain the output variables

[/usr/local/lib/python3.7/dist-packages/cadmus/retrieval/search_terms_to_pmid_list.py](https://localhost:8080/#) in search_terms_to_pmid_list(query_string, email, api_key)
     16     # send the query string to entrez esearch with the retmax at 90,000
     17     # note if the number of returned records is > retmax we will need to iterate over the search results using a moving start and end point.
---> 18     search_results = Entrez.read(Entrez.esearch(db='pubmed', term = query_string, retmax=90000))
     19     # We can then save the total count returned and pmid list to new variables
     20     t_count = int(search_results['Count'])

[/usr/local/lib/python3.7/dist-packages/Bio/Entrez/__init__.py](https://localhost:8080/#) in esearch(db, term, **keywds)
    240     variables = {"db": db, "term": term}
    241     variables.update(keywds)
--> 242     return _open(cgi, variables)
    243
    244

[/usr/local/lib/python3.7/dist-packages/Bio/Entrez/__init__.py](https://localhost:8080/#) in _open(cgi, params, post, ecitmatch)
    604                 handle = urlopen(cgi, data=options.encode("utf8"))
    605             else:
--> 606                 handle = urlopen(cgi)
    607         except HTTPError as exception:
    608             # Reraise if the final try fails

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in urlopen(url, data, timeout, cafile, capath, cadefault, context)
    220     else:
    221         opener = _opener
--> 222     return opener.open(url, data, timeout)
    223
    224 def install_opener(opener):

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in open(self, fullurl, data, timeout)
    529         for processor in self.process_response.get(protocol, []):
    530             meth = getattr(processor, meth_name)
--> 531             response = meth(req, response)
    532
    533         return response

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in http_response(self, request, response)
    639         if not (200 <= code < 300):
    640             response = self.parent.error(
--> 641                 'http', request, response, code, msg, hdrs)
    642
    643         return response

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in error(self, proto, *args)
    567         if http_err:
    568             args = (dict, 'default', 'http_error_default') + orig_args
--> 569             return self._call_chain(*args)
    570
    571 # XXX probably also want an abstract factory that knows when it makes

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in _call_chain(self, chain, kind, meth_name, *args)
    501         for handler in handlers:
    502             func = getattr(handler, meth_name)
--> 503             result = func(*args)
    504             if result is not None:
    505                 return result

[/usr/lib/python3.7/urllib/request.py](https://localhost:8080/#) in http_error_default(self, req, fp, code, msg, hdrs)
    647 class HTTPDefaultErrorHandler(BaseHandler):
    648     def http_error_default(self, req, fp, code, msg, hdrs):
--> 649         raise HTTPError(req.full_url, code, msg, hdrs, fp)
    650
    651 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 400: Bad Request

This is showing an issue at the pubmed query stage, the crossref api key is not used here so i dont think that is the issue.
Its timing out so it may be that the search query is too broad (too many hits) for the history server to provide the list of PMIDs. Could you try a more specific query? one that you know will return 2000 papers or so.

I tried using the search term biopeptides (there were only 429 papers in total, checked the pubmed central), but still get 400. Can you please try searching this term and see if you are able to get some results?
NCBI_API_KEY = xxxxxxxxx
CROSSREF_API_KEY = xxxxxxx

bioscraping(
    'biopeptides',
<EMAIL_ADDRESS>    NCBI_API_KEY,
    CROSSREF_API_KEY
)

I'll give it a go,
while i do that, the email and apikeys need to be provided as 'strings'.  is that what you are doing?

As there has been no response, i will assume your issue has been solved.

As there has been no response, i will assume your issue has been solved.

Sorry for delayed response, I used string type, now I'm able to get the results. Thank you very much!


Add Swissgerman Language (v2)

Sorry cooldogedev for the first one ( i closed it) Because it was not Good Constucted now IT is and i think some Peoples like SWITZERLAND LANGUAGE!!!!
Greetings from Switzerland

Thanks for the contribution, is it ready to be merged?

It is ready!!!


Pick up external changes during the build with vfs retention

We currently on watch the file system in between builds, so if some changes are made during the build we won't pick them up. For correct builds, this is necessary since the next build will not detect the change if it happens during the build before the watchers are registered.
Depends on #11901.

cc: @gradle/build-cache

Duplicate of #11837


Game Awards 2020

#168
Content:
All games I've "completed" this year
Categories: Best Game, Best Dev, Best Action/Adventure Game, Best Narrative, Best Score/Soundtrack
Deep appreciation to games
Games I'm looking forward to finish next year
Games I'm looking forward to play

Lessen DPI for final image


Jicofo is unable to connect

I have deployed shard0 successfully but i am getting
CONFERENCE FAILED: conference.focusDisconnected focus.meet.jitsi
when i am trying to connect

did you update all your data and open all firewall?

Firewall is open.
In jicofo logs it is trying to connect and login on PublicIP:5222 and 5347 but the server is listening on <IP_ADDRESS>:30222 and <IP_ADDRESS>:30347.
How to correct it, Which setting need to be corrected, my setting are attached.

why are you changing this nginx? Just deploy this on kubenetes of Digital Ocean. point your domain to load balacer IP then it will work

I am using in premises kubernet cluster, tell me if any way to configure this on local kubernet cluster.

try to change xmpp_bosh_url_base to port 30222

I Could able to find cluster IP of LoadBalancer but it is not exposing to Public IP. Jitsi is wotking on private IP from inside the system.
I am new to kubernetes, kindly guide.

Thank you very much for your prompt reply.
I successfully exposed jitsi to public IP only last thing is to add SSL to domain, kindly guide me how to add this..

Hi @kchinkesh did you complete this setup, i was trying to setup on GKE. i got two issues 1. can't add SSL to domain 2. meeting is disconnected as soon as it starts. you save a lot time of mine, if you could help me.

I could able to setup successfully but couldn't install Letsencypt SSL, due to this i am unable to turn on camera in google chrome.
Kindly tell me also if you are able to install SSL.


.NET 6.0 auto testing

feat: When a pull request is issued to the main branch a code test will be issued.

I have renamed it to "build test".
When we have made enough API endpoints there will be a separate action made that will test those endpoints.
That action will be named  "API Test" or "API endpoint test" something like that

I think you forgot to add the new file to the commit, the repo doesn't contain the new yml file.


feat : Screenshot and Screen Recording Extension

While we are working there are times when we urgently need to take a screenshot or record our screen, so for that times build a extension which will enable user to take screen shot and do screen recording as well! Add feature of resizing the screenshot

[ ] Screen Shot feature
[ ] Screen Recording feature
[ ] Resizing of Screen Shot
[ ] All code in one file
[ ] While creating PR add preview picture and working of extension( ps: Take use of screen recorder to record its working )

All the best 👍
Happy contributing 🎊

I would like to work on this issue under jwoc, can you assign it to me :)

Great @KMJ-007 assigning to you!
All the best 👍

@KMJ-007 update? Kindly create a PR for same

I am still working on it, if you want to assign it to other, no problem but it is my first time building chrome extension so it is taking more time :)

No, if you are working then go ahead you are being assigned this issue. It's alright you still have tomorrow try to complete it by tomorrow

@KMJ-007 ?

I want to work on this issue under JWoC

Sure @whiteHatpro, Assigned 👍
All the best

Completed - #70


Relax R >= 3.4 Dependency to R >= 3.2

I'm able to build from source and run with R 3.2 if i modify the DESCRIPTION file
> session_info()
Session info ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value
 version  R version 3.2.4 (2016-03-10)
 system   x86_64, darwin13.4.0
 ui       RStudio (1.1.423)
 language (EN)
 collate  en_US.UTF-8
 tz       America/New_York
 date     2018-03-02

Packages -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package              * version    date       source
 bit                    1.1-12     2014-04-09 CRAN (R 3.2.4)
 bit64                  0.9-7      2017-05-08 CRAN (R 3.2.5)
 CVXR                 * 0.95       2018-03-02 local
 ECOSolveR              0.4        2018-02-18 CRAN (R 3.2.4)
 gmp                    0.5-13.1   2017-03-10 CRAN (R 3.2.5)
 Matrix                 1.2-4      2016-03-02 CRAN (R 3.2.4)
 R.methodsS3            1.7.1      2016-02-16 CRAN (R 3.2.3)
 R.oo                   1.21.0     2016-11-01 CRAN (R 3.2.5)
 R.utils                2.6.0      2017-11-05 CRAN (R 3.2.5)
 R6                     2.0.1      2014-10-29 CRAN (R 3.2.4)
 Rcpp                   0.12.15    2018-01-20 CRAN (R 3.2.4)
 RcppParallel           4.3.20     2016-08-16 CRAN (R 3.2.4)
 Rmpfr                  0.6-1      2016-11-15 CRAN (R 3.2.5)
 withr                  2.1.1      2017-12-19 CRAN (R 3.2.4)
 XML                    3.98-1.4   2016-03-01 CRAN (R 3.2.4)
 xts                  * 0.10-0     2017-07-07 CRAN (R 3.2.4)
 yaml                   2.1.13     2014-06-12 CRAN (R 3.2.0)
 zoo                  * 1.7-12     2015-03-16 CRAN (R 3.2.4)

Actually, we would not be surprised if it compiles even with R 3.0.x. Glad that you got it going.
As for relaxing the requirement, I'm not sure we want to do that for several reasons.

We don't want to run our full suite of tests (including the manual ones) on too many older versions (even dockerized or travis'd)
Knowledgeable users can build from source if needed.

Perhaps, a note would satisfy? That user have been able to build from source and perform all tests?

Sure
2018-03-03 11:58 GMT-05:00 Balasubramanian Narasimhan <
<EMAIL_ADDRESS>
Actually, we would not be surprised if it compiles even with R 3.0.x. Glad
that you got it going.
As for relaxing the requirement, I'm not sure we want to do that for
several reasons.

We don't want to run our full suite of tests (including the manual
ones) on too many older versions (even dockerized or travis'd)
Knowledgeable users can build from source if needed.

Perhaps, a note would satisfy? That user have been able to build from
source and perform all tests?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/anqif/CVXR/issues/24#issuecomment-370162715, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA7N1JJoL0mnsQBopCvrqHblvgKqBnsvks5tasu1gaJpZM4SaT3E
.

--
Don't quit. Suffer now and live the rest of your life as a champion.
– Muhammad Ali
The world is full of obvious things which nobody by any chance observes.
– Sir Arthur Conan Doyle

Added a comment to README


ModularForm documentation example for Qwik useComputed$ does not work { track } is not a valid argument

import { component$, useComputed$, … } from<EMAIL_ADDRESS>
type DateInputProps = { … };

export const DateInput = component$(({ value, ...props }: DateInputProps) => {
  // Transform date or number to string
  const input = useComputed$(({ track }) =>
    track(() => value) &&
    !Number.isNaN(typeof value === "number" ? value : value.getTime())
      ? new Date(value).toISOString().split("T", 1)[0]
      : undefined
  );
  return <input {...props} type="date" value={input.value} />;
});

Error:
Argument of type '({ track }: { track: any; }) => string | undefined' is not assignable to parameter of type 'ComputedFn<string | undefined>'
I'm using Qwik 1.1.4 with modular-form 0.14
I am trying to modify the value of an input dynamically, but the new  generated value is not sent with the form. It always sends the last typed value , not the dynamically generated value.

Can you provide me a reproduction e.g. via StackBlitz and steps how to reproduce the bug? You can use this as a starting point: https://stackblitz.com/edit/modular-forms-qwik

Does the problem still exist or were you able to solve it?

Does the problem still exist or were you able to solve it?

yes, problem still exist.
Please go to:
https://stackblitz.com/edit/modular-forms-qwik-qhds3v?file=src%2Froutes%2Fdate%2Findex.tsx
this project compiles if you comment or delete input const and change the value of the input to value(props.value)

I think that useComputed$ has no track. It tracks it dependencies automatically. See: https://qwik.builder.io/docs/components/state/#usecomputed


UIButton titleColor not working - swift

Hi,
I'm using Swift 3.0.
"titleColor:highlighted": "white"
This is not working. Also i tried UISS pod but error
[!] Unable to find a specification for UISS (~> 1.1.0)
Also there is no class UIButton+UISS in my version from git.
-Thanks !!

Can you paste here your Podfile and uiss.json file?
BTW UIButton+UISS category is not needed.

Hi,
Podfile contents
target 'MyOrder' do
  use_frameworks!
  pod 'UISS', '~> 1.1.0'
end

UISS json i'm using
{

    "Variables": {
        "tint":"#13A9FA"
    },
    "UIWindow": {
        "tintColor":"$tint"
    },
    "UITabBar": {
        "tintColor": "white"
    },
    "UINavigationBar": {
        "Phone": {
            "tintColor":"$tint",
            "titleTextAttributes": { "NSForegroundColorAttributeName":"#13A9FA"}
        }
    },
    "SubmitButton": {
        "backgroundColor": "#13A9FA",
        "titleColor":"white",
        "UILabel": {
            "font": ["Montserrat-Regular", 16],
            "textColor":"white"
        }

    }
}

I'm trying to change title color of UIButton. Please see attached screenshot  of error.
-Thanks !!

Try:
{
    "titleColor:normal": "white"
}

I used
{     "titleColor:normal": "white" }
but app is not loading, only launch screen shows for long time.

I'll try creating a sample Swift 3.x project tomorrow.

Thanks !!
Wow Thanks !!
Works for classes in Swift.
I'm using this function in UISSParser.m to use UISS with Swift 3.0 (referred in issue topics)
- (Class)classFromString:(NSString *)className {
    Class class = NSClassFromString(className);
    if (!class) {
        // if the class doesn't exist as a pure Obj-C class then try to retrieve it as a Swift class.
        NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
         //MyApp has hypen so modifying app name for sake to connect swift classes
        if ([appName isEqualToString:@"MyApp2-2"]) {
            appName = @"MyApp2_2";
        }
        NSString *classStringName = [NSString stringWithFormat:@"_TtC%d%@%d%@", appName.length, appName, className.length, className];
               class = NSClassFromString(classStringName);
    }
    return class;
}

Above is called from this function
- (void)processKey:(NSString *)key object:(id)object context:(UISSParserContext *)context; {
    if ...
 else {
        //  Earlier version line commented
       //  Class class = NSClassFromString(key);
        // For Swift class calling function classFromString
        Class class = [self classFromString:(key)];
        if (class) {
            [self processClass:class object:object context:context];
        } else {
            [self processPropertyWithKey:key value:object context:context];
        }
    }
}

Regarding CocoaPods, can you check the output of pod repo list? Do you have https://github.com/CocoaPods/Specs.git configured as your master CocoaPods repository?

So Swift classes are prefixed with module name.
So for your custom class you need to use ModuleName.SubmitButton in uiss.json file.
Also I recommend using the most recent UISS version which is 1.1.2.
Please let me know if you have any further questions.

@ypawar82 BTW I've created a sample project to confirm, please let me know if you'd like to have it. Thanks!

Sure !! How can I access ?

@ypawar82 https://dl.dropboxusercontent.com/u/530014/UISSTestSwift.zip

Thank you !! Appreaciate !! Works for me !!


top knowledgebase articles not displaying correctly

not showing views at all and not displaying properly on mobile

Can you provide me a screenshot / URL?

Maybe can be userfull a screen shot here.

banktree.co.uk/support
as shown on front page and when you click on view knowledgebase

Here's what I see on the homepage:

And what I see on the view knowledgebase page:

Does this look the same to you? If not, what browser and version are you using?

This is what it looks like in HESK note the Views are populated. I used the same code function to replicate this in the hesk-mod

Yes, from Android 5.0 using Firefox or Chrome on Samsung Galaxy S 5 i see this:

why text can't be expanded and goes immediately head?

@PeopleInside yes get same results as you in chrome and google browser on android phone

To Add the Views:
Amend file /inc/knowledgebase_functions.php
line 118 replace the query with the following  (you need to include t1.views in the select)
/* Get list of articles from the database */
$res = hesk_dbQuery("SELECT `t1`.`id`,`t1`.`subject`,`t1`.`dt`, `t1`.`views` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` AS `t1`
		LEFT JOIN `".hesk_dbEscape($hesk_settings['db_pfix'])."kb_categories` AS `t2` ON `t1`.`catid` = `t2`.`id`
		WHERE `t1`.`type`='0' AND `t2`.`type`='0'
		ORDER BY `t1`.`sticky` DESC, `t1`.`views` DESC, `t1`.`art_order` ASC LIMIT ".intval($how_many));

To fix the Kb article display:
line 150 & 219  remove the width="200"


Incompatibilities for unusable distributions are not combined

e.g.
❯ uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
  × No solution found when resolving dependencies:
  ╰─▶ Because only the following versions of torch are available:
          torch==0.1
          torch==0.1.6.post17
          torch==0.1.6.post20
          torch==0.1.6.post22
          torch==0.1.7.post2
          torch==0.1.8.post1
          torch==0.1.9.post1
          torch==0.1.9.post2
          torch==0.1.10.post1
          torch==0.1.11.post4
          torch==0.1.11.post5
          torch==0.1.12.post1
          torch==0.1.12.post2
          torch==0.2.0.post1
          torch==0.2.0.post2
          torch==0.2.0.post3
          torch==0.3.0
          torch==0.3.0.post2
          torch==0.3.0.post3
          torch==0.3.0.post4
          torch==0.3.1
          torch==0.4.0
          torch==0.4.1
          torch==1.11.0
          torch==1.12.0
          torch==1.12.1
          torch==1.13.0
          torch==1.13.1
          torch==2.0.0
          torch==2.0.1
      and torch==0.1 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.1.6.post17 cannot be used.
      And because torch==0.1.6.post17 is unusable because no wheels are available with a matching Python ABI and
      torch==0.1.6.post20 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.1.6.post22 cannot be used.
      And because torch==0.1.6.post22 is unusable because no wheels are available with a matching Python ABI and
      torch==0.1.7.post2 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.1.8.post1 cannot be used.
      And because torch==0.1.8.post1 is unusable because no wheels are available with a matching Python ABI and
      torch==0.1.9.post1 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.1.9.post2 cannot be used.
      And because torch==0.1.9.post2 is unusable because no wheels are available with a matching Python ABI and
      torch==0.1.10.post1 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.1.11.post4 cannot be used.
      And because torch==0.1.11.post4 is unusable because no wheels are available with a matching Python ABI and
      torch==0.1.11.post5 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.1.12.post1 cannot be used.
      And because torch==0.1.12.post1 is unusable because no wheels are available with a matching Python ABI and
      torch==0.1.12.post2 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.2.0.post1 cannot be used.
      And because torch==0.2.0.post1 is unusable because no wheels are available with a matching Python ABI and
      torch==0.2.0.post2 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.2.0.post3 cannot be used.
      And because torch==0.2.0.post3 is unusable because no wheels are available with a matching Python ABI and
      torch==0.3.0 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.3.0.post2 cannot be used.
      And because torch==0.3.0.post2 is unusable because no wheels are available with a matching Python ABI and
      torch==0.3.0.post3 is unusable because no wheels are available with a matching Python ABI, we can conclude that
      torch<0.3.0.post4 cannot be used.
      And because torch==0.3.0.post4 is unusable because no wheels are available with a matching Python ABI and
      torch==0.3.1 is unusable because no wheels are available with a matching Python ABI, we can conclude that torch<0.4.0
      cannot be used.
      And because torch==0.4.0 is unusable because no wheels are available with a matching Python ABI and torch==0.4.1
      is unusable because no wheels are available with a matching Python ABI, we can conclude that torch<1.11.0 cannot
      be used.
      And because torch==1.11.0 is unusable because no wheels are available with a matching Python ABI and torch==1.12.0
      is unusable because no wheels are available with a matching Python ABI, we can conclude that torch<1.12.1 cannot
      be used.
      And because torch==1.12.1 is unusable because no wheels are available with a matching Python ABI and torch==1.13.0
      is unusable because no wheels are available with a matching Python ABI, we can conclude that torch<1.13.1 cannot
      be used.
      And because torch==1.13.1 is unusable because no wheels are available with a matching Python ABI and torch==2.0.0 is
      unusable because no wheels are available with a matching Python ABI, we can conclude that torch<2.0.1 cannot be used.
      And because torch==2.0.1 is unusable because no wheels are available with a matching Python ABI and you require
      torch, we can conclude that the requirements are unsatisfiable.

We should combine all of these incompatibilities into a single range.

From the pubgrub perspective this should get the same fix is described in https://github.com/astral-sh/uv/issues/2519#issuecomment-2009842106


[firebase_messaging] App not receiving push data when launched from background

On Android and ios push works as expected but only issue I'm facing is when a notification is sent with notification and data field while the app is running in the background I receive the notification in the notification drawer as expected, but when I reopen the app I don't receive any data. This scenario I just described happens with combined notification and data field push but if I only send data field push then I get the desired behaviour. Not sure if this is a bug or how it's supposed to work?
While I wait for a response I'm going to change the way I send push by sending 2 separate push, one with notification field and one with data field instead of combined push.
I'm using firebase_messaging: 6.0.12

Same issue!
Data from firebase_messaging:

App is open: on message {notification: {title: test, body: asdfsdaf}, data: {message_id: notification-dialog, click_action: FLUTTER_NOTIFICATION_CLICK}}

Notification was launched from background: on resume {notification: {}, data: {collapse_key: de.domain.app, google.original_priority: high, google.sent_time:<PHONE_NUMBER>538, google.delivered_priority: high, google.ttl: 2419200, message_id: notification-dialog, from:<PHONE_NUMBER>21, click_action: FLUTTER_NOTIFICATION_CLICK, google.message_id: 0:1583699908553343%e07e47e3e07e47e3}}

It was the same push notification (sent with Firebase Console). You can see that the notification map is empty, when the notification launched from background.

Hi @Omaryasirm
I see there's an open issue addressing the case you described.
Please follow up on that issue,
I'm closing the current one as duplicate.
If you disagree please write in the comments
and I will reopen it.
Thank you


[USM] java tests remove flush cache between tests

What does this PR do?
java tests remove flush cache between tests
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

closing as this is covered by PR


Docs: After creating DNS addon, it's not found among pods

The guide says to create a DNS addon like so: kubectl create -f dns-addon.yml. After this, a corresponding pod should be found via this command: kubectl get pods --namespace=kube-system | grep kube-dns-v9.
However, in my case the latter command doesn't find anything, even though the addon creation by all accounts went smoothly.

@aknuds1 try this
kubectl get pods --all-namespaces | grep kube-dns-v9
My guess is you created it in the default namespace.

@colhom I can't recall right now how I fixed it, but I do know I was recommended using a different DNS addon spec, which is at v10 FWIW. So, this is not a problem anymore. Although service DNS is still not working...


Fix typo in naming of dep in static service

Small typo in service

Thank you.

@wolfy-j у тебя в https://github.com/spiral/roadrunner/wiki/Writing-Services таже опечатка)


I've no idea what the issue is.

The package is not installed.

reboot the computer and it's working now. This tool is so cooooool.

Consider closing the issue?


Remove mirror

I'm one of the maintainers of the @nextcloud VM and we use apt-select in our script to adapt the mirrors to the location our users are in.
Though I got a report that http://ftp.availo.se/ubuntu doesn't fetch (or even contains) all packages and therefore the installation fails.
So, please remove it.

This doesn't sound like something apt-select can control since the list of mirrors is pulled straight from mirrors.txt, with status information being pulled from Launchpad.  Availo is currently listed as an official mirror.
Without more information such as error output that might be specific to apt-select's behavior I'm afraid I'm not sure how I can help here.

Aah ok. Let's close this then.


Feature/cplp 1210/service market place

please also update release notes

@oyo I have fixed all the request changes. Can you please review again.


[adobepass] Add Comcast

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Add support for --ap-mso Comcast_SSO. Comcast varies the page flow depending on the site you are visiting and whether or not you are using Comcast's network. If you are on Comcast's network some sites allow auto-login but some present a login form. There are at least 2 flavors of redirect in use to get to the login page. If you are logging in from outside the Comcast network, you may or may not be required to respond to a confirmation page after the login.
Partially addresses issue #10803

@dstftw, i have tested that the patch works(NATGEO, AETV, TBS), but for the part that is related to accessing from the comcast network, i can't check it.

@remitamine neither can I.

i mean, is it necessary to verify every part of the PR, or we can assume that it's working as the other parts work well(the block is controlled by a condition so it shouldn't break the other parts of the code).

The pull request is updated with the video_id fix as requested. Is there some sort of trace or other testing evidence I can provide that will help to verify the PR?

Up to you. Usually I merge what I've tested myself but here I can't do anything.
Also looking at all these growing if branches I guess it's time to redesign and introduce similar to extractors approach for tv providers.

If it helps, I’ve been using a forked copy of youtube-dl with this addition for the past two weeks with my Comcast account and can vouch that it works.

Also looking at all these growing if branches I guess it's time to redesign and introduce similar to extractors approach for tv providers.

i will try to do so before adding more providers.

@raleeper, Would you like to be listed in AUTHORS? If so under what name?

@remitamine "Rich Leeper" Thanks for asking.
I would also be happy to test the Comcast piece after any refactoring you may do.


Update latest version on pub.dev

@hemanthrajv currently 0.7.0 is released on pub.dev on 09/09/2021 but since then there have been some major bugfixes for Android.
Is it possible to release the latest version to pub.dev as well?

@hemanthrajv Could you please update latest version on pub.dev ? We are also are waiting for this update. Thank you very much in advance for your efforts.

@hemanthrajv please let us know if you have given up on this project, many of us have dependancies on and it seems a simple pub.dev update is too much effort 3 months later.


Add extensions for super simple HTTP service application building

Some people want to have as little code as possible in a single file (Program.cs) to stand up very simple HTTP services (no, I won't say "micro-services").
In other platforms (Go, Node, etc.) it's generally very easy to get an HTTP server up with some basic dispatching to various request-handling functions based on URL path. Doing this in ASP.NET Core today requires slightly more ceremony (Using IApplicationBuilder, RouteBuilder, a Startup class, etc.) but this can be very easily fixed with a couple of new extension methods in Routing.
Super simple HTTP service application:
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;

namespace NotAMicroService
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseUrls("http://+:8080/") // optional, we default to listening on http://localhost:5000/
                .Configure(app => app
                    .UseRouter(router => router
                        .MapGet("hello/{*name}", (req, res, data) => res.WriteAsync($"Hello, {data.Values["name"]}!"))
                        .MapGet("goodbye/{*name}", (req, res, data) => res.WriteAsync($"Goodbye, {data.Values["name"]}!"))
                        .MapGet("{*name}", (req, res, data) => res.WriteAsync($"Welcome, {data.Values["name"]}!"))
                    )
                )
                .Build();

            host.Run();
        }
    }
}

Extension methods we need to add to Microsoft.AspNetCore.Routing to make this work:
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;

namespace Microsoft.AspNetCore.Hosting
{
    public static class WebHostExtensions
    {
        public static IWebHostBuilder UseRouter(this IWebHostBuilder builder, Action<RouteBuilder> routeBuilder)
        {
            return builder
                .ConfigureServices(services => services.AddRouting())
                .Configure(app =>
                {
                    var router = new RouteBuilder(app);
                    routeBuilder(router);
                    app.UseRouter(router.Build());
                });
        }
    }
}

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;

namespace Microsoft.AspNetCore.Hosting
{
    public static class RouteBuilderExtensions
    {
        public static IRouteBuilder MapGet(this IRouteBuilder builder, string template, Func<HttpRequest, HttpResponse, RouteData, Task> handler)
        {
            builder.MapGet(template, context =>
            {
                return handler(context.Request, context.Response, context.GetRouteData());
            });
            return builder;
        }
    }
}

Hey, I saw this watching yesterday's standup today and think this is a brilliant idea. Can I suggest to add an overload which defines the handler as Func<HttpContext, RouteData, Task> or even just Func<HttpContext, Task>?

@dustinmoris yep agreed, would be nice to have that one too. Not sure about going all the way to just Get, Post, etc. methods. Of course, nothing stopping anybody from creating those extensions methods themselves 😄

@kichalla can you work with folks on finalizing a design, and then implement?

cc @rynowak

@DamianEdwards - we already have a bunch of extensions with similar flavour on IRouteBuilder. Hopefully what's there is a good match for what you had in mind or else it's going to get confusing.

Done?? 😄

Too late to the party?
How about adding support to DI in the lambda we pass to the extension method? Very similarly to what we already have when authoring a middleware
.UseRouter(router => router
    .MapGet("hello/{*name}", async (HttpRequest req, HttpResponse res, RouteData data, IGreeter greeter) => await myService.GreetAsync(data.Values["name"]))
)


Added Possibilty to Hide Folders

It would be nice to add the possibility to hide folders unrelated to projects like ".git", ".vscode", ".idea", etc.
Maybe this could be implemented using a ".hidden" file like in Linux. Which would contain all the files and folders to hide from the file viewer, and of course the file ".hidden" is hidden itself by default.
Something like this: https://delightlylinux.wordpress.com/2015/06/03/hide-files-with-hidden/
Thanks.

Hello @lbassuncao
Could you please provide a screen of how it looks in your case right now?

Hi @LonwoLonwo
Of Course. Here it is:

Thanks.

Hi @LonwoLonwo
Of course.
Here it is:

Thanks.

Ok, thanks for the idea!

We discussed this ticket with the team and decided to do the following:
1/ Add the new setting in Preferences (User interface —> Navigator) and in the Navigator toolbar
2/ This setting will allow users to show or hide hidden files: Windows hidden files, dotfiles, .hidden, gitignore


Run py redsea

This PR:

Took a look at the data briefly and created subset: 0.0_data_overview.ipynb
Got the REDSEApy running and added functions for plotting: 0.1_redsea_py.ipynb

Assumption: You have a data folder under hack2022-05-cross-talk
Suggestion: Rename folder TNP_pilot_codex to PilotTonsil_5_z08 to match the actual file and simplify the code.
Example plots:
Expression change at cell level before and after REDSEA

Co-expression

@sandhya212 thanks!


Day 11 - Reference

Select the Day of Content
Day 11
What information is missing?
The content for reference in C++

@subhadipbhowmik Same for this issue as well. Pls assign it to me


[AD-1058] Update version to 1.4.4

Summary
[AD-1058] Update version to 1.4.4
Description
Updated to version 1.4.4
Related Issue
https://bitquill.atlassian.net/browse/AD-1058
Additional Reviewers
@affonsoBQ
@alinaliBQ
@andiem-bq
@alexey-temnikov
@birschick-bq

Need change 2 more files src/main/resources/documentdb-jdbc.properties src/main/resources/project.properties

@affonsoBQ These two files were factored out in a PR. We only need to update one file now.


Alert user when running another instance of DebugViewPP

Hi,
This happened to me many times that I forgot I already opened DebugViewPP, and I'm staring at the screen wondering why there is no output in DebugViewPP..
I don't know what the purpose of a paused DebugViewPP, but maybe popup a MsgBox or something? The status bar's text "Paused" is not easy to noticed.

I see how this can get confusing, but I'm not sure what you're proposing. Popup a message when?

when starting a second debugview instance when there is already one running
This was what I meant. Thanks.

Agreed, I will add this warning message at startup. In fact I think it used to be there, and I'm not sure when it was removed :)

solved, a message pops up now if you start debugview++ twice


Mentor/Mentor Managers BroadCast Message  Page-Admin-App - Sprint 3

Description:

Build the Screen using the style guide.
Integrate Screen with the Backend.

@tamsay comment on this issue so that it is known you have also collaborated

Hello @Honeyloveet, I will work on the mentor section of this issue. Kindly assign it to me. Thank you


Added semicolon to end of first statement in the challenge "Regular Expressions: Find Characters with Lazy Matching"

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #13047

Description
Added semicolon to the end of the first statement in the challenge. This fix prevents the editor from showing a warning when the challenge loads.
Before fix:

After fix:

@Greenheart Thanks for merging the PR, and for helping me get started! :)

@ankitdwivedi23 Sure, no problem! I'm truly impressed by your perseverance in fighting the development environment! Most would have quit :smile: :star2:


settings/parameters dialog close button has no accessible name

Issue Description:
The settings/parameters dialog does not have an accessible name for the "X" button used to close the menu.
WCAG Criteria:
SC 4.1.2 Name, Role, Value
Screenshot or Screen Recording:

Notes: can use aria-label to give the button an accessible name. "close" should be the name because it will be clear from the context that it is intended to close the dialog that opens.

Closing as this UI element is now deprecated