« first day (1799 days earlier)      last day (3375 days later) » 
00:00 - 17:0017:00 - 00:00

Anonymous
00:00
@LeviMorrison @tereško Its php
gimp's corourpicker says "node"
@LeviMorrison That wouldn't surprise me. An anecdote that I think might be true is that people start programming on equipment that they have available to make stuff so show off to their peers. For 'kids' today that means making apps that run on phones.
@Danack That would or wouldn't surprise you? :D
@Woodrow 'which somecommand' reports where something is installed to, if it is installed.
typos....
So yes, it appears to be checking if ffmpeg is installed and runnable.
Interesting - appreciate the info
00:10
Also, the number of technologies that someone needs to learn to make anything cool running on a webserver is a big barrier to entry. Having to learn PHP, SQL, HTML/CSS all at once to make even a basic server based application is a challenge. For people developing stuff on phones, they only need to learn one language to be able to make something cool.
I just released v1.0 of hermes :-) github.com/ralt/hermes cc @DaveRandom @PeeHaa
00:35
@Danack none of these languages is particularly suited for phones, except java… which is very low in that graph.
I wasn't talking about that graph....which is both badly drawn and a poor use of statistics to begin with.
@LeviMorrison that's a very misleading growth, because some of these languages are only recent. In 2005, at start of the graph a lot of PHP jobs existed, but was nodejs even a thing back then?
especially as it shows percentage growth…
Absolute numbers would be much more appreciated.
@LeviMorrison the most interesting line here is erlang…
the other lines all are meaningless
@bwoebi Agreed
hm.. I moved ffmpeg.exe to the same directory as the php file with pastebin.com/M1nZBDGw, but 'which ffmpeg' is still false - any ideas?
Do we look like we'd use php under Windows? :-D
00:45
oh lol, I'll try some files in the ffmpeg linux package
A question I'm kind of ashamed I don't already know the answer to... best way to merge two remote branches on github? any tips?
my local is a nice, feature-branch\squash-committed thing, and I made remote branches for each dev, now I want to merge 'my' origin/dev-me to origin/dev ....but I want it to stay pretty :)
@kevinard so… checkout origin/dev then?
or is that then some detached HEAD state?
@bwoebi yeah, that's the way I (thought i) knew.... seems like that would muck things up a little with so many devs on it...
@kevinard well… it's not possible to merge and push in a transaction.
eh.... I think i'll just let the PM do it. He has the dev branches on his local already :)
00:51
hehe
He's messing up my stats not responding to my pull requests, though :( lol
@kevinard never merge… always rebase branches. Then the commit hash changes :-D
is that how this happens, or no? imgur.com/jgjxdYO
@Danack I'm talking about rebasing onto master, not the reverse. (basically rebasing and then a fast-forward merge)
@kevinard that's just two trees
00:59
I got that after squashing to my remote-tracking branch... normal or bad?
not sure from just the screenshot… usually not visualizing git branches.
I pulled a feature branch from dev-kevin (my local tracker for origin/dev-kevin). Did a ton of work on the feature, switched to dev-kevin, merged it into the tree. Committed a squash commit so all the in-the-middle commits wouldn't be on the tracking branch, then pushed dev-kevin to origin/dev-kevin...
after I merged the feature into the tracker, that's when the feature branch ended up just dangling there.
(that's the branch I was originally asking about, btw. merging origin/dev-kevin with origin/dev
 
4 hours later…
05:24
Difference between single and double quotes in php?
variables are interpolated in double quotes but not in single
Given $a = "World";
echo "Hello $a"; will output Hello World
echo 'Hello $a'; will output Hello $a
more information here
06:28
I'm thinking of a theme for my thesis paper and need some opinions. Would writing a CMS that always generates static files upon every update would be actually beneficial? It would be aimed at people who update their websites rarely (about once a week or less) or to people that have, let's say, 5 static pages and they would like to have the ability to change their content in an CMS environment without fiddling with HTML
Oh, and it would be more of a service kind of CMS, meaning that I generate files on my server and send the static content to their hosts.
07:01
moin
07:12
Morning
/me grunts
I really shouldn't do things first thing in the morning as I even failed to ask the question that I actually wanted to ask and now I know the answer myself :I
Oh, and good morning
07:49
hy every one
need help to send notification to andriod device using php
Please suggest good tutorial
 
1 hour later…
09:00
@FlorianMargaine cooool
Morning room
09:14
posted on September 19, 2015 by ralt

ralt/hermes 1.0

09:41
cab I combine these?
$sth = $dbh->query("DELETE FROM votes WHERE  user_id IS NULL");
$sth = $dbh->query("DELETE FROM comments WHERE  user_id IS NULL");
$sth = $dbh->query("DELETE FROM favorites WHERE  user_id IS NULL");
$sth = $dbh->query("DELETE FROM votes_cmnts WHERE  user_id IS NULL");
can *
I am not sure, but try:
DELETE FROM votes, comments, favorites, votes_cmnts WHERE user_id IS NULL
I don't think it will work.
But, you can use INNER JOINS.
15
Q: delete from two tables in one query

mehdii have two tables in mysql #messages table : messageid messagetitle . . #usersmessages table usersmessageid messageid userid . . now i want to delete from messages table it's ok . but when i delete message with messageid='1' for example it's still exists on usersmessage i have to delete...

But that is over complication in my opinion.
@HassanAlthaf thanks :-)
No prob.
@Jimbo o/
09:51
@Jimbo o/
10:06
hey all
who is here?
@marcio :)
@Sajad just keep them as separate queries :P
10:38
sigh
@marcio lol
Abe
Abe
\o
ThW
ThW
@Sajad MySQL has a multiple table syntax: dev.mysql.com/doc/refman/5.7/en/delete.html
user924016
Happy Caturday!
10:48
Morning @RonniSkansing
user924016
morning o/
user924016
so the plan today... cloth washing.. dishes.. cleaning.. all the good stuff..
getting a haircut, getting a present for my niece getting food yeah ...
I haven't had a good night sleep in weeks T_T
but yeah, good morning :P
o/
Also I am trying to do javascript atm which always confuses the hell out of me
Event better javascript and date/time handling :|
10:54
eww
last time I had to deal with that, I sunk a few hours into getting everything how I wanted it
@Sajad why are you not using cascade?
god dammit infosec
I read that message and assumed cipher cascades
@marcio the mail is from Lester…
@ScottArciszewski veracrypt is APL 2.x, which is usually avoided
10:58
I meant the truecrypt license
that whole debacle
oh, no idea about that part :|
what's wrong with APL though?
mostly issues with MIT/BSD stuff
not sure how common with compiled software tho
Object {schedule: NaN, repeat: false}
\o/ javascript
Abe
Abe
@PeeHaa need help? :D
11:03
@Abe Maybe...
moment
Thanks, but I think I got it. I forgot that my first call to my loop doesn't have the timing of frames thingy yet
As in:
    Loop.prototype.run = function(timestamp) {
        if (!_running) return;

        window.requestAnimationFrame(this.run.bind(this));

        _clock.tick(timestamp);
        _queue.get();
    };
yeap works now \o/
Abe
Abe
i have no idea what that is but glad you sorted out :D
:P
I'm trying to create a clock on canvas. Gotta start somewhere
Abe
Abe
analog clock?
@PeeHaa should I call the police?
@Abe digital
@Ocramius :P
Abe
Abe
11:11
lol
Ahmed builds a clock and gets arrested… Yet Angular.js developers everyday are building applications and are escaping criminal charges.
hehehe
Abe
Abe
i did get the reference :D
poor kid
Well if your name is ahmed you should know better :P
murica
FREIHEIT
11:13
@Abe I will put something up on github later so you can laugh and me and tell me whether I do stuff the stupid way
Abe
Abe
i'm not the best person for that @PeeHaa also, i don't know canvas at all :P
It's more the JS part I am scared of :P
I think I am doing module pattern right, but not sure
@PeeHaa what are you making?
@tereško Well the actual end goal is waaaaaaaay too ambitious and I will never reach that point, but the idea is a DAW in JS
Never reaching that point is fine by me, because at the very least I can try to understand js
do you even have the know-how for the audio stuff?
11:22
Yeah that is actually the least of my worries. I used to produce music and I have dicked around with the audio api before
Hey
got a crazy issue I am trying to debug.. backend ( sf2 app , nginx, php-fpm + postgres) , front end app ( different server , angular.js app served from nginx ).. we have posted x time ago feature in blog post,.its shows 5 minutes ago even for contentent just posted few seconds ago..on localhost the functionality is fine .. any thoughts ?
anyway, I think I am going to make a quick run to bakery
@VamsiKrishnaB have you made sure that all the clocks are correct?
especially the clock on the backend server(s)
ok..I dont know if its correct .but I made sure they all were in same timezone.. will check it now :|
theres a 5 mins difference between the time returned using hardware clock and date command from console
well .. there you go
morning
@tereško because cascade does not support trigger, I need to trigger updates (reduce) reputations when a user is deleted
@ThW thanks
@Ocramius easy way :-)
11:39
Yes, which is also the simple one
@Ocramius and I found a the similar way, using BEGIN; ... COMMIT; and put all DELETE query instead of ... in the one query ;-) (not several separated query)
Well, the commit stuff should be there regardless
@Ocramius can you please tell your mean again? (using simple english syntax)
Transactional boundaries should be defined in every SQL interaction regardless of how you code the SQL queries.
ah I see
11:59
@tereško thanks.solved the issue by syncying with ntp ..needed to open udp 123 port
 
2 hours later…
13:44
helloo
@PeeHaa btw, have you looked into electron.atom.io ?
Nope I haven't. Is that building desktop apps using node?
yes, kinda
Interesting
guys if $db->query("INSERT INTO table(clm1, clm2) VALUES ("val1", "val2") works, why should I use statement->bindValue?
13:50
You only have to use it when using variable content
variable content @PeeHaa?
the code examples will be for MySQLi, but it works the same way with PDO
@ircmaxell well ... it's a good reference video
you should really make more of these
@ircmaxell think about it this way: if you made a really good reference video for "header already sent" you could monetize it
13:52
I need the inspiration
money?
hermes-service.c:168:6: error: implicit declaration of function ‘getrandom’ [-Werror=implicit-function-declaration]
  if (getrandom(*token, TOKEN_LENGTH, GRND_NONBLOCK) != TOKEN_LENGTH)
      ^
god damnit
I need a muse
(yes, there is #include <linux/random.h>, and I'm on kernel 4.1.0)
13:58
@ircmaxell what for?
stupid php… 13.9% mispredication rate…
lol ... this post just vanished from reddit's front page: reddit.com/r/worldnews/comments/3ljp87/…
Which one is correct?
a) I need the {none}
b) I need a {none}
c) I need to {none}
@bwoebi writing the content to make the videos
can anyone tell me what a LL miss is? google finds me combinations of you'll miss, I'll miss etc. -.-
@Sajad what are you trying to say?
14:04
@bwoebi any context?
@bwoebi "miss" is a verb
And sure it's not L1 miss?
@tereško English Grammer! I read in a english book "I need to you". but now ircmaxell told ""I need a muse" and told ""I need the inspitation". so which preposition is proper ?
{to} {a} {the}
@Danack cachegrind output, and no it's LL
ah, last level…
Cachegrind simulates the first-level and last-level caches.
14:07
must have missed it on that page…
@Sajad Apart from "I need to you" in particular, all can be valid
ow, intresting!
@ircmaxell Video Tutorial? are you a teacher ?
@Sajad "to" is for verbs. When you are saying that you need to do something. As for "a" and "an" versus "the". You use "a" when you are talking about an undefined thing: "I need an apple" (means that you don't really care which apple you get). While "the" is used for defined thing: "I need the apple" (means that you are talking bout, or pointing to, as specific apple)
@tereško ahhaa ! I see, thanks
14:16
@tereško it seems complicated, but ok tnx, I will take a look at it
it's actually quite simple and in time you use the correct one just because it sounds right
ok :-)
each language has a distinct "feel" to it
yes I'm watching that table (comparing other languages)
@tereško I have a favor: please when I'm chatting to you, when you understand my point and also see a english wrong, please tell me ...! ok?
I can try , but it would require a lot of editing
14:22
oh, a lot? your mean is my wrongs are too much ?
"I have a favor"
what you wanted to write is: "I have to ask a favor"
ah!! thanks :-)
"your" > "do you", "wrongs" > "mistakes" , "much" > "many"
@tereško the funny point is: google told me "I have to ask a favor" but I thought this is wrong and I replaced it with "I have a favor"
@tereško ah understand, your point helps me to I improve my english language !
I highly doubt that it will help you
14:27
it will! because I'm writing them as a note
Anonymous
mehh
@tereško I'm not sure why, but that would normally be either "I'd like to ask a favour", or "I have a favour to ask". In the order "I have to ask a favor" it implies that you've been ordered to ask for help...
I am not sure how to explain this. Hmm .. do you ever think about the grammar when speaking in Persian?
Anonymous
@Danack Not really. I could me that you have the urge to ask for something.
@tereško no
14:30
@Sajad why?
Anonymous
Otherwise, saying "I have to pee" would mean, you are ordered to as well.
@tereško because Persian is my native language, I just speak, without thinking!
@Danack LIKE
@Danack yes .. the order implied that he was compelled to ask the favor
@tereško I think using "have to" is rudeness a bit, is it not ?
Anonymous
Is there a configurable option to speed up a Symfony application? More like YAML based and not caching.
14:32
Why not caching?
That's a pretty interesting article that shows that even bcrypt can be misused ^
Anonymous
dev mode
posted on September 19, 2015 by nikic

### Fixed * Fixed issue with too many newlines being stripped at the end of heredoc/nowdoc strings in some cases. (#227)

@MadaraUchiha s/how bcrypt can be misused/how there's not much point to bcrypt if you store the passwords in plain text next to it
/** If app is not in dev mode, decorate config parser with cacher... **/
14:35
@Sajad not really, because (ehh .. English is not my native language either) the sentence is directed toward yourself in that case. "I have to use a knife for this. Could you please hand me one?"
Anonymous
@NikiC what?? doesn't that defeat the purpose of hashing the password :/
@samayo usually the way is "not use symfony" :)
@tereško I see
@MadaraUchiha Am I missing something where bcrypt was misused?
14:39
@iroegbu it actually doesnt have english there
@tereško It does
In the advanced options
No Japanese though :(
@MadaraUchiha that was the first on I looked for
Anonymous
@iroegbu yum yum
IMHO, the best way to get an instinctive feel for a language is - audiobooks
@tereško depends to which audiobooks
14:45
well, of course
but I was thinking something along: fiction & fantasy literature
suggest me an english audio book
Now that I am dicking around with JS would you suggest to look into MVC? @tereško
@PeeHaa heh? You mean the JS frameworks?
@Sajad what genres do you prefer?
@tereško The actual pattern
I think it would do nicely when working with an interactive gui
@PeeHaa you can, but there is no way to make the web actually play nicely with MVC-like pattern. In practice you would end up either with separate triads for front and back or be bound to websockets ... which doesn't scale
14:49
I only have JS
besides, you already know that focusing on "MVC" is kinda pointless: you should care about SoC
There is no backend technology involved
I'm talking about mvc proper here
I'll just dick around and see when the code starts to smell :)
@PeeHaa it will be really tricky
the problem will be the "view", because DOM is crap and you are likely to end up writing your own "widgets"
@tereško Romantic
@tereško I'm going to try it on canvas either way
But tbh I have no idea how to wire everything together :P
14:52
@PeeHaa "tricky"
Yeah
Anonymous
@PeeHaa Couldn't you just observe how angular implements the Model and the View to just get the overall idea.
@tereško i didnt get it
I think the biggest problem I have is that I am cramming PHP "patterns" into my JS code which makes no sense and is ugly. I am basically forcing classical into prototypal inheritance and smashing things together :P
@samayo lol, that's like suggesting to looks at codeigniter to learn OOP
14:55
I'm going to write something now and put it on github so room 17 can laugh at me
Anonymous
@tereško Nope, it isn't. I just wanted to say that MVC concept is relatable across any programming language, so ... one can get the idea by looking how other frameworks implement the pattern.
@Sajad that basically one genre I know very little about: goodreads.com/genres/romance
@samayo I haven't worked in languages where you could actually do MVC though
ok thank
s
you can search for some books there and then check whether there are corresponding audiobooks available on torrents
14:58
now I want to listen to what you suggested
I cannot suggest anything from purely "romance" genre .. but lemme think, if I can find something interesting in what I have read
ok
@Sajad what would you say about this book: goodreads.com/book/show/40445.Altered_Carbon
Hi guys,
@tereško "Envoy Takeshi Kovacs has been killed before, but his last death was particularly painfu" :-) are you sure it is related to "love"? I'm keddibg, seems good, thanks, I will download it
15:10
I'm building a FormBuilder component in PHP,
@HassanAlthaf hi
And I have classes for different kinds of form elements,
@Sajad it's not a "romantic" book
@tereško I know
and I was wondering if I should have a label linked to another label directly, or have it with its own separate class, and add it to the form separately?
15:11
@Sajad gimme a moment, I will find the audiobook version
@tereško If you find its audio ver, I'm really thank you.
#workingHardOnMyPHPFormComponentWOOOO
Hmm .. checked the first chapter. Won't be good. The language is way too complicated
:-(
too bad
lemme find something else
15:16
@Sajad Recommendation: Learn literature, you will be a genius in english. Although I suck at Literature.
:-)
For my ordinary levels,
I got a C for literature, which is the lowest grade I got in the exms
and literature class being the only time i fall asleep in school
gl
I always was falling asleep in physics classes at the university
.. because they were repeating the same stuff I learned in high school
:-)
Anonymous
15:19
@tereško at which age did you finish University?
21 for the bachelors degree
Anonymous
that was fast.
ok .. from books "cyber punk" as a genre is completely out of the question: language is complicated and authors tend to make up "new words"
Anonymous
@tereško I assume you were not enrolled in for Computer Science.
@samayo yes
15:22
morning
@Ekin o/
what's up, how's the weekend?
Bit recovering from last night and doing some JS. Other than that it's fine :-)
/me is trying to find a good audiobook for Sajad to learn english (it looks like I have been reading way too much "strange" stuff)
How are you?
15:26
First coffee of the weekend, nothing to rush, at last weather is really nice
Fired your client yet?
morning
Haha no unfortunately, but I made him listen me
@samayo well 21 and 22 are normal ages when you immediately get to university after school.
@kelunik o/
Anonymous
15:28
@bwoebi I have no idea honestly.
@tereško oh, you just realized? :p Even I know from the last talk, you were reading that manga for 5 hours or more
@Ekin got over my manga-binge
ha, I hope you are not in that void then
though its not generally a bad thing
naah, I am currently in the "they release new chapters once per month" spot
I see
15:34
@PeeHaa \o
Got a mail to give my addres details etc for a post tagged 10m-questions-milestone on meta
that's a good start for the weekend
though it would take ages to arrive anyway
(I think I was emotional when I wrote that answer)
15:54
TIL: you can override final methods if imported by traits…
(not in a child class, but in the class where you import the trait)
I <3 traits; don't you?
sure :-D
hi
sorry morning everyone
16:09
If anyone has a gif for when a file permissions bug in virtual-box makes you waste two hours, now is the time to share it.
@Sajad ok , how about this one: goodreads.com/book/show/11737387-fated - the story is quite good and the language is simple enough
@Danack :P
I still don't know what was happening. But I manually deleted a directory outside the vm that was also being deleted inside the VM by a script. And doing that made the crazy stuff disappear.
@Danack isn't file sharing in VMs usually directly managed by kernel module? and so, when two concurring kmods…
I dunno. Whatever it was apparently survived destroying and recreating the VM....which is moderately surprising.
16:34
@Danack vboxsf is such a joke that even the name has a typo
Anonymous
Speaking of which, is there a command to persist mounting shared folder? @FlorianMargaine
for virtualbox?
I dunno, I just use vagrant
Anonymous
Yes,
if I don't, I use the GUI
never worked with VBox* manually
Anonymous
I don't use GUI. I just can't let my vbox to remember the command.
Anonymous
16:40
If I reboot my vbox I have to type it all over again.
Anonymous
sudo mount -t vboxsf sites /var/www
just use vagrant.
config.vm.synced_folder "/documents/projects/github", "/home/github/", mount_options: ["dmode=777,fmode=777"]
Just use vagrant.
Anonymous
Yeah, I will give it a try sometime next week.
@Abe \o/
Where is obama now to ask me to come to the whitehouse?
16:57
@bwoebi is it safe to store a reference to EG(function_table) in an extension? The context is that right here I'm trying to access EG(function_table), which is called as callback from ImageMagick. But IM can spawn its own threads, and so there is no guarantee that the thread local data will be available.
So I could store EG(function_table) in the php_imagick_callback data structure that gets passed back to the callback, but I have no idea if storing function_tables is safe.
@PeeHaa when you get mistaken for this cockatoo:
00:00 - 17:0017:00 - 00:00

« first day (1799 days earlier)      last day (3375 days later) »