« first day (3268 days earlier)      last day (1905 days later) » 

01:23
Or you can use the gpu like normal people
01:46
Why not use a linux host?
That feel when pointer to a COM interface
virtual nvinfer1::ICudaEngine* buildCudaEngine(nvinfer1::INetworkDefinition& network)
If its an interface it should be light weight, own nothing, and not passed around with pointers
02:15
New version of TensorRT appears to perform run-time performance measurements to determine optimal kernel transpose sizes (among other things). Off-course, this goes horribly wrong as they don't seem to account for dynamic clocking. The effect is especially pronounced on mobile platforms, with a +/-60% in walltime. Amusingly, the static optimized code in the old version always performs faster. Old version walltime, is 120 ms, new version walltime is 170 ms + 50 ms (depending on measured).
Also the execution "context" is specific to the network rather than for example the whole library. So each network has its own "context"...
One day, when they'll me out of UIUC, I'll become a large corporation and make libraries that don't suck.
How do you become a large corporation? Are you going to be a large corporation with 1 person?
console [ttyAMA0] enabled
base_baud = 0
Is it still enabled if baud rate is 0? :/
02:31
@tel base? is something added to it?
Not sure why it's called base_baud, I think it might be just the baud rate
not open source?
ttyAMA0 is a mapped GPIO pin on pi
03:30
So the IO pin works about 12% of the times.
Almost like a lottery
for communication?
what protocol? does it rely on strict timing?
Using UART, I am getting nothing on the pin ... suspect hardware problem.
03:46
can you control the pin manually..will it both sink and source current?
use a different pin? and what about that [baud 0] message?
bedtime..
G'nite
04:03
So, I got some incomplete type wackiness. `ml_engine` is an incomplete type.

`std::map<ml_remapper_file::ml_remapper_types,std::unique_ptr<ml_engine>> engines;`

`std::unordered_map<ml_remapper_file::ml_remapper_types,std::unique_ptr<ml_engine>> engines;`

Doesn't...
04:23
@Mikhail So reading up a bit, apparently this whole area code thing as kind of a big deal. And my home town area code (what I currently have) is right up there on the list of "most recognizable area codes". Meaning that if I can't get 312, I'll probably just get the same area code as my current one.
Once I put my number on a giant advertisement outside one of the busiest roads in Sydney in order to rent out a house. No one rang in 3 weeks, NO ONE RANG!!! I blame it on the printing service - the photo was a lot dark than what it should be. Luckily I rented it out through one of the biggest online realestate services here.
Tens of thousands of people saw the phone number, no one rang!!!
05:26
When there were not psychiatrists, there were not as many 'mad' people. When there was no word 'troll', there were no trolls.
Maybe people try to find problem in areas where there were none.
I checked the configuration manual, unplugged and re-plugged all the wires, now the device is working fine again :/
05:56
"Don't answer the phone, its another homo from Man Fransisco"
06:10
Might be in Strasbourg in April, hopefully will still be part of France
 
1 hour later…
07:38
morning
 
2 hours later…
09:08
Hello
I was doing some benchmarking and was surprised by the results.
Wouldn't division by 2 be fast because the optimizer would just do a bit shift right, which is easy?
Basically I compared two ways of accomplishing same thing 1) use an if statement and divide by 2 2) use another variable and extra multiplication step
2) is faster
I thought adding another variable would have really slowed things down
@northerner have you looked at the assembly output of the compiler?
but generally an "if" that can't be eliminated is going to make things slower than one variable almost 100% of the time
branching is not cheap
@PeterT I guess if statements almost always incur a pipeline hazard, thus they are slow
not every if needs to cause a branch, if it can be optimized to not branch it's not that much of a problem. Which is why I wouldn't attribute that hit to the "if statement" itself
09:28
Does anyone know how to control devices on Arduino through a raspberry pi?
Like Pi & Arduino are connected and can see each other.
how are they connected? The naive approach would be to just communicate through the virtual serial port
@PeterT Through ethernet cable.
I have a sensor on Pi, will add a few more in the future & I have servos which is controlled through Arduino.
oh, so the arduino is already connected to an some ethernet controller and some other devices. There's a bunch of network libraries out there
at work I hand-rolled something on top of raw tcp, but if you have the memory to spare try to use a library for an existing protocol like MQTT
:(
I was thinking more along the lines of a function or two.
Lemme investigate a bit more ...
I mean even the IP layer is not just "a function or two", even if it's stuffed in some library
09:44
If I use servo driver to drive the servos, it would be just chuck in a library or two then add a couple of lines of code.
But I have decided to use Arduino instead this time.
like I said, you can just hand-roll your own protocol on top of TCP, but it depends on your specific use-case if that's enough
@northerner Was the value of 2 known at compile time?
10:19
@StackedCrooked yes 2 was a literal.
Was it a big difference?
I've also been surprised a couple of times.
I found that sometimes if statements are faster. For example:
min = std::min(x, min);
max = std::max(x, max);
versus:
if (x < min)
    min = x;
else if (x > max)
    max = x;
In my tests the branch-version was faster.
Seems to make sense, since it avoids the writes.
But I preferred the std::min, std::max code. Since it's shorter and cleaner. Ended up using the branches though.
10:49
just calling a function that branches is not what people mean when they say "branchless" :P
11:02
@PeterT you can implement min and max without branches
 
1 hour later…
12:11
When implementing min/max using the conditional operator then GCC generates cmov instructions. (Last time I checked.)
I meant like this. . update_v2 has a conditional jump and is faster than "branchless" update_v1 (cmov).
12:27
@StackedCrooked Is it in a hot loop?
also in some cases cmov can be slower
cmov was slower in my case
is the branch taken well predicted?
@Mgetz It is a small part of a bigger hot loop.
Yeah. It's like 99.9% branch hit.
@StackedCrooked then I'd profile, cmov can mess with the branch predictor in some cases badly
I did profile. And I found that it was faster when I used the if statements. :)
I believe cmov is slow due to the data dependency (I probably messed that up.). While branches are executed speculatively.
 
3 hours later…
15:11
Today's consumers who order their drones off the internet don't know the joy of going out in nature and returning with a drone that you caught yourself, whose angry owners you fought off with your own two hands.
2
Zoe
Zoe
XD
nwp
nwp
Forgot KC
16:11
hi there
have you ever worked with credentials provider on windows? there is not a lot of documentation on the internet about it. well, I don't want to implement all the staff. I just need a button to open a custom app. but everybody tells me to use credentials provider to get it.
1
Q: How to set a button to open an application on windows login screen

Bob WhiteThis is my first question. I would like to know if there is a way to set a button on the login screen to open a custom app. I have already searched by Microsoft documentation then found about credential provider but I don't want to create an IU login. I just want to open an application like th...

@BobWhite you can't
Literally verboten
security, no non-MS code is allowed to run in the high security session
by this way it works
but I'm not sure if it is right.
@BobWhite they didn't
they created a different user account that only has access to their tool
16:25
the path that I have been following is right? using credentials provider?
Ah, for the "good old days" of the GINA API.
yep I read about gina
but nowdays is not support it
@BobWhite And the world is now a slightly better place.
@BobWhite well a credentials provider still doesn't do what the title is asking
it just allows you to fake it for a local user account
in the sense the 'local' user gets a single app they can use
yep I installed an app in the local user
to open the app using system("start C:\\TestStartApp.exe");
do you know an good way to get it?
16:41
@Mikhail my laptop is windows, I don't think it would be worth formatting it just to turn it to a Linux host
Sorry. ^ this was meant for @CaptainGiraffe
17:19
hey guys, I would like to practice consuming the bloomberg api
i found the emulator here on github.com/Robinson664/bemu
Does anyone know how to use the C++ option? There doesnt seem to be any instructions?
(im on windows)
@Permian He has what look at least vaguely like instructions to me. github.com/Robinson664/…
yeah i can see that, but what file has the emulator ?
i have literally no idea
@Permian Oh, so you care about how to build and run the emulator. He has CMake files, so it looks like you'd clone the repo, create a "build" directory in the directory where you cloned it, switch into that directory, type "CMake ..", and when that finishes, make (or with VC++, nmake). That'll presumably build an executable you'd then run.
ok
ill have a go in a bit
/fail in a bit
17:43
@JerryCoffin sir do you know. how can I do for setting the button to open the app on the logon ui?
Just an idea?
@BobWhite No, not really. The last time I had to deal with this stuff was actually using the GINA API, under (if memory serves) Windows 2000. What I did is thoroughly obsolete, and I don't really remember much of it anyway.
okay thanks, I will still looking for
 
1 hour later…
19:16
@Rick just use windows
19:31
@Mikhail can't, the package I need will only work on in Linux environment, I am going to try hyper-v. but I was thinking maybe I can build what I need on windows, but the people who are doing serious work, in the area I am interested in, are doing it on Linux.
ive got a quick question. what did bill gates do with operating systems exactly that was so breathtaking?
2
how did he adapt linux?
 
1 hour later…
20:48
Can't tell if this guy is trying to find a legal basis to rage quit and take all his content down with him.
-4
Q: Licensing question: is deleting all my questions and answers allowed?

Wim ten BrinkWhile SO can claim that all posts here are automatically CC BY-SA, that would fail when a user deletes their account as they then become user5876892 or whatever. So instead of the real username, SO would show a fake username. As attribution would be required, it would also be impossible for SO to...

21:21
@Mysticial Looking at his (lack of) recent activity, ragequit wouldn't be my first guess. Looks like it's been years since the last time he posted at all.
22:03
0
Q: How to use std::max with a custom comparator in C++11?

noɥʇʎԀʎzɐɹƆI have a vector of Hill structs and want to find the one with the heighest height. Here's my code: #include <vector> #include <algorithm> #include <assert.h> struct Hill { int height; int changed; }; int main() { std::vector<Hill> hills(100); hills[0].height = 100; hills[1].h...

22:49
Sometimes the oddest questions appear. academia.stackexchange.com/questions/137708/…
"meeting your PhD advisor or first year lecturer naked in the shower might lead to a slightly disturbed dynamics in the Professor-Student relationship." I'm reasonably certain this worry is in regards to penile dimensions.
@JerryCoffin I was thinking this was a smurf for his real account.
And of course with certainty like taxes it is #1 at the HNQ now =)

« first day (3268 days earlier)      last day (1905 days later) »