« first day (2579 days earlier)      last day (2369 days later) » 

1:00 AM
o/
 
/o\
 
/o\
(doing a butterfly stroke)
 
1:07 AM
/o/
\o\
 
hey, ho, hey, ho
 
am reinstalling windows with the key from the start (had trouble activating it once installed). damn the wait is killing me
 
:)
I'm sitting at a conference
tired
 
sometimes, when I am in such a situation, I slap myself (vaguely discreetly) in the face
sometimes it helps, sometimes I half ass it and it's just really weird for the people around me
 
lol
 
1:31 AM
one of the reasons why I haven't set up a Windows VM... the fucking install takes forever
I need to set up one eventually though
 
@Tiffany not on ssd it doesn't ;)
also, gdi. second hdd was working perfectly just before reinstall, now it appears in devmgmt, but not in the explorer
aaaarrrrghhhh windooowowwsss!!!!
let's see if unplugging it and back changes anything.
:(
oh well
was as simple as assigning it a letter...
why is windows playing with my nerves so much
 
1:46 AM
cause it's windows
anyway, bedtime
 
 
1 hour later…
Wes
2:55 AM
@PeeHaa you said to me "you are a bad person because you write <?= $foo ?> rather than <?= $foo; ?>"
morning
 
3:55 AM
0
Q: Crop and Resize image from X and Y Position

KillrawrI'm trying to crop then resize an image on PHP v5.4, I've read these resources Put PNG over a JPG in PHP http://php.net/manual/en/function.imagecopy.php http://php.net/manual/en/function.imagecopyresampled.php http://php.net/manual/en/function.call-user-func-array.phPP PHP watermarking http://p...

Any ideas???
 
Wes
4:08 AM
@Killrawr enable error reporting and display_errors
imagecopy($output...
$output is an undefined variable
you need to create it first, like with imagecreatetruecolor
 
4:19 AM
@Wes I'd prefer not bloating the question with the entire 600 lines in this question, $output refers to setwidth1200nzpioneerthursday08398 image
 
Wes
$output = imagecreatefromjpeg("setwidth1200nzpioneerthursday08398.jpg");
$source_crop_image = imagecreatetruecolor(200, 82);
your "source" is a black image
i am not sure what you are doing
you probably inverted the variable names
 
@Wes I put the code in the ticket $copy_result = imagecopy($this->output, $overlay, $src_pos['pos_x'], $src_pos['pos_y'], 0, 0, $src_pos['image_width'], $src_pos['image_height']); is actual code in the source file
@Wes which relates to the code in the ticket $source_copy_result = imagecopy($output, $source_crop_image, 0, 0, 0, 686, 200, 82);
@Wes $src_pos = {"image_height":82,"image_width":200,"output_height":768,"output_width":1167,"p‌​os_x":0,"pos_y":686}
@Wes I noticed I was missing line imagealphablending updated the question
@Wes the code works with JPG on JPG, GIF on JPG but fails when it comes to PNG on JPG. At the moment, I think that PNG isn't supported by imagecopy for PHP 5.4
 
Wes
4:39 AM
> You have imagecopy() arguments in wrong order.
17 mins ago, by Wes
you probably inverted the variable names
 
5:24 AM
moin
 
5:43 AM
morning
morning JoeWatkins
 
o/
 
Wes
6:15 AM
morning 2
 
i want to create directory using command prompt but i need to write and execute directory creation commands into php itself(without writing all commands into command prompt)...Is it possible??
 
6:41 AM
@hearthacker your question makes no sense to me. Are you asking how to use mkdir and chmod from php? becuase if so, there are functions for that with the same name.
 
6:58 AM
morning
 
o/
 
\o
 
@Gordon thank you for your valuable response, i founded a way now itself shell_exec('md c:/sha');
its working now i asked this only
 
That's not portable though… why dont you use php.net/mkdir?
 
7:17 AM
Authenticate/Decrypt packet error: bad packet ID (may be a replay)
so many of that when running ovpn
 
@Gordon im using that way. why because im not just creating directory only and also i executing the exe file.so only i using that way.
 
8:06 AM
now I got that BSB song stuck in my head…
I waaaaaaant it thaaaaat way… tell me why?
 
mornin
 
Wes
@Gordon ain't nothing but a heartache
you need to continue now.
 
@Wes tell me why?
 
Wes
@Gordon ain't nothing but a mistake
 
@Wes no, I mean, why do I need to continue?
 
Wes
8:20 AM
ahah
@Gordon it's a trap: youtube.com/watch?v=9ro0FW9Qt-4
 
8:41 AM
meurnin!
 
!!> print levenshtein('meurnin' , 'morning');
 
Anonymous
morgjtd
 
Anonymous
!!wotd
 
logrolling U.S. Politics. the exchange of support or favors, especially by legislators for mutual political gain as by voting for each other's bills.
 
8:54 AM
posted on November 07, 2017 by kelunik

- Prevent UDP sockets from leaking and close sockets on timeouts.

 
Anonymous
o/
 
Anonymous
is 10K a big enough sum to invest for your future?
 
obviously depends on what you want to invest it in
if you had invested them in bitcoins 5 years ago, you'd be rich now
 
Anonymous
anything as long as I can double or triple the amount within a decade.
 
9:05 AM
good luck finding that.
 
Anonymous
a decade is pretty long time.
 
Anonymous
but you're probably right.
 
posted on November 07, 2017 by kelunik

- `Loop::set()` replaces the current driver with a dummy driver for the time of `gc_collect_cycles()` now. This allows cyclic references to be cleaned up properly before the new driver is set. Without such a fix, cyclic references might have been cl...

 
Anonymous
@Gordon thanks. I will read that.
 
Anonymous
9:14 AM
I can actually double the amount in ~8 months or triple it under 2 years but it requires work like travel, documents, customs, shipping ...
 
how?
 
Anonymous
I'm more into throw and forget it about way
 
conservative risk averse investments for financial market noobs usually yield 5% over ten to twenty years and are spread out over various asset classes
 
Anonymous
Yeah, it's not worth it imo
 
5% aint shabby compared to what you get in interest from a bank on your savings account
and you dont need to deal with it. you just throw it there and let it multiply.
higher profits will usually require knowledge, attention and involvement
and a willingness to lose your money
 
Anonymous
9:21 AM
Yeah, I mean 5% on 10k is like 500 per 10-20 years. So, unless 100K+ in the bank it's not worth it.
 
Morning
 
Mornings o/
 
@samayo hm? If you invest 10k at 5% p.a. you'll end up with 16k after ten years not including taxes and administration cost
 
Anonymous
@Gordon oh I thought 5% was the overall interest. Good to know.
 
Anonymous
9:28 AM
During my first job in UAE people who could could hardly read and write used to make 20-25K every two months.
 
Anonymous
And the only work they did was to sign papers like a bank transaction
 
sounds shady
 
Anonymous
and bullshitty
 
Welcome to the old world
Where people could afford houses with pocket change, and jobs paid bucket loads
 
Anonymous
@Gordon Not at all. I used to work there
 
Anonymous
9:34 AM
The guys that I used to work with have now their own business and are buying their second house or third car
 
@tereško .. and no one voted :\ what happened that's no one is active.. eh.
(not the first time obviously)
 
10:17 AM
Facepalm.. $feedback->check_string = md5(rand(0, 9999999999));
 
hey
is there a way to feed my html range sliders sql data? I have a rating table in my database values from 1-7 and If the record already has a value it should display the range slider on that value in my page
 
man... I went to bed at almost 4 because of reading manhwa ):
 
Not sleeping due to reading manga is totally justifiable :-)
 
nah.. I have to skip gym today because of it
 
Anonymous
@Wes people are finally turning against hamilton \o/
 
10:43 AM
heh... I started reading Noblesse yesterday. Went upto Ch 8... was quite nice :B
 
Wes
for the taxes not paid? @JayIsTooCommon
 
Anonymous
Aye
 
@SaitamaSama I'm at around chapter 190 now
won't tell you anything, read yourself (:
 
writing in a new keyboard feels really weird :B
@AlmaDo sure :P\
 
Wes
do you know that the F1 trophy is always the same, every year changes owner?
@JayIsTooCommon
 
10:49 AM
No, I think it's a new one every year
 
Anonymous
@Wes seriously??
 
Wes
yes, same as the football's world cup one
it's always the same , every four years it changes "owner"
 
that seems like a pain
 
If you win the World cup 3 times you are given the trophy for keeps
 
Wes
anyway, rosberg first lost it, then damaged it. it's funny as hell because it could easily be that he did it on purpose. now hamilton is getting the dented trophy haha
poor rosberg
 
Anonymous
10:54 AM
i'd leave urine in it, if it was going to hamilton
 
Wes
lol
 
Is Hamilton a bad guy?
 
Wes
i can almost say yes. he's a liar and poser of the worst kind
imagine kanye west that drives a f1
 
I see :B
btw, I was looking for some new video players for windows. Got tired of VLC. Any suggestions?
 
Wes
nobody really knows what's he up to
vlc sucks but it reads everything. otherwise media player classic with the k-lite codec pack
 
11:21 AM
There is a php library in github, I want to ask something from the author, how can I do that?
 
open an issue? or... probably email him. Tho, the former is preferred.
 
how can I find his email name?
 
In his github profile, maybe? If not, you are better off opening an issue in the repo
 
I see, thx
 
12:26 PM
!!wotd
 
Anonymous
@Fabor read up you lazy animal, @Jeeves does not repeat himself and never will. He's above that.
 
@JayIsTooCommon I thought you would be over gygabyte.
 
I just arrived, not scrolling.
 
Anonymous
And you call yourself an artisan
 
I call him scoundrel
(:
 
12:31 PM
Wut. Swapped the user my fpm instance runs as and now it's generating warnings about not being able to access the session dir
 
ls -la
 
OH
 
yeah man
 
It was only having trouble reading the old sessions
Since they were owned by the previous user I swapped from, with no group write/read
 
not big deal.. screw old customers (:
chown is your friend
 
12:33 PM
Aye, sorted
 
mornings o/
 
ugh :P
 
don't mind me. I just like to troll people. a bit (:
 
no worries :B
 
12:36 PM
I saw it. now how dare you :p
 
I actually edited that based on a previous experience...
I really dislike this 'How dare you assume my gender?' thing now-a-days :B
 
^ which I did not say
:o
 
well, I didn't mean you said that
 
anyways, you should be aware of rule#37 anyways (:
 
but the fact that it is a valid argument :B
 
12:39 PM
fact is that making your font italic does not make it a valid argument ;)
 
(^ self-referencial & recursive btw)
 
anyways, off to reading Noblesse again
 
now you're starting to behave yourself (:
 
12:42 PM
> Forked from letsgetrandy/DICSS
I see...
 
Anonymous
Apparently the github linux repo is a troll magnet github.com/torvalds/linux/pull/156
 
^ they have a default branch as master and not mistress ? meh..
totally legit (:
 
also, looks like I've got a fever :-(
 
@Wes yes
 
@SaitamaSama probably from me .. oh god
 
12:48 PM
heh... though I actually think I've got it from playing a bit of football today :B
 
it's November so..
 
Anonymous
1:07 PM
man, you two suck
 
1:21 PM
now why don't you come closer and say that again /pokerface (:
 
Anonymous
Are you coming on to me?
 
what does "coming on" mean?
 
ignore him, he sucks at English :D
 
:-)
as far as I know, he's an English native
 
one doesn't deny another (:
 
1:26 PM
:-)
 
E_TOO_MANY_SMILIES
 
oh look. if you "argue" about someone sucking at something without smiles - they actually can perceive that as a bragging ./ insults you know.. and even report stuff :p
 
Wat
 
(screw this new keyboard btw)
 
deja vu
3 hours ago, by SaitamaSama
writing in a new keyboard feels really weird :B
 
1:30 PM
ah yes I got mine two weeks ago or so
not keyboard though but laptop
 
oh... for me, it was just delivered this afternoon
 
previous one was a German keyboard and a big Enter key.. this one is English and that tiny Enter key with backslash above. gosh it's causing so much troubles
 
Anonymous
@Shafizadeh flirting, I guess
 
@AlmaDo I think it is referred to a "US layout"
and the "big enter" is on "UK layout" boards (and they suck)
 
I could care less about how it's called :p
 
1:42 PM
you should care about it, because you need to know those, when you buy (or request for work) a new kb
 
was using the previous one for three years. and yeah - it wasn't my decision to change anything, it's the company stuff
so disregarding my terms knowledge they would do it
 
evenin lords
 
time or shit?
 
shit time
 
@JayIsTooCommon ah
@tereško why I don't learn English ..! Does this comment refer to which comment? I don't understand what you mean "time or shit"?
 
1:52 PM
Spacetime
 
"time lord" is a concept for Doctor Who tv series , "shit lord" is a concept on internet
!!urban shitlord
 
[ shitlord ] Amongst other things, an expression used by feminists to mock anyone who doesn't agree with their opinions.
 
Anonymous
I always knew you were a feminist @tereško
 
fuck, I have been exposed
 
1:54 PM
hahahahaha somebody is officially offended again
That workplace site is so much full of morons
next up: how to wipe my ass
Also morngins 11
 
and how to shit
 
@PeeHaa it's kinda funny :P
 
@PeeHaa I think the entire "Workplace" sub-site should be renamed "Whining"
 
Anonymous
@PeeHaa I would be so happy
 
I am agree
 
1:56 PM
I would ask whether those are last beers
 
:P
 
and if I might get one too
 
The really offensive thing is they didn't ask the guy
 
Anonymous
I still can't believe the activity this got workplace.stackexchange.com/questions/91222/…
 
yeah if you leave an interview - at least have a free beer for the time wasted
 
1:57 PM
@PeeHaa that, so much that
 
@JayIsTooCommon God yes that stupidity
 
another name improvement for "Workplace" site would be "How to adult"
 
adolescent would also fit
 
^ would attract some .. suspicious attention I'm afraid
problem of that community is: "Please, help! I thought my job would look like rainbow flying in the clouds with the butterflies. Why does it looks like I clean up the hippopotamus shitting over my head?"
 
:P
 
2:04 PM
and then it's like. ugh.. welcome to reality, man
 
@AlmaDo it might be related to universities becoming a "daycare for hairy children" ... and quite expensive at that
 
Anonymous
hahaha
 
Anonymous
> daycare for hairy children
 
@tereško I say: modern children of higher school grades are catastrophically lacking a good kick to their asses
 
we are getting old :(
 
2:08 PM
damn..
 
> bring back corporal punishment
I wonder, if we could trick Antifa in carrying that banner
 
back in my days you just don't run your mouth wild as you'll get your face broken for sure
hence the meaning of the word "respect" and "politeness" learnt the hard way
 
There's a saying, even the nuns hit the retards
 
we don't really have catholic schools here
 
Never been to one, just grew up around them.
 
2:12 PM
ah
 
one doesn't have to attend a catholic school to know when to keep his mouth shut
and modern teenage people are often lacking this quality
 
My middle schools sayings were like "You bang foo?"
 
eh.. I sound like an old wreck..
 
kinda funny to read "foo" in a programming chat.. foobar..
For those not familiar, that means, do you represent a gang.
But I agree with you Alma.
 
but it sounds "cool" isnt it
 
2:15 PM
/me trying to convince people to use artax over reactphp
 
and then the next step guys
 
@tereško church of satan, huh?
 
you hear this crap from your own children (:
 
@Gordon in soviet times the religion was discouraged
 
@kelunik ping
 
2:16 PM
@tereško I see
 
the religious schools are only now starting to show up
usually backed by some shithead from USA or Saudi Arabia
 
in soviet russia they blew up cathedrals and churches ..
 
@AlmaDo not really, but they were re-purposed
 
@kelunik could you explain your reasoning a bit more about this? github.com/amphp/artax/issues/122
 
some churches were torn into living space or sports centers
 
2:18 PM
@tereško I didn't say all of them. but some of them were. most common example would me that main cathedral in Moscow
they restored it of course by now..
 
Cat has been asleep about 8 hours after the injection now. Bet she is going to go nuts when she finally recovers -_-
 
random basic css question <div><a href="#">test</a></div> isn't this anchor tag considered first-child and last-child accessible via div a:first-child{} div a:last-child{} ?
for some stupid reason, last-child binds to it, but first child doesn't.. driving me nuts
 
css always kills the discussion :\
 
huehue
 
2:25 PM
@Darius probably what happens is that the styles of :last-child supersedes that of :first-child
 
2:40 PM
lol.
and no it doesn't, tried without last-child. blah.
 
css is stupid :B
 
I found the answer, it's stupid lol.
 
so, err what was it?
 
let me guess
shit in => shit out?
 
Stray tag...
 
2:43 PM
so, confirmed
 
confirmed.
 
Folks! Can someone tell me a good PHP project in Github that follows OOP and best practices, ie a code clean?
 
sometimes I want to be wrong so that the industry can surprises me. too bad it's such a rare case to happen :'(
 
I wish browsers threw a fireball at you when that happens rather than it try to repair itself to make it presentable.
 
@RenatoLazaro laravel /pokerface
 
2:44 PM
@Darius meh, HTML ¯\_(ツ)_/¯
 
@AlmaDo ?
 
@RenatoLazaro ignore that. sometimes I can not resist the urge to troll. I try to fix myself but it's hard :(
 
Is laravel all that bad?
 
@AlmaDo Okay. I just want to read codes from other developers to learn and follow the best practices.
 
Momma said laravel is THE DEVIL
 
2:49 PM
@Darius compared to what?
 
Zend Framework
 
since Zend is basically dead ..
 
@RenatoLazaro problem with that is .. just looking at others code won't help to make your code much better since you won't understand why they do this or that (or why not)
 
Anonymous
when will wordpress die
 
@tereško Yii?
 
2:51 PM
WP is too popular to die like companies that are too big to fail.
 
I would say that Yii is worse
then again, IMHO, the 3 worst frameworks in PHP are: CodeIgniter, Cake and Yii
 
and top 3?
or 2..
 
or 1..
or 0..
 
@AlmaDo So what is the correct way to learn PHP besides the official manual php.net
 
top one would be Symfony .. but that's like being a smartest kid in the remedial class
 
2:53 PM
@RenatoLazaro correct way? .. hm. correct way you say. is not to learn programming in PHP but rather to learn programming
 
As @AlmaDo says though, PHP is like a toolset, you can hammer a nail using a saw but it'd be better to use a hammer. Knowing to use a hammer is knowing programming.
 
@tereško I was always treating symfony like "ok, I need that component? I take it". Works like LEGO.. may be I was wrong though
 
in general, the best approach is to avoid frameworks and instead adjust the architecture based what you actually need
 
Your architecture may be worse than a frameworks but at least you'll learn why and evolve.
 
as for programming .. jeez. Am I to say that at least basic intro into basic stuff would be nice? I.e. before jumping into programming - learn a bit or two about engineering ..
 
2:56 PM
@Fabor Thank you very much for the guidelines I want to follow the right path and know how to use the tools in my favor.
 
@PeeHaa Can we get some sort of mildy unanimous !!learnphp command to link to resources?
 
!!learnphp pornhub
 
@RenatoLazaro Accept that you won't learn the right path. Even if it feels right, if you look at your code a few weeks later and think it's good then you've stopped learning.
 
didn't work :(
 
2:57 PM
@Fabor We have !!canon and we have the combination of !!say and !!lias
 
@FélixGagnon-Grenier blame @tereško - he said they run Symfony as I recall :p
 
!!help canon
 
Built-in commands (* indicates admin-only):
 admin - Manage the bot's admin list. Use 'admin help' for details.
 *alias - Add a bash-style alias
 *approve - Approve the bot for talking in this room. Room owners only.
 *ban - Ban a user from interacting with the bot for a specified period of time
 command - Manage command mappings. Use 'command help' for details.
 help - Alias of 'command list'
 invite - Invite the bot to join a room. This can also be done through the chat web interface.
 *leave - Ask the bot to leave the room. Room owners only.
 
@Fabor Tranks. It was a lot of great help.
 
not sure if !!canon allows non SE links yet
But
/me tests something
 
2:58 PM
@PeeHaa Well how about adding !!faq <name>
 
!!fapore
 
Could do with one for !!faq laravel
 
the right path heyh.. You look to your stuff after half a year and curse that cynical moron who did it only to surprise yourself on git blame
 
fail
 
explosions
 
2:59 PM
\o/
 
9 messages moved to Trash
 
Oh jeez lmao
 
@Fabor !!alias {nameofthecommand} say {whatever you want the message to be}
 

« first day (2579 days earlier)      last day (2369 days later) »