« first day (1081 days earlier)      last day (2942 days later) » 

3:00 PM
css is confusing.. apparently flex-basis: fit-content doesn't work, even though mozilla says it should?? :s
 
0
Q: someone plese tell me how to execute this code?does it run?

Vinay Krishnathis is the link to the code: Document clustering / NLP

pick any reason to vtc
2
 
oh wow
 
VTC bingo is my favourite kind of bingo
3
 
@BenVlodgi I set up VS2015 for XNA, it just can't be killed! lol
how does Unreal, XNA and Unity compare?
 
@Mast sounds like Unreal is the WinForms of game dev
 
Zak
3:05 PM
@Mast It's fine, there's one folder layer after that and one file layer, both with constant filename-widths
 
Unreal is great
designing new features is slick with their new blueprints system
I got annoyed with Unity's Material system
@Malachi lol, I forgot about XNA... good old framework there
 
unity is more of a 3d Rendering environment isn't it?
 
@Malachi In unity and unreal, I get can a simple first person prototype up and running in 5 minutes
Unity and Unreal are both game engines
They're getting more similar with every release, but Unreal is ahead in the game
Most of my experience is with Source Engine
 
I wonder if I can pull in all my XNA code into Unity
 
Unity does run C# scripts
which is my favorite thing about Unity
 
3:08 PM
so I could pull in all my classes and stuff then!
 
-2
Q: someone plese tell me how to execute this code?does it run?

Vinay Krishnathis is the link to the code: Document clustering / NLP

 
right now it is a 2D scroller, but in the future it is going to be a 3D space fighting game.
 
If you want to try to port your code, then Unity might be what you want
Some programmers don't like the new blueprints feature of Unreal, because its visual programming.. but you can still code stuff in C++
 
30
Q: On-hold questions should have on-hold music

msh210Since a closed question is now listed as "on hold" for the first five days, I think the page should play hold music (autostart on load). This feature would supply the following advantages: It would make even clearer to the asker that the question is on hold. It would be an immediate indication ...

 
@BenVlodgi I just hope my laptop can handle it...I need a new one badly. the one I have is almost 6 years old.
 
3:16 PM
@Malachi The most efficient engine for old machines is SourceEngine, though its not designed with 2d in mind
 
0
Q: Reading in values to an array from a text file and printing

uoflPDTcodesI'm fairly new to C and my problem looks like it might be a memory error. #include <stdio.h> #include <math.h> int main(int argc, char **argv) { FILE *file = fopen("Offices.txt", "r"); char officeArray[20]; int yCoordinate[20]; int xCoordinate[20]; int i=0; while(fscanf(file, "%c, %d, %d", &...

 
@Heslacher Wow. That's beyond awful.
 
@Heslacher Too broad.
 
well
I just got a raise
2
 
@DanPantry \o/
 
Zak
3:29 PM
@DanPantry 'grats, that's awesome
 
thanks guys, was not expecting it lol
removed % as i don't want that to get starred and be against my name lol
 
@DanPantry Great!
Anything in particular that triggered it or are they just fond of you overall?
 
@CaptainObvious broken
 
I asked my boss to elaborate and he said "given the rate you were on, and what I see you producing and capable of producing, I think it's only fair you should be on more"
he also noted that I have a long career ahead of me :p
 
@DanPantry can you ask him to talk to my boss ? ;-)
 
3:33 PM
to be clear, everyone in my company gets a raise each year of 2% or something
to keep up with inflation + that's the national average
but this was.. a bit more than 2%
 
Good :-)
Given recent events with co-workers I can imagine this puts things in perspective.
 
Woot, +180 so far... and it's not even noon!
2
 
I need a raise in internet points, too, I should write more reviews.
 
Sounds familiar.
Oooh, an upvote.
3
I'm at a whopping +10 now today.
 
Hey @Mat'sMug I'm sifting through a stored proc that has a bunch of just regular selects that don't "do" anything, do the fields from reads like that get returned to whatever calling code fires the procedure?
 
3:38 PM
@Mast I have +20 on CR and +10 on SO today.
 
@Phrancis the proc selects multiple sets?
 
@EBrown Going great. I got +10 on Lifehacks yesterday on an old answer of mine.
 
Nice!
 
Was about a FIFO, so perhaps it's still code related, I dunno.
 
I need to go take a shower.
 
3:40 PM
@EBrown Yes, you do, I can smell you over here.
 
Hopefully my Fitbit gets delivered soon.
 
If you run it in ssms and there's 5 results windows stacked at the bottom, answer's yes: think of ssms as a sql client (which... it is)
 
@Mast Not surprising, I probably smell horrible right now.
 
Zak
I need to learn a new language, if only to write reviews in a tag that gets more traffic than ^^
 
Learn Pascal.
Or Delphi.
Those get pretty low traffic too. ;)
 
Zak
3:42 PM
I was thinking maybe Lisp ^^
 
Perl, would actually be a good one.
I need to learn more Perl and Ruby, myself.
 
@Zak try some , and then hop onto :)
 
@Zak Ruby, F#, Factor.
 
I wonder...
I love the OS X terminal look.
I wish the Windows PowerShell window was this customizable.
 
Zak
Half of all lisp questions are by the same user...
 
3:44 PM
@Zak by @Phrancis I bet
 
@Zak that totally was 2 years ago
 
Zak
@DanPantry Actually, he only has 2 questions in
 
Also, /usr/bin is AWESOME.
And grep is too.
Damn Windows, get that Linux kernel in there already.
So I can bash it up.
(Pun intended.)
 
@Zak So I can't call him Phracith yet?
 
1
Q: Excessive amounts of invocations in A* Algorithm while loop

TerrametI'm not entirely sure what code other people will need to see, if I miss something off that is important please leave me a comment and I will update it as soon as I possibly can. I have coded an A* algorithm following the pseudo code from Wikipedia. The problem is, from a relatively short route ...

0
Q: Mapping complex records retrieved from SQL-View to the class objects effectively

renakreIn my ASPNET MVC application, I am loading (let's say) Discussion Entry records along with User info (who post the entry), Badges (assigned to the entry), Reactions (made to the entry like facebook-style reaction). I retrieve these records from an SQL-View (with 23 columns) via a stored procedure...

0
Q: Is it a bad practice to use JSON strings as keys of objects?

DokkatOn languages such as Haskell, most datatypes have instances which allow their values to be used as keys of structures such as Maps. JavaScript has reasonably fast maps, there called objects, but those only accept string keys. Is there any conceptual issue, or anything else to be worried of, in us...

 
3:46 PM
@EBrown All unix tools are pretty awesome
 
The /usr/bin/python programme is more useful than the calculator app...lol
 
@CaptainObvious hypothetical, off to programmers
 
Man, this is super dope.
Oh man, why do I have to import math?
I guess for the same reason you have to using Math; in C#.
 
Python imports are awesome.
To prevent conflict AND reduce the amount of typing, you can import as.
 
3:57 PM
in C# you don't even need a keyword to do that :p
 
For example, import matplotlib as mpl
 
using Foo = My.Library.Foo;
 
That's a keyword and an operator instead of two keywords.
Boohoo.
 
import mpl from 'matplotlib'
js-style :P
 
@CaptainObvious Harvey got that covered in the comments quite quickly.
Not much of a question remaining.
@DanPantry That's awfully confusing.
import from insinuates you're taking part of the import.
 
3:59 PM
because you are
 
So it's not the same.
Python can also import from.
 
import mpl from 'matplotlib' is analogous to import { default as mpl } from 'matplotlib'
 
import matplotlib as mpl imports matplotlib but makes it callable as mpl.
So matplotlib.plot(x,y,z) turns into mpl.plot(x,y,z)
 
yes, that's exactly what I put does
except the symbol matplotlib would not be accessible, instead you'd only be able to access mpl
 
Of-course, you can also from matplotlib import *, which makes it callable as plot(x,y,z), which is a bad idea.
 
4:02 PM
@Mat'sMug Yep about a dozen seperate sets
 
@DanPantry Yes.
But it can't do both of what I just said at once.
 
@Phrancis gosh
 
Pick one.
 
TTGH :-)
 
@Mat'sMug I don't know what the calling code looks like, it's coming from an interoperability server I don't have access to :)
I can only imagine though *shudder*
 
4:03 PM
shivers
 
All the data sets combine to what amounts to an order form
 
hmm
 
0
Q: Reading .txt files

T.HaleIm new to java and need to produce an output like this..[75] [Fresco,] [Al] [67] [Dwyer,] [Barb] [55] [Turner,] [Paige] [108] [Peace,] [Warren] . I need to modify the code stated below any help is appreciated ! thanks import java.io.*; import java.util.*; public class CountWords { public st...

 
Then depending on a few things, it will either crunch it into an XML file and send via FTP, or into an email (of course)
 
> I need to modify the code stated below any help is appreciated ! thanks
Possibly broken.
 
4:08 PM
@Mast There is no way that that code works in the way they are saying, I think this should go to SO
 
@Phrancis That's what I thought. Don't migrate it though, it's crap.
 
Roger
 
Let the VTC come in.
 
@CaptainObvious its broken
and the best is you get one for free because that user has posted 2 questions to vtc
 
"I have only one collaborate, I used just plural form just to mention the issue in general!" Wait, what? Please do not obfuscate. Describe the situation as it actually exists, otherwise you're wasting people's (e.g. my) time. — Pete L. Clark 15 hours ago
@Heslacher I only see one.
Looks like Academia is having the same problem as Code Review when it's about examples.
 
4:14 PM
He/She deleted it just seconds ago. If you can see deleted posts: codereview.stackexchange.com/questions/126135/…
 
@Heslacher Sure, if you can pass me 5.9k I'll take a look.
:-)
 
Just go to my profile tab and take it ;-)
 
It's closed now, the Mug put the final vote in.
> (my about me is currently blank and I like it this way)
No it isn't.
@Heslacher Thanks, but I'm afraid it isn't that simple.
 
It looks so strange when I get a +9 rep notification :-(
TTGH see you tomorrow
 
@Heslacher Looks good when you get a +1 notification a couple days later though :-)
4 answers and 11 upvotes till my first tag badge, I should finally get that darn thing.
 
4:26 PM
Only need 4189 rep for 10k.
 
If only it was easy to find good questions to review. I'm usually late to the party.
I could write an awesome selfie of-course, but what's the fun in that.
 
I don't know, every woman I ever dated liked selfies.
They seemed to be fun then.
 
@EBrown I'm not a woman && I'm not dating you.
 
I never said either of those had to be the case.
(And to be fair, they also did it long before/after they dated me.)
 
I'm feeling stupid.
I can't figure out my bunny problem.
 
4:36 PM
happens to all of us
except the bunny part
 
I had a bunny problem.
So I put mouse-traps around all my carrots.
Problem solved.
 
now you have 180 problems
 
I only have a virtual bunny problem. The real bunny problem is solved by my cat.
I'd share pictures, but they get gruesome very fast.
 
No cat here, and I have a carpey dog.
Time to go outside and do something, methinks.
 
Been staring at these table rows for too long .__.
 
4:39 PM
@Phrancis IKEA?
4
 
lol
 
Fitbit just got here.
 
Oh nice
 
Why would they put an anti-theft token on a thing I bought online? >.>
Though I'll admit, it's the perfect size for my wrist.
 
@EBrown The anti-theft token?
 
4:52 PM
@Mast No, the watch.
 
Ah, you should definitely put a watch on your wrist IIRC.
 
Yeah...
> What time is it?
> I don't know, my watch is updating.
 
fun facts: I stopped wearing a watch when I realized I was pulling my phone from my pocked whenever I wanted to see what time it was.
 
#Tech2016
 
#TechToys
 
4:55 PM
A damn trailing space. was causing errors... >_<
 
I love making UI's for Excel macros.
like, a blank page without gridlines, and nothing but a huge button that screams "CLICK HERE!!"
 
For some values of UI.
 
IKR
eventually someone will notice I'm using the same font for Rubberduck's logo
 
It's a pretty cool font
 
3
Q: Is my script in violation of new TOS?

PamblamI have a userscript that I wrote to see who downvoted my answers on Stackoverflow. It does so by requesting and parsing other users' profiles via AJAX. Is this in violation of the new policy?

 
5:04 PM
What's it called?
 
how would that even be possible?
@Phrancis SHOWCASE
 
Hm, Word has a less flashy version called Showcard Gothic
 
that's the one
 
0
Q: HTML5 audio using callbacks for events determined by currentTime

andrewniteFor a little project I wanted to be able to run code snippets at a certain time in an audio sound track using html5 audio. I created a little JavaScript object that creates the audio tag and appends its to the document body and starts it playing. Using the method audioPlay you can give three para...

 
@Mat'sMug Must... resist... setting that in SSMS X)
 
5:10 PM
@Phrancis The font, it's hurting my eyes!
 
@Phrancis Dear god...that's horrible.
 
I didn't think anything could be worse than Comic Sans, but the internet found a way.
5
 
This watch takes 10 minutes to update...wtf.
@DanLyons The internet always finds a way.
 
@EBrown and aliens, it would seem
 
OMG THE PAIN
 
5:13 PM
GTFO
 
oh wow
now go show that to the clown that wrote the SP you were talking about earlier hahaha
 
> See what your crap code made me do? I hope you're happy.
 
lol
That's a seriously awful font to use for code and related texts.
 
@Mast s/code and related texts/anything
 
@Phrancis well it does look happy
 
5:17 PM
@EBrown Certain forms of advertisement perhaps.
 
or a huge lonely "EXPORT" button on an Excel worksheet
@EBrown hey, it looks great when it spells "RUBBERDUCK" :)
 
Fitbit works.
HR is 75BPM.
Seems low.
Down to 72 now.
71
Nice.
 
That's not low.
 
WOAH
It has a little graph under the HR readout.
That's awesome.
 
@DanLyons We should try all coding in Comic Sans for just one day
 
5:21 PM
@Phrancis No.
Also, time to go do some work outside.
 
@Phrancis I don't think many of us would survive that for longer than 10 minutes.
 
0
Q: Scan over parameter iterator for model simulation in python

SevenlessI'm writing a small python application that performs model simulation for many different parameters. The iterator of parameters isn't completely known ahead of time. Rather, the iterator needs to change and adapt based on the results of the previous simulations. The code below illustrates how I ...

0
Q: Simple calculator : Why this code doesn't work?

Francis JasminI'm a (really) early beginner in C#, I'm then sorry if my question might look a little childish. I'm reading this very good book "The C# Player's Guide" to learn C# and then make video game with Unity after. In one of the chapter, he ask us to make a (really) simple calculator as a console app...

 
> 11.3 You agree to be examined at the Company’s expense by a doctor nominated by the Company, at any time the Company so requests and you authorize such doctor to disclose and to discuss with the Company the results of such examinations.
Is this a normal contract clause?
 
depends what field you're in I guess
got anything to hide? ;-)
 
it's my contract
but it's still invasive
 
5:35 PM
@Phrancis you know, that font is made for SQL. there's no lowercase!
 
@JeroenVannevel it's probably just if they suspect you are using drugs on the premises/on the clock
 
It was part of the sick days arrangements but maybe that too, yeah
still, these things are way too broadly worded
Same with this:
> 14.1 You acknowledge that all Intellectual Property Rights subsisting or attaching to all Intellectual Property made, originated or developed by you at any time in the course of your employment with the Company or any Group Company shall belong to and vest in the Company absolutely to the fullest extent permitted by law. You undertake, at the request and expense of the Company, to
> (..) all Intellectual Property made (...) by you at any time in the course of your employment
 
It may be too broad to be enforceable
 
Does that include stuff I made at home that has no relationship to what I did at work?
because it sure sounds like it
 
looks like it
 
5:39 PM
"subsisting or attaching to"
 
How is that an acceptable contract clause
I'm not giving them the rights to the stuff I do privately
 
they're just covering their rears and saying "what you write for us, belongs to us"
 
this isn't even limited to programming related stuff. I could invent a new recipe based on eggs and steak and they'd get the rights
 
Americans beat you to that, buddy
 
@JeroenVannevel Yes. It's quite common around here, but I try to avoid places like that like the plague.
 
5:41 PM
If in doubt though, I'd ask a legal expert, or at least ask on The Workplace
 
@Phrancis They'll start out with IANAL.
[legal.se] perhaps?
 
Well, realistically speaking I'll probably still take it anyway
 
@JeroenVannevel Where are they located, London?
 
You could also, uh, ask them to explain before you sign it
 
5:42 PM
Around here, it isn't often enforced.
 
I'll bring it up at the meeting though and see what they say about it
that should have some legal ground as well
 
@Phrancis You do realize they are under no obligation to tell the truth unless they put it in writing?
 
@Mast yes
 
IANAL so no, I didn't
 
They should tell the truth, but since you can't prove it if they don't put it in writing, they aren't liable till they do.
 
5:46 PM
0
Q: Backbone view and route management

bugytI try to make a blog witk Backbone.js. It's just to learn this framework and I want to start with a good foundation. I want to show you some of my beginning code because I want advices on how to improve views and routes management and use the best design patterns. (sorry for my poor english) mai...

 
Don't make the same mistake I did and think it's nothing. If they want to enforce it, they will. They don't often, but you tend to have strokes of genius in you and if they're a bunch of morons they'll try to lift you out of the first good idea you get while under contract.
 
just ask something specific: does this clause mean my potential employer is claiming the intellectual property rights to software I'm writing for myself and outside office hours, at home?
 
The best place I've worked so far didn't even have a confidentiality agreement.
I'm not as experienced as some of the old folk around here, but I've seen my share of employers. The more secret they get, the lousier the culture at the place was.
 
small places won't have one. until they get screwed by an ex-employee.
like that guy, that wrote a LINQ-to-Sage implementation and put it all up on CR under CC-by-SA
 
12 month non-compete clause as well
 
5:58 PM
Hmm never had that. That's annoying. Any severance package?
 
Zak
Non-compete. Ouch. They better be offering you one hell of a job.
 
eh, non-competes are more and more common nowadays - it's less scary than the super-general IP clause, IMO
 
With a severance package, fine. Otherwise...
 
needless to say, it's probably best just to sit down with a lawyer and go over the entire thing with them
 
Non-compete? I'd need to see some serious compensation before accepting anything remotely non-compete.
 
Zak
6:00 PM
With the IP, I think "in the course of your employment" means it has to specifically be related in some way to your job/work. But, then again, NARL, so who knows.
 
0
Q: A framework for simple multiple-choice quizzes

OrangesandlemonsJust looking for more experienced programmers opinions on this code. It's a framework for making simple multiple-choice quizzes. I am aware that there is the potential to make the arrays dynamic, but at small sizes this shouldn't matter much. The formatting of the .txt files used to compose quizz...

 
@Zak You'd think so, but I sat down with a colleague who warned me not to seek the limits of it anyway.
 
Zak
If you want a recommendation for a UK lawyer, we work with a lot of them around London.
 
That's true, Zak knows a lot of companies.
 
@Mat'sMug no severance package
 
6:05 PM
I wouldn't go for it, but it's your call.
I'd say you got plenty of other employers to pick from.
 
The non-compete is within their industry (ticket selling/ re-selling) so I don't think it's terrible restrictive
 
Zak
How broad is the non-compete?
 
"“Restricted Area” means the United Kingdom, Germany, and any other EU member country:"
It only relates to the products and services they offer
which is a ticket (re)-selling platform
I suppose you could interpret it as any kind of e-shop but that's already testing the limits
That's only a fraction of companies after all so I'm not really worried about this
 
Zak
Sounds like it's probably okay, but definitely have a proper lawyer explain the contract to you so there aren't any nasty surprises down the road.
 
I'll forward it to my cousin since she's a lawyer here in Belgium with a focus on EU law -- she might have relevant knowledge
 
6:11 PM
1
Q: Change list separator, parse file, restore list separator to original value

puzzlepiece87Following up on @Vogel612's friendly advice from the vba-rubberducking chat room, I am posting my working code for open review. Thanks also to @Mat'sMug for the help! This will be my first task that I have completely automated via batch file scheduling, so I have included some spaces to pass err...

 
After the 14-page contract it's time for the 30-page employee handbook
 
@JeroenVannevel looks legit
 
just assign me an issue and make me write code damn it
 
Zak
@Mat'sMug I can attest. 1 week into my current job, I sent our Finance Director a file called "Payroll 2012" with the message "I should not have been able to find this by just wandering through the shared drive."
 
yikes
 
6:17 PM
How did he react?
That's a serious problem.
Do they even know what a database is at your job?
3
 
looks like we're not the only ones with a broken network then
 
And, you know, security being a thing?
 
Zak
Back then, I was (non-director) employee #5
 
@Mast you got Excel, no need for funky databases
 
I should do more Excel.
2
I should do more.
 
Zak
6:20 PM
Small companies have far more pressing concerns than internal security.
 
0
Q: java.util.LinkedHashMap cannot be cast to com.mongodb.DBObject

user157 This is code for creating json array using java JSONArray ja = new JSONArray(); Map<String, Object> jo = new LinkedHashMap<String, Object>(); for (int i = 0; i < fieldName.length; i++) { jo.put(fieldName[i],cmdel.fileType(fieldType[i]))...

0
Q: Avoiding pointers in this C++ code

AmirHosseinAs I know it is not good idea to have so many pointers in c++ code. But I have written this simple implementation of linked list in c++ and there are many pointers in it, how can I improve that? Also as I tried I can not use functions in algorithm module on this linked list, how can I make this c...

 
@Zak Surviving? ^^
 
@CaptainObvious Why would you avoid pointers in C++? IT'S C++!
Pointers are awesome.
 
Zak
6:26 PM
@Mast yeah, stuff like that ^^
 
 
@Zak That also happened at my old workplace, a regular call center agent was able to go through the shared drives and find payroll and finance files
 
wow
 
Welp, I can cross getting rickrolled on stack exchange off my bucket list. — shmosel 12 hours ago
 
You are always converting the stringPremierNombre value. Now your code is working and I think you can post it here for review because it's really a messy code.. — denis 55 mins ago
I thought Hungarian was bad. It turns out that Hungarian franglais is worse.
5
 
6:38 PM
Oh wow, that's horrible
 
Indeed.
 
To be fair though, there's not really a sensical way of saying string in French that doesn't make you think of an actual string or rope, or a series, which is ambiguous... Or is there @Mat'sMug?
 
So don't call it a string.
problem solved
 
@Phrancis French sprinkled in code is worse than pretty much everything
 
6:44 PM
French has too many words that mean almost the same thing
 
More like English has words with too many definitions
@Phrancis I think the appropriate word is chaine
 
0
Q: i worte code to send request that is taking too much time time

sauravi wrote code which is doing query and inster inside while loop , i want to fix it help as it takes too much time below is my code : my code took 3 min to execute $getall = mysql_query("SELECT `deviceid`,`uid` FROM `users` WHERE FIND_IN_SET(`bgroup`, '".$allbrgou."' ) AND `uid`!='".$from."...

 
with an accent circonflexe on the i
 
publique statique nulle principale(Chaîne args[]) {
    Système.sortir.imprimer("Bonjour, le monde!");
}
shudder
 
ohh dear that's terrible make it stop
no pls
I think it would make more sense as Système.sortie.imprimez by the way
Since you're commanding the computer to execute your terrible French print statement
And sortie is more like "outlet" which makes sense
 
6:50 PM
and then in France they'd do Système.Output.Print
 
I think "sortir des données" is the correct French for "output"
 
Right but sortir is a verb
 
@Mat'sMug You mean tèmesys.putou.tinpr, if verlan is still a thing
 
wut
 
@Phrancis like, stromae?
 
6:53 PM
@quartata IKR - verlan == "l'envers", reversed. "L'envers" also means, reverse. People from France are weird
 
that's just too meta
 
@CaptainObvious Learn to write a question before posting code for review. UWYA'd.
 
> that is taking too much time time
> time time
lol
 
@Mast language barrier there I think, me try to fix it real quick
 
@quartata Time^2.
@Phrancis Lack of effort methinks.
 
6:55 PM
@Phrancis Yeah, probably. Maybe we need language-specific CR sites like SO :P
 
definitely language barrier
 
Oh wow, it's worse than I thought ;-;
 
@quartata I can totally see vba.stackexchange.com happening
 
No not those kind (although that would be... terrifying). I meant like "CR in Spanish" or something.
 
@Mat'sMug That's not the kind of language we're talking about.
 
6:58 PM
oh
facepalm
 
In fairness, code should be written in English. It's the de-facto standard for writing code AFAIK.
So the moment your variable names are French, the review could state you should write it in English instead.
 
200 ninja'd my edit - that's OK though, his is really good :)
 
Well, most languages do support Unicode identifiers for a reason...
 
@Phrancis Indeed, that's a great edit.
 

« first day (1081 days earlier)      last day (2942 days later) »