« first day (215 days earlier)      last day (4792 days later) » 

12:00 AM
@KlausByskovHoffmann Agreed.
 
But there's 0 difference between varchar|binary 72 and 255 except for data truncation
 
Ok, so I'm going to change that to 255.
Ok, let's try again....
Poor admin will get an email stating that we lost 2 numbers... Eh.
 
well 2 is better than 2000
 
@ircmaxell indeed. The sole consolation here.
 
I'm still hard at work on a full blown crypto library for PHP
15 classes in the random number generator alone...
 
12:03 AM
@ircmaxell Good luck! Please document things like output length, for the benefit of idiots like me. ;-)
It works now...
Thanks folks...
Gotta finish this and report my blunder.
 
47 classes in total so far
 
Just made the phone call.
Not so bad.
"I'll take care of that." - Supervisor
 
cool
 
Yea.
 
@Moshe I am back now, but, it looks like you were in capable hands
 
12:12 AM
@TheOutOfStarsException - I was, but own hands were not...
@TheOutOfStarsException Read what happened?
 
@Moshe varchar was truncating?
 
varbinary
 
Yeah, MySQL really needs to make that an error instead of a warning
 
I was unaware we were base64 encoding, and did not account for encryption overhead, sorry if my advice was misleading
I forgot if I recommended a length on the column
 
@TheOutOfStarsException No problem. I don't think you did.
@ircmaxell - It's not my server and guess what, they turned off alomst all error/warning output, ugh!
 
12:15 AM
Well, MySQL silently truncates data, and issues a warning (mysql warning, which almost nobody pays attention to)
 
@Moshe also this is actually a good thing if you are talking PHP errors. They turned off the output but not the logging, you can see the logs yourself, or temporarilly re-enable the output using ini_set but disable before production
well, you can see the logs if they gave you access ;-)
 
What's the noun form of derivation? derivator? derivater? deriver?
 
@ircmaxell I believe "derivative" but english.stackexchange.com
 
Well, I'm looking to describe a series of classes
classes that generate a key are called generator, that supply data are called source. I'm trying to name a series of derivation classes...
 
Well maybe I am wrong, maybe the word you're looking for is "thingadongdong"...
 
12:21 AM
Ahhh, Perfect! \Cryptography\Key\Thingadingdong\PKBF2, works great!
 
ROFLOL
@ircmaxell I'm sorry, after a few beers I am unable to answer your question seriously :-)
 
I'm just calling it derivation
\Cryptography\Key\Derivation\PKBF2
 
@TheOutOfStarsException Derivative it is. I agree.
 
Yeah, but the class performs a derivation. So the derivative is what you call the output, not the process (unless I'm getting it mixed up)
 
@ircmaxell you are correct
 
12:27 AM
fair enough. Derivation is good enough for now
 
I have never really considered myself to have a great ability to name things well. This is evidenced by my asking the community to name not only the ThirdPlace system but my MSO account as well ;-)
 
lol
 
I think derivation may be correct, as in, "the act of creating a derivative", but it could be "derivator" maybe? IDK, I'd stick with Derivation
 
Well, food labels use "derivative".
 
6 mins ago, by ircmaxell
Yeah, but the class performs a derivation. So the derivative is what you call the output, not the process (unless I'm getting it mixed up)
 
12:32 AM
Deriver still seems like it might be
but that's too weird
 
I say codegolf.stackexchange.com
 
++
 
@mootinator lol
 
Why is this not showing both records?
while($row = mysql_fetch_assoc($results)){
er, ==
Why does mysql_fetch_assoc not return the first value?
 
12:40 AM
@Moshe not ==, use =
is there a mysql error?
 
@TheOutOfStarsException No, using == returns nothing.
 
as it should
// fetch a new row, assign to $row, and repeat as long as you can do this:
while($row = mysql_fetch_assoc($results)){
not:
 
right, so using = skips the first result.
 
// fetch a new row, and repeas as long as the new row is equal to assign to $row:
while($row == mysql_fetch_assoc($results)){
@Moshe wait, what? I am confused
 
@TheOutOfStarsException And that skips the first row
@TheOutOfStarsException This skips the first result in my table.
 
12:42 AM
@Moshe what?
 
20 mins ago, by The OutOfStars Exception
@ircmaxell I'm sorry, after a few beers I am unable to answer your question seriously :-)
 
@Moshe ...I... I don't believe that :-)
@Moshe LOL
 
Using two = skips the first row.
 
lol
 
12:44 AM
sorry. You do not want`==`
you want this:
while($row = mysql_fetch_assoc($results)){
 
@TheOutOfStarsException er? that uses ==
Again:
 
One equal sign shows all but the first result.
Using two shows nothing.
Why?
 
@Moshe wait...
2 mins ago, by Moshe
Using two = skips the first row.
37 secs ago, by Moshe
One equal sign shows all but the first result.
 
Correct.
 
12:46 AM
I am confused now...
Can we see more code? :-)
 
Er,
Yea, I made a mistake.
TWO EQUALS SIGNS YIELDS NOTHING. ONE, SKIPS THE FIRST ROW.
 
One is not skipping a row
 
Yes, it is.
 
it's skipping a row before the equals
 
@ircmaxell huh?
 
12:48 AM
1 min ago, by The OutOfStars Exception
Can we see more code? :-)
 
Show all code from the query to that line
 
I see the mistake...
:function showEntries(){

	echo '</div><div class="inner-column">';

	$query = 'SELECT * FROM raffle_entries';

	$results = mysql_query($query);

	$data = mysql_fetch_assoc($results);

	echo '<div id="donor-data">';

	while($row = mysql_fetch_assoc($results)){
$data...
 
You fetch the first row
it's a cursor, each call to fetch_assoc advances the cursor
 
@ircmaxell Oh, cool. How do I move backwards?
 
public function derive($password, $salt) {
    $size = $this->hash->getSize(true);
    $l = ceil($this->options['length'] / $size);
    $r = $this->options['length'] - ($l - 1) * $size;
    $t = '';
    for ($i = 1; $i <= $l; $i++) {
        $u = $this->hash->hmac($salt . $i, $password);
        for ($j = 1; $j < $this->options['iterations']; $j++) {
            $u = $this->hash->hmac($u, $password);
        }
        $t .= $u;
    }
    return substr($t, 0, $len);
}
 
12:55 AM
Okay, I'm out.
 
peace
 
@ircmaxell Thanks, you too.
 
no problem
 
Ah, pizza...
 
1:19 AM
16,777,216 iterations of hash_hmac and PBKDF2 take a long time!
still going
 
1:44 AM
WooHoo! PBKDF2 implementation passes the test vectors!
 
2:31 AM
DEALY
 
2:46 AM
Blargh
Sometimes this site reminds me why I hate people, just sayin' ;)
 
lol
 
ICU @drachenstern's ghost
 
yes yes but I'm only here for a few minutes. I didn't intend on getting online at all tonight, was gonna sack out early and get up at like 5 am and go put some extra hours on Monday. But apparently my wife needs me on skype. So I'm still ghosting. (I'll probably mod dba while I'm on too, if it needs me)
 
lol
 
Hehe.
 
3:06 AM
Anything fun happen this weekend I should read on the transcript?
 
Not sure, I wasn't here for most of it.
 
As was I.
 
I'm completely fascinated by this question:
3
Q: How to save highlighting to a database

vmanHi I am trying to highlight a part of the text on my website. This highlighted text will be saved for the specific user in a database and when the document is opened again it will show the previously highlighted text. I assumed I would be using javascript to highlight the text but I cannot seem ...

 
I want to make magic happen. How do I make magic happen? Note: I am not a wizard. I cannot be arsed to take time to become a wizard. I don't want to know what terms to learn so I can look it up for next time. I just want to make magic happen. With one line of code. Plz send teh codez.
 
More that there's a TextSelection object which doesn't appear to describe where the selection is in terms of the document in any meaningful way.
 
3:21 AM
@mootinator You mean you don't want to know the relative pixel location of the bounding box? ;)
 
@TimStone Yeah, strange... :)
 
@Moshe ~ You do realize that's what email is for right?
 
@mootinator What I like even more is their choice of flags for the findText method
 
@TimStone like I said: do MAGIC (insert jazz hands here)
 
@TimStone Heh.
 
3:25 AM
Voodoo magic, perhaps.
 
@drachenstern Jazz hands.
 
@mootinator Indeed.
 
> It seems that findText will find text in adjacent but separate text nodes if the doctype is HTML 2.0 or 3.2, but it will fail to find such text if the doctype is 4.01 or greater.
That comment was posted in 2010. I'm almost scared to imagine how they came across that issue.
 
Erk.
 
@TimStone um. Wow.
5
A: MySQL client believes they're in a transaction, gets KILLed, wreaks havoc

drachensternWhat was wrong with the answers on those two questions? They were 100% accurate, so I'm not sure what more we can do to help you here. I would suggest that you confirm that you never assume that you're in a transaction. Always check to make sure you are. In TSQL it would be as simple as checking...

^^^^^^^^^ he can't read.
> put them in a program so if the connection goes away it's gone
 
3:28 AM
text = '<div id="selection">'+text+'</div>' Then use the jquerys to magically sort the DOM out. Next question.
 
Microsoft jscript doesn't use a lot of jQuery
3
 
Stupid DOM interfering with jscript
You can mix/match script types.
> This property is defined in Document Object Model (DOM) Level 1.
Anyhoo, on to things that aren't a waste of time.
 
@mootinator you're going to stop talking to people forever?
 
It takes a village to raise an idiot.
 
Yes it does
I imagine the prescription is to nuke the village from orbit. Burninate it.
 
3:42 AM
Oh man...
This reminds me of stuff I would have written for a highschool project, not knowing any better.
0
Q: How to display stored information?

user647530Hello Everyone, It took me a good 2 weeks to get my program to work as it should but I decided to alter it but I need some help,the idea looks good in my head but when its time to code it I don't know where to start :(. I want the user of the program to input their licence plate number then at t...

 
Whew.
@drachenstern - I saw your message that you beat the 0 score test case. Do you have a screenshot?
 
@Moshe do you mean like this screenshot?
 
@drachenstern Perhaps...
 
Or do you mean this screenshot?
 
@drachenstern Yes.
@drachenstern There's more? Oy!
 
3:54 AM
I was quite proud of those 6
Naturally I wanted less, but I did pretty damned good.
 
Impressive.
@drachenstern - You're a terrible tester. You're too d**med good.
 
lol
I'm a great tester, I beat the top end repeatedly and find the wholes
 
I know, I know.
 
I did tell you I had it happen again this weekend where I was way over 2b right? Kinda made me wanna wait for the update.
 
Waiting for your thoughts on the latest.
 
3:56 AM
haven't downloaded it yet
doing so now, IIRC
 
I know, TestFlight tells me when you do.
 
Also trying to remember where I have an SD reader
 
SD reader?
 
@Moshe then you realize you don't have to tell us either, right? :p
 
@drachenstern Yes, I did. I'm a bit of a nudge.
 
3:59 AM
First problem :p
 
?
Did it overwrite your game?
 
Ok. That would've been scary.
 
You don't have sounds in this game do you?
 
I don't.
I was thinking about oriental music...
Why do you ask?
 
4:01 AM
Cos I hate music in my games.
I like the transparent bar at the bottom
 
Thanks.
The music you may be hearing is certainly not from my game.
@drachenstern That's what I was talking about last time that DropBox rolled back.
 
Ok
So do you know that I have all the achievements then?
 
No.
 
Except one of them is not shown, and the cheat one is shown
 
Ah, that is an iPad only cheat/Achievement.
Merlins Beard
 
4:07 AM
Can you not take it off the iPhone version then? I guess not.
 
No, it's Game Center related. Achievements are tied to your account not to a device,
You could always play on someone else's iPad theoretically. I wonder if I can make an iPhone version of the same achievement.
@drachenstern - Can you spot merlin?
This is for visibility:
46 secs ago, by Moshe
user image
 
@Moshe since you like subtlety with a capital obtuse then no, I don't think I see merlin.
 
27 secs ago, by Moshe
user image
@drachenstern Heh.
@drachenstern - Fit Merlin on the map.
Korea/Vietnam.
 
As I said, a capital Obtuse.
@Moshe uh what?
Let me buy you a map of Korea and Vietnam
 
@drachenstern Uh, what is that then?
That is South Korea, AKA Merlin.
 
4:18 AM
AKA not Vietnam
 
Er, ok
My mistake.
 
and a big mistake at that.
But like I said: obtuse
It's not really clever, but I'm all for you giving a bonus to people who click randomly. It's your app after all.
 
Well, I thought it was clever. I saw merlin the first time I traced it, it would be a shame not to...
 
Yea, I'm climbing up too. Not good.
Well @drachenstern - I have a bajillion apps to work on.
 
4:22 AM
And I need sleep if I'm going to get up an hour earlier.
@Moshe I suppose you rethink your entire scoring response system and consider what all the cases are (this means a long truth table, longer than choices 1 and 2) and consider what they mean.
 
What do you suppose I do with the zero score?
@drachenstern fair enough.
 
anybody have a SD reader they can give me over the internet that will connect to my laptop that I can use sometime in the next fifteen minutes? No? damn.
@mootinator heheh
 
Aha!
@drachenstern take that
 
@drachenstern Yes, but I can only send it through through TiSP or FaceTime.
 
:552924 I wasn't watching all of that. Sorry.
 
4:26 AM
:552930 Well, I do, don't I?
 
I'm off to go find one, there should be at least one in this house.
 
:-D
@drachenstern G'luck.
 
@drachenstern Wait, what?
 
Still lurking till I find one, I believe
 
@drachenstern - Score zero on the next build, you'll get one :P
I leave y'all with this:
Nippon: Game of the Wasted Sunday Afternoon Edition (d**m website deadline)
 
4:28 AM
@Moshe get one what? I can score zero on this build, promise. It'll take time, but I Can.
 
@drachenstern SD card reader. But not the build you have, the next one.
 
@Moshe if you think you can prevent me having a zero score you seriously underestimate scoring.
 
Oh, I know you can do it.
@drachenstern - if(gamecenterUserName == drachentester && score == 0){ alert("Have an SD Card Reader");}
 
I wonder how a video player could have been written so badly it causes my laptop to be ridiculously hot when it's doing nothing in the background.
 
@mootinator Is your laptop an HP?
Anyhoo, I am out.
 
4:31 AM
Nope.
The video player is from Roxio though.
 
@mootinator eh, ok.
Gnite!
> Nippon: Game of the Wasted Sunday Afternoon Edition.
 
> Nippon: Game of the Century Limited Collector's Edition 1 of 3000
I mean, gnite ;)
 
nite
 
4:56 AM
Success! (squared even)
@Moshe you have a nice big fat bug now
repeats every ... single ... time
 
5:18 AM
Wahahaha
 
 
1 hour later…
6:27 AM
Yeah your score should totally be &e0;
like real men do
 
wouldn't e^0 be 1?
 
so um doesn't a websocket allow you to, um, connect to arbitrary IPs and ports using arbitrary protocols?
 
I don't think it lets you do completely arbitrary everything
like, the browser has to understand it, I think
Versus a non-browser client could do things like stream binary with special forms of modulation (a protocol)
 
er, wasn't that pretty much the point? Enable, say, web-based ftp clients?
Actually
 
but browsers generally can understand FTP
 
6:35 AM
Actually
if the browser had to "understand" the messages, wouldn't it pretty much encourage people to use it to circumvent X-Domain restrictions?
 
@badpssockpuppet The point was to pimp out your Node.js server, don't be silly.
 
No, it's my understanding that there is a particular protocol to be used for websockets
you can't just use it for whatever but you can use it to bypass x-domain restrictions, in some way
 
@TimStone Why wouldn't you be able to use Node.js to write an FTP server?
 
@badpssockpuppet You can, Node.js is the jQuery of servers (I watched a thingadongdong on Node the other day and now I really want to play around with it)
 
Dunno, if I wanted to write non-browser-bound programs I might as well choose Python
 
6:43 AM
Anyway, WebSockets is just a thin layer over TCP that you can put whatever sort of delicious toppings you want on.
 
...so it isn't really compatible with raw TCP?
I mean, for my project I just wanted to send some JSON messages over a localhost connection
so I don't need raw sockets really
but if I need to put some kind of protocol on top of TCP I'll have to implement that first
 
@badpssockpuppet I don't think so, no, it's more like an HTTP extension.
Actually no, I shouldn't say that, that's very wrong. >_>
But your server has to speak WebSocket.
 
7:17 AM
morning
 
'ello
 
Jin
morning
 
'Ello to you too @Jin
 
'Ellos all around.
 
7:24 AM
TomWij has paid me the compliment of modifying my script... :)
 
Oh? :P
 
Apparently six comments weren't enough :)
In other news, I worked out that I don't think I can implement @balpha's idea for the updating code if I continue to use gist. Because the url of the script changes for each version :(
 
I dunno, we get by recycling the same six or so jokes in here. People who want more are just greedy. ;)
Ah, GitHub proper!
 
@Tim, yeah, I figured I might have to 'upgrade' to GitHub. Goes looking for migration routes
And @badp, I overtook you... for the moment :)
 
Hahah
You have as many up votes as we do combined. Clearly we need to get a hold of your publicist ;)
 
7:33 AM
@TimStone, I suspect it just means there are more reviewers than mouse-averse chatters :)
 
Jin
i want to change my name to Keith Stone
 
But comment autocomplete!
 
Argghg and George Edison must have tweeted his script or something...
@TimStone True
 
@Benjol Posting it on Meta first probably helped.. :P
 
@TimStone, yeah, big cheat!
 
7:35 AM
@Jin Hahahah, I'm not sure I'd want to be the Keystone Light spokesperson :P
 
Jin
@TimStone but I'd be so smooooth
 
That being said, I'm told that Stone is an awesome last name.
 
@TimStone, I think you should rename the SE mods script to title to "Autocomplete username", and leave the rest in the actual text. Snappier :)
 
@Jin lmao
@Benjol Hm, that's worth consideration. I just went with the names that @RebeccaChernoff picked, so feel free to blame her. ;)
 
@TimStone You won't believe it, but I actually didn't get that the first time I read it :D
 
7:37 AM
Heheh
 
there shall be no blaming me
tis not allowed!
 
WOB(@RebeccaChernoff);
 
I'm sorry, but there's no non-reality-bending way around it. :(
 
WorksOnMyMachine :)
 
@benjol meh, apparently I have ~250 users :P
 
7:39 AM
@badp, you should start including notifications with 'upvote my script' :)
 

« first day (215 days earlier)      last day (4792 days later) »