« first day (2055 days earlier)      last day (2876 days later) » 

12:03 AM
12 mins ago, by Fabor
Think a good hybrid exists between a laptop for travel and development?
no
 
Pretty much I guess.
I guess the latter is more important as the money-earner.
 
Wes
travel + computer. i imagined stephen hawking's wheelchair. i'm an heartless person
 
Ekn
:p
oh that reminds me the new game called science kombat
... and I burned my left hand just now. great
 
Wes
@Ekn lol
 
Burnt it on what?
Well I just beat Stephen Hawking as Einstein
 
Ekn
12:13 AM
bbq..
 
I want BBQ
 
Ekn
It's called asado here
 
Haven't had BBQ in far too long. It's like a vaccine I need to have at least yearly. British weather doesn't agree.
 
Wes
@Ekn does the word come from "braised"?
it's "brasato" here. interesting how languages evolve
 
Actually there's an all you can eat Brazilian BBQ place just down the street tbf. But All you can eats are something I believe you should train for.
 
Ekn
12:17 AM
Comes from latin word assatus iirc
And asar means to roast
 
Wes
yeah. that
 
Ekn
Funny thing, Argentina and Uruguay are rivals on this matter
 
I had some nice steak in Argentina
 
Ekn
Both say they're best at asado and when people from both countries come together for an asado.. it gets really funny to watch them cooking
 
Wes
:P
 
12:22 AM
Asado sounds like something the Uchiha would summon.
 
Ekn
Heh
 
12:38 AM
Seems Overwatch is all the rage these days
 
Ekn
Yeah it seems
 
At least it comes somewhat out of no where. Though very TF like it's nice for a popular FPS game to not be CoD, Halo or BF
 
Wes
1:23 AM
now watch this! old but lol
 
Wes
1:48 AM
youtube.com/watch?v=Rqnw5IfbZOU always wanted a guitar with 3 humbuckers. just because
 
2:14 AM
Moin.
 
Wes
2:30 AM
\o
 
in JavaScript, 9 hours ago, by Tarson
If anyone into wordpress dev new chat room http://chat.stackoverflow.com/rooms/113363/wordpress-development
Don't tell me this has been posted before.
 
Adi
2:56 AM
mornin
 
 
1 hour later…
Adi
4:21 AM
hello guys
 
Hello
 
Wes
mornings
 
'nin
 
4:37 AM
yoww
 
Ekn
4:49 AM
o/
!!urban elephpant
 
[ elephpant ] Either adorable, elephantine mascot of the PHP project or a person who is afflicted with PHP ... IF not Jeeves, of course.
 
Ekn
guess from where the example sentences are from :p
 
3
Q: New version of XAMPP giving error without message

Sagar NaliyaparaI have recently updated my XAMPP with new version [5.6.14] in Windows. In that new version i'm getting error while using it as shown in following two images, Problem-1: When I click on any table name on the left side panel to view its contents sometime i get this error message: 'Some errors...

 
Wes
@Ekn well played :P
you did that, right? :P
 
Ekn
yes :D it had to be dooone
 
Wes
4:57 AM
dat gif
 
Ekn
lol I actually don't even remember putting a gif there
 
morning @SagarNaliyapara
 
o/
@bhavin
 
I was stucked in a bug and I keep thinking what could be the possible solution until I go to sleep. Then in my dream, I was programming then when I woke up I solved the bug. And nobody cares :(
 
5:15 AM
oh
 
Adi
hello guys
can you please check my code why the image is not stored in my database even it says image is uploaded
 
moin
 
hello
@adi
 
Adi
5:37 AM
hello @MasoomBacha
did you checked my codes? @MasoomBacha
 
no
sorry em new in php
 
@Danack wiki.php.net/rfc/closurefromcallable can you finish this up please
(gratz)
 
Wes
morning joe
 
indeed
 
Adi
hello guys
 
6:03 AM
Hello
I think "did you check my codes" is my new "show me teh codez"
 
Mornin' o/
your update query is wrong
@Adi
 
Adi
@AdilIlhan where?
 
Adi
ooh I see, thank you @AdilIlhan
 
6:19 AM
hey guys, I'm trying to fetch the number of rows in a select statement, I'm not sure what's wrong with my php code
 
take a look at MySQL's Count function @SamIbraheem
 
Adi
@SamIbraheem use mysqli_stmt_fetch instead of mysqli_fetch_array
 
@Adi
@Adi thank u for your response let me check that
@AdilIlhan I don't know why I forgot about this
 
also if you fetch data through fetch_all
then you get sum of objects with count function
 
Adi
@SamIbraheem i think your code is a combination of mysqli and mysqli prepared? is that right @AdilIlhan
 
6:27 AM
yeah
 
Good morning
 
@Adi @AdilIlhan so you guys think I should either mysqli_prepare or mysqli?
 
what?
you can't use mysqli_prepare without mysqli
i prefer pdo to mysqli though
 
Adi
@SamIbraheem try to read this. php.net/manual/en/mysqli.prepare.php this might help you
 
6:45 AM
@adi didn't work still giving me null result
 
moin
 
'nin
 
Ekn
mornin
 
o/
 
Adi
@SamIbraheem
 
6:52 AM
Is it possible to give multiple options in json_encode?
 
Yes, it's a bitmask
OPTION_FOO | OPTION_BAR | OPTION_BAZ
 
thanks, mate!
 
Adi
i change some of you codes. http://pastebin.com/T1m4dLc0
try to replace it with this
 
@Adi E_PLAINTEXT_PASSWORD
 
^^
 
6:57 AM
@DaveRandom nice constant :)
or error type :D
introduction to space journey :D
 
@Adi @SamIbraheem pastebin.com/fV6n29pg is the minimum of what you need to be doing for anything approaching security. You'll need to store the user's password as a hash generated by password_hash() in the first place for that code to work.
 
@DaveRandom thank you so much for your concern my dear, but this is a simple graduation project where the focus is on the process itself
@DaveRandom but this is actually quite good, you are great
 
Wes
7:15 AM
error github.com/php/php-src/blob/master/php.ini-production#L689 would PR it if i knew how encodings work :P
 
Anonymous
@PeeHaa @RonniSkansing I'm glad both of you couldn't hack my library.
 
Anonymous
Now if you'll excuse me, I'll have my beer 9:00 am.
 
@samayo which lib?
 
Anonymous
@Saitama github.com/samayo/bulletproof They thought they could find some exploits namely, using curl to upload a file with slashes and create directory traversal attack
 
oh :P
transcript?
 
Anonymous
7:21 AM
?
 
nvm...
 
Anonymous
hmm github has "add a bio" feature now.
 
Anonymous
 
Anonymous
morisdgh
 
@samayo isn't your pic that guy from tekken?
 
7:25 AM
@JayIsTooCommon 'nin
 
Anonymous
@Naruto Yeah
 
Anonymous
Lei Wulong (雷 武龍(レイ・ウーロン), Rei Ūron, pinyin: Léi Wǔlóng) is a fictional character from the Tekken fighting game series. Tekken 2 introduces him as a respected police officer who puts countless criminals behind bars. The game goes on to detail his investigation of Mishima Zaibatsu's illegal hunting and trading of endangered species. He continues to fight against Mishima Zaibatsu in Tekken 3, 4, 5, and 6. He also appears in other Tekken media, as a playable character in DLC for Street Fighter X Tekken and several non-canonical Tekken games. Lei is a homage to Jackie Chan, as the latter's period kung...
 
@samayo I knew it! headbuts were too strong back then :D
 
btw, does seg fault arise, only when there is something buggy in php or any ext?
 
Anonymous
Yeah, he was my favorite
 
7:27 AM
@samayo Paul was my favorite :P
 
can it happen because of something in the userland?
 
Anonymous
@Naruto Yeah, he was good also.
 
King was teh bset
 
Adi
what version of tekken are you playing guys?
 
I'm not playing anymore :P but used to play tekken 3
 
7:29 AM
^ this
 
Anonymous
I haven't played it since 2009, but I would like to. T3 was the best.
 
Adi
try to play tekken 2 guys. its cool
tekken tag 2 i mean
 
who knows little fighter 2?
 
Anonymous
Yeah.. I've played all except T7.
 
little fighter 2 was my favorite computer game
 
Anonymous
7:31 AM
looks fun
 
7:43 AM
mornin'
 
Anonymous
@Oldskool o/
 
morning\
 
'nin
 
Morning again
 
hello
 
Ekn
7:59 AM
'nin
 
Morning
 
Morning
 
for( ;; ) {
echo "Morning";
}
 
[ 7.0.0 - 7.0.7 ] Fatal error: Uncaught Error: Call to undefined function array_shuffle() in /in/hWomg:1 Stack trace: #0 {main} thrown in /in/hWomg on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
Oops
 
array_rand
or shuffle
 
user1694691
Does anyone know the plans for PHP, Apache, & HTTP/2 support? As I understand it, Apache is currently acting like a HTTP/2-HTTP/1.1 proxy; so PHP is, essentially, running in an HTTP/1.1 environment; with the same environment variables, and having to return the same HTTP/1.1 message format Is this correct? Are there any plans to change this?
 
8:02 AM
[ 5.5.0 - 5.6.22, hhvm-3.9.1 - 3.12.0 ] Fatal error: Call to undefined function array_shuffle() in /in/hWomg on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ 7.0.0 - 7.0.7 ] Fatal error: Uncaught Error: Call to undefined function array_shuffle() in /in/jJp0T:1 Stack trace: #0 {main} thrown in /in/jJp0T on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
Anonymous
O.o
 
Okay, Jeeves, I suck I get it :V
 
[ 5.5.0 - 5.6.22, hhvm-3.9.1 - 3.12.0 ] Fatal error: Call to undefined function array_shuffle() in /in/jJp0T on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
what is array_shuffle?
there is shuffle()
 
Anonymous
Is Jeeves losing it or is this expected? XD
 
8:04 AM
!!docs shuffle
 
[ array_udiff() ] Computes the difference of arrays by using a callback function for data comparison
 
No that was me. I edited my original !!eval and Jeeves ran it again
 
Anonymous
ahhh
 
[ shuffle() ] Shuffle an array
 
Functions can have return type hinting now too, right?
 
8:06 AM
in PHP 7 yes
 
@ScottArciszewski return type hinting doesn't work for anything before php7 anyway
 
syntax error :)
or should that be ):
because, y'know
foo(): int { }
 
Anonymous
!!wotd
 
tickety-boo: fine; OK.
 
Anonymous
o_O
 
8:12 AM
posted on June 01, 2016

New Cyanide and Happiness Comic

 
0
Q: find the skew angle or the small rotation angle caused by scanning with php

Tanzim Hasan FahimFor a project I need to scan many pictures for but sometimes output image comes with a skew or little rotation (correct me if I am wrong). so i just want to rotate it to its actual position for image processing. or even if i could know the angle only that will be enough. I want to do it with PHP...

 
user1694691
@TanzimHasanFahim php.net/manual/en/imagick.deskewimage.php Imagick::deskewImage
 
Anonymous
When did CasperOne stop being a moderator? Did he 'resign' ?
 
Seems todays WotD is sponsored by Del Boy
 
:D
 
8:53 AM
Hello
I want to discuss a topic over here which is regarding non english characters and html form.
is anyone around?
 
Wes
> Don't ask to ask, just ask.
 
okay
 
I am reading "PHP Objects, Patterns and Practice 4th Ed", and found an error (as in something contradicting with the PHP official documentation). I would like to discuss this with the community, which of the StackExchange websites would be the most appropriate? Thanks
 
Anonymous
@bg17aw Probably the one you're in, ask away :)
 
I was thinking that posting a question on one of the StackExchange sites would be a more permanent solution, chat being totally ephemeral (short-lived) ?
 
Wes
9:06 AM
@bg17aw literally all books contain errors
 
Anonymous
@bg17aw If you want to post a question regarding PHP then sure, but if you want to discuss an aspect of documentation, I personally think here is better
 
@JayIsTooCommon Yes, that makes sense, thanks
 
hi
 
m,oprngin
@samayo tbf I didn't even have a look at your application
 
Anonymous
o/
 
9:21 AM
\o
My concern regarding html and php is
I am using a text field with a Hindi language font family.
When I type a text in it, it get displayed in hindi language.
But when I save it in database it save it's english letters.
the letters which I have pressed while typing to get my hindi text.
How can I get the same text which is in the textfield.
 
@bg17aw There's always a chance that the PHP documentation is wrong, what's the error that you found?
 
@MouseCrasher probably an encoding issue
 
Anonymous
@MouseCrasher stackoverflow.com/questions/4557564/… Even the same language :-)
 
Morning
 
Anonymous
moins
 
9:25 AM
I have set utf8 for everything like html charset, sql, my php encoding as well
You know what when I copy paste a string in Hindi language it get stored in Hindi.
But when I type hindi words it displays hindi in text input but save english chars.
 
@MouseCrasher ok, maybe a screenshot of what's happening would help
 
Okay give me a minute
this is the case when I copied and paste the values in textfield and text area
and this is what stored in database imgur.com/I6GOnSy
means this is the case when I copy paste values in textfield it store correct values.
now let me show you the values when I typed
I typed values and it get displayed in hindi and clicked on save
and its db screenshot after save imgur.com/G830z1L
you will see second entry has english words.
Instead of english I want same hindi chars which get displayed in textfield.
@Ham
@HamZa please check.
 
9:40 AM
@MouseCrasher what in the world are you doing to get that converted?
 
I have set the font family and also utf8 charset.
If it's taking copy paste values correctly then I think it should take typed values correctly as well.
 
@MouseCrasher Most likely you are using a specific font which maps "normal" text to hindi
Think something like fontawesome for reference
This is most likely not an encoding issue, but the actual characters in the field
 
Ohhk. Let me explain you how I am using font faces.
 
You are typing on an us like keyboard I assume?
 
I downloaded the Hindi font and used Squirrel Font-face to create a web kit font.
It create a woff file format and then I used that for hindi font face.
 
9:47 AM
1 min ago, by PeeHaa
You are typing on an us like keyboard I assume?
 
You shouldn't pre-escape data before storage right? Only when it's being viewed
 
Yeah @PeeHaa
 
Sanitizing, yeah, but not escaping
 
I am typing with US keyboard
 
9:48 AM
@Sean nope
 
@HamZa Good, glad I'm not going crazy. Just spotted a chunk of code about to get pushed
 
@PeeHaa I am typing using MacBook Air default keyboard which is US.
 
Anonymous
Is it possible to code in CoreM laptops?
 
Anonymous
I mean, how good/bad is it.
 
Anonymous
9:50 AM
?
 
Moin v2.
 
They're pretty small, it might be a tight squeeze trying to get inside one.
 
Anonymous
@salathe ?
 
I think it all depends on the taste of the developer...
I've seen people code on 13" screens which I personally find absurd. I like to dev on 17" laptops
 
@samayo "Is it possible to code in CoreM laptops?"
 
9:52 AM
@MouseCrasher So the actual characters you are typing are just ascii
 
Your font maps ascii characters to hindi glyphs
 
Anonymous
@Saitama o/
 
Anonymous
@salathe I'm talking about coding, compiling .. running vms and IDEs .. not the screen size.
 
What is getting sent to the server are "characters" and is not related to fonts
At least that is my guess what you are confused about now
 
9:54 AM
@PeeHaa yeah I got your point. But how can I resolve this.
I want to display different fonts in textfield and want to save the same in database which get displayed.
 
@samayo nevermind :)
 
Anonymous
you're getting old
 
I don't no about ascii -> hindi conversion rules assuming it's possible (most likely yes, because your font seems to do the same thing)
 
@HamZa I like to dev with resolutions higher than FullHD (1920x1080) … that's the most important point… a 15" laptop with 2880x1800 is fine too for me…
 
fwiw I mostly steer away from i18n and custom mapped glyphs when I can
 
9:58 AM
@Sean now that you have posted that, I wonder what's the best way to use htmlspecialchars()? I mean there are several extra parameters for that function...
 
@Sean What's that?
 
user1694691
 
Please don't use generic xss prevention functions
 
Some code submitted by another dev for deployment. I thought it smelled a bit so I'm raising it as an issue
 
Is there any reference using which I can move ahead on it?
 
9:59 AM
Yeah that's a terribad idea
 
@bwoebi I see, I guess you're using an apple?
 
@HamZa right
 
@MouseCrasher I would just google/research the issue
 
@Sean The moment somebody uses single quotes for attributes you are fucked with that
 
@HamZa okay thanks
 
10:01 AM
Also I'm not a big fan of stripping tags when I don't specifically ask for it
 
@MouseCrasher I think you should give the transliterator class a try: php.net/manual/en/class.transliterator.php
 
hello
 
would be something like this:
$transliterator = \Transliterator::createFromRules(':: ASCII-Hindi;', \Transliterator::FORWARD);
$hindi = $transliterator->transliterate($ascii);
but I am not sure if this transliteration actually works, you may need to dig into the ICU userguide: userguide.icu-project.org/transforms/general
 
Has anyone have English verson of it youtube.com/watch?v=12P_I4p-zk4 (THis is interview of gordon i think its in german)??
 
Anonymous
@PraveenKumar YT has auto-translate, not sure how accurate it is though
 
10:15 AM
multiple re rank with pagination in php
i am using below code
$query = $this->db->query("
	  				SELECT UserID, TotalMember,SignUpDate,AcceptedDate,email, Rank
					FROM
					(
					SELECT UserID, TotalMember,SignUpDate,AcceptedDate,email,
					@r := IF(@c = TotalMember, @r, @r + 1) Rank, @c := TotalMember
					FROM
					(
					SELECT UserID, TotalMember, SignUpDate,AcceptedDate,email
					FROM tuser t
					ORDER BY TotalMember DESC,AcceptedDate ASC, SignUpDate ASC LIMIT $start, $limit
					)
					t CROSS JOIN
					(SELECT @r := 0, @c := NULL ) i
					) q;");
 
@JayIsTooCommon Yes thank you found it but not getting words though ;)
 
how to set pagination like 1,2,2,3,4,4,4,4, next page "4"
 
hello one and all, i am successfully creating a ZIP file on my server / local but when i try and set the headers to send to the browser (through an API) the zip file is always empty.
I'm using the following headers:
header("Content-type: application/zip");
header("Content-Disposition: attachment; filename=\"".basename($zip_filename)."\"");
header("Content-Length: ".filesize($zip_filename));
 
Any one help me?
 
@vijay Relax if anyone will be interested they will answer you as soon as they get what you are asking...
 
10:22 AM
i thought it might be a filesize issue but the header is sent with the correct Content-Length
 
Can't I have recursive anonymous functions? (without assign it to a variable)
 
No
 
@malukenho JS has that
poor PHP language
so bad, so bad
 
@FlorianMargaine :/
 
hello
 
10:28 AM
@ScottArciszewski the RFC for sodium looks good, but why in the world do we keep abbreviating all this stuff everywhere? It's painful to read and follow :-\
also, I'd rather just keep it namespaced too: easier to discover/filter functionality too
 
how to set pagination like 1,2,2,3,4,4,4,4, next page "4"
 
Anonymous
@vijay Stop spamming, you'll be kicked.
 
@FlorianMargaine :P
 
10:42 AM
@Sean You forgot to mysql_real_escape_string() and urlencode() it
 
@DaveRandom :V why not throw in some str_replace just to make sure
 
Also rot13
 
Probably should highlight_string() as well
 
Oh! can also do some regex to match html tags that striptags don't pick up, right guys? right?
h̞̩e̳̟̣̖̦̥̯͟ ̘̠̺̮c͉̱̹o̝͇̯̦͝m̧̭̭̻̥e̲̣̭͖̞̯ͅs̛͙̬̗̝
 
BTW @malukenho if you really need it you could also look into y combinator
 
10:45 AM
@Sean Just change the code to foreach ($_POST as $k => $v) { $_POST[$k] = 'h̞̩e̳̟̣̖̦̥̯͟ ̘̠̺̮c͉̱̹o̝͇̯̦͝m̧̭̭̻̥e̲̣̭͖̞̯ͅs̛͙̬̗̝'; }
 
Use &$v like normal people @DaveRandom
 
omg you're still alive
o/
 
\o/ got out on parole as @tereško noticed :D
 
hello
please give me solution
of my question
http://stackoverflow.com/questions/37566280/how-to-compare-key-and-value-in-more-than-two-array
here is my question
 
hi, i have a windows application, in my site i want put a file for download an directly import to my windows application. how can i do this?
 
10:57 AM
!!rfcs
 
Should we just have that recheck every few hours? /cc @PeeHaa
 
Yes please
 
11:15 AM
anyone got any clue how beberlei's RFC watch thing works in terms of generating a live event feed? I can't make any sense of it
 
Ask @beberlei?
 
Does he come in here? I have no energy for other communication channels atm
 
It's been a while since he's been here afaik
 
11:35 AM
I poked him on IRC, but he's not there atm
 
@PeeHaa Yeah, that was fun.
@PeeHaa Caused some minor panic here yesterday as well :)
 
Fun fun fun
 
Scary and stupid shit like that happens to all of us. :P
 
11:44 AM
single point of failure: composer
:)
even github
 
Yeah that is a problem
@AdilIlhan If you need github to be able to work you are doing it wrong
imo
 
dependencies?
 
Just install toran proxy?
 
to be honest, i have never need to Toran proxy
i used to github
 
Except when you are on a plane, or a train, etc
:D
 
11:52 AM
Or github is down once again
 
well, i prefer read book to coding while on plane :D
 
!!github
 
good: Everything operating normally as of 2016-05-25T18:44:58Z
 
@PeeHaa Doesn't look like it.
 
Neh was pointing out why depending on github sucks :)
 
11:53 AM
heh, hurry up! let's install the dependencies :p
 
@PeeHaa Oh, yeah... well that is a downside ;-)
 
Also storing stuff in murika is a terrible idea
 
Anonymous
Ah you did it!
 
Anonymous
What does that do? Get the latest tweet?
 
@JayIsTooCommon ?
 
11:56 AM
Toran is not bad project. i just don't need it
 
Anonymous
Where are you getting the github status from?
 
@JayIsTooCommon status.github.com? :D
 
hmmm @Sara made it so probably she just asks unicorns
 
Anonymous
!!version
 
But yeah otherwise status.gh is a decent guess ;)
 
Anonymous
@PeeHaa Ah. I still think we should add twitter.com/githubstatus?lang=en-gb to the auto-feed thing
 

« first day (2055 days earlier)      last day (2876 days later) »