I know this isn't a coding question but i wanted to throw it out there as the wealth of experience in the forum is high.
When we perform a search for the first time it's slow and it is fine after this.
Anyone got any ideas about why this is?
I think it's something to do with the cache being cleared out and was wondering if anyone could shed some light on how to get around this?
Thanks
More than likely caused by the first "hit", the server is doing a lot of background processing. This would be the same as a webpage or database query. The initial execution may be the slowest due to the volume of work it has to initially process, afterwards the data is cached.
Related
I want to input the past couple of years of my high school soccer team's stat books into a spreadsheet so I can run my own analysis on it using Python in Google Colab or a Jupyter Notebook. The problem I have right now is that I don't know what the best way of aggregating it in Excel is. I have a record of basic stats such as lineups, shots, saves, goals, assists, etc. for each individual game (standard box score stuff you'd expect from a high school team who uses a JV player to keep stats). But what would be the best way to input all of this in a way that will make it easy for me to analyze? Obviously I can't make a separate Excel tab for each individual game (there are hundreds of games), and I don't think logging them all into the same tab would be the best thing to do either, but I don't what I should do in order to solve this problem. This seems like a simple problem, and I'm probably missing a really obvious solution, but if anyone could give me some advice, I'd be very grateful. Does anyone have any experience doing anything similar? Thanks for taking the time to help.
I haven't tried anything yet because I wanted to figure out a good method before I put a bunch of time into this.
need some help here please...over the last 1-2 weeks, I've been getting regular delays in my translations. (It's been working correctly for months, without timeouts) I'm getting:
FetchError: network timeout at: https://translation.googleapis.com/language/translate/v2/detect
I'm using node.js framework, and I see several of these per day now, each day.
(please note, I am not seeing any errors on "translate", but just on the "detect")
any help possible?
ok so after looking long and hard, and nobody answering...I decided that I would try something else. I went to the v3 interface, which allows for detection and translation in the same call, and I avoided the detect interface of v2. This looks like it is working, as the delays I faced from detect call ( and not translate ) are gone now. Hope someone else can benefit.
I'have just receiving suspicious activity recorded in AbpAuditlogs.
AbpAuditLogs.ClientIpAddress contain this values:
;nslookup kHzJEuKV|nslookup kHzJEuKV&nslookup kHzJEuKV;
;nslookup V1UFHHC2|nslookup V1UFHHC2&nslookup V1UFHHC2;
-1 OR 2+329-329-1=0+0+0+1 --
(select(0)from(select(sleep(50.205)))v)/*'+(select(0)from(sel...
'+response.write(9330258*9027509)+'
;nslookup PICtOsP5|nslookup PICtOsP5&nslookup PICtOsP5;
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))...
;nslookup PrqBZfl3|nslookup PrqBZfl3&nslookup PrqBZfl3;
anybody can help? Is my application under attack?
abp version 2.3.0 , mvc singalePageApplication
Take a deep breath first. Look at the sky. Imagine you are floating on a big lump of rock in a vast universe. Good, now back to the logs.
Do they make sense? What is e.g. this: -1 OR 2+329-329-1=0+0+0+1 --? This is a SQL payload meant for searching for SQL injection vulnerabilities. It does no harm, it is meant only for reconnaissance. The next one? SQL too. This time blind SQL injection with a sleep inside. Will do no harm too. the next one? Code injection? Next one. Command line call. Next one - ok, the parentheses make little sense to me...
Someone is scanning you. Does it mean someone is attacking you? IMHO not yet. The stuff they are doing is meant for reconnaissance. There is no attack happening yet.
BTW. People do sometimes stupid things when they see stuff like this. Good thing you stayed calm.
How do browsers deal with a full cache? Presumably they all make some kind of decision on what to throw away based on file size, expiration time and so on? Anyone know where I can find details? Google just returns a load of pages about manually clearing caches.
http://en.wikipedia.org/wiki/MRU_cache
There are several algorythms. Most Recently Used is the simpliest.
http://en.wikipedia.org/wiki/Cache_algorithms
How do you get yourself in the "zone" for programming? As a CS undergrad I've been finding it difficult to get focused in. I think part of my problem is I do not have "proper" workspace living in the dorms. Any ideas or tips? (Perhaps good thinking music, whiteboards? etc)
The best way I found yet is to turn off the Internet. Since opening my browser and browsing to some random site has become almost a reflex, I deactivate my network card for the time I need to work. This way I have the time to realise what I am doing before it is too late. The Internet must be the number one "Zone Killer" I know...
Truthfully, nobody can tell you about you, they can only tell you about them. That may help, or it may not.
I've seen people able to get "in the zone" on a commuter train car. I've seen people who have it broken when the air conditioner kicks in.
Here's what works for me:
Need no people talking to me. I can't keep the ideas juggling while explaining them or having other ideas tossed in to the mix. I know, pair programming can be great - but I've never been "in the zone" while pair programming.
Music is okay, but no playlists with wildly different styles, or songs I absolutely love.
It almost always kicks off when I'm frustrated by something but then have an idea how to solve one aspect of the problem... then things flow from there.
I need a desk clean enough that nothing on it distracts my attention and makes me think - no dev magazines with interesting tech on the cover, no dishes with mold on them, etc.
I need about 20 square feet to get up, pace for 2-3 steps, then sit back down. Too much room gets me too far away from the computer. Too little room and I feel confined.
As soon as I solve the problem, I'm normally out of the zone. A phone call or person at my desk will break it. Stopping to answer email "toast" will kill it too.
But again, this is me. All of this may actually be the reverse for you - You'll find it eventually, I'm sure. Just don't give up, and don't take personal anecdotes and advise or internet blog posts as absolute truth - "the zone" is very much a personal thing.
One small thing which helped me a lot was to get noise cancelling headphones. These are a bit pricey, but being able to switch on silence is great!