- 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
That first one brings back memories... thought it'd be anonymised more but if TDWTF will take that level then I'd better write up my own submission.
Admin
Contact the sender =/= reply to this email. The company sends out automated emails without a monitored inbox, but I'm sure they also have contact information.
Admin
"The determined Real Programmer can write FORTRAN programs in any language."
Case 1 shows that one can write shell scripts (e.g. bash) in any scripting language (e.g. Python).
Admin
They should generate captchas from the passwords and send out these, maybe with reversed letters.
SSL is definitly to unsecure as we've seen with the heartbleed bug.
Admin
A Python script should generate a Bash script, and then run it. Obviously.
Admin
Well, one but, admittedly serious, was found. Earlier versions are secure. New versions are secure. This is open source, and it may contain bugs, as we've seen, but the scrutiny of the Internet experts make it more secure in the long run.
What do we know about holes in closed source products, exploited by big actors like NSA and China?
Admin
God, that legit site mail was a tough read...
And, anyone care to explain the scripts? I'm not very bash/Pyhton-literate. Is the guy trying to print up to 1000 to the console by writing files?
Admin
i am not secure, but i want to be.''
ignorance will not make me more secure''no product available will make me completely secure''
if i cannot understand the entirety of my system, i can make no claims to it's security''just because knowledge is denied, does not mean that knowledge is protected.''
i am not secure, but i want to be.''Admin
The main issue was that he was writing a Python script that called out to the shell for everything (and, afaik, launched a new shell for every command) rather than just using the built-in Python functions. This was his evidence for Python being slower.
Admin
Not so much the TDWTF not anonymizing but the submitter is really vain and wants as many people to know he works there without looking like he is bragging (but failing). Why else do you think the introductory paragraph was filled with so many obvious clues.
Admin
I once wrote an AWK script that generated another AWK script and a BASH script that did some stuff and then ran the AWK script. I wonder if it's still in use....
Admin
Clearly that first one must have come from the Titan-ic experiment on the other side of the ring. Over here at the more Compact experiment, all of our code is obviously perfect, is very well documented, and no one ever complains about it.
(some of those claims might be slightly false)
Admin
Admin
TRWTF is using bash for performance reasons. Normal bourne shell has less overhead and runs even faster!
Admin
Jason Bourne shell runs faster than normal bourne shell.
Admin
And it punches other shells in the face.
Admin
Admin
The physics collaboration could combine their solutions to gain the performance benefits of bash while continuing to benefit from the expressive beauty of python:
#performance.bash ... while { [ $i -le 1000 ] ; } do python "performance.py" $i i=$[$i+1] done ...
#performance.py ... i = int(sys.argv[1]) os.system('mkdir '+
i
) ...Admin
I took it to be that the Python script shoudn't be used at all - even if it used the native python functions, they'd still end up calling the same code that the bash commands did. The Bash script is the right thing to do in this case, not effectively wrap it up in Python.
Admin
!=
Admin
#!/usr/bin/env python #performance3.py import os os.system("date") os.system('echo "Starting now..."') os.system('/usr/bin/env/python performance.py'); os.system('echo "Finished!"') os.system('date')
Admin
Yes indeed! That's why I'm developing the
bashio
C library, to replace the customarily usedstdio
lib. I can't believe how people have been redirecting their file operations through kernel interfaces, when they could've sent their commands directly to bash all this time.Admin
My is still in use. My last level was SQL: Bash-> AWK -> AWK -> SQL.
Admin
Admin
WWWWOOOOOOOOSH!!!!!
Admin
Admin
All physicists think space is warped.
Admin
(1) If those were the only 2 expected uses for python vs bash, then bash wins. But if there was more than than, someone should bash the idiot supporting bash.
(2) Automated email thing looks like a govt or govt subcontractor. They often force you to add this. Complete BS, but we are talking about the govt here.
(3) The secure email password delivery method was funny as shit. This guy should also be bashed.
(4) I'll be creeped out the rest of the day on that one.
Admin
It wasn't bloody well warped till you stupid clumsy physicists got it out to play with it. I'm not lending you my universe again.
Admin
It's as opposed to, "94 doors away from me on the other side of the hall."
Admin
Admin
Aside from the B.S. about his IP address... just HOW did they get his e-mail address?
Admin
What has been seen cannot be unseen.
Admin
Admin
oversaw != overlooked
Admin
I would also like to have someone at my fingertips.
Admin
Not sure if somebody answered this already (couldn't find any answer), but what python does when you call it like that is to run bash (or another shell) with the arguments.
Shell is afaik the only "programming language" that is used to parse a command line. All other languages either execute a shell to do it, or require an array of arguments.
He's actually got a point that bash is fast (at least starting up), because for every command he executes in python, he's starting a new shell. Or the disk is a very slow network file system.
Admin
Remember, this is also the bunch that presents history-making results in Comic Sans.
Admin
^^^ TRWTF
Admin
This is how you get black holes, people! Is that what you want? Black holes?
Admin
Everything in life should be "more total automatically" and I know my fiends will thank me when, "Live support will call your friends live".
Admin
Bragging is allowed here.
Admin
There is never any computer system that is secure. There is only more secure or less secure. And even then, it is a question of the strength of defenses against the probability of threats.
But, yeah, email is not secure. At least he got that right. And promptly forgot it.
Admin
Incredibly, our system took three or four seconds to read or write each database record! He gleefully took these results and ran off to write his trash article for some geek magazine.
After he was gone, I analyzed the code he left behind. He had deliberately created a database with only one sector allocated for storage. Then, as he wrote a million records, the database automatically allocated extensions as needed. Yeah, this took awhile. Especially when he kept deliberately fragmenting the data.
Any competent DBA (of that era) would have known to ask the expected total data size, and allocated contiguous space somewhat larger. This guy just did it the slowest possible way so he could prove how bad we were.
Admin
I'm sure glad the bash advocate is one of the geniuses protecting us all from artificial black holes!
Although, if he's wrong, at least he'll be closer to the event horizon than most of us. :)
Admin
The real wtf is that this website is still around spewing unfunny boring articles. Pls go, stay go.
Admin
Also, if you use your radio-controlled bulldozer to push a broom across the back porch, it ends up being less satisfactory than just picking up the broom and sweeping it yourself.
Admin
Years ago I was getting medical document faxes from a hospital which included a note that said something like "please call this number at our cost if you have received this in error".
I called a couple of times but they always refused to accept the long distance changes.
Admin
Provided, of course, that he makes it clear that that's what it's doing. And runs exactly the benchmark on all competing systems, and reports all the results together.
He did do all those things... right?
Admin
"...exactly the same benchmark..."