« first day (2160 days earlier)      last day (2791 days later) » 

12:48 AM
Morning @all \o/
 
Morning \o/
Good night \o/
 
o/
 
yay wine!!!!
sup @Fabor, still in thailand?
 
Yeah, will be for at least 2 more weeks
 
woot :)
stupid thought of the minute: hey why is it thai-land ?
 
1:03 AM
Eng-Land
 
like... I mean... surely they named their country before all the naming conventions of foo-land
 
Scot-land, fairly common, but a good question.
 
or... is it some occidental conspiration?
 
!!wiki -land
 
The suffix -land which can be found in several countries' name and country subdivisions indicates a toponymy—a land. The word came via Germanic "land." Below is the list of places that ends with "-land" or "Land". == Nations == Finland Iceland Ireland The Netherlands Poland Swaziland Switzerland Thailand Germany refers to itself as "Deutschland". Derived name: New Zealand Marshall Islands Solomon Islands === Former nations === Basutoland Bechuanaland Protectorate Nyasaland Protectorate Stellaland === Sub-national units === Burgenland, Austria Queensland, Australia ...
 
1:05 AM
but land is in english
 
Soo... England was named by Germany?
 
!!translate land thailandese
 
@FélixGagnon-Grenier Sorry, I don't speak land
 
@Fabor that is pretty interesting
 
1:07 AM
oh........
you're so google foo'd
 
> England was named after a Germanic tribe called the "Angles", who settled in Central, Northern, and Eastern England in the 5th century. A related tribe called the "Saxons" settled in the south of England. That is why that period of English history is called "Anglo-Saxon".
 
so my friend is joining me soon... yet I can't stop drinking the bottle, and am afraid I would finish it soon. should I just not care and buy another one, or be gentle and keep some?
 
Nah, go wild. why not.
 
!!should Felix keep drinking or keep drinking.
 
1:09 AM
Felix should keep drinking.
 
hahahah!
gratie
 
Similarly we have a lot of places in the UK that end with "ton" or "ham" which ties back to Anglo-Saxon times.
 
yeah we got "ton" too
 
@Gordon There's a good piece of info for you to throw at any Brit. You gave us our name. England at least and by proxy many other countries. :P ^
 
@Jeeves I am dissapoint. deeply sorry to have doubted you
 
1:15 AM
@FélixGagnon-Grenier @⁠Gordon There's over good piece during info less you @⁠ throw circa any Brit. You gave us our name. England abreast least and alongside proxy many other countries. :P ^
 
lol that actually pings too. how nice
 
:P
 
hrmmmm.... ok. maybe I'm drunk but..
> should Felix keep drinking or keep drinking.
resulted in
> Felix should keep drinking.
something happened there.
!!should mohamed have shaved or jesus should have
 
mohamed should jesus should have.
 
@FélixGagnon-Grenier Just be sure to drink at least 2l of water before bed.
 
1:21 AM
:)
 
In fact drink 500ml between now and your next drink.
 
1.5 to go
 
Then fill a tall glass and leave it by your bedside before bed too.
 
Looks like someone squashed it.
Or left it in the sun
 
or some water in movement is in
I let myselft be told once that it served purpose as porto container on ships
 
@JayIsTooCommon My chat will be meh. Kelunik actually developed a decent one which is on his github you know.
 
mainly because liquid doesn't fall off, sometimes even if dropped on the ground
 
People go as far to say the right glass produces a better taste.
My legs are soo damn itchy. Mosquitos went nuts on me in the south. Bastards.
 
1:27 AM
no me moleste mosquito
@Fabor actually I kinda think that bout beers
 
Cola tastes better out of the bottle tbf
 
lol. yeah, it's better not trying to taste the liquid through the container ;)
some types of beer are better suited in straight glasses, whereas some other acquire their taste in a balloon shaped glass
 
Or a boot shaped one.
 
heh. those are quite hard to drink from
... and friend is here. cya
 
See you. Have fun.
 
2:06 AM
@PaulCrovella If you ever decide to do Karaoke please choose Rihanna - Umbrella and sing "Under my Crovella... ella... ella... ella..."
BTW £4 headphones sound more like £1 headphones. Can't recommend buying some.
 
first time to enter stackoverflow chat
 
Not to put any pressure on you @NewbeeDev but your next 3 sentences will form the opinion we will have of you forever. Choose wisely.
 
ohhh shit.
Speaking of first impression..
in JavaScript, Sep 9 at 16:11, by Iqbal Khan
lma llama penis
 
@littlepootis reminds me of @salathe
 
Well? Did he live up to the first impression?
 
2:17 AM
(whose profile description is: llama, llama, duck.)
 
2:30 AM
no hope for perl.
 
evening guys
 
sorry im just pissed off a bit
 
better than pissed on
 
its ok
 
2:41 AM
:/
 
unless you're into that
 
lol
 
2:54 AM
The most tragic thing...
 
3:06 AM
OMG pizza
 
E_NOT_ENOUGH_SLICES
 
lamo
 
give me a slice
 
let him share too
 
3:43 AM
I'm trying to to pass the function $this->doSomething() as a parameter, is there a way to do this or do I have to wrap it in an anonymous function?
 
4:05 AM
What does doSomething return
 
just a string
 
Wes
mornins
 
@PaulCrovella thanks, I did try [$this, 'doSomething'] but I was getting the error "... must be an instance of Closure, array given". Wes just informed me that I need a 7.1 feature for it to work properly
 
Wes
actually what i meant was, that you need a 7.1 feature (Closure::fromCallable) to have it less disgusting
currently wrapping the callable call into a closure is the only option
 
4:16 AM
@joshhunt is what you're passing it to code under your control? if so then type hint against callable rather than closure
 
Wes
or use github.com/Netmosfera/Symbola and be a cool kid
#spam
 
nah 3rd party unfortunately. I did get it working fine I just thought there is probably a nicer way to do it
 
Wes
how does this make you feel? images.fanpop.com/images/image_uploads/… i didn't know it existed. i died inside
 
@Wes same here. I dieded.
 
Wes
and possibly just as bad, tortellini on pizza s3-media3.fl.yelpcdn.com/bphoto/Hi3IwcMulBuxq95hQi8slg/o.jpg
 
4:30 AM
they'd say, it's more italian version of a pizza!
 
Wes
4:42 AM
:B terrible
 
5:12 AM
hey guys, how do you avoid the headaches from being infront of a computer for too long? Any of you ever tried the computer glasses and etc.?
using a matte screen and from time to time still get eye pain after a long day of work
 
take more frequent breaks, and get up and walk around when you do
 
kk. Sometimes forget breaks when focused on something "fun" , i'll just make it a point to do so every hour or two.
 
Wes
@Darius reducing screen brightness works for me
 
here's an interesting part about that. When I reduce bridghtness, it's barely noticeable but when i reduce contract, that's when it gets a lot dimmer, what's the deal?
 
morning
 
5:20 AM
Mornin
 
mornin
 
Wes
@Darius whatever works for you and with your monitor, when i write code or browse the internet i use low contrast, when i work on graphics i use "natural-looking" colors
 
gotcha cool. i'll play around with it and see how it works out, thanks.
 
Adi
hi guys. how can I echo the selected value if i have this code?

<?php
while(mysqli_stmt_fetch($stmt1)) {
echo "<option value=".$crew_rank_id.">".$crew_rank_table."</option>";
}
?>
 
MGE
Hey, how are you doing?
SELECT purchases.amount AS amount, properties.name AS propertyname, externalpos.coupon AS coupon FROM externalpos INNER JOIN properties ON externalpos.property=properties.id INNER JOIN externalpos ON externalpos.tmp_purchase=purchases.purchaseid WHERE externalpos.tmp_purchase=:purchaseid LIMIT 1
I have a problem with this SQL statement, it returns an error:
SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'externalpos'
 
5:34 AM
@MGE try adding alias on first table externalpos
 
@Adi Use
<?php
while($row = mysqli_stmt_fetch($stmt1)) {
    echo $row;
}
?>
 
Adi
@Slayther how can I echo the <option> now?
 
Yeah
 
Adi
@Slayther what you mean yeah?
 
You can do it just like you did before...
 
Adi
5:39 AM
@Slayther you mean like this?

<?php
while($row = mysqli_stmt_fetch($stmt1)) {
echo $row;
echo "<option value=".$crew_rank_id.">".$crew_rank_table."</option>";
}
?>
 
Oh wait
Yeah,
But you can't user $row
I didn't see mysqli_stmt_fetch .. too early
Use the variables you passed in mysqli_stmt_bind_result
 
Adi
how can I echo out the selected value from the database?
using <option> tah
*tag
 
Just concatenate them...
 
Adi
because before i use this code

<option value="MASTER" <?php if($crew_rank== "MASTER") echo "selected"; ?>>MASTER</option>
<option value="CHIEF COOK" <?php if($crew_rank== "CHIEF COOK") echo "selected"; ?>>CHIEF COOK</option>
<option value="AB" <?php if($crew_rank== "AB") echo "selected"; ?>>AB</option>
 
Why can't you do that anymore?
 
Adi
5:43 AM
because im retrieving all the data now from database. and i have an option that you can add more item in that option
 
Well, what are you using for binding parameters? mysqli_stmt_bind_result?
 
Adi
yes
 
Then use the variables you passed in there
They will have the value fetched from database
 
Adi
yes im using it
my problem is i dont know how to use if statement within echo
am i saying it right?
 
I'm not sure what you're trying to achieve
Can you give example output of that echo?
You can just do like before..
if ($var1 == "Value 1") {
    echo "yes";
} else {
    echo "no";
}
You can chain them as much as you want
 
Adi
5:51 AM
for example the data saved in database is "AB" and when you click it the edit button, the value in the <option> must be AB. but right now, when i click the edit button, i only get the first data saved in database which is MASTER
 
Oh, you can't do all options in one iteration
If that's what you are doing, you need to use more conditionals to know what to echo
Or do it in another way
Sorry, gtg. Maybe someone else can help you. Cheers. o/
 
Adi
thank you
 
Wes
morning again
 
O/
 
\o
 
5:59 AM
How's you ear pain now Wes?
 
hi guys!
I tried to import a csv file from another server using LOAD DATA LOCAL INFILE but it gives me an error The user update failed: Can't find file, even the file is exist in the path given. I also tried the LOAD DATA INFILE but User access denied
Is there's any other way to import a csv file without using any submit button and delete the current data in the database table if there's a new csv file uploaded?
 
Wes
19 hours ago, by Wes
pop
solved @Linus ^ :B
 
It should have been a satisfying thing...
hasn't it?
 
@Wes If you hold you finger to your ear and scratch, you can hear Pacman
 
6:28 AM
Hello
 
I'm new to stackchat so how do i get my first timer welcome?
 
@kelunik Thanks. I'm currently working on something, and i get 502 Bad gateway, what could cause this
 
Wes
6:46 AM
@MadaraUchiha are you laughing already thinking me doing that :B
sounds more like tetris to me :B
 
@PreciousAniefiok Once you've posted a thousand messages we teach you the secret handshake
@PreciousAniefiok Are you running fpm?
 
user image
2
 
wew google drive API is so cute
 
Lol
I have a serious problem here
guy
you need a thousand messages
sure
i've got them all
just wait for it.
it's just coming
woah not that one.
..
.
Is it 1 thousand yet?
 
dont chat one by one its kinda of an annoying
 
6:50 AM
Maybe not just some more lines.
Oh am sorry #MaryDaisy
 
no worries
 
@DaveRandom getting ignored is the secret handshake?
 
hi guys
 
So hey Mary Daisy, how are you doing?
 
Wes
@DaveRandom you mofos haven't taught me the secret handshake yet :B mornings
 
7:00 AM
12 mins ago, by DaveRandom
@PreciousAniefiok Are you running fpm?
 
@Wes @DaveRandom said that wrong. Not 1000 messages. 1000 stars. gist.github.com/anonymous/…
 
Wes
prepare yourself to the worst gifs of the internet then
 
:)
 
@Wes the dank ones pls
 
Mornignins
1 message moved to Orphan GIFs
 
7:10 AM
Moguhh
 
Hi everybody, just earned a chat privilege. Currently at the company right now actually haha.
 
Ekn
mrnngs
 
'nin
 
something about adding a full stop after a laugh makes the laugh look sarcastic
lol
lol.
 
lol..
 
7:13 AM
@DaveRandom we like you**.**
Oh goddamnit
 
Fail
 
Fucking chat
 
:P
 
hmmm
 
@Fabor You were also into threejs right?
 
7:14 AM
Threejs? -_-
 
oh nvm :P
 
!!? three.js
 
Search for "three.js" (https://www.google.com/search?q=three.js&lr=lang_en)
• three.js - Javascript 3D library - A JavaScript 3D Library which makes WebGL simpler. (http://threejs.org/)
• GitHub - mrdoob/three.js: JavaScript 3D library. - JavaScript 3D library. Contribute to three.js development by creating an account on GitHub. (https://github.com/mrdoob/three.js/)
• Three.js - Wikipedia, the free encyclopedia - Three.js is a cross-browser JavaScript library/API used to create and display animated 3D computer… (https://en.wikipedia.org/wiki/Three.js)
 
tho I haven't used it ever yet...
 
No, I avoid JS whenever I can.
 
7:15 AM
@PeeHee you using it for the game you are developing?
 
I did promote GSAP a bit though. But that's an animation library.
 
I've never created a web game before
 
@Saitama yes
 
@PeeHaa is it noice?
 
Super nice
But a bit hard for me at times
 
7:17 AM
matter.js nice concept
 
js is sometimes all magic for me... ^^
 
has anybody in here tried out nodejs
 
Where is my had secret shake
Is someone playing with my curiousity?
 
@PreciousAniefiok Hi! Welcome to the internet. We're sorry. Caution: slippery when wet. Remember that your credulity may go up as well as down.
 
moin
 
7:21 AM
\o
 
\o
Seriously though @PreciousAniefiok if you answer my question we might be able to provide you some help with your problem...
33 mins ago, by DaveRandom
@PreciousAniefiok Are you running fpm?
 
Anonymous
monfiusgdus
 
mrhrththtghh
 
meurning!
 
7:24 AM
lol
 
mmmmhfthfth
 
fpm?
i don't know what that is?
 
. . .
 
@PreciousAniefiok that's why I provided a link which explains what it is... what web server are you running? Apache, nginx or something else?
 
Apache
Well i've fixed the problem.
 
7:27 AM
By installing nginx?
 
It was was a bad code, spotted out by my host provided, and it's working fine now.
 
tsk tsk.
 
:-P
 
apache is a great software.
 
Thanks for your help. I appreciate em'
 
7:29 AM
very modulable.
nginx has only very recently had dynamic modules
for most modules, even today, if you want it? you have to recompile nginx.
that sucks so much.
 
@FlorianMargaine I think you're the first person in this php room that have had the courage to say that :P I though everyone in this room hated apache with a passion.
 
@FlorianMargaine Dynamism is basically always a trade-off with performance. I can live with having to recompile nginx to add features, because it's something that one would very rarely ever need to do. Sure it makes it a bit of a pita in dev, but once you have your dev env it's there and you don't need to fuck with it.
My biggest issue with Apache though is the fucking madness of that config file
 
@DaveRandom no, dynamic loading can be done only once at startup
and it's a pita because every prod will have its own nginx compiled binary
working on 3 projects? 3 different nginx configs. and binaries.
 
@FlorianMargaine Wait, what the hell are you doing that one of the stock rpms is not enough?
 
@DaveRandom same here... the configs are truly insane
 
7:36 AM
@DaveRandom ever worked with multiple hosting providers?
 
@FlorianMargaine Yes but irrelevant because I just use these
fuck the hosting providers fucky repos (most of the time)
 
@DaveRandom I meant "managed hosting providers"
 
Oh no I don't have that particular displeasure
so yeh, very possibly there are issues I've never run into in that scenario
 
@Epodax I don't. It's stable, useful software. There are downsides compared to others like nginx, but there are upsides as well. It's always a tradeoff.
 
when I was working in a web agency (~$30k-$1M projects), for every project, we were doing the development, and another company was doing the hosting, we could only send them the source and instructions
 
7:40 AM
I do not envy that in the least. And yes I realise that I am in a privileged position to have never needed to worry about that.
 
@DaveRandom also, stock RPMs are missing modules that you might need for one project or another.
 
@FlorianMargaine I've never run into this but again, it doesn't mean that's not true
have you got any examples of such modules?
 
@FlorianMargaine interesting
 
don't use it
 
7:49 AM
lol
 
I'll come back to you when I have these problems for a bitching session :-P
 
I wrote it, so, don't use it in prod
8
 
I wrote it, so, don't use it in prod
 
@DaveRandom some CDNs call that "surrogate keys", if the topic interests you
@DaveRandom well, modules are getting converted to dynamic loading, so it should be getting finer these days
although nginx support for dynamic modules is not in a version you'll see before 2025 in red hat
 
7:52 AM
@FlorianMargaine sure, but that's what Remi is for :-P
 
heh
Remi is the dotdeb of RH :-)
 
Although nginx have their own repo anyway so in that particular case it's fine
as do pgsql
ugh, lightning strike trigger the surge protection on one of the power tracks in my building last night and now a load of people are complaining to me that they didn't save their work before they left without turning their computers off.
At first I was responding by laughing at them but after the 10th phone call it just gets annoying
 
Anonymous
How many people in your building?
 
Well, in my company about 250 at the moment
it fluctuates a bit because we are a call centre
 
that explains so much
 
Anonymous
7:56 AM
fack, why are there so many stupids :P
 
it's not actually my job to deal with this shit but I'm in the "IT" hunt group
> because we are a call centre
:-P
 
Anonymous
eh, I used to work in a call centre.. Look at me now? Fricken genius.
 
1 min ago, by Paul Crovella
that explains so much
 
Also have worked on the arse end of call centres
I suspect most people have
 
Anonymous
@PaulCrovella ass.
 
7:59 AM
On the technical side they are quite interesting though, generally a crapload of disparate systems, and making stuff talk to other stuff is what I like doing best
 
Anonymous
I was only 16 at the time mind
 
Yeh, now you are 17 you're much wiser.
/hides
 
Anonymous
I dislike you.
 
Anonymous
Boring question alert - what telephone system do you use there?
 

« first day (2160 days earlier)      last day (2791 days later) »