« first day (787 days earlier)      last day (4386 days later) » 

19:01
@webarto yup ....agreed .....
user1125394
forgive my stupid question: you can't redirect a Post request with header(), so best option is curl or any http library?
ustream.tv/recorded/22783515 watched this light is a problem
Could be done much better, IMHO, it's a shame, because talk is good :)
@webarto shame ???
But equipment does cost, so...
@NullPointer It's a shame that video is bad. But audio is good, so doesn't matter.
I'm just saying, people want "HD" crap.
19:09
yup... audio is good.... video is ok... content awesome ..
@webarto yup... there are those people who just pretend ... imho
night guys.... going to bed ...
:)
@NullPointer good night
night
Prevent sudden cardiac arrest with -n. — faraz Apr 30 at 10:46
user1125394
19:28
how would you redirect a request with a post content, curl/Artax or there is a simpler way?
user1125394
hmm a proxy rule in apache can be good
user895378
@cyril Well technically user-agents aren't supposed to redirect requests that use "non-safe" HTTP method verbs (like POST) automatically because that can change the context of the original request.
user895378
transparently redirect, I mean. Generally you want to stay away from redirecting requests that can potentially violate idempotence.
user895378
And by "non-safe" I don't mean it in a security sense, but in the sense that a POST/PUT/DELETE method (for example) can result in an action that fundamentally alters the resource at the other end.
Evening
user895378
19:37
@PeeHaa Hola
@rdlowrey Hey black guy :)
user895378
I totally am.
user895378
Leather skin was a free bonus if you purchased the all-inclusive food/drink package at the resort. I couldn't help myself.
hehe
@rdlowrey all well?
user895378
Oh yeah, just in full detox mode now.
user895378
@cyril So if you can help it, try to avoid redirecting POST requests on the server end because I'm not sure how well user-agents will handle it. If you can't help it, you could check the request method and see if there's an entity body (php://input) in the php script and respond appropriately. I'm not an Apache wizard, but I'm sure there are ways to accomplish the same thing before the request ever makes it to PHP.
oh nvm
@NickFury Am teh fastestsest! :D
hey guys I developed a web app using PHP and MSSQL database, is there a way I can install MSSQL on a linux machine ?
user895378
19:43
@user1783675 What OS is your linux machine?
@user1783675 Why have done that, MSSQL?
@rdlowrey its ubuntu
@user1783675 some people just want to watch the world burn
@PeeHaa haha I was going to go close vote yours and I was like... wat
19:44
hehe
actually that phrase is wrong
@webarto it was the clients request, because they needed the reporting services from mssql and I am new to php
@PeeHaa lol, why would you say that ?
user895378
I'm sure it's as simple as using your native Ubuntu package manager ...
@tereško Was that a reaction to me? And are you telling me about mistakes in sentences? ;)
19:47
naah ... i am just distancing myself from the quote to which you originally linked
@tereško Yeah. Fucked up the post id somehow :)
how much is a "cup" ?
because , if it's something like 200ml , then it means that you would have to replace most of your body fluid with coffee
Yes, it's not possible at one time.
ahhhhhhh
19:51
Although if you drink 10 of them, you could hear your heart pounding.
@webarto Wow that autocomplete thingy sucks
It clears the box when no matches are found. Real user friendly
@PeeHaa It does indeed.
Obviously, they need to use jQuery
moaaarr jQueryyy
It might be the problem in the first place:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
@webarto it doesn't have "beer" option
19:53
it's just for caffeine :)
486.80 cans of Coca-Cola Zero + You = Death.
also, don't knock it .. i am stuck with 1.2.2 jquery in my current project
@tereško I've linked to jquery-latest.js, so whenever something breaks, fix it, just to avoid that situation you are in...
well .. "the redesign is coming"
I don't really understand composer. If I'm making a new project is it wise to use composer as the autoLoader. Can't you just make a PSR-0 compliant autoLoader?
or i this case, someone might actually design it for a change
@NickFury and why exactly are you using it ?
and i think i am gonna go to sleep
user895378
19:57
lol beer would make the death calculation multivariate ... i.e. 50 beers would probably do it if you're alone in a padded room. But if you have 6 beers + a Slip 'n Slide that might be enough.
@tereško Right, you are not doing it for yourself, thus you don't want to fix it everytime it breaks (for free). (I forgot that situation)
@rdlowrey In controlled environment you mean :P
@tereško because I need an autoloader? I've never used composer, I don't get how it's used.
@NickFury and why is it that you cannot write your own autoloader ?
user895378
@NickFury It's only helpful if you're using a bunch of dependencies in your project that also support composer. Even in that case I'd prefer to do it manually though.
20:01
@rdlowrey Oh makes sense, isn't composer PSR-0 compliant any ways?
user895378
@NickFury Yes.
PSR-0 is not PHP5 compliant .. so , why would you even care about it ?
@tereško Thanks, good night @rdlowrey thanks
@tereško because I'm stuck on 5.3
wat ?
@tereško I'm amazed this guy isn't on your small avatar list yet.
20:07
please , be aware that PHP class/namespace/method names are case-insensitive , while PSR-0 is case-sensitive
thus making it incompatible with php
user1125394
@rdlowrey thx man, actually was doing a $.post from js, that need to go to a backend, either I allow CORS on the backend server, or I do something to redirect on the local server ... still don't know what to do (CORS is easy, works with apache, just seems hacky or unsecure)
@tereško Ohh? I don't get what this is for then? github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
pardon my ignorance
well .. the hint is in the repository's name - FIG : framework interoperability group
anyway , i need my healing-sleep .. today i feel almost human
at least i am capable of forming sentences without straining myself
@rdlowrey thanks
@rdlowrey thanks
@NickFury PSR's the way to go - Is your OS's filesystem case-sensitive?
user895378
20:15
You're welcome.
user895378
De nada.
@MikeB yes
Good, that'll make it easier
@MikeB you just recommended to lock the code to servers OS type
while at the same time preventing user from using case-insensitive class names
negative, I was going to explain the gotchas for people who develop on windows or non-cs osx
and the perils of having a linux production environment and windows dev
You won't catch the case-sensitive errors in development
20:19
PSR-0 was design for windows
because only on windows $foo = new Foobar; and $foo = new FooBar; would work the same with that particular autoloader design
Yep, and if your file is named foobar.php you wouldn't ever see the error on windows until it hits a CS environment
user895378
@cyril Well, how important is security for the data you'll be sending back and forth with CORS? Because HTTP headers (which the CORS standard relies upon according to the relevant wikipedia entry) could be modified in a man-in-the-middle attack. This would mean that an attacker could potentially change the value of the Access-Control-Allow-Origin header field and have clients POST data to a script of the attacker's choosing.
user895378
The solution is obviously to use SSL/TLS with peer-verification if you're concerned about this.
anyway .. i need that healing-sleep i mentioned above
feel better :)
user895378
20:22
@tereško later
user895378
@cyril Of course, if you're trafficking in sensitive data, you should be using TLS (https) anyway.
user1125394
@rdlowrey there"s no potential danger, it's a google maps service to post a data at a certain point
user895378
@cyril Then I would say just use the CORS standard -- HTTP headers are easy all-around and solve your problem.
user1125394
k but there's also possibility to use a RewriteRule /backend... http://xx... [P] on the local server
user895378
Personally, I'd avoid that for the reason I mentioned above: redirecting requests made via the POST method isn't the best option. Of course, from the sound of things, you could accomplish the same thing with a GET method if your js requests are only retrieving data and not modifying the resource at the server end.
user895378
20:29
> If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.
user1125394
ok thx yes you alrezady said
@rdlowrey Screw HTTP, how is the tan? :)
user895378
That applies for permanent redirects, though, so you could send a temporary redirect code and get around that prohibition.
user895378
50 mins ago, by rdlowrey
Leather skin was a free bonus if you purchased the all-inclusive food/drink package at the resort. I couldn't help myself.
user895378
@webarto ^ :)
20:30
^_^ How much does all that costs ~ ? I mean vacation in Mexico.
that sounds amazing haha
user895378
@webarto Mexico itself was pretty cheap once I got there. After airfare I spent ~$1k to be there for a week + all the food and alcohol I could manage. But you could do it significantly cheaper if you wanted to, I think.
user1125394
that thing sipml5.org looks great, future free calls/ video confs from mobile or desktop browser
@rdlowrey Well, airfare for me would cost over $1k for sure. But all in all, that is cheap.
user1125394
@webarto the mexico equivalent of your country would be croatia no?
user1125394
20:39
or try morocco
@cyril Probably, but they are not cheap, I mean, you can get can cheap slepover, but in general, I'd rather go to Greece.
user895378
@webarto Yeah -- the exchange rate was pretty great for USD as well. $100 got me ~1250 pesos, which was more than enough for pretty much anything I wanted to do when I left the super-Americanized resort.
@Leigh you here?
21:07
@NullPointer awesome! Thanks
user895378
@ircmaxell I +1 on that ... you've done a really nice job of making the concepts super-accessible.
user1125394
ircmaxell, have you consider teaching in University?
Thanks!
@cyril not formally, no... I fell my education background limits myself from doing that
user1125394
then you are doing online teaching ;)
@ircmaxell Are any of your talks available online? I'd be interested in watching.
user1125394
21:14
there are some in his blog, but need some search
I'm igree.
Hiya Igree! :)
@PeeHaa I think he meant I am agree :P
Hi, Bye and such should be remowed from questions, right?
21:20
yes
@webarto You don't say... :)
Ok, thanks
@PeeHaa I'm say :P
@ircmaxell Instead let's do awesome stuff. TM
lol
:-D
next video goes live tomorrow at noon
For anyone interested, Anime and Manga was opened today. If anyone want invites for the private beta, let me know.
user895378
@ircmaxell How long does it typically take you to do all the drawing for the marker videos? And how much editing because you screwed up drawing a line and now it looks like a kitten flipping off the camera? Just wondered because I'd have so many "drawing error outtakes" it wouldn't even be funny :)
user1125394
I think it's actually shorter than doing a blowing video animation (without manual wrting)
@rdlowrey I've been lucky enough to get them all in one take. I've made little errors here and there, but nothing that I felt I needed to retake (I think they add to the overall expereince, they haven't been significant enough to really cause problems)...
user895378
I agree, the "erase" moments make it feel somehow more authoritative to me.
21:30
as far as timing, it takes me about 10 minutes per minute of video to shoot the raw video. The audio takes about 2 minutes per minute of video...
user1125394
it looks good, though maybe a little craft :p
@cyril which is what I'm going for. A little more "crafty", a little more home done, rather than huge professional productions...
the actual cutup itself (assembling the raw footage to a production video) takes about 10 minutes per minute of video as well...
From completed script to video is about 20 minutes per minute... Which isn't bad at all...
user895378
@ircmaxell That's actually wayyyy less than I would have guessed. Of course, I'm more of an iterative improvement person than a one-take, drop the mic and walk offstage person.
user1125394
there are things that slides couldn't explain well, and videos can
user895378
Either way, you're doing a nice job.
21:34
Well, the other thing is that it takes me between 2 hours and 20 hours per minute of script to prepare
so by the time I get to the point of recording, it's usually pretty well solidified
And all my scripts are public: github.com/ircmaxell/programming-with-anthony (well, most of them anyway)
Guten abend
@DaveRandom Hiya
@rdlowrey Thanks! I really appreciate that
@PeeHaa Yo yo. Hows tricks? Hows the job going? You seem like you have plenty to do...
@DaveRandom Busy like crazy ATM. But it will be friday tomorrow ;)
21:40
@PeeHaa Really? I thought you guys were an hour ahead, not an hour and 2 days ahead...
Tomorrow will be friday as well for me. Thursday is quite literally an entire day of christmas parties here
@DaveRandom I'm going to Düsseldorf for a couple of days with the job people to blow off some steam. A.k.a. drinking like mad and misbehaving ;)
@ircmaxell 13 december? Wow you guys are early
Someone is drinking, and someone has performance review :P
@PeeHaa Yup. because half the office is off the following week
we've already had 2 parties... Thursday's the next 2... Then 2 more after that :-P
21:43
@webarto "You suck" - that's my review. If your boss wants any assistance tearing you a new one let him know I'd be happy to assist. :-P
@ircmaxell Sounds like a nice job :D
corporate life has some advantages
@PeeHaa I want some of that action. I'm really, seriously, severely pissed off with my job now. Will be looking for a new one in the new year.
@DaveRandom y u mad, bro?
21:46
@DaveRandom Would it be easy for you to get a new job?
@webarto New UI is new. Not sure if I like it yet.
user1125394
@DaveRandom your opinion on what could revolution telephony (with internet connection) sipml5.org (already asked you I know, but works on mobiles...)
@LeviMorrison because I am supposed to be a sysadmin but actually I spend a lot of my time showing 1000 year old women how to use Excel. Also I am expected to do a lot of work with MS access. I am getting close to constructing myself a gallows.
@LeviMorrison Just like status.github.com changed, I guess main site will be next. Not liking it too... I don't like it centered.
@DaveRandom shakes fists
@webarto I'm actually a fan of simple, skinny websites.
21:48
@PeeHaa I doubt it would be too hard, I need scope out the job market though before I hand in my notice
It's a refreshing simplicity, but for a status page I'm not sure that the ultra-centered thing is working for them.
user1125394
The issue is Android native browser won't support webrtc soon , and even if they do it will not spread to old versions, same with iOS
@cyril I imagine it will be about as reliable as weather forecasts for sun in Manchester, but it's certainly an interesting concept, will have a play with it at some point
@webarto Was about time the gists got some love
user1125394
@DaveRandom but connections are faster and faster
21:53
@cyril Speed is not everything. In fact, with IP telephony, it's pretty much nothing - it is reliability and consistency that matter. You might get a good idea of why this is if you write a simple UDP file transfer client-server. You'll find it'll work quite reliably over a wired network. Then try putting either client or server on a laptop running its wireless NIC, and just see if the files make sense at the other end...
user1125394
yea the problems of signals interferences, in the wifi band
@Neal That code makes no sense at all.
@DaveRandom You actually have a job? What is your salary expectation?
@webarto what doesnt?
@DaveRandom where do u want to work?
@Neal Don't know how to put it.. everything?
22:08
@webarto the question you mean?
@Neal Current snippet he is using. He could just use some framework, see how it is done, and then do it his own way.
@cyril Combined with the stateless nature of UDP. G.711a is a 64kbps audio stream + protocol overheads = (approx) 75-80kbps. If you use G.729 you can squeeze it down a 56k modem at a push. But because real-time, uncachable streams like that use stateless connections through necessity, all the bandwidth in the world won't save you from a lossy connection. SNR is what matters.
@webarto Very funny, haha. Salary is less important than doing something tolerable.
Speak American English, not that fancy British English :P
user1125394
@DaveRandom .G.711a is 711MHz?
@Neal Unknown variable. I kind of want to get into software dev professionally, but I would have to start at the bottom I guess.
22:12
@DaveRandom hmmm US?
@DaveRandom IDK, all the job offers I got are 30k€ max, all remote jobs, and most of the work is crappy commercial sites... You, my friend, are looking for something like Google, or Silicon Valley type of companies in general...
@webarto I would love to work for Google (I guess I buy into the hype a bit :S), I highly doubt they would employ me.
@DaveRandom Where are you looking?
user1125394
low frequency = high transmission ranges
22:17
@Neal Nowhere at the moment, I need to get all the Christmas crap out of the way first. Will re-activate my SO Careers profile in Jan, and take a look around the markets then.
@DaveRandom well US, Europe, Timbuktu?
@DaveRandom Google has many positions available at any given time.
@DaveRandom AFAIK someone needs to recommend you, and you get a shot. F* the hype, who wouldn't want to work there (even Jon Skeet works there :P). I personally feel that all the cool companies are in the US. But moving is a big challenge, especially if you have a kid.
Don't short yourself by not even looking.
@cyril Honestly, media processing and encoding is a bit of a mystery to me. My interest lies in providing a stable signalling and media transmission mechanism, I'll let others worry about the media being transmitted and what to do with it.
22:19
@LeviMorrison Exactly, I know some people that got in right after college, maybe not some fancy positions, but hey.
@Neal UK, I highly doubt Her In Charge would put up with anything else (at the moment)
@DaveRandom ha
Mine Her in Charge wants in Deutschland, as do I, but we are too poor for that :P Not an easy thing, moving to foreign country.
@webarto Yeh tbh I kind of like living in Manchester anyway, but I would definitely consider a reasonable move for the right opportunity
@webarto Everyone is too poor for that. Hell, even the Germans are too poor for that :-P
@DaveRandom And by reasonable that would be Google and such, anything else is not worth IMHO...
22:23
Yeh unfortunately most of "Google and such" operate exclusively in London in this country, which is a place I hate.
@DaveRandom LOL, true dat... buerolersch.de is offering visa sponsorship (for us in 3rd world countries), but I don't think that salary is good, since they posted ads in my area.
I'm not easy to please...
I know the feeling.
Outsourcing to US, for life :P
@webarto Move to India. There must be a shortage of devs there judging by the number of new ones that turn up here every day, just imagine what they would think if someone who knew what they were doing turned up.
I could be advanced PHP teacher in Mumbai i2.minus.com/idOxSIlD7LVvq.png, and start a programming blog, like this.
22:28
@DaveRandom I had an Indian roommate for a while. From Gujarat.
Was getting his MBA.
Smart guy. I asked him why so many Indians leave India and he simply said: safety.
Jokes aside, they are pretty smart people.
@webarto If ever I see the words "please suggest me" I switch off pretty much immediately.
He made the best dish of chana masala I've ever had.
@DaveRandom I am agree to that :P
user895378
<-- really likes Indian food. A lot.
22:30
@rdlowrey Oh man, his cooking was so good.
Oh yeh, I am fully aware there are just as many intelligent Indians as there are in any other culture. it's just that very few of them turn up here
user895378
Pakistan and India itching to blow each other up would definitely influence any relocation decisions I considered, though.
Thai food or Indian food? What's your preference?
@rdlowrey Pakistan are not exactly America's biggest fans...
I think they are too busy falling apart at the seams to do anything threatening at the moment though.
user895378
lol probably true.
user895378
22:32
Mmm Thai food is really good too. I like anything spicy TBH.
@LeviMorrison Indian every time.
user895378
Going to try my hand at making some salsa I had in Mexico ... really excited about it. So good. Basically just avocado, jalapeno, cream and some lime. Really basic, but reeeeeally good.
Out of curiosity, have you ever saw this: tanjir.ba/image/13503097601313918453DSC0052.jpg
user895378
Welcome to the International Cooking PHP meetup.
We rock.
user895378
22:35
@webarto Looks good, pending what sort of meat is involved.
This is definitely getting a bit Back to topic guys!
user895378
My roommate from college was Chinese. And that's how I learned I only like Americanized Chinese food. The real deal is ... too much for me.
@rdlowrey seriouseats.com/2009/06/… I'll buy one for everyone :P
user895378
Had me until this line:
user895378
> Like most cevapdzinicas, the menu is spare and no beer is served
22:37
@rdlowrey Damn, I guess it's hard to get American roomate out :P
@rdlowrey Total lie.
user895378
Oh thank goodness. I can put Bosnia back on the to-do list :)
sphotos-h.ak.fbcdn.net/hphotos-ak-ash3/… this is considered as vegy meal.
It's light, you know.
user895378
Wait wait wait.
user895378
22:39
> Private Methods Considered Harmful
user895378
WTF
Yup, kids these days :P
user1125394
Static rules
Someone is turning in his grave, or s* it his diapers.
user895378
╯□)╯︵┻━┻
22:40
@webarto had me until /wp-content/
@DaveRandom Truth to be told, I don't trust wp-content sites :D
Can you do a ternary operator without the else? Example:
". (($_COOKIE["theme"] == "1") ? "css/greyscale.css") . "
@Necro. No. What would be passed if it didn't match? It makes no sense. Just don't use ternary in general, it's hard to read.
Yeah, well my main issue is that I am trying to do an if statement in the middle of an echo =/
So ternary was my first thought, but now that I want to do more then one outcome, it seems irrelevant.
@Necro. Why? What's wrong with creating a variable before the echo statement?
22:46
An if statement within a variablee?
variable"
@Necro. No, create a variable to hold the value to be echoed, before the echo statement
echo 'start '.($condition ? 'middle 1' : 'middle 2').' end';
// vs
if ($condition) {
  $middle = 'middle 1';
} else {
  $middle = 'middle 2';
}
echo 'start ', $middle, ' end';
Longer maybe, but $readability++;
Ah...I see, my situation is rather simple, I'm just looking if my cookie is set to 1, use this stylesheet, if 2, use this stylesheet, else, use the base stylesheet.
@Necro. Well if you really do think that ternary is acceptable here, do it on two separate lines
$middle = $condition ? 'middle 1' : 'middle 2';
echo 'start ', $middle, ' end';
Ah...Okay. I will give that a try.
@rdlowrey Yeah, we had fun with that one.
22:54
@Necro. It's all about readability. All three of those versions do the exact same thing, just ask yourself which one will be the most obvious to you when you come back to it in 2 years.
There is nothing worse than having to reverse engineer your own code.
5
user895378
@LeviMorrison Yeah I saw the star over there on Anthony's response and was like OMG
@DaveRandom For sure, thanks a bunch. 16 doing PHP for about 4 months now, so many ways to do things, gets confusing which way is the most efficient.
@Necro. There is one important point there, regarding efficiency - always do echo 1, 2, 3; instead of echo 1.2.3; - when you concatenate (with a dot) the string is built and then written to the output buffer. When you pass them a separate arguments they are treated individually and there are less operations overall.
(I think that's right, isn't it? Someone feel free to jump in and correct me if that's wrong)
user895378
@Necro. Here's a tip learned the hard way. Focus on readability over efficiency (within reason). Micro-optimization is the root of all evil.

« first day (787 days earlier)      last day (4386 days later) »