« first day (364 days earlier)      last day (3647 days later) » 

12:02 AM
Oh, that hat :)
 
What's the cost of spawning 100K threads each sleeping for 1000ms when you have 4 cores and max 25 threads per core in the pool?
is it when the threads start piling up in the queue that it starts being more efficient to run the tasks sequentially?
hey @LokiAstari!
 
bring it ;)
"So fellas, I've been trying to correct my code..."
 
@Mat'sMug 2 cents?
TTGBBQ
 
oh, thought it was more than that ;) enjoy BBQ!
 
12:08 AM
@Mat'sMug there's a bit of overhead also in spawning a new thread, which means that if you only have one minor task to execute, there's no need to spawn a thread for it
 
Yum...
 
@rolfl Time to go barbeque? Didn't you have snow just a couple of days ago?
 
@SimonAndréForsberg since when is a little bit of snow a hinderance for BBQ?
0
Q: Code correctness for a simple c++ program that should use inheritance

user3597955So fellas, I've been trying to correct my code in order my program to work correctly as intended. The lab sheet says: Create a class called "Employee" having the following attributes and functions: protected: name(string) salary(int) public: default constructor constructor with parameter...

 
Hey! I recognize that comment!
 
;)
 
12:12 AM
@Mat'sMug Since you live in Sweden and having snow = Really cold
 
I guess a coal BBQ wouldn't be great at -30, right.
 
There's rarely -30 around here though
 
0
Q: Code correctness for a simple c++ program that should use inheritance

user3597955So fellas, I've been trying to correct my code in order my program to work correctly as intended. The lab sheet says: Create a class called "Employee" having the following attributes and functions: protected: name(string) salary(int) public: default constructor constructor with parameter...

 
Perhaps -5 or -10
Celsius, of course.
 
@SimonAndréForsberg We BBQ at least once a week, all year around
Our BBQ is 'natural gas', so it is connected to the house gas supply.
In winter, the BBQ is left quite close to the back door, (a sliding door), so I can BBQ, from inside the kitchen, in my slippers, without leaving the house.
That's the way to do it.
I can't leave all my South African traditions behind.
2
 
12:18 AM
Then I understand
 
 
Yup....
I have BBQ'd at -30 (celcius)
(from in the kitchen
 
12:33 AM
wow
Score: 20
Created: Apr 28 at 2:03
Clicks per day: 32.5 (130 total)
 
12:47 AM
What's new?
 
Hi, Chris!
 
Oy.
 
HI
 
Our SO ad is quickly climbing ahead of every other SO ad! 4th most-clicked now, and the 3 others were created in December/January!
 
12:49 AM
... who is that?
@doorknob around?
 
hey @TheDoctor is here too!
Normally I would have said Malachi, but now...
 
Gah, I really need doorknob.
 
Had to resort to superpings. :P
 
@hichris You're so mean!
 
12:52 AM
@hichris123 If you super-ping a doorknob and no one is around to hear it, does it make a sound?
6
 
in The Nineteenth Byte, Apr 22 at 14:48, by Rusher
Doorknob made it pretty clear that he swings both ways. This is no surprise.
 
lol
 
@Jamal rofl
 
in The Nineteenth Byte, Apr 22 at 14:44, by TheDoctor
I have just proven that CR has spies on PCG
 
does it make a sound? << Only if it has ICMP filtering disabled
 
12:55 AM
I love my cancel stars script. :P
:D
 
we love your cancel stars script ;) no we don't
4
 
You're ruining the charisma of this room. no one ever removes a star.
6
 
1
A: Message option popup disappears when any message is starred

Travis JOkay, I know this isn't a fix, but it is at least temporary relief if you are being spammed by some star crazy user: $("body").on("contextmenu","#starred-posts .img.vote",function(){ var msgId = $(this).parents("li")[0].id.substr("summary_".length); var fkeyId = fkey().fkey; $.ajax({ type:"...

^ That one.
 
I'm taking over!
:P
 
12:57 AM
 
places finger over destroy button
 
Muahahahah
 
Eeeek!
@Jamal Don't de-diamond me!
 
Nah, can't do that. But if I submit my application to SE...
 
@Jamal Yeah, you can. :P
1) Change chat parent, 2) suspend user, 3) refresh user from parent site
 
12:59 AM
a mod is like a jedi - gotta be trained to master all your powers..
 
@Jamal do it! Or at least kick him
 
@TheDoctor You can't kick mods. :D
 
"You have fully used your vote allowance for today"
 
Congratulations, you've pulled a Malachi. See your profile.
 
Yay!

Charcoal HQ

Where smoke is detected, diamonds are made, and we break thing...
 
1:00 AM
You don't get a badge for that. :P
 
Hey, i can still star in other rooms! Let's move to Charcoal HQ
 
Nooo!!!!
 
^^ I believe the correct spelling is ;)
(we actually had a question with that tag [give-or-take a couple of o's] for a very, very short while)
 
Heh.
 
tagspeak comes up every once in a while since
 
1:04 AM
@TheDoctor try to rejoin Charcoal HQ. :P
 
@Mat'sMug Who was the heinous jerk who used a tag like that? Oh wait...
4
 
@hichris123 no
 
lol
2
 
Ahh why are lots of happenings happening going on now
 
A wild doorknob has appeared!
 
1:05 AM
vyorp vyorp vyorp
 
out of the blue!
 
I got him in my TARDIS
Out of the blue (police box)
 
@Doorknob I wanted your star tracking script. :P
 
Doorknob, quick, star all the recent messages!
 
@TheDoctor Try now. :P
 
1:06 AM
@hichris123 it's on github
Ahh help lots of events going to going now help ahh
 
@jamal, please stop the rampant hichris!
 
help
 
Hi
 
Why haven't I gotten to bed already?
Night folks
 
Night.
 
1:08 AM
Night
 
bye @SimonAndréForsberg!
(time to write reviews, Sweden sleeps!)
 
再煎, @SimonAndréForsberg
 
The main CR page has gotten quiet all of a sudden. Maybe it's just a Friday thing.
 
@Jamal Check your analytics page. That might help (i.e. does it always get quite on Friday?)
 
mods can see traffic data?
 
1:13 AM
Yeah.
 
@hichris123 Not usually. Sometimes it's busy, sometimes it isn't.
 
wow the pacman implementation is at 87% of 1K views in not even 24 hours
 
I suppose it's partly because it's our first Pacman implementation. :-)
 
@SimonAndréForsberg what's a "bed"
 
You know, Earth Science has actually gotten quite a few views considering how early in beta it is.
 
1:18 AM
So has Arduino
 
2:05 AM
How do you call the codesmell that sneakily does something more than you want it to, like printing to the console in a method?
 
0
Q: I think I'm repeating to much code

ZennesonI made a navigation bar on the left side of my site. It works perfectly, the only problem is I'm new to JQuery and I think I'm repeating to much code. Is this the case? If it is plzzzz help me out. HTML---------------------------------------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD...

 
I think post 7 could be a round table discussion of a bunch of top-users about the quality of the content on CR. thoughts?
 
2:48 AM
Funny how everything stops when i leave
 
tsss I'm busy on meta. still here :p
hey @Malachi
 
hello
I got a badge off a really simple question on superuser
11
A: Should I install Internet Explorer updates although I disabled it?

Malachiother things use Internet Explorer that you may not be aware of, so if there are security updates for IE you should install them. Other applications uses scripts and pieces of the IE application. I don't know exactly how it works, but yes you should install the IE updates.

 
@Mat'sMug If that includes titles (especially right above your message), then I'm so in.
 
haha
@TheDoctor :p
 
all of those other answers are pretty much duplicates. I had the fastest gun in the west on that one
 
2:53 AM
yeah, it's a nice answer. well done!
 
oh and I made it to the final stage of the election too....lol if you have 150 rep over there you can vote for me...lol superuser.com/election?cb=1
 
I don't :(
 
it's cool I probably won't win anyway
 
@hi why did you ban me earlier?
 
@Malachi what makes you say that?
;)
 
2:55 AM
I need to install JDK and Android SDK's and set up Android Studio tomorrow
@Mat'sMug because they don't like me over there.... :) I am too cool
 
@hichris123
 
I did vote for a Canadian, figured that we had two canadian mods here and they are pretty cool and do a good job. @200_success is a Canadian right and so is @rolfl?
 
canadians are cool
 
Hi!
 
@hichris123 why did you ban me earlier?
 
3:02 AM
I didn't ban you, I just ran a kick-ban script on Charcoal HQ for a minute.
 
lol. sounds like a "guns don't kill" argument ;)
 
:(
 
Well, bans and kickbans are two different things, too.
 
yeah ban is more
 
3:04 AM
;(
 
@Jamal I'm a couple of seconds away from creating a meta-tag. Objections?
 
PPCG!!
 
lol. the tags of the meta post in question are ;)
(and soon I believe)
 
@Mat'sMug What contests specifically?
 
> Let's play. This is the launcher. Let's put the Community in Community Blog and make a meta-contest to determine who will post it. More details to follow.
 
3:19 AM
0
Q: Searching tags in database as you type

ajax333221I want to store some Names in a database, which at some point I will have to search for them via JavaScript AJAX. I came up with this method, I want to have some feedback if this will be efficient way of doing the task: if (name:"Exampler Jhones Ramirez" is in dbNAMES){ varID=get(rowpostiti...

 
2 days ago, by rolfl
Yes, lets ;-)
(in response to)
2 days ago, by Mat's Mug
let's get the Post One meta-contest going then!
 
I'm okay with it.
 
any rules I didn't think of?
- Maximum 1024 characters (markdown included) in your answer.
- Must have a [ideally nice and catchy] `###Title`
- Only needs to be a sketch /outline /excerpt /summary: it's not the final version anyway (did you think our blog entries would be < 1024 characters?).
the 1024 characters limit is just to avoid getting blog-length answers that could be used/published pretty much as-is.
and it makes a constraint to work with
Write a short excerpt that captures the essence of what the first blog post should be all about.
uh, yeah well maybe, some dates?
How long do we run this contest?
Half of May? All of May?
 
2 weeks max
 
0
Q: Javascript scrippits

user1114214I was doing writing some various things in javascript and ending up writing 2 scripts that proved useful in quite a lot of my other programs and I was wondering if there was anything that I could do better because I'm fairly new to javascript and jquery after a fairly long history of java/c++ Bo...

 
3:27 AM
the SO SE (how the hell did I make that lapsus?) day is Saturday 05-03 right now, so last entry 05-16 11:59:59PM UTC?
 
Sounds good.
 
(mod-ding!)
 
@TheDoctor around?
 
Meta post incoming...
 
feel free to edit as needed
 
3:33 AM
Looks like he just ran a script that repeatedly kicks you from the room. It also looks like you were being star-happy-annoying. — ɥʇǝS 3 mins ago
@TheDoctor ^
 
Looks good.
 
2
Q: Code Review Blog - Post One Contest

Mat's MugWhat's this about? Looks like Code Review wants a blog. There's people that are willing to contribute. And we have a plan for the first 7 posts. There's something special about the first post on a [hypothetical] shiny new blog. We only make a first impression once. Sharpen up! Let's put the...

 
10 minutes!
 
Stack Exchange posted this time? I knew it! Captain Obvious is his superhero name!
 
@hichris123
@ɥʇǝS that's what we always do in the 2nd monitor — TheDoctor 32 secs ago
 
3:44 AM
we're star-happy, not star-frantic ;)
 
I would star that, but i've ran out
2
 
lol
2
so 2nd monitor-esque!
 
@TheDoctor
@TheDoctor Yes, pretty much what Seth said. I didn't want you to star everything in Charcoal HQ, and it wasn't meant to be "abuse" or anything. — hichris123 1 min ago
I'm going to bed soon, so make it quick. :P
(yes, I do sleep)
 
@hichris123 - Not sure 'the 2nd' is the right place to hash out this problem.
 
True.
 
3:47 AM
我希望有一个钻石
 
And on that note, bedtime!
Night all.
 
@TheDoctor - been watching firefly?
night @hichris123
 
No...???
 
byechris123!
 
^^^^ I would say what that made me do, but that would attract stars
3
Anyway, it should be 321chrisbye!
 
3:48 AM
^^^ that too
 
Good meta post
 
thanks :)
 
closes cage
 
bye @rolfl!
I'm going, too.
@Jamal you should sleep too!
 
3:52 AM
I will, at some point.
 
shouldn't it be , perhaps replacing phase 4 in the bulletin?
 
What, when Jamal sleeps?
 
I'll tag it.
 
done
.. ;-0
2
 
3:53 AM
哈哈哈ha
 
I was too slow. :-P
 
Out-jamaled-the jamalizer
 
oops
 
I guess all the edits finals tired me out.
 
Done yet?
@kleinfreund - Near Cape Town, South Africa.
 
 
1 hour later…
5:15 AM
0
Q: "Event Binding" in Java employing Lambda

RlonRyanAs I am relativistically new to programming and lack any sort of formal experience in the matter, I was wondering if any of you with a bit more knowledge in the subject would be willing to tell me if the following code is an acceptable way to accomplish a function binding event handler in Java 8....

 
5:46 AM
1
Q: Integer square root in x86 assembly (NASM)

JintonationThis program calculates the square root of an unsigned 32-bit number with some bit fiddling to get a very close approximation, then one iteration of the Babylonian method to get an exact value. I don't know if this could be faster, but hope it can. I have trouble with clearly commenting my code,...

 
 
1 hour later…
6:57 AM
0
Q: Avoiding use of .encode() in rss2html

Ricky WilsonMy concern with this code is the excessive use of .encode('utf-8'). Any advice on refining these function would very helpful. #!/usr/bin/env python """ Simple rss to html converter """ __version__ = "0.0.1" __author__ = "Ricky L Wilson" from feedparser import parse as parsefeed import String...

 
7:20 AM
Good morning.
Port Sóller, Mallorca, Spain
 
 
2 hours later…
9:43 AM
sweet pic
 
In need for a napalm strike:
3
Q: Image handling class

javaLet me start by saying that I am very happy with this code. I want to share it with other people because I think they will find it helpful, but I want to make sure I did everything in good form before I do so. The code allows users to easily manage their image memory. The class handles all of ...

Monking!
 
wow, that's two answers, and each covers completely different topics. And both are long
 
@Vogel612 Yeah, I was actually a bit surprised at how much was left to cover :)
I originally wanted to just cover Final, JavaDoc, Singleton, Private, but the more I scrolled up and down and read, the more things I had to mention.
Not the first time that happens to me:
11
A: Markup calculator application using MVC

Simon André ForsbergI scanned through your code and also stepped through it with a debugger, line-by-line. The more I looked, the more things I found that I wanted to point out. Let's start by looking at some unnecessary comments: // BASE PRICE private static String BASE_PRICE = "$1299.99"; // Number of People ...

 
10:01 AM
> I'm not sure you know what you are doing here, or why you do it, or what you intend to do. But given what the code currently actually does, this loop is not needed.
 
Yup ^^
His code was just so full of clutter it was a bit confusing what he tried to do.
 
10:42 AM
morning
 
morning
 
how are you?
hmm I need some explanation about concurrency... While I'm yet for enough to read java concurrency in practice even though I have it ^^
hopefully the standard trail will be enough
 
0
Q: Sort 3x3 grid by rotating 2x2 subgrids

Olavi MustanojaThis question originates from this thread: http://stackoverflow.com/questions/23433442/sort-3x3-grid-by-rotating-2x2-subgrids Anyway, I'm trying to solve the following problem: Given a 3x3 grid with numbers 1-9, for example: 2 8 3 1 4 5 7 9 6 I have to sort the grid by rotating a 2x2 subgrid...

 
11:08 AM
0
Q: Guess My Number Game in Java Swing, Program is working, Does it need improvement?

Deepak Singh Also posted at rgcsm.info/blog //Number Guessing Game in Java Swing //Also posted at import javax.swing.*; import java.awt.*; import java.awt.event.*; class Guess extends JFrame { JTextField t1, t2, t3, t4; JLabel j4; ButtonListener bl1; ButtonListener2 bl2; ButtonListener3 bl3; //set...

 
11:20 AM
Monking
@SimonAndréForsberg that was the point of my post
 
Could anyone give a quick explanation on how to achieve thread safety in Java? If that's possible
 
@skiwi Yes, it's possible :P Use synchronized keyword, use Concurrent classes.
 
Would strapping synchronized in front of all methods suffice for now?
 
I think so, more or less, yes.
 
I'm not 100% sure though, when working with a ConcurrentHashMap
@Override
@SuppressWarnings("unchecked")
public <T> void registerListener(final Class<T> clazz, final Consumer<? extends T> eventListener) {
    eventMapping.putIfAbsent(clazz, new HashSet<>());
    eventMapping.get(clazz).add((Consumer<Object>)eventListener);
}
shouldn't I then synchronize over the eventMaping here?
As far as I know a ConcurrentHashMap doesn';t have an atomic method available for this operation
 
11:35 AM
That might be a good idea, but I'm not sure if it really is needed.
 
And second example:
@Override
public void executeEvent(final Object object) {
    eventMapping.getOrDefault(object.getClass(), EMPTY_SET).forEach(consumer -> consumer.accept(object));
}
In this no synchronization would be required?
 
If you're using ConcurrentHashMap, it doesn't use this as synchronization object. (I think, it would be strange if it did) I don't think you need to use more synchronization than what ConcurrentHashMap automatically provides.
Ask @rolfl though, he's more of an expert than me when it comes to concurrency.
 
It'll be up for review soonish either way ^^
And ConcurrentHashMap works totally differently with CAS spinlocks, etc.
I don't really understand them yet
 
CAS spinlocks?
 
it's something very low level
All I remember from concurrenthashmap in terms of performance is that I think that whenever you are working with different keys, there'll be no performance hit
 
11:39 AM
The thing is, I think, that regular ArrayList and similar stuff can throw nasty exceptions when being used in multiple threads. That's the most important thing you want to avoid.
 
That for sure, but then you want to limit the performance impact and there the theory is much harder behind
 
Indeed. But as you said, ConcurrentHashMap is already very fast
 
yeah
Dilemma... I have Race driver: GRID on DVD and GRID 2 on Steam... GRID is somewhat better as GRID 2 but the graphics, etc. are somewhat more dated
I think I'll choose for GRID 2 though as I don't need to put a disk in the DVD drive then :D
Is the chat still alive? (Rebooted my internet connection)
 
Monking CRitters
 
11:55 AM
Monking @rolfl
 
Monking
 
Monking Monkey
 
btw in such an implementation:
@Override
public void registerListeners(final Object object) {
    Arrays.stream(object.getClass().getMethods())
An explicit NPE check on object is not needed?
 
@rolfl: What time is it at your place?
 
0
Q: Optimizing multiplication of two polynomials in GF(2^32)

GideonI have the following method for multiplying two polynomials in GF(2^32). #include <iostream> #include <cassert> #include <ctime> #include <random> #include <wmmintrin.h> typedef unsigned short uint16_t; typedef unsigned int uint32_t; unsigned get_high16(unsigned x) { return (x >> 16) & 0x...

 
12:01 PM
@skiwi Not unless you want to customize the error message
 
I see
 
@Nobody 0803
 
0
A: Guess My Number Game in Java Swing, Program is working, Does it need improvement?

Vogel612Naming: You're naming your things terribly: JTextField t1, t2, t3, t4; JLabel j4; ButtonListener bl1; ButtonListener2 bl2; ButtonListener3 bl3; Better would definitely be: JTextField guessInput, bestScore, guessText; You should already be able to see: t4 was unused, guessInput (taken fr...

there's more to do.
1411
@SimonAndréForsberg do you think that Sentinel Guy is trolling??
3 hrs ago: "Wrong, you use binary operators" under 4 answers...
wth?
 
12:19 PM
@Vogel612: Link?
 
12
Q: Find all the missing number(s)

Gokul NathRecently I've attended an interview, where I faced the below question: Question: "There is an sorted array. You need to find all the missing numbers. Write the complete code, without using any generics or inbuilt function or binary operators. First and last terms will be given. Array will...

This is wrong. < is a binary operator, which is prohibited. — Sentinel 3 hours ago
 
@Vogel612 I don't think he was:
I see what's going on here. The person who made the interview question probably comes from a maths background and not a programming background. Binary Operator in maths means a set operation. So in essence the question prohibits SQL, Linq etc. In programming Binary Operator is < , == etc. I think in this case, I would walk away from the job opportunity. — Sentinel 3 hours ago
 
Then he's contradicting himself, at least a bit.
 
Yes, absolutely.
He wrote an answer also, but he deleted that and wrote that comment instead
I don't think it's possible to do the job without using binary operators, either directly or indirectly.
Reminds me about this answer:
9
A: Returning the other argument of 2 possible arguments without using conditions

Ryan StewartIf I had been the one interviewing and you solved it only for numeric input, my next question would have been, "How would you solve this problem for non-numeric input?" because I wouldn't be looking for mathematical cleverness. Instead, how about this? List<String> options = new ArrayList<>(Arra...

 
I think the point is that "binary operator" is not meaning what we are understanding
 
12:25 PM
@kleinfreund ^^^ Played with it
 
Haha. Like it even dirtier?
 
Hmmmm overdid it
My LCD monitor is not color calibrated, and it looks different from different angles
 
I like how the different colors come together in these scenes. You often see this at harbors. The nets and so on.
But yeah, you really overdid it. :p
 
Yes, you do. And I do like the colors, but they were pretty flat in the original, and overdone on my suggestion.
There's a happy middle somewhere.
Perhaps it's just a white-balance etting
 
12:45 PM
I think this looks better (e.g. not as flat) without going the unrealistic road.
It's sometimes a bit hard when the sun's out and you need to figure out if you over-/underexposured your shot from looking at the camera screen.
At some point you can do this from experience and by checking the histogram (I already do this)
@rolf 'ey! Banana!
 
I'm looking, I'm looking
 
I much prefer it to your original. I have come to a personal realization that post-processing images to make them look more like what you remembered the scene to be, is morally OK.
I often feel like the scene was more vivid/saturated/contrasty than what the actual image shows, and I tweak the photo to restore it to what it was I thought I was taking.
In other words, I am OK with adjusting white-baance, and levels&curves, as well a cropping, and still calling it/thinking of it, as 'the original'
 
I kinda do it the same way. Sometimes all you need is pop a little contrast. Plus there are so many photographs out there shot with high end gear plus being edited heavily. I don't really see a moral conflict there.
Also: This is not what I'm going to do as work. It's a hobby. I may show the photos to some friends, share them on Flickr or my Tumblr and that's about it.
And I don't put filters on 'em.
Or Instagram. :p
 
One of my mostt successfule fixer-uppers
Because warthogs eating elephant-poo, is so cool
 
12:58 PM
Oh thank you digital world!
Haha, very good.
I've shot a cat under a lavender bush.. A rather different cat it was.
It literally came to us to get stroked.
 
The warthog was before sunrise, and I had the camera set up for the previous day, in the sun.
 

« first day (364 days earlier)      last day (3647 days later) »