Programming Jokes February - Obligatory Witty Remark
1,291 replies, posted
[QUOTE=Coolboy;49609143]Do you use any boxing with res?[/QUOTE]
[code]
[DllImport("user32.dll")]
public static extern int GetMessage(out MSG lpMsg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax);
int res = GetMessage(out msg, IntPtr.Zero, 0, 0);[/code]
It's probably because I forgot the weekly P/Invoke demon purging ritual or something
Because there's not enough Modern JavaScript Fuckups in this thread:
[media]https://twitter.com/gavinjoyce/status/691773956144119808[/media]
I'm just going to aVOID this thread :)
[QUOTE=JohnnyAppleCS;49628605]I'm just going to aVOID this thread :)[/QUOTE]
Yes, don't return
(ever again)
[IMG]https://imgs.xkcd.com/comics/xkcd_stack.png[/IMG]
[quote]
This site requires Sun Java 6.0.0.1 (32-bit) or higher. You have Macromedia Java 7.3.8.1¾ (48-bit). Click here [link to java.com main page] to download an installer which will run fine but not really change anything.
[/quote]
[url=https://xkcd.com/1636/]XKCD[/url]
[url=http://www.pof.com/viewprofile.aspx?profile_id=103193309]21 year old John Smith of Whitehorse, Yukon Territory seeks a pair programmer from a dating website.[/url]
[QUOTE]About John:
MALE SEEKING FULL-TIME PAIR PROGRAMMER TO SOLVE INTERESTING PROBLEMS WITH. SALARIES NEGOTIABLE.
I HAVE NO IDEA WHERE ELSE TO LOOK IN THIS GOD DAMN DESOLATE TERRITORY
JOB DESCRIPTION INCLUDES BUT NOT LIMITED TO;
- UNIX ADMIN
- LINUX ADMIN
- PHP PROGRAMMING
- BASH SCRIPTING
- IOS PROGRAMMING
- ANDROID PROGRAMMING
- SYSADMIN
- DEV OPS
- IRC CHATTING
- EMAIL WRITING
- DAYDREAMING BETTER SYNTAXES FOR YOUR FAVOURITE LANGUAGE
- NORMALISING RELATIONAL DATABASES
- CRYING ABOUT SPAGHETTI WORDPRESS CODE
- CRYING ABOUT SPAGHETTI MAGENTO CODE
- CRYING ABOUT SPAGHETTI PHP CODE IN GENERAL
- CRYING ABOUT SPAGHETTI YOU JUST WROTE
First Date:
FIZZBUZZ[/QUOTE]
For those who don't follow Gmod Waywo.
[QUOTE=MPan1;49475381]Unrelated, but:
You know your addon is going great when your errors are in 3D
[IMG]http://i.imgur.com/kJxGCrN.png[/IMG]
Not even sure how this is possible [/QUOTE]
[QUOTE=Goz3rr;49609937][code]
[DllImport("user32.dll")]
public static extern int GetMessage(out MSG lpMsg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax);
int res = GetMessage(out msg, IntPtr.Zero, 0, 0);[/code]
It's probably because I forgot the weekly P/Invoke demon purging ritual or something[/QUOTE]
A bit late but: This is probably indeed a faulty P/Invoke (depending on what's behind that error message).
Since [URL="https://msdn.microsoft.com/en-us/library/windows/desktop/ms644936%28v=vs.85%29.aspx"][I]GetMessage[/I][/URL] returns a status code and not an error code, you have to [URL="https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.aspx"][I]DllImport[/I][/URL] it with [URL="https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.setlasterror.aspx"][I]SetLastError = true[/I][/URL] or the CLR may (and most likely will) override the error before you can retrieve it with [URL="https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.getlastwin32error%28v=vs.110%29.aspx"][I]Marshal.GetLastWin32Error()[/I][/URL].
This still doesn't explain the exception highlight location, though, or the exception itself.
[QUOTE=Tamschi;49670855]A bit late but: This is probably indeed a faulty P/Invoke (depending on what's behind that error message).[/QUOTE]
Unlikely, I replaced my homebrew message pump with Application.Run() after I realized I could do that, and now the NullReferenceExceptions are happening in there :v:
I didn't bother looking into it any further because the (school) project was due and this only seems to happen after a few minutes of running, which I thought was long enough for it not to happen during the demo and no one is going to use it afterwards anyways
[i]it did happen during the demo[/i]
[QUOTE=Amiga OS;49690725][url]https://github.com/fem-sf/open-coddle[/url]
[editline]7th February 2016[/editline][/QUOTE]
Any guesses about how long until they'll be banned?
My estimate is around two days, shorter if it blows up in any way.
(Though, to be fair: C+= had someone impersonate an unrelated female developer in the commit log.
A certain other project was removed without any clear-cut reason early last year though.)
[QUOTE=Amiga OS;49690725][url]https://github.com/fem-sf/open-coddle[/url]
[editline]7th February 2016[/editline][/QUOTE]
Keep it diverse, sistah - KIDS
How do you embed webms using webmshare?
This is the joke btw:
[url]http://webmshare.com/995ra[/url]
Like this:
[vid]http://s1.webmshare.com/995ra.webm[/vid]
[t]http://i.imgur.com/GluNcro.jpg[/t]
[quote]How only relying on JavaScript for HTML form input validation is like[/quote]
[url=https://www.reddit.com/r/ProgrammerHumor/comments/44l93o/how_only_relying_on_javascript_for_html_form/]Rebbit[/url]
Today somebody sent me binary file, which had 2 instead of 1 or 0 and it crashed my whole computer.
[QUOTE=Fourier;49712284]Today somebody sent me binary file, which had 2 instead of 1 or 0 and it crashed my whole computer.[/QUOTE]
Imagine not using a quantum computer in 2016.
[QUOTE=Fourier;49712284]Today somebody sent me binary file, which had 2 instead of 1 or 0 and it crashed my whole computer.[/QUOTE]
I won't ask why, but how?
how could a file have 2 in it?
:huh:
[QUOTE=Fourier;49712284]Today somebody sent me binary file, which had 2 instead of 1 or 0 and it crashed my whole computer.[/QUOTE]
(uplink game)
[img]http://i.imgur.com/ICGTj7O.jpg[/img]
[QUOTE=swadicalrag;49716242]I won't ask why, but how?
how could a file have 2 in it?
:huh:[/QUOTE]
It's a joke because binary can't have 2 in it... sorry it was lame joke
>Looks at new shitty game.
>sees credits for programming team.
>I say what did they do it in, C--?
If you know what youtube video that is from, you are amazing.
[highlight](User was banned for this post ("Greentexting meme reply" - Craptasket))[/highlight]
ReSharper is being very generous.
[img]http://s13.postimg.org/jhf2hd147/Pasted_image_at_2016_01_25_15_18.png[/img]
[img]http://i.imgur.com/BEqifLF.png[/img]
Visual studio, what are you doing?
I'm pretty sure I haven't installed the program using that dll.
[img]http://s16.postimg.org/dwfw10urp/bad_error.png[/img]
And no, I won't try to reinstall it.