« first day (2315 days earlier)      last day (2627 days later) » 

1:00 PM
anthony is here. heya @ircmaxell… long time no see. hows that computer coming forward?
 
hello all
 
user7172542
Would I need to worry about stripping special characters etc. on a user string if I am binding the param first?
 
no
 
user7172542
Cool.
 
that is, if you are not using emulated prepares
 
user7172542
1:04 PM
@tereško can I show you an example?
 
@Mr.T I'm guessing it's not a box you have root access on?
 
user7172542
$stmt = $conn->prepare("SELECT firstname, emailaddress, username, password FROM users WHERE username = ?");
$stmt->bind_param('s', $inp_username);
$stmt->execute();
$stmt->bind_result($firstname, $emailaddress, $username, $password);
 
user7172542
Is that vulnerable?
 
mysqli is not using emulated prepares, to you are alright
 
user7172542
Wicked. :)
 
user7172542
1:06 PM
So that's secure?
 
yes,but I am not sure why you are selecting username from the table even though you already have said username in the WHERE
 
user7172542
It's for a Forgotton Password script, if the username the user inputs is equal to one on the database, then an email is sent with the firstname, emailaddress, username and password attached.
 
but you already have the username
 
user7172542
I understand...
 
user7172542
Why am I selecting it twice lol.
 
user7172542
1:08 PM
Thanks dude.
 
he's not a dude. he's a sir.
 
sir duderino (it's a family name)
 
he is an honorable knight of the royal latvian developers
he even has his own sigil of approval
 
laravelian*
 
1:20 PM
I am not worthy to be in this chat room with all these high born nobles types in here.
But, I do have a 300 point bounty question on the block. stackoverflow.com/questions/42172228/…
 
Anonymous
> This is your chance to really rip me a new one by tearing into my code
 
Anonymous
@tereško he's aiming this at you
 
like an invitation has ever been needed
 
@JayIsTooCommon I already asked him. A few days ago he said "Maybe after work, but no promises." ;-)
 
@JayIsTooCommon prft, tereško is chill man, at least chiller than Joe
Joe would be "use PHP 7 or fuck you"
tereško is more like "you're wrong, here's why you're wrong and an idiot"
 
1:24 PM
@Trucy well, he wouldn't be wrong
 
(TIL I can type š with my "weird" keyboard layout)
 
wtf is that shit
 
Anonymous
@Trucy reasonable
 
Anonymous
@ircmaxell o/
 
@PaulCrovella bépo, bro
 
user2764879
1:27 PM
Hi, is anybody interested to develop a website with me?
 
@kelunik english phrase, when you know someone is talking about you, we say your ears are burning.
 
@IrakliBobokhidze no, thx
 
@JayIsTooCommon what idea?
 
user2764879
I am developing a website for people to chat about business and work from home
 
Also @jimbo is a dirty cheat
 
Anonymous
1:29 PM
4 hours ago, by JayIsTooCommon
@Leigh You could use compressed air... So water valve, moisture detector and air valve. Fire some compressed air through it after the big dip to remove gunk
 
Would that be more or less effective than just pushing water through?
 
Anonymous
well you don't want high pressure water flow, do you? Sounds messy
 
@JayIsTooCommon I'm kinda busy
 
Developer, noun, person who will spend a lot of time and energy trying to save even less
 
Also, another system to build...
 
Anonymous
1:31 PM
i'll build that bit for you.. once you invite me round.
 
btw, this is a nice thing: npmjs.com/package/webpack-notifier
 
it has npmjs in the url. it cannot be nice
 
@IrakliBobokhidze Will it make money? ;-) I'm not sure I have the skills you need. Better check my profile. :)
 
For the record I absolutely kicked @Leigh's ass at a PHP competition
 
1:36 PM
>:D
 
sadness is error in code
i just dont know why my code is not working on live site
and it is working on local
image is not uploading in codeigniter
on live site
where it is working correctly on local
 
working on local, and broken on live, i have never seen that in my life!
 
@Izopi4a easy: local environment is different from live environment
 
if it is not working, it should get off his ass and find a job
 
and there is no error showing when i try to print
em using uploadify
do upload function
 
1:44 PM
so, you are using codeigniter and uploadify
those are both 3rd party tools
you should go to their community pages ask them for help
 
great, the Project Manager™ is busy and so, I don't know if I'm allowed to change the database model, which is a current complete cluster fuck…
 
@tereško have you had to convert a site to responsive recently?
 
It's gonna be a good afternoon
 
meep
 
@Trucy answer is probably "no"
@Tiffany yes and no. I have been working on a site which is being made into a responsive one, but out frontend developer is fucking incompetent
 
1:53 PM
@tereško oh my, you seem to know my project manager very well
@Tiffany I think you'll have to rethink your site from the start
 
@Trucy I know the generic archetype: if they dont understand the question, the answer is "no"
 
it's a couple of pages, so it's not too big a deal, but I know I'll have to rewrite parts of it
 
Someone heard they're supposed to mock ALL THE THINGS, so they try to mock enums
 
@tereško I think you're wrong on this one. It's if they hear "change", the answer is "no".
 
1:54 PM
oh, right
 
@NikiC Someone heard they're supposed to mock ALL THE THINGS, so they try to mock enums
 
@tereško have you used the up to 12 column design for responsive? I'm trying to decide which direction I should go..
I think that's how bootstrap does it?
 
@Gordon ???
 
@Tiffany you should actually use this one: neat.bourbon.io
 
@NikiC I heard I am supposed to mock ALL THE THINGS; so I am trying to mock you :)
 
1:57 PM
@Tiffany also, if you can, use flexboxes
 
@tereško I don't want to fuck with a preprocessor right now
 
@Gordon final class @NikiC {}. I win
 
@Tiffany you probably should, if you intend to start doing responsive designs
 
I've been fine this long without one
 
I was just trying to help
 
1:59 PM
I know they have a use, and they're particularly good for that use, but it's adding another part to this project that I don't want to
 
@NikiC :)
 
I was told if it takes longer than a week, to not bother with this
 
then the answer is "don't bother with this"
making site responsive will mean throwing out about 90%-95% of your css and html
 
it's a couple of pages that are written PL/SQL that dynamically pull course schedule information, and the other package pulls employee directory information
it's not the entire site
 
2:01 PM
and if your JS is hardwired to the HTML structure, that will have to go too
 
@Tiffany maybe create a responsive page?
(and leave the non-responsive page available)
 
@Trucy thought about that, but I'd still need the general layout of the "choose options" page
like picking out what classes to search for, if they're a certain type, delivery method, day, time
reminds me I need to fix the for loop for the time :x it skips 10 I think.
what makes this a bitch is the PL/SQL portion that generates HTML, I have to visualize what it's making
 
our XMPP server at work should support a "seen on xx:xx" functionnality, so I know how long I've been ignored
 
Has anyone used Polymer's iron grid ? plnkr.co/edit/O3fP71Yc2uMApv5aGot6?p=preview
 
I don't like the idea of using "columns" for a layout because it makes me think of table-based designs. Flexbox is the only potential replacement I can think of, however.
 
2:12 PM
well that's a fail :-P
 
15 messages moved to Trash
 
I spiffed up my 300 point bounty question. Sorry about the length of it, but I tried my best to be clear. stackoverflow.com/questions/42172228/…
 
@AnthonyRutledge you can stop spamming that in here
 
why did I ever think using ems for font size was a good idea
 
2:32 PM
@Tiffany that's a very cute advertisement
 
@tereško I'm secretly a Google marketer
 
sure, you could be ... or you just copied this "inspirational advertisement" from your facebook timeline
 
coworker sent it actually, but might as well have been from my timeline
the letter was cute, which is why I shared it
 
3:04 PM
@Ocramius would this also apply to constants? PStorm plugin PHP Inspections says to convert __DIR__ to \__DIR__ and links to your repo.
 
Hey guys.
 
5 messages moved to Trash
 
Is there any not too complex way to get parameter type through reflection of a method? (if type is specified, that is)
 
Struggling today in the “drink every time someone says Laravel” game.
 
3:09 PM
@DaveRandom where's the fail here?
 
Look at the commit message
 
@DaveRandom I saw it and somehow thought it were intentional…
 
RT @GeeH: Struggling today in the “drink every time someone says Laravel” game.
 
because that's a bash fail, not a git fail :-P
 
So Reflection method should suffice as well, right? Since basically same thing.
 
yes, reflectionmethod inherits that
 
For some reason I'm getting no type
But there is one.
Ou. Okay. __toString riiiiight.
 
@PaulCrovella you mean the router?
answer to your question from the past ...
@Mr.T I'm guessing it's not a box you have root access on?
 
@Mr.T the box running the curl script
 
3:21 PM
no its a web hosting
but I can call them
 
yeah, you'll have to ask them to open up outbound connections to other ports then
 
okay
then 80 you mean?
 
Anonymous
@DaveRandom You're just making me look bad now..
 
@DaveRandom is this on you or on us not catching something we should?
 
3:23 PM
@JayIsTooCommon that was me :-P
 
Also dnslib :D
 
Anonymous
@DaveRandom i meant the content :P
 
@Mr.T ports other than 80
 
@JayIsTooCommon oh right, I just realised there is a potentially simpler API, is all. You did exactly what we discussed in the first place.
 
Anonymous
btw has your number changed since NW?
 
3:25 PM
@PeeHaa @Ekin yes yes yes I am doing that as well
@JayIsTooCommon no I've had the same mobile number for over a decade now and I have no plans to change it any time soon
 
Anonymous
old.
 
rude.
 
a google voice number makes it easy to blackhole calls from mouthy little twits
 
Unfortunately I already gave @PeeHaa my number
so that ship has sailed
 
Anonymous
@PaulCrovella *big
 
3:27 PM
I didn't want to bring your weight into this
 
@DaveRandom probably from the time you were still drinking. People do crazy shit when drunk :p
 
Anonymous
@PaulCrovella pure muscle
 
@Leigh Which talk are you in next shitpot?
> AFTERNOON BREAK — 1540-1600
> Nutella and orange cookies
Oh my god.
 
@JayIsTooCommon you hide it well beneath the jiggle
 
@Jimbo why would someone cook orange cookies?
 
3:31 PM
@Trucy Why wouldn't you? Orange and mint would be amazing
 
Anonymous
@PaulCrovella @Jimbo's mum said people who are nasty to me, just fancy me.
 
@Jimbo you british don't know jack about cuisine
 
@JayIsTooCommon you need @PeeHaa's mum to teach you proper about nasty
@Trucy hey, they took some good stuff from india
 
Anonymous
@PaulCrovella @PeeHaa please arrange. thank you.
 
Wes
afternoons
 
3:41 PM
moin Wes
 
o/
 
Anonymous
hoi wesworth
 
Rather similar to my surname
 
@Trucy I watched all six seasons of Downton Abbey. I beg to differ about cuisine.
 
I used to call it Downtown Abbey just to watch a coworker's eye twitch
 
3:48 PM
I would like to thank everyone who contributed to my 300 point bounty question. stackoverflow.com/questions/42172228/…
 
Anonymous
@AnthonyRutledge as nobody here contributed to it, was that just a ploy to have it viewed a few more times ;) ?
 
@PaulCrovella Oh, I just scrolled up and got your message. I am not spamming, I am just being communicative. Peace.
@JayIsTooCommon Ploy? What's that you say? Why, I never. ;-) No, I am not aiming to abuse the forum. People did contribute, and I just wanted to thank them. Rarely do I use SO chat, and it helped.
 
Anonymous
if you ask again out of work hours you might get more assistance. Just make sure you ping @PaulCrovella when you do
 
@JayIsTooCommon Well, I do not want to be accused of spamming. So, IIIIII don't knooowww. ;-)
 
> forum
triggered
 
3:54 PM
wordpress is a forum?
@DaveRandom at your service
do you guys have some super secret slack chat?
 
@AnthonyRutledge I'm french so I know better that you about cuisine, amateur
 
Anonymous
Is there a function to detect foreign unicodes in PHP?
 
Wes
@samayo "foreign" unicodes?
 
Anonymous
@Wes yes, I'm trying not to make a fool of myself.
 
Wes
don't worry, unicode is hard :P
foreign as in... of another language?
 
Anonymous
4:01 PM
Yeah :\
 
Anonymous
yeah, non utf-8
 
Anonymous
I think it is iso-{somenumer}-2
 
Anonymous
Abri - (n) ኮብላሊ
 
@Trucy lol. you wish.
 
Anonymous
@Wes check my last comment
 
Anonymous
4:02 PM
I want to detect the foreign one.
 
Wes
ah, of another encoding. you just need mb_check_encoding
 
@DejanMarjanovic maybe, I was trying to discouorage the vision of stack overflow as a forum
 
Wes
but iso-8859 is compatible with utf-8, so it won't work
 
Anonymous
@Wes what would that do? The other string is also French
 
@FélixGagnon-Grenier shush, don't say that I'm not a good cook
 
4:03 PM
@samayo you're confusing language with character encoding
 
ThW
@samayo you mean broken utf-8 byte sequences?
 
Wes
all the bytes that are valid in iso8859-x are valid in utf-8 @samayo you can't convert automatically
 
Anonymous
Yeah, even after reading joels blog, I can't understand this unicode thingy
 
Wes
you need to know what is the original encoding
 
Anonymous
@Wes so, how would you detect with PHP, which one is French, and which one isn't?
 
4:04 PM
@PaulCrovella okay called them and they have every port blocked than 80. They will give me an additional port in a few minutes :)
 
Wes
iso8859-x are all similar though, at worst you get few characters wrong
 
@Mr.T success \o/
 
Wes
@samayo you can only guess it, and it's a tough task
 
ThW
@samayo you can't this would both be latin
 
Anonymous
Somone dumped a dictionary of those two language in text file. Good thing they are side by side, so I can iterate through them and save it to database, but I need to verify
 
ThW
4:06 PM
however something like cyrillic and hangul is possible with pcre
 
Anonymous
eh.. only thing remaining is something trivial regEx check??
 
Wes
chances are it's iso-8859-15 though
 
what problem are you trying to solve here ?
 
Anonymous
ISO 639-2
ISO 639-3
 
Anonymous
According to wikipedia
 
Anonymous
4:07 PM
@Sean if you ever want to ditch it at a wedding, make sure you say "you're not worthy of ness" please
 
Anonymous
@JoeWatkins Just some unicode stuff
 
@samayo read it through again and ask questions about things that aren't making sense to you
 
ThW
@Wes true, that is what I am doing usually - any byte sequence that is not valid utf-8 will be treated as iso-8859-15 and converted into utf-8
 
you mean stupid gui? :D
 
4:13 PM
:P
 
Anonymous
sean? why haven't you acknowledged my comical genius
 
@Trucy I once met a French womam as a freshman at the University of Michigan. Her name was Delphine. She cooked me a Thanksgiving dinner.
 
It's also around the point I should reveal my true identity as a 500ft tall loch ness monster.
Roll for initiative.
 
the weird part is that's mostly the 490ft ankles
 
Anonymous
:P
 
4:19 PM
@Trucy But, she did not know that "broil" meant cook from the top of the oven, and burned the top of the cherry pie. :-)
 
Doing a test slide that I'm going to put at the front while people file in so I can stand at the back and see how visible the code is. What do you all think?
 
Not sure on the blue
 
ThW
@Jimbo nope - I have had problems with that colors before
 
Er.. the colour scheme isn't up for debate haha
 
@Jimbo needs to extend PHPUnit\Framework\TestCase
 
4:21 PM
It's more the code in the top right I wanted you to see
 
@JayIsTooCommon So, basically I did this to scrap the PendingMessage intermediate, and instead have postMessage() accept a Command instance instead of requiring a ChatRoom (plus a little abstraction). That means that we now should be able to make plugins removable with a lot less effort
 
public static function getSelf() {}
 
Anonymous
@Jimbo not sure on the background.
 
Anonymous
i was just trying to wind him up
 
ThW
@Jimbo kinda funny, but I would use one small implemented method, maybe with a static call
 
4:23 PM
@Jimbo too bold
 
@DaveRandom planning on stabilizing the api before kicking the plugins out?
 
ThW
@Jimbo I don't really like the second method name, it addresses the developer and not the code
 
@PaulCrovella Yes, although in this instance what I did was not a breaking change anyway
 
ThW
makes it personal and I would avoid that
 
I just widened the accepted args
 
4:27 PM
@DaveRandom yeah, wasn't worried about that change; more so having plugins scattered to the wind that may need updates coordinated
 
@PaulCrovella well tbh the API of ChatClient, which is the main thing which plugins interact with, has been stable for ages
brb 10 mins
 
sorry, I never realized jeeves had a 1.0 release.. i've not been paying attention well
 
Anonymous
@DaveRandom Nice I like it, goes back to the initial discussion about having room and command in one wrapper, right? Also less clutter when posting messages.. it was too much having x2 nested args just for posting something
 
Hmm, feels strange.
 
Anonymous
?
 
4:34 PM
Is ChatRoom|ChatRoomContainer for backwards compat?
 
Wes
ah, if php were developed with the same care of jeeves.... :P
 
the test suite would run a lot faster
 
Actually that kinda makes sense
github.com/Room-11/Jeeves/blob/… though, so it's still coupled
 
@ThW Okay, I'll change that and make it static
I think that adheres to SOLID principles.
 
Oh god it's awful
 
4:42 PM
Inversion of asshole principle
 
in my heart I know you mixed tabs and spaces too
 
Wes
fffffuuucade()
what's that?
can you even make __construct static? :|
 
Fatal error: Constructor ThisIsSomeTerribleCode::__construct() cannot be static
Interestingly, php points the error to the class name, while hhvm points to the __construct method.
 
ThW
@Jimbo yes
 
4:54 PM
Maybe you could make this into one of those "Guess how many sweets are in the jar" type things
 
any reason why this wouldnt work on an sql query?
SELECT * FROM users WHERE play_time BETWEEN "00:00:00" AND "99:99:99"
it just returns empty
 
Depends on the data type of play_time
 
its time
data type: time
 
@RachelDockter emm ... that 99:99:99 is nto a valid time
 
i thought when i clicked time it said min and max was like -800 hours and + 800 hours
 
5:00 PM
also, shouldnt you just check is someone has played for more than 0 seconds
or actually, checked if play time is not NULL
 
its gonna be a filter in a chart, like display users that have played between 10-15 hours
 
India has created history by successfully launching 104 satellites on a single mission, overtaking the previous record of 37 satellites launched by Russia in 2014.
 
how come 99:99:99 isnt a valid time thought?
 
@RachelDockter it's that pesky 60 minutes in an hour and 60 seconds in a minute thing
 
Because time is between 00:00:00 and 23:59:49
 
5:02 PM
@PaulCrovella yeaaaaahhhhhh!!!! Thank you very very much!!!! :D
 
bwt, I would just store an integer with "seconds" and be done with it
 
It is now working really well :)
 
would also make for a lot PITA later
 
i was thinking that but it wouldnt really be user friendly cuz they would have to type in like betweeb 560000 seconds and 878900 seconds
unless i convert it into seconds in code but it seems more hassle than its worth
 
5:04 PM
you can always let the type in "human readable" time and transform it to seconds with PHP
ya know ... like a programmer
:P
 
@Mr.T you're welcome, glad it's sorted :)
 
@Jimbo where are we meeting for beers... anf something fruity for you
 
yeh could do, seems like the hh:mm:ss seems better i think
this is the last thing i need to do to finish too
 
... and then you should start on "improving" it :D
 
i think its flawless already
lol jk, ill be for the proffesor to give me feedback
 
5:07 PM
@PaulCrovella just that blocked port :D and I checked my code all the time lol
 
Evening room.
 
ThW
@RachelDockter are you storing a time period as a time field?
 
@ThW yeh
 
ThW
that are two different things
 
i dont understand
time field is just hh:mm:ss, so storing a time period would work
i just got it working too with my bar chart so i can filter users that have played between x and y hours or whatever
 
5:21 PM
TIME type is just a part of DATETIME
 
ThW
kinda - it works for the most cases, but one is the value on the clock like "12:00 pm", the other a duration like 12h (or P12H)
 
146:12:34 <-- valid time period, but not a valid time.
 
@DaveRandom is on venus
 
@PaulCrovella on neptune as well
 
It's true, I am on Venus
 
bob
5:29 PM
Hey, I'm using PHPmailer and trying to get data from two mysql tables, how can i do this?
 
email them asking nicely?
 
@bob You may want to give a bit more information such as what you want to do with the data, what you've tried so far, what exactly currently isn't working. The two halves of what you've asked so far don't seem to go together in any way (what does PHPMailer have to do with getting data from MySQL?)
 
@DaveRandom Can you see the future or do you have live internet connection to earth through a hole in spacetime?
 
@bob I don't think the code you've posted there does what you think it does (I suspect the braces on the while loop are misplaced). As others on the question have already suggested you should tidy the code and narrow down the problem.
 
5:37 PM
@bwoebi WiFi. It's the new 802.11lol standard, it has infinite range and is no longer constrained by relativity. Now that Trump is in charge, general relativity has been deprecated in favour of "whatever you can imagine is possible". Special relativity may still be used for now because it is special.
 
@DaveRandom hahaha :-D
 
general alternativity
 
bob
@AllenJB Thanks for having a look. it's just a while loop within a while loop. as i can't use JOIN or UNION with these two tables. where should the braces be?
@AllenJB you were right, the braces were in the wrong place. my bad. Thanks
 
Wes
so phpstorm now supports php editing within .md files, with autocomplete and all the things, like you were editing a .php file... awesomesauce
 
5:53 PM
2
Q: how to access the elements of the HTML loaded in object tag?

Kiran ReddyEg: Fetching text input value using jQuery $('#username').val(); I had tried this from this question Here is my code <div id="siteloader"></div> $(window).load(function(){ $("#siteloader").html('<object data="http://testk.shopnix.org/admin" />'); setTimeout(function() { console....

 
6:22 PM
@Wes EAP build?
 
Wes
yep
 
6:57 PM
Okay guys, byeye! See you then.
 
7:26 PM
"That's my name, the nightgown rapist" - @Leigh
 
@Wes Already supported in 2016.3.2
 
Wes
7:52 PM
@kelunik didn't use 2016, only 10. it's such a nice feature though :P
 

« first day (2315 days earlier)      last day (2627 days later) »