« first day (1521 days earlier)      last day (3426 days later) » 

7:00 PM
Gah, I spent like an hour on that question and he really needs to do something completely different.
Ah, then in fact you do not want to create new TStringGrids at all. I think you want to reuse the same TStringGrid but populate it with different data depending on which car is selected. I suggest you read up on the TStringGrid documentation to see how its elements can be modified. — caps 38 secs ago
 
@R.MartinhoFernandes Whaddup.
 
guys I need a job
 
I need a blowjob
 
where can I find them
 
user1804599
 
7:09 PM
been listed there for ages
 
user1804599
not enough ages
 
user1804599
wait longer
 
I don't get what that travis thing is?
 
google it, hth
 
it's building the source, so what?
nothing more?
 
user1804599
7:10 PM
travis is an identifier.
 
user1804599
Travis is a crappy CI tool.
 
user1804599
 
I don't really get it, okay it's nice for builds that take a long time then release them, but I see so much smaller projects that really can be built in seconds
 
but can they be built on every platform and every toolchain they target in seconds?
 
user1804599
Of course they can, if you use a tool that does that, such as TeamCity or Jenkins.
 
7:14 PM
travis builds for windows too? ;o
does it have all the libraries? boost? etc?
Puppy I remember your name was MG? :P
I think it was better than your current
:)
 
whoa, the crab hat got a rightfold
 
user1804599
@Gizmo If you want anything decent you have to run such a tool yourself.
 
@rightføld yup so useless for my projects XD
 
user1804599
Development with a machine you don't have full control of is worthless; you could just as well stop immediately.
 
and to this day I still don't use version control ~.~
I hate myself for that
 
user1804599
7:16 PM
lol you suck
 
but it's so much to setup
 
@Gizmo It was actually simpler than I thought.
 
Even Puppy managed to do it, more or less
 
yeah I do have github installed , it's even integrated in VS! (magic 0.0)
Ifucked up the first few "commits"
I didn't know what I was doing
 
> github installed
 
7:18 PM
how do you install github
 
still don't
 
Gizmo
 
@Gizmo It's git. GitHub is the site for hosting the git repositories.
 
you need to download more ram
 
in his defense, I believe there's a github client called "github"
 
user1804599
7:18 PM
@Gizmo you cannot install GitHub yourself.
 
 
user1804599
You can install GitHub Enterprise or GitHub for Windows.
 
installed and ready to launch.
 
@AlexM. no
 
@Gizmo holy shit
 
7:19 PM
that's "Github for Windows"
 
you're a haxxor
 
@Gizmo there's an ebook for free about git
 
Ell
they have a client
 
Titled "progit" something like that
 
user1804599
@Ell We also have clients. Doesn't make them us.
 
7:20 PM
Also, on many linux systems your browser shows up as a shortcut called "Internet"
that doesn't fucking mean you have the internet installed
 
user1804599
On my Linux system it doesn't show up.
 
Woo useful pedantry as usual
 
user1804599
I just type chromium&disown;exit and am done with it.
 
Retarded Android also says "No internet" if you have no access to the internet.
 
user1804599
Only the NSA has the internet.
 
7:21 PM
@milleniumbug 'internet is kill'
'no'
 
@milleniumbug Crime of all crimes
 
@AlexM. By downloading their client.
 
I wonder why Github made its client only for windows
 
hm I'm wondering what the most efficient way is to add a "column" to a std::string with newlines
 
@orlp The Mac version came first.
 
7:23 PM
@orlp because Linux has git gui
and linux users don't need guis anyway
 
So does Windows
 
last train for home now boarding yippee
 
Cool, I can SSH to the VM but not to the hypervisor
 
they just hardcode their operations and recompile the git client
 
Ell
@CatPlusPlus lol
 
7:25 PM
@CatPlusPlus I only use SSH to configure iptables, nothing more
 
someone should write a git client in wide
 
for any advanced tasks I just RDP
 
and zoidlang
 
user1804599
I used many Git GUIs and they were all abysmal.
 
7:25 PM
Maybe hypervisor should use stable instead of testing
 
@rightføld I like sourcetree
 
@LightnessRacesinOrbit hisssssss
 
I don't remember what I needed that I installed testing
 
and C++14
equally horrendous experiences
 
Ell
7:26 PM
@rightføld I use gitg for viewing repos
 
what have i missed over the last few days? except for hats, that is...
anyone
 
@LightnessRacesinOrbit not much
just some github client discussions and usual Non-C++ things in the C++ lounge
 
Gaudete Sunday
 
boring
"Gaudete" haven't that in a while
 
@LightnessRacesinOrbit you haven't?
@LightnessRacesinOrbit but what if you do
 
7:34 PM
it means like "hurray" right?
 
@john: My answer answers the question you posted here. The question as you posted it is not going to draw the answer that your comment implies you are looking for. You will need to post a different question asking how to do that, if and only if you cannot figure it out for yourself from looking at the TStringGrid documentation. — caps 34 secs ago
In other words, please up vote and give me something for the hour I spent answering your question.
 
@caps well, that's just you being stupid
 
as in "yippee the baby jeebus has popped out innit"
ah train leaving bye internet
 
some questions are worth spending an hour on
 
7:35 PM
the low-effort shit that question is, isn't
 
7:46 PM
I found the true meaning of hth: hail the hydra
Alf was never hoping that his posts helped
 
So the top bar notifications will overlap if they're too long.
 
let us see :)
 
user1804599
 
user1804599
> user profile on meta.stackoverflow.com
 
user1804599
7:50 PM
WHY META
 
@caps 'I want to create loads of TStringGrid instances...... actually, not really :( I hate it when posters do that.
 
user1804599
@Mysticial file a bug report :P
 
@Mysticial Nice source edit.
 
@MartinJames Yeah. Grr. The whole question is about creating TStringGrids dynamically. I share how to do that and he says "oh, that is not actually what I need to do." Okay, well... that's what you asked how to do, so you should somehow indicate that I showed you how to do it.
 
@caps It's a shitty component anyway. If you stream out a form containing one to a DFM, the strings don't get saved:(
 
7:58 PM
@MartinJames I've never used it for that.
 
@Columbo Did you really think it was a source edit?
 
@Mysticial Yeah, why not
Isn't it?
 
Nope.
 
@Mysticial Wait what
 
I haven't touched those icons in months.
 
7:59 PM
He just doesn't click them for whatever reason
 
Except for the WB one which I needed to in order to enable hats.
 
@Mysticial As if you wouldn't react to comments.
 
Or do I? :)
 
@caps Not many do, but most of my apps stream out the forms on close and stream them in again on open. TStringGrid's array of array of strings prolly cannot be represented as a published property:(
 
Hi all, hmm anybody have a quick answer or link for me? Difficult to google that one.
unique_ptr<MATFile, void(*)(MATFile*)> matFile = ....

The syntax of the custom-deleter part... the "void" means its return type is void, the stuff in the second brackets means is takes a "MATFile*" as argument. But what about the "(*)" ?
 
8:00 PM
You can go through profile > responses
Not that it's a good idea because fuck SO posters
 
@Ela782 function pointer
 
@Ela782 no.
 
@MartinJames Couldn't you inherit from TStringGrid and write your own streaming member that does what you want?
 
A function signature and a pointer symbol I wonder what it could be
hmmmm
 
an array
 
8:01 PM
An array of books to read
 
Hmm I'm not smarter yet @milleniumbug @Puppy
 
@caps Probably, yes. I just avoid using it:)
 
well you're still here so
 
@Puppy so are you poopy
 
? :D
 
8:03 PM
@MartinJames Sure. Not sure it's really justified to call it "shitty" though.
You could call all of Embarcadero that, sure. But not that specific component.
 
A grid just for strings seems overspecialised
Why does VCL still exist even
 
@caps It's the only common component that doesn't stream well. I had some other issues with at too, but I can't remember them because the last time I used TStringGrid was like 20 years ago.
 
Aside from supporting code from 30 years ago
 
@CatPlusPlus Dunno:) Can Qt, C# forms save their state across app runs too?
 
That's not a particularly difficult thing to do
 
8:09 PM
Serialization isn't hard in decent frameworks.
 
@CatPlusPlus Not in Delphi/Builder, no. It requires no effort since it's built in.
 
@CatPlusPlus Because Embarcadero still makes IDEs.
They have another framework, called FireMonkey, or FMX.
It is newer and I think it is cross-platform, which is neat.
 
@caps Dat monkey any good, or is it evil?
 
But for those of us with codebases written in Builder since the late '90s, we are stuck with VCL.
@MartinJames I have no idea. I've never used it.
 
@caps Orite. I'm still on VCL too.
 
8:12 PM
I think I got it - (* name) would be the name of the function, but as it doesn't need a name and its just an anonymous function, it's just (*). Is that right?
 
function pointer, not function
 
user1804599
ps -ylC … --sort:rss | awk '{ x += $8 } END { print x }'
 
user1804599
nice
 
@Ela782 No.
 
8:13 PM
It's just a type, there's nothing to name
 
unique_ptr<MATFile, void(*)(MATFile*)> is a template for something like unique_ptr<T, P> so void(*)(MATFile*) is just a type.
 
it is not a function signature, braindead.
 
@Puppy Okay, it's not a function signature.
 
Yea I get that it's just a type - and that's exactly why there is nothing in the brackets, right?
 
@Ela782 Which brackets?
 
8:15 PM
Are you complaining that the random numbers... are too random? ;) — Borgleader 10 secs ago
 
The '(*)'
If you declared a function pointer, like in another context, there could be a name there
 
hm is there a special container wich "compresses" data? I'd like to store a list of connected IP's but 16GB is a bit too much (2^32 ints)
I'm sure there is some smart way to group ip's or something
 
@Borgleader That's a valid reason to complain about PRNGs, you know.
 
@Gizmo What are you doing?
 
@VáclavZeman I'm trying to prevent a server full attack
with soofed IP's
bool OnIncomingConnection(int playerid, std::string ip_address, int port)
 
user1804599
8:19 PM
Just limit the amount of connections.
 
I want to convert the ip to an int
 
user1804599
Connections are more expensive than IPs.
 
then kick if it's the first connection
if it reconnects
 
user1804599
IPs will be the least of your worries.
 
pass
 
user1804599
8:19 PM
Set ulimit problem solved.
 
@Gizmo Well, you do not need a table 2^32 large for that.
 
Listen, there is a problem in the RakNet layer which the developers of RakNet won't solve
if you send a connection request a slot is allocated
whenever the ip is spoofed or not
 
@Rapptz Woot, 2 days after being resurrected from the dead, I got yet another upboat on my 2 mains answer :D :D :D
 
one packet is enough and servers are constantly under attack
 
it just compensated for vlad's shenanigans
 
8:20 PM
lol
 
a guy buys a russian VPS for 2 euro and can spoof as many packets as he wants
unfortunetely they are UDP.
 
@Gizmo I fail to understand why you want 2^32 big table, still.
 
so what I want to do: count how many requests a IP has sent, if it's more than one - allow the connection, only kick the first request
I can make a std::map<int,char>
but if they spoof enough adresses I won't have enough memory
 
user1804599
ulimit
 
ulimit? what's that
 
user1804599
8:23 PM
man ulimit
 
@Gizmo: You need some form of a trie and you need to remove old/stale entries from the table.
 
user1804599
IPs are like four bytes.
 
user1804599
You probably have larger data structures you have to worry about.
 
well the maximum playercount is 1000 anyway, but the requests are beingspammed at a rate of 5000 different ip's / sec
 
user1804599
So just limit the total connection count and be done with it.
 
user1804599
8:24 PM
If you need to serve more you need a better server or more servers.
 
there is a 500 connction limit..
bit UDP is connectionless and RakNet allocates a slot
whenever a packet with a connection request
is sent
 
user1804599
@Gizmo problem solved!
 
user1804599
@Gizmo don't use RakNet problem solved!
 
@rightføld Nope.
@rightføld tell that to the developers of sa-mp.com
 
@rightføld What about IPv6?
 
user1804599
8:26 PM
@VáclavZeman right; about 0.001% of the IPs will be 16 bytes.
 
lucky me don't need to worry about ipv6 as it's disabled on my server with intent
 
user1804599
Also
 
@rightføld It's a few percent now
 
user1804599
If you have that many players you probably have enough money to hire somebody who is an expert on this subject.
 
user1804599
So go do that and ask him/her instead.
 
8:27 PM
@rightføld I run a profitless server for fun only
it's a hobby project
I pay everything out of my own pocket
but I hate it when someone wants to dstroy the fun
and I want to fix it.
the whole sa-mp community know about it yet there hasn't been any update since it's known
 
user1804599
Fork and fix.
 
closed source.
I would love to have the source code
 
user1804599
lol closed-source libraries
 
it's not a library, it's an application
but doesn't matter anyway
 
user1804599
cool
 
user1804599
8:29 PM
I raised FPM process count and load dropped.
 
@Puppy What LLVM version do you need for Wide?
 
3.5
 
so, if I get 5000 connection requests / sec from 5000 different IP's, what's the best way that doesn't hog memory to check if there is a second request from the same ip?
A spoofed ip will not try to send a "Reconnect"
 
user1804599
@Gizmo why don't you use a proxy that fixes the problem?
 
user1804599
Between RakNet and the internet.
 
user1804599
8:31 PM
Anti DoS software.
 
@rightføld I already have like a zillion DDoS firewalls filters & iptables configs in between
on the OVH network too
 
user1804599
hi
 
I really wonder why OVH can't filter packets from spoofed UDP source's?
 
How do you tell
 
8:32 PM
well i'm not a networking engineer or expert but yes I know it's hard
but they do have all the resources
me not
or well, maybe if I could afford like a machine with 32GB more ram
 
If you get a packet with an IP from a foreign network then you don't know shit about it
 
yeah I blocked outside countries, now they attack with spoofed ip's from the country range I aim for
:/
 
user1804599
block IPs in those ranges problem solved
 
Don't run shitty software
 
@CatPlusPlus no better alternatives
 
user1804599
8:35 PM
block them before they reach the crappy software that eats too much RAM of course
 
I wonder if PF from OpenBSD could punch hole on second packet...
 
The alternative is to let someone else run the shitty software
 
heh others have it worse
hosting companies actually get many complaints now
 
Yeah bother your ISP because your software is broken and can be trivially DoSed
 
but seriously I don't get the people that do this
Why attack random servers?
 
user1804599
8:37 PM
fun gun hun
 
Welcome to shitty game communities
Don't run servers for random people and you won't have problems
 
yeah..
anyway back to the problem.. so, anyefficient way to store the amount of connections a certain ip has made?
 
std::map<int, int>
 
@Gizmo You just need some sort of MRU table.
 
Switch to IPv6 and you can trivially reduce the amount of connections to constant 0
 
user1804599
8:40 PM
Cat is the Jenkins instance still half-baked?
 
@CatPlusPlus yeah.. same as shutdown delete all
 
I've started a node and I'm installing compilers and crap
You can try making jobs now
 
user1804599
Nice.
 
hm
 
user1804599
No idea how that works but I'll figure it out.
 
8:41 PM
maybe a std::map<short/*127.0*/>,std::map<short/*0.1*/,char/*amount of connections*/>
 
@rightføld lol @ your head
 
user1804599
I think I don't have permissions for it.
 
hm in the end the same size
 
Are you in the GH org?
 
user1804599
No.
 
8:42 PM
Then that's why
 
user1804599
No idea why though; I was like a year ago.
 
Remember that "standard library" thingie I once started with?
I'm starting to see how tightly bound C++ is to C.
 
user1804599
@CatPlusPlus Can you add me? :p
 
I think the map I came up with will actually containe less elements in the end?
 
Sent you an invite
 
user1804599
8:43 PM
Thanks! <3
 
On a conceptual and an implementation level.
 
user1804599
Didn't receive anything lol
 
@rubenvb If you're implementing the standard library, then you're basically implementing C++, so having to start from C is no surprise
and frankly, when it comes to things like EH support, you'll have to go quite a bit lower.
 
@Puppy well, kinda, but the thing is, on Unix you'll need libc for well, everything, and on Windows, well, no exception handling without msvcrt.
So fuck that shit.
 
er, no ?
pretty sure that even on x86 Windows, MinGW uses Itanium EH.
 
8:46 PM
@Puppy well yeah, MinGW...
 
right
 
Hmm...
 
so what you actually meant was, "Can't be arsed to implement EH"
which is fair enough but a far cry from what you actually said.
 
user1804599
Oh now I see it.
 
@Puppy haha right :-p
 
8:47 PM
Who's Gizmo?
 
user1804599
Ok I'm in the organisation now.
 
Can my presence in the GH organisation bring any benefits?
Probably not, since I'm asking that question :-p
 
user1804599
You're supposed to have more permissions in Jenkins but that appears to not work. :v
 
My browser is now all-out refusing anything that doesn't have HTTPS.
What has this world come to.
 
@rightføld Logout and login again
 
user1804599
8:50 PM
Did that no difference.
 
Logout, I'll delete you
 
user1804599
Maybe you have to delete my account.
 
user1804599
ok logged out
 
Try now
 
user1804599
Guess XD
 
8:51 PM
lol. Delete account. God mode enabled. You're off the grid!
 
Ugh, okay, I'll switch to manual rights for now
 
user1804599
Jenkins sucks already!
 
I seriously cannot get off the habbit of typing std::boost:: ..
I've corrected it today like a hudred times
 
Hmpf. I want eztv.it back. :|
 
There's a proxy
 
8:57 PM
ideone.com/8dFVB0 should work I think
 
How exactly do I log in to Jenkins?
 
user784668
@Nooble Give Satan your soul first.
 
user1804599
@Gizmo lol unsigned long as IP
 
Click 'login'
 
user1804599
@Nooble use HTTPS or it won't work
 
8:58 PM
@Fanael Wonderful!
 
user1804599
The link in the starboard is wrong.
 
@rightføld Ahh okay.
 
@rightføld yeah that's the "official" way (standard way" of definig it
32 bits unsigned type
 
user1804599
It's retarded.
 
the only right one is unsigned long
 
user1804599
8:58 PM
Use an IP type.
 
No because it will consume more memory
 
user784668
what
 
I think..
 
user784668
@Gizmo You don't.
 
lemme check sizeof the boost ipv4 addrs structure
 

« first day (1521 days earlier)      last day (3426 days later) »