« first day (3147 days earlier)      last day (1802 days later) » 

12:07 AM
Woo, A.C power supply on the plane.
 
 
3 hours later…
3:35 AM
that never happens!
hey does anyone know why when I try to assign a v8::Local<v8::Function> to a class instance, the program hangs?
the class:
class Window {
...
public:
  ...
  v8::Local<v8::Function> DrawLoop;
}
I've got Window* w = new Window(...)
but when I do w->DrawLoop = v8::Local<v8::Function>::Cast(args[3]); the program doesn't respond
I got it
it's because I was assigning the DrawLoop before I was constructing a new instance. Duh
that f***** obvious
 
 
1 hour later…
4:54 AM
There are 2 CPUs and 2 GPUs . GPUs can handle compute intensive workloads . There are 5 work loads. How will you schedule them ?
 
 
1 hour later…
user7659542
6:23 AM
@Rick Only offload work to the GPU when it needs to be done. As for the dual core, you could either go for assymetric mulitprocessing or symmetric. How you schedule everything on the CPU largely depends on the situation I think.
 
user7659542
The most naive approach would be to just have a symmetric approach where every workload gets the same timeslice. I presume you offload stuff to the GPU when an event occurs. Why not go for preemptive round robin?
 
user7659542
On a sidenote,
 
user7659542
Is factory pattern a real thing in the industry amongst programming gurus or is that one of those things they learn at iniversities that is good in theory but you ll never use in practice ?
 
6:42 AM
used fairly frequently I find
 
user7659542
@Puppy some other patterns you d suggest to read about, besides VMC (and its variants...) and factory?
 
nwp
7:13 AM
You don't need to read about the patterns. You will reinvent them naturally anyways.
 
7:25 AM
Hey guys. A bit lost here, I'm in v8, for node.js and I want to expose a function that takes a callback. that callback is executed with an object passed as a parameter. That object contains a list of functions that are exposed from the C++ code. how can I do that?
 
ask the v8 folks
 
7:51 AM
What would be a good practice for managing custom built libs on a Mac / Linux?
I usually build them in a lib directory in my home, then I have to set the lib path manually in CMake when I build something that uses it and use LD_LIBRARY_PATH when running a binary that depends on these libs.
 
 
1 hour later…
nwp
9:18 AM
We have PowerPoint 2007 for some reason and I need to change the text background color. PowerPoint 2007 cannot do that, but you can do it in Word and then copy/paste while keeping the formatting.
Great workflow. I love professional tools.
 
 
3 hours later…
11:57 AM
hi I do template
 
12:48 PM
ppt template meta programing using vba is where the real money is at
So, I'm at this IBM POWER architecture related event (trying to get free compute time), whats some stuff I can say about the architecture to really piss them off?
 
nwp
@Mikhail C++, actually.
 
We do lots of reverse engineering with the disassembler IDA from Hex-Rays, in order to achieve things that are not possible via the documented Microsoft Office API.
 
nwp
Why would you want to piss off people you are trying to get free compute time from?
 
By asserting my dominance I hope to get more compute time.
 
nwp
"Your compute time is worthless. I'll buy it all."
 
12:54 PM
"For a half the market rate"
Also BTW their compute time is worthless
Also ThinkCell has been aggressively soliciting employees for a the last few years. #1) Does this mean there is something terribly wrong #2) Is it actually profitable, and also why the fuck do their charts sucks.
 
nwp
I've been looking into it for a bit. And by that I mean I looked at the glassdoor site. There is some stressful code review by the boss and flat hierarchies, meaning no way to move on from being a code monkey.
And yes, apparently they are profitable enough that they can do whatever they want without any money giver having a say.
 
 
1:17 PM
void QTabWidget::removeTab(int index)
Removes the tab at position index from this stack of widgets. The page widget itself is not deleted.
In other Qt life-cycle mysteries, its not clear when a page is actually deleted. Also is the widget actually deleted?
 
nwp
It says it is not. Meaning you have an invisible widget owned by the tabwidget. Which clearly is the bestest default.
You should probably use QTabWidget::widget(index) first to use it later or delete it.
 
Yeah, the thing is pretty fucked, because addTab has the expected ownership transfer behavior
int QTabWidget::addTab(QWidget *page, const QString &label)
Adds a tab with the given page and label to the tab widget, and returns the index of the tab in the tab bar. Ownership of page is passed on to the QTabWidget.
 
nwp
If only they used std::unique_ptr or their reimplementation to encode ownership in the type system.
In other news, msdn documentation is not as good as I remember it. It says RRF_SUBKEY_WOW6432KEY exists in Windows Vista, Windows XP Professional x64 Edition and above, but it actually only exists since Windows 10.
 
So, the underlying reason for certain structures requiring delete is to facilitate sharing. I have no clue why the fuck, they require explicit deletes on structures that, can't in principle be shared.
 
nwp
Where did you get the required explicit delete from? That is not actually required.
The tabwidget continues to own it and therefore is responsible for the deletion.
 
1:31 PM
It will also keep sending signals to it, for example. So you gotta delete it.
But you're correct, you can build thousands of widgets that have the lifetime of their parent.
 
Those QTabWidget semantics are questionable, apparently carried those semantics over from Qt3.
although it made a little more sense there, since you had to provide the pointer as an argument that you'll now have to manage, instead of the index
 
1:57 PM
Fuckers at IBM pushing the importance of MPI for machine learning and large data sets. This is fucking bullshit. The ML training is among the most easily distributed workloads imaginable. It is so predictable, latency should not matter.
There are 30 people in the room. I should stand up and ask them why the fuck we should pay 2x AWS price.
 
2:38 PM
Hello
Never coded before
should I start with C++ primer?
Or cs50?
 
nwp
Go with PPP.
 
@nwp No C++17, completely useless ;)
 
nwp
True. This is clearly the best resource.
 
@nwp Thanks
 
nwp
3:28 PM
Qt Creator reliably crashes after I start and close the program I'm developing.
 
 
1 hour later…
4:50 PM
@Mikhail did you see Nvidia's new push in laptops with quadros?
 
5:13 PM
Does anyone have problems connecting to stackoverflow.com with Firefox?
I am getting this:
> An error occurred during a connection to stackoverflow.com. A required TLS feature is missing. Error code: MOZILLA_PKIX_ERROR_REQUIRED_TLS_FEATURE_MISSING
And SSL test shows OCSP stapling might be issue: ssllabs.com/ssltest/…
 
5:39 PM
@wilx yeah failing in the beta channel
 
14
Q: A required TLS feature is missing. Error code: MOZILLA_PKIX_ERROR_REQUIRED_TLS_FEATURE_MISSING

wilxSuddenly, today I am having issues connecting to https://stackoverflow.com/ from Firefox: An error occurred during a connection to stackoverflow.com. A required TLS feature is missing. Error code: MOZILLA_PKIX_ERROR_REQUIRED_TLS_FEATURE_MISSING I checked https://www.ssllabs.com/ssltest/ana...

and
 
@wilx I just started getting that, too
 
 
4 hours later…
9:32 PM
They managed to fix it.
 
If you'd just stick to good old reliable Internet Explorer, you'd never have problems like this.
[Of course it's barely possible you might have other problems instead...]
 
10:03 PM
IE6 man, that's where it's at
 
10:19 PM
^ "In case you hadn't noticed the road works yet." lol
 
10:47 PM
@JerryCoffin Heh, I wrote an activeX control that let me view every -- I should probably stop here
 
11:32 PM
@Puppy Nah--5.0 was really the zenith of web development. Eliminate all possible compatibility problems by running the one true browser on any OS that matters: Windows, Mac, HP-UX or Solaris.
@StackedCrooked When I first moved to Colorado, they had a highly effective way of getting people (men, anyway) to slow down: they hired young women to hold the "slow down" signs, and very directly gave them permission to wear bikinis while they did. Eventually had to stop on the theory that it was sexist though.
 
Ah. I suppose it was considered sexist because it appealed only to men?
Maybe they should have thrown a few hot guys in the mix to even it out.
 
@StackedCrooked That was part I couldn't figure out. They'd actually started with mostly men, and started to notice that when the men took off their shirts, it was more effective (traffic slowed down more). Then somebody figured out what was going on, and decided to hire some pretty girls. I think women got angry mostly because 1) they missed having as many men to oggle, and 2) some...less-attractive women got angry when their husbands/boyfriends/whatever looked too much at pretty girls in bikinis.
 
Oh man. The less attractive women ruined it.
 

« first day (3147 days earlier)      last day (1802 days later) »