« first day (1004 days earlier)      last day (4170 days later) » 

22:03
huh.
why does robocopy randomly return an exit code of 1, even if it succeeded?
does it?
if errorlevel 16 echo ***FATAL ERROR*** & goto end
if errorlevel 15 echo OKCOPY + FAIL + MISMATCHES + XTRA & goto end
if errorlevel 14 echo FAIL + MISMATCHES + XTRA & goto end
if errorlevel 13 echo OKCOPY + FAIL + MISMATCHES & goto end
if errorlevel 12 echo FAIL + MISMATCHES& goto end
if errorlevel 11 echo OKCOPY + FAIL + XTRA & goto end
if errorlevel 10 echo FAIL + XTRA & goto end
if errorlevel 9 echo OKCOPY + FAIL & goto end
if errorlevel 8 echo FAIL & goto end
if errorlevel 7 echo OKCOPY + MISMATCHES + XTRA & goto end
hmm, yeah
Nothing random, really
seems odd that it uses 1 to indicate some kind of success when VS takes 1 to mean failure.
It returns a bitmask or something like that.
There are MSBuild wrappers for robocopy if you really want to use it.
22:06
@CatPlusPlus ^^
But then again why are you using robocopy if you want cross-platform shit.
@CatPlusPlus Eh, if I can find anyone to test Wide's building on Linux, I will just ask them what the appropriate Linux invocation is :P
Cat and sehe are right, it's a bitmask
Check if error level < 3 or 4, and you're fine
Premake is really primitive.
BTW, I put that shit in my pull fucking request
22:07
premakive
._.
user142019
This is one of the best days of my life.
Slightly amusing. The cowboy and the puppy talking past each other out of sheer disinterest.
You talked to the girl you like? :D
Rather, I suspect Radek picked up a self-help book and learned that just consciously saying "Today is a great day" at least once a day will make you more positive.
22:10
holy shit
It does really strike me that he's been doing that several times now
I'm actually ... kind of cold.
@Ell Hey babycakes. <3
user142019
@ThePhD No.
user142019
@sehe No.
22:15
You found a mega-sized breakfast gyro?
user142019
Just everything went right today and the weather was great.
Ell
Ell
Hey
Also, I will test wide on linux. Just not now
user142019
I'm happy as hell.
I believe you
user142019
And I have a VPS.
Ell
Ell
22:16
Thursday
user142019
And I figured out how I like to use Git.
Ell
Ell
@rightfold I'm happy for you. It's good to be happy
user142019
I'm also happy for me.
@rightfold Woot. Which cpy? Your boss's reselling thing? Or ... a proper one o.O
Ell
Ell
I read that as "And I figured out how I like to use clit"
22:17
@Ell You need to get out more.
hmm
perhaps a sym or hard link would be better than copying.
Ell
Ell
@thephd I know but its easier said than done :/
@ThePhD the outside is stupid. hmpphh :c
user142019
@sehe cpy?
user142019
22:20
@rightfold company
sbi
sbi
@rightfold I didn't get this. What do you mean, "ape in your head"?
Ell
Ell
I need to read up on the differences between symlink, hardlink, junction, etc.
user142019
@sbi In my head, I pronounce "sbi" as "ape".
sbi
sbi
@rightfold Oh, of course, I would never had interpreted it this way, had you not explained it to me.
@Ell I was reading about that the other day. :p I already forgot. <.<
22:21
> Adulthosting is bij DirectVPS toegestaan
ah
user142019
@Ell symlink is a link to a path (compare with key of hash table), hardlink is link to inode (compare with pointer).
user142019
@sehe lol
@Ell reparse points and alternate streams!
Ell
Ell
Ahh right
sbi
sbi
@rightfold Why would they put an image of a jaguar next to their claim of being fast? Did they confuse this with a cheetah?
user142019
22:23
I was wondering too.
user142019
I know a guy who works there. I'll ask him.
@rightfold called it
sbi
sbi
@rightfold As if you'd know a jaguar by its spot patterns.
user142019
Hmm just drank a glass of cow milk.
user142019
Tastes great.
22:24
@sbi The speeds are so fast, that your competitors will think you're a cheetah.
#TerribleTuesdayPuns
Ell
Ell
Yay its Wednesday tonirorw
Last day of sixth form!
ITT Ell high again.
user142019
That meta thread on the starboard is fucking hilarious.
user142019
Have a heap of stars.
@FlorisVelleman - I've seen stuff like that before. On the old 4GuysFromRolla message boards, some user posted in the jobs section that they had "3 years experience". A few months later, they posted that they had "7 years experience". When questioned, they said they worked on a project that had an estimated development cycle of 4 years, so they counted the full 4 years. Just saying. — LBT 49 mins ago
Ahahahaha if this is what this guy is doing
user142019
@LoïcFaure-Lacroix Good morning, and welcome to the best room on the Internet!
Also I won the thread, 54 comment upvotes.
Ell
Ell
I don't get high!
Not if weed anyway jus excitemen!
Might be because you have a picture of a cat!
user142019
It's a pony, not a cat. :v
user142019
22:32
Look up Vinyl Scratch.
I'm talking about Cat plus plus and upvotes
Don't do it.
Save yourself, Loic.
Here it's already 2 am thanks for the good morning
user142019
inb4 Loïc is a brony
RUN BEFORE THEY GET THEIR HOOVES PAWS CLAWS hands on you!!!
22:33
inb4 low orbit ion cannon
4
I heard that
SFW?
Fuck it, fuck my boss, clicking anyways.
pretty much sfw
Can someone tell me how does that sound: "Enter a function, call a switch function that will call a function in a stack that may return or call switch too that will one day may be return to the first calling function and return..."
user142019
22:41
@LoïcFaure-Lacroix That sentence is too long.
user142019
Write multiple short sentences.
^ this
user142019
Also, add pictures and code!
It's already hard for me to actually express what I'm trying to achieve
user142019
Are you describing a program?
user142019
22:44
If so, try describing how it works step by step. Separate steps by newlines.
More importantly, after googling and linkedin it made me wonder, how did he get 31 years of experience in 7 years? — Floris Velleman 1 hour ago
Give me a sec
This guy
@rightfold also make me a sandwich and play piano
OP is really deluded.
user142019
OP is really retarded.
22:45
^^^^^^^^
@rightfold but he is a top-quality software engineer. Also, there's one thing I wonder if you noticed
I love how he keeps repeating "Look me up."
user142019
I wonder why there are never (or very rarely) gay people in TV shows for kids.
user142019
Homosexuality will stay alien.
> Don't do one thing, or in the end, you will be a C++ programmer
this is in his profile ^
22:46
> and I have never been matched for speed, correctness or completeness. Look me up.
@BartekBanachewicz It's LINUS!
user142019
@BartekBanachewicz He probably uses J***. :v
@Borgleader lololo
#kernel
22:47
#clifts
user142019
#define
It's all related to "Coroutines" as far as I can say.

A function (B) is called.
B calls a function "sleep".
Sleep calls a context switcher
Context switcher pick a function that can be executed => "C"
Context switcher calls "C"
In C, it can simply return or call the context switcher too.

The problem is how do I do to make sure it never calls too many function and segfault
@ThePhD clit cliffs? w0t
user142019
@LoïcFaure-Lacroix How do you do the context switching?
@LoïcFaure-Lacroix in Lua coroutines are stackless and you can call them infinitely. Perhaps that term might help.
22:49
//assume 0x1234 is a valid pointer
int *ptr = static_cast<int*>(reinterpret_cast<void*>(static_cast<uintptr_t>(0x1234)));
user142019
Calling too many functions shouldn't raise a segfault unless your stack grows.
so is this correct
Well that's what I'm trying to figure out
@Tuntuni not really. Casting from unsigned int to int .
what did i do wrong?
oh
no
user142019
22:50
@Tuntuni you used C++.
@rightfold was expecting that :3
@Tuntuni it's a pointer to unsigned int. You cast it to a pointer to int. Thus, reading it as signed int will give undefined value.
it's not a pointer to an unsigned int
I'm pretty clueless how to do that. The simple example is I have native JSFunction (SpiderMonkey) that may get called. When they returns, it also returns in JS. But If I load a file, I'd like to make it return when the file is loaded but keep the js working with other coroutines
user142019
22:51
@Tuntuni No, 0x1234 is a signed int.
uintptr_t is an unsigned integer that is guaranteed to hold a pointer
user142019
@BartekBanachewicz uintptr_t is unsigned.
@LoïcFaure-Lacroix Javascript sucks in general, so well.
user142019
> u
it doesn't say anything about what it is pointing to
22:51
35 secs ago, by Tuntuni
it's not a pointer to an unsigned int
@Tuntuni last time I've checked uintptr pointed to uint
user142019
What it points to is irrelevant.
@rightfold well then, what are we talking about
user142019
uintptr_t doesn't give a shit about what the pointer points too.
exactly
not if you write the value as unsigned int
user142019
22:52
It's just an integer large enough to hold a pointer.
@BartekBanachewicz You can run UnrealEngine in JS so it's good for me
user142019
It's not unsigned int* or anything.
@rightfold yes, that's what i'm saying
@LoïcFaure-Lacroix in asm.js. That's not JS per se
so assume 0x1234 is an address
i store it into an integer
convert into void* (valid)
22:52
and to what it points?
something i assumed is valid and is int
:D
fuck @Tuntuni really you can use a C cast and what does it change
nothing but i didn't want to get flamed :D
you will be flamed anyway, because it sucks
i know it does lol but i'm asking if it's correct
22:53
it's not the matter of how many casts you are supposed to chain
@Tuntuni it's bad. Isn't that enough?
user142019
If you cast a literal to a pointer, C-style casts should be the least of your worries.
user142019
@Tuntuni use std::memcpy.
i'm not copying anything
user142019
You are.
@Tuntuni you are copying the value of the pointer
22:54
let's say i want to use WriteProcessMemory
user142019
You copy 0x1234 to a pointer.
oh like that
@Tuntuni then we can probably already assume it's UB
@BartekBanachewicz on it
i have address 0x1234 which is an address of an int in another process
user142019
22:55
int *ptr;
uintptr_t x = 0x1234;
std::memcpy(&ptr, &x, sizeof(ptr));
@rightfold int_of_size exists?
@Tuntuni then you should be prepared that the code you're writing is a fuckup in general
What the heck...
user142019
@Tuntuni hypothetical; uintptr_t should work.
22:55
@BartekBanachewicz yeah, i am, i just want to sort of c++ify it
@Tuntuni if it is in a different process how can you expect to map it to a different process?
Apparently, IE decided it, not N++, should open my .txt files...
instead of using ugly win typedefs
@Tuntuni C++ifying bad code will not really help; it will still be bad code
@LoïcFaure-Lacroix WriteProcessMemory does that for me. you specify the process
22:56
It's a windows thing?
yes, it's WinAPI. and thus not standard C++ :F
WinSHIT
WinAPI is ok as long as you are not using shit like that
seriously.
22:56
like what
well consider this
let's say i'm hacking a game
you are hacking other process' memory directly.
exactly.
user142019
I hope WriteProcessMemory is constrained so that you can't just write memory to any random program. :v
exactly what?
user142019
Otherwise epic security fail and OS not worth using.
that's on the list of "shit you should never do"
22:57
i'm on windows, i can make at least some assumptions
FUCKING CHAT LIMIT OMFG
@Tuntuni that means UB
well security kinda fail on windows if you are admin right?
@a.lasram I beg you a pardon? Kindly verify as to what f_invoke_helper calls? And, yeah, "don't do this" has been the recurring theme here, I supposed you got that message. Nonetheless, here you have a method to do what you wanted, while moving the appropriate arguments when possible only once. I thought you'd like it, since it was your question after all. — sehe 16 secs ago
user142019
Use Gentoo and be as awesome as me.
I'm so done with general questions
user142019
22:58
@sehe s/general [tag:// s/] questions//
ho about gentoo how long does it take to build?
@sehe you should learn Prolog :)
@BartekBanachewicz true, but consider this SomePtr *ptr = (SomePtr*)0x1234;. this works as expected under windows.
The lameness is just too much.
2
@LoïcFaure-Lacroix you can get Stage 3
22:58
@BartekBanachewicz No need. I have Spirit questions! And Vim! And Git!
@Tuntuni and? It's still obscure UB code that I wouldn't ever touch
@BartekBanachewicz so if i do what i previously posted, isn't it correct? standard guarantees that uintptr_t is convertible to a void* and it also guarantees that void* is convertible to any other pointer type with the value unchanged (assuming this pointer is of the type i'm converting it to)
user142019
@LoïcFaure-Lacroix Installing Gentoo for the first time took me about three hours.
@sehe Eh, I wished we had git course at my uni :(
- T'as que ce mot là à la bouche toi.
- J'ai tellement plus que ça dans la bouche.
22:59
I'm still trying to figure out which linux should be installed on my comp
@LoïcFaure-Lacroix Ubuntu (or Mint)
@EtiennedeMartel o.O
@BartekBanachewicz apparently there is an SFML book now. Looks like the site got a remodel as well.
user142019
Then I had to set up Z shell, i3, Vim, SSH and Git which took another two hours or-so.
no way, ubuntu suck
user142019
22:59
Also: Wi-Fi took me a day.
user142019
@LoïcFaure-Lacroix Gentoo.
@Pawnguy7 the site got remodel a while ago
I want gnome3 not a gnome3 hacked on top of unity

« first day (1004 days earlier)      last day (4170 days later) »