« first day (1623 days earlier)      last day (3318 days later) » 

12:01 AM
@Danack neato
 
Cool - probably done. Unless I broke everything.
 
I've had a component of mine doing that method wrong for about a year
until today!
"Returns an Imagick object containing the merged image" ooh la la
the sweet smell of accuracy in the... evening
 
12:17 AM
@JohnFlatness For the record, the merge types still seem slightly confusing to me, and I'm not convinced they are all working correctly.
 
@tereško for a brief time I became a SQL wizard
with robes and magic hat
I could do magical, incredible queries
I could do joins like you've never seen
This was because I had a large database of gameplay information for a 2D multiplayer game
And it was a SQLite DB, so SQL was the way to query it and produce useful stats
 
but did you reach 32 joins?
oh, nvm, it's SQLite...
 
nah, I didn't have that many tables
 
12:46 AM
Troll level @Ocramius "2% who use cookies" lol
 
I'm serious, I didn't build any explicit cookie stuff in my apps since AGES
why can't people just use sessions and that's it? Why look for trouble? :P
 
hello , i have a problem
all links and images and files gives me
Failed to load resource: the server responded with a status of 404 (Not Found)
i make sure that path is right
 
@Danack that applies for me for just about every other thing in ImageMagick... they have 9 or 10 options for practically everything and they're only subtly different if at all
for merges I've basically stuck to flatten and it's served me well
 
1:01 AM
@Andrea .. I am getting this urge to express my condolences
 
condolences?
SQL is AWESOME
weird, but AWESOME
declarative queries ftw
SQL is AMAZING
 
it's 3AM
and I have been messing with DB crap for past 4 hours
I am not sure if you are being sarcastic or genuine
 
Hey Andrea I'm happy at least someone here became of the same opinion about sql
 
I don't get these NoSQL kids these days, with their key=>value stores stored entirely in memory...
IN MY DAY, WE CALLED THOSE SCALAR VARIABLES.
AND WE LIKED IT
 
@tereško genuine
@Sara IN MY DAY WE DIDN'T HAVE YOUR FANCY NOSE EQUALS WE JUST USED ARRAYS AND SERIALISE AND WE LIKED IT
 
1:06 AM
Here's some random query from my HEAD^2 work's statistics project pastebin.com/HiuYr2Rn
 
@nikita2206 that looks like something that should be de-normalized =P
 
(no param bindings because at that time postgresql had problems with optimizing selects with binded parameters)
There were lots of different kinds of selects on this data, and also writes. De-normalization would not work there I think
 
two FULL OUTER JOINs, and each one is a subquery with three joins...
it's pretty good but I think it could use more joins
 
@Andrea and in my day we didn't have classes and anything, but just bare memory and primitive types, and we liked it.
 
and in my day we didn't have memory or types
 
1:22 AM
@Andrea yeah, but nobody liked it :-D
 
@bwoebi the 6502 is bliss, probably
 
@Andrea at that time C already existed…
 
:p
 
f*k dat session storage test on travis :D
can we just rm this test? it fails like rand(false, true)
 
I feel like I should just stop replying on the FIG ML...
I feel kinda trolled
 
1:35 AM
@Ocramius is there a way to read this ML without subscribe?
 
oh great, google groups
 
criminy, there are a lot more [PSR-7] Quiz posts than there were before
[[PSR-7] Quiz] Quiz: Q: why are you still sending these messages? A. please stop
 
2:21 AM
One should shoot PSR-7 into space, along with plutonium worth a few gigatons of TNT…
 
That's one way to Express your frustration
(capitalization intentional)
 
2:43 AM
@iansltx Express.js?
 
Yep, that is indeed what I was referencing.
 
3:02 AM
lol :-)
 
 
1 hour later…
4:17 AM
Morning
 
morning
 
Question, when receiving a http response using file_get_contents('php://input'); is there a possibility for a buffer overflow exploit if one were to send an extremely large POST
 
proooooooobably not
 
Ah looks like php_value post_max_size is meant to protect the system from this
 
 
2 hours later…
6:31 AM
I'd like to see non-assoc ternaries…
associativity there is either way the way to hell…
 
 
1 hour later…
7:34 AM
posted on March 27, 2015 by kbironneau

/* by Shadam */

 
Frankly I like the way nesting ternaries "doesn't work". It gives me very good reason to not allow it. =D
 
Moggugh
 
morning. @PeeHaa
 
o/
 
8:09 AM
moin
yay friday
 
well fuck
 
morgening
 
is zend certification is all about php or with zend framework ? @Gordon
 
@underscore there is both certificates. One for PHP. One for ZF. They are just offered by Zend (the company). That's why they are both Zend certificates.
 
is there a room 11 certificate?
2
with a tereško approves stamp on it?
 
8:21 AM
 
So do i need the zend framework knowledge to study for zend php certification ? @Gordon
I guess i don't need the framwork knowledge to study for zend php certification
is that correct ?
 
sigh that's exactly why I think people should stop calling Zend Framework just Zend.
@underscore yes, that is correct.
 
@PaulCrovella hehe
 
good morning!
@PeeHaa better enjoyed that cake yesterday :P
 
HB @PeeHaa !!!
 
8:27 AM
morning all fresh friday morning people
 
Hi! About DB, do you use PDO or mysqli (either procedural or object-oriented)?
 
@Naruto cake, beer and whisky. yeap :)
@CSᵠ tnx ;)
 
I use mysqli_* functions... Should I switch now to PDO?
 
not necessarily, or not really, or yes if you have a reason
 
What do you use @CSᵠ ?
 
8:29 AM
@Basj hamSandwich
 
lol
 
Thanks @PaulCrovella
Of course, I don't use mysql_* which are deprecated.
But I hesitate about switch mysqli_* to PDO...
@PaulCrovella I noticed doing queries is very very verbose if you use prepared statement :
0
Q: Helper function for usual database requests

BasjI initially needed to do simple queries like $sql = 'SELECT * from users WHERE username = "' . $_POST['username'] .'";'; but now I do it with prepared statement, not for efficiency (I only have to to do each query once), but because data that comes from $_POST['username'] can contain escaping ...

Thanks for the downvote ;)
 
@Basj look at the mysqli OO Api, it's still not the prettiest thing on earth, but ~it looks better~ is less verbose(tm).
 
ok I'll look at that
@Rangad why mysqli OO rather than PDO ?
 
8:38 AM
sry for the pings, markdown dialects are killing me right now
 
If you look at the 2 examples here : php.net/manual/fr/mysqli-stmt.num-rows.php
mysqli_* procedural or mysqli OO is exactly the same length
 
this article is a pretty good one explaining the differences, and when to use one over another
4
 
Almost got me ;)
 
@FlorianMargaine haha :) Where did you find these video from ? :)
 
@Basj In the end it's a matter of preference and application structure if you want to use the OO api or the procedual one, the OO one is just more natural to me. Anyway, I would always prefer $stmt->thing over mysqli_stmt_thing($stmt), if not only for typing less with no cost
 
8:43 AM
Just a general question: when you have to do queries, do you copy/paste these 10 lines (prepare, execute, store, ..., free, close prepared statement) ..... Or do you write a helper function that does your query in 1 single line ?
What did you learn about this? (I had no CS course, so I want to take the good habits)
 
@Basj I'm studying at an university and they don't teach us such thing :)
My experience? Writing a wrapper seems "helpful" but I realised that it had limits later on which made me write ugly code over the wrapper
 
@salathe so is "disapproval" a pass or fail sign in this case? :)
 
@salathe I would not call it a good idea. Once he left chat for a long time because of that..
 
8:51 AM
@AlmaDo Yeah... because of one image...
 
Morning
 
I'd like to think that @tereško is in a better place now, and such things won't hurt
 
@salathe no
 
@Fabor \o
 
\0
 
8:53 AM
 
but I would say - if something is not fine for some person - there's no way we should do that ..
 
moin
 
morning, @JoeWatkins
 
@AlmaDo If @tereško asks me to remove that... I'll happily do so. But, I do think you're being over-sensitive for his sake.
 
@salathe ugh..
 
8:55 AM
my issue was with attempting to turn it into a meme (on reddit)
 
I'm not asking to remove. Just remembering the reason - that he was not happy to be "meme-person" here. Anyway, just a side note
 
@AlmaDo that's water under the bridge though, right?
 
being a meme, especially an internet meme, has it's upsides ... such as a bit part in The Simpsons usually ...
 
I'm going to leave the room, and come back in 5 minutes. Hopefully it'll be Friday by then.
 
anyway, @tereško and his straightness would be a good evaluator
 
9:21 AM
@salathe where r you from?
 
Morning all :)
Anyone want to help a guy out :P trying to build a model in the best way possible using a query and turn results into something manageable
 
@JustSteveKing just ask what u want to know and people will take a look at it.. If it's big, you better have a git :P
 
@Naruto I have a SQL fiddle and can stick up a pastebin :)
Here is the SQLFiddle : sqlfiddle.com/#!9/48857
Here is a pastebin of my Model : pastebin.com/FcQUHD4u
What I need to do is : foreach person build up an object/array of all the information from person_field and field. Using safe-name as a key from field and using value as the matching value to the field. Linking through the ID's in field and person_field together. Also matching in the ID for the person in question
 
@Naruto Outer space :)
 
posted on March 27, 2015 by kbironneau

/* by @jesus_bv */

 
9:38 AM
 
@Naruto Any thoughts?I haven't used a normalised database before really
 
does anybody know how to enable passEnv directive in apache
 
@salathe guess you have an awesome view hen every day :D
@JustSteveKing I don't have the exp with that to help you.. I just said that if you post it here someone might be able to help you.. :)
 
hi guys
 
@Naruto Thanks anyway :)
 
9:42 AM
so anybody know about Fatal error: Call to undefined function mysql_connect() error
 
Does anybody have any idea how I can get the required data from a normalised database?
 
this is happening when other employee was messing with mysql on my desk
 
@John Yes you are using a newer version of php where the standard mysql_* has been dropped
 
and he is not able to fix it
 
Or mysql has been uninstalled
 
9:43 AM
I am using PHP Version 5.5.19-1+deb.sury.org~precise+1
mysql is working fine
i checked in sqlyog
its connecting
i m on linux platform
 
Am I right in saying mysql_* got dropped in php 5.5?? Anyone?
 
my apache +mysql+php are working individually
Yes u are right
I read it
but mysqli_connect() is also not working :(
 
Ahh mysqli ? I do not know this driver unfortunately,
 
ohh
but it was working b4(before)
 
What did this other person do?
 
9:49 AM
he is java developer
:(
 
That doesn't narrow it down lol
 
my mysql version is 5.6.14-1+debphp.org~precise+1
haha
 
good mornings
 
Do you have server access
Morning @iroegbu
 
@Fabor UPnP is kind of ironically named, because it's anything but universal. That said, I believe the majority of xbox applications are designed in such a way that they don't need port forwarding most of the time.
But I'm not overly familiar with the nitty gritty of how they work, it may be the case that putting some static port forwards in will help, and it may also be the case that the router is trying to be "too clever" - look to see if there is an Application Layer Gateway (ALG) service you can disable in the router config.
Some routers let you disable it for specific applications and some have this very muddy "disable ALG" setting (which does fuck knows what)
 
9:55 AM
I actually had a good internet day yesterday. Speeds are good but I was getting d/c a lot from xbox live. So I switched to my old crappy bethere router. And I haven't been d/c since. We'll see how it is tonight.
 
What router are you running atm?
 
I opened some additional supposed xbox ports. Though live complained about NAT being set to moderate.
 
Thomson TG585v7 router. (old one)
21 hours ago, by Fabor
Here's my modem, and it's plugged in to this wifi router
^ newest one not currently in use.
I tried opening ports on the TP link but it said the "local IP" field couldn't be empty and I wasn't sure what it should be,
 
I would guess that the majority of "live" services use UDP, you may simply be suffering from lossiness, in which case putting it into a more stable (i.e. slower) DSL mode might help
 
9:58 AM
Hence why I switched back to old.
 
Jan 17 '13 at 15:40, by ircmaxell
I'd tell you a joke about UDP, but you might not get it
 
Programming Dad Joke
 
Can anyone help with an issue I am having with getting data from a normalised database?
 
I'll help you with this advice: close the IDE, go to rebecca.blackfriday, crack open a beer, job's a good'un.
 
lol
 
10:02 AM
@DaveRandom hahaha! I saw that! She is hillarious :') however she does not help with normalised databases :(
 
No, but she will help you to "get down", which is basically the same thing
 
@DaveRandom hahaha! I need to "get working" at the moment unfortunately
 
srsly though @JustSteveKing... generally we consider it good practice to just ask a question rather than asking for someone to help before they even know what they are helping with ;-)
 
@JustSteveKing Yes I do
Basically its my localhost
;)
 
@DaveRandom Basically I have never worked with a normalised database within PHP and am not sure who I can construct my queries and functions to best get any results. I am more than happy to read a long and boring article/tutorial on it should anyone know of any lol!
 
10:07 AM
@JustSteveKing Just write SQL and optionally massage the data in the array you need
That should be all anybody ever needs imo
 
@PeeHaa Would nesting my queries help?
 
Nesting how?
 
No idea I am just trying to figure out how to build it properly lol!
 
You ask about nesting but you have no idea what nesting is? :P
 
I need it to end up like Array([0] => Person => Array( Key => Value, Key => Value))
@PeeHaa No I know what nesting is, I just am not sure if it fits what I need
 
10:09 AM
@JustSteveKing Yes that is the massaging part
@JustSteveKing BTW that is just a single record no need for any nesting
 
@PeeHaa The problem is I have split the info over 3 tables to "normalise" and want to bring it all back to one result, but for many people
 
Do you know how to write sql?
(serious question)
 
@PeeHaa Yes I do :)
But I have never used a normalised database before
 
dunno what that means ... show us, sqlfiddle ...
 
@JustSteveKing Than you don't know sql
Have you ever used JOINs?
 
@PeeHaa Yes quite often
 
Then explain to us what's the difference between a "normalized" database and something else (whatever it is)?
 
CREATE TABLE field ...
 
Yeh that's not the best choice of name
 
10:13 AM
insert some data into the table,and show us what you want to get out
 
Although you probably won't have any issues with it, table names are generally contextually unambiguous and the parser will just deal with it, it would be a column you would have issues with
 
@JoeWatkins Data inserted
@DaveRandom would value_field be a better name?
 
@JustSteveKing then stop freaking out about it being normalized and just write your sql
 
Just something that's not a reserved word would be a good start. But be descriptive, I somehow doubt that field is a good name regardless of that, it doesn't really explain what the data within the table is (what the "fields" are associated with).
btw... what does "normalised" even mean? Doesn't seem like it's a specific thing, just sounds like something a DBA would say to make it sound as if they do more work than they actually do...
 
5 mins ago, by PeeHaa
Then explain to us what's the difference between a "normalized" database and something else (whatever it is)?
@DaveRandom It's with a z btw :P
 
10:19 AM
> Database normalization is the process of organizing the attributes and tables of a relational database to minimize data redundancy. (Wikipedia)
So.. still highly subjective and basically meaningless
 
From what I understand it is where data is split over multiple tables. This way in my example I can have multiple instances of "occupation" for one person - say they had 3 jobs.
 
That's just a description of any database
 
@PeeHaa I am english I spell these works with a S lol
 
It is pretty clear what a normalized database is imo. It's just that in the context how to get data is pretty much useless
 
otherwise it would just be a table
 
10:20 AM
@PeeHaa Chris is british :P
 
1) You see data 2) You query data 3)? 4) ?
@FlorianMargaine He is????? ;) So that is why he was utterly drunk last time I saw him ;)
<3 @DaveRandom
 
@PeeHaa Maybe I am not too sure what joins to use? perhaps I am being scared off with the idea of the db being "normalizzzzzzzzed"
 
9 mins ago, by JustSteveKing
@PeeHaa Yes quite often
 
@DaveRandom normalizing is the opposite of aggregating anyway
 
If you have used them quite often you would not say something like "Maybe I am not too sure what joins to use"
 
10:22 AM
@PeeHaa I have used joins very often, but not in this way - I guess I am getting confused at where my data actually lives
 
joins have a specific purpose it's not some magic sauce you can sprinkle over your sql stetament for the heck of it
@JustSteveKing What are joins?
 
hmmm magic sauce
I want it
 
@PeeHaa Disagree, I think that the definition of "data redundancy" is subjective. The way I would design/redesign a schema may not be the same way you would do it, it implies there's a single "right way" to do it, which is not only wrong but also a harmful attitude. IMHO, YMMV, interest rates may go down as well as up, etc etc
 
@PeeHaa I know that, I am just unsure of how to construct the query to get a singular record lining up the way i want it
 
... not yours, @PeeHaa
 
10:23 AM
lol ^
 
@FlorianMargaine it's usually just mixed up ketchup and thousand islands dressing
 
@DaveRandom That's why we have different normalization forms
 
right: NFC, NFD, NFKC, and NFKD
 
hmmmm KFC
 
Damn I want a chickenburger
 
10:25 AM
@PeeHaa Yeh that works fine for stuff like unicode (scalar, unambiguous), not for a database schema (vector, optimisable in a 1000 different ways depending on how the application is using the data)
 
@DaveRandom That's why we can denormalize :)
 
morning
 
o/ @nikita2206
 
> The license […] will terminate […] for anyone that [claims] that any right in any patent claim of Facebook is invalid or unenforceable.
 
10:27 AM
@PeeHaa where we join data from different tables onto the one returned result.
 
I'm dubious of the generalised usefulness of this practice. Seems more like a teaching tool than a thing with rigidly defined real-world practical applications
 
@JustSteveKing you want to get a person and all related person_fields? Then it's the subject for two queries. It can be done with joins but you will have redundancy in the result set then.
 
Sorry was away getting food lol
 
@PaulCrovella \o/
@DaveRandom Actually you do just that when setting up the database
 
@nikita2206 so get the id and information from person, then get all information from person_field and join field onto it so we have a value
 
10:29 AM
@PeeHaa True, but I do it subjectively. When it comes to complex data structures, you and I may make different decisions about how to best "flatten" them into a series of tabular structures. And neither of use would necessarily be wrong.
E_TOO_MUCH_PHILOSOPHY_FOR_FRIDAY
 
:)
Well the important thing is that I am always right so there is that @DaveRandom :P
 
@JustSteveKing generally the approach is like this: SELECT * FROM A WHERE A-related-predicate, and then SELECT B.* FROM A INNER JOIN B WHERE A-related-predicate (where A has many B's). Try to extrapolate it to your use case
 
@DaveRandom like deciding on kickin' in the front seat or kickin' in the back seat - which seat can I take?
 
@nikita2206 Thanks for the help :) Alot more useful that just grilling me on asking if I know what this or that is
 
@JustSteveKing the way you asked nobody could understand what you mean. next time just write a db structure and what you want to get as a result, or better experiment and get it all yourself, here's a good read about norm forms btw bkent.net/Doc/simple5.htm
 
10:35 AM
@nikita2206 Perhaps I was getting confused as to what I needed, and that came across as a badly asked question? I have tried multiple ways but failed lol. Thanks for the link - will read now
 
@PaulCrovella Precisely. She didn't even attempt to qualify which variety of cereal one gotta have.
 
@PeeHaa Ahh true, sometimes I forget that you live in a black and white world. Being that you are a Zebra and everything.
@FlorianMargaine I prefer me a bowl of Special K
 
the thing for women?
well... if that's, uh, your thing
 
Because apparently I am a middle-aged middle-class woman.
 
10:37 AM
@FlorianMargaine grown up tip: give it a splash of kahlua
 
^ that sounds disgusting
 
just a wee little bit. it's a wonderful way to bring more alcohol to the breakfast table
 
Nah, just replace the OJ with a pint
 
10:40 AM
Cereal with bear instead of milk? Mmh sounds delicious
 
I have a friend who used to do that, I cannot even begin to explain it
Although I suppose beer is technically a cereal product
 
grumble
why would people DDoS github :(
workflow... crippled
 
@nikita2206 I managed to get what I needed from your help thank you
 
Distributed Denial of Source
 
@Leigh doesn't need to be intentional: any massive deployment pulling code could do that, heh
 
10:42 AM
@Ocramius Unlikely considering their infrastructure
 
Hmm...
 
Morning @Ocramius
 
I found code (written by me) using `uasort($arr, function () { return rand(-1, 1); });`. I feel like stabbing myself. #php
 
@nikita2206 do you always eat bear with your cereal? :P
 
@Naruto you know that i'm russian right?
 
10:54 AM
@Naruto Sounds like it could get grizzly
 
Sounds more like a Finnish breakfast than Russian
 
@DaveRandom :D
You are forgiven for now
 
@nikita2206 No I did not, is that a regular thing then? :P
@DaveRandom Ooooo :P
 

« first day (1623 days earlier)      last day (3318 days later) »