NCBI RemoteDisconnected error when trying to download genomes - csc

I'm triying to download some bacteria genomes using the ncbi-genome-download command. But after a while the following error apear:
ERROR: Download from NCBI failed: ConnectionError(ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
I have been looking for a possible solution, but aparently there is nothing I can do, it's NCBI side. I need the genomes to clean some contamination of my reads for an RNA-seq. Any idea how to fix it or any alternative solution?
Apparently NCBI have less trafic on weekends and at night so some people suggest to try it at those times, but didn't work either.

Related

Google AutoML training error / unable to deploy model

I have a multi-label dataset with 727253 labeled images. Smallest label occurence is ~15 and largest around 200000. Model training started ~18h ago and failed now with the following message:
Unable to deploy model
cancel_lro() got an unexpected keyword argument 'min_nodes'
Pipeline d884756f14314048b7a036f5b07f0fd2 timeout.
The automatically generated email contained the following:
Last error message
Please reference 116298312436989152 when reporting errors.
Is this already known? Also I chose the free plan (1h) to train. Do I need to increase this to work properly? Is there any way to see a status during training to predict large waiting times without outcome? (I tried the API but there was no percentage or anything like else, only for finished models.)
Thanks in advance!
This seems like an internal error. The main problem seems to be that the pipeline timed out. As part of the timeout it tries to do some sort of cleanup and this cleanup seems to have a bug.
My recommendation is re-try the pipeline.

stata file C:\Users\admin\AppData\Local\Temp\ST_1i000002.tmp not found

I have a question about Stata.
I am running the command geocode
I refer to the Stata Journal and execute the following command:
geocode, address(resp_street) city(resp_city) state(resp_st) zip(resp_zp)
Then, I got an error message:
file C:\Users\admin\AppData\Local\Temp\ST_1i000002.tmp not found
Does anyone know what happened to my Stata and how to solve this problem?
Most likely, you have found a bug in the program. The error message, as Nick Cox explained, comes from Stata's attempt to open a temporary file that it was supposed to have created. It did not, which may have happened for a variety of reasons.
Looking at the source code, I see a number of places where creating such a temporary file may have failed. (To Stata experts, the authors of geocode used capture without ever trying to parse the returned error code. Palm face.) Most likely, the error happened when geocode tried to access a fixed URL at Google http://maps.google.com/maps/geo?q=, which does not seem to be supported any longer.
You can set trace on to see where exactly the error happens, and write to the geocode authors explaining what the error was. That's as far as you can probably get at this point.

c++ mysql_query update returns error if content is similar to existing (but no way to differentiate from normal error)

I'm trying to set up an error detection system in c++ when doing a mysql_query, to check whether the query failed and if so try again (I'm using the mysql libray for Linux). The function mysql_query returns an int which is set to zero for success, and non-zero if failed (the error numbers are available at https://dev.mysql.com/doc/refman/5.0/en/mysql-query.html).
My first problem is that mysql_query only returns 0 or 1 for me, and this would be fine until I try to update a database entry with a similar content to what's already in the database. It also returns an error for that, which is fine on the principle, but as I can't differentiate it from an normal error, my current error detection system would try to repeat the query until it stops returning an error, which never happens. You'll tell me I could check what's in the DB first and then compare it to what I try to update before doing the query, and you would be right, but the code is already very complex and adding this level of complexity on the top would take quite some time.
So I'm wondering if there is a simpler answer to that? Thanks
Like #Mat wrote just use mysql_errno() (see Mysql Docs)
It returns 0 for success or an error code for errors.
Just so you guys know where this error actually came from, if you ever have the same.
I repetitively had mysql errors 2013 and 2006 when performing queries from different threads at the same time, but only after running a certain number of requests. I tried pretty much everything explained here.
Apparently for some reason the connection crashes and I can't do much to avoid it. The only thing that worked for me is to enable automatic reconnect using mysql_options and the option MYSQL_OPT_RECONNECT. It seems like a work around, more than a real fix, but at least my program doesn't crash now!

Test Environment on my PC for php website

I've spent the last few days trying to setup a test environment on my PC using WAMP to test a basic php/html website I have that I want to make a few basic changes on.
Now I am no programmer, infact a long way off, I dont know code at all. Its partly for this reason that I want to do changes in test mode, so ensure I dont screw things up.
So I finally got wamp up and running, but Im getting fatal errors all the time. I thought Id just dump all the files in the www/ folder and Bob would be my uncle. Of course its not that simple.
Is there any easy way I can do this instead of using WAMP?
After changing some of the path codes in the index.php file, I am now getting this error
( ! ) Fatal error: Class 'AutomotiveClass' not found in C:\wamp\www\repairservicemanuals.com\index.php on line 5
I dont get it because there is no file called AutomotiveClass, however there is a file called Automotive.Class .
Any help would be appreciated, either with what im doing wrong above, or a simpler way I can do this instead of wamp perhaps??
Thanks in advance from a n00b!
You should look into index.php at line 5.

Auto download file from FTP and check against existing file

I have an internal company need to create some sort of application which does the following daily at a specific time:
connects to our company's internal ftp url (not a secure url)
downloads a file with a specific file name
checks the newly downloaded file with the file downloaded the day before
throws an error if the file is the same or else displays a message saying all is good (or sends an email or something with that notification)
That's it. All i need to do is to check and make sure the file on the ftp is different from the day before.
Can anyone recommend an easy way of doing this? I've tried googling for a solution and not quite finding a straight answer.
I've been out of programming for the last 8 years but I still remember visual basic 6.0 and visual c++.
Please guide / suggest as you see fit.
Thank you :)
For vc++:
You could use any ftp client library for downloading a file. Take a look at this SO question which could be useful to you C++ FTP Library? . Then you need a proper way to chech the time. I think your program might need to run at statup and check for the system time at a specific interval if the time is due then download the file. For this you can take alook at this question How to get current time and date in C++? . Finally there are numerous ways for comparing the file and outputing the result, for starters is suggest you use the std.