compressed / minified prototype file - prototypejs

I need a compressed minified prototype file.
Can anyone help me?
Thanks

As far as I'm aware, there's no official or hosted minified build of Prototype. You can run it through jsmin easily enough, but then you have to host it yourself. Or as Tomasz pointed out, you can use the unminified (but gzipped) version from Google's CDN.

Google does not hurt: http://prototypejs.org/2008/05/27/prototype-hosted-on-google-s-servers
(corrected link)

FWIW, I ran prototype.js (v. 1.6) through UglifyJS using http://jscompress.com/, and started getting a bunch of javascript errors. So Google is clearly the way to go.

I found the solution and minimized this file, it went from 130mb to 67 mb. Although I did very minimal testing, everything works on my end with no firebug errors. Please Let me know how it works on your scripts.
Heres the link!
You have to upload the entire file on the right hand side.
http://shrinksafe.dojotoolkit.org/

Related

Cordova file plugin can't access the application directory on windows 8

Please help, I can't seem to get an answer for this anywhere.
If I use the Cordova file plugin to try and access the application directory on Windows 8, it always fails! Here is the basic code I am using:
window.resolveLocalFileSystemURL(cordova.file.dataDirectory + 'www/assets/images/image.png', gotFile, fail);
I have been using the same basic code on the Android and iOS versions of the app for some time now with no problem so I don't understand why the Windows 8 version doesn't like it.
Through console logs I can see that the link generated is in fact correct and it's actually exactly the same as one used to append the same image to the page (which works fine):
<img src="ms-appx:///www/assets/images/image.png">.
Can anyone please tell me why I can't use cordova.file.applicationDirectory with Windows? I know that folder is read only, I am just trying to read from it.
Note: I can use window.resolveLocalFileSystemURL with the cordova.file.applicationDirectory no problem at all, it works as expected. Its only the cordova.file.dataDirectory that always fails for me. The closest answer I could find was some people having trouble with the image paths of images saved from the camera plugin but that seems to have been a bug that was fixed by Cordova. If this is not a bug also then I'm assuming there is something really simple I can do to make the resolveLocalFileSystemURL work?
Thanks.
I found a solution to my problem by using 'windows.storage.storagefile', I had success with the following code:
Windows.Storage.StorageFile.getFileFromApplicationUriAsync(new Windows.Foundation.Uri('ms-appx:///www/test.html')).done(win, fail);
More info can be found here: msdn.microsoft.com/library/windows/apps/… I hope this helps some other people struggling with Windows 8 as I spent quite a time scratching my head about it and trying lots of different ways.
Cheers,
Stuart

Impossible to download VM on Modern.IE

Something is broken on https://dev.modern.ie/tools/vms/
After selecting the VM that I want to download, the links do not appear...
And there is a js error in my console log...
ReferenceError: i18n is not defined
I am experiencing the same issue.
I have found this gist with the direct links to the downloads:
https://gist.github.com/zmwangx/e728c56f428bc703c6f6
Only mac links but maybe the others can be built from the structure.
This Github project has the VMs available through a bash script. I'm trying to download one now, and it appears to be working. Appears to work on multiple platforms.
This is fixed since around 7.00am PST.
The issue was a missing file in the CDN that didn't get pushed (i18next\i18next.js).

require-less throwing lessc error in firefox

So I'm working with RequireJS and BackboneJS. I can get everything to work fine in Chrome but when I load up in Firefox I'm getting that lessc is not defined. Obviously pulling out the less files will prevent the error from occurring. Does anyone have any ideas why require is unable to load lessc in firefox but its doing fine in chrome?
Screenshot:
http://screencast.com/t/WenocFdCA0V
Video w/ lessc not being defined in Chrome but not Firefox
http://screencast.com/t/ac96qZrpQb3R
Let me know what other info may be useful.
Thanks in advance!
Seth
less.js is broken, because it uses loadStyles before it defines it, and Firefox stopped hoisting functions according to the spec. There are probably more such mistakes, but this is the first one that is triggered during execution. Please note that the minified version is not affected because of the minification rewriting the code.
less-require is similarly broken, as it contains less.js and therefore contains the same bug.
You might want to replace lessc.js in require-less with the 1.5 beta or master version of less.js to work around this, or wait for upstream to officially release it and require-less to pick it up.
However, it appears that lessc.js is a modified version, so it isn't likely as easy as replacing the file. You would need to merge the changes back.
It might be easier just to move the affected latedefs around until it runs correctly instead of upgrading to a later less.js version.

Generate offline documentation for Ruby source in HTML

I'd like to have all the Ruby documentation locally.
I've seen this accessing ruby standard library documentation locally
but none of the answers give a clear, simple solution (as far as I can see).
Any suggestions?
Here's the easiest way I've found.
Go to http://www.ruby-doc.org/downloads/ and download your version
Unpack (click on it)
Open index.html

Firefox + jssh build

Has anyone been able to get anything past 4.0b1 of firefox either nightly or releases to build with jssh enabled in the .mozconfig, I get the error .js component without matching .manifest and if I change the rules I get a missing header file, which if I manually copy to the jssh directory and then build gives many many compile errors, was wondering if anyone knew what was going on with jssh as I managed to build it for 4.0b1 and it worked fine (except for an issue involving td tags and events within those tags). I just hope mozilla doesn't discontinue jssh. Any answers would be appreciated.
Looks like it is known, but may not be fixed.
for JSSH users,
we have created a solution over MozRelp that simulates JSSH.
It's also very fast, since it execute JS on the fly and avoid execute it from a HD File.
Downloadable extension: https://s3-us-west-2.amazonaws.com/abstracta/WatiN/mozrepl-jsshv2.6.xpi
Source: https://subversion.assembla.com/svn/mozrepl-jssh
regards,
Fabián Baptista

Resources