« first day (523 days earlier)      last day (3493 days later) » 

5:00 PM
@rolfl LOL - there are hundreds of JVM programming languages (though some are much better than others - for example: community.microfocus.com/microfocus/cobol/visual_cobol/w/wiki/…).
 
@NickUdell What "help" do you refer to?
 
@Donald.McLean OMG JVM COBOL !
 
@JaDogg Really? I thought that was common knowledge.
 
Few people realize that the JVM is, sort of by definition, a virtual machine, and that you can program it in many languages, not just Java ... ;-)
 
Wait, I know about other languages such as jython,groovy,... but first time I'm hearing about COBOL
 
5:04 PM
Two words: Scala (ok, that's one word, but Scala is such a great language that one word is as good as two words in most other languages)
2
 
@rolfl (I'm being funny here) Well i'ts called JAVA virtual machine not Virtual Machine for many language :P
 
how do I rollback a commit on GitHub?
 
@JaDogg Javascript?
 
Thanks, Santa! Another repmax today.
 
@rolfl all done, you can delete the new question and the old one is good to unlock
 
5:07 PM
Done @bazola, and thanks.
 
@rolfl yes Nashorn
 
@rolfl no problem!
 
@JaDogg We worked with Java and COBOL at work! And it work kind of good actually! A bit of complexity if you, like me, if you never learned COBOL. But I must say it's not bad at all!
 
This list of JVM Languages comprises computer programming languages that are used to produce software that runs on the Java Virtual Machine (JVM). Some of these languages are interpreted by a Java program, and some are compiled to Java bytecode and JIT-compiled during execution as regular Java programs to improve performance. The JVM was initially designed to support only the Java programming language. However, as time passed, ever more languages were adapted or designed to run on the Java platform. == High-profile languages == Apart from the Java language itself, the most common or well-known...
 
0
Q: Caesar cipher with GUI

CaridorcI have created a functional Caesar cipher in Python 3 and I have implemented a GUI using Tkinter. def MOST_COMMON_LETTER(): return("e") def circle(l,n): if n < (len(l) - 1): return(l[n]) else: return(l[n % (len(l))]) def most_frequent(l): # not whitespace l = l....

 
5:08 PM
@Marc-Andre I'm not saying It's bad, Just surprised
 
@JaDogg I didn't want to imply that you did. But I can assure that I was skeptic at first.
 
:D
 
@rolfl Or just in Bytecode
 
5:24 PM
@skiwi There's a "Real programmers" joke there, just waiting to happen.
 
Real programmers code with a hex editor
 
Real programmers copy con myprog.jar
 
Ugh, C++ supports goto
 
0
A: C begginner: Can someone help fix this code?

Mukesh KIts c man .. not calculator . instead of ^ write a function for squaring or use pow() from math.h

 
01010010 01100101 01100001 01101100 00100000 01110000 01110010 01101111 01100111 01110010 01100001 01101101 01101101 01100101 01110010 01110011 00100000 01100011 01101111 01100100 01100101 00100000 01101001 01101110 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110
 
5:29 PM
Real programmers code with MS Paint.
 
@skiwi Yes, everybody knows that.
 
41
Q: How did this person code "Hello World" with Microsoft Paint?

Eamonn O'BrienI have just seen this within the past few days and cannot figure out how it works. The video I talk about is here: It's the top rated answer from this Stack Overflow question: Why was this program rejected by three compilers? How is this bitmap able to show a C++ program for "Hello World"?

 
@Donald.McLean I didn't , apparently, but today is the first time I'm learning C++
 
I have a goto statement for the person who added goto
 
Though I have used C++ before once
@DanLyons goto: kill?
 
5:31 PM
I would have thought the more obvious would be goto: hell, but that works, too
 
@skiwi I worked for 3 years on a C++ project. It isn't a bad language, though I wouldn't want to do it without a good professional memory error detection tool.
 
I'll be working in the next two years (from next university year onwards) most likely in C++
figured I might as well learn it
 
5:47 PM
0
Q: Multiselect user interface in jQuery

MohamadI wrote a small multiple select interface in jQuery, and I'm looking for any feedback on code quality/usability. Snippet included below. It has to do the following: When check all is checked, all boxes must become checked When check all is unchecked, all boxes must become unchecked When all box...

 
6:04 PM
Seeing all the stories around on the internet about job experience
I really wonder how much Java experience I have... classified as junior, mid level or senior
Don't really know how to find out though
 
6:17 PM
My loose definition: you are junior until you have contributed core functionality to a project that goes live, and you have also gone through a maintenance cycle on that same code (i.e. you have maintained your own code).
 
Looks legit.
 
mid-level means you know how the cycle works, you eat your own dog food (mantain your own problems), and can contribute value to the design/architecture of your own code section.
 
@Phrancis Much legit
 
senior means they can be relied on to put together a good design with a reasonable chance of successful deliver without a re-architecture inbetween.
 
@rolfl So junior/mid/senior really depends on the project you are working on, and not so much about your own general programming experience?
 
6:19 PM
Whether senior developers actually code nay more (much) is not really important... ;-)
@skiwi It most certainly depends on the experience....
that's what I am trying to say, is that you are junior until you have (successfully) experienced what it's like to maintain your code.
 
But you could be as experienced as you want with the Java/JDK, but if the company rolled their own framework, then you're still a junior in that company? Or do I understand it wrongly
 
Understand me wrongly....
 
New try :)
 
I can look at code and often tell you whether the programmer who wrote it is junior, or not.
There are lessons you learn when you have to change your code, and, if you learn those lessons right, then the next time you write code, you write it in a way that makes the maintenance process easier.
 
Does junior imply that you are a beginner in a language, or not necessarily?
 
6:22 PM
not necessarily.
I would consider an experienced programmer in language X to be mid/senior in language Y even if they are new to it.
 
I wouldn't consider myself a beginner in Java for example, but I'm not considering myself a senior developer for sure, and probably not even mid-level
 
Let me put it differently..... Chess...
A junior chess player is the one who knows the moves, and thinks one, maybe two moves ahead...
mid-level, they think 3 or more moves ahead.
senior, well, they set up who's playing, and put the strengths of different pieces together, who the competition is, etc.
3
 
I see
A pro surely is that I think about the code I write
I have no maintained open source project yet though
 
You do, but you need certain experiences before you move on to the mid-level.... you can read about how maintenance works, etc, but, until you do it.... for a while...
Programming is often less than 50% writing programs.
the other 50% is fixing yours and other people's bugs, and shoehorning crap requirements that break things, in to otherwise nice code.
2
 
@rolfl Out of stars :(
 
6:27 PM
Gotta go.. ... ;-)
 
Thanks either way :)
 
All I can do for now while studying is get more experience in fun projects
 
I got the Iron Man award. And somebody got paid to make this.
 
@Phrancis That'll be $500 right there.
 
6:29 PM
Wish they'd have used a more recent photo, I looked like a kid 5 years ago lol.
 
@Phrancis Deliver wrong photo? That'll be $1000 to redo it right here!
 
1
Q: Python wrapper for official Hacker News API

aviSince Hacker News launched their official API, I started working on Python wrapper for it. API v0 is fairly simple, you send a GET request with hacker news story's ID or user id, it returns data in JSON. Here I do the same using requests library and return specific object like Item for news sto...

 
@skiwi RSA
 
@RubberDuck nice :)
 
@skiwi TCG not count as maintained open source project?
Between you, Simon and Bazola I think it's not just maintaining but building from the ground up too
 
6:42 PM
They like being vulgar over there
@Phrancis I need to get into a project here soon
 
@Malachi don't post link... I always click on them :P Or say first that they are vulgar :P
I was like : ouuuh shiny link, must click
2
 
Is that the Security chat room?
 
@Marc-Andre I did say stay away.... sorry
 
@Malachi Ehehe no problem :P
 
@Phrancis it's a ServerFault chatroom
 
6:50 PM
Ah ok
 
I deal with Chat flags when I see them, the only reason I was over there....
 
It's not a real don't post link : But more like I'm dumb and click on link warn me first :P
On the hot question bar : Do mountains regularly (for a mountain) change height?
Like the title
 
There seems to have other Faults in their community. Da bum tsss
2
 
@Marc-Andre I read some of that one yesterday, it's mostly about change in Technology for measuring the height of mountains.
 
Nice recieved a "random" upvote on SO. I'm surprised
5
 
7:01 PM
@Marc-Andre that is always nice.
I haven't answered anything today so I haven't gotten an upvote all day.... weird....
 
I think I might have convinced my boss to upgrade my browser to IE10 or 11
7
 
@Phrancis I would have ask for Chrome or Firefox but hey!
 
@Phrancis Tell him that Chrome is Faster and Cheaper
I need some Ritalin and to stop poking my head in here....
 
7:18 PM
@Phrancis Well, it's not in use yet, I think @rolfl also meant that users actually use your software and thus come up with bugs/issues/requests and you need to resolve them... Sure, we have the same thing as developers, but it is still limited
 
Good answer here:
2
A: Email validation using JavaScript

JordanI disagree with rolfl's assertion that, "There is no practical way to validate an e-mail address by regex alone." He is correct—as illustrated by the somewhat infamous SO answer he linked to—that it's impractical to validate any RFC-5322-compliant email addresses because, to quote the HTML5 spec...

 
@Phrancis Wow... long shot there!
 
@rolfl I think your answer is still important anything to let it stay there though
 
^^ I agree since the other answer is weird if we don't have your answer
 
I disagree with rolfl's assertion that, "There is no practical way to validate an e-mail address by regex alone."

He is correct[...]
 
7:35 PM
@JeroenVannevel The comment I left instead covers just as much as what my answer did, though, right?
 
@rolfl I suppose, but I would always just do the try-catch-email trick so I consider it worthy of an answer
 
Odd... his answer is better than mine, but, 100 rep.... hmmm. Mine has shock value though... but is copied (with references) from elsewhere...
 
0
Q: Module that allows threads to return their result

CarcigenicateI have the following that works similar to forkIO, but returns a blocking "channel" that lets you receive the result of an IO computation. My main concern is its handling of exceptions. It will return Nothing if something is raised, but can't supply any more information then that. I tried using ...

0
Q: Function for checking leap years: is it correct?

PipAs part of one of my AP Computer Science labs, I was required to write a function to determine whether a year was a leap year or not. Included as comments are a few reasons why I did things, as well as a more detailed version of the rules for leap years. Is there anything I could do better or hav...

 
8:00 PM
@Marc-Andre @Malachi if only. IE is the only allowed browser, presumably for security and compliance reasons.
Or... "security"
 
@Phrancis heh
 
8:15 PM
Yep. On a brighter note, there is an opening for an IT type of position, but more related to fixing computers and telephony software and hardware issues. Anyone have experience in this type of job? Pros/Cons?
 
Server Maintenance Saturday Oct 11th 2014 - 15:00UTC (11AM EDT) to 18:00UTC(2PM EDT) We will be doing some... http://tmblr.co/Z7Lcqt1SltlSo
 
0
Q: Filling a container with objects using pointers / iterators

nathan lachenmyerI have a series of nested objects that I need to serialize into a byte (unsigned char) array to send out to another computer over UDP. Right now I each object create a std::list, and pass that list to the next object up the 'tree' and then it merges the lists to create the final packet. class ...

 
8:38 PM
@rolfl ^^ here's a chance towards getting closer to that badge! ;-)
 
pointers? naahhh... not this time ;0)
@StackExchange Thanks for the head's up
 
9:09 PM
@Phrancis repairing computers is pretty boring and repetitive most of the time
taking apart laptops can be pretty fun the first few hundred times I guess.. unless you break something
 
0
Q: Cutting it to Pages

bazolaI was working on representing a large List of information on a number of different pages, and a colleague of mine suggested that I try to make a generic method for the task I was trying to perform. This is what I came up with: private <T> List<List<T>> listSplitter(List<T> originalList, int spl...

 
@Jamal ▼▼▼
@firda I apologize in advance, but I have been editing posts on Code Review for quite some time, and the post has no sign of a copy paste error, this is the way that the user wrote the code. if you notice, even Jamal hasn't edited this post yet. — Malachi 18 secs ago
 
Oh, I just haven't seen it yet.
 
is it a copy paste issue? usually you can tell the difference
 
I have another post one vote away now, but I'll pimp it after the reload.
 
9:20 PM
@Malachi the inner-if statements look like a regular indentaion issue, not a tab/copy/paste issue.
the outer class declaration could be anything.
 
so you believe that I was right to answer and not edit, @rolfl?
 
@bazola with the understanding my current job is... boring and repetitive all the time I think I could deal with that. I see this as a possible opportunity to get my foot in the door for IT. Been fixing computers for years, may as well get paid...
 
@Malachi That's not what I said. I am ambivalent, but, what it amounts to though, is your code review criticises the lack of 8 spaces.
 
@Phrancis then I would go for it
 
@rolfl and the lack of Braces around an if statement
 
9:22 PM
Plus that team is called GWS, for Geeks With Stuff
 
@rolfl I was just asking because it wasn't transparent how you felt about my actions
 
9:35 PM
@Jamal still got plenty of ammo left today, if you care to share your 1-vote away
 
Okay. I've already lost some rep from the cap anyway.
9
A: Solving the Lazy Hobo Riddle

JamalSome minor things, but may still be worth mentioning: Whenever std::endl is used, the buffer gets flushed, which can add to performance a bit, especially if it's done multiple times. In order to get a newline without this added flush, use "\n" within an output statement: std::cout << "\n"; A...

@Malachi Anyway, you can usually check for tabs my removing the indentation yourself (as a test). If it skips, then it's a tab, otherwise, it's a space.
 
@Jamal or by just using the arrow keys to move around the edit sandbox, right?
 
I think so, too.
 
@EngieOP lost a ton of Rep on that question...
> oh, you know how to scroll eh. You wanted moar???...you greedy spy. Feast ur eyes on these:

( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ Í¡°)( Í¡° ͜ʖ
2
 
9:51 PM
I got an accept today! From a 3 year old zombie
4
A: Getting and setting a static variable

Simon André ForsbergUsing a static variable will have the same effect as using a singleton! Imagine if you had two instances of ProductsCache: var a: ProductsCache = new ProductsCache(); var b: ProductsCache = new ProductsCache(); a.products = someArrayCollection; b.products = anotherArrayCollection; Now, becaus...

 
talk about politics...
Except that he didn't qualify under the terms being used to measure "first orbital flight" because he didn't return in his launch capsule. The Soviets had their astronauts bail out of the capsule and not land with it because the early capsules rarely slowed down enough to be human survivable on landing. Later capsules landing speeds were reduced to just causing severe injuries on landing. So the Soviets hid the fact that they didn't return to earth in their capsules so they'd qualify as "first in orbit" despite not following the exact terms to be internationally recognized. — StarPilot 5 mins ago
@SimonAndréForsberg Very Nice
 
@SimonAndréForsberg But still no Necromancer. ;-)
(I'm out of ammo)
 
@Malachi Speaking of nice, YKWDTIR? (I think you can figure that one out)
@Jamal excuses, excuses...
 
I can delete a post and get my vote back...
 
@SimonAndréForsberg I am so fried I have been messing with VBA all day long comparing case numbers
@SimonAndréForsberg Your Kind works Deter The Inevitable Rain?
2
 
9:58 PM
@Malachi Close. You Know What Day Tomorrow Is, Right?
 
@SimonAndréForsberg yes, I can't deter that, can I ?
 
what's so special about saturday </s>
 
and I am out of time to look at these cases.....
 
9:59 PM
@mjolka cheater! Wrong time zone!
You've earned the "Necromancer" badge (Answered a question more than 60 days later with score of 5 or more) for "Getting and setting a static variable". -- thanks, Santa!
 
<?php
$time = date("H:i:s", time());
$message = "TTQW!";
echo $time . " " . $message;
?>
See you all soon from home
BTW, PHP... "H:i:s" is a very instinctual way for Hours, inutes, seconds. Good design.
 
@SimonAndréForsberg YW, that should get me out of having to click that link, right?
 
@Malachi haven't even posted the link!
 
well that is what I meant, that hopefully I won't have to see it..... :) JK
 
@Phrancis If they would use 'm', would that be for 'minutes' or 'months'? Also, the mess of having both single digits and double digits is... a mess...
@Malachi Well, I actually thought that I wouldn't post the link this week. Just to be a bit extra friendly to you :)
 
10:20 PM
Oh, it was handled. Nvm
 
That's a record... 2 users destroyed in 1 day....
Thanks Jamal.
 
That was... interesting spam. Or whatever it was.
 
translate: Pembesar Alat Vital
Magnifying Tools Vital
 
That makes the question part of 2 spam attacks.... interesting
 
I'm also not sure what Whirlpool bathtubs have to do with libcurl.
 
10:38 PM
Speaking of flags... holy crap messages in "The Bridge" are being flagged...
 
It appears that someone has searched for fuck and is flagging all instances. They will be busy for a while.
got to about 5-days-old messages before they ran in to flag limits.
 
only 56 such messages in this room.
 
lol
 
@Malachi LOL
yeah I did... >.>
That's wat ya get for scrolling
 
10:45 PM
night @SimonAndréForsberg, have a great Friday, Friday
 
Working on some brainfuck
 
@mjolka fun fun fun!
 
i'm lookin' forward to the weeekend
have y'all seen the equally amazing song, Chinese Food?
 
Nooo.... let me look it up!
 
@rolfl see it out to the end, it's worth it
 
10:52 PM
Chow Mein!
 
ch-ch-ch-chow mein!
 
Fortune cookies are never wrong!
Then you get the one that says:
That was not chicken!
 
that would actually be very reassuring for us vegetarians
@rolfl have you had any thoughts about the 8x8 bit matrix rotation problem?
 
0
Q: How can this be more concise and efficient?

user4097000I realize that "shouldReturnNumberOfCoinsWhenCanceled" and "shouldReturnNonNullNumbersWhenCanceledIfNoInput" are awfully long. Any suggestions to shorten and simplify? My code works but do you have any further idea of how I can make this code more concise and clearer? @Test public void shouldR...

 
11:08 PM
@mjolka Sorry, completely forgot.
Life has been.... distracting
 
np :)
 
@SimonAndréForsberg but they use M for months.. Using m for minutes would be practical...
But, my understanding is that "practical" is not PHP's forte :)
 
Pretty Horrible Programming
 
user image
3
 
LOL.
2
 
11:12 PM
^^^ makes sens.
 
Does anyone know what this does? It needs a better title.
2
Q: How to improve this Python function?

sirvonThis code works nicely for my purposes, but I would like to improve it exponentially. What are some steps I can take? I'm interested in optimization, refactoring, and clean-code. def do_GET(self): qs = {} path = self.path print path if path.endswith('robots.txt'): self....

And out of stars...
Again.
 
  public void shouldReturnNumberOfCoinsWhenCanceled()
^^ naming things...
 
omg i wrote a comment in my code that actually helped! thanks, past me
6
a previous employer made a poster that read "i <3 //" and stuck it above my desk to remind me to add comments. i guess it paid off
 
@Phrancis unit test names are just kinda like that.
Very verbose.
Pretty impressive answer here. At least it looks like it. I don't know jack about underscore.
1
A: Underscore template conditional can be reduced

JordanIf I understand your code correctly, it looks like you want to render tables with 3 records each, with the #header template for the top of each table and the #closer template for the bottom of each table, except for the last one, which should end with #footer instead of #closer. First, the littl...

 
@RubberDuck how's this
 
11:28 PM
Better than it was.
 

« first day (523 days earlier)      last day (3493 days later) »