« first day (507 days earlier)      last day (1822 days later) » 

7:02 PM
7 data update Jira tickets later...
And that SOS logo... @Mat'sMug UGH.
 
Don't let programmer (those like me that are not good at design) do xsl style stuff.... I can guarantee you it's a mess!
 
@Vogel612 I know that it is just an estimate
 
@Marc-Andre Don't let anyone do xsl stuff
 
@Marc-Andre LOL I don't make that much of a mess....lol XSLT sucks though, it's a PITA
 
a pita?
 
7:07 PM
Pain In The Ass
 
and @syb0rg's C++ saga continues :)
 
@TopinFrassi I would like to follow that advice but it's the tech I;m stuck with.
 
This project was almost simpler than the last one: codereview.stackexchange.com/q/63708/27623
IMO
Unfortunately, I can't come up with as cool of a name for the question title
If anyone has ideas for a catchier title, you are welcome to edit it
 
something about the ability to float perhaps?
 
@Mat'sMug Unfortunately it's only spheres... so maybe something with fat people?
 
7:11 PM
2
Q: Calculating the buoyancy of a sphere

syb0rgContinuing my C++ saga, this is the third project for my CS1 class: Buoyancy is the ability of an object to float. Archimedes' principle states that the buoyant force is equal to the weight of the fluid that is displaced by the submerged object. The buoyant force can be computed by ...

 
If she floats then she is not...
 
@syb0rg Run the program again (y/N): Why is the N capitalized ?
 
...a witch like we thought
 
@Marc-Andre It indicated that if the user just pressed enter, the N option is default and the program will exit
@Mat'sMug Set as title haha
 
nah.. nobody listens to Nirvana anymore ;)
 
7:16 PM
@Mat'sMug Meh, if anyone watches Monty Python they might think it is funny
 
it's the opening line from Serve the Servants
 
@syb0rg Great.
 
@Marc-Andre Yeah it's the harsh reality of programming, but apart from that it's pretty awesome
 
@TopinFrassi Indeed, but I'm starting to feel that we use a lot of WTH tech! Some day I'll work on something cool for a living!
 
(oops.. the opening line is Teenage hangst has paid off well; now I'm bored and old)
 
7:19 PM
@Mat'sMug Not true. I have some Nirvana on my iPod.
 
lol he edited it
 
Hi @ptwales
 
0
Q: Java best style for return statement - inside or outside if condition?

user3553107Is there a better way to write the code below? I'm checking if an object is null, returning false if it is, otherwise I check another variable and choose what to do based on that. private boolean myFunction(MyObjectType myObject) { if (myObject == null) { return false; } else if (myInsta...

 
I like some older Nirvana now and again, mostly from Bleach album.
 
@CaptainObvious Off-topic
 
7:32 PM
@CaptainObvious looks like example code
 
@Phrancis that's the best one!
 
Before they started sounding less like punk and more like pop-rock!
 
@hi syb0rg
2
 
@ptwales Flip the @ sign to my name so I'm pinged next time ;)
 
while() and do-while() are out of the way. Now how about for()
 
7:38 PM
...
derp
 
bbl
 
@ptwales Ehh, I threw a star at it. It made me lol
2
 
@syb0rg I'm not used to that twitter ist
 
^^^ me too! What syborg said not ptwales.
 
@ptwales Yeah, it can be confusingish sometimes
 
7:42 PM
No one is hurt unless their name is @hi ... ;)
2
 
Don't get any ideas @Mat'sMug...
;)
 
Shameless pimping:
1
Q: Interprocess Communication in a Farmer-Worker setup

skiwiThe following code is my first C program I have made for an university assignment about Interprocess Communication. This involved creating a parent process, the farmer, and then creating a certain number of forked processes, the workers, and we had to let the workers calculate something and use m...

 
Ohhhh....
(auto +1)
 
Now tear it apart please ;)
 
I'm surprised that there's no tag yet.
 
7:56 PM
I just realized how much I have missed my code getting ripped apart nicely when posting CR questions :(
 
3
Q: Interprocess Communication in a Farmer-Worker setup

skiwiThe following code is my first C program I have made for an university assignment about Interprocess Communication. This involved creating a parent process, the farmer, and then creating a certain number of forked processes, the workers, and we had to let the workers calculate something and use m...

 
@Mat'sMug In SQL Server it does. Forget MySQL......
hahahahahahaha..... I was being bad on SO....
probably best to just leave a comment pointing to the (relatively) canonical: How to avoid using Select/Activate in Excel VBA macrosDavid Zemens 2 hours ago
Yeah @DavidZemens, maybe, but this way I know he actually saw how it's done. — ckuhn203 1 min ago
 
@syb0rg Oh btw, about the error I was having
I was sending a pointer via the message queue to the other process, then tried to dereference it
 
@skiwi I have class soon, sadly :(
 
8:26 PM
 
@Phrancis What the fug how on earth can you mess up a meme that badly?!
4
:)
 
@Phrancis WTF @Phrancis
i just had to come back right at this moment....
IT'S NOT FRIDAY PEOPLE!!!!
 
LOL
 
I am looking to keep a service from running if an instance is already running, what is this called?
 
port squatting ;-)
 
8:30 PM
@Malachi Running it only a single time?
 
if you can't open the port, are you already running?
 
preventing multiple instances of the service.
I turned on AutoReset....
Nevermind.
thanks for the @RubberDuck ing session, not for the @RebeccaBlack
 
@Phrancis Why am I out of stars?? Y!
 
@Phrancis Thanks for the upvote though
 
can't believe I didn't get more votes on this before it went Wiki! programmers.stackexchange.com/a/166601/62519
 
8:38 PM
Just found a typo in our database schema... Column named Contract_Purcahse_Date
 
@Phrancis Fixing it will break more things!
 
Monking everyone!
 
Yep, a little late to fix!
 
I just found an awesome game to ruin everybody's eyes.
It's called Colors, you have an array of tiles and you must click on the tile whose color is different.
 
Sounds painful...
 
8:44 PM
We're all masochist at heart.
 
What the hell did I just read:
> QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv.
 
That's pretty funny actually
OK so I promise I won't post this for review... but I'm getting syntax error...
<?php
$counter = 1;
$stopper = 100;
$fizzWord = 'Fizz';
$fizzNumber = 3;
$buzzWord = 'Buzz';
$buzzNumber = 5;
for ($counter = 1; $counter <= $stopper; $counter++) {
	if (($counter % $fizzNumber) = 0) {
		echo $fizzWord;
	}
	if (($counter % $buzzNumber) = 0) {
		echo $buzzWord;
	}
	else {
		echo $counter;
	}
echo '<br>';
}
?>
 
6
Q: Interprocess Communication in a Farmer-Worker setup

skiwiThe following code is my first C program I have made for an university assignment about Interprocess Communication. This involved creating a parent process, the farmer, and then creating a certain number of forked processes, the workers, and we had to let the workers calculate something and use m...

I wish to keep the 1:2 vote-view ratio up!
 
Anyone see the problem? Been tinkering with it for a while and can't figure it out
 
@Phrancis Compile time type checks...?
Oh wait, it is PHP
Just saved you from an evil bug!
($counter % $fizzNumber) = 0 should be ==
 
8:48 PM
0
Q: Caculate p-value using permutation in replication test

NealIn need to calculate a statistical test and the p value is computed by using permutation. I wrote the code for this method and I do not have a strong background for calculate p-value using permutation. The link for the method and the code is given here. nj = c() mj = c() for(i in 1:ncol(SNP)){ ...

 
Normally it works, but not with a compound statement
 
That was it!
Although, the output is wrong
> 1
2
Fizz3
4
Buzz
Fizz6
7
8
Fizz9
Buzz
11
Fizz12
13
14
FizzBuzz
Sure I can fix that though, sounds like my conditions are not in order
 
@Phrancis Hint: If-else statements ;)
And If-Elseif(1..*)-Else
 
@Phrancis why are you posting so much crap today in chat?
 
LoL I'm bored I guess
 
9:01 PM
I was just messing with you...lol
trying to figure out how to make this service work with the changes I made....ugh, nested SqlCommands and such...
messy
 
I thought FizzBuzz would be a good exercise to practice chaining conditions. Notice I did not do a FizzBuzz word modulus (too easy) because I wanted to keep it modular
 
@Phrancis Post it on SO....
@Phrancis I just saw what was on the screen when I switched over.
 
Nah I can fix it I think
 
what should I use when I am thinking Integer Array?
should I use an actual Array, I just need something that will hold ID's temporarily, so that I can un-nest the SQL Command from the other
 
SQL... I'm thinking... a table?
 
9:04 PM
in C#
 
Oh. Duh.
 
not my program but trying to make it pretty, smart and functional
 
I'm thinking... unless you have a massive amount of IDs to hold, an array should work OK...? Not really an authority on the topic :)
 
was hoping the Duck or the Mug would be around. they must be actually working today, Like I am
 
9:20 PM
How about ...an int[]?
 
that would make me define how big it is before I am ready to tell it how big I need it...if you get my drift....
I am reading rows and need to save their IDs to mark them sent using a different SPROC
I am going to try a List<int>
what do you think?
you kind of follow?
 
Nope, I'm working ;) but List should work
 
lol
 
Microsoft wanted me to install some Russia time zone update for Windows 7? At least it didn't require a reboot.
 
9:27 PM
@Jamal that sounds scary
do you live in Russia?
 
I'm... not sure.
(no, I wasn't being sarcastic.)
 
thanks Programmers Voters
> You've earned the "Necromancer" badge (Answered a question more than 60 days later with score of 5 or more) for "My boss decided to add a “person to blame” field to every bug report. How can I convince him that it's a bad idea?".
 
Oh well. The only "update" I've rejected was Bing Bar.
 
@Jamal that thing is Clingy
 
9:28 PM
@rolfl I think this update will come in handy in case Russia takes over the world. I'll be prepared.
 
Oh hey, Jamal... look what I made for you:
<?php
$counter = 1;
$stopper = 100;
$fizzWord = 'Fizz';
$fizzNumber = 3;
$buzzWord = 'Buzz';
$buzzNumber = 5;
for ($counter = 1; $counter <= $stopper; $counter++) {
	if (($counter % $fizzNumber) == 0) {
		echo $fizzWord;
	}
	if (($counter % $buzzNumber) == 0) {
		echo $buzzWord;
	}
	if ((($counter % $fizzNumber) != 0) && (($counter % $buzzNumber) != 0)) {
		echo $counter;
	}
echo '<br>';
}
?>
 
Hey it works and is readable enough, no? ;)
 
Oh, I thought it was bad because PHP. :-P
 
PHP is not that bad, so far. I think it's people that write it that are bad!
    // wish I knew a better way to do this
	if ((($counter % $fizzNumber) != 0) && (($counter % $buzzNumber) != 0)) {
		echo $counter;
	}
 
9:31 PM
I'm sure I'm just on the bandwagon, because it's strangely fun to hate on a language. Maybe someday I'll have a reason to hate Java.
 
@Phrancis Never heard of an else-if?
The whole thing should be if -> else if -> else
posted it for review yet?
@Phrancis This:
for ($counter = 1; $counter <= $stopper; $counter++) {
        if (($counter % $fizzNumber) == 0) {
                echo $fizzWord;
        } elseif (($counter % $buzzNumber) == 0) {
                echo $buzzWord;
        } else {
                echo $counter;
        }
echo "<br>\n";
}
Note the change to "<br>\n" as well.
when you Ctrl-U the source for the page, it is nice to be able to read that too.
 
What's \n for?
 
Compare:
anabox:~/xxx% php fizzbuzz.php | head -10
1<br>
2<br>
Fizz<br>
4<br>
Buzz<br>
Fizz<br>
7<br>
8<br>
Fizz<br>
Buzz<br>
vs.
panabox:~/xxx% php fizzbuzz.php | head -10
1<br>2<br>Fizz<br>4<br>Buzz<br>Fizz<br>7<br>8<br>Fizz<br>Buzz<br>11<br>Fizz<br>13<br>14<br>Fizz<br>16<br>17<br>Fizz<br>19<br>Buzz<br>Fizz<br>22<br>23<br>Fizz<br>Buzz<br>26<br>Fizz<br>28<br>29<br>Fizz<br>31<br>32<br>Fizz<br>34<br>Buzz<br>Fizz<br>37<br>38<br>Fizz<br>Buzz<br>41<br>Fizz<br>43<br>44<br>Fizz<br>46<br>47<br>Fizz<br>49<br>Buzz<br>Fizz<br>52<br>53<br>Fizz<br>Buzz<br>56<br>Fizz<br>58<br>59<br>Fizz<br>61<br>62<br>Fizz<br>64<br>Buzz<br>Fizz<br>67<br>68<br>Fizz<br>Buzz<br>71<br>Fizz<br>73<br>74<br>Fizz<br>76<br>77<br>Fizz<br>79<br>Buzz<br>Fizz<
 
Ah makes sense
 
Please do not roll back an edit unless it has changed the meaning of the post in some way. These edits were done to remove noise so that only the important things stand out. — Jamal ♦ 11 secs ago
 
9:40 PM
Odd...
> 1
\n2
\nFizz
\n4
\nFizzBuzz
\nFizz
\n7
\n8
\nFizz
\nFizzBuzz
^^ output
Oh. Double quotes.
 
@Jamal - about to add a comment there... OK with you?
 
Okay
 
Good, puts on hammer-hat ... ;) (it was collecting dust anyway).
 
lol
 
Code Review questions are all about making things nicer. As a result, it is heavily discouraged to have that in your title, it makes no sense and it does not differentiate your question from others. It's redundant. Similarly, your request for review is both unnecessary, and overdone. If you do not like Jamal's edits, then please make your own to bring your question up to the standards we expect. I'll swing around in an hour or so and do it myself unless you get there first. — rolfl ♦ 23 secs ago
 
9:47 PM
1 hour ago, by Phrancis
OK so I promise I won't post this for review... but I'm getting syntax error...
@monkey ^^ There's enough FizzBuzzing already I feel... 3 in PHP alone lol.
 
@rolfl Great! I'll be going to class soon anyway.
 
Is @syb0rg doing C++ now?
 
'doing' is a strong word.
 
Speak your mind.
 
8
Q: If she floats then she is not a witch like we thought

syb0rgContinuing my C++ saga, this is the third project for my CS1 class: Buoyancy is the ability of an object to float. Archimedes' principle states that the buoyant force is equal to the weight of the fluid that is displaced by the submerged object. The buoyant force can be computed by ...

Tagged ... ;-)
Oh, and homework...crap... hmmm
 
9:51 PM
@rolfl Oh, I didn't see that tag before answering.
 
@Jamal - wasn't on the chopping block?
 
For a brief moment, I believe. codesparkle was trying to get rid of it, and I think I recall 200 saying that it's okay to keep.
 
I thought that was a trending tag on the burnination market.
 
still searching meta... got distracted by interesting posts.
Jamal is normally all over the burnination.... ;-)
 
Oh, screw it. I need to build up some PHP rep anyways ;-)
 
10:07 PM
0
Q: My first PHP script (FizzBuzz)

PhrancisYes, another FizzBuzz! I know you guys may be tired of these but I think it's a tradition stepping stone for beginners on this site. Here are some notes on my thinking: I tried to keep it as flexible as possible where the logic is deducted from the variables as much as possible. So one could po...

 
@Phrancis Really, you chose that as a title?
 
It's bad isn't it. I didn't know what else
Jamalize if you think of something... better ;-)
There I changed it to something less... user645315-ish
 
10:46 PM
Voting has been .... diminished, recently .... hmmm what to do..
 
That may be because holidays ended.
I am listening to a song that makes me want to sleep while floating in warm water in the dark.
 
11:03 PM
For your entertainment.... follow it back:
@tmslft This one evidently: http://stackoverflow.com/questions/14427034/rounded-corner-pure-css-technique/14427085#14427085
 
@rolfl: Ready to follow up on this?
 
@Jamal He has not been seen since.... before the message, will give it a bit more.
 
Okay
 
11:36 PM
TTGTB
 
11:51 PM
0
Q: Iteration of password hashing in PHP?

ThomasKI'm trying to improve the security for my backend. /** * This is the script that is executed when I add a new user - after the input has passed the validation. */ $salt = base64_encode(mcrypt_create_iv(24,MCRYPT_DEV_URANDOM)); // generate a random 32 character salt $hash = hash('s...

 

« first day (507 days earlier)      last day (1822 days later) »