« first day (2064 days earlier)      last day (2902 days later) » 

Wes
12:27 AM
hodor
 
Wes
lol
the irony
 
Ekn
:-D
 
Wes
Schrodinger's File: https://t.co/bBLxbi9740
 
Hey @FélixGagnon-Grenier
I have te php in PDO to connect to the database
with mysql_query i had
require_once __DIR__ . '/db_connect.php';

$db = new DB_CONNECT();
with PDO now how is it?
because in the tutorial dont say anything
Or someone can help me?
This is my php to connec to the database
<?php

//Clase utilizada para conectarse a la base de datos

class DB_CONNECT {

// Constructor
function __construct() {
// llamamos a la funcion connect()
$this->connect();
}

// destructor
function __destruct() {
// cerramos la base de datos
$this->close();
}

// Funcion connect()
function connect() {
// importamos las variables para conectarnos a la base de datos
require_once __DIR__ . '/db_config.php';

// conectando a la base de datos (el @ lo puse para omitir una alerta)
but i have to change it to using with pdo
 
 
2 hours later…
Wes
2:19 AM
 
Wes
2:35 AM
 
Wes
2:59 AM
 
 
1 hour later…
Adi
4:06 AM
hello guys
anyone here?
 
@JasonMonts this is a somewhat broad topic but it boils down to: you have to create a function that returns a pdo object, and then use the same object everywhere you need it. It's important, if you want to created a testable and modular code, to avoid using global variables, if ever your readings get you over there.
The php manual for pdo __construct should be everything you need to succeed
 
Adi
@FélixGagnon-Grenier how do you usually display data from your database? using tables or using any text fields?
 
@Adi I don't understand your question
But the flow from db to screen usually is something like data is fetched into domain entities, presentation objects then use these entities to present views of the state of these entities
 
Wes
4:42 AM
!!rebecca
 
@wes the progression of those three images make me wonder
 
Wes
it was planned, of course
 
you planner
so let's clear tha queue
 
Wes
while($queue->peek()) $queue->poll();
 
4:58 AM
lol. we have that here too
you mean it's actually much colder than it should @Wes?
 
we have summer here and it's uncontrollable..
 
Wes
yes, mother of god i had to go back to full winter clothing
7°c right now. the fuck
 
@AnmolRaghuvanshiVersion2.0 It's 29c here.
 
Wes
5:02 AM
but i hear close areas aren't getting weather that bad. it's just above my house, evidently
 
heh
always is greener...
 
@littlepootis here today it's 41celcius
 
are you serious?
 
@AnmolRaghuvanshiVersion2.0 woah, where do you live?
 
Wes
that's full summer
 
5:03 AM
that's objectively hotter than your body (no pun intended)
 
@littlepootis rajasthan somedays ago it's 55
maximum temp recorded..
 
Wes
i think the max i've experienced was like 45
 
@AnmolRaghuvanshiVersion2.0 oh, when does Moonsoon start there?
@Wes same
 
around june end or july
 
Oh, it's started for us.
 
5:06 AM
you must be having moderate temp all over year?? @littlepootis
 
> It is located on the north-western side of the country, where it comprises most of the wide and inhospitable Thar Desert (also known as the "Rajasthan Desert" and "Great Indian Desert") and shares a border with the Pakistani provinces of Punjab to the northwest and Sindh to the west, along the Sutlej-Indus river valley.
 
@AnmolRaghuvanshiVersion2.0 Yeah it's almost always 25 - 35.
 
that's badass
 
It hit 12 during last winter.
 
@FélixGagnon-Grenier :P
 
Wes
5:11 AM
i'm getting angry because of this freaking weather because i was doing great jogging every morning but i had to stop because rain wind and wrath of god
 
getting in shape for summer @Wes?
 
Wes
nope, trying to not die before my 50th birthday
 
Wes
:P
 
does anyone prefer going to gym?
 
5:14 AM
posted on June 10, 2016

New Cyanide and Happiness Comic

 
right, it's a bit closer :) also could have been "do you prefer to go ...."
I personally can't stand gyms mostly
 
Ekn
same
 
Wes
i can't stand people so yeah, includes gym people
 
@FélixGagnon-Grenier :) thnks
 
Adi
5:37 AM
is it possible to have two while loop in one table using the same query?
 
I have a function in a trait that I want to override, but in the overriding function, I want to use the original. Is it possible
 
@GiantCowFilms Hello Curious. I am Jeeves.
3
 
@Jeeves Suddenly I ruin your joke
Jeeves is a bot...
this could be fun!
I'm a bad robot, test.
nope....
I'm Confused, will the bot pick on me now?
 
@Jeeves thank you?
 
@AnmolRaghuvanshiVersion2.0 You're welcome!
 
5:46 AM
@Jeeves Hello
 
Ekn
:p
 
@Jeeves Thank you?
 
@GiantCowFilms You're welcome!
 
Ekn
@Jeeves <3
 
@Ekn I love you too :-)
 
5:47 AM
@Jeeves Awww!
@Jeeves :P
@Jeeves ;)
naturally, none of these work
 
Adi
@Jeeves Hello
 
Hi
sorry for interrupt guys!
 
Morning.
 
I do have one issue with linkdin api .. i do have website with import inkdin profile same with ios app.
good Morning!
 
Adi
can anyone help me here in my codes? im trying to use two while loop inside one table and the same query
here is my codes
 
5:58 AM
authorization failed
 
Website seems fine but application having issue of
 
6:10 AM
33% off on xcom 2, hmmm
 
!!rebecca
 
Woooo! He's back!
 
@Jeeves <3
 
@Saitama I love you too :-)
 
6:15 AM
@Saitama I'm so dissapointed that there were no mechs in x-com 2 :(
 
Adi
@Jeeves Hello
 
:|
 
But other than that, it's a quiet good game :D
 
6:28 AM
awful game
mornin
 
Not much for turn based huh @SergeyTelshevsky ?
 
well.. I'm not a fan, but I liked the earlier games. as to why I don't like x-com 2:
mission 2, wasted too much time to get to the end of the mission, but the container is on fire, which was not supposed to be there... it's an occasional bug someone had too
instadelete
:)
 
Yea, it was a rather buggy release.
Specially performance wise, I mean, my GTX 970 had troubles running it on medium / high because of poor optimization / graphic bugs.
 
I regret I've played it on the first week after release..
hm
I have gtx 970 too, but it was quite OK on max
the MSI one
 
Gigabyte here.
I might've just been unlucky, but I soldiered through it and at some point they updated the game and the lagging was gone and I put the graphics back to max.
 
6:36 AM
MSI FTW!
 
I find i prefer gigabyte simply due to the fact that the cards I've researched, gigabyte seems to come out ahead in pretty much everything (albeit by a small margin most of the times).
and then I like the 3xWindforce design ^^
 
:]
 
IIRC when I've had to make a choice between MSI/Gigabyte/ASUS GTX970 every review said MSI is the most quiet and had the least problems reported
 
Wes
gigabyte last ages, asus max 2 years
 
so I picked it up, last summer, and a month ago built a second PC with the same MSI 970 as well
 
6:40 AM
In the end I don't think it really matters what brand you pick, unless you are a real hard core OC'er that needs to press every bit of juice out of the build.
 
THAT said, Gigabyte still beats MSI :P
 
in being worse it sure beats it :P
 
Lies and slander! Lies and slander!^^
Ah, I better get back to figuring out how to properly monitor my pfSense gateway.
 
I was a little confused about this: pastery.net/jdrrac
What's the right way when I am in:MainFolder to move alle files in that folder to old/ ?
 
6:55 AM
is main folder means public html?
 
No, just a'a folder somewhere in filestructure'. But I think that's not really related to this? I want to make sure the 'mv' command I run is correct before I execute.
 
@Duikboot should the directories be moved as well?
 
Seems ' mv * /OtherDir ' just works :D
 
--- before old does it make old folder outside main folder?
 
No it's iside it.
 
7:03 AM
hmmm no it shouldn't work in bash..
 
Oh everything seems to be moved? :D
 
if you want to move everything to a sub-directory that already exists in the directory you should move everything BUT the target sub-directory mv !(subdir) subdir/
 
You are right, I received a message about 'can't move to a folder that already exists or something? But it got executed...
 
doesn't matter
 
mv * old/
'mv: kan ‘old’ niet verplaatsen naar een submap van zichzelf, ‘old/old’'

Can't move 'old' to a subfolder of itselves, 'old/old'
 
7:05 AM
even if something was moved you may run the code above and it will move everything else
 
Was the message
 
depends on when the error was executed - before or after all other files/dirs were moved
 
Hmm no idea,... after I exectued the command.
Im trying to setup 'cheat sheet' for myself to get more used to work with the commandline :) gist.github.com/duikb00t/7725bf35ca62dd78b470
 
7:22 AM
@iNikem @go_oh @yegor256 @GeekOutEE she looks sooooooo sad, can't you see? I don't get why people take this serious, it's a joke
sigh some folks
I dont know what to answer him. 140 chars are too short …
@Sara @Ekn can I have your opinion on twitter.com/yegor256/status/740861256077324289 please
 
Morning
 
morning
 
'nin
 
o/
 
Goedemorgen...
 
7:36 AM
moin
 
@Saitama Sapphire FTW :P
... just saying
 
:P
@PeeHaa 'nin
 
Anonymous
Good morrow
 
Very trippy use of neural networks - 2001 rendered in the style of Picasso.
 
7:40 AM
3v4l.org/LlfmE does the commented line knows by itself the first 2 are the type defs and the other 2 are the values? not sure how it works.. can someone enlighten me a little why it does what it does
 
@DaveRandom BTW I'm going to change the fequency to either 100 or 1000
 
!!friday
 
Oh PMs?
 
@PeeHaa Hang fire with that, I'm going to make it per-room configurable via !!dadgreet on [frequency]
 
7:41 AM
oh lol cool
 
Can change default to 1k though
 
Probably a good idea either way. I've seen it being executed a lot yesterday so the novelty wears off too fast
brb I'm hungry
 
@PeeHaa agreed
 
user6412824
hi guyz
 
Wes
7:55 AM
isn't there a simple way to convert "abc" to "\x61\x62\x63" right?
sprintf maybe has that option?
also morning :B
 
@Wes dechex, ord magic
morning too
 
Wes
yeah i know that, was wondering if there was an alternative
 
Don't think there is a nicer way
Not that I can think of right now anyway
 
mornin
 
8:00 AM
@Wes why?
What are you actually doing?
!!> echo var_export("abc\x00\x01\x02");
 
Wes
just out of curiosity. it seemed stupid doing it with ord
 
[ 5.5.0 - 5.6.22, 7.0.0 - 7.0.7 ] 'abc' . "\0" . ''
 
huh
fail
 
[ hhvm-3.9.1 - 3.12.0 ] 'abc' . "\0" . ''1
 
lol wat?
 
Wes
8:01 AM
lol
ah, it's the echo
evidently var_export returns true on hhvm
 
lel
 
Nohaa. it's lol, not lel.
 
lul
 
@Wes What are you trying to do?
 
Wes
> just out of curiosity. it seemed stupid doing it with ord
 
8:03 AM
oh. stupid api
 
Wes
i'm checking unpack() right now. might that help?
 
Not really, that's for binary unpacking
kind of the wrong way round
 
@Wes That doesn't explain why. Why are you curious? :P
 
Is there no printf option?
 
!!> printf("%x", ...str_split("abc", 1));
 
8:05 AM
Surely that wont work
The fundamental problem (that has annoyed me a lot before) is that $str[0] is still a string
 
Oh wait, that's still wrong.
 
!!> printf("%x", ...array_map('ord', str_split("abc", 1)));
Then you need to pad it with \x
 
@tereško I picked up Shovel Knight yesterday. I like it. Seems fun.
 
@DaveRandom needs to repeat %x
 
5 messages moved to bin
@kelunik with all the fcall overhead, loop is probably the generally better option anyway
tl;dr @Wes do it manually :-P
 
8:09 AM
BTW @all I'm going to limit the output of 3v4l to the latest php version only by default
 
Wes
@kelunik not much. i'm doing encoding stuff and i wanted to visualize stuff in hex so i wrote the echo '\x' . dechex(ord($string[$i])); thingy and wondered if there was a better way. just that :B
 
!!> $str = "abc"; $chars = array_map("ord", str_split($str, 1)); printf(str_repeat("\\x%x", strlen($str)), ...$chars);
 
@PeeHaa He added the "preview" thing on the site, I assume there's some way we could hit that and only have the server execute one version?
 
[ 5.5.0 - 5.5.36 ] Parse error: syntax error, unexpected '.' in /in/bON3H on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
8:09 AM
Yeah that's what I want to do
 
cool
 
With an extra option for hhvm and old
 
@Wes Just bin2hex and dump that.
 
Ahh, looks like they found out who broke the internals mail server. heh.
 
@PeeHaa Can you add piping it through php -l before we even send it to the server?
 
8:10 AM
 
Cheats :P
 
@DaveRandom yeah
@kelunik heheheh
 
Wes
@kelunik there. i didn't know that existed :D
 
@PeeHaa I tried a few days ago but I think amp/process doesn't play nice with windows @PeeHaa, either that or I was Doing It Wrong™
 
Clickbait Rebecca Friday ruined by h4x :P
 
8:11 AM
@DaveRandom It should play nice.
 
@kelunik I had problems with stdin never being writable (I think)
As I say, I may have just been doing something dumb
 
@Fabor step up your game, see e.g. goo.gl/qaZka
 
I don't do url masking though :P I want them to feel the pain as the tab loads.
I do wonder if the cheat bot follows the links though
 
@Fabor Cheat bot?
 
8:14 AM
Your link detection thing :P
 
It's just a single line of CSS.
 
Cheating Super Script
 
Actually two lines.
a[href^="https://www.youtube.com/watch?v=kfVsfOSbJY0"] { color: #d00; }
a[href^="https://www.youtube.com/watch?v=kfVsfOSbJY0"]::after { color: #333; font-weight: bold; content: " (REBECCA)"; }
 
heh nice
 
@kelunik This is the sort of thing that makes me generally not understand why people seem to be so obsessed with array_map sometimes. I find that about 200% less readable than the equivalent foreach
 
8:15 AM
@DaveRandom +1
 
@DaveRandom Because it makes you feel clever.
 
@DaveRandom this is more about purity
with array_map, the flow of the code is elegant
 
I... don't understand that
 
with foreach, you have to mutate the same "result" array over and over
 
8:18 AM
But that's what array_map is doing, you just don't see the temp variable
and you add a whole bunch of extra wordyness
 
exactly, the flow of the code remains pure
it maybe does stuff behind the curtains, but you, as a developer, don't see it
to you, you're not mutating the same array over and over
 
I might would feel differently if we could do []->map($el => $el->foo()) or something, but as it stands it's feels more cluttered than a tmp var to me
 
Anyone here actually sit up straight in their chair? I'm am almost laying down most of the time. (No mother jokes Chris)
 
Anonymous
@Fabor fack.
 
@DaveRandom that's fair
 
8:24 AM
@DaveRandom Yes, we really should have methods callable on arrays.
 
@NikiC Am I mistaken, or wasn't the behavior before intended behavior? AFAIK refs inside arrays should be preserved… git.php.net/… (so that copies of an array are all referenced equally on that element)
 
Is it just me, or has the mailing list been completely silent for the last 4 days?
I haven't received an email since June 6. Is the server down or something?
news.php.net/php.internals Seems nothing is coming through or no one is talking
 
@Sherif people have reported delayed delivery notifications, so something is up with the server
alpha1 was just released, so the mailing list isn't going to be silent
 
@bwoebi not rc=1 refs
 
@Fabor I'm tend to avoid retro-esthetic, too many disappointments
 
8:34 AM
@DaveRandom But the archives aren't even showing anything since June 6th, so surely this isn't just delayed delivery. This is nothing has come through in the last 4 days.
 
Anonymous
Jollow
 
@NikiC uh… but it's a common (well, for certain defs of common) way to write code like function() { return $this->array = ["foo" => &$ref]; } and manipulate $this->array["foo"] by ref…
 
@Sherif delayed delivery because remote server was not responding to connect attempts, sorry should have been more specific... relays delaying delivery
The news.php.net archives talk directly to ezmlm via news:// so if it's not showing there then it didn't get through to the list
 
@bwoebi in that case it's not an rc1 ref
rc1 ref = no ref
 
@NikiC it is… after return at least
 
8:37 AM
@bwoebi Can you should a complete code example?
It has always worked this way...
 
was changed with PHP 7…
hmm
And even more undocumented BC breaks… pfff
 
it took me about 4 weeks 2 weeks of limited exposure to start hating bootstrap
 
I was about to say that's high praise that it took so long
 
@NikiC Is always in your case since 7.0? :-D
 
@PaulCrovella naah , I just forgot, that between week 1 and week 4 I had 2 weeks making a small greenflield
 
8:46 AM
What's a small greenfield? @tereško
 
Interesting, looks like I just started receiving emails again.
 
In many disciplines a greenfield project is one that lacks constraints imposed by prior work. The analogy is to that of construction on greenfield land where there is no need to work within the constraints of existing buildings or infrastructure. == Cellular networks == In wireless engineering jargon, a greenfield project could be rolling out the second generation of cell phone networks. The first cellular telephone networks were built primarily on tall existing tower structures or on high ground in an effort to cover as much territory as possible in as little time as possible and with a minimum...
 
@DejanMarjanovic It's a small field, right, and and it's green
 
Anonymous
@tereško same here, mainly because it's too heavy even with custom grid-only install
 
Anonymous
Semantic-ui is fine but has some issue with mobiles
 
8:48 AM
@bwoebi up fuck?
 
@FlorianMargaine looks like…
 
@DaveRandom Well in @tereško case I thought it's more of a ocdn.eu/images/pulscms/OWQ7MDMsMzE0LDAsMCwxOzAzLDFkNiwwLDAsMQ__/…
 
@bwoebi gtg will check later
 
@DejanMarjanovic Ah, a field of rope.
 
And hope
 
8:52 AM
hehe
 
Look who's smiling for no apparent reason
WeeDaa :P
 
Speaking of smiling...
!!should I work today or do that drinking thing?
 
You should work today.
 
ok..................
 
totally not amusing
 
8:56 AM
fuck, it's cold
 
!!should I do paid work or work on my side project?
 
You should work on my side project.
 
thnx
 
on Jeeves' side project
 
That sounds like an innuendo Jeeves
 
8:57 AM
Jeevesus Christ @PeeHaa
 
@tereško lol 10° and raining :P
 
Oi Dejan, we're hiring foolio. Why ask people to message your php account if you don't respond
0/10
 
It's not working @Fabor :(
 
Get a real email account then.
 
I don't have a permit for UK @Fabor
I don't have a permit for anywhere
 
8:59 AM
get one then
 
^
 
Except Germany and Austria which are easier to acquire
 
What!? War criminals are not allowed to freely travel? I am shocked!
 
Because we pwned them in WW1 and WW2
 

« first day (2064 days earlier)      last day (2902 days later) »