Am I the only one who wants to know what the regular expression is causing 2GB+ of memory usage in grep?
Posts made by superjer
-
RE: The Wrath of Korn
-
RE: Liferay? More like deathray ...
@fennec said:
@Xyro said:
Watch out, it's also written in Java! RRAAUAURHAUHGUAHRUHFURAHRUAHUARFYUAGSGDHKAWUF!!!!!!!!!!!!!!!!! >:O
@blakeyrat said:
It's fucking 12 Monkeys all up in here, man.
That is pretty much the only self-consistent time travel movie I have ever seen. Nothing else comes close. Primer may be a distant second, but only because the future starts leaking into the present near the end of the movie. If it had been that way from the start then it would have won.You've never seen Bill and Ted's Excellent Adventure?
Or for that matter, Los Chronos Crimenes? -
RE: Lasagna Code
@blakeyrat said:
@frits said:
His sentiment boils down to "OO Bad. Old ways good."
You're being unfair. He said:
Lasagna Code is layer upon layer of abstractions, objects and other meaningless misdirections that result in bloated, hard to maintain code all in the name of “clarity”.
That has nothing to do with OO or not. Except that it's easier to add layers in OO code.
This.
I'd prefer crap programmers to just write crap code. It's when crap programmers write crap code in 6 zillion layers that it gets truly painful.
-
RE: Wow, this is a textbook awful UI
I didn't find it that difficult, but very annoying to use.
I have 36 slaves "working for me" but I'm not sure what that means. The slaves who made my shoes aren't working for me any more, are they?
If 36 is the number of slaves that have ever worked for me, then it seems too low.
Also, there was no field to enter the number of slaves I actually keep at my house. -
RE: Imagine if developers didn't have access to Copy-Paste
Obviously, a function taking -3 arguments would steal the most recent 3 args off the stack when called. I.e. it would take the last 3 args of the calling function.
-
RE: SuperGrandGrandParentNodeName
Dim grandGrandGrandma As Gertrude
Dim grandFairyGodMother As Gwen
Dim greatHonkinGrandLordParent As Godwin
Dim greatAuntGrandUnclePerson As Grant
This isn't a joke. I just copied this from the OP. -
RE: ... In practice, though...
I find it interesting that we ARE sure enough it won't be reached to go ahead and skip handling or logging the error, but NOT sure enough to just leave out the try-catch altogether.
I feel like that's some negative middle ground.
Like, I can't decide whether to turn left or right at the end of the street, so I'll just drive into the ocean. -
RE: Argumentative
Indeed! 25 %c's and only 20 bell's!
SOMEONE STOLE FIVE OF THE BELLS!!
Call the polasciice!! -
RE: SharePoint is just so smooth ...
SharePoint is one of those tools that is constantly improving. And by that I mean, right around the time you get your desperate, hacked-together workaround completed and deployed, the new SharePoint update comes out that fixes the underlying problem.
-
RE: If I did not have to use this application form...
@derula said:
"...print the fifth paragraph on the third page, [...] In vim, you only have to type :k:pg3p5 (command completely made up in my head, I don't know shit about vim) and you're done."
In the interest of completeness, here are 3 real Vim commands to do that:
3<font color=blue><PageDown></font>4}V}:hardcopy
or
Select the text with your mouse and click File->Print.
or if you're in a hurry
Just click File->Print straight away and have the intern scissor out the right paragraph and fax it to your boss. -
RE: Grabbing a window title bar
Surely this is only a problem in DoubleSoft ThorOS.
-
RE: Git vs. SVN and what NOT to do...
I made some errors!
You'll need to userm -r
instead of justrm
or git will refuse to remove .svn since it's a directory. It will tell you exactly that if you try to run it as I said originally, and then do nothing.
Also it appears that it will actually delete the working copy's .svn dirs. For some reason I thought filter-branch only operated on the cache. -
RE: Git vs. SVN and what NOT to do...
Git has a tool for this. It's called filter-branch. For example:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch .svn' HEAD
As seen here: http://help.github.com/remove-sensitive-data/
That will replay the entire history of the current branch, removing anything named .svn from each commit. It will change the commit hashes. It won't delete the actual .svn dirs in the working copy.
You should be able to retain all the history as well, using a couple of branches and a rebase. Convert the original SVN history into a new git branch, svnhist. Then rebase:
git checkout master
git rebase svnhist
That will replay all the history of master on top of the svnhist branch. Assuming the original git commit was identical to where the SVN history ended, there shouldn't even be any merge conflicts.
Then you can import the full history back to SVN. Even though SVN sucks. :) -
RE: Favorite Code Mangles
What a fantastic thread! This is getting off to a great start!
-
RE: Stop me if you've heard this one before
And now my requisite TRWTF:
Did the definition of "culling" change while I wasn't looking? I thought it meant to select for removal, not to select for producing something useful.
-
RE: Off-center representative line
@Xyro said:
<center align="center" style="text-align:center; vertical-align: middle; margin:auto">
I'm pretty sure that's the W3C recommended way to do it.
-
RE: Google time
The time was probably 10:12:59 PM so that the upper email is 1 second less than 2 hours old, and therefor only 1 hour old by Google's always-round-down math directive.
Although since the lower email isn't -1 minutes old, maybe Google does always-round-toward-zero.
-
RE: Android literal wtf
TRWTF is that all frameworks don't have this. And developers end up logging things that never happen with the regular logging routines. Obviously not enterprisey enough.
-
RE: Code Manglement (literally)
DVCS +1
You wouldn't even need to get anyone else to use it. You could just have a DVCS on your own machine with different branches/repos/whatever to represent each environment. It's no silver bullet but at least its under control, the DVCS can track common ancestry and you have a record of about who changed what and sort of "when".
Obviously too late, but DVCS is great for analogous, and much less disastrous situations. -
RE: How to apply a sticker
Seems to me TRWTF is that the instructions aren't helpful enough.
They should say, "WARNING: This sticker is DESIGNED to explode into a million infinitely sticky bits of confetti if you don't get it right on the first try."
-
RE: Interesting articles
I don't get why anyone has a problem with this. I WISH most drivers had a GoogleCar that drove itself. I don't want one, and I don't expect the people who design it to use one, but for everyone else, hell yeah!
-
RE: Was this information helpful?
Yes. The information was very helpful. A little TOO helpful. So helpful, in fact, that it must now be deleted.
-
RE: Minor Geography WTF
In Seattle we are used to water coming from the top.
The concept of water coming from the side is foreign and worrying. So I think this is understandable. -
RE: Well, then change the Requirements
This is my favorite new method of development. Don't actually build anything, just always update the spec to match what we already have.
I can get behind this!
-
RE: What a cheap bastard!
I think that's the Amazon account for the "Silver Platters" store right by my office.
I'm going to call and see if I can pick that up at the store to save the $2.98 shipping.
-
RE: Another report from wtf workplace
@DOA said:
... Within easy reach of my mouse cable which I'm pretty sure I can loop around her neck twice before she knows what's going on.
Is it ironic that this made me bust up laughing causing confusion and curiosity among my coworkers?
-
RE: FB is TRWTF
I can't believe I'm about to sign up for Facebook just to check this out.
-
Ask Verizon about RFCs
I'm locked out of my Verizon account and I can't seem to retrieve it. Time to click the helpful Verizon dude ... for text from RFC 2068!
-
RE: Indeed
Are people seriously suggesting that "changed background from blue to red in flash file" is no better than "flash file updated"?
(Assuming some sick requirement to check-in the binary in the first place, that is.) -
RE: Minor clbuttic mistake: cracked.com
I rode my svagina to chem clbutt where I read a dosemenent autwomanred by Dr. Svaginawomanrpe on brupoope and apabreaste. I took my vaginacat, wwoman likes to penisle the leahomosexuale on the pebreaste Japaneseanese fern in the clbuttroom.
Alternativley:
I rode my scter to chem clas to read a docment auth*red by Dr. Scthrpe on brus**te and apatte. I took my pycat, wh likes to ckle the leafge on the pette Jpanese fern in the clasroom. -
RE: VCL for PHP WTF
7-zip is awesome.
Fact: you're going to have to open some shitty-ass RAR or something eventually.
7-zip understands all formats and is extremely fast.
I don't know how many times I've had to cancel the default Windows unzipper thingy after waiting for 5 minutes. Then try with 7-zip and it's done in 5 seconds.
It's actually faster to go get, install, and use 7-zip than to wait for Windows to unzip large archives.
So shut up. -
RE: Minor foreach wtf
@davedavenotdavemaybedave said:
@Chewbacca said:
@svm_invictvs said:
Why bother getting upset over it? Fix it, move on, and stop being petty. You probably spent twice the amount of time complaining as it took you to fix the issue.
Well, that's what I thought, too. I just wondered what other people think about this sort of thing, hence the thread.
I would probably have already forgotten about the thread if it wasn't for the friendly e-mails from thedailywtf.com ^__^I know nothing about optimisation, but to me this is about good programming practice accurately representing what you're doing. If something's inside a loop, it's something that is being changed during the loop. If it's not changing, it shouldn't be in the loop.
+1
-
RE: T1 in wrong VLAN
Tell them you've diagnosed the problem yourself and it turns out the data center is in the wrong World Wide Web.
-
RE: Kim Jong HTML
All that Kim-HTM-IL for a bunch of dead links. (A least the 10 or so I checked.)
-
RE: It's no big deal
Fortunately it's under version control so when he's asked to add the removed features back in, he can just revert.
...right? -
RE: The Clause
@blakeyrat said:
The firefighters should have paid the fee using the proceeds from their sexy calendar sales.
The firefighters should have paid the fee ... to themselves?
How much did you pay for that calendar?
-
RE: Another day at the office
I know. I said enough because he's seen it one way but not the other.
-
RE: Reasons I love my laptop
Reading this thread has forced me to vent about my recent Windows v Linux experience...
My Windows 7 box hardlocks when I play games (and sometimes just sitting there) and I don't know why. I've tried everything: HW replacement, drivers, OS reinstall, 32 & 64 bit, testing every little thing. It just hardlocks. So I've just put up with it.
But a crash corrupted my Assassin's Creed 2 save file and it sent me over the edge. In desperation I ripped my HDD out of my old, creaky Ubuntu box, slammed it in my Win7 box, installed Wine, and holy crap the game runs. Kind of slow sometimes BUT IT DOESN'T HARDLOCK.
Not only that but my 360 controller works better, too. I can actually use all the buttons on it. My 360 controller. No, really.
To add insult to insult to injury Win7 now says my Windows key is invalid. (It's not.)
I use Win7 -and- Linux (and even Mac) and usually have the same amount of headaches everywhere... but this experience, just, well, WTF.
-
RE: Another day at the office
@The_Assimilator said:
That means you guys have never looked at a raw HTTP request send over the wire, because if you had you'd know a POST is passed exactly the same way as a GET (name=value pairs separated by ampersands). The only difference is that GET passes its parameters through in the URL, while POST passes them through in the HTTP headers.
And you haven't looked at enough raw HTTP requests...
C: POST /the_url HTTP/1.1 User-Agent: curl/7.11.1 (i686-pc-cygwin) libcurl/7.11.1 OpenSSL Host: www.example.com Content-Length: 38421 Expect: 100-continue Content-Type: multipart/form-data; boundary=-------------------- S: HTTP/1.1 100 Continue C: ------------------------------ Content-Disposition: form-data; name="a" value_for_a ------------------------------ Content-Disposition: form-data; name="b" value_for_b ------------------------------ Content-Disposition: form-data; name="c"; filename="mydocument.doc" Content-Type: application/octet-stream ...
http://www.redmountainsw.com/wordpress/archives/multipartform-data-over-the-wire-example
-
RE: Is there a stupider solution?
I really really just want to know what the 60 million files were and why they were files at all and not something else.
-
RE: Solving the 'if' statement problem
Excuse me. I have some code that works and is too simple. Can someone please help me complicate the crap out of it?
-
RE: That Explains It...
Oh please don't ever change it!
The DWTF just wouldn't be the DWTF without our beloved WTF-y CS.
Who's with me?
-
RE: I..... I got nothing.
Does the browser pass along the headers to the opening program?
I've had this same thing happen before and it turned into an infinite loop of "open with [browser]?" -> "OK" -> browser opens blank page -> "open with [browser]" -> ...
I just thought this was by design to keep people's grandparents off the Interwebs. -
RE: Delphi Programming Help
Not a WTF.
Young Chick is a framework in Embarcadero's hot new language "Hardcore Action." And yes, it does video. -
RE: Optimised for a hi-res display
But have you tried it on a really really tiny screen?
-
RE: My Sig
Did anyone try to read the Asus Member Agreement? Or fill out the sign up form?
Spoiler: Engrish-y legalese and an infinite loop of Javascript popups when you leave your email blank and tabnext.
-
RE: Kind Words?
@JohnWestMinor said:
Morbius is a god of humor.
I agree. My favorite part is how I never have any God damn clue if he's being part serious. Is it an actual rant against "Obamacare" or is he making fun of anti-Obamacare types? It serves perfectly as either and both!
Really I just come on here every day to skim for the Morbs posts.
BTW: thanks Morbs.