« first day (2031 days earlier)      last day (2922 days later) » 

12:07 AM
I'm so super cool that I've used goto 15 times so far in this function that I've only half written. Suck on that.
 
@DaveRandom Are you writing a parser?
 
yes
:-)
 
@DaveRandom incremental?
or why the gotos?
 
<--- is not actually sure what an incremental parser is
 
@DaveRandom A parser where you don't feed all data at once but only incrementally
 
12:10 AM
For the "why" I'm going to go with "premature optimisation and/or shits and giggles"
@bwoebi ahh, then no
 
@DaveRandom weird … what are you parsing then?
 
Wes
@bwoebi isn't all at once better than incrementally?
 
a sort of predicate syntax that I'm sort of making up as I go along
 
@Wes sure, if you have the data all at once.
 
Wes
ie, is not what ast does
 
12:12 AM
I'm not particularly knowledgable on parsers etc so I figure I'm just going to make something that seems to work and other people can worry about doing it the right way.
 
@Wes If data is arriving on a network stream, processing raw data as it comes in will be faster as it requires you to only have a finite buffer
 
Wes
ah @bwoebi you explained this me already :B
 
yip
 
Wes
you wrote an incremental parser in amp, right?
 
one for HTTP/1, one for HTTP/2 and one for websockets … also multipart/form-data
 
12:14 AM
I actually started writing one for emails at one point but I quickly wanted to shoot myself
 
Wes
worryingly broken english this evening. more than usual. i neez a coffee
 
(some) editors also use incremental parsers to handle frequent updates without having to reparse an the entire document
 
@DaveRandom emails are a horrid format too
@PaulCrovella that's something else though… that's retaining a parsed state subdivided in blocks which are individually reparsed if necessary (or more, if block delimiters inserted)
i.e. you store it as AST internally and assign ranges in code which are mapped to a certain AST node for which code gets reparsed and node replaced.
 
Wes
that looks like a monumental amount of work
await, sync for the nodes
 
@bwoebi MIME messages of all descriptions are ridiculous. SMTP is terrible. POP3 is terrible. IMAP is terrible. Email is generally awful in every respect.
 
12:21 AM
@DaveRandom email once was fine … in the early eighties. After that it got worse and worse
 
In other words, it was fine until people started using it
 
@bwoebi different, but incremental e.g. lakhin.com/blog/15.11.2013-handy-incremental-parser
 
@DaveRandom … until people started builtin extension on top of extension
@PaulCrovella totally what I was describing, the difference is the data is incrementally added vs. the data is incrementally modified
 
yeah, it's neat as hell. I hope I never have to make one.
 
@PaulCrovella use cases are very few though … the main use case I can think of is live syntax highlighting/indexing as the blog post says too, but for everything else … can't imagine one…
 
12:34 AM
there's probably a case for them somewhere doing a long series of transforms that has to meet certain throughput requirements
I might have been able to make use of them on a few projects but I doubt the added complexity would've been worth it
 
Wes
1:23 AM
"all chickens come home to roost" what a sad way of saying :B ours is much better "all the nodes come to the comb"
 
 
1 hour later…
2:23 AM
o/
 
working on that webserver
its stable now atleast
 
local, or cloud, or ?
 
oh lol
I thought a virtual machine. kind of
 
2:32 AM
heh
haven't pushed the latest changes yet..
 
hmmm.. this reminds me of aerys
?
 
afk...
 
People have brilliant hobbies. Some make kombucha, some others make web servers.
 
:P
 
3:05 AM
@Saitama awesome
 
Wes
3:37 AM
mornin
dat lactic acid mofo
got overtaken by a guy, then while i was still doing my pace, he did a full route in the neighborhood and overtook me again :B
but i like to think he cheated. hid himself in the bushes and waited for me to pass him :B
i'll take my revenge soon, tho [evil laugh.mp3]
 
Ekn
3:53 AM
modgvdfg
 
Wes
\o
 
Ekn
ugh wrong timezone
I should stop messing with my bio-clock whatever
 
Wes
4:13 AM
o
 
good day.
... can anyone help a noob configure phpmyadmin on a remote server?
 
4:48 AM
@Wes o/
@littlepootis not sure... if...
 
Wes
@Saitama \o
 
@Saitama that's impressive, really.
 
Thanks :) :D
 
After a quick skim, I've come to know your name, timezone, country, favorite editor among other things.
 
4:51 AM
eh...
it's PHPStorm's fault tho
(╯°□°)╯︵ ┻━┻
 
Ekn
:D
aww I just saw the note on repo name
 
Wes
(╯°□°)╯︵ ┻━┻
__|_|_
      |    dis is
      |    sparta
      |
seen that on reddit. laughed pointlessly :B
 
Ekn
lol
 
@Saitama uh.. they're on your Github profile too
Didn't see that
 
@Ekn :D
 
5:01 AM
@Oldskool got the beta pass?
 
@littlepootis not now.. ;-)
 
huehue
 
posted on May 08, 2016

New Cyanide and Happiness Comic

3
 
'nin
 
5:13 AM
@JoeWatkins '
 
Wes
\o
i am a bad person if i occasionally want to use return in expressions?
$bar = $foo === $baz ? 100 : return;
.... wait for it...
 
youre a bad person if you dont explain what your complex piece of code does
 
haven't we waited long enough yet?
 
Wes
and more often, $baz > $bar || throw new Exception();
 
sorry i dont operator know precedence use more parens
 
Wes
5:20 AM
booo
 
operator precedence ftw
 
throw in expr makes sense
not sure about return
 
Wes
function raise(Throwable $e){ throw $e; }
$baz > $bar || raise(new Exception()); // i do what i want
 
> Software engineer found unconscious and beaten up in his home with a sticky note on his face that read "I too, can do what I want"
5
 
Wes
ahahaha
 
5:27 AM
@littlepootis lel
nutella is the best thing ever, made by the mankind
 
Wes
italian food \o/
 
HLD
5:42 AM
Anyone here good at registration forms and logins using database and php??
 
I wonder if I know a single software engineer that wrote the code for their own website/blog ...
 
Wes
what do you mean? rather than picking a random wordpress/cms instead?
 
6:04 AM
could anybody give me some idea about how the logo should look, for Leloutama?
/cc @Wes
 
Wes
is that something you eat
 
@Wes yeah
 
Wes
need to know what it is, what the key features are, the etimology of the word
@JoeWatkins i did several blogs, they all suck :B if i had the time, i'd improve them
 
Leloutama is this, an webserver made in PHP, the name is made up from the name Lelouch and Saitama, who are anime characters...
 
Wes
i can't help with that :B
 
6:08 AM
:(
k..
 
Wes
pick a better name, like iTurboMasterHDSugarFree2.0
 
heh.... well... lemme think 'bout it ;-)
 
Wes
:B
@JoeWatkins all criticize wordpress, but nobody is doing alternatives. don't reinvent the wheel they say
 
if you need wp, use it, if you need blogger use it ... that's not what most people do, they install wordpress and disable the vast majority of it (no comments, no feeds etc) ...
why not just write that yourself ?
 
Wes
because it's still easier using wordpress
 
6:20 AM
lazy!
 
Wes
wiki.php.net/rfc/unset_bool @bwoebi do it! there are too many drafts, under discussion rfcs, it's time to put something to votes! just came into "i wish unset returned bool" again
 
Wes
7:07 AM
@Saitama seriously, i can't suggest a logo without more details :B
 
@Wes ikr... lemme make a gist with all the details
btw what type of details do you want... :/
 
Wes
7:22 AM
since you have a very specific name and unless you want to infringe copyright on purpose by using the bald guy as logo, i do need to know something about it to suggest fitting logo
unless you want to use something generic, like 3 circles and a rectangle sketchtoy.com/66986849 open at your own risk
 
how about something like this sketchtoy.com/66986854
 
Wes
why punch?
 
i added it to make you understand that it was a punch shape... that 'punch' text isnt gonna be there...
 
Wes
yeah but why that
@AnmolRaghuvanshiVersion2.0 well done :D
 
i dunno... plz suggest me something... I am really bad at things like these
 
Wes
@Saitama name's very long though. you sure about it?
 
we can make the name... something like....
lel .?
 
Wes
lel, that's too short
and i believe it means penis in dutch (cc @PeeHaa) :B
leeloo ?
 
seems nice, +1
 
Wes
7:34 AM
multipass
seen the fifth element, right? :B
 
n.... nope....
 
Wes
you are a shame to the humanity
 
I should've seen it?
 
Wes
go watch it now. immediately
 
lol. k...
 
Wes
7:36 AM
i'm not joking :B
 
im serious too... I already found a torrent for it :)
 
Wes
if you pick leeloo, the minimum you should do is watch the movie :B
 
btw, how bout matrix?
 
Wes
as name? too sold out
 
yes, too common
I got a 4k Remastered, of The Fifth Element... \o/
 
Wes
7:42 AM
made by luc besson. when he wasn't an alchoolic yet
 
Why? ^
 
just see the front-end things he has made... <3
 
Wes
nice
 
Yeah .. Nice
Checking user's reputation should be checked on the Database-Side or Server-Side?
I mean which approach is better:
// when user logs I set his rep into session
if( $_SESSION['rep'] >= 125 ) { /* can vote */ } else { /* cannot vote */ }
VS
// doing that by a trigger
IF ( SELECT 1 FROM user WHERE id = new.user_id AND rep < 125) THEN
    SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "cannot vote";
END if;`
 
Wes
7:53 AM
wtf is signal sqlstate
 
It's basically raising an error
 
Wes
but why would you use that
 
@Shafizadeh Do not hide logic in the database
 
Wes
^
 
@DaveRandom So should I do that in the PHP? Well there is a problem: Because if the user has more than 125rep and logs and then lose all his rep, still he can give downvote, because $_SESSION['rep'] doesn't change.
 
Wes
7:56 AM
can't even start answering
 
@Shafizadeh wait, do you mean doing that in a transaction rather than a trigger?
Don't put validation logic in triggers, but by all means do some validation in SQL in a transaction
 
@DaveRandom Ok, this is my question
 
@Shafizadeh What you need is the thing that is in the middle of those two approaches, which is a transaction. So instead of putting a trigger on the table that runs that code before update, you begin a transaction and manually run that code from your PHP script before you update. This way the logic is still all in your PHP script, but the check is atomic in the database.
 
@DaveRandom I see. thx
 
8:03 AM
@Shafizadeh The answer you have upvoted is the right sort of idea and could also work if wrapped in a transaction
 
Yes ..
 
However if you are using a database access mechanism that supports multiple queries in a single block then you can reduce the number of round trips to the DB by putting that logic in SQL - as long as it's visible in your script.
 
To be honest, I will use a trigger .. it is really simple and readable to me :)
However I agree with a transaction .. But I'm not sure I can implement it correctly
 
The problem with triggers is that they are precisely not readable. When you read your PHP script does UPDATE table .... you cannot see that layer of validation logic.
And it might cause some other dev to come along and think there's no validation and add some, and now you are validating twice
 
Look, I'm the programmer of my website alone .. So just me .. And I know what I have done :-) ..! Your sight is for huge project which some people work on it
 
8:07 AM
Or if the database gets corrupted and there's something in the trigger that's preventing code from working, this can be invisible to the PHP dev who doesn't know that trigger is there and it's basically impossible to debug
 
@DaveRandom You are right
 
@Shafizadeh Actually I work alone much more frequently than I work with others. Experience has taught me that when I come to maintain code I wrote 2 years ago, it may as well have been written by someone else.
yesterday, by DaveRandom
Write your code for humans to read, they need a lot more help than computers
 
Like ^ :)
 
That said @Shafizadeh... you can probably achieve that same validation atomically with a carefully crafted JOIN, no IF() required anywhere
maybe not, depends what your db schema is like and what the vote op actually does in the db
 
8:25 AM
@DaveRandom Yes JOIN() is fine. but in that case I cannot separated the errors.
 
@DaveRandom +1
 
Anonymous
hmm yet another update from google privacy policy..
 
Anonymous
> When you search for a restaurant on Google Maps or watch a video on YouTube, for example, we process information about that activity - including information like the video you watched, device IDs, IP addresses, cookie data, and location.
 
@Gordon If I had a dollar for every pixel this image lost over the years, I'd have lots of dollars.
 
Anonymous
If they could these people would take blood samples too
 
8:35 AM
lel
 
Apr 24 at 17:09, by Madara Uchiha
> A privacy reminder from Google: You have no privacy.
Have a nice day (we'll know if you don't).
 
@samayo they don't?
 
you never know..
 
Robotic mosquitos
 
who needs blood sample when they have your fingerprint, bank details, tax information, location (present, past and can predict future) among other things...?
 
Ekn
8:41 AM
worse, swarms of nanorobots travelling through the air
:p
 
Wes
@samayo there is an app you log what you eat in and offers suggestions to regulate bowel movements
 
wtf did i just see?
 
Wes
they went already far beyond that. next step is dna mapping, so that they can replicate yourself and put it to forced labour for free
in other words, matrix
@Saitama auto wash?
 
7 mins ago, by Wes
@samayo there is an app you log what you eat in and offers suggestions to regulate bowel movements
 
Wes
:B
and i'm pretty sure it's not just one
 
8:55 AM
:P
always, updating the readme, seems, just too much work...
 
Wes
there's also an app to keep track women you know's cycle, so that you can avoid them when they are more likely to be upset because of that :B
most sexist app ever
 
cough
 
Wes
it's so offensive that is almost funny xD
 
Anonymous
9:10 AM
So, first time trying ubuntu .. and this happened.
 
Anonymous
root@xx:/# apt-get -y install php7.0-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.0-fpm
E: Couldn't find any package by regex 'php7.0-fpm'
 
Anonymous
I'm happy with CentOs, but I needed to give ushitzu a try.
 
@samayo which version of ubuntu?
 
Anonymous
Ubuntu 14.04.4 LTS
 
Ubuntu 14.04.4 LTS ain't got PHP 7
 
9:15 AM
@samayo 14 doesnt have 7. you need to use 16
 
Anonymous
Ah, weird .. I thought that was ubuntu's thing.
 
or ... I know, it's shochking but ... you could NOT use ubuntu
 
Anonymous
I will try 5.6
 
Wes
@MadaraUchiha ever watched "the fifth element"?
 
Anonymous
@tereško why?
 
9:17 AM
@Wes I did
 
Wes
so my theory was not valid :B
and you liked it? :B
 
what theory?
 
@samayo because of problems like this, where you are stuck on ancient application versions
 
Wes
@Saitama shhh
 
Anonymous
@tereško My bad, the default value on the drop-down was 14.04 I have got 16.04 now. I'm guessing this is the latest version?
 
9:25 AM
if it's 16.04, it is.
 
it's the latest version of ubuntu .. but it you won't be getting php 7.1 on it
 
Anonymous
I could compile it from src, but since this is my first time with ubuntu, I will definitely have some problems with configuration. :\
 
9:38 AM
@PeeHaa is there any good reason not to force SSL for Jeeves? We have that secure config but I'm not sure if it's worth making it optional? It's making some multi-room things a little complex so if you want to keep the option then I suggest making it global
 
9:57 AM
how to create a release thing in github?
 
Click on the releases tab/button?
 
@PeeHaa frnr
 
lol still burining away I see :)
Incoming mail from DO wtf you are doing in 3...2...1.. :P
 
10:08 AM
yes, I still got not GPU handy, so I had to up on the cpu
I am considering to verify my account to get the 20 cpu machine
 
WTF are you mining bitcouns on our infrastrutre???? Uhhmm I am making a picture :D
 
AWS has gpu machines. but I dont have credits there
 
@Wes Eh
 
but the 8 xeons definitely go MUCH faster than my dual core i7 obviously, so for now I will just burn away the credits
 
Anonymous
Is there a YouTube option to block certain type of videos?
 
10:12 AM
@samayo no, you cannot block rebecca… any why would you!!!
 
Anonymous
:)
 
@samayo Register as publisher of rebecca black and optin for content id. Block all videos while they are being uploaded
 
Anonymous
I don't want to get rid of rebecca, just those celebrities singing and talking inside a car
 
Anonymous
It's always in my feed.
 
Or just register as gema representative
 
@samayo Click the ⋮ next to the video description and then "Not interested".
 
@Saitama y u no ask to be added to feedr?
 
@PeeHaa ???
 
Our room 11 regulars feed in here
 
oh...
would you add it?
 
10:21 AM
Sure
 
Thanks! <3
 
Done
 
\o/
 
@Wes It's lul but close enough
@DaveRandom Does everything in the whole network support ssl?
 
posted on May 08, 2016 by gourabnagDev

gourabnagDev/Leloutama v1

 
10:33 AM
\o/
@Feeds I love you Feeds!
 
I'm totally going to try to work in that thing today
 
+1
 
could anybody describe the KVP thing?
 
key value pair?
 
peak kilovoltage?
 
10:42 AM
yeah
key value pair
 
what is there to describe?
 
the thing is, in mediawiki source code, they make a difference between assoc and kvp
I don't see any difference
* - assoc: In a format like JSON, outputs as {}.
* - kvp: For a format like XML where object keys have a restricted
* character set, use an alternative output format. For example,
* <container><item name="key">value</item></container> rather than
* <container key="value" />
*/
 
please dont try to learn anything associated with "php practices" from mediawiki
 
I kind of understand that, but why kvp? it doesn't make sense. the name has nothing to do with what it does
@tereško I heard that before :)). what open-source thing do you recommend for that?
 
@bwoebi is there a theme in phpstorm that also makes the file browser a white background color?
 
10:45 AM
the intellij one?
 
@PeeHaa dunno, I've never set a theme… The default is definitely white
 
Dracula ftw
 
yay tnx
@Saitama I know by I cannot read dark blackgrounds in the sun
I know my mind was blown too
 
mind = blown
 
@Victor it doesn't matter what they call it
 
10:48 AM
My whole life has been a lie, apparently...
 
I'mpretty sure they all had a good laugh when comig up with the name
 
@tereško oh... ok. could you please tell me some opensource codebase that I can learn from?
@PeeHaa do you know any?
 
buy a book
 
@Victor What in specific do you want to learn?
 
@PeeHaa best practices I guess
 
10:51 AM
That's rather broad :)
 
That's a start
 
@PeeHaa, I guess you are a professional programmer, right?
 
Yes. Most of us get paid to write software in here
 
I don't... :P
 
10:54 AM
You just like to hurt yourself...
!!wiki Sadomasochism
 
Sadomasochism, a subset of BDSM, is the giving or receiving of pleasure from acts involving the receipt or infliction of pain or humiliation. Practitioners of sadomasochism may seek sexual gratification from their acts. While the terms sadist and masochist refer respectively to one who enjoys giving or receiving pain, practitioners of sadomasochism may switch between activity and passivity. The abbreviation S&M is often used for sadomasochism, although practitioners themselves normally remove the ampersand and use the acronym SM or S/M. Sadomasochism is not considered a clinical paraphilia unless...
 
I would get paid when I turn to 22 I guess...
@PeeHaa psst. This is a public chat,..
 
@PeeHaa Ok. So you probably have your own style, you create a method where others don't or vice-versa, you create an abstract class where others put an interface, etc. And I think this is not just style, but experience, experience you acquired by reading others' code, by finding problems that you had to solve, by starting with a crappy codebase for sure
 
I have a half site if that counts :P
Not even sure if I pushed the latest iteration. Let me check
 
so getting to the point, what I want to learn is good practices regarding these things, e.g. how others would implement a database abstraction layer or a user account set of classes, or how others would manage a blog, but I want to have a trustworthy codebase to learn from
OMG If I could read Google codebase <3
 
10:59 AM
Yeah the lattest iteration of my site is not even pushed to github
Let me check inwhat state feedr is on github
 
:P
 

« first day (2031 days earlier)      last day (2922 days later) »