« first day (1856 days earlier)      last day (3095 days later) » 
00:00 - 14:0014:00 - 00:00

Abe
12:01 AM
@samayo format?
 
Anonymous
@Abe no backup :\
 
Machine crash in 3... 2...
 
Anonymous
I wanted to buy a hard disk last month, but better to put it in to help finance for the dell XPS on new year.
 
@NikiC yeah, like tiny nasty bugs in rarely hit code paths…
 
Abe
i need to create a parser thingy but i have no idea how to do it, any hints? would you use strtok? what i want to do is converting a string like class A<$T1 is B<C<D>, E>, $T2 is F> to the corresponding classes (which i've made already) representing the generic type declaration
 
12:16 AM
@Abe recursive regex?
 
Depends on how complex your grammar is, and how much you want to over-engineer your solution.
 
Abe
hell no :P i would rather write it using xml :D
 
regex isn't so bad
I mean, this is basically what it was built for. Cheap and quick text parsers.
 
yep
 
Abe
it's a complex pattern...
i feel parsing tokens would be much easier
 
12:19 AM
Well, the grammar you've presented so far is all covered by PHP's lexer, so you could reuse that and just error on anything invalid.
 
Abe
so token get all?
 
It's a way to go...
 
Abe
and build a tree thing out of that
 
@irc
@ircmaxell Have you followed up on your blog post regarding MVC architecture at all?
(pressed enter too soon at first)
 
Anonymous
@dops you can always press up to edit posts in this room.
 
12:24 AM
@samayo thanks, I like people to know I'm an idiot ;) I didn't know that, thanks :)
@samayo just tried it, good tip!
:D
 
Anonymous
:D
 
Anonymous
coding
 
Anonymous
> quoting
 
Abe
@Sara looks like a good idea, i just tried and works pefectly :D i have no experience at all with parsing and stuff, how's the story with AST?
even isin/isout which i'm using for variance
 
"story with AST"?
 
Abe
12:28 AM
the deal? sorry, english's not good :P
 
No, I got the query, I just don't know what story/deal/situation/etc you're asking about.
ASTs are a thing. They exist.
 
@Abe you mean is it being exposed somehow?
 
Abe
does it mean that i should get the output of token get all and build a temporary tree (using like, stdclass and arrays) before actually creating the final objects? asking just that
@Danack hm?
 
@Abe Again, depends on the overall-complexity and permanence of what you're trying to do. Building a tree adds effort and complexity, but it's more maintainable.
 
Abe
i suppose i could use opcache to cache the ast
not really worth it though, since i'm just randomly experimenting
okay, i have a plan :D thanks for the tips people
 
Abe
12:53 AM
namespace AAAA;
use Long\Bar\Qux\Foo;
use Baz;
abstract class Stuff extends SomeBase implements Whatever{}
generics([
    'LOL' => Foo::CLASS,
    'ROFL' => Baz::CLASS,
], "abstract class Stuff<$T1 is LOL, $T2 is ROFL> extends SomeBase<$T1> implements \Whatever<$T1, $T2>");
// Stuff is \AAAA\Stuff - SomeBase is \AAAA\SomeBase - \Whatever is \Whatever
looks reasonable
 
1:35 AM
How does it handle inheritance?
I mean, like, does Stuff actually extend SomeBase that doesn't have a generic?
 
Abe
it does @LeviMorrison
of course i'm requiring SomeBase to be defined that way as well
i'm doing super bad with the parser thing lol
 
Abe
2:18 AM
the only thing i'm unsure of is using parameters within other parameters <$T1 is A, $T2 isin $T1> @LeviMorrison (isin is for contravariant)
i'm making this parser thing so that i can them easier
 
Abe
2:35 AM
:( [91] => Array( [name] => T_SR [content] => >> )
 
2:52 AM
@Abe just give it special handling and split into > and > where needed?
 
Abe
yeah that's what i did :P
also, i almost forgot that the <> operator existed
[i have no idea what i'm doing dog pic]
@bwoebi can you guess how many rows would be required for an AST representing the example above ^ because i wrote about 100 lines and it's not even close to be finished :D
 
don't know… not used to ASTs in PHP.
also, I'd still have done it via regex^^
 
Abe
seriously, regex? it's huge man. not to mention i would end up with something hugely unmaintainable
 
I'm not exactly sure what you want to match, but I can't imagine it to be that huge
also regexes generally get much more readable with the use of named groups
 
Abe
match -> everything
 
3:07 AM
?
 
Abe
this is the worst case scenario :P
 
that should be easily doable with regex though
 
Abe
easily? :P
 
well, definitely not harder than token_get_all
 
Abe
i tend to avoid hard regexps :P
 
3:44 AM
takes like half an hour… but it's simple :-)
 
Abe
what about the nested stuff? A<B<C<D>>>
will have to parse that anyway
 
yeah, it's all matched
 
Abe
you shouldn't have wasted time on that though :D i'm already wasting it
 
@Abe regex matching works this way: you match once the general expression, then you construct the ast recursively…
should be less than 40 lines
 
Abe
@bwoebi i meant something like:
[
0=>A,
 1=>[
      0 =>B
      1=>[
           0 =>C
           1=>[
                  0 =>D
           ]
       ]
 ]
 
3:49 AM
I know.
hence you need a few lines to reconstruct it like to what you need
 
Abe
for me regexps are a mystery just as meaning of life is
also, i use them so sporadically that every time i have to use them, i have to re-learn them from the beginning
i'm not doing so bad with token get all, currently refactoring it nicer
but i should go to bed now
i can literally feel neurons fighting each others
 
4:06 AM
Hi, is there a way to make a background transparent from a photo accurately. I have tried using $im->paintTransparentImage($im->getImagePixelColor(0, 0), 0, 1200) but this limited only to white backgrounds it does not detect an object. i need something similar to this API
is there a library or something that could do this easily ? i need this to generate identification cards which requires a transparent image
 
4:24 AM
hui
 
don't say bad words
 
4:50 AM
good morning
 
Abe
all bullshit, php was popular even before wordpress. in random order, because joomla, mambo, phpnuke, xoops, oscommerce, magento, drupal and many others
 
I know.
I posted that here for comedy
 
phpbb had a lot to do with php gaining widespread adoption as well
 
Abe
yeah i forgot the forums
phpbb, vbulletin, invision
 
thanks for posting a comedy
 
4:55 AM
That might just be php's "killer app"
 
Abe
wordpress you mean? yes, but in this period of time, because 5 years ago was joomla or something else
 
hello when i send http request from serverside using php heroku shows error .if i send just a one it's fine.but error occurs when i send agout 10 or more http request
 
Abe
which means php's killer app is php itself, because it's easy to use and mostly working :D
 
@abe yeah... and it's everywhere
 
Abe
quite simply:
user image
8
 
5:04 AM
morning's o/
 
from a resource consumption standpoint is imagemagick extension better then the imagemagick command line tools?
 
Abe
i would use the extension anyway
 
ugh why did I make it declare(strict_types=1);, can we still fix that
 
what is wrong with that?
parens?
 
Abe
@Andrea at first i thought declare(strict_types = 1); was a joke, because it's not strict itself, as in declare(strict_types = true); ¬__¬
can you tell me again why defaulting to strict types would have broke existing code?
existing code doesn't have sth at all...
 
5:19 AM
@Abe the declaration does not just affect user functions
also, defaulting to strict would cause compatibility problems if existing libraries added type hints
 
Abe
<?phps
anyway, what's wrong you were saying with declare(strict_types=1)?
 
that it's not strict itself
 
@Andrea I was too busy fighting against it for larger reasons to even notice a small thing like this.
 
Abe
i don't think anyone would care if you add true and false now @Andrea
 
@Abe yes but it would be a BC break days before release
 
Abe
5:25 AM
adding, not removing
keep 0 1 false true
 
ugh that's worse, having a choice
 
Abe
declare(strict_types_strict_type = 1);
declare(strict_types_strict_type_strict_type = 1);
declare(strict_types_strict_type_strict_type_strict_type = 1);
easy
 
declare(luggage = 1);
 
Abe
better a choice than = 1 spreading everywhere after php7 release
 
moin
 
moin Joe
Abe that's dangerous :P
 
6:26 AM
'ning
 
6:42 AM
moin
 
does anyone know stuff about the Insider version of windows 10?
 
Farmed some rep, pushed my self to 380. ;)
 
Abe
@bwoebi i am seriously thinking to do it with regexps ahaha :P
 
7:01 AM
@PeeHaa where is my team invite?
 
Room 11.
 
7:37 AM
@tereško why you spell this word every time differently ?
 
mostly: because I can
 
:-)
 
@Shafizadeh sup!
 
what is "sup"?
 
grumble grumble, something something, grumble grumble ...
 
7:43 AM
@Shafizadeh sup = whats up
 
@Shafizadeh it's a bastardization of "what's up"
 
@tereško What is the meaning of the word 'bastardization'
 
I never knew bastard has such a bad meaning, lmfao!
 
the original meaning is "illegitimate son"
 
7:48 AM
sup :-) !! it is a funny word :P
 
8:03 AM
@tereško Can't it be a daughter? :P
lel
 
@HassanAlthaf since the term comes from medieval europe - not really
 
@tereško all people in the medieval europe are boy?
2
you can send a "head-desk" tag :P
 
@Shafizadeh no, it the medieval time the inheritance (usually) was passed to the sons
 
ah I see
 
8:09 AM
kinda like in islamic countries these days :P
 
Islam is not like that!
Boys and Girls are equal in the Islam.
 
@tereško In Islam, inheritance is passed to both males and females in the ratios 2:1 respectively.
 
@HassanAlthaf correct
 
1 min ago, by Shafizadeh
Boys and Girls are equal in the Islam.
just to be clear: 2 != 1
 
I meant of equal is 2:1
 
8:11 AM
Girls get a lesser inheritance because after marriage, they move onto another family and represent that family.
Males represent the family they are born in, which is why they get a higher inheritance.
 
yes 2 is not equal with 1, but each family made of 1 man + 1 woman, so each family get 3 portion
 
8:23 AM
@HassanAlthaf no, just first boy is represent, not all boys
 
ahem ahem
 
@Shafizadeh All boys.
 
9:25 AM
that stuff most likely differs in each country
 
 
2 hours later…
11:16 AM
WTF, why I can not solve this ^ simple math calculation ... can anybody?
 
10
 
wrong !!
 
because I'm sure "red" = 9
 
red is 3
 
11:19 AM
@tereško oh sorry
wait ...
@tereško so, how about blue and green ?
 
green is 2 and blue is 4
 
@MarkBaker I don't know it is correct or not, just tell me the number of each color to I prove it too
 
2 mins ago, by Shafizadeh
wrong !!
 
Depends if that last line is blue plus red times green.... because that would make the operator variable, and a multiply rather than a simple addition
 
@tereško OMG ... listen to me, I hate you!!!
 
11:23 AM
red box is 3
 
@Shafizadeh for any reason in particular ? =P
 
green box is 2
blue circle is 4
 
@tereško yes, you are not a human ...! you answered it less than 1 min !!!
 
therefore, final answer is 24.
 
@HassanAlthaf it is 10
 
11:25 AM
wait, one sec
i think i made a mistake
n x n x n = 27
n^3 = 27
 
@Shafizadeh well .. sorry. I have dunk a beer already. I probably should have been able to do it faster.
 
n = cube root of 27, therefore n = 3
Which means, red box is 3.
 
also, when making beer-chili, I should by two beers instead of one
 
t = triangle
 
@tereško :)) ! do you used of a engineering calculator? please tell me truth
 
11:26 AM
t^3 * n = 24
t^3 * 3 = 24
t^3 = 8
t = 2
n * t * b^2 = 96
3 * 2 * b^2 = 96
b^2 = 16
 
@Shafizadeh why? If I was a teacher, I would give it as an exercise in 3rd or 4th grade at school
 
b = 4
(b + n) * t
(4 + 3) * 2
= 14
 
so the answer is 14?
 
wait no
bodmas in the last one
 
@HassanAlthaf rofl
 
11:28 AM
@HassanAlthaf lol
 
4 + 3 * 2
= 10
 
yep ! correct
 
lol forgot the BODMAS rule trolololololol
@tereško @NikiC xD
 
@HassanAlthaf you know what? Teresko did all your calculation in less than 1 min !
 
he musta seen it b4
 
11:30 AM
nope
 
he's a computer anyway
 
yes, I told one time and I tell again: he is not a human !
he comes from the future
he is a robot :)
 
naah, I am just good at these kinds of exercises
 
what you did is not the mean of "good", it is more than "good"
my math teacher answered it after 30 min (btw, he answered it wrong :P) ... so, he is good
 
Tell your math teacher to resign.
I did it in a few mins too.. lol
 
:-)
 
I haven't even finished A/L maths.
 
@HassanAlthaf yes, maybe "good" is proper for you.
 
no
i only got 100 for maths
so im bad
 
11:34 AM
anyone can get 100
no one can get 101
tell me good when i get 101!!!! :-)
 
btw is it ur pic?
 
me?
 
yeah, my avatar is my photo
 
11:35 AM
did you use a 50000000000 mega pixel camera with shit tonnes of light around and loads of powder on your face?
 
do you mean is my avatar has a good quality?
 
ya
look at mine, it is shit af
let me change
 
@HassanAlthaf if you want to brag .. I can play .. if you are up to it :P
 
so yes, it is edited using photoshop ;-)
 
@tereško play what?
@Shafizadeh Can you edit one for me?
 
11:36 AM
why not ...
 
@HassanAlthaf "who's smarter"
 
how much u charge @Shafizadeh
@tereško u
 
@HassanAlthaf :-) free for you ... ;-)
 
Ohh, let me look at my instagram if i have a nice selfie. Thanks. @Shafizadeh
@Shafizadeh instagram.com/hassanalthaf What is the best?
 
wait ...
 
11:40 AM
@Shafizadeh Really? But my tshirt is shit in that loooll
 
:-)
 
@HassanAlthaf either the current one or this. In all others you look about 14
 
Damn, isn't the one with the suit looking good? I look like an office man.
Actually, i'll grow a beard in December, and take a new selfie.
 
@HassanAlthaf no, the light is shit and you seem drunk
 
11:41 AM
@tereško lol
 
I was feeling sleepy m8 l0l
imma just get a beard and take a new selfie. ;)
ttyl guys o/ gotta go off for a bit.
 
yes, you can take a new one ...
 
yup, and perhaps try editting on my own.
 
good :-)
 
i tried a lamborghini edit
but it failed too hard
 
11:44 AM
good :-)
 
@Shafizadeh instagram.com/p/0-ka54gM5W lololololol
 
:-)
"gotta go off" means "BRB" ?
 
like afk
going for some work
real life work
seeya in an hour.
 
Wats time now hassan bro
 
I got it
also please choose for me a new avatar facebook.com/sajad.shafizadeh
 
11:48 AM
@Shafizadeh actually, "to go off" usually means "to explode"
 
@tereško are you sure?
so what is the mean of this? "ttyl guys o/ gotta go off for a bit."
 
he was trying to say that he needs to "leave for a bit", he's just bad at english
 
yes I got his point, but that sentence is correct?
 
nope
 
@tereško ah ok, so he is like me :-)
@tereško keep in your mind: Someday (I don't know when exactly) you will accept my request in Skype.
 
12:22 PM
Guys I tried to implement recaptcha in my php code and all i m getting is a blank page !
Code : http://pastebin.com/zbqMZy01
Guys any help :)
 
Anonymous
@sajad I think you are the first person in this room to share his facebook page :)
 
Anonymous
12:38 PM
Sometimes when I think about it, the etiquette between (Europeans + Americans) and the rest of the world is too obvious to see.
 
1:09 PM
@saleemahmed 6.39 PM right now.
 
you are here since ?
 
@underscore I'm always active in this room when I'm coding. :)
Well, whenever I'm online on my laptop.
 
how about your project ?
 
That's what I'm working on. ;)
I finished the JS today for the upvotes and downvotes
Gotta do the PHP part today, gonna do it before i go off
It's looking beautiful, btw. :)
@underscore How many contestants are there in the web development category?
 
i dont know
ask from Mr Praven
 
1:21 PM
lol
 
Why
 
Cbf to logon to fb
 
1:38 PM
@tereško what team?
Morning
 
@PeeHaa morning, I'm guessing you're from US?
 
Dutch
 
Which country you in?
 
Considering I am Dutch the Netherlands
 
If it's Netherlands, then you should say 'Afternoon'
;)
 
1:41 PM
I just woke up
 
Oh, lmfao.
#Sunday.
 
Anonymous
@PeeHaa which sites do you check in your fist 20 seconds?
 
Anonymous
for me, as soon as my eyes open, I check mail > reddit > SO > github ..
 
chat was still open and some project I am working on
 
localhost
 
1:46 PM
> Parse error: syntax error, unexpected 'Static' (T_STATIC), expecting identifier (T_STRING) in /in/DOD2d on line 3
class Static :(
 
Hi All
Just a quick question to see what the community use, when planning development for a project what type of documentation do you use? e.g. SRS, UML, ERD's
 
@PeeHaa why would you ..
ya know, I really dont need know that
 
It's a class that "renders" static pages
 
@StephenWolfe I tend to use mindmaps
 
Now I have to resort to StaticPage :(
 
1:58 PM
@PeeHaa actually I would go with PrerenderedPage or CachedPage
 
@tereško Mindmaps? how would others follow them?
 
It's not cahced. Prerender could work though
 
@StephenWolfe UML, ERD are a part of the SRS I believe.
 
@PeeHaa how exactly is it not cached
@StephenWolfe nobody has had any problems understanding them
 
00:00 - 14:0014:00 - 00:00

« first day (1856 days earlier)      last day (3095 days later) »