- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Admin
Despite the abysmal interface, Super(c) as it likes to be known, is a pretty decent piece of software.
It does what it claims to do: transcode pretty much any music/video format into any other music/video format.
I've often used it in the past, I've never had any spyware or whatever. The EULA warnings are weird, but they refer to the inclusion of 3rd party software - almost all open-source, eg ffmpeg - over which the author of Super(c) has no control.
The usability of both the site and the software is something worth nuking from space, but the core function of the product is excellent.
Admin
RTF? Fucking hell. I'd just assume you print-to-PDF and post that instead - PDF.js renders those fairly quickly and faithfully enough that I don't usually need to jack around with Adobe unless I want to print one.
Admin
With other words: The stuff the have written themselves (The GUI and the installer) sucks. The stuff they have copied from other people (The core) runs fine.
Admin
Admin
Admin
I like that your code is much more elegant, yet still exactly as bad. A+
Admin
Wow. I feel like I need to run a malware scan just from reading that EULA.
Admin
SA-WEET!!!!
It's a pity though - this is so wordy - they could just shorten it to "All your computer are belong to us".
:-)
Admin
re-read the posted code. There are 4 different domains separated into groups of 3. The order doesn't change, it just looks like it does because of the crazy groupings.
Admin
Good point!
Admin
But this removes the WTF, because then the load balancer works. (The best feature of the original, IMO, is that if your clients' clocks are synchronized the same server gets hit all throughout the second, then gets two seconds of dead time.) Although at least you didn't hoist the % operator...
Admin
Admin
Regarding the EULA, just WOW.
"If you install our software, a number of third party applications, whose names we don't even know, will also be installed and we can't help you remove them."
Pure evil.
Admin
Why so many people suddenly can't count... it is 4 servers and a 4 seconds pattern, duh
Admin
Jesus what a mess ... and you've forgot a domain ...
var domainz = ['http://www.erightsoft.info', 'http://www.erightsoft.biz', 'http://www.erightsoft.org', 'http://erightsoft.podzone.net']; domain1 = domainz[rslt1%domains.length];
for those of you who want to have easy maintainability
Admin
What I don't get is all the people trying to improve the JavaScript load distribution code without suggesting using something like DNS round-robin for load distribution instead.
Captcha: the consequat of using DNS round-robin is that you still don't have load balancing.
Admin
Admin
To show off how well the code can be changed while still preserving the original WTF. It's a bit of an exercise.
Admin
There is only a 'randomness' between the three lines because the spacing is wrong the same group of four repeats 15 times. my solution follows and is not very good. It fails to implement proper pseudo-random distribution, properly account for leap seconds etc. etc. it should however be O(1) rather than O(n) after trading off cargo cult code for an arbitrary sized array.
var hAServers=[ "http://www.erightsoft.info" ,"http://www.erightsoft.biz" ,"http://www.erightsoft.org" ,"http://erightsoft.podzone.net" ]; var Digital=new Date(), sec=Digital.getSeconds(), rslt1= (sec%hAServers.length); document.write("<iframe width='88%' height='400' noresize scrolling='no' frameborder='0' marginheight='0' marginwidth='0' SRC='"); document.write(hAServers[Digital.getSeconds()]); document.write("/S6Kg2.php'> </iframe>");
Admin
Why not getMilliseconds()?
Admin
There is still a little performance waiting to be squeezed out:
Oh and by the way you forgot .net
Admin
I wish there was a like button for this comment
Admin
Crafted together a smarter version because i can: 'http://www.erightsoft.' + ['info', 'biz', 'org'][Math.ceil(Math.random()*new Date().getSeconds()) % 3]
Admin
Coming back to this in 2017, they DID improve their js even further. Now all the lines read
If only the product wasn't so great... I have downloaded and installed SUPER and I use it quite often. :(