« first day (1288 days earlier)      last day (3886 days later) » 

19:03
On a positive note, in the course of slowly writing the answer... I found a bug in PHP. :)
That's a strange kind of positive.
@salathe I'm finding it increasingly hard not to find bugs in PHP :/
@NikiC doesn't find bugs in PHP; bugs in PHP find @NikiC
19:32
this is so terrible, I think I will have to download this series: youtube.com/watch?v=2Cg3alsmisw
How do they even get the budget?
^ do you think they're the only idiots?
@BenjaminGruenbaum Press Ctrl+Alt+Backspace in KDE.. you won't believe..
 
1 hour later…
20:55
morning
Noooooo
yes
It was so quiet here :'-(
it's 1:00 AM here
It's only 23h here
20:57
@AlmaDo migrate to a better tz.
Damnit I just cleared my inbox this evening and now I am already greeted by a full mailbox :(
@AlmaDo yeah, but that should go back to 'unlocked', it's just 'restart x'
@bwoebi Agreed. @AlmaDo your timezone sucks
@PeeHaa Shouldn't sign up to so many spammy websites then :)
MOstly github :)
And recruiters
WTF it's saturday night
20:59
Yeah
I got some disaronno
Not as nice without a mixer :(
Isn't that stuff sweet as hell?
Yeah.
Like almonds
21:14
@Fabien s/without a mixer//
:p it's not for me
I'm just sitting back with my ice cold bottle of Hoegaarden with a slice of lemon
wow hoegaarden. I thought you people only drank piss
Unfortunately, most of us do, however I am not most of us :-P
Do you like Stella? :)
21:20
@DaveRandom `:-)
@Fabien hehehe I would hit drink that
I really do not enjoy Stella, however I have not had a proper Stella for a long time, I might enjoy one that was not "brewed under license in the UK"
I don't drink much beer. Or alcohol for that matter. Unsure what nice beer is.
I really like warsteiner
I like a wheat beer, and I like lightweight ales
@PeeHaa :\
@BenjaminGruenbaum yet in the same time "security bug" :p
21:25
Hi guys! Anyone familiar with Eloquent? I'm a newbie & trying to troubleshoot a table relationship
I'm familiar with Elephants, if that helps?
(I'm also a little drunk)
@DaveRandom Hmmm...I don't know...I think that might be a bit different ;)
@DaveRandom Oh well then they're the same :)
Oh right OK, well in that case I think the problem is that you pulled the long bendy bit on the front when you should have pulled the shorter bendier bit on the back
@DaveRandom OHHH!!!! Makes total sense now!!!
21:27
McCoys Flame Grilled Steak is so tasty!
Clearly I'm drunk too
;)
they never sleep. that's why they're useless :p
@daviesgeek I'm actually not at all familiar with Eloquent but I'd be prepared to provide rubber duck/idiot check services if you're interested
@DaveRandom Sweet, I'll be sure to take you up on that offer :D
21:29
yay
For anyone else ;)…I have a page & a template table. I
ugggh
I hate it when I do that
then don't do it
lol
"Doctor! Doctor! It hurts when I do this!"
"Well, stop doing it then"
just say: f*ck you guys, I'm going home! That's the formula of success
I have a page & a template table. I have a relationship defined such that one page has one template & one template has many pages. Problem is that the query being executed is searching for the page id in the template column
@AlmaDo oh ok i
21:30
next
@daviesgeek eeeeeeeeew laravel
@PeeHaa HEY!!!
What's wrong with Laravel?
@PeeHaa oh, so you have horrible childhood memories about that? :D
@DaveRandom You are the bestestest rubber ducky I have ever known FWIW
In the most gay way possible :)
21:31
@daviesgeek it sounds like you need a page_templates table
ehm.. it's hard to get any meaningful from room11 when it's 2 AM
as in a relational table that just has pageid/templateid
@DaveRandom I shouldn't. the page table directly references a template id
It's not even 12 man
:)
21:32
@PeeHaa you're just slacker
@DaveRandom A pivot table? I shouldn't need that
@daviesgeek Oh, then I missed the point
@daviesgeek we're not generic-framework lovers in here :)
I'm an Uzi lover
@daviesgeek It's currentl the worst thing out there :)
21:33
@PeeHaa I do not take complements unless they are presented as man-love requests
@DaveRandom really? you're bad ass (:
@PeeHaa Is that an opinion or do you have some concrete evidence?
@Fabien Ah ok…so what do you guys like?
Statics are the death of testability
There: proof
21:35
Have you tried Laravel?
They make look like the death of testability, but actually it's a Facade
Have you tried poking your eyes with scissors?
Yah @DaveRandom
Exactly
@daviesgeek Every site usually requires a framework, but the framework is custom built for that site. That's what's preferred.
21:36
lulz
He totally fell for that @DaveRandom
Help me, I can't stop, it's turning into a real problem
@Fabien ok. to each is own
But more serious. What is the question?
@PeeHaa In my defense, I'm new to Laravel, and testing, etc, so I'm still learning…
@daviesgeek Simply put why shoehorn a site into a pre built Framework instead of building something to give that site exactly what it needs.
21:37
@Fabien Of course, in the real world, we are all well aware that this simply does not happen
@Fabien I'd disagree, but that's your choice not mine
FTR I am ignoring the argument for forced coding,
Hey that's not how you defend your tool. You should be shouting and me and tell me I am a fucking idiot! THAT'S how you discuss things on the web
@DaveRandom Aye. Time is a factor.
I'd rather have a step stool to stand on to start rather than starting on the floor.
21:37
People do have a tendency in this room to get all upity about this but rarely does it get pointed out that we are aware that what we usually suggest is completely impractical
@PeeHaa Haha, I don't like to do that. There was a time :) there was a time...
@daviesgeek the case for the generic framework is to be able to smash out sites quickly. So it is needs dependant.
tone of voice doesn't carry well over the internet/chat
THAT´S WHY THE CAPSLOCK WAS INVENTED
21:38
@Fabien it what?
But really did I miss the question?
@PeeHaa NO IT WASN"T!!!!!
@PeeHaa Yah, I'm trying to troubleshoot a model relationship
BOLD ITALIC CAPS LOCK IS THE ONLY WAY TO COMMUNICATE ON TEH INTARNETZ
@DaveRandom NO IT'S NOT!!!
you've forgotten underline
21:39
I LIKE THE VIBE i AM GETTING HERE
@AlmaDo You can't do that in chat?
Chat won't do it
so what?
@DaveRandom :(
I'LL STRIKE THROUGH FOR MOAR EMPHASIS
21:40
As I read it and think I understand it it is a matter of a one to many relationship?
@PeeHaa Yes
@AlmaDo that's not nice of you
umm.. ok
@PeeHaa Errr.... that's what your mum said last night?
21:41
^ that's not nice of you :p
I dunno ask your mom. I heard they both had good times last night
Extra F for Fabien
@PeeHaa I have a page that has one template. The template can have many pages. When I run the query, it looks like it's trying to select the page id from the template table
gdi imgur, Y U NO WRK?!?!?!?!?
@daviesgeek What does the query look like?
21:42
> net::ERR_NAME_NOT_RESOLVED
Only for imgur
and only about 80% of the time
wtf
Works for me
@PeeHaa 'query' => string 'select * from template` where template.id in (?)' (length=53)`
@DaveRandom and yes, you can use underline here :p
God damn it now I'm listening to phil collins
@daviesgeek ``
21:43
Phil Collins AKA waiting 5 minutes for a drum intro
@AlmaDo orly?
@PeeHaa OHH right
and the binding there is 19 and it should be 1
21:44
@Fabien Your point is?
Well pass 1 instead of 19?
It's a long 5 minutes for me to hold a drum pose
@PeeHaa that's the problem. This is Eloquent.
Isn't Eloquent just a dbal?
No it's an ORM
21:45
Ah right. That thing preaches AR
Fluent is the DB stuff
WHat do your classes look like?
1
Q: Laravel eloquent - One to many relationships

AllisterI have just got started with laravel v3 and am trying to wrap my head around eloquent's One-To-Many relationships by creating a blog, I have posts that have a many to one relationship with categories (Each Post is linked to a category). I have the following tables with the following fields: pos...

> ♬ I've been waiting for this moment the break down for all my life ♬
lol
Shiiiiiiiiiiiiiiiiiit I should really focus now while securing my ssh connection before I lock myself out (as usual)
21:47
lol
class Template extends \Eloquent {

  protected $table = 'template';

  public function pages() {
    return $this->belongsToMany('\Cms\Page', 'template');
  }

}
please stop abusing ActiveRecord pattern
@daviesgeek has_many
class Page extends \Eloquent{

  protected $table = 'page';

  public function template() {
    return $this->hasOne('\Cms\Template', 'id');
  }
every time you notice that you need your AR to do JOINs, just stop and ditch the ORM at least for that part of application
21:49
@DaveRandom so your tech caps is
:D
@PeeHaa hasMany doesn't define it right. A page has one template, and a template can belong to any number of pages, but a template does not "have" pages
Apparently my tech caps is image not found
Fix your imgur
Must be the uk pr0n filter
21:50
Wait a minute, restarting Chrome
@tereško I just saw php code that does ActiveRecord and actually makes a different DB request whenever you fetch different objects rather than deferring all requests until one of the objects is actually required, so $a = getObj(); $b = getOtherObj(); $c = getThirdObj(); would run three queries, is that common in PHP?
@BenjaminGruenbaum it's common in bad implementation of AR in all the languages
That seems to have fixed it
Start by going back to my Stella imgur earlier.
Oh I have eventually seen all of them by hitting refresh a few times
21:52
then again , I am not even sure that you could call it a "bad implementation"
Wonder what's up with it.
btw, really not sure what the crack is with that Stella one, no way girls like that drink Stella
She's the bartender.
They don't have any wives to beat the crap out of, for one
@tereško it seems like a really common pitfall, a lot easier to fall into even than "select n+1". I guess the problem is really the fact activerecord abstracts the wrong thing, but no reason to preach to the choir.
21:54
heh. Stella was good to me as a kid.
Drinking beer wasn't for taste though
Well I am extremely pleased to report that after basically 2 solid days of work on it, my HDD that died that contained all of my music (~490GB) has given all of it back to me except for 38MB
Needless to say, I am pretty pleased about that
Oh I already said I was pleased
But I needn't have
How'd you dot he recovery?
Also what did we learn about backing up important stuff? :)
I eventually dismantled the case (external HDD) and cold-soldered a SATA cable on to the terminals on the actual HDD unit
(the USB controller was the biggest problem, apparently)
@Fabien I am poor and I have a lot of data
Even poorer now, I just ordered a £400 RAID controller
> Server refused our key
grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
21:59
1tb internal is like £50
annoyingly, I cannot now afford to buy any disks, and I do not have a chassis to hold them even if I could
external £70
@Fabien You do not comprehend how much I cannot afford this, technically MBNA own that RAID controller
Do a bit of street-corner work.
I tried, your mum keeps chasing me off her turf I don't have the time
Honestly, it's like a disease
22:06
boo
aaaaargh!
@DaveRandom heh. how much of the 490 is music?
Pretty much all of it. A lot of it you would never listen to, a lot of it is terrible
72GB is John Peel sessions
(apparently, I'm really not sure how it got that big)
Is computing log-base-2(x^150) resource intensive?
Obviously, being that it's John Peel, a substantial portion of that is terrible
22:14
when done in a for loop 15 times
Disabling memory swapping to disk has a significant performance gain (at least on OS X as long as you quit your programs when memory pressure (the kernel compresses memory on OS X) is high).
That's a lot of music. I have about 500gb of media myself but it's mostly video. No porn either.
relatively speaking
@Fabien Oh I have 19TB of video
This is the reason it's difficult for me to do sane backups on a limited budget
@DaveRandom Whuuut. There's that many cheesy detective series out there?
22:16
I have a morbid fear of the delete button
eHorder.
Basically yes
I bet that'll become a real condition one day.
This is also the reason I just bought a 24 channel RAID controller. I already own 5 2TB drives, I can construct a RAID 5 array from them without losing any data (I think) and gradually build up the array to accommodate all my existing data, get a hot spare in and it should be fairly fault tolerant and scalable for a few years at least
@bwoebi also, assuming you have an SSD, swap is murder.
22:20
Is computing log(x^150) resource intensive when done in a for-loop relatively speaking?
@KevinDuke you know log and ^ are inverse operations right?
@BenjaminGruenbaum when I have a SSD I don't notice swap. But it'll kill the SSD sometime then…
That's just computing 150*log(x)...
@DaveRandom Did you see that EVHs house build thread I linked the other day?
@Fabien I don't think so
22:21
@DaveRandom hehe
@bwoebi disable it like right now :P It reduces the run time of SSDs drastically :)
yesterday, by Fabien
@DaveRandom As a handy-man/house renovator extraordinaire ... seen EVH's House Build Thread on Overclockers.co.uk?
@Benjamin Yes but I'm actually computing log base of 2
@KevinDuke you should really go over the definition of log, the base of the log is rather irrelevant to that formula.
@BenjaminGruenbaum I've disabled it on both computers… once SSD once HDD, both 16 GB RAM
22:24
I need moar ram in my computer :D
why?
@PeeHaa figured it out
@daviesgeek PEBKAC?
@AlmaDo I need to run moar VMs, and I don't want slow downs.
the page belongs to the template. Not the other way around
@PeeHaa ?
22:25
Also, faster compile and build times.
@PeeHaa Oh...yes
@daviesgeek That sounds odd
@daviesgeek :)
it is at first, but think about it & it will make sense
Nope still odd
22:44
May I ask about ruby/rails here?
Only to report a vulnerability in it
We lose @DaveRandom to a house building thread?
lol looks like it. He either passed out or is working on his house
@Fabien I gotta say, that guy did a lot of stuff I wouldn't do
Doesn't have your knowledge but still a pretty cool build.
22:49
And "the upstairs Cat6 outlets are upside down because they are fed from underneath" would drive me absolutely crazy for ever more
@Fabien Meh, I don't know that much, I just know what I want
Are your forming a super reply of all the things he should change and why?
I do have something of a competence deficiency in many areas, and a patience deficiency in general
@Fabien No, he knows what he wants as well, there's no point in arguing the toss over shit like that
I would like to know where he got the money from though...
Probably mentions costs somewhere. But he does a lot of the work himself.
Cheaper than buying the equivalent I imagine.
building it all himself
Financially that's probably true (not sure by how much, though)
However, time is not free
And doing something like that probably takes at least as long as the project off your life again
Aye. If I was going to build a house i'd build a secret room with a trampoline floor or a hammock floor. The ceiling would be a giant monitor. Speakers all around and no lights.
A very small snug room
22:56
god damn it now I want to spend £600 on a fucking case
@Fabien A trampoline floor would need a pretty high ceiling
@DaveRandom Less time fixing the house more time doing outsource work = case.
@DaveRandom Very high ceiling.
23:08
i have a php to mysql question if anyone is alive
it's 3 AM, but time is irrelevant when you're in room11
i have a list of countries that have a rank at the end
Brazil is in country and 6 is in row rank
and in my page i want it to detect if Brazil to display the rank of 6
would i have to use a multi dem array for this?
23:27
Nothing relaxes me after a long day at work like having a glass of wine and reading through some base64 encoded hash values. — Abe Miessler Apr 22 at 17:01
MORNING
MONRING
Today I started to believe in God.
Not.
What's up fellow php'ers?
What time do you call this?
23:42
I need a password management tool which works over the web. Any suggestions?
Any of you guys know how the Ask.fm registration works?
It goes from signup to register...
@PeeHaa Lastpass?
@Fabien What protocols does it support?
or passpack might be better.
@Fabien Sunday morning? Beer after party?
23:46
@PeeHaa Check out the blog for more of a personal feel to the company
passpack seems to be hosted @ 3rd party
What about hosting your own?
Does passpack support that?
Oh no. I just mean something you can host yourself.
Yeah that's what I am looking for :)
23:52
No idea then. Try when the big wigs are on :)
181
A: How can I create a password that says "SALT ME!" when hashed?

Tom LeekThe output of MD5 is binary: a sequence of 128 bits, commonly encoded as 16 bytes (technically, 16 octets, but let's use the common convention of bytes being octets). Humans don't read bits or bytes. They read characters. There are numerous code pages which tell how to encode characters as bytes...


« first day (1288 days earlier)      last day (3886 days later) »