« first day (1868 days earlier)      last day (3080 days later) » 

7:03 PM
@tereško I would "hire" that one just for shist and giggles
 
no, you really wouldn't
it's not worth the effort
 
@NikiC so, this is where I am at a loss... because only one in (2**64)-1 integer keys would collide? unless the key is 32 bit, then I'm off by a huge factor
aside:.. ignore the -1, I'm too used to 0 indexed things, imagine I said +1 (to account for the collision)
(and best case scenario)
 
@Leigh hash tables are not 2**64 in size.....they're a bit smaller than that.
 
user image
2
 
I know, I was thinking about what it would take to collide two integer keys, but also... I'm feeling dumber by the second
 
7:10 PM
Welcome to my world!
 
Obviously all integers in the 64-bit space do not collide with each other, given 64 bit keys
and there is no way to go to 64 bit maximum +1 for the collision
they can then only collide with string keys whose hash computes to the same integer value
in which case, I don't understand how it can lead to a DoS
because exactly 1 integer maps to the 64 bit output of a hashed string
 
@Leigh Hashes are masked
 
oh now you're just being difficult
 
Before you use the hash, you first have to perform the equivalent of a hash % table_size operation
Notably hash % table_size == (hash + N * table_size) % table_size for any N
 
I'm guessing "why?" is beyond the scope of this conversation. I'll go read
I was going naive, like, binary chop to lookup keys :p
 
Abe
7:16 PM
totally off topic @NikiC since b'string' is still in php somehow, would it be possible to turn it in u'' and map it to the icu's ustring or whatever class?
 
since you asked "would it be possible", I'm going to say.. "yes"
 
Abe
or can only be a scalar type
 
btw, today I made @@ annotations work as an extension. they populate the $@ variable with various junks
 
Abe
@Leigh with a complete oop syntax, like u'stuff'->toUpper()
 
@Abe well the string method stuff is already possible with one of nikita's hacks... so with a little parser modification to allow the "u", why not?
can't remember if the string has to be in a variable first..
@DanLugg I have an ext to make it strict by default
 
7:23 PM
@Leigh Someone is likely to tell me to details are incorrect, but I think it's like this; assuming an initial hashtable size of 8.
//all these insertions collide
$x[0] = 1; $x[8]= 1; $x[16]= 1; $x[24]= 1; $x[32]= 1; $x[40]= 1; $x[48]= 1; $x[56] = 1;
//table resizes to 16 on next insert
$x[16]= 1; $x[32]= 1; $x[48]= 1; ......$x[256] =1;  //all these collide
// table resizes to 32 on next insert
$x[32]= 1; $x[64]= 1; $x[96]= 1; ......$x[1024]  //all collide, table resizes to 64 etc
 
Abe
@Leigh pecl it fast and spam it everywhere
 
@Danack 8 what? ... don't say values
@Abe it's OSS bro, spam it yourself
 
#define HT_MIN_SIZE 8
8 entries.
 
Abe
@Leigh :P
 
is that used in a shift operation anywhere..
oh... min
min man, min
 
7:25 PM
The actual size doesn't matter...just the demonstration of how often you get collisions....
 
my $foo addled brain was thinking... expected average or some shit
I'm sort of feeling, if your app makes extensive use of 1 element arrays, your slowdown means nothing to me
 
@Leigh doesn't matter if your app does or not.....an attacker can just POST data in that format to you.....
 
I think I'm getting confused about my own argument now
let me scroll up and read the words of popovius
nope, i got no idea. N was undefined
"for any N"... my N was an imaginary number, shit blew up
I quit
 
8:11 PM
The things I put my cat through. :P
 
you didn't get the leg in the hook sleeve
 
heh
 
notice the last sentence...
 
I noticed she used the word parameters
and also her idea of "rather tall" was a gross exaggeration
 
but somehow NodeJS fits perfectly lol
 
8:19 PM
I read everything else, by the time I got to NodeJS, I was like "so what?"
 
Anonymous
I think for women, 1.68m it tall enough
 
I always found hobbits creepy
 
Anonymous
We need Ronda Rousey vs Holly Holm round 2 now!!
 
Abe
Hi @deepbunnyhole - Do you have a github profile? :) #job #nodejs http://jobs.ciklum.com/jobs/full-stack-javascript-developer-for-debitoor/ :) https://t.co/Hu1bMHMVaJ
going to watch some tv. good evening all
 
hahaha
she'll do even as an intern
 
8:34 PM
Hi guys, I'm trying to develop a very simple CMS in PHP using PDO allowing access to content based on user role. Basically there's an admin user role and a basic user role.
The CMS is built using PDO, but I can't seem to find a decent user role session script in PDO. This is what I've managed to find in MySQLi. Can anyone guide me in the right direction as to how to easily convert this to PDO?

http://pastie.org/10584849
I'm very new to back-end dev and MySQL in general, but from what I've been able to gather, PDO is much prefered to MySQL and MySQLi?
 
@JakeMcApe the only thing I can recommend is looking at framework.zend.com/manual/current/en/modules/…
 
@Abe interesting, +1 :)
 
@Danack Thank you for your answer :) Looking over your link, the module seems rather extensive for such a small CMS?
 
@JakeMcApe There's no such thing as a small CMS.
Does anyone know of a library that will take some html that contains a form, and will give you back the values that would be submitted? For testing purposes.
 
Hey, does anyone know can I "link" PHPStorm with my server in order to edit my files on the fly?
 
8:44 PM
the values or the fields?
I always used xpath for the fields
@MenelaosKotsollaris There's an "upload-on-save" option - I've seen it in the past, I assume it's still there
 
to give a simulation of what would be inside $_REQUEST if you submitted the form.
 
Hmm probably this one. Thank you; let me check.
 
@Danack if you have html with the values filled in, I still recommend xpath... //input[@value]/@value ... or something, it probably doesn't work, but it's somewhere close
 
yeah....that sounds like the right approach....do you know of a library that does it?
 
I just use DOMXPath :x
 
8:48 PM
@Andrea Random thought on generics: It would be great to define a generic where the type must extend/implement a class or interface. Sequence<T:InterfaceName>
 
oh, there is a library on top of DOMXPath and such, FluentDOM
 
@Danack In most cases I would agree, but my database in this case basically consists of a users table and a posts table. The idea is for basic users to only have access to create posts and edit their own posts and user info, while admins can edit/delete all posts and users. Everything is set up using PDO, but I can't seem to convert the access_control script from MySQL to PDO.
 
/cc @ThW
 
@Trowski yeah, that's been suggested
personally I'd like it to follow the syntax function parameters use
 
@Andrea So like Sequence<InterfaceName T>?
 
8:56 PM
yeah
but then it's two consecutive plain identifiers and I can understand why some don't like that
I think PHP should maybe have a type variable sigil, like we do for normal variables
 
getting to the point where I start to think things like... "if PHP gets generics.. why the hell would I bother still using PHP"
 
@Andrea Maybe *T
 
actually.. why do I still use it now... what am I doing with my life...
 
friday, friday, rm -rf php.net on friday, everybody's looking forward to armageddon
 
I'm alone and I've been drinking... want to talk dirty? we can use words like... ereg.. and mysql_escape_string
13
maybe a little logo guid? no?
 
9:03 PM
there will be no register_globals in this house
 
young lady!
 
Wash your mouth out with WSDL
 
because SOAP is too good for you..
pssst... pssssst... dude, over here.... you wanna buy some magic_quotes? ... yea man, of course they got a safe_mode...
5
All these stars going to my head, going to go out and find some hookers... @Fabor you in? (in real terms, going out for a pint, you got my no. bro)
 
9:42 PM
@Leigh Thank you for your help, that was easy; 2 small steps and my remote project is synced with PHPStorm now ^^
 
don't thank me, thank the hookers
 
store.steampowered.com/app/369070 this might be awesome.
 
@tereško if you ever want to play endless legend, ding me
 
@Leigh is it any good? Because I wasn't too impressed with Endless Space
 
9:46 PM
dude, you publicly decided to discredit my opinion on everything....
The only reason I'd tell you it was awesome, is to make sure you never enjoyed how awesome it was
;)
 
wait .. wat?
Well, the really question is: how is the endgame in Endless Legend?
because in both Age of Wonders 3 and Civ5 the engame is shit (it's fun for first 2-4 hours, but at one point you are either irreversibly fucked or steamrolling everyone .. and it begins to feel like "work")
@Leigh ?
 
10:01 PM
How to sleep when sleep escape of you ?! ;-)
 
hot peppermint tea with some honey helps
 
yes it helps, but for staying awake more :-)
 
nope .. peppermint tea is actually calming
unless you have some strange peppermints in the east
 
@Shafizadeh I have found that reading certain types of literature is very conductive to falling asleep
 
@NikiC agreed :)
@tereško no, as you said, peppermint tea is relaxing in here either
 
10:06 PM
@NikiC not Harry Potter
when I started reading that, I couldn't stop
I think I've read most of Harry Potter books in a single night
(well, one by one)
 
but actually I have some preoccupation (my mind is busy), maybe the best option is walking ..!
 
@FlorianMargaine yeah, it's one of those "supposed for children", but they were most worn books in the library at my university
 
@Leigh Ah sorry didnt read your message. Can't go out anyway, basketball tomorrow. Not good for the body
 
@fabor damn straight basketball isn't good for the body :)
 
lol. It's true :(
 
10:10 PM
@FlorianMargaine Certainly. Depending on what you read it either keeps you up all night or you fall asleep ten minutes later ^^
 
or if you read 50 shades of grey you put the book aside and don't sleep right away
disclaimer: I haven't read the book.
 
well .. what can you expect from Twilight fan-fiction
 
There exists some decent Twilight fan-fiction
 
probably .. then again I read the original and it was quite terrible, so - not interested
 
read is both "past" and "present" ? (I'm talking about the time)
 
10:15 PM
in this case: past
it was several years ago
 
ah ok
 
I haven't read Twilight itself, I only read Luminosity, which is a rationalized adaptation.
 
if you want to read "young adult" books, I think "Mortal Instruments" was quite good
 
lol
 
10:18 PM
Why I never understand the point of this kind of pictures .. :(
 
@FlorianMargaine Harry Potter and the Methods of Rationality is one of my favorites
 
@Shafizadeh the image provides things like "context" and "tone" for the text ... if you do not recognize the image, then the full meaning of the text is lost on you
 
yes exactly. What is "diggory"? what is "hufflepuff"? also what is "vampires"? (however I can guess about vampires, they are scary creatures)
 
@NikiC is that a fan fic?
 
@FlorianMargaine Yes. The only one worth reading
 
10:23 PM
ok
 
@Shafizadeh well. "Sparkling vampires" is a reference to a really bad book/movie that was (maybe "is") popular among teen girls/young woman in western countries. The rest is related to Harry Potter books
 
@tereško OH! so that is vampires! alright, tnx :-)
 
heh .. well .. not really
 
why young girls like that book/movie?
that book has what good feature for them?
 
I'm not sure. I suspect it's more to do with how the book is written. The protagonist (main character) is never described and doesn't really have any character traits. That way the reader is forced to "fill" the protagonist with his/her own identity. It's a literary trick. And then there is the storyline: it's a basic high-school drama with "mystical creatures" sprinkled on.
 
10:36 PM
@Shafizadeh - teenage girl necrophiliac porn, can't see the interest myself
At least "Mortal Instruments" isn't necrophiliac
 
@MarkBaker since the book's underlaying message is "sex is bad", I would not classify is as "porn".
 
I'm somewhat cynical.... and you can't say the same about True Blood or some of the other similar series
 
@tereško and @MarkBaker ow ... , really interesting!
 
@MarkBaker "True Blood" went all crazy. I much prefer "Vampire Diaries" tv-series instead. It started with that twilight-vibe, but around 6th episode it begun looking more like cross between Buffy and Supernatural. Also, the lead actress is gorgeous.
 
I have the boxed set of Vampire Diaries in my "not yet watched" pile
 
10:45 PM
be warned, the start will be kinda lame (moping and angst), but it gets better
 
@tereško who it the author of that book? seems he is a clever and dreamer person
 
@Shafizadeh which book?
 
that book which is containing "The protagonist"
 
Stephanie Meyer is the authoress
 
"the protagonist" is a term , which describes the main character in a book or a movie
 
10:48 PM
ah ok
 
and the "empty pant" approach is a literary trick, which has been used for more than 200 years in various books
 
There's three books in the series, Twilight, Eclipse and Breaking Dawn
 
I think there were 4 ... but you really don't want to read them ... it's like watching a movie that has 3.5 on IMDB
 
@MarkBaker ah alright
 
You're right, I missed New Moon, the second book
 
10:49 PM
they are just English? or there is translated version of them?
 
I'm sure they've been translated, the film series was popular worldwide
 
@tereško 3.5 ?? that's really low
 
well, I am just trying to explain you how bad the book is
 
I got it :-)
 
ThW
@tereško have you read the Kate Daniels series?
 
10:56 PM
probably .. lemme check
@ThW yes, it was OK, but did not leave a lasting impression
 
heh, when I see myself and my comments on this room, I wonder..! Because I really don't know English and I'm chatting with real English persons. I had a lessen named English language in school. I always got a weak number of that lessen. When my teacher saw my low grade (score), he told me when do you want to try learning English?! heh! Now, I like to see him and show him my ability ;-)
 
"lesson"
 
ThW
@tereško Mistborn?
 
@ThW still on the "read later" list
 
"lessen" is still a real English word though, it means "reduce"
 
11:00 PM
@tereško ok, please don't tell to my teacher my mistake :-)
 
And we have no problem understanding your English
 
@MarkBaker interesting! tnx
@MarkBaker btw, all of people in here, are really clever, because they can understand my mean :-) ! I don't know how ..!
 
@ThW from "chick book" types I liked Downside Ghosts and Alex Craft
 
ThW
@tereško Kate Daniels has a nice hidden story over all the books and it got the transfer from romance to marriage right.
 
11:02 PM
I actually cannot remember that those books were about
 
ThW
Alex Craft has an interesting magic system
 
@ThW I assume you have read all the"Dresden Files" stuff, right?
 
ThW
of course
 
@ThW Recently did a Mistborn reread
 
ThW
@NikiC a magic system based on physics
 
11:05 PM
It's one of the rare fantasy books where I really get the feeling that everything falls together in the end and it all sort of makes sense
 
try the Downside series, it's main attraction: protagonist is a junky (I have this soft spot for flawed characters)
 
ThW
@NikiC true, but here are follow up books
 
Only the religious fixation gets a bit to me in the third book
 
@Shafizadeh heh .. chat is what I myself used in university to learn better english. Also having a spellchecker helps.
 
Reading English books also helps
 
ThW
11:09 PM
@NikiC a lot
 
@tereško you are from a west country and you could learn english very faster than me..!
 
Nowadays more than ever if you have a Kindle or some other e-reader with a dictionary
 
> you are from a western country and you could learn english faster than me..!
not really
 
ThW
@Shafizadeh western language - that are several language families
 
thanks for correcting me :-)
 
11:11 PM
@tereško Oh, I'm sure my English would be much worse if it weren't for this chat…
 
@ThW yes, as you said, they are families. they are some identical characters. but my native language is much far of english
@bwoebi Me Too!
 
ThW
@Shafizadeh The same is true for some European languages, they have different roots and even different character sets
 
ok, what is your native language ?
 
ThW
I have it easy, I am German. But my second language was Russian
 
English is one of the hardest "western" languages to learn IMO (except perhaps for Dutch)
 
11:14 PM
@ThW ah, good
 
@MarkBaker Why?
 
@MarkBaker have you tried to learn any of Baltic languages or Russian?
 
@MarkBaker yes it is ..!
 
@Shafizadeh no, it's really not.
 
Too many words with badly defined meanings
 
11:15 PM
lol
 
Or with several different meanings, depending on context
 
Like that's an issue specific to English
 
^ that
 
ThW
@MarkBaker Try Finnish
 
.. finnish isn't even on the same tree
 
11:16 PM
Finnish is a lovely language to listen to, a very poetic sound - though I can't understand it despite the efforts of various people giving me Finnish language videos to watch
 
@MarkBaker what is your problem? you know a lot of weird english word. Always when you ping me, I have to refer to my dictionary :-) (you are one of those people that using complicated english word. unlike @tereško)
 
Sorry :(
 
no, that's my problem ;-)
 
it could be that my "core vocabulary" is just really small
 
I do know a lot of weird English words though, just not words that you often have an opportunity to use
I actually used the word Coulrophobia this morning
 
11:19 PM
@tereško no, because you can understand every english sentence...! it shows you know a lot of english words too, just you don't use them, and thank you for that :P
 
@MarkBaker that's fear of what?
 
(Not often that you can use a word like that (meaning is "fear of clowns") in everyday conversation
 
oh
 
@Shafizadeh Sometimes when writing German (the language where my vocabulary is the largest) I tend to use more unusual phrase constructions and vocabulary… Just because I do it intuitively…
 
interesting :-)
 
11:21 PM
in Latvian we have the bad habit of making really complicated sentence .. also, since Latvian has like 7 tenses for verbs and 8 declinations for nouns, those too tend to get abused
 
The more proficient you are in a language you just don't think anymore about words and phrases, it just comes subconsciously…
@tereško Ever tried Latin? :-P
 
ThW
@tereško You have read German? Where a sentence can have paragraphs? :-)
 
@ThW it technically was my 3rd language, but I am really out of practice. And FYI, German has had huge impact on Latvian.
 
Latin isn't too difficult for me, a lot of English words come from a Latin root, a lot of others from Greek, so it makes both languages easier for me
 
@ThW is this true? "all German people know English as well"
 
11:23 PM
nope
 
@tereško At least I hope it uses more articles and pronouns than Latin does… makes it sometimes hard to guess what refers to what…
 
ThW
@Shafizadeh No, definitely not
 
I heard it from a German person
ah, ok
 
@bwoebi well .. here are the basic pronouns: latvianstuff.com/Pronouns.html#latv (that does not include various ascents, slang and bastardizations)
 
@MarkBaker the words are mainly an issue when having two unrelated meanings making both sense at the first look and only deciphering all the declinations tells you what meaning likely was meant…
@Shafizadeh no, they learn it in school for many years (5th class onwards) … but that doesn't mean they'll know it well
 
11:28 PM
ah
 
ThW
@tereško My grandfather was from "Ostpreussen"
 
@MarkBaker and then you get one deconstruction a bit wrong and turns out what you just read made no sense ;-)
 
@Shafizadeh well, you get the additional problem of having to read in different direction
that probably makes it quite tricky, especially when you have to switch from native to english
 
different direction means different resource?
 
@tereško Also, with complicated, you mean just multiple clauses or large complicated individual clauses?
 
11:30 PM
@tereško Not quite as bad as Latin (where you have about 60 forms for 3rd person pronoun)
 
@Shafizadeh direction as in "from left to right" instead of "from right to left"
 
@NikiC yeah, precisely ^^
 
ahhh!
yes unfortunately
 
actually I have always found it kinda interesting
 
:-)
 
ThW
11:32 PM
@tereško even more if you think about numbers
 
was there some strange writing tool popular when written persian language was invented?
because, if you write from left to right, you can rest your palm on the paper, which lessens the risk of smearing the ink before it has managed to dry
 
also the position of word. for example, the adjective is after the word in my language, but english is vice versa. "English => beautiful flower", "Persian => flower beautiful"
 
ThW
@Shafizadeh object, description :-)
 
@ThW tnx :-)
 
ThW
English (and German) is like a riddle, describing the object before naming it.
 
11:36 PM
:27162845 I am asking it because I suspect that the direction of written text is related to the tools that were used
 
@Shafizadeh And if you do the same in English, it counts as elevated language ;)
 
@tereško interesting ...
@NikiC :P
 
@ThW the direction of text is arbitrary. You think that one direction makes more sense then than another only because that's what you initially learned.
 
my grandfather had a type-machine that it was working for both ltr and rtl direction.
I liked that.
 
ThW
@tereško I mean the origins of the numbers we use.
@tereško I have seen the English numbers (ltr) in arabic texts (rtl)
 
11:47 PM
But "Western/English" numbers are based on Arabic numerals anyway... prior to that, we used Latin numbering (XLIV, etc)
 
ThW
@MarkBaker and nobody wants to use the roman numbers ...
 
Besides film companies when showing the year the film was made
MCMLXXXIX
 
yeah .. that one takes like 10 minutes to figure out
and I actually know what each of those letters mean
 
I'm always annoyed that MIXM is not allowed …
 
Microsoft did invent it.... their ROMAN() function has a number of "types" that provide variants, including a shortest possible way of expressing any number
 
11:53 PM
yeah, just talking about the canonical form…
 
XMIX or VMIV or even IM for 999
 
Is IM invalid?
 
No Roman would ever have used it, the classical form is CMXCIX
 
Right, because you generally place only the symbol with the next lowest value before a higher valued symbol.
V seems to be an exception to all that though.
 
@Trowski hmm?
VL isn't allowed, just XLV
 
11:58 PM
Right, because V isn't the next lowest from L.
 
Yet in t-shirt sizes, XXL is a size larger than XL
 
L would have similar rules too I suppose.
Any of the symbols half-way between the power of 10 symbols.
 

« first day (1868 days earlier)      last day (3080 days later) »