Is there a way to clear all cache and cookies (equivalent of pressing ctrl+shift+del in firefox and selecting every checkbox) using imacros?
I know about the CLEAR command but I have found that it doesn't clear everything. Thank you.
Use the CLEAR command so that times of website response measurements are not influenced by using local cache data:
The code "CLEAR" without quote actually deletes all content. Make sure you do not run this function in incognito mode. This is because incognito do not delete content in as much as it doesn't save. But some sites can still pick your data on incognito mode. To make your script clear all data, run the script in a normal mode.
Related
I am trying to use Coldfusion CFPRINT to print UPS labels to a network printer. The starting labels (png files) are great and I can print them locally to the zebra printer and they print and work wonderfully. The barcodes produced by CFPRINT however are of such poor quality that a barcode scanner cannot read them. My research shows that Coldfusion uses the jpedal java library which resizes the images to 72 dpi - which is just not crisp enough for a scanner.
I read about using a jpedal setting: org.jpedal.upscale=2 but I have no clue as to where you would utilize this.
Any suggestions on how to fix this CFPRINT resolution issue using Coldfusion?
(Just to add a bit more detail to the comments)
That is a JVM argument. There are several ways to apply it:
Add the setting to your jvm.config file manually. Backup the file first. Then add -Dorg.jpedal.upscale=2 to the end of the java.args section. Save the changes and restart the CF Server. Do not skip the backup step! Errors in the jvm.config file can prevent the server from starting. So it is important to have a good copy you can restore if needed.
Open the CF Administrator and select Server Settings > Java and JVM > JVM Arguments. Add -Dorg.jpedal.upscale=2 to the end of the arguments. Save the settings and restart the CF server.
Again, I would strongly recommend making a backup of the jvm.config file first. As #Mark noted in the comments, some versions of CF have been known to mangle the jvm.config file, which could prevent the server from starting. But as long as you have a good backup, simply restore it and you are good to go.
IIRC, you could also set the property at runtime, via code. However, timing will be more of a factor. Their API states system properties must be set before accessing JPedal. The docs are not clear on exactly what that means. However, the implication is the system property is only read once, so if you set it too late, it will have no affect.
// untested
sys = createObject("java", "java.lang.System");
prop = sys.getProperties();
prop.setProperty("org.jpedal.upscale", "2");
sys.setProperties(prop);
Side note, I was not familiar with that setting, but a quick search turned up the CF8 Update 1 Release Notes which mention this setting "improves sharpness, but it also doubles the image size" and also increases memory. Just something to keep in mind.
I used to use iMacros all the time and to make the macro wait for the page to load it was as simple as:
SET !WAITPAGECOMPLETE YES
However now this doesn't work and it seems from the iMacros website http://wiki.imacros.net/!WAITPAGECOMPLETE that this feature isn't even compatible with Firefox anymore.
What is an alternative way of doing this other than waiting a specified amount of time? Surely there must be, why would subsequent version regress?
Thanks in advance
P.S. Reverting back to IE is not an option
Use
SET !TIMEOUT_PAGE 120
Then you will increase waiting time for a page to 120 seconds.
im using opencart 1.5.6.4. I just cleared the cache and made a few changes mentioned in http://cartadvisor.com/blog/2013/11/05/speed-opencart-store/ to make my site speed.
now suddenly i get a list of jumbled characters. i dont see any error in the error logs and the site doesnt work
this is how the site looks now
i also replaced the htaccess, language files and reverted all the changes done but still i see the site like that. i tried in several PCs it doesnt work now.
any reason why this has happened?
You'll need to deactivate the OC output compression, go to System -> Settings -> Server and set "Output Compression Level:" to 0 - that worked well for me!
Suppose I have changed html file. What is the best way to view results? Am I able to view results right in IDE (WebStorm)? Or I have to open browser by using Alt-F2?
WebStorm doesn't have internal preview, so you need to verify the results in the browser. You can keep it running and just switch to the window and refresh the page, in WebStorm you can enable an option to save files automatically on frame deactivation.
Update: see also the new instant preview feature.
Still doesn't as, of 5.0.2, allow for in IDE browser windows, you you have to keep flipping back to browser to see changes, which is a tad sucky. No idea why they don't have this, its not exactly an unknown technique.
Today, no matter what I did, my application just would not recognise a change I did to a file I uploaded. I even put a cfabort at the top of the page and it just ignored it.
Now, this is a production server, so there were some things I normally have to do for the fusebox framework to load the new pages. However, all the usual processes failed and I even tried numerous others. Let me list them:
Normal Process:
&fusebox.parseAll=1&fusebox.password=whatever <- Did not work
&fusebox.load=1&fusebox.password=whatever <- Did not work
Other things I tried:
* changed mode from production to development-full-load <- Did not work
* called onApplicationStart to reset app <- Did not work
* changed the application name to reset app <- Did not work
* deleted parsed folder and regenerated <- Did not work
No matter what I did (they may have been more that I just don't recall at present) nothing would refresh the page. The only thing that worked after I was at my wits end, was to stop the Railo server, restart it and then run the thing I tried first again, being:
&fusebox.parseAll=1&fusebox.password=whatever
That worked. So my only assumption can be that somehow, somewhere in the one of the applications, the cached code was being used to regenerate the parsed files instead of the actual updated file.
Has anyone experienced this before and do you have any solutions to avoid this. I can not keep restarting my production application just to update a changed file.
Thanks
From what you've said it sounds like Trusted Caching may be turned on, which is an odd name but basically means "I trust that these files will not change, so don't bother checking" or something like that. The main thing is it doesn't look at your cfm/cfc files for changes, which is faster, but of course very annoying when you make changes.
On Railo, that can happen at the per-mapping level, so first thing is to check all your mappings to see if the "Trusted" option is enabled - unless your site is high enough traffic that it's beneficial, for a Fusebox app it's probably more hassle than it's worth - so for any relevant mappings, unless you specifically need it, go ahead and disable it.
There is also a similar global caching option - in Railo Web Admin, go to Settings>Performance/Caching and most likely you want to have "Inspect Templates" set to "Once". If it is set to "Never", this is same as Trusted cache, which again is faster but not best for a changing site.
However, you may have noticed there is a "Clear template cache" button below - if you prefer to keep it on "Never" you can press this button each time the code changes, and it will rebuild the cache with the latest files.