« first day (2242 days earlier)      last day (2692 days later) » 

Wes
12:00 AM
i think it could work. except that would be simpler to have a token that never expires, i think. i have no idea
 
 
2 hours later…
Wes
1:54 AM
 
2:07 AM
I spent 10 min on this
thanks @Wes
 
Wes
lol
did you solve it? :B
 
not yet
this frustrates me
 
Wes
:P it's extremely simple. but took me some time too
 
@wes I got it
 
Wes
congrats :B
 
2:20 AM
right before my backup zip download ended
:P
 
Meh, it's another one of those where you have to look at it differently?
/me snores
I feel bad for voting -1 on basically everything Yasuo has proposed so far :S
he's putting some effort in it
 
Wes
!!rfcs
 
2:57 AM
morning
 
3:52 AM
mo0rning @Linus
@wes solved it.
Did some rotation :p
 
Wes
shhh :B
 
4:11 AM
okay @wes :–/
 
Wes
 
4:32 AM
!!dad
 
What do you call cheese that isn't yours? Nacho Cheese
 
That... that one is good.
 
@Jeeves get something new
:P
 
4:53 AM
\o
 
executing select query to count how many records are there in the table is taking 1 min 55.98 sec for 533,800 records ,is that normal or its slow because of my system configuration ?
 
@JoeWatkins o/
 
\o
 
Wes
5:09 AM
@SixthSense pastebin.com the query
that is strange though
you probably need to add indexes
also morning \o
 
morning Wes
 
Wes
@SixthSense you need to add the indexes for the columns involved
 
@Wes all the columns in the join are varchar . is it good to apply ?
 
Wes
yes
 
5:16 AM
okay let me try
now execution time is limited to 4.90 sec
but my another query is still taking time even though I applied indexes to required columns :(
where master_table contains 533,000 rows and table_name1 contains 166,000 rows
 
5:34 AM
please help me out with this....................stackoverflow.com/questions/40967039/…
 
I am playing around with Intervention Image and I think it is quite slow when you resize / crop images. Is it just me or is it a known fact that PHP image manipulation is slow no matter what. And is there a better library out there ?
 
Wes
5:47 AM
@SixthSense don't use subqueries, use a join there
 
can you suggest me that query?
 
Wes
select count(*) From table_name1 as xyz join master_table as abc on xyz.key = abc.key ?
 
6:02 AM
@AakashTiwari issue solved?
@Wes still slow dude..
 
Wes
@SixthSense i have bad memory regarding mysql but yeah it happens that queries perform slower than you'd expect
you can try SQL_CALC_FOUND_ROWS
 
but it will give total no of rows escaping limit
 
Wes
are you using a limit?
 
nope
 
Wes
so?
 
6:18 AM
what difference SQL_CALC_FOUND_ROWS will make?
 
Wes
in theory no difference, but mysql sucks
it may run faster
what's your current query right now?
 
select count(*) From table_name1 as xyz join master_table as abc on xyz.key = abc.key ?
 
Wes
are you sure that's exactly what you meant? :B
 
yes this is exact query I am executing over local
just table name changes.... :P
 
Wes
i mean, if you run
select * From table_name1 as xyz join master_table as abc on xyz.key = abc.key
is the recordset correct? i don't think it is
 
6:23 AM
yes no error till now but the problem is "its still running"..
 
@SixthSense No sir..still trying..how did you get an output..? I am stuck with the icon..:(
 
@AakashTiwari go to your browser logic.php I guess and click Ctrl+u
it will show you image tag
Like this Welcome to IT TV<img src="image1.png"/><img src="image2.png"/>
 
I would appreciate if anybody please help me on stackoverflow.com/questions/40968316/…
 
Wes
@SixthSense try on fewer lines first...
 
ok cool
 
Wes
6:34 AM
otherwise how do you know that the result is correct? by checking thousands of lines?
 
sure
 
Wes
:P
 
http://example.com?test=test1
in this^, test is called "argument" and test1 is called "parameter" .. am I right?
 
6:38 AM
test is key and test1 is value
 
I think "argument" and "parameter" are two words which are usable in URL things
 
Wes
@stack the other way around. test is the parameter, test1 is the argument
but key and value is way easier to understand :P
 
these are key value
value*
 
@Wes I understand
thank you guys
 
field-value
 
6:42 AM
so much booring day to work
 
If I link from a HTTPS site to a HTTP site is there any way at all that it will send the referrer?
 
@ujwaldhakal take a leave and stay home
after all its monday :P
 
I am using this code in php to insert e new row in oracle table
I assume some error in this script .
How can I get this error ?
 
@SagorAhmed be specific and tell us your exact error.
 
I want to know how to catch database error from php .
 
6:48 AM
use try catch
 
Can you give me an example ?
 
I am new in php and do not use try catch
 
check above link and practice it..
Good morning @Gordon
 
@SixthSense already on weekend for 2 days there should be 3days of weekend. :D m at office yawing and scrolling 9gag
 
6:51 AM
How to catch oracle database error from php ?
 
@ujwaldhakal tomorrow it will be fresh day
@SagorAhmed by using try{}catch(){}
 
yeah hoping for tomorrow
 
also, why don't you use pdo..
 
till then drink coffee or tea whatever you like
 
@SixthSense doesn't work for me :(
 
6:53 AM
@AakashTiwari what it is giving you on browser
 
yeah thanks for the idea
 
sixth sense u're off day too/.
?
 
@SixthSense that weird concentric rectangle
 
@ujwaldhakal no I am at office
 
6:56 AM
oh
 
@AakashTiwari after clicking ctrl+u ?
 
@SixthSense ya..what did you write in the foreachloop?
 
nothing I just executed your script and it prints Welcome to IT TV and 2 broken images
 
@SixthSense ohh..yeah I got that..I wanted to know why was it printing broken images
 
@AakashTiwari because your image path is not correct
 
7:03 AM
Hey guys I'm having some trouble with the string pos function
How can I properly check if a string has "/../../" or "/../" in it?
 
if you are coding and there are problems means you are certainly doing it right
use regx
 
I'm peanuts at it
 
preg match something is there for your issue
 
can I get a walkthrough =D
 
everyone here is peanuts google makes us squirell
 
7:04 AM
it's so hard to search for "/../" in google
 
see for this thread
generally i don't like to solve the problems of user
instead i want to give them a idea to solve them
 
I've been coding for like twelve hours =/ , but if you insist I'll try and learn it on my own
 
use this function
to check the presence of something in ur string
 
Sure
but I can't just plop in '/../../'
Where can I learn the syntax for it
 
@TheodoreEnderby is this an image path?
 
7:10 AM
  if(preg_match('/^//..///', $url)){
My best guess at this point
I'm working on converting some scraped data
and the data i'm scraping uses local routes ../../some-bs.html
they're either /../ or /../../ and I need to handle each differntly
I'm fairly good with google, but I can't understand regex like this and sorta need my hand held =/
 
so /../ has different logic if found and /../../ has different logic ?
 
if(preg_match('/^[\/..\/].*/', $url)){ ?
 
I've done quite a bit of googeling too and can't find any solid answers on converting local routes to absolute routes and am working on my own method
 
that case only applies to one
you need to check a or b exists
two different preg statment
 
7:14 AM
regex is crazy
 
when you know it ,its very useful
 
nin
 
Is there a cheat sheet you can reccomend? I'll try and write the second condition myself if you don't want to write the second one for me
 
you can get it in google itself
search for cheatsheet for regex
 
@TheodoreEnderby why do you want to check that in the first place?
 
7:17 AM
I explained a few lines above
converting local routes to absolute routes on scraped data
 
@tereško Sorry, I cannot understand this question.
 
ok so \ = escape
^ begins string
 
@TheodoreEnderby correct
 
( ) is group
what is + in that?
 
7:20 AM
dont paste here
read and understand
nobody here is teacher :P
 
I'm trying to understand out loud so you can guide me
 
@SixthSense resolved....made some modifications to the echo syntax
 
If you don't wanna teach me I can do it on my own not a problem
 
thats the spirit
 
@AakashTiwari then make that changes in your question as well by specifying the solution
this will help needy people
 
7:22 AM
sure ..thanks bro
 
Okay
I think I've got it figured out thanks for the help
 
(y)
 
7:43 AM
@tereško I really like "A tale of gods and demons" but the Bing Translate translation is killing me
 
@MadaraUchiha you're over
though i like the each and every words of madara
 
@ujwaldhakal Are you sure?
Or could it be that you're dreaming it?
 
haha m out of infinite tsukyoyami
 
Hi Anyone know hwo to implement aadhar api using php
 
@ujwaldhakal That's just what the infinite tsukuyomi would like you to think.
@Puneet You mostly read the documentation and make HTTP requests
Where are you stuck?
 
haha nice
 
YOu can see this link i have stuck in Error 570
 
Morning
 
afternoon
 
Wes
mornings
 
7:58 AM
how are u doin @wes
 
Wes
i think the explosion and river that is coming out my hot water boiler implies that is dead. i pay 80€ yearly for the obligatory maintenance. you would think youd avoid these annoyances.... but no. what a great way to start the week \o/ also, it's less than 2 years old
hopefully warranty is still valid..
it still works though :B i can haz shower...
 
morgen
 
morning @wes @PeeHaa
o/
 
8:24 AM
 
Anonymous
mornrong
 
jo jay
 
Anonymous
@PeeHaa Why don't yow like this? out of interest
 
Nowhere in the rfc does it say what specific problem it fixes. It adds very little. Also look at the author.
 
Wes
@PeeHaa can you take a look at this ? stackoverflow.com/questions/31449434/… josh from the html room wanted to know why is that wrong and if it's actually wrong. i'm incompetent so i couldn't answer :B
 
8:29 AM
Also look at the commits. Ain't nobody got time fo dat
@Wes huh
The comment you mean right?
 
Wes
yeah
 
Another brick in the wall
 
Wes
i don't see why that "would defeat the purpose of csrf token"
 
Me neither
 
Anonymous
@PeeHaa racist
 
8:37 AM
@Wes Commented
 
Wes
ty :D
 
It's odd the thing got that many upvotes though
Makes you wonder whether I am missing something or there was some ninja edit
 
Wes
though the upvotes don't make sense
unless they were ninja upvotes :B
 
morning
 
gut moaning
 
8:43 AM
@JayIsTooCommon SO is sure taking that sweet time on that disclosure thing
 
Anonymous
@PeeHaa you should chase in comments, i imagine they're waiting for it die down or they'll release alongside something more significant. "DOUBLE REP WEEK TO CELEBRATE CHRISTMAS (p.s. we exposed all your phone numbers)"
 
Happy freezing cold monday, 11
Everyone well?
 
9:03 AM
Hi guys, would anyone like to do a mock interview with me today?
If interested, we can switch sides after half hour.
 
@JayIsTooCommon I'm giving them another week. Maybe there is still some stuff they are figuring out / waiting on some caches to be emptied. Although it's already public so not sure that would make sense
cc @timpost
 
wassup
 
how to preg_match in certain index of string?
i think nobody wan't to answer that
 
Anonymous
@PeeHaa I guess
 
@aswzen You mean, at a certain point onwards?
You could always split up the string at that index and run it against that.
 
9:14 AM
for example i have a word "Komodo is the biggest monitor lizard in the world"
then i want preg_match only in "lizard in the world" without the original word substringed
 
@CrazyDeveloper Uh?
 
^
 
Hey guys; random question... At what point does a MySQL database begin to slow down?
 
Why?
 
Anonymous
@Sean watch out, he's crazy
 
9:17 AM
JK
 
kicked
JK
Also bye
 
Anonymous
lol
 
Anonymous
!!wotd
 
campanology: the principles or art of making bells, bell ringing, etc.
 
Anonymous
ah dear
 
9:26 AM
@tereško Holy crap that's ugly. And also good specs-wise. I'd keep it as a contingency but it wouldn't be my first choice after seeing how something sexy like the N1 can exist
 
Wes
code golf-ish question 3v4l.org/rta1m is there a way to improve this, maybe using bitwise op?
 
Why do you have a separated return?
Also wait wat. That's no code golf
That's just your own regular horrible code :P
 
Wes
:(
 
<3
 
Wes
9:28 AM
i don't even know if it actually works. wait
 
lol
 
!!friday
 
@Naruto Only 3 days, 14 hours and 29 minutes left until Rebeccaday, OMG!
 
Well that sucks
 
@Jeeves Can't you shorten it?
 
Wes
9:31 AM
yes it does 3v4l.org/kVTFZ :B
do you get what it does? :B
if it overflows intmax returns the int that overflows and keeps a counter of how many times it overflowed
 
@MadaraUchiha I know :(
 
It's really good so far. A very solid shonen
And I have a thing for overpowered MCs
 
@MadaraUchiha hammer?
 
Anonymous
@MadaraUchiha you heard anything about this meta.stackoverflow.com/questions/338573/… ?
 
@PeeHaa Main Characters
 
9:35 AM
@Jimbo I have you 5 or 6 different case option, and all you come back with is "that's ugly"
 
@MadaraUchiha :)
 
@JayIsTooCommon I haven't, but post mortems usually take a while
Remind me again in a week if it doesn't come out? I'll ask
 
@tereško Well no, but this weekend I was looking at specs for the "Thermaltake CORE V21", did you see this one? It's still small but, it actually takes a micro ATX as well.
But still looks small enough and light enough to carry around
 
I have a black aluminium brushed silverstone case. that's a pretty one. but way too heavy to carry around
 
mornings
 
9:38 AM
o/ @pmmaga
 
Anonymous
!!remind Remind Madara about disclosure stuff in 1w
 
Reminder set.
 
Anonymous
@MadaraUchiha kk :) cheers
 
@Jimbo I thought you were looking for something small and not a 40cm cube
 
@tereško Yeah, small is still priority. Damn this is hard work. Your case has a massive carrying handle on top which yes is useful but also takes up a lot of space
Right let me have another look at this 'carry case'
 
9:41 AM
I gave you links to 5 cases
 
Did you? I must've missed it, I only saw the carry case...
Oh shit yeah underneath
hold on
What the fuck is this
:'D
 
@MadaraUchiha holly shit. The translation a getting even worse (just finished reading the latest one)
 
this chat group is almost useless ..my chat question ignored like a damn rock
 
@aswzen That's the spirit!
@tereško I like the look of the Phanteks Enthoo Evolv iTX case.. and would support a 240mm AIO or custom 2x 240mm (would I be able to water cool my 1080 (hybrid) and CPU with this case?)
 
@aswzen maybe you shouldn't ask shit that is clearly googleable: https://www.google.com/search?q=how+to+preg_match+in+certain+index+of+string
 
9:52 AM
@Jimbo wat
 
@DaveRandom LianLi chassis for people with too much money and too little taste
 
btw anyone who has me on FB might want to block me for a week or two. I need to deal with a troll and it's going involve posting some things you may not want in your timeline.
 
why would I have an active FB account?
 
posted on December 05, 2016

New Cyanide and Happiness Comic

 
Anonymous
@Jimbo :P
 
9:56 AM
@tereško I know I know, I got sucked back into it, we can discuss the (lack of) wisdom of this at a later date if you wish.
although on the plus side, I now seem to have IRL friends again pretty much as a direct result :-P
 
Anonymous
eww IRL
 
Anonymous
How are you handling this troll @DaveRandom ? I'm intrigued
 

« first day (2242 days earlier)      last day (2692 days later) »