PHPStorm slow on ONE specific CodeIgniter Model - sql

So my I swear by PHPStorm, I have been using it for over a year now and have had no issues up until now.
I have now come to slight problem in the form of sluggish editing.
I have a model file that is just under 4000 lines of code - nothing too big, but PHPStorm seems to be having some trouble with it. My other models seem to be just fine, but this one goes sluggish every few seconds while editing. Meaning, it will let me start typing and editing the code, but then it will freeze briefly for a few seconds and then complete the actions I entered... like lag.
I am assuming it has something to do with the fact that it's an SQL file since I have other control files that are larger.
Ultimate, I guess I can reduce the model in size to be separated into other models, but I would rather not.
Anyone else have experience with this?
Thanks
B

Related

How can I improve page loading speed when its empty?

This is somewhat of a hard question, as I've been working to fix this for quite some time now, but I am running out of ideas.
The problem: The loading time for the page takes to long. It looks kinda "creepy". I've already compressed files, moved them together and all of this. But I am having a major problem, which I found no answer of:
https://i.imgur.com/jKzc7uy.jpg
I've removed some parts which delayed the page loading already. However, as you can see, from 600ms to 800ms and ~900ms to ~1500ms is completely empty. Nothing is loading. Thats almost 800s of a total of 1.88s loading time, which the page doesn't do anything.
How can I remove that empty space?
You can use this free tool provided by Google for ideas on improving page loading times for mobile and desktop:
https://developers.google.com/speed/pagespeed/insights/?hl=en&url=https%3A%2F%2Fm.imgur.com%2FjKzc7uy&tab=desktop

Excel VBA App stops spontaneously with message “Code execution has been halted”

I have exactly the problem described here:
From what I can see on the web, this is a fairly common complaint, but answers seem to be rarer. The problem is this:
We have a number of Excel VBA apps which work perfectly on a number of users' machines. However on one machine they stop on certain lines of code. It is always the same lines, but those lines seem to have nothing in common with one another.
If you press F5 (run) after the halt, the app continues, so it's almost like a break point has been added. We've tried selecting 'remove all breaks' from the menu and even adding a break and removing it again.
We've had this issue with single apps before and we've 'bodged' it by cutting code out of modules, compiling and then pasting it back in etc.
The problem now seems to relate to Excel itself rather than a single .xls, so we're a little unsure how to manage this.
I have managed to resolve it with the accepted answer, but now, when I send the VBA file to my colleagues, they have the same problem.
My question and my problem is - any ideas what to do, as far as it is really not a good idea to go to everyone and to debug every time. And I somehow do not want to add Application.EnableCancelKey = xlDisabled to my macros.
Sounds like a ghost break. File saved one time with a break in there. What has worked for me in the past was to remove any breaks you see and manually step through the code (F8) through completion and then save file. Prob now necessay to step all the way through but I like to know I went all the way and didn't miss any.

PS PDF Conversion text issues

having a bit of a weird issue that I can't for the life of me figure out how to solve. It may just be a blond moment on my part but I've been scratching my head with this one for a while.
Basically I've made a load of PS PDF files in CS6 and used Acrobat Pro DC to merge the files into one big file. Granted this may not be the most efficient way to work with PDFs but it seemed like the way that made the most sense to me. Anyway I've been doing this for a while and I've not really had any issues however when I did it today I hit a little snag. Several pages in the document come out with their text all mangled. The odd thing is that the text appears to look fine in the DC viewer but if I print them out or view them in Windows Reader they look deformed.
I've tried a load of different ways to try to solve the problem but I can't really find the answer I'm looking for. I've tried a number of different file formats and different printing settings (which I now realize are useless as it's messed up in Reader as well as in print). I've also tried rasterizing the text which seems to work but obviously the text becomes unselectable in the PDF views so I'd prefer to use this as a last resort and find the actual root of the problem.
I can only assume that it's an issue on photoshops side as the majority of the pages come out fine and they all use the same base template and same fonts.
Any insight into this will be really helpful.

Intellij IDEA 14 Ultimate cursor jumping around in Java Code when hitting Enter from time to time

Sometimes when i hit Enter behind a line to write the next line my cursor jumps down like 300 lines of code within the same Java class which is absolutly annoying.
It jumps just to anywhere within the same file but always somewhere faar below the line i hit enter behind ... so its not jumping to a definition or something like that - it literally just places the cursor to a random point.
Did anyone ever had a similar experience? (I cant find anything on the internet hence i think its either a very easy to fix thing or something for the support).
Like could this be a side effect of defined live templates or something like that?
ANY suggestion could help since i tried out anything i could think of (code completion, live templates, editor settings - nothing looks like it would trigger this behaviour)
Note: I dont like this question at all but i am realy lost right now.
I have not seen any one run into this nor have I seen a bug report on such (and something like that would be a critical). I recommend the following steps:
Upgrade to the latest v14.0.3 if you are not at that version
Invalidate your caches and restart, then wait for IntelliJ to re-index your project (this is a bit of a long shot, but worth the couple of minutes it takes)
File/Application > Invalidate Cache
Disable all third party (i.e. non-bundled) plug-ins and restart
My strongest suspicion is that a 3rd party plug-in is causing the issue.
If this solves the issue, isolate the plug-in causing the issue and contact the developer.
If none of the above work, provide as much detail as you can about the issue as #Makoto suggests. What type of file; what are you doing; OS; IDEA version; etc, etc.

Problems with KML layers

My map has 9 layers which can be toggled on and off by means of a tick box. Each layer is loaded in by JS. My problem is that only 5 of the nine load when their tick box is active. Is there a limit on how many kml layers can be loaded in to v3 api? In total there is less than 1mb, though they do have quite a few custom marker icons.
Thanks
Darren
I am having a eerily familiar-sounding issue. I am working with KML files in similar fashion (an array of map layers as KML files are picked/loaded by JS via a tick box, not big, although quite a few custom marker icons, long descriptions, etc..).
I have just now become aware of what seems like a NEW limit. Wish I could be more help, but I will share what I know.
In my case, the exact same code was working fine as far back as June 2011 and the map has been viewed/used by 1000s of people. It's a custom v3 api map for an annual event. The 'legend' has about 34 layers containing lines or markers, classified by type, any of which could be 'on' at any given time. The default, and most commonly used, setup had about 12 "layers" on. Only one of the layers (happens to be the last one in the array when it loads) is one that changes significantly from year to year. It's also the most important one. If people were getting significant errors in June 2011 in some browser/OS, I would have heard about it. It was this file that I sat down to "quickly" edit and re-upload in time for the 2012 event. I hadn't even touched it before I noticed that something was wrong. I haven't needed to look at the map since last year, so unfortunately I can't be more precise as to when this started happening.
Findings/Conclusions/Ideas?:
dumping the browser cache does nothing
Through trial and error, I found that it will actually load up to 6 "layers", but it seems to depend on the size/type/juju? of any given kML file in the comma delineated list. But, like you, it's usually around 5 or 6.
Oddly, the KML files themselves seem to be there in the background. Invisible markers will affect the mouse pointer "on hover over" and their info boxes will show up when clicked. Strange.
This problem is definitely less than a year old for me.
If not somehow related to some new action of Google's (in which case I would suspect we'd hear about it or have found something in the API forums..) perhaps it is related to some new limits placed by one of our servers and is simply a coincidence?
---> hmm. I recently had a wordpress site's menu item limit issue and got my hosting provider to change some suhosin request limits(?) I can try migrating the source file to another server, and see if it works from there. If it does, that would be a significant clue, and I will report back.
Other than that, I have no idea. Just thought I'd share what I've learned and hope someone else has some idea of what's going on.