@Someone You Know said:
@Smitty said:@mott555 said:
Are there any basic text editors for OS X that don't suck?You should try Sublime Text 2, and then
FTFY.
This is the 21st century, man. Get with the program.
FTFTFYFY.
@Someone You Know said:
@Smitty said:@mott555 said:
Are there any basic text editors for OS X that don't suck?You should try Sublime Text 2, and then
FTFY.
This is the 21st century, man. Get with the program.
FTFTFYFY.
The following is valid Go syntax:
package main import int "fmt" func main() { int.Println("А" == "A") int.Print("A" == "A") }
@spamcourt said:
Also, you "think this should match any(...)" ? gosh, it's a computer. What's next? praying and hoping that what you coded matches the specification?
// I really, really hope this line isn't a syntax error. doSome thing()
@ekolis said:
@veggen said:Except Java doesn't have unsigned numeric types.Right. Who'd ever need to sign a byte?Was that genuine or sarcasm? On the one hand, signed bytes are legitimate - if you have both signed and unsigned 16-, 32-, and 64-bit integers, why not have both signed and unsigned 8-bit integers as well? But on the other hand, making bytes signed by default is rather stupid - unless you're using the way old-school 7-bit ASCII, you're going to have a lot of gotchas when doing pretty much anything! .NET at least calls the unsigned one "byte" and the signed one "sbyte"; sure, it breaks the convention introduced by "ushort", "uint", and "ulong", but IMO bytes are special enough to warrant this inconsistency.
So instead of adding slashes where needed, they go through each individual possible request variable and check for different kinds of strings such as "=union ".
They're not putting out a nuclear fire with tiny buckets. They're putting it out by writing a list of specific things it's not allowed to burn.
@Xyro said:
@Cassidy said:Cabbage crates coming over the briny!@dhromed said:Right amusing book proper, what?I say, old chap.. that's just not cricket!
I fancy it rather a ripping read - a wheezer jape!
Top-hole! Bally Jerry, pranged his kite right in the how's your father. Hairy blighter, dicky-birdied, feathered back on his Sammy, took a waspy, flipped over on his Betty Harper's and caught his can in the Bertie.
@blakeyrat said:
@Ben L. said:WoooooooooooooooooooNobody noticed the two-month necro?Congratulations.
Nobody noticed the two-month necro?
@TheRider said:
But, but, did you try calling that number? who answered?Sig relevant
@Joel B said:
b. Copy and paste into the window the newly generated .exe files for the Any CPU build (incorrectly named something like 'Files for x86').
c. Copy and paste into the window the newly generated .exe files for the x86 build (incorrectly named something like 'Files for x64')
x64 processors can run x86 bytecode, but not the other way around. TRWTF is OP not understanding the difference between x86 and x86_64.
@dhromed said:
@Xyro said:
You get pushed into the virtual machine? Are you ... The One?Does the Empty Set contain itself?
Set empty = new HashSet();
empty.contains(empty); // false
@RichP said:
7) What if I want to void check numbers <font size="2"><font face="Lucida Console">103998 through 104002? </font></font>
First result for the commit number is the commit on Google.
@RichP said:
@ShatteredArm said:
So wait, instead of taking an unpredictable input value and attempting to determine whether it is considered "true," this does the reverse?
Bingo. For completeness, there's also a section that does the same for "false". I haven't found a "FILE_NOT_FOUND" case yet... it could be in there. I found the code in a huge class that does unspeakable type ̶p̶e̶r̶v̶e̶r̶s̶i̶o̶n̶s̶ conversions.
Let me guess: The methods all have parameters of type Object and then somewhere within the method they say "oh crap we used the wrong type, let's switch it" and they convert to whatever they actually wanted on the fly.
That's so useful because Java doesn't have overloaded methods and-- oh wait.
Fun fact: Unless GETTING random data is an exploit on this system, the mysql extension won't allow this to be an injection - it can only parse one command per method call.
The mysqli extension, however, can parse multiple commands.
@Xyro said:
That is pretty incredible. But let's take it to the next level!! >:O<Respond_By_Millennium>2900-01-01 00:00:00</Respond_By_Millennium> <Respond_By_Century>1000-01-01 00:00:00</Respond_By_Century> <Respond_By_Decade>1910-01-01 00:00:00</Respond_By_Decade> <Respond_By_Year>1902-01-01 00:00:00</Respond_By_Year> <Respond_By_Month>1900-06-01 00:00:00</Respond_By_Month> <Respond_By_Day>1900-01-05 00:00:00</Respond_By_Day> <Respond_By_Hour>1900-01-01 15:00:00</Respond_By_Hour> <Respond_By_Minute>1900-01-01 00:03:00</Respond_By_Minute> <Respond_By_Second>1900-01-01 00:00:50</Respond_By_Second>AW YEAH!!
I love the idea of Travis-CI.org, a free service that compiles and tests pretty much any code you can host on GitHub.
What I don't love is the implementation. On random occasions, loading the home page freezes my browser and makes everything else on my computer that uses the network slow to a halt.
I narrowed the problem down to one line: application.js:43863.
That's not even the WTF (yet).
Here's the stack trace from right after I set a conditional breakpoint on that line:
Travis.Controllers.Repositories.Show.Ember.Object.extend._updateGithubStats (application.js:43863) (anonymous function) (application.js:13506) invokeAction (application.js:14320) iterateSet (application.js:14293) sendEvent (application.js:14426) notifyObservers (application.js:13423) Ember.notifyObservers (application.js:13578) propertyDidChange (application.js:14167) Wp.chainDidChange (application.js:13927) Wp.chainDidChange (application.js:13925) Wp.didChange (application.js:13962) Wp.didChange (application.js:13955) notifyChains (application.js:13991) chainsDidChange (application.js:14006) propertyDidChange (application.js:14166) iterDeps (application.js:13654) dependentKeysDidChange (application.js:13680) propertyDidChange (application.js:14165) Wp.chainDidChange (application.js:13927) Wp.chainDidChange (application.js:13925) Wp.didChange (application.js:13962) notifyChains (application.js:13991) chainsDidChange (application.js:14006) propertyDidChange (application.js:14166) Ember.Enumerable.Ember.Mixin.create.enumerableContentDidChange (application.js:18211) Ember.Array.Ember.Mixin.create.arrayContentDidChange (application.js:18570) Ember.RecordArray.Ember.Object.extend._storeKeysContentDidChange (application.js:36689) Ember.RecordArray.Ember.Object.extend._storeKeysDidChange (application.js:36663) (anonymous function) (application.js:13506) invokeAction (application.js:14320) iterateSet (application.js:14293) sendEvent (application.js:14426) notifyObservers (application.js:13423) Ember.notifyObservers (application.js:13578) propertyDidChange (application.js:14167) w_set (application.js:12630) set (application.js:12127) Ember.RecordArray.Ember.Object.extend.flush (application.js:36559) Ember.RecordArray.Ember.Object.extend.storeDidChangeStoreKeys (application.js:36404) Ember.Store.Ember.Object.extend._notifyRecordArrays (application.js:37722) Ember.Enumerable.Ember.Mixin.create.forEach (application.js:17680) Ember.Store.Ember.Object.extend._notifyRecordArrays (application.js:37721) Ember.Store.Ember.Object.extend.flush (application.js:37362) invoke (application.js:15095) invokeOnceTimer (application.js:15505) invoke (application.js:15095) iter (application.js:15157) Ember.ArrayUtils.forEach (application.js:13304) RunLoop.flush (application.js:15211) RunLoop.end (application.js:15129) Ember.run.end (application.js:15310) autorun (application.js:15377)
I can't post any source code snippets because I'm writing this in XML on an embedded system with no filesystem, but if you select a line from sqlite's source code at random, you'll either get a comment that was written on a telegram with extremely high cost/word or a line of code with a security hole, a memory leak, or a mutex lock that somehow causes a segfault.
Also the entire thing is one 100000 line C file.
@blakeyrat said:
@Speakerphone Dude said:@blakeyrat said:I won't deny that.Now be honest. Do you have a "I won't deny that" keyboard shortcut?
I won't deny that.
I will!
I would probably think of something along the lines of 11 years, 2 months, 26 days, 9 hours, 3 minutes, 27 seconds.
@Zemm said:
@da Doctah said:Simple: All time is represented as a fraction in [0, 1). Noon is .5, the day ends just before 1.Until someone who's spent some time in Australia asks you whether "Eastern Time" means UTC-5 or UTC+10.LOL. Even Adobe doesn't believe that there's timezones east of +9.
@da Doctah said:
The day goes from 00:00:00 to 23:59:59. 24:00:00, will, by definition, be undefined so as to eliminate all ambiguityWhat about leap seconds?
What about the entire second between 23:59:59.000 and 24:00:00.000 (or 00:00:00.000 tomorrow) It shouldend at 23:59:59.9: the recurring nines would make it 23:59:60 (hmm).
@TGV said:
And I don't know why you think your solutions are proper JS.
@Ben L. said:
Filed under: GO IS SUPERIOR LANGUAGE
?
@jamesn said:
@Ben L. said:http://capitalp.org/Wow, seriously? I'm going to start calling it WORDpRESS from now on.
I suggest WordREDACTEDess
I will state all timestamps as pi times the number of nanoseconds since January 2nd 1970 00:00 UTC with no explanation from now on.
This will be much easier to read and understand than calling the hour before 1 "12"
@Speakerphone Dude said:
@BC_Programmer said:That's why they aren't called censors.surely your passive-aggressive scorn applies to the moderators on this forumWait a minute, there are moderators in this forum? I guess you are right because I saw a few spam posts going away but I never noticed a post being removed because the content was unpleasant (and I'm not meaning only mines).
WordPress.com doesn't store usernames as username@gmail.com. The only way that could be your login is if you signed up with that email address.
It is very possible that your username was taken by someone else, or even more likely: you registered using a throwaway suffix.
@TGV said:
Interfaces are great until you want to use primitives, which only implement an empty interface.Looks like the way of the future to me. Lemme guess, Go doesn't have Objective-C protocols nor C++ templates? But it does have interfaces, according to the documentation. So why the panic()?
if v, ok := val.(Sortable); ok { return &value_impl_Sortable{v} } if v, ok := val.(int); ok { return &value_impl_int{v} } if v, ok := val.(uint); ok { return &value_impl_uint{v} } if v, ok := val.(int8); ok { return &value_impl_int8{v} } if v, ok := val.(uint8); ok { return &value_impl_uint8{v} } if v, ok := val.(int16); ok { return &value_impl_int16{v} } if v, ok := val.(uint16); ok { return &value_impl_uint16{v} } if v, ok := val.(int32); ok { return &value_impl_int32{v} } if v, ok := val.(uint32); ok { return &value_impl_uint32{v} } if v, ok := val.(int64); ok { return &value_impl_int64{v} } if v, ok := val.(uint64); ok { return &value_impl_uint64{v} } panic(fmt.Sprintln("Unknown datatype ", reflect.TypeOf(val), " in ", val))
@Anketam said:
Your dawn is at 00:00?Dawn of The Final Day
- 24 Hours Remain -
@Xyro said:
I think I can speak for many posters when I say those hedonistic, violent responses cheered me up.Do you have, say, eight billion links to those kinds of posts so I never have to spend time trying to find good sidebar WTF threads to read when I'm bored?But I was actually referring to those masterful posts dripping with so much sarcasm and satire that no one really knew if he was for or against some issue, such as the trollish superiority of nation `whereami`. You know the kind I mean? Those were great.
@dhromed said:
@TGV said:
Add zero, one or more semicolons to make this code syntactically correct: int a = 0 int b = 1I PROGRAM JS YOU FIEND
a, b := 0, 1 // Or alternatively var a int = 0 var b int = 1 // See? No semicolons needed.
I'm pretty sure they were annoyed with the simpleness of the question and wanted to show you they knew how signed integers are stored.
@bridget99 said:
I was working with made it pretty clear that he meant to capture whole days, and that he meant for them to range from 12:01:00 to 12:00:59.
Legitimate coverage of this story would be the sentence "If your internet goes out on Monday, call your ISP for help." The actual coverage is more like "OH MY GOD WE'RE ALL GOING TO DIE THERE ARE COOKIES IN THE INTERTUBES AND THEY CAN CYBERCHASE OUR GRANDPARENTS"
@bridget99 said:
@Ben L. said:12:00 AM on day X -> midnight on day X -> two timestamps exactly 86400 apartAre you implying that 12:00 AM is not Midnight? Perhaps I should have been less Americocentric in my descriptions. 12:00 AM is 0:00 to the rest of the world, and unless I'm completely mistaken, that's when the day starts, and I'm not even necessarily talking about computers here. This is third grade stuff here. There doesn't have to be any notion of timestamps. Sheesh, just look at a damn clock. Doesn't it make sense for the day to start with all three hands pointing straight up? Why should the minute hand be offset slightly when the day starts?
Arguably, 12:00 AM could represent 00:00 or one minute after 23:59 on the same day.
12:00 AM on day X -> midnight on day X -> two timestamps exactly 86400 apart
@dhromed said:
@nat42 said:
PRINT NOT(1)
-2
What happens with NOT(-2) ?
1 » 00000001
-2 » 11111110
FILE_NOT_FOUND » 00000002
enum Bool { TRUE = -1, // Fixed 7/7/1982: TRUE was evaluating to FALSE FALSE, FILE_NOT_FOUND } Bool blnSchoolIsNotUnableToGiveCredits;
@Speakerphone Dude said:
@Zecc said:Summarized that for you@Speakerphone Dude said:I am angry at you because you argued against my point.I think we should run an executable instead of writing a function.I think we should run a different executable.
I have an ancient linksys router. It's a strange day when ancient hardware prevents WTFs
@Spectre said:
@DaveK said:@derula said:
<font color="#ff0080" face="Comic Sans MS">@El_Heffe said:No, now it's complete.</font><font color="#ff0080" face="Comic Sans MS">@Lorne Kates said:
</font>Now it's complete<font color="#ff0080" face="Comic Sans MS">@derula said:
@Lorne Kates said:</font><font color="#ff0080" face="Comic Sans MS">@Quietust said:
@Lorne Kates said:</font></font><font color="#ff0080" face="Comic Sans MS">@dogbrags said:
</font></font><font color="#ff0080" face="Comic Sans MS"> Trying to conatct the original poster; please email
</font><font color="#ff0080" face="Comic Sans MS">
<font color="#ff0080" face="Comic Sans MS">OP was a scam. If you got fooled by it, email me your bank details and I'll initiate WTF Forum Admin (0FFICIAL!) refund for you with additional holdings intrest of plus ten point six (9.7%) percent.
</font><font color="#ff0080" face="Comic Sans MS">
Bolded for emphasis.<font color="#ff0080" face="Comic Sans MS">De-bolded because I'm a prick. </font>
<font color="#ff0080" face="Comic Sans MS">
Comic Sans'd that for you.</font><font color="#ff0080" face="comic sans ms,sand">The Universe is now complete. </font>
FTFTFYFY
I think it also needs to be bolded, italicised, and underlined for that. And marqueed.
<blink><marquee><font color="#ff0080" face="Comic Sans MS">Like this?</font></marquee></blink>
@derula said:
Thanks for sharing your account name with us so we know who to hack.Yeah, good luck guessing my Steam password and my email password.