« first day (2810 days earlier)      last day (2363 days later) » 

01:34
To store the complex TCC coefficients as single-precision floating point numbers for simulating the250×250image, one needs (250×250×8)2 bytes = 250 GB, which is a prohibitively large amount of memory.
I should do this, and write a paper about how I more RAM then these plebs
 
5 hours later…
06:14
So I went to a cake shop, it was closed. But the shop had one pigeon in it, roaming free.
did you ask the pigeon whether the shop was open?
Why would I or anyone want to eat leftover cake by a pigeon?
are you saying you think pigeons produce inferior cake?
you pigeonist
Would you eat a cake touched by a rat? You ratist!
06:35
Fantasy and reality are two different things ...
07:34
Morning
 
1 hour later…
08:55
Suddenly I feel ashamed for making retarded apps.
Ven
Ven
Well...
People are going to think ever so lowly of me
Ven
Ven
We already do.
09:11
Yes! Added one more for my decent sized collection of brain damaged apps. Go me!
not yet ... still have to be reviewed
but it's a simple app and I have a track record of pushing through any app through a review
09:30
What kind of apps
 
2 hours later…
11:05
@TelKitty May be they feed their Pigeon with cake so they can eat them later
12:00
@SombreroChicken if you are interested, you can find out in the next few days ;)
@LoïcFaure-Lacroix When I see creamy cake in that shop I would start wondering whether it's cream or something else from the behind of the pigeon ...
but it's not pigeon eggs
nwp
nwp
Refreshingly organic. And arguably vegan. No way it isn't good.
12:39
can't be vegan if it's from a bird :x
nwp
nwp
Well, you could argue that the bird produces it either way and doesn't care about it.
I'm replacing snprintf with sprintf because it's safer. How crazy am I?
Ven
Ven
vasprintf ftw
nwp
nwp
The logic goes that in case the buffer is big enough both do the same thing, so we ignore that case. If the buffer is not big enough snprintf will give me silently wrong data which is especially bad when printing numbers. The bug is impossible to catch with debuggers and sanitizers and will probably never be caught. sprintf on the other hand has a high likelihood of causing a crash and being easily diagnosed and fixed.
12:55
checking the return value and throwing in case it doesn't match won't do?
nwp
nwp
In theory I should make an assert function that handles it by going into an infinite loop (embedded C is fun!), but that requires doing proper error handling everywhere.
I guess I'm just crazy. Using sprintf doesn't really fix anything. Proper error handling everywhere is the way to go -.-
oh embedded
I've heard horror stories about non-compliant C implementations
nwp
nwp
Maybe writing my own my_snprintf that does the infinite loop thing would be the way to go.
-5
Q: It would be possible run GPUs in C++ multithread instead cuda/opencl?

mathengineerI think running gpus using multithread instead using opencl would be wonderful. Of course new drivers and some HW changes should be performed but the following advantages could be reached: - Increase performance 12x over opencl (it depends on application) - Increase performance 120x over standard...

nwp
nwp
@milleniumbug It's gcc 4.9.3. I don't expect it to have massive C bugs but I never checked.
13:02
/cc @Mysticial
You should port y-cruncher to GPU, you'll get 120x gain
should be fine I guess
also, mythical multithreads strike again
find hot thread_local girls in your area
Ven
Ven
Find hot girls in your thread_local.
13:18
Find hot girls in your execution agent local storage
Ven
Ven
Find hot girls in your boost::multimap.
Find hot nerds
Ven
Ven
No u
yeah, considering it's more or less 30°C here, I'm actually hot
Find got grills for your next bbq
2
13:30
goth girls?
Goth girls are the hottest ones under the sun
what about the southern hemisphere?
Ven
Ven
@Morwenn No, they dress in black, that's the smart thing to do under the sun.
also I'm flying to brittany on friday again
Are you coming to see me? o.o
Ven
Ven
13:32
obviously
kinky
@Morwenn i might. Where do you live?
@BartekBanachewicz In the vicinity of Brest
it'll be in central London and not for long tho
Ven
Ven
ça sort les grands mots
lol
13:34
@Morwenn oh well, then I guess some other time
Ven
Ven
j'ai riz.
je ris je ris je gole
but that time might actually be closer than anticipated if I decide to move :S
Central London is quite far from Brittany
Ven
Ven
à peine 1h de train.
13:37
wat
@Morwenn I'm flying to great brittany you see
oh, Great-Britain
Ven
Ven
Did no one tell you? We renamed "Great Brittany" to "Okay-ish Brittany" after brexit.
7
yeah great brittany
@Ven lol
13:38
Average Britain after Scotland left
What-have-we-left-Birtain once it's only England and Wales
y-u-do-dis-Britain after Brittany has annexed Cornwall
@Ven wut - oh "Binders full of women"?
@Morwenn I like that
You can't hide your love for unicorns
13:55
I have a perverted fantasy, I must admit - I am longing to see all unicorns to be ridden by really really fat women.
@TelKitty That is not perverted. Just weird. :)
It's called valkyries
@Morwenn Haha.
similar to this (I must repent)
@TelKitty lol
14:41
> I'm taking a break from debugging books to talk about a calamitous shitshow of textbook writing
Now that's an introduction
@Mikhail would be easier to learn makeup, buy a few clothes and be my own goth gf :v
You'd need a mirror tho
nwp
nwp
Clearly getting a goth girlfriend is easier than getting a mirror, so don't bother.
That article is filled with so many stereotypes, it's amazing.
15:53
@Ven another fun one cc @sehe
Ven
Ven
@LucDanton oh sorry I completly forgot to answer that other one. I did go through your repo btw
@LucDanton I don't think you're supposed to my $_;
you can given "hello" the whole thing
I’m assuming it’s the subroutine nature of the regex leaking/interfering with $_
16:26
> Thanks to John Regehr for helping me track down the book in the first place. The title was stolen inspired by one of his tweets.
I've seen enough on his twitter
sup
anything interesting happening in C++?
So... I'm trying to learn C++. Can someone point me to the right words to type into Google? Specifically, what do I call this:
unsigned char stuff[100];
vs. this:
unsigned char *stuff = new unsigned char[100];
16:41
@Undo wiki has a link to a list of books
@Undo both are obsolete things, use std::vector
@Abyx gotta interface with OpenSSL, don't think I can (?)
4253
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

@Undo std::vector exposed a data() member function to give access to the backing store
Ah, that's nice
std::vector<unsigned char> stuff(100); and then pass stuff.data()
16:44
@Undo why use raw OpenSSL ? Use a wrapper. And why C++ ...
if you are new you could also read through this site. They also have a nice documentation on the standard template library (commonly referred to as STL - where all the std:: classes live)
@Undo The main difference is the storage duration: the first one is automatic while the second one is dynamic. But manual dynamic allocations are bad because they're super easy to mess up and have no upside compared to using a vector.
@EtiennedeMartel the first one could be static.
Could be, yeah, but it's likely to be automatic in this case.
@Abyx local variables are have "automatic" storage duration
16:46
@ratchetfreak yeah but we dunno if it's a local variable
I mean, yeah, it could be a global variable but bleh.
@EtiennedeMartel There we go, that starts to make sense. So I should be able to replace malloc calls with the first syntax, and not worry about manually delete-ing them (or free-ing the malloc'd var)
you could also use a std::array<char, 100> if you don't want to deal with dynamic allocation
@Undo Be careful though because automatic allocations go on the stack, which can overflow if you put too much stuff on it.
Ah, okay.
16:48
So for small amounts of bytes, sure, but then you should use std:array because the syntax is friendlier.
(Also, automatic alloc requires you to know the size at compile time)
std::array is like a C array but with an API that mirrors the other std:: containers
and won't decay to pointer if you look at it funny
Also, unlike C arrays, it doesn't decay into a pointer when you pass it to a function, so it effectively "remembers" its own size.
So for passing around big (already-known-size) chunks of binary to OpenSSL, it's probably better to use dynamic allocation?
anyways, if you're set on using C++ for OpenSSL, then use [boost.]asio , don't bother with raw OpenSSL.
@Abyx Going to look at that, thanks
16:50
boost is a large library though and can negatively affect compile times
*in case you are someone that cares about that
@Undo Do you prefer to learn from bottom-up or top-down?
Mostly, I learn by taking a task and trying to (1) get something to work, then (2) getting it to work right, then (3) getting it to work fast.
@Undo Use a vector, yeah. If you pass the size to the constructor it's going to be preallocated with the right size so it has no performance downside to using malloc.
@Undo That's top-down.
@EtiennedeMartel Cool, thanks
16:53
In which case, yeah go ahead and use all the fancy data-structures - even if you might not know or care how they work underneath.
@Undo , what's your end-goal - learn C++, or just write an app which uses TLS?
Immediately, write a thing using OpenSSL
(not TLS, it's complicated)
so maybe you don't even need C++, nor even OpenSSL
I do for a bunch of reasons, have some constraints that I wish I could share
so, a local c++ usergroup is looking for topics for a meetup, could you suggest any? (yeah, can't think of anything interesting 'cuz c++ is meh)
nwp
nwp
17:21
@Abyx Here you go.
I'm fascinated nobody linked the Q&A room. Smurf privilege?
17:41
@nwp anything specific?
how to get more performance tends to be quite popular
as well as various compile time hacks
@ratchetfreak -O3? :)
@Mysticial and tricks to let -o3 do more stuff
Getting a faster processor can also make it faster. Along with downloading more ram.
Or put it on the cloud.
17:51
@nwp tbh, I was tempted to move their messages
but yeah, smurf privilege
nwp
nwp
@Abyx This has some TLDWs. I haven't watched recent talks so I can't recommend anything specific. The last stuff I saw was meta classes and that's so half a year ago.
Probably longer.
I probably won't watch those, but thanks anyways.
18:20
@Abyx Kepler shuffle on the gpu
At least with my undergrads it's a popular topic
I haven't even heard about the thing. Isn't it quite a niche thing?
then sorting everything again
18:42
@Abyx Not in image processing, has nice tie-ins with machine learning
18:53
-1
Q: video stream URL works in VLC but not with opencv

Edward Cosmin OpreaThe URL works in VLC, but when i try in Visual Studio #include <opencv\cv.h> #include <opencv2\highgui\highgui.hpp> #include <opencv2\imgproc\imgproc.hpp> #include <iostream> #include <stdio.h> using namespace std; using namespace cv; int main() { Mat frame; namedWindow("video", 1); VideoCapture...

/cc @Mysticial @milleniumbug
opencv is not VLC — MrTux 27 mins ago
xD
vlc uses opencv for camera functionality, requires opencv to build (source gentoo dependency lookup)
@Borgleader lol
@Mikhail games as well (though really it's sorting that's more used)
19:30
I know I watch LTT too much, but he has horrible opsec
Rule #1 of traveling in china... don't bring any hardware you ever intend to use again.... ever
@Mgetz Some things can probably be salvaged. If it never leaves your sight. It seems less likely someone would be able break into your hotel room while you're sleeping to put something on it - without waking you up.
@Mysticial You'd be surprised
Ironically from the ODNI
but it's actually pretty accurate and correct
That first one is obvious though. iPad/tablet left his sight.
19:47
most of it is obvious, but people don't THINK about the fact that they are always targets because the other country doesn't know if you're an agent or not. China in particular looooves to do this stuff to journalists and business folk
That said they still do it to lots of ordinary travelers just there as tourists
The point I'm trying to make is that a 'Gaming Hotel' in china... you might as well hand chinese intelligence your passwords at the border
it would save time and subterfuge
@Mgetz lol that PSA
@milleniumbug lol what...? That's actually reality
20:02
Of course he could take the tablet with him, at which point he'll get it taken away for a moment
Which is why you only bring cheap burner devices... because they'll do that at customs
the PSA doesn't tell you that though
only that you "bring less of your devices" and "don't leave them unattended"
(is a tablet in a safe less safe than a tablet in the bag you carry with you? I'd say depends on your threat model, but I'd say more risk in the latter scenario for most people)
the safe can always be opened by hotel staff
it's one of the features of the safe
20:19
@ratchetfreak It'd fine for something like passports, money, jewelry. (granted the passport should probably stay with you at all times anyway)
But you still gotta put your shit somewhere if you wanna go swimming or something.
Or, you know, just carry secondary devices that you use for traveling and wipe in between
if you are a hipster and your entire life is on your beat up 10 year old macbook air, probably not something to take traveling regardless of destination
@Mgetz You already hand your passport to chinese agents at the border... A passport is a public document intended to be handed to foreign agents upon request to confirm your nationality and right to be there in the country
It says right there in the pre-amble
@crasic passwords is not a passport
lol
still think you are all paranoiacs
@crasic you just aren't paranoid enough
20:30
@crasic Probably, but I know too much about international espionage and think you're not nearly paranoid enough
Lol 007 over here
if you can infect 10m machines and only 2 get into high sec places and give you intel it is worth it
The whole "I'm just a traveler" doesn't matter if the other side thinks you're a potential intelligence officer. They have to find out, they wouldn't be doing their jobs if they didn't
If you have something to protect from the chinese, and simulataneously need to visit the country, you should probably take advise from professionals and not chat.se lol
@crasic The video I linked WAS from the Office of the Director of National Intelligence
They are the professionals
20:33
@Mgetz I think that might be arguable depending on who you ask based on the current state of US politics. lol
@Mysticial I don't care what idiots say, the ODNI knows what they are talking about.
my clients image my devices every time I set foot at their factories
@Mgetz I'm not trying to downplay the video. I'm just poking fun at how US politics has dragged down the general "trustworthiness" of everything government related.
@Mysticial eh... COINTELPRO did that first
@Mgetz But this is public, common sense advice, I mean specific to your individual security needs. Like talking to a lawyer vs watching a youtube video telling you to tell the police to get you a lawyer
20:37
@crasic There is a difference between someone that needs a security officer, and someone that needs common sense and basic opsec. The video is for everybody, because everybody can benefit from basic opsec.
General advise is insufficient for those who need security and is just fodder for paranoiacs. The simple answer is don't bleed information and take devices that you can stand to lose (physically and data), but this is good travel advise regardless if you are concerned about state agents or just basic scammers, pickpocket and robbers
ironically, the only times I've had information compromised and data used was in europe
mainly credit card info
also, the video is a bit corny
@Mgetz But it applies regardless of where you travel, it is not specific to chinese security and making them into a paranoid fantasy doesn't really help deliver your message of common sense security
it applies even when you are "traveling" to a local starbucks
@crasic I'm just going to facepalm at you as you basically advocate security through obscurity, and then plonk you because you don't know what you're talking about
@Mgetz Mischaracterize and walk away
the typical exit strategy of someone who doesn't really have an argument
20:39
@milleniumbug I think that must be required in federal law
where did I advocate obscurity
I simply said that the advice in the public video is not specific to chinese intelligence and is just basic, general security advice, making the chinese into a boogeyman detracts from your core message of "opsec", a false sense of security that you only need to worry when traveling to "questionable" places
If I was worried about the chinese intelligence, specifically, obtaining information during my travel, it is insufficient, no?
@crasic you're over indexing on commentary, are the chinese known for it: yes. Does that change the fact that the video was quite clear that even 'friendly' countries do this crap, no.
And like I mentioned, when I visit factories in china and elswhere, my devices are already imaged as a condition of entering the facility. I am not worried about
them sureptitiously doing what they are already doing explicitly. I plan accordingly
@crasic You do, but not everybody does. There are people stupid enough to take their personal laptops or work laptops in without thinking.
Sometimes with highly sensitive information on them
I do get a kick when every local knows which hotels and cafe's have "no firewall internet"
20:46
lol
@crasic Yeah... right... no firewall... yeeeeep
totally not being monitored
totally
"Oh you need facebook... yes... this hotel works...."
not a honey pot at all
Of course its monitored, its their law
When I was in the mainland some years ago, I remember being able to access things from a hotel that I couldn't at a family member's place.
20:48
@Mysticial For monitoring westerners and dissidents I gather
same with visiting soviet russia, only specific hotels and specific rooms, totally not bugged, available for foreign visitors
@crasic Wouldn't dissidents be smart enough to know that?
@crasic still the case
@Mgetz If you take a laptop, that is encrypted, what will they do?
@crasic yeah. I was mostly on Wikipedia reading math articles. Couldn't do that at my cousin's place.
@Mikhail Evil maid attack to grab the keys while you're in customs or accidentally left i booted. Heck if you forgot to patch they can get in through that... but honestly they'll probably just do a boot rom hijack to blue pill the whole thing.
You'd be surprised how easy that is
Assuming they are that interested in you
20:51
@crasic evil maid attacks take zero time and they can figure it out later
Unfortunately Intel has made this stupid easy with their firmwares
@Mgetz Does BitLocker protect you?
The risk of discovery risks destorying their business relationships
@Mikhail no, because the key has to exist in ram at some point
you assume that they are behaving in an isolated, apolitical world
@Mgetz So, how do they get the key out of the RAM?
20:52
@crasic what are you going to do? You're in their country, if you make a stink they can arrest you and throw you in jail for espionage
@Mikhail google search SMM rootkit
they're fun
@Mgetz lol, are you green?
or bluepill rootkit
Why would I install rootkit?
There are major multinationals doing business in china, finding out their employees are actively being targeted will hurt people in business, and in china this means hurting some party leader politically
@crasic You think being a foreigner will protect you?
20:53
sure they accept a basic level of background surveilance
@Mgetz No, the business relationship will
@crasic I work for a major multinational, where do you think I learned most of this.
IT bitch sessions?
@crasic No it won't, employees are expendable
What are you even talking about...
@crasic no mandatory security trainings
w/e I've already wasted more time on this than necessary
20:56
Bullshitting takes effort?
@crasic Does it? I thought everybody already assumed that China would be targeting everyone. IOW, there's no reputation left to destroy any further.
2
woah, what's with the flag?
Chinese shills?
Same applies to the current US administration. But they still manage to find ways to sink to newer and newer lows.
@Mysticial Not really reputation, public reputation is meaningless, but business relationship. Our suppliers are curious, yes and we expect them to try to learn from our business, in fact we want them to. But finding out they are outright faciltiating industrial espionage into our business would be something else
@crasic You heard about micron? seattletimes.com/business/…
Micron grew suspicious, according to its court documents, after discovering that one of its departing engineers had turned to Google for instructions on how to wipe a company laptop. Later, at a recruiting event in the United States aimed at Micron employees, Jinhua and UMC showed PowerPoint slides that used Micron’s internal code names when discussing future chips it would make, according to the court documents.
It gets more hilarious, Micron sued, then got sued back in Chinese courts for infringing on the stolen design (and anti-trust)
“If the case against Micron moves forward, and the Chinese government once again rules in favor of itself, it would cause substantial damage to Micron and the U.S. tech industry as a whole,” said the letter, which was viewed by The New York Times.
21:02
@Mikhail It hurts the Chinese Tech industry as a whole as well, no?
Fool me once, etc. That is kind of my point
Pretty sure having high tech stolen designs + having a monopoly on their sale helps them.
There is an ethical imperative not to do business with China, or at least not participate in any partnerships
But no more designs to steal, and you didn't actually develop the programs that would help you learn that from scratch
They also stole some of the employees
@Mikhail Easy there
Hey, would anyone be willing to answer a question about actual programming? :P
21:04
no
@Mysticial You game? Or would you rather laugh at me? ;)
@NonnyMoose hahahahahaha uh ahaha. aha
ah rats
21:07
@NonnyMoose If it's a C or C++ question, chat.stackoverflow.com/rooms/116940/c-questions-and-answers
Ah thanks. I knew there had to be one like that but couldn't find it.
The unspoken rule is: If it's a really advanced question that might interest us, then here is fine. Otherwise, it goes in the C/C++ QA room.
@crasic you think they have long enough vision for that
a lot of people are too shortsighted to keep that in mind until they see the concequences
@Mysticial How's this: I add code later in the program, which somehow causes a harmless line earlier on to segfault. Verified with a debugger and debug statements.
@NonnyMoose Can't say definitively, but most debugging questions end up in the latter category. lol
21:10
ok thanks for categorizing for me
@ratchetfreak Some are, like government party folks, others aren't, like the engineers I work with who have to deal with bullshit that most westerners would quit over
How does stealing stuff make it harder to innovate?
Why would it make it any easier?
Because you have a foundation that took other companies half a century to develop
Isn't this the case for practically any company?
21:17
this = ?
It's pretty much the reason for a market economy in the first place
but there is a reason why intel AMD and nvidia don't share their die designs with each other
@Mikhail No not really, because the foundation isn't the product or even the technology, but the process and internal knowledge gained in doing so.
also the Chinese government presents a physical and existential threat to humanity, helping them probably isn't a good idea
@Mikhail Lol, baby hitler over here
@ratchetfreak Of course, but it has nothing to do with innovation...
Isolationists are scared people and bore me
21:25
Isolationism runs orthogonal to supporting human rights, Nationalism embodied by China is a kinda of anti-globalism
alrighty then
Considering that the current system is a direct product of US engagement with the Chinese government in the 80's , your comment is basically anachronistic hogwash. A comment that is a product of nationalism of its own sense, and thus, as you point out, orthogonal to human rights.
I guess miserable people often need something else to hate, as they are tired of hating themselves
22:00
Thanks for letting me know where to go. I thought my bug was so special and outlandish and interesting. The helpful people in Q&A were like, "yeah, we see this all the time".
I've learned my lesson :)
@NonnyMoose I think a majority of us want to merge the rooms to encourage new users into this room. (As you can see, we're off-topic more often than not.) But there's a few holdouts which whom we respect. So not gonna happen for now.
Well, thank you anyway!

« first day (2810 days earlier)      last day (2363 days later) »