« first day (2083 days earlier)      last day (2862 days later) » 

9:00 PM
@FlorianMargaine $questionsWithinLast24Hours means 24 hours ago?
 
@Shafizadeh yes
 
I can't help but wonder, how can one have so many questions?
 
@FélixGagnon-Grenier :-) you aren't a good asker then
@FlorianMargaine ok good, thx
 
this definitely must be it...
 
Surely it takes more than 24 hours to research a topic before you can ask a question?
 
9:01 PM
@NikiC that's not wondering ..! asking is an ability ;-)
 
then you don't investigate the root cause of problems
 
@NikiC Look, when you search about something, usually you find the answer. but when you ask about something, you both find the answer and learn some extra things
 
I'm pretty sure that we're the subjects of a long term trolling project.
6
 
9:05 PM
not really sure what I am saying
 
@NikiC yield from was hiding duplicate keys from me :-P The bug report was because of this gist: gist.github.com/assertchris/6dd66348650bf3a469cea07f5a0b2ece
The reason for the failure is not necessarily obvious... but the current behavior is certainly the correct one...
 
posted on June 29, 2016

New Cyanide and Happiness Comic

 
9:21 PM
.... lol?
you actually used named parameters for column name, and not at the only relevant place?
 
nothing :)
 
also you miss a colon before unix_timestamp()
 
:) ..! correct.
that actually was just a demo (not tested)
 
@FélixGagnon-Grenier btw what do you mean? are you talking about this part?
INSERT INTO QandA(id, title, content, tags, date_time)
SELECT NULL, :title, :content, :tags, unix_timestamp()
 
9:23 PM
"SELECT NULL" why?
 
@Trowski I know and it's annoying
 
@AdilIlhan that's for ID, it is auto inceament
 
The behavior is correct, but counter-intuitive :-(
 
@Shafizadeh and again why?
if you don't write "id" then you don't need it
 
9:24 PM
if you need a null data then you can write only "null"
 
@AdilIlhan yes what you said is possible ..! Actually I use to it :-) (as you know "use to" means "habit")
 
select null isn't mandatory
 
meh. I don't even...
 
bad habit
 
@AdilIlhan well I like it ;-)
 
9:26 PM
i like beer. but it is a bad habit
 
@AdilIlhan you are lucky .. you can drunk but that's just a bad habit for you. But that is completely forbidden for me (by my religion) ..!
 
afk
 
so, bad habits are bad. don't use select null
how we came to religion from select null? i didn't get it, though
 
9:43 PM
@Shafizadeh INSERT INTO .. SELECT .. is supposed to be used between tables
not for just inserting values from PHP directly
basically, you are abusing SQL :P
 
@TheCodesee you're not echoing anything in the 2nd one
 
@tereško You know, I searched "how can I check before inserting" and then I found this approach INSERT INTO .. SELECT ..
@AdilIlhan ok :-)
 
@AdilIlhan I am actually abusing similar approach in my data mappers
because I tend to use same method - store() for both updating and creating an entry
 
@tereško how about performance?
 
.. though I am not usiong INSERT INTO .. SELECT but just INSERT INTO .... ON DUPLICATE KEY UPDATE ..
@AdilIlhan in what context?
 
9:52 PM
do you have high traffic?
"ON DUPLICATE KEY UPDATE" is ok, i think
"INSERT INTO .. SELECT " might impact to db performance under the high web traffic
 
@AdilIlhan insert vague hand motion .. it actually "depends"
 
Hello Could you help me? What is my error in this code
$sql = "SELECT id, sender, message, date, status FROM messages WHERE receiver = '{$id}' GROUP BY sender ORDER BY id DESC LIMIT 10";
 
@tereško it is just a guess. i've never tried its performance
 
@Can1 step 1: learn to use prepared statements
 
@tereško I'm trying to implement a checking-before-inserting system like SO (it lets you to ask only 1 question per 90 minutes, 6 questions per day, 50 question per month and etc ..). I handle it like this:
INSERT INTO QandA(id, title, content, tags, date_time, user_id)
SELECT NULL, :title, :content, :tags, unix_timestamp(), :id
FROM QandA
WHERE user_id = :id
   AND NOT EXISTS (
        SELECT COUNT(CASE WHEN date_time > now() - INTERVAL 90 MINUTE THEN 1 ELSE NULL END) AS rowsInLast90Min
             , COUNT(CASE WHEN date_time > now() - INTERVAL 1 DAY     THEN 1 ELSE NULL END) AS rowsInLastDay
             , COUNT(CASE WHEN date_time > now() - INTERVAL 1 MONTH   THEN 1 ELSE NULL END) AS rowsInLastMonth
Is that fine?
 
9:55 PM
ugh
 
@tereško "ugh" means a bad feeling about something?
 
it's a "general sound of dismay"
I just finished a bottle of wine
 
:-) So don't scare .. ;-)
 
@tereško is red wine?
 
shiraz
 
9:57 PM
lol @ flag
 
^ that
 
haha
 
@tereško oh .. shiraz of Iran?
 
@Shafizadeh since wine is halal haram, you have lost the claim on it :P
 
:-)
@tereško "halal" and "haram" are English words?
 
9:59 PM
nope
 
well do you know Persian?
 
they are arabic words
 
no, but I know few Islamic concepts, since I am am an atheists
 
@tereško good ...
@AdilIlhan yes, both Arabic and Persian
 
in turkish, we have haram and helal. we don't have halal in turkish
 
10:01 PM
atheists as a group need to have "above average" understanding in religions, because we are often challenged to defend our positions
I have read bible, book of law, parts of bhagavad gita and am currently making my way through koran
 
@tereško Great .. I was looking for a guy like you. I need to ask a question: Based on your "above average" understanding in religions, which one is the best in your opinion? (so far)
 
probably daoism (you can sum it up as "shit happens")
 
what do you mean "shit happens" ?
 
which wine is your favorite so far? ;)
 
@Shafizadeh from the ones that I have actually read thoroughly, I was fascinated by thelemite
 
10:07 PM
Anybody here know Klein.php? Having a problem with route matching
 
@Shafizadeh it's this thing: en.wikipedia.org/wiki/The_Book_of_the_Law
 
@tereško why?
@tereško I'll take a look at it
@tereško Just did you read about Islam? didn't you like it?
 
@Shafizadeh because it was intended as the religion of "the adversary" (shaitan), but the ideas it contains are interestin. For example, their main law is "do what thou wilt" (it means in old english "do what you want")
and it is based on Egyptian deities
@Shafizadeh islam seem very ... emmm ... imperial
 
@tereško "do what you want" .. Hah, how it is interesting for you? That's the rule of forest
 
@Shafizadeh I said I found it to be fascination. I did not say I agree with it. I actually am completely opposed to the philosophy of thelema. But that does not stop me from appreciating it.
you could say that it is the religion of politics
keep in mind that it was designed to be the "religion of the adversary"
 
10:20 PM
@tereško :-) keep appreciating
 
@Shafizadeh morality is relative. You have to keep testing it against various ideas.
 
@tereško well I cannot understand this: "religion of the adversary". Is that means "religion is our enemy"?
 
yes and no
 
@tereško true
 
@Shafizadeh the better name would be "religion of the god's enemy"
 
10:23 PM
@tereško please rephrase that sentence by using the word of "is" into it.
 
hmm
"religion that worships something, that is an enemy of god"
 
so... satanism?
 
yes and no
 
@tereško what about when something = god ?
 
(I don't understand either)
or is it "God is the omnipresent Good, we worship the omnipresent Bad"?
 
10:26 PM
@FlorianMargaine yes and no. Modern western satanism is just atheists claiming tax-credits to dress up in funny clothes
 
hah
 
@FlorianMargaine are you familiar with the concept of Demiurge? // cc @Shafizadeh
 
I was not
 
yes (somewhat)
 
oh my godness.. both of you were talking about alcohol when i leaved the room
current subject is satanism
 
10:30 PM
I ma about to finish my lat glass of wine
 
you two are too fast :)
 
when you say "satanism" you are referring to one of 3 thing (in general):
- mainstream media shit (kid pretending to be worshiping devil to have sex the tattooed girls/boys)
- people who genuinely believe that "god/allah/jahve" is the evil one and the good god lost
- atheist claiming tax credits
*sex with
anyway, religions are fun =]
 
I grew up christian and this Christian comedian Mike Warnke used to say he was formerly a satanic High Priest. He lied. He said things like they'd lure you in with orgies, but then have human sacrifices
The funny thing is, he was called out by a Christian magazine who did some investigative journalism. They spent a couple years looking into it.
 
most developers are culturally-christians or culturally-muslims or culturally-hindu
 
Wes
 
10:42 PM
we have too much exposure to the internet to rigidly adhere to an ancient religion's tenets
 
Wes
nobody will give a fuck of this, right?
 
@Wes you can always unsubscribe
 
PHP 7 has a SRU exception for Ubuntu now [i.e. we'll probably get full updates of all fixes every 3-4 months, even on LTS]
 
^ cool (wont change anyones under 12 opinion on Ubuntu, but stil lcool)
 
Wes
@tereško from what? from the world? you can't avoid using sites like google, youtube, sadly
 
10:46 PM
@Wes there are extension to block specific channels on youtube and your recommendation are based on your view-history
 
Wes
it's an ad
 
basically, it's your own fault
uBlock ?
 
Wes
i can't block it
 
also, ads are always louder, by design
 
Wes
i basically see this ad only right now. guess what it is about? sports bets
they must die in the worst conceivable way
 
10:50 PM
would youtube.com/red be an option ?
 
Wes
Italy Not yet available here
 
:/
 
urgh a friend just did a factory reset when asked to reset her wireless modem
 
Wes
fucking ad. was sleeping. made me jump like a nuclear explosion - without the destruction - happened a meter from me. how can one upload a video with audio twice as high and pass unnoticed?
 
your life seem really hard, man :P
 
10:55 PM
@Ekin try wrapping said friend in bubblewrap and rolling down the hill
 
heh well, she's in peru, that's gonna be harder than making her setup the modem properly
so I'll just go get some more bourbon instead.
 
Wes
@FélixGagnon-Grenier i rage about everything easily. this why i drink a lot. it's for balance
 
heh. yeah, alcohol really helps balancing things :p
speaking of which, the sancerre bottle must be cold by now
 
11:51 PM
Whats the policy about posting job offers in this room?
 

« first day (2083 days earlier)      last day (2862 days later) »