« first day (1937 days earlier)      last day (3025 days later) » 

10:06 AM
@PaulCrovella It also taught us that considering the opinions of others is generally a waste of time and should be avoided.
 
@MadaraUchiha mod question: how do I fix my account?
 
@tereško First, you need to break it.
 
I have managed to fuck it up a bit (it was registered with a spam-email and then I registered on Carreers with my proper email)
 
What do you want to do?
(Also, what are you seeing now?)
 
> Oops! There was a problem updating your profile:

This email address is already registered. If it belongs to you, log in above or visit our account recovery page to get access to this account.
 
10:11 AM
Who wants to create a small team ??
 
team?
 
What do you want to do?
.. or the team
 
to create a application
 
And how much are you paying?
 
10:12 AM
or smt
I am not paying anything
startup
or idea
 
TL;DR - Who wants to work for free
 
For a startup without an idea, never mind a business plan
 
i want to join a team
 
So find a project that interests you and get involved - there's plenty already out there
 
10:14 AM
my skills: php,python, yii2, django, linux
@Allen
@AllenJB I can tfind
cannot
oops
 
tried github?
 
Okay, do you know git?
 
yes I know
 
Morning 11
 
10:16 AM
o/
 
@Oldskool what?
 
11, room 11.
> chat.stackoverflow.com/rooms/ 11 /php
 
It even has it's own website! room-11.github.io
 
Please find a team for me..
 
10:19 AM
free team
 
@ShaigKhaligli good luck
 
@Sean github is very large so where can i find?
 
There's also subreddit(s) for open source projects
 
@Leigh unless their opinions are the same as yours, then that's fine
 
10:21 AM
@ShaigKhaligli github.com/showcases also a good source for inspiration, grouped by topic
 
thank you man!
 
Anonymous
10:39 AM
star if you think nginx is the worst software of all time
 
why do you think that it is that?
 
@samayo unstar ... beats Apache by far
 
Anonymous
I don't know. I take a 3 months break from coding, then I light my Vbox today, 4 hours later I still can't access my pages. @RonniSkansing
 
Anonymous
All I did was to update yum.
 
and that is nginx fault?
 
Anonymous
10:43 AM
Yeah.
 
I dont get that
Do you know how to configure nginx?
 
Anonymous
It is that famous nginx 403 forbidden error.
 
Anonymous
don't bother telling me the solution, I have tried all.
 
nginx is a very fine piece of software
 
Anonymous
Now, I'm reinstalling everything from the distro :\
 
10:45 AM
and the errors are shown in the logs every time
 
probably your webserver doesn't have rights to execute files in directory with your files
 
so you're bad, and you should feel bad for blaming nginx
 
@Gordon That is so NSFW! :D
But awesome nontheless!
 
@Oldskool actually, some of the games are nsfw indeed
 
10:49 AM
Where should i found campaign table?
 
it's just pixels
 
Anonymous
@Sandeep IKEA
 
Wes
@Gordon say bye bye to your productivity :B
 
Anonymous
AH, I want this job soooo much
 
10:55 AM
@samayo So, apply for it? :)
 
Anonymous
I did, yesterday.
 
@RonniSkansing I am so disappointed in you right now :(
Most of what's on there are legendary pieces of gaming history.
 
oh I was refering to the nsfw part
 
> And now I need you, a badass who doesn’t care is it sunday or is it 2 am —- when the work needs to be done.
 
@RonniSkansing Oh LOL ... well I meant productivity wise-NSFW ;-)
Once you start a game, you're done with your working day ;-)
So it's better to resist that urge
 
10:58 AM
heh
well the work vpn is done
I can do almost nothing
 
@Sean @Oldskool Hiii , how are you ?
Is there a way to implement login with google without using curl_exec (I can not use curl_exec because my hosting provider not allowing)
 
Your hosting provider disallows curl_exec? O.o
 
Get a better hosting provider
I'd lol if they still allow HTTP requests using streams
 
here's another killer: game-oldies.com
 
Or you could go extreme and use a HTTP client library that uses sockets
 
11:06 AM
@Sean yes they are not allowing me curl_exec ( lol who does that dude ) :D :D
SO tell me if there is any other way
 
Hi ! I learned yesterday the SCP command. I now use if for pulling files from a server to my local desktop or so, does this also word in the other way?
So I can 'upload' from my computer to the server with SCP?
 
Whoaa! This is... AWESOME :D
And so fast!
 
Anonymous
$ scp {-P #PORT } /var/www/public/file root@HOSTNAME:/var/www/public_html/sql_dump/
 
Yes it works it's awesome.
 
Anonymous
11:12 AM
If you are using port 22 by default, you don't need to set up ports.
 
Indeed, im doing it without the port.
 
Anonymous
It might be a good idea to use a different port than 22, for security reasons.
 
Wes
@Gordon luckily i ragequit. stupid windows with its shit accessibility things when you hit 5 times the shift key -__-
 
@Wes the dialog box that pops up has (or at least used to have) as 'turn this off forever' option.
 
@samayo On which side? Both?
 
Anonymous
11:16 AM
on the server side.
 
Wes
@Danack you wish, maybe in magicland, keeps returning..
ok disabled. but it's too late. ragequit hard :P
 
@samayo Does it mean to specify a specific port only for SCP?
 
Anonymous
@Duikboot Nope, you only need to change the port in your /etc/ssh/sshd_config file, and you'll use that port next time you transfer files via SCP.
 
Anonymous
But, DON'T change the port if you have no prior experience
 
DO EEET.
on a vm.
 
Anonymous
11:19 AM
Yeah, on a toy machine.
 
OK. Thanks! I will not do it on a live server.
Oh It seems not all my files are uploaded by SCP. >< Too much hooray...
 
Anonymous
What do you mean?
 
I uploaded yes, a ( WordpresS) site but not all the files are being uploaded
 
Anonymous
How are you uploading the "Files" exactly? I suggest you zip them up, then upload the zip format only.
 
Unzipped
 
Anonymous
11:27 AM
impossible
 
Ok that was like blazing fast... zipping and unzipping on the server.
Perfect now
 
@Wes I sense you are curious :p
 
$data->{'token'};
do I need to replace 'token' with something
 
Wes
@rtheunissen yeah :P actually, as you said too, there's lot of people doing the same thing and i'd like to see them collaborating rather than wasting effort on a million projects
 
I totally agree. It seems like everyone has their own take on it though.
Sometimes better for a single vision to be established first
@Wes what's your github uname?
I remember asking you some time ago if your project was public yet heh
 
Wes
11:34 AM
@rtheunissen WesNetmo
@rtheunissen nope. it's barely a thing. actually it was almost finished 4 times, before i changed my mind about everything :B
 
@Wes the stub is outdated at the moment.
 
Hi @JoeWatkins
 
moin rudi
 
What is?
 
11:42 AM
joey from friends being a top gear host ...
 
teh fuck
 
@JoeWatkins if a variable won't change and is checked in a loop, should I make it const?
 
show me code
@Danack inorite ...
 
Wes
hum
we are definitely doing the same thing but that's not how i'm doing it :P
 
Uhh zval *src = (source); zval *dst = (buffer); zval *end = (source + len); for (; src != end; ++dst){}
 
11:45 AM
lllunch
 
Should I bother making end const
 
nah
 
Wes
for example, final class Set extends Collection is just for the stub or is it going to be an actual class?
 
Just the stub.
 
Wes
why that?
 
11:47 AM
php --re EXTNAME or php --rc CLASSNAME
 
Oooo
@Wes because there won't be *.php implementation for it
Haha @JoeWatkins 2ms faster using const... for n = 2^20
 
I didn't expand on "nah" ... there's a time for these kinds of optimizations and it's probably not now ...
 
@rtheunissen how sure are you about that?
 
@NikiC ~40%
 
throw new NotSureEnoughException()
 
11:50 AM
@rtheunissen Do you do anything else with end apart from that comparison?
because that's a pointer comparison, while the const applies to the result of dereferencing the potiner
Not that const can be used for optimization anyway (apart from const globals)
 
@NikiC I don't do anything else with it
I've read several sources advising to use const liberally
 
@rtheunissen You should. It just doesn't have to do with performance
It's also somewhat hard in PHP to use const liberally
C has no concept of mutable, so things like refcount increments count as modifications under const
 
Yeah I've ran into that a few times. Can't ZVAL_COPY into a const zval.
'rotate' is my new favourite algorithm. Such a basic application but a rabbit hole to design.
 
@NikiC well ... there are sometimes const will effect stack size and so possibly performance .... but you're right, it's about correctness ...
 
I read somewhere that it's basically a hint to the compiler that the value won't change so.. might be able to do something clever with it.
 
12:02 PM
yeah but it's always just been a hope ...
I'm not sure if there are any compilers that actually do anything with it ...
 
I know far too little to actually understand the limits and capabilities of a compiler.
> there's a time for these kinds of optimizations and it's probably not now ...

It's more a matter of wanting to develop good habits
 
@JoeWatkins The problem is that having a const pointer to something does not preclude the existence of a non-const pointer to the same address elsewhere
 
@JoeWatkins reading through --re is a good way to check that arginfo is correct.
 
So in the end the compiler determines whether the pointer is "really" const based on alias analysis, the hint doesn't really help
 
yeah that's true
 
still, it's a good habbit to use for correctness, we are used to having to read the source code of everything, but normally you want someone to be able to read a header and know how a function will behave ...
 
I should sleep.
Thanks for your help, chat later
 
but I guess using it elsewhere probably is redundant by now ...
nn @rtheunissen
 
<?php
$json = file_get_contents('http://localhost:49995/fypdataservice.svc/getKnowledgePoints/COMP_2611');
$data = json_decode($json);
$data->{'token'};
echo $data;
?>
this doesn't show anything
 
Someone a suggestion I am looking on a lcoal server into a folder 'some guy' removed a file a few moths ago, is there an easy way ogettin git back in a way?
Which won't cost much time?
 
12:13 PM
hey everyone...help me out here, is this syntax correct?: WHERE a.nome='$formData' AND idPai IS NULL OR idPai = 0 OR idPai !=0
 
== 0 OR != 0.... eh?
 
what i want to say is:
the formData as to check...but also everything else
how do i say this?
 
are these 2 sets of code in effect the same: <?php foreach ($row as $event) { ?>
    <a href="?id=<?php echo $event['id']?>"><?php $event['title']?></a>
<?php} ?>
and
foreach ($row as $event) {
echo '<a href="?id=' . $event['id'] . '">' . $event['title'] . '</a>';
}
 
@AgniScribe Yes.
 
@OldSkool thanks
 
12:24 PM
The one just echoes the entire HTML, where the other only echoes the PHP vars in separate tags.
There seems to be an echo missing for event title on the first though.
But I'm assuming it's supposed to be there.
 
@AgniScribe Actually there is a difference
and that is <?php $event['title']?> //will be blank :D
 
@OldSkool - yes, that's supposed to have an error
*echo
it should be: <?php echo $event['title']?>
 
yes exactly
 
but i was wondering in the case of <a href="?id=<?php echo $event['id']?>">
there really isn't any need to echo that right?
 
@Oldskool i have a question that where can i find app_key in google developer console
i have registered a app and did not find it there
 
12:28 PM
@AgniScribe You can also see it having the same effect here: 3v4l.org/LgiKC
 
nevermind found :)
 
@AgniScribe Yes there is. If you don't echo it will end up as ?id=, getting an empty value (since you're not echoing it.
 
@Oldskool great, thanks. got it :)
also, i missed out the semicolons there
:P
 
@AgniScribe also <?= is shorthand for <?php echo
 
Semicolon will not give an error
 
12:35 PM
printf(
    '<a href="?id=%s">%s</a>'
    $event['id'],
    $event['title']
);
@AgniScribe that is much easier to read in my opinion.
 
@AgniScribe semicolon will not give an error you can check it
 
@Praveen thanks, didn't know
 
but missing an echo will result blank
 
@Danack, I have a fear of escaping special chars, it's also too messy
 
<a href="?id=<?php echo $event['id']?>"><?php $event['title']?></a>
By 'messy', do you mean 'not what you're used to doing'?
 
12:38 PM
@Danack, possibly - also i'd rather just wrap sequences of php rather then escape individual special chars
 
Hi all
Can anyone guide me how to create my own REST API?
I have different website clone and each website has own database but now i want to fetch data from single database which is hosted on another server.
So I want to create the RESTful API which can call to the specific url of (Master Website) and it will return the json data
 
ThW
@Danack I use this syntax, too. Makes it a lot easier to add escaping/formatting and allows to reuse value parameters.
That is if I don't use DOM to generate the HTML.
 
And when the programmer realises that the code isn't actually safe, it's easier to change it to use htmlentities in the appropriate place.
 
s/htmlentities/htmlspecialchars
 
12:57 PM
@PeeHaa are there any scenarios where htmlentities is incorrect to use?
 
99% of the scenarios because htmlspecialchars is sufficient without adding useless entities
 
ThW
^ that
 
<Just_to_be_annoying>So 1% of the time it breaks stuff, and the rest of the time it provides a benefit about which I don't care?</Just_to_be_annoying>
 
ThW
but both will not be enough for attributes eval.in/private/6f5a83aa826449
 
@Danack missing echo in second tag
 
1:01 PM
not my code.....was comparing printf() to something that someone alleges is "not messy".
 
@Danack I'm willing to bet that for your things it's more like 99.9999999%
 
@ThW there's nothing wrong with that, attributes can contain newlines
 
posted on February 04, 2016 by nlecointre

/* by Tinorus */

 
Flagged as spam. The avatar always gives it away
 
@PeeHaa Good point. Didn't even bother to follow the link, so wasn't sure if it was spam or the actual site with the problem.
Although the problem was poorly described.
 
ah "SEO Executive"s
 
@Oldskool Your spam detector is broken :P
 
@PeeHaa I guess .... not too sharp today anyway
 
1:32 PM
Good thing it's almost weekend
 
we could preemptively ban anyone with "seo" in their profile and lose little of value
 
@PeeHaa Definitely, looking forward to that :)
 
s/ban/exile to the island of Saint Helena/
 
Lol
 
1:45 PM
I probably shouldn't mock people given my ability to English, however:
> Each Segment addresses a named key within the $_SESSION array for deconfliction purposes.
 
1:57 PM
-6
Q: how to hack password of admin panel magento website?

hien nguyeni try to take down this web but desn t work. please tell me how to hack this site :http://www.nonecg.com/admin. The problem i don t know to hack. I want to hack. crack.

does facepalm
 
Using curl_* with an array of post data set to CURLOPT_POSTFIELDS should automatically set the content-type to application/x-www-form-urlencoded right?
 
> If value is an array, the Content-Type header will be set to multipart/form-data.
 
Ah, knew it set to something. Cheers @PaulCrovella
 
2:13 PM
also, the array should be e.g. ['Foo: bar', 'Baz: qux'] and not ['Foo' => 'bar', 'Baz' => 'qux']
 
@FlorianMargaine O.o?
 
ah it's for CURL_HTTPHEADER, sorry
 
You made me WTF for a moment there :P
 
0
Q: http get/post json object from server and use with interface

Kevin Raj <?php $json = file_get_contents('http://localhost:xxxxx/xxxdataservice.svc/xxxxxxxxxxxxxxxxxx/xxxxxxxx'); $data = json_decode($json); $data->{'token'}; echo $data; ?> Hi. It doesn't work to show anything. How can I access the data to show or use with javascript/css/html. Please...

Please help
Thank you
 
What exactly are you trying to accomplish with $data->{'token'};?
 
2:21 PM
1) we have no idea what the result is
2) debug your own code
!!docs var_dump
 
[ var_dump ] Dumps information about a variable
 
what is 'token'
do I need to replace it
I just want to get a json object by http request using php
or send a json object by http request
using php
and depending on the interface and data and user actions
 
there is no such thing as json objects in php
 
I know
but the json object exists in server
 
@PeeHaa what killed jeeves?
 
2:26 PM
@Leigh sadness
 
:P
 
Jeeves extends Marvin
 
@Leigh Probably 3v4l spam. I've implemented a half assed / half broken / crappy flood protection workaround and more important it runs as a service now so it should come back on
!!> echo 'foo';
 
> Symfony 3 should be the choice going forward for our new framework. It has great documentation, utilises and supports best practice, has a fantastic ORM built into it out of the box that is not based on Active Record and is the most popular choice for those with knowledge above junior level.
Brb moving us to Symfony 3
 
2:29 PM
Although I see that now he tends to do json responses only :(
 
!!> echo rand()
 
[ hhvm-3.6.1 - 3.11.0 ] Fatal error: syntax error, unexpected $end, expecting ',' or ';' in /in/JeLD0 on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
oh missing semicolon :(
denying me my spam
 
[ 5.4.12 - 7.0.3 ] Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/JeLD0 on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ 5.3.22 - 5.3.29 ] Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/JeLD0 on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
2:32 PM
well there's some parsing issues exposed there :D
 
!!> sleep(30); print "Boo!";
 
@AllenJB LOL, that's just evil :')
 
dang letsenrypt was easy
 
well, at least it's multitasking abilities are up to the challenge
 
@AllenJB Hmm, apparently sleep now takes it's argument as hours or days ;-)
 
Jeeves take a rest :p
 
you really made me check the manual
 
@FélixGagnon-Grenier LOL
 
2:38 PM
Hey guys
I am basically just a front end HTML guy
 
btw evening room
 
!!version
 
\o/
 
2:39 PM
I recently decided to have my site up using a CMS called bolt
 
\o/ Jeeves!
 
now i went around asking a few people who knew backend better than me
that "what would i require to get my simple bolt site online" .
 
a webserver would be an ok start
 
and i got asked the question "How do you plan on getting your project onto the server?"
 
by intertubes?
 
2:42 PM
zip disk
 
i asked for a recommendation and was told "Capistrano is a good option."
@PeeHaa thanks
 
@AlexanderSolonik Yep, let's all use Ruby
 
I would start by using ftp...
 
@PeeHaa yes exactly
 
s/ftp/sftp
 
2:43 PM
i don't want to learn a new tool
i use cyberduck
can't i just use cyber duck ?
to upload my entire site ?
 
@AlexanderSolonik Do you need to continuously deploy, or is it just a personal site?
 
personal site
 
@AlexanderSolonik Then download FileZilla and upload your site over FTP
 
I am not looking for efficency nothing .. just a way to get my site up :D
forgive me noob questions ;)
 
2:45 PM
And that's the fastest way with least learning
 
@Jimbo hanks Bro !
Thanks*
 
No probs brizzle!
 
so develop the site using xampp locally and use filezilla to uoload my site on the web ?
and how do i migrate the database ? :P
sorry if i am being annoying :D
 
Mornings
Noop not at all... Setup vm locally with Linux and ssh to server
 
@NullPoiиteя i'll prefer sticking to windows ! :)
 
2:49 PM
that is, if host allows ssh^^
that's... one funny preference
 
I'll go for a host that allows ssh :)
 
I never appreciate development using wamp/xamp/mamp frankly these are Bullshit
 
Bullshit*
 
they are faster to setup on windows
 
@FélixGagnon-Grenier your right ! iám thinking of migrating to ubuntu at some point !
just not yet ;)
 
Although it's apparently a problem when you dislike everything :(
 
lol wat am I hearing
 
Hate indiscriminately.
 
And you won't have any idea about permissions level in Linux... people who start with wamp/... don't even know about www-data user
 
Good, good, let the hate flow you.
 
2:53 PM
I've never used them.. back when I was the target market they were just acronyms describing the stack rather than all-in-oneder products.
 
@Leigh lol
 
@NullPoiиteя case sensitive filenames! WHAT ARE THOSE?!
 
Where did I mention case sensitive filenames ?
 
Wes
@Danack thoughts on this stackoverflow.com/questions/35194902 ? maybe you want to answer it... ended up reading the source code - but not understanding much so far :B
 
I think someone was agreeing with you
 
2:56 PM
You can't even follow your own rhetoric? :/
 
Wes
i'm not sure why i'm pinging you... i vaguely remember that you know something about ext/session but maybe i'm wrong?
 
@Wes lets close that question :p
 
Indeed, I was kind of helping to reinforce your argument.
 
Wes
@NullPoiиteя do it :P also hi :D
 
is a bit broad bro
 
2:57 PM
No, I suck at English, rather I suck in English
 
@Wes the only concurrency problem PHP's session management handles is the ability to lock the session file, so session accesses are serialized
 
@Wes hey man, how you doing?
 
@Wes Wes, that's incredibly broad, and complicated by the fact that Yasuo breaks BC with every minor version
6
 
Wes
@jbafford is that different from using a database and row locks?
 

« first day (1937 days earlier)      last day (3025 days later) »