« first day (2161 days earlier)      last day (2803 days later) » 

6:20 AM
hello
 
Hi
 
good morning beautiful people
 
Aren't we in a good mood.. :D
 
Everything has beauty, but not everyone sees it. :-)
 
^
 
6:25 AM
@SagarNaliyapara beauty is in the eye of the beerholder
6
 
:D
 
Hello, world!
 
Oops, wrong chatroom
 
Wes
is jeev dead
 
6:27 AM
:o
@Jarvis What have you done?
 
Wes
beauty is in the eye of the beerholder
it worked :B
 
That's odd, why didn't it output anything
 
Wes
cc @PeeHaa ^
 
If anyone wants to start proposing features for Jarvis, head over to this room.
 
6:50 AM
Jarvis your own bot or jeeves fork?
 
Raj
hi every one .... morning
 
@Fabor My own
 
o/ @Raj
 
Raj
@SagarNaliyapara Hello
 
What is Jarvis for then?
 
6:53 AM
World domination
 
Can't we get a sexy Fembot in here instead?
 
Raj
google indexed website with wrong page titles so can any one suggest me how to overcome from this
 
@Fabor cap?
 
@Fabor My own learning, and some features like automatic queries and score table for chat rooms
 
Raj
6:56 AM
@SagarNaliyapara title tag is already short
 
i don't know exactly about it! @Raj productforums.google.com/forum/#!topic/webmasters/AGW2A2zk4Zs this forum discussion is about that thing follow it..
 
Raj
@SagarNaliyapara ok
 
@Wes ?
 
Wes
i !!tweeted something but i received no feedback about it, despite the tweet worked
mornings, tho
 
strange. Maybe it was too busy :P
Moerningall
 
7:08 AM
o/
 
Morning
 
hmmm seems broken indeedlydeed
¯\_(ツ)_/¯
 
Wes
:P
 
ASCII thievery!
 
morning
 
7:14 AM
Morning
 
Mornsko
 
W.T.F.
 
Morgen
 
Morgen
 
Wes
7:30 AM
we meet again, circular dependency [with german accent]
 
@Wes u like material design ?
 
Wes
didn't look at it yet
 
anybody a good naming idea for a method which checks whether a date is between a given range. atm we have isValid() but it feels too generic...
 
dateBetweenRange
 
7:35 AM
I hoped for something which fits good into a domain language (and does not rely on the impl. details)
 
It is easier to read like this though. isValid hints at a big generalization.
 
@staabm inRange?
 
Wes
@Saitama i thought you meant google's material design
 
@Wes I meant like anything in general, for styling web apps...
 
\o
 
7:40 AM
\o
 
atm we have

public function isValid(){
return ($this->validfrom <= date('Y-m-d') && $this->validto >= date('Y-m-d'))
}

I guess you are right.. injecting the date makes client code more readable

public function inRange($date){
return ($this->validfrom <= $date && $this->validto >= $date)
}
 
o/
 
public function inRange(\DateTime $date){ though
 
\DateTimeInterface
 
^
 
Anonymous
7:44 AM
monruihga
 
mgdfsgdrrom
 
mowefsdvfsfd
 
Wes
\DateTimeImmutable
 
klfjdoi cu5f4nu9xu3df 8m9
 
Anonymous
@Fabor Meeting today to discuss, will let you know how it goes
 
Anonymous
7:46 AM
@PeeHaa racist.
 
Wes
@PeeHaa sexist.
 
@PeeHaa offensive
 
@JayIsTooCommon Ah cool thanks
 
anybody uses google drive to upload on yoiur site? any enlightenment?
 
Anonymous
nevermind
 
7:50 AM
yes api
using php i'm not sure how to do these
 
Anonymous
oh - Yes, the API is pretty good. The documentation isn't. Use their PHP Client Library. It's a complete ass to set up and to work out but do enough Googling and you'll get there. Once it's working, it's pretty powerful
 
i hate there documentation it seems not properly well documented
 
Anonymous
Yep, the documentation is appalling. A lot of it is out of date as well, I had to go by GitHub comments to work out what was in date.
 
8:06 AM
@Wes There's no guarantee that would work
 
Wes
@MadaraUchiha ??
 
No wait, yeah, that will work for sure
 
@JayIsTooCommon @PeeHaa @Anyone else I would love to get feedback and feature requests on chat.stackoverflow.com/rooms/123405/jarvis-bot-testing if/when you have time
 
By the time x() is called, rofl() would be defined
It's confusing though, if you're planning to use hoisting like that, go with function name() { blocks
 
Wes
... how that changes anything? :B
 
8:08 AM
@Jay did you manage to get your impossible JS working? :D
 
Anonymous
@Sean Nope. I'm thinking of saving this for NW, just to prove i'm not mad
 
I need some help with Ajax issue.

Im getting internal 500 error.

This is my PHP :
<?php
// --------Connect to DB --->
include 'connect.php';

$conn = connect ();

//====================================================================>

//grab data
$this_id = $_POST('pid_num');
$this_start_date = $_POST('date_ammend');

$sql_update_query = "UPDATE Galaxy_jobs SET date ='$this_start_date' WHERE PID = $this_id";

//====================================================================>
mysqli_query ($conn,$sql_update_query);
 
please learn to use prepared statements
 
@GenGen Please use pastebin or another code paste service rather than pasting a load of code here ^^
Also, switch on display_errors if you can and you'll find out what the 500 is trying to tell you
 
Sorry, didnt realise how much I put in
 
8:10 AM
If you can't, check your error logs.
 
Wes
can we please get a <font color="lime" bgcolor="blue"><marquee><blink>PLEASE USE PASTEBIN.COM</marquee></font></blink> somewhere
 
@Wes Not enough comic sans
 
@sean how do I display errors?
 
Anonymous
@Sean I just changed the name of the function and it's now defined.
 
Wes
@Sean right
 
Anonymous
8:11 AM
impossibru
 
@JayIsTooCommon :V Magic
 
moin
 
Anonymous
@Sean I know you don't believe me.. I promise i'm not mental. NW will reveal all
 
@JayIsTooCommon Do a talk on it :P
 
Anonymous
lol
 
8:13 AM
stackoverflow still has a chat? :o
 
Rumor has it!
 
yes, lol
 
and first thing I see is someone using $_POST gets out of here
 
> Floats are floating point numbers, which allow more output precision than plain integers.
This is just amazing stuff!
 
...
 
8:21 AM
Floats are floating point numbers! What a revelation.
 
If you cover them with toilet paper you should be able to flush them.
 
ThW
Morning
 
Anonymous
@Fabor lol
 
I mean, defining a word with the word itself is just what not to do 101 in documentation.
 
morning
!!dad
@Jeeves you drunk again?
 
8:30 AM
Jeeves is always drunk.
!!lick
 
:P
 
But he seems to be passed out now, yeah.
Normally he's not a fan of being licked.
 
@Sherif reminds me of this
 
@Jimbo LOL
 
8:34 AM
Tnetennba is actually spelled with a silent m though.
 
@PaulCrovella we need to be 5.4 compatible. :-/
 
@staabm Why? 5.4 is EOL.
@staabm php.net/eol upgrade before it's too late man
PHP 7 or perish!
 
Anonymous
Anyone use Scout monitoring?
 
Wes
@Jimbo i watched that episode minutes ago...
7
Q: Is "tnetennba" a real word?

FlykI've seen and heard the word "tnetennba" used, most famously by Moss in an episode of the IT Crowd in which he was a contestant on a fake episode of the TV show Countdown. In this episode, no definition of the word is given by when asked, Moss uses the word in a sentence as follows; Good morn...

 
> People on the Internet will believe anything
 
8:40 AM
Those suckers
 
They can also make any fake thing they see on TV real on the Internet.
The Internet made this happen for real! https://t.co/tM5fLItt6l
 
@JayIsTooCommon no, we use Instana obviously ;)
 
@Sherif reality.. and Ubuntu LTS
 
8:56 AM
@staabm Reality is a sham.
 
@Sherif hopefully we can implement things in the future with virtual reality, so things/environments get more dynamic ;-)
 
Yea, the whole "I can't upgrade because LTS" excuse is just a coat hanger for my ops team is lazy. The longer you cling to that hanger the deeper in the hole you go. Just sayin'
Package managers exist for a reason. There is nothing preventing you from upgrading PHP in Ubuntu LTS.
 
@staabm here is a free advice: dont use ubuntu
the LTS version an notorious for being hard to upgrade and you get stuck with ancient software
as a developer you would be off by using some rolling-release distro
 
morning
 
Hey Joe o/
 
9:06 AM
yo fab
 
moin
 
yomin chris
hows life then @Fab ?
 
Tis okay, right now I am at Burapha Uni in Thailand.
End of the working day here. Friend is a Professor
 
super cool
 
How are you?
 
9:09 AM
okay
 
@JoeWatkins o/ after long time?
 
moin Joe
 
'nin
@SagarNaliyapara yes,present ...
 
hows Emma and Lewis doing? cuties @JoeWatkins
 
they're good
 
9:17 AM
\o
 
@Fabor How are the ladyboys?
or is @PeeHaa's mom not there?
 
LOL
 
We're going people watching tomorrow, so will let you know.
 
@Fabor "people watching"
 
9:28 AM
for companies like us which dont have dedicted linux experts its easier with ubuntu

but I agree that - as a developer - things are easier and more up2date with non-lts stuff
customers prefer the more stable and most of the time less expensive lts versions (because of less upgrades within a certain time span)
 
well, the standard policy in where I work is "use ubuntu" too
but as soon as I got hired, I went to tech-support and asked whether I can install some other distro on my box and what configuration I should bring over
 
@tereško what are the open-source options instead of that?
 
@SagarNaliyapara I am currently using Arch on my workplace PC
 
@staabm Wait until you go somewhere where they follow some shitty ISO standard and the tech director (retard) stops ANY Developers installing what they want on their dev boxes
 
o/
 
9:31 AM
Forced to use windows. Want a driver? Put in a support to "IT"
 
I have to develop on windows on a remote machine (where I at least have admin...). Local windows I can't install anything
 
it's none of anybodies business what operating system I use ...
 
any windows users here?
 
I use windows as my gaming OS
 
Mint user her o|
 
9:32 AM
I use windows to see out of
 
@tereško I am a CONSOLE_MASTERRACE!
 
teresko, what gaming rig you got?
 
I also use it for basically everything except production web servers
 
@Saitama I think the word you were looking for was "peasant"
 
I'm sure it was "master" :P ;-)
 
9:34 AM
@virepo fx8370,r9 290x 8g, 16gb ram .. nothing too impressive
 
ahh , i went for intel on mine
 
about 6 month ago I realized that what I have built is actually a rig with major focus on durability
oh .. and a 3440x1440 screen
 
@tereško going to implement in my PC in very short time thanks for free advice :) o/
 
I had to sell mine , but used to get around 120 fps on battlefield 4 which was quite good
 
how many fps are eyes ?
 
9:38 AM
@JoeWatkins 200-ish (according to USA airforce research)
 
i thought it was 150 i think
 
@SagarNaliyapara it's not a newbie friendly distro. It has major influences from Gentoo and FreeBSD. It might be a bit out of your reach.
 
@Jimbo since I am in charge of this things right now, this will not be a problem... (or me gets retard) ;)
 
@tereško any advice for that? :( may be hard for some times? hard learning or regular use matters?
 
@SagarNaliyapara well, the "hard part" is the installation, since you will have to do it from terminal with no GUI while reading the manual
 
9:44 AM
ping @PeeHaa
 
the usage afterwards is simple (IMHO, simpler than Ubuntu)
 
@tereško then it's ok i will install it properly anyhow.
 
@SagarNaliyapara I personally would recommend to try it at home first
(find some old HDD or a small SSD and set it up there)
 
sure thanks.. :)
 
@DaveRandom pong
@Jimbo hehehehe
 
9:48 AM
I have a bit of a newbie question, but im confused. I have only worked with amazon AWS servers and connect via ssh using a .pem file. It follows something similar to ssh -i "path/to/my.pem" user@EC2-IP-ADDRESS
 
@Saitama only thing that consoles have over PC is .. well .. lack of choice (which is actually a huge benefit, because people tend to get very confused, when confronted with a large amount of options)
 
However i have created a droplet on digital ocean and want to text this out. When creating it I have to create SSH keys to connect instead of a .pem but im having trouble doing this on windows
 
@tereško not sure what to feel... also we have some exclusive games ^^
 
I have generated the public and private keys through puttyGen , and saved them to my desktop. Then opening gitbash i try to do ssh -i public-key root@IP_ADDRESS
it then asks me for a password, but i do not have a password as im using ssh keys
any ideas?
 
When you start an Ajax Post does your pHp code need to return any data?
 
9:51 AM
You have save public ssh key at digital ocean account also..
 
@Saitama some exclusives (actually really few in this generation), because most of xbox "exclusives" are also available on PC and same goes with ps4 "exclusives". And keep in mind that PC has "exclusives" too ... whole genres .
 
@Linus well,
 
And path in your putty
 
@GenGen either return or echo something that will be the response in AJAX
 
i went onto digital ocean security page, and copied my public key into there and saved it
 
9:51 AM
@sagar without that will it cause an internal 500 error?
 
and im not using puty to connect im trying with gitbash
 
@tereško <3 uncharted 4 ^^
 
that's one of the exceptions
 
consoles cannot compare the good PC gaming
 
@GenGen dataType: 'json',(in Ajax) echo json_encode($result); (In PHP)
@GenGen check in network why it giving 500 error
 
9:54 AM
Try something like ssh user@server -p <port>
 
@Saitama I notice how you are not using the "it's simple to use: you just insert CD and play" as argument :D
 
and also that ^ :P
 
you insert CD, it installs, then it updates your console, then it downloads the "0-day patch" .. of 40GB
have the added the "update in background" feature already?
 
@SagarNaliyapara Its not showing me any useful information in the network.

php script | Status : 500 | Type : XHR | Then it shows Jquery script | Size and time
 
or is it still a full take-over?
 
9:57 AM
@Linus still asks for password
 
@GenGen 500th error means "you php code dies with a fatal error" or ".htaccess is fucked"
 
can i just connect without ssh and use a password
 
No
Not recommended
 
@tereško I ran the php code on its own. It works fine.

I try to run it through ajax and I get a 500 error
 
9:58 AM
@GenGen looks at your server's error log - it should have additional information
also, enable "display errors"
 
Linus that link is for git
 
I have. @tereško , @SagarNaliyapara can I link you to my question posted. You guys will have a better idea once you look at my code I think.
 
gods below, @GenGen, that code is complete shit
:(
first of all, fix the SQL injection vulnerability
read up about prepared statements
 
Sooo... you read the part where I said I butchered my code down to the bare basics to try and resolve the problem right?
I took all of that out to test and find the bug.
I took your advice and looked at the error log.
It showed that there was an error on line 10 of my code.
 
10:04 AM
ha ha ha @tereško you have told this statement about learning prepared statement so many time in last couple of days,
is this silent Movement for it? :P
 
Which I looked at.
$this_id = $_POST('pid_num');
Thats the bug.
I feel stupid now
square brackets vs round brackets
should be $this_id = $_POST['pid_num'];
 
@GenGen :-(
 
lol
 
Haha
I know
Send me all the shame
 
7 mins ago, by GenGen
@tereško I ran the php code on its own. It works fine.

I try to run it through ajax and I get a 500 error
 
10:06 AM
@tereško It worked when I ran it on its own.
Dunno what to tell you.
 
@staabm Did you used to go on Habbo a lot?
 
GenGen, what do you mean "it worked"
@Jimbo I did :V
Like, does it produce a blank page?
Or expected output?
 
@GenGen have you disabled error reporting?
 
@sean Well, it didnt throw an error. Im going to check the db now. Accidentally closed phpmyadmin
 
@GenGen Are you running it on command line, or are you hitting the page directly in a browser?
 
10:09 AM
3
11-11-1111
18:32

Works.

Im calling the javascript function from a button on a test page.
@tereško : For the record. You are 100% correct on the SQL injection vulnerability.

Please have 1 internet cookie on me.
 
So it's probably to do with the data (if any) that you're sending to the page
 
/me is sick and easily annoyed
 
@Fabor Are you anywhere near Trang?
 
@sean Datatype is text, does that flag any bells?

@tereško I gave you credit in my answer on my post.
 
Day 4 w/ SoapClient. All was well until I see that the response schema has an attribute in it. Oh god
 
10:17 AM
You got to Day 4?!? Most people are in a padded cell by the end of day 2
 
Wes
it's the first time i notice thailand has that bit of land that goes down to what i thought was just malaysia :B
 
Anonymous
@Fabor You got hangouts?
 
10:36 AM
@JayIsTooCommon He's gone out for dinner
 
Anonymous
@Fabor enjoy your dinner... <3
 
:-P
 
Dinner at 6 pm too early?
 
any one feeling generous ?
 
Ekn
11:04 AM
mrnng
 
O/
Which one is correct?
 
-9
Q: How can I encrypt/randomize my sites URL

Scott MckayI can easily encrypt a url from lets say google.com to %67o%4F%47l%45.com it is basically the same thing but the problem with this method is that when entered on the url bar it reverts back to google.com. What I need is a plugin or method that could do this without it reverting back to the origin...

If this doesn't reach -100 by the end of the day I'll be surprised.
 
- sorry to ping you again
 
Oh god, there's another streak of people up voting crap again
 
- sorry for pinging you again
 
11:09 AM
@bwoebi Can the zero case be simplified to (?| 0+ (?&add) (?<arg>[01]+) | (?<arg>[01]+) (?&add) 0+) (?&eq) (*PRUNE) \k<arg>?
As I understand it the magic is just there to avoid having two cases for that?
 
@Shafizadeh this one sounds a bit better
 
@bwoebi The ?&zero at the start of the other s branch can now be just 0*+ right?
 
Thx @tereško
 
@bwoebi Generally, how is the regex supposed to deal with leading zeros?
You're lenient about them for the zero addition case, but otherwise leading zeros fail
Or rather, they need to be applied symmetrically on the left and right hand side
Scratch that, they work on the first operand but not the second ^^
@bwoebi Why does iterateddigits use recursion instead of a simple quantification like (?=(?:(?=(?&checkdigit))\d)+\b)?
The "remove leading zeros" in s (0*?) is probably a leftover as well? The leading zeros are already stripped at the start of the rule
Also regex101 totally needs a "go to declaration" :P
And I need a larger screen
 
11:33 AM
Hello! Help solve the problem. We do Rest API with PHP 7 and select framework Phalcon 3.0 or Symfony 3.0. What works best in your opinion?
 
user1897253
Whatever you / your colleagues know best
 
@NikiC not, quite, you want to match 0 + 00 = 0 too
 
@bwoebi ok, so with extra 0*+s. regarding the zeros see below -- the behavior is currently inconsistent :(
 
But yeah, looks simpler than (?(arg)(*F))
 
@Firepro Symfony....if only because it will be easier to move away from when you come to hate it.
 
11:39 AM
@Firepro Why would you need either for a rest api?
 
@NikiC to avoid capturing groups being reset between iterations
 
i have spun up a Digital Ocean droplet wiht LEMP stack
i have cloned my project to /var/www/project-name
when i go to my IP it goes to the index.php file in /var/www/html
so i have changed nginx config in /etc/nginx/sites-available/default from root /var/www/html to /var/www/project-name
and it keeps going to the /var/www/html file , i have restarted nginx but no joy
 
@virepo you should be asking about it on chat.stackexchange.com/rooms/118/root-access
 
root access?
 
@PeeHaa Phalcon already in use and we like Phalcon performance (25,000 requests per minute, response time of 20-30 ms) I would like to try something new, like a Symfony, but they say it is very slow, even for php 7.
 
11:45 AM
Why would you "try something new"?
Hell why would you try a "full stack web framework"?
 
@PeeHaa Two reasons - that's what a company uses that you want to work for, and you can actually use it to write good code
 
@Jimbo You didn't actually read above didn't you :P
 
Firepro , use laravel :)
 
No. Haha
 
;-)
 
11:47 AM
@virepo Sure, use that and be forever a junior
 
user1897253
If i had to pick a framework it would be laravel no doubt
 
Neat , thumbs up
 
@Jimbo BTW I don't agree with the last part
You can say that about everything (but the blogging platform that shall not be named and the framework that shall not be named)
 
@PeeHaa Why? A good framework allows you to write your code completely separate, even framework-agnostically, and then just slot it in
 
@Jimbo You don't need a framework for that
 
11:49 AM
Okay okay, and the slot-in mechanism is also well written lol
No you need a good set of software architects who know what they're doing
 
i thought every php developer loved wordpress ..
 
@Jimbo Exactly
 
user1897253
Every good php developer loves wordpress you mean
 
@NikiC with fixed 0 handling: regex101.com/r/yD1kL7/19
 
Okayy))) If you were writing Rest API, what a framework would be chosen in PHP 7? :)
 
11:51 AM
@virepo you probably should sign up for a doctor's visit about that
 
In your case phalcon
 
i think PeeHaa does occasional commits to wordpress ;)
 
You have something that works for you and that everybody knows
Would be pretty stupid to throw it all out because new shiny
 
Lumen Firepro
 
@NikiC yeah, that was a leftover from when it was mixed: removed in regex101.com/r/yD1kL7/20
 
11:53 AM
You guys should really get a hobby / boy- / girlfiriend. This regex fetish is becoming a problem
 
If you're looking for a boyfriend I recommend @PeeHaa's mom
5
 
@PeeHaa Sorry, but regex is our hobby.
 
0
Q: Changing Nginx root is not working

virepoI have created a LEMP stack ubuntu server on digital ocean and cannot get it to point to my application. When i go to my servers IP address it goes to an index.php file inside /var/www/html however I want it to point to /var/www/itom/public. This is my nginx config file server { listen 80...

 
@Jimbo lol
 
@Jimbo I fear that's going to be a bit self-referential…
yesterday, by bwoebi
@JayIsTooCommon wait… what … I am not @PeeHaa's internet mum???
 
11:55 AM
It's ok I'm saving it all up for phpnw
 
@virepo @PeeHaa Thanks!
 
but seriously Firepro, use Lumen
better comunity around it aswell
infact i think wordpress has some good api plugins ;)
 

« first day (2161 days earlier)      last day (2803 days later) »