« first day (504 days earlier)      last day (3516 days later) » 
00:00 - 18:0018:00 - 00:00

6:01 PM
@skiwi learn to use the command line, it's better for you to learn it now than stick to your old windows ways ;-)
 
How is the CLI useful when simply moving files?
 
globbing
 
I like it for a lot of things, but not for all
 
mv ./path/to/dir/*.some.ext ./path/to/dir2/
for example
it's a lot more concise than opening a window, going to that directory, sorting by file type, selecting those files, ctrl+X and then going out to the other directory..
 
@DanPantry With alt tab that's done in a second
Typing takes longer lol
 
6:04 PM
@skiwi not rly..
 
not if you type 150wpm
2
 
@DanPantry I come close to that
 
also alt tab is awkward, I find, on ubuntu
 
I'm so glad I've learned to use Total Commander. Ctrl+D, Ctrl+Tab, F6, I love you all!
 
better to use virtual desktops and not pansy around with alt-tabbing or guis ;)
the only thing I use a GUI for is Chrome/Firefox and SublimeText
erk
I just rtested, I type at 151wpm.. while tryin gto correct mistakes
i better start looking for an arthritis cure now
 
6:10 PM
eeeh arthritis??
wuzzat?
 
carpal tunnel is going to get you first @DanPantry if you are not careful
 
@Vogel612 bit.ly/QbixD6
@bazola I am careful with that sort of thing
 
I did
it says something when google ads are showing me stuff about server hosting, huh
|:
 
6:14 PM
that was me about 3 years ago :D
 
I've hit 700+ occasionally
 
characters.. I hope
 
The problem is that I usually take more time to think than to type
 
ermagherd 48 WpM
 
@DanPantry Yes...
 
6:14 PM
lol
thinking is overrated
 
and 55 WpM in german
 
I'll try german
And lol that screenshot thing is so bugged... You could easily change the values
 
@DanPantry You still able to hit 150 WPM? :P
 
6:20 PM
@skiwi that screenshot was me jut then
when I said 'that was me 3 years ago' I meant 120wpm
 
Ah
Then you're the first person I've met that can type faster than me
Was expecting more information in the article though
 
this is a fun site for typing egos: play.typeracer.com
 
Yeah, that's one I couldn't find the name of
It's a bit more realistic
 
6:39 PM
Monkernoon!!
 
0
Q: Function to divide a string for seperate lines for output

Amr AymanI'm a huge fan of command line programs. Most of my programs are command line ones, they're relatively easier to use and implement without any GUI overhead. The problem is, I want my output to be perfectly aligned in the terminal. Specifically, long lines are really hard to track from the command...

 
@bazola
>
Typing Challenge Passed
Speed: 162 wpm
Accuracy: 97%
Congratulations! You are now certified as able to type 162 wpm!
wat
 
Holy cow.
 
showing off?
 
@bazola no lol
 
6:48 PM
I clocked in at a meager 45 wpm, though only first try with no practice (and a beer in me).
 
> types fast
> can't finish a project
...I can't escape '>'? :(
 
I feel evil when doing this assignment...
in TCG Creation, 49 secs ago, by Duga
> Made it possible to fork and kill children.
 
lol
 
@Phrancis you were too fast yesterday....80 something points were reversed....LOL
 
I feel happy though, first time ever programming in C, and it worked on the first try! (After fixing a bunch of compiler errors)
 
6:52 PM
anyway I will see you all on monday...
 
pid_t* children_IDs = fork_children(NROF_WORKERS);
kill_children(children_IDs, NROF_WORKERS);
 
Ah... did you get the badge anyways?
 
@skiwi:
 
I got inquisitive
 
> it worked on the first try!
user image
2
 
6:53 PM
@DanPantry Actually... It just did!
 
Congratulations on finding your first compiler bug
anyway, off to finish my chow mein and watch LOTR for the first time, have a good night gents
 
@DanPantry All three?
 
the first one is 3 hours, so, probably not
should have them all done by the end of the weekend, though
 
Oh wait, there are 4 now
Haha, enjoy either way
 
7:19 PM
0
Q: Optimize query containing too many inner join and rows

user2350469I have the following query: SELECT * INTO ##TempStaffT FROM Staff HF WHERE HF.[businessline_id]='T' AND HF.[offices_id] IN (SELECT * FROM ##TempParamOffice) AND HF.[specialism_id]IN (SELECT * FROM ##TempParamSpecialism) AND HF.[onetouch]IN (SELECT * FROM ##TempParamConsultant) SET @sql4 = N...

 
Holy crap, 15 joins @CaptainObvious??
 
you could find that question under the dictionary definition of relationship abuse
 
LOL.
inner JOIN  dbo.WTFAC F ON EF.EFAC_NUM = F.EFAC_NUM
His table names are as cryptic as his aliases
 
WTFAC
WTF
 
Nice.
 
7:24 PM
@Phrancis Performance... no problem
 
- Start query;
- Make coffee;
- Take a short walk;
- Respond to emails;
- Get query results.
> My problem is that the query above took 20 min to be executed
 
7:36 PM
I feel like my review is going to sound a bit mean. But it really is a bad, bad query.
 
And it is a bad bad question IMO
No explanation whatsoever
 
8:00 PM
Huh?
Where are the tests? — Josh Johnson 23 mins ago
 
I'm trying to not pimp all my answers, but I though this review is decent, considering the question...
CROSS JOIN really... -_-
 
8:53 PM
0
Q: Bash - Updating a config file

user3590149This script updates a settings in ssl config file for Nginx. I generate DHEC key and then update the Nginx SSL file to that location. I also give an option for the user through arguments if they want to change the bit size of the key and if they want more conservative or hardened SSL cipher suit...

 
9:14 PM
posted on September 20, 2014 by Vimzy

Alright guys, I've been stuck on this problem for a while now and have not been able to get past it. This is for Java. I'd appreciate any help at this point. Here are the details: Please note, we must do this in O(n) running time. We are given an array of numbers and must go through it to determine if there are any 3 numbers that sum to a specific number. HOWEVER, we

 
@CaptainObvious huh?
Oh it looks so weird because it was deleted already
 
> I'm trying to wrap my head around OOP but so far I feel like I'm just moving functions into classes and calling them methods.
^^ Excellent quote about what OOP is :)
 
Great, I got into a new language fight: In C do I use malloc or do I let the caller supply the array; if the latter, do I then also return the array or do I return a void?
 
@skiwi Depends on what the method is supposed to do....
 
@SimonAndréForsberg It's supposed to return an array of ids of the forked children processes
 
9:25 PM
So in Java it would be like int[] getForkedChildren() ? I'd say do malloc.
Hey @Mat'sMug, was just thinking about you!
I realized that I could do Rock Paper Scissors in Brainfuck!
 
@SimonAndréForsberg Yes, in Java it's all easy
 
Oh... is that my fault?
 
But I also saw people talking about how a malloc is evil, as now the caller needs to implicitly take care of the returned array; while when the caller needs to supply the array by himself, he knows he needs to delete it
 
Does the caller know the number of forked children processes?
@Mat'sMug I saw your LOLCODE RPS question
 
@SimonAndréForsberg Yes
 
9:27 PM
@skiwi That is a good point.
 
Yeah, I... sort of peer-pressure-undeleted it
 
If the caller knows the number of forked children processes, then it's reasonable to expect the caller to provide the array
@Mat'sMug I want to re-tag it but I hope it doesn't get too much attention from that
Maybe I can quickly hide it among some more edits :)
 
Hehe.. I think fizzbuzz was a greater... buzz
 
Sigh, you really need to check every . single . malloc call for if there's enough memory provided by the OS?
@SimonAndréForsberg Would you in the latter case then rather return the array as well, or ismply write into it?
I'm still confused
 
@skiwi write into it. Return void. Otherwise you would have the same thing as both input and return, right? That would just be confusing.
 
9:37 PM
int main (int argc, char * argv[])
{
    if (argc != 1)
    {
        fprintf (stderr, "%s: invalid arguments\n", argv[0]);
    }

    output_init ();

    pid_t children_IDs[NROF_WORKERS];
    fork_children(children_IDs, NROF_WORKERS);
    kill_children(children_IDs, NROF_WORKERS);

    // TODO:
    //  * create the message queues & the children
    //  * do the farming (use output_draw_pixel() for the coloring
    //  * wait until the children have been stopped
    //  * clean up the message queues
@SimonAndréForsberg Yeah, you're right
Do I now need to free it or not?
The rule of thumb is that every malloc should go with a free
Ah I maybe cheated because I have a constant?
is pid_t children_IDs[variable] even possible?
Nvm that's also possible
Question still stands
I want to put this on CR, but I don't think it's allowed with the fraud rule
It is allowed to put the source online as long as you are the only one to commit to it
Oh right, a pid_t children_IDs[NROF_WORKERS] is only a declaration, it is not an allocation
 
-2
Q: How to Check Array for 3 Numbers that Add to a Specific value in JAVA?

VimzyAlright guys, I've been stuck on this problem for a while now and have not been able to get past it. This is for Java. I'd appreciate any help at this point. I need it to sum to 225. Here are the details: Must do this in at least O(n^2) running time. We are given an array of numbers and must go ...

 
@JeroenVannevel Nice one
A friend of mine has suggested that I should make a resume in the form of an Android app
 
You'll have to bang out something very impressive if you want to live up to the expectations of whoever installed that app then
 
Probably.
Which is why I haven't made it.
Making impressive apps is hard. I can code, but design? Umm...
 
10:08 PM
JAVA
 
10:25 PM
0
Q: Unit of work + repository + service layer with dependency injection

Guillermo GomezI am designing a web application and a windows service and want to use the unit of work + repository layer in conjunction with a service layer, and I am having some trouble putting it all together so that the client apps control the transaction of data with the unit of work. The unit of work has...

 
Are there any prizes for making your browser send ~120 HTTP requests to an API from loading a single page?
because if so i just managed to do that because i am a bad programmer lol
 
10:40 PM
@Pimgd It wasn't crap advice. It actually seemed like good advice. It just didn't feel like a review to me. codereview.stackexchange.com/a/63370/41243
You're right though, I should have left a comment. I'm sorry.
I just don't always have time to.
 
0
Q: Conversion Between Units

soktinpkI have created a java program that should take a list of conversions and be able to convert one unit to another. My main goals are maintainability and readability, but speed would be nice as well. Example input.in 1 meters = 100 centimeters 10 millimeters = 1 centimeters 1 meters = 0.001 kilome...

 
@Phrancis I can't remember the last time we had a genuine JAVA question. Oh wait... that was for my first Java question...
 
} //sick ESP bro
on what basis is this being close-voted on?
"unclear what you're asking", right
 
11:25 PM
oh I get it.
private DataContext _dbContext;
^^ LINQ-to-SQL
yet OP states he's using EF
weird
 
11:53 PM
public class DataContext : DbContext
 
@Jeroen yeah, brainfart I guesa
Maybe it's just me, but DataContext clashes with the Linq-to-SQL context class in my mind (System.Data.Linq.DataContext). — Mat's Mug 3 mins ago
*guess
 
Hi there, are any of you good with python?
 
not me!
hi!
 
00:00 - 18:0018:00 - 00:00

« first day (504 days earlier)      last day (3516 days later) »