« first day (1749 days earlier)      last day (3203 days later) » 

10:00 AM
@FlorianMargaine o/
 
@PeeHaa \o
 
Careful giving things like that to Joe, he might get lost and drive the VPS into the Grand Canyon or something
:-P
 
hehehehe
 
ty @DejanMarjanovic
 
You can now tumble together :D
yw
 
10:03 AM
It's time for a game of root password wars
 
I just picked commit hash, I'm so random
That's why my passwords are literally one-time-passwords
I don't always set password but when I do it's OTP
 
@DejanMarjanovic What if you need to access it again?
 
That's why I've sent password to Joe and Dave
 
Smart... Can I do that too?
 
genius idea, a social password you don't remember/store yourself, but send to mates and then ask them to enter it
gonna be rich
 
10:08 AM
@SergeyTelshevsky You could expand that idea and include keys! Especially bathroom door keys!
 
distributed password
 
It would also mean that people would be nicer to each other, because I mean, if you piss your friend off he might just let other people in.
 
mornin'
 
It's win/win
 
10:11 AM
Jul 19 at 16:25, by ircmaxell
user image
@Epodax 1
 
@DaveRandom 1 what?
 
win / win
 
win/win === lose/lose
 
@Dejan got it ... sorry was afk ...
 
@DaveRandom /confused.
 
10:20 AM
Error: invalid_request

Invalid parameter value for redirect_uri: Invalid scheme: <http:
why do I get this error
 
@DaveRandom I appreciate you
System Administrator Appreciation Day, also known as Sysadmin Day, SysAdminDay, SAD or SAAD, is an annual event created by system administrator Ted Kekatos. The event exists to show appreciation for the work of sysadmins and other IT workers. It is celebrated on the last Friday in July. == History == The first System Administrator Appreciation Day was celebrated on July 28, 2000. Kekatos was inspired to create the special day by a Hewlett-Packard magazine advertisement in which a system administrator is presented with flowers and fruit-baskets by grateful co-workers as thanks for installing new...
 
@Fabor "The Winston Cocktail" WTF!?
 
anyone ?
to discuss
 
I bet it all tastes horrible too.
 
10:27 AM
@KnowMe Show your code
@Fabor Yeah probably :P
 
@PeeHaa - where do u want me to put tje code
@PeeHaa - Thank u
 
Somewhere where people can read it preferably
 
ok
I will put it on stackoverflow then
 
Or just in here
I mean it's only a single line I assume
Oh wait btw. Is that oauth stuff?
 
@PeeHaa it is more than one line of code
@PeeHaa Thx
 
10:33 AM
Is this right:

$textSQL = "UPDATE print SET ";

if($enabledText == "enabled"){
$textSQL .= "enabled='1' ";
}
 
define "right" ?
 
Can I append the piece of code depending on the if condition this way?
I have a huge number of updates, so I just want to know that if 'field' is set (via checkbox) then update field
I'm wondering if the syntax is correct
 
You mean can you generate a query string?
 
@PeeHaa - here is the link with my code
 
@Fabor Yeah, but broken up based on conditions
 
10:38 AM
Why wouldn't you be able to?
 
2 mins ago, by deathtap
I'm wondering if the syntax is correct
not to sound radical, but: did you actually TRY to run it?
 
hi guys
 
@tereško Yes, but it comes back empty
 
@PeeHaa - can u open the link
 
 
Hey! It worked!
 
@Fabor @rdlowrey tagging a stable release
 
I seriously didn't know you could append lines with '.='
I just came across that somewhere.
Sweet.
 
@KnowMe does this look like avlid url to you <http://ccccccccccccccccccc.com/rddddddddddd/index.php>?
 
I am facing a very confused issue . I have a form which contains large amount of data so when I submit and target file just contain a header() function.
`header("Location:http://google.com");`
`exit();`
still it takes 7 seconds to redirect
 
10:42 AM
@PeeHaa Yes, it's even returning a page.
 
any idea what is the reason server/large data
?
 
@PeeHaa this is just for posting the actual url is neighborhood.apptechclient.com/restaurant_test/index.php
 
@PeeHaa Maybe when they registered the domain the C button got stuck and they didn't notice it before it was too late?
 
@kelunik With the <>??
 
@KnowMe Remove < and >
 
10:43 AM
:-)
 
@PeeHaa Nope, I didn't read that, I just assumed you used them instead of quotes. ;-)
 
i am trying to migrate my sugarcrm project to suitcrm ,not working,any idea?
 
@Arundivakar Yea, there's a error somewhere.
 
yes of course
 
@kelunik where
 
10:45 AM
@KnowMe Did you actually read the error message Google gives you?
 
@Epodax Anything divided by itself is 1
 
@DaveRandom but... that's not what I ment D:
 
@DaveRandom Unless it's zero
 
@DaveRandom Except NaN and 0.
 
Ugh, I hate number theory :-P
I still haven't reconciled 0.999... == 1 yet
 
10:48 AM
@kelunik yes i read it
 
@KnowMe What does it say is wrong?
 
@kelunik so what should I do
 
@DaveRandom unless it's infinity
 
@kelunik it says invalid parameter
 
@DaveRandom Tell Vi Hart that
 
10:50 AM
@Gordon and beyond?
 
> Invalid parameter value for redirect_uri: Invalid scheme: &lt;http://...
You should remove < and > from your URL.
 
ok
@keluniik
now there are other errors will look at them @kelunik
 
Do you guys work on comission?
I mean, do you do projects for hire?
 
@kelunik Warning: Missing argument 1 for Google_Client::authenticate(), called in /var/www/html/restaurant_test/index.php on line 34 and defined in /var/www/html/restaurant_test/lib/google-api-client/Google_Client.php on line 124
 
You mean are we freelancers.
 
10:55 AM
Yes. Are you freelancers?
 
@kelunik what aregument should I give for the 1st parameter
 
@KnowMe Debug it
@KnowMe Look at the docs / debug it
 
@NikiC still need a day or two to decide. I'll read the meeting notes first.
 
@KnowMe RTFM, seriously.
 
Someone needs to do a quick write up on why it's best to not ask such trivial newbie questions in succession.
tl;dr RTFM yes.
 
10:58 AM
@Fabor It's already been done
 
Aye vampire-ism but I mean in the case of real beginning 101 stuff.
 
Well imo the biggest problem with people like that is that they won't bother to read said document either way :-)
 
@PeeHaa vampire, I should totally add that do the name finding thread for amp-chat.
 
Oh wow. Noice
 
:P
 
11:04 AM
Please ping me with cool things you do in your workplace that are not work related. I want ideas.
 
Example?
 
Mozilla is unhappy <--- Link is real
2
 
@bwoebi PHPUnit 5.0 (master)
 
@SebastianBergmann figured out 4.8.x-dev is fine too
 
@MarcelBurkhard Congratulation then :-)
@bwoebi PHPUnit 4.8-dev should not pull in the master of php-code-coverage.
 
11:07 AM
@BenjaminGruenbaum Sometimes, when I feel like a real rebel, I actually work, I know, I'm a dare devil.
 
@SebastianBergmann no, but you actually had tagged some version of code coverage?
 
@bwoebi No.
 
well, weird, it somehow does work…
 
github.com/sebastianbergmann/php-code-coverage/blob/master/src/… only exists in master. And there is no tag yet that has it.
 
@BenjaminGruenbaum Cocaine. Lots of cocaine.
:-P
 
11:14 AM
@DaveRandom he said cool.
 
@DaveRandom You mean the node.js framework?
 
@SebastianBergmann Probably because of ~2.1 and minimum-stability: dev.
This automatically pulls 2.2.x-dev which is master.
 
It's refreshing, it follows that it's also cool
 
@SergeyTelshevsky For some reason I don't believe you.
Is it Rick astley?
 
11:17 AM
@NikiC wtf
 
@Epodax well, you can tell by the link it's an image on facebook's cdn
 
In fact, that's quite apt for JS... runs really fast, is really brief in some places and unnecessarily verbose in others, is really expensive, probably precedes a horrible car crash, and turns out to be not nearly as good or exciting as everyone says it is
 
@SergeyTelshevsky I've been tricked before... more than I care to admit.
 
@SergeyTelshevsky don't trust facebook, they may redirect you to rebecca. :P
 
@kelunik any facebook devs in this room? :)
 
11:20 AM
@SergeyTelshevsky at least sometimes. ;-)
 
It's a bad idea to accidentally push debug instructions to php-src^^
 
Hello,

I have this table filled by using a foreach. Lets say there are 3 columns every row and filled with information from a table. Now I want 1 column in every row in the foreach to be replaced by information from another table. There must be a simple solution to this and I know there should be a question like this on So but as a non native english speaker I cant figure out what to search for.
 
@Loko Please try and come up with a short code sample, showing input, current output and desired output, on a pastebin.
That question is too vague to reasonably answer without code and data samples
 
@DaveRandom Okay I got an example:

http://pastebin.com/gs4sh08D

this is what it looks like now. However I want the column2 to be information from a different array but with the same condition as this foreach loop
 
@Loko OK, so how do you tie entries from array1 to entries in array2? Do the arrays have the same keys?
i.e. it would be helpful if you could show some sample data for your two input arrays
 
11:34 AM
@daverandom Okay column2 from this first array is an ID. and I use that information in a query to get information tied to that ID from another table
To show instead of the column2 id
 
@bwoebi We need a new master build for Travis then, right?
 
@Loko Is this data coming from an SQL query?
 
@daverandom yes
 
Then what you need is an SQL JOIN
Can you show the queries you are using to get the two arrays?
 
@kelunik yeah, anyway. Travis hasn't updated since yesterday yet.
 
11:37 AM
@bwoebi But I did.
 
@kelunik yeah, you do locally, obviously???
 
@bwoebi I should probably build it on Travis directly and upload it to my server from there and just restart the build every night with a webhook.
 
@kelunik and how do you guarantee that the uploader is indeed your travis build?
 
@daverandom 1st query is like: $data = Select * from table; 2nd query is: foreach($data as $test){ Select * from othertable where id= $test->column2; }

Something like that. I know I shouldnt do it like this.
 
@bwoebi encrypted private key.
 
11:40 AM
@kelunik can you pass secrets in in travis builds which no-one sees except you?
 
@bwoebi yes.
 
oh
 
@Loko You need to do something like SELECT * FROM table t LEFT JOIN othertable o ON t.col2 = o.id and get all the data in a single result set
If you show your actual queries and DB schema (pastebin pls) then I might be able to be more specific
 
Happy Tuesday people!
 
11:43 AM
@daverandom You helped me enough. I get it. I just have to get it to laravel now. Thank you\
 
@RonniSkansing you need to write a Laravel package equivalent to the WP uninstaller, you can call it Unravel.
 
@DaveRandom Composer package that removes laravel and itself when installed using post-install hooks?
 
@kelunik that'd be a nice way to troll people^^
 
Hello Guys i am New in php
but i have a query about it
 
12:00 PM
what is equivalent of these in PDO ?
`mysql_query("SET NAMES utf8");`
`mysql_query("SET CHARACTER_SET utf8");`
 
posted on July 31, 2015 by kbironneau

/* by matov */

 
@Sajad $pdo->query("SET NAMES utf8");
 
@kelunik thanks. just onething, $pdo is connection or it is a constant ?
 
@Sajad You shouldn't do either of these anywhere
You need to set the character set/collation using the underlying client lib functions, you shouldn't do it by executing commands against the server directly
 
@DaveRandom why not ? when I insert a Arabic string in database, it stores as unknown characters
@DaveRandom em, excuse me, but I did not get it .. :(
 
12:05 PM
In ext/mysql (which you shouldn't use) you would do mysql_set_charset(), with PDO you use the charset parameter in the DSN passed to the PDO constructor
 
here is my connection :
$dbh = new PDO("mysql:host=localhost;dbname=spy", "root", "");
 
$pdo = new PDO('mysql:host=localhost;dbname=testdb;charset=utf8', $user, $password);
 
new PDO("mysql:host=localhost;dbname=spy;charset=utf8", "root", "");
 
@iroegbu oh WOW !! THANKS !!!!!
 
And DO NOT use the root user to connect to the DB server in an application
and DO NOT leave the root password blank
 
12:07 PM
@DaveRandom Got it now .! really thanks for your advice
@DaveRandom why ?! I'm on local now, I need to password. when I upload it on real server, I will choose a password for that.
 
@yash As a general rule it's hard to answer questions when you don't ask them...
@Sajad It's good practice set up your development env as close as possible to the production env. This includes setting up a database user that's as restrictive as possible. You don't want to find that something which worked in dev doesn't work in production because it needs root access which it suddenly no longer has...
 
@DaveRandom ah, alright ... tnx
 
in Android, 19 hours ago, by WarrenFaith
> Heisenberg, Schroedinger and Ohm are in a car.
They get pulled over. Heisenberg is driving, and the cop asks, 'Do you know how fast you were going?'
'No, but I know exactly where I am,' Heisenberg replies.
The cop says, 'you were doing 55 in a 35.' Heisenberg throws up his hands and shouts, 'Great! Now, I'm lost.'
The cop thinks this is suspicious and orders him to pop the trunk. He checks it out and says, 'Do you know you have a dead cat back here?'
'We do now, asshole!' Shouts Schroedinger.
 
... i will never get rid of this pink user profile... how many points do i need until it turns into something cool (or until i can change it) ?
 
@chozilla do you want to change your avatar ?
 
12:19 PM
Yes, i don't like my avator!
 
@chozilla It will always be the same, it's based on your username.
 
@chozilla Almost there. Just a couple more points :)
 
@kelunik why do you have that squrily round thing there?
 
Damnit. @kelunik ruined it already
 
that's very simple. go here:
http://stackoverflow.com/users/edit//{your number} (e.g. 2805376)
 
12:21 PM
@Epodax Bastard.
 
@chozilla Because I played with GIMP some years ago and set it as avatar.
 
lol dat morning @Jimbo
 
@kelunik holy... you get that round thing for points in GIMP? i suddenly don't want a new image... suddenly it feels like not worth installing GIMP
 
A short question, My xampp version is old, I don't want to upgrade it, I just want to upgrade its php version, is it possible ?
 
@Sajad I used XAMPP some years ago, back then it was a pain to change anything because it was tightly coupled with everything in the pack.
 
12:24 PM
@chozilla so what is your suggest ?
 
@Sajad if your setup is not to different try upgrading the pack.
 
@chozilla If I upgrade it, all of my database will be removed !
 
@Sajad Install Docker and have a proper setup with a lightweight VM of a real OS. :P
 
@Sajad I currently have my Webserver in a VirtualBox and i like it more.
 
@kelunik :)
 
12:25 PM
@kelunik sure the skill level is almost the same as installing XAMPP...
 
@chozilla Is it heck
 
@Jimbo What's up?
 
ah ok, anyway thanks, Indeed, this is your link: (for changing your avatar)
http://stackoverflow.com/users/edit/4101998/
 
hi
 
@YorickH hi
 
12:27 PM
how is everybody doing?
 
Vagrant is - it's almost literally a few lines to set up virtualbox machine settings (name, ram, IPs etc), and then your bash script which installs everything. Combine that with hostsupdater and snapshot plugin and you're sorted for Dev.
@Epodax Your link... my speakers were on full blast.. :D
 
@chozilla Yep, docker run --name lamp --restart=always somebody/might-have-created-a-lamp-stack-in-a-single-container, docker exec -ti lamp bash. :P
 
@Jimbo Ha! I knew @PeeHaa was the right person to use as bait :D
 
oh lel
 
@kelunik it starts with me not using apache, and ends with me needing special php extensions
 
12:29 PM
vagrant + puphpet = easy peasy
 
^ yep.
 
I will switch if i have someone here who can help me. i will never try to setup something linux again.
 
@JoeWatkins generally waiting for you to have finished your php7 ports and having time for a few docs…
 
@chozilla The reason I like using docker for my local setup is: Starting a new container is a single command and it's available as xy.localhost then, because the proxy automatically updates based on the list of running containers.
 
guys i need a pattern for glob function so it can only return me files that have 2 underscores in their names and finish with .html extention , can you help please ? example : test_file_111.html
 
12:33 PM
@Joseph *_*_*.html?
 
@kelunik i think its really cool to have something like this. But my skills are limited to setup something like that.
and i get pissed quite easy whenever something does not compile and I did all the things written on the interwebs.
 
@kelunik this would also return files with more then 2 underscores
 
It's relatively easy once you try it. I had to try it for work with no docker experience, after 2 hours I had a working setup. There are images for everything you need, like the proxy
 
by any change someone here who wrote the documentation for the PHP-AMQP Module?
 
@Joseph Why do you need this?
 
12:40 PM
@kelunik because i need those ...
 
Not a very good reason.
You could just strip everything with more than 2 underscores later.
 
@Joseph well, just exclude them with double underscores then?
 
> The path '.' appears to be part of a Subversion 1.7 or greater
Fuck you svn\
 
svn killed my father
 
@PeeHaa Why are you stuck with svn? just use cvs git.
 
12:43 PM
If only it had supported sane branching maybe he would still be alive
 
client requirement :( I am running on git myself, but client needs it in svn :(
 
@PeeHaa use git and backport to svn later?
 
I'm sure there must be some tool doing that…
 
Is there any way to manually ignore directories in svn? By manually editing some file?
@bwoebi Later is now
 
12:45 PM
oh, well.
 
@PeeHaa Aye, you can tell svn to ignore dirs
 
@Joseph Glob for ones with at least 2 underscores then preg_grep for 2 specifically
[^_]+_[^_]+_[^_]+
 
@bwoebi RCS.
 
@Epodax How?
What file do I need to edit with what?
 
dan
Hello
 
12:48 PM
@PeeHaa Sec, trying to find it for you :)
 
Yes please
 
dan
i'm trying to insert some data from an inputfiled into my database but failing to do so... Anybody have a 1sec to check it out please?
 
@PeeHaa Did you try uploading it to GitHub and checking it out then?
 
This code is not allowed to touch anything outside
 
@PeeHaa svnbook.red-bean.com/en/1.7/… should cover what you need.
 
12:50 PM
@Epodax My problem is
> svn: The path '.' appears to be part of a Subversion 1.7 or greater
 
When you try to ignore a dir?
@PeeHaa What version are you running?
 
user895378
@Orangepill This is exactly the reason I created auryn in the first place :)
 
user895378
@Orangepill but you can actually take it a step further. auryn can "execute" string routes for you so you can store everything in a text file if you want.
 
user895378
Assuming a class like this:
 
user895378
class Dependency {}
class MyController {
    private $dependency;
    private $request;
    public function __construct(Dependency $dependency, Request $request) {
        $this->dependency = $dependency;
        $this->request = $request;
    }
    public function myMethod($foo, $bar) {
        ...
    }
}
 
user895378
12:57 PM
You can execute that by calling:
 
user895378
$injector->execute("MyController::myMethod", [":foo" => 42, ":bar" => 43]);
 
user895378
And the injector will fill in all dependencies according to any definitions you've assigned leading up.
 
@rdlowrey do you use reflections to find out the input parameter names?
 
user895378
So if you, for example, shared the global Request instance as follows it would automatically be passed into the constructor when you use Injector::execute:
 
$ svn --version
svn, version 1.6.17 (r1128011)
 
user895378
12:59 PM
$request = Request::createFromGlobals();
$injector->share($request);
 
@Epodax ^
 
user895378
@chozilla yes
 
Damn you lowrey
 
@rdlowrey how slow is it?
 
user895378
@PeeHaa NINJA MESSAGE
 
12:59 PM
:)
 
@PeeHaa ugh, at least get 1.7
it has the single .svn folder per checkout
 
@PeeHaa Then the link I sent should work, using 1.6.17 myself and that's how I've done it
 
user895378
@chozilla There's a special section in the readme for people like you
 

« first day (1749 days earlier)      last day (3203 days later) »