« first day (1565 days earlier)      last day (3386 days later) » 

9:00 AM
@animaacija NIH
 
Where are you @Ocramius?
Morning all
 
@animaacija time no, knowledge yes, library no
Lets say you don't know OOP and develop a library, it's just gonna be horrible and once you get to know OOP your just gonna dump it
@animaacija not arguing though that its a good way to learn
 
of course it will increase my experience but also wasting my time , my assigned task may not be delivered on time............Experience VS Time @animaacija
 
@Ocramius "Speak English to me, Tony. I thought this country spawned the fucking language, and so far nobody seems to speak it." -- Avi (Snatch)
 
"Experience VS Time" made me think! @Bassem
 
9:05 AM
gods below, this is so fucking annoying
I am trying to work while there are fucking minidrones floating around the office and two know-it-alls are discussing the latesy conspiracy theory
 
@Fabor south west
@tereško buy an ECM jammer
 
Got a name of a city or town you're near? :P
 
Brizzle
 
fo shizzle my nizzle
 
oh .. and also, one of the remotes for said drones is interfering with my mouse
 
9:07 AM
@tereško Shoot 'em down with your 9mm.
 
@DejanMarjanovic E_NOT_SERBIA?
 
throw your mouse at it, take one of theirs as replacement
 
well, it's decided. I am handing in my fucking resignation on monday
 
So much for company culture </sarcasm>
 
the best conspiracy is that the Earth is actually donut-shape (or torus a.k.a)
True story
 
9:14 AM
@animaacija look up "time cube" - also entertaining
 
@tereško Good news!
 
not entirely sure
 
@tereško congrats
 
I have €5k safety blanket, but I want to but a 2k PC which will put a significan dent in it
 
Don't get the PC, not if your safety is 5k
 
9:19 AM
Why don't you like... fight your way up? @tereško
 
At least not until you get a new job
 
@tereško Fucking good for you :)
 
@DejanMarjanovic "up" where?
@BenjaminGruenbaum that's 4 month's salary , living carefully it could sustain me for 12 month
 
@tereško Up, like on salary ladder, 2.5k€ per month.
 
you are talking about it as if I can which it into the existence
 
9:21 AM
@tereško good luck for your next job and don't buy the pc
 
@tereško then why buy such an expensive computer?
 
2.5k€ per month sucks anyway ^^
 
also, lets change the subject till I am not fuming in anger
 
@MarcelBurkhard Please, no western europe faggotry.
 
9:23 AM
@MarcelBurkhard thanks for pissing in the wound
 
morning!
 
@tereško you don't want to get to "living carefully" and "sustaining", professional stagnation is not a luxury we have in this profession - at least here.
 
@BenjaminGruenbaum "professional stagnation" is what happens while you are employed
 
You're a pretty bright guy, why not try your luck at a remote job at a big company like SE? I bet you can pick up a different stack like RoR or asp.net mvc in a week or two - as someone who has made the transition that's about as much time as it takes.
 
+1 for remote job
 
9:27 AM
You can pick up asp.net and apply for a remote position for SE. They'll even pay for your desk.
 
even if it's not a big company, any company in a western country will pay much more than 1250/m
 
^that @Patrick yeah I mean i started here with 4900/m
 
@BenjaminGruenbaum No need IMHO, plenty of companies still hire PHP devs.
 
I have a serious need to decompress
I have been at the state of "burnout" since december
 
@DejanMarjanovic what I'm saying is not that PHP is good or PHP is bad, but the fact changing the stack is a pretty easy thing once you already know one.
@tereško burnout is just not being motivated at your job, changing jobs usually fixes that.
@MarcelBurkhard are you work 5000 euros a month?
 
9:29 AM
@BenjaminGruenbaum I understand, but he's not fed up with stack I believe, but with the current company and their type of work, which is boring IMHO.
 
@BenjaminGruenbaum actually more than 6 now, but thats because the exchange rate to swiss francs changed
@BenjaminGruenbaum but living costs here are higher too
 
posted on January 28, 2015 by kbironneau

/* by thureos */

 
@MarcelBurkhard I was just asking if you think you're worth that. I don't think it's a particularly odd salary.
 
@BenjaminGruenbaum normally easily yes, right now no, not enough work to keep my busy
 
You forgot to mention your imaginary figure is tax raped.
 
9:32 AM
@DejanMarjanovic PHP is not a very popular choice at new companies that drive innovation. We can debate if it's a good choice for new companies or a bad one but that has been my experience.
 
lets not open that can of worms
 
@DejanMarjanovic were you talking to me? I only need to pay 16% tax on that
 
@DejanMarjanovic Switzerland is not too bad compared to most countries. Of course I would prefer if it was lower... ;)
 
@Patrick I'm not saying CH is bad at all :-P (adopt me please)
 
In Denmark we pay about 39-50+ tax
and it is wonderful =]
 
9:35 AM
@DejanMarjanovic :D
 
@BenjaminGruenbaum Not arguing, PHP "powers" large percent of web so getting a job when you're a fairly good developer shouldn't be too hard. Getting some big buck would be hard just because the volume of "developers".
 
altough in that sheer volume developers there is huge percentage of old-school spaghetti code programmers
 
@Patrick Nice.
 
9:44 AM
hi guys
 
@Patrick Remote, but most require citizenship of country they're registered in.
 
Hey @John, remember there are also girls here
 
hi guys and gals
haha
 
@RonniSkansing Doesn't matter... it's guys...
 
So who wants to help good ol' Fabor with a HTML scraping task/issue? :P
 
9:47 AM
I am getting this warning Warning: Unknown: open(/var/lib/php5/sessions/sess_93fgci7geoc01pquajnhjbguc0, O_RDWR) failed: Permission denied (13) in Unknown on line 0 can anybody suggest about the same?
 
on the internet, guys are guys, girls are guys, and little girls are FBI agents
 
good ol' rule
 
@FlorianMargaine nice hit
 
Sucks if you're attracted to FBI agents though. No end of difficulties there.
 
hi guys, i´m really stuck with some code and i was hopping someone could help me with the issue, here is what i have:
$statement = $pdo->query("SELECT idHotel FROM Hotel");
$result = $statement->fetch(PDO::FETCH_ASSOC);
$id = $result['idHotel'];$statement = $pdo->prepare('UPDATE Hotel SET Nome=:nome WHERE idHotel=?');
$nome = filter_var(($_POST['formGeralImputNome']),FILTER_SANITIZE_STRING);
$statement->bindParam(':nome', $nome);
 
9:50 AM
@DejanMarjanovic so would you walk into a room only with girls and say hi guys?
 
@Ronni even if its full of girls you say "hey guys"
 
then i have the $statement->execute();
 
I didnt know that =]
 
could someone pls help me?, because the update is not working!.
 
@RonniSkansing afaik guys means male only or mixed group
 
9:51 AM
@Japa same as yesterday?
 
@MarcelBurkhard same as yesterday...i don´t know what is wrong...i´m really stuck
i have tried many things
this was the last one
 
2. guys Informal Persons of either sex. wow..
 
@Japa why are you sanitizing your input?
 
@RonniSkansing I wouldn't say "hi guys" to begin with, but it's legit (girls say it too).
 
ThW
Morning
 
9:53 AM
yeah, pretty common. where you'd get funny looks is using "gals" - nobody says that
mornin, @ThW
 
My bookmarks need a good clearout.
 
@RonniSkansing i think i have to in UPDATE...don´t i?
 
@ThW You're pretty knowledgeable about scraping no?
 
@DejanMarjanovic thanks, =]
 
9:53 AM
@Japa do you have any errors?
 
@Patrick i think i have to in UPDATE...don´t i?
 
wow much ping
 
ThW
@Fabor Not exactly, more HTML/XML parsing
 
no i don´t have errors and i have echo the var id and my imput and they appear...
the ideia is...the database only has one record! and that record is always update...or..if there is no records than i have insert (which is working)
 
@Japa don't randomly ping me. don't filter your input. don't give your fields random names like idHotel or use names in your local language, use english.
 
9:56 AM
@ThW Ah fair enough.
 
the names iºm giving are not random...they make sense to me...but yes i could use more english...meanwhile what do you think is the problem?
and sorry to ping you..
 
@Fabor I used to do a lot of scraping a few years back. What do you need to know?
@Japa they don't make sense to me. Your code should be easily readable by anyone no matter what his native language is. Especially if you ask for help online.
 
@Patrick Just a funny issue. There's a site I am scraping but it gets different HTML depending on what I am scraping it with. For instance the "postman" extension gets the correct HTML but @PeeHaa's Requestable get's a different HTML. You can tell by the "<title>" tag.
 
@Japa why are you using both :named and ? placeholders in $pdo->prepare('UPDATE Hotel SET Nome=:nome WHERE idHotel=?');
 
Good morning slackers (:
 
9:59 AM
@Fabor You still didn't find the fuckup? O.o
@Patrick find it. I want to know
 
@Fabor Maybe they show a different version to mobile users and use the UA to decide which one to show?
 
Morning @AlmaDo
 
@Patrick nope
 
@PeeHaa tbh it was the end of the work when we were looking at it. So today is fresh eyes.
@Patrick @PeeHaa and I have tried setting appropriate headers etc with no joy.
 
hey @RonniSkansing, started new job already?
 
10:01 AM
=] Hey nope, on monday, just sitting here on my arse and playing abit with varnish and redis
thanks for asking [=
 
@Fabor what's wrong with the <title> tag?
 
@PeeHaa I see. Interesting
 
@Patrick I really don't have time to look into it, but I really want to know what it is :)
 
10:05 AM
@PeeHaa if I go mobile I see yet another title...hmm
 
hmmm
curl gets the correct page
maybe it's the location?
@Fabor you should try with a proxy
 
@FlorianMargaine It's different depending on what you scrape it with
Try comparing a scrape with Requestable vs directly on the site.
Tried switching proxies too.
 
They definitely switch html depending on which UA you use (mobile/desktop). My guess is they also have one for crawlers and somehow recognize requestable as such
 
@Fabor yes, requestable gets something different. But curl and browser get the same.
 
@Patrick That would mean I am on a hardcoded "proxy" list
@FlorianMargaine requestable also uses curl
 
10:10 AM
Basically I need to figure out how to get the proper (browser) title from the page through an http client. What settings I must use.
 
hmm
requestable seems very buggy...
 
@Fabor create a php script somewhere that does <?php print_r($_REQUEST); ?> and request it with curl and browser and check if there is still any difference
 
@Patrick What am I looking at?
 
@PeeHaa that url works in my browser, but not in requestable
 
10:13 AM
@MarcelBurkhard I'm setting all the headers exactly as my browser does.
 
@Fabor and you confirmed that?
 
@MarcelBurkhard hi
 
@Patrick I am starting to think I made a booboo in requestable somehow
 
@edward Hi
 
What do you mean by confirm? I've tried using both Goutte (Guzzle) and Artax and set headers on both. The returned HTML isn't the one I am after.
 
10:15 AM
Hello to all
I need your keen help
 
@Fabor did you confirm on a remote server that the headers are indeed the same like from your browser?
 
@MarcelBurkhard yesterday i asked one question but i could not find any solution can any one help

when i am posting html form data to xml and parsing to a url by using the below code
<?php

if (isset($_POST['lsr-submit']))
{
header('Location: myurl');
}

I am getting the "HTTP Status 405 - HTTP method GET is not supported by this URL"
any idea why it is comming please let me know should i make any changes to overcome this error
 
got Additional uncaught exception thrown while handling exception In Open Atrium 2
 
@PeeHaa if I remove the host from the headers it works on that info site
 
@edward I don't know, hever had HTTP Status 405
@edward is there any ?var= in myurl?
 
10:26 AM
@MarcelBurkhard Seem to be.
 
@Patrick oh interesting
 
@MarcelBurkhard its not there
or any idea how to send xml to a url
 
@edward from a html form?
 
3v4l.org/7PWgc#v560 WTF @JoeWatkins @ircmaxell @NikiC
Can you remove this crap -____________-
 
@Fabor if you confirmed the headers are the same, the only difference is your ip address, they might check that for country of origin to show different default languages
@DejanMarjanovic why? Totally valid warning IMO
 
10:30 AM
@MarcelBurkhard yes right now i am able to generate the xml from the form fields using DOMDocument and i should send that xml to a url i got struck with sending
 
@MarcelBurkhard Dafuq dude? PHP7 can't have this crap
 
@DejanMarjanovic well you shouldn't be calling non-static methods without an object, nuff said
@DejanMarjanovic I'm actually suprised this even works
 
@MarcelBurkhard I dumped $this in B which is called statically (yet not defined as such) and I get instance of A, re-think what you've said.
 
@Marcel it shouldn't work at all, that's the point
 
ah I thought he doesn't like the fact that there is E_DEPRECATED
 
10:34 AM
No, it should be removed from PHP7 all together :-)
 
@DejanMarjanovic wiki.php.net/rfc/…
already accepted :)
 
Miss the vote :-) Thanks @FlorianMargaine
Thought that got removed without vote.
 
@MarcelBurkhard We're rotating IPs
 
@Fabor try tethering with your mobile and then run it again
 
Hi, anyone has experience with implementing CQRS? I understand concept of Entity Repositories, but is just splitting them to QueryRepository and CommandRepository (and giving them proper read-only / read-write connection respectively) enough to call CQRS implemented correctly by definition? Note that I'm doing it with Doctrine DBAL only.
 
10:41 AM
Im making a small JSON API, trying to set headers by
header('Content-Type: application/json');

and the system warns that output has started at line 1 of another class file and thus headers cannot be set. Wtf?
 
Right now I'm trying to implement Command / Query repositories for each entity and have RepositoryFactory which has methods getCommandRepository($class) and getQueryRepository($class)
@MarkusPint
@MarkusPint then you have either whitespace sent in that other file or you
ve echoed something - go test it
 
phpstorm doesnt show any whitespace
 
@MarkusPint any chance you have a new line or space before ```<?php``` ?
Could be any of your php scripts that get included btw, because it is considered output and flushed to the browser
 
@MarkusPint check for UTF BOM character, are you sure you have UTF8 files without BOM?
 
well I use russian characters in the strings
 
10:48 AM
Doesn't matter BOM character is one that starts encoding of UTF sequences in file: stackoverflow.com/questions/2223882/…
You should either require PHPStorm to remove them (don't remember option) or try mass replacing in SublimeText or other such editor
 
yeah, the russian strings were causing some weird behaviour, which i tried to fix, which broke the encoding of the class file
 
ThW
@TomaszKowalczyk Menu -> File -> Remove BOM
 
Oh, there it is!
 
what's the BOM?
 
So, can anyone help me with that CQRS issue I described above?
 
10:50 AM
thanks guys.
 
@FlorianMargaine byte order mark
 
what is it for?
 
ThW
@FlorianMargaine Byte Order Mark, magic bytes for unicode files
 
why do we remove them?
 
ThW
specifies byte order and encoding
PHP does not understand them and treats them as standard output
So you get some output before the <?php
 
10:51 AM
ok
 
@FlorianMargaine For stupid editors
 
@Patrick @PeeHaa Interstingly default Artax grabs it
 
@Fabor Damnit. Probably bug on my end then
 
@PeeHaa Guzzle still doesn't.
 
My cyrillic strings show as \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\ etc in console
is that normal?
 
10:52 AM
If you manage to find out what the issue is I would love either a PR or a issue <3
 
@MarkusPint by any chance was that json encoded beforehand
 
they work normally as I use them in the DOM
 
json_encode($response);
 
@MarkusPint they are escaped to their entity form, try raw decoding and be sure that you have UTF8 capable terminal
 
10:54 AM
@PeeHaa lol. I'd like to know too :P
Maybe we'll be able to poke @rdlowrey in to offering some suggestions
 
Hello All
 

« first day (1565 days earlier)      last day (3386 days later) »