« first day (729 days earlier)      last day (4219 days later) » 

12:00 AM
I don't know what you get in canada, but it's pretty much the same across all the pizza chains here --- just pork based sausage with "italian seasonings" (i.e. salt, black pepper, oregano, garlic powder) chopped up into little bits
but I think that most of them don't actually use fennel like they're supposed to
 
Yeh that's the stuff. In the UK you just get sausage, as in the same ones you eat for breakfast, basically just pork. It's the "italian seasonings" that make all the difference. I spent the vast majority of my time in Canada in Vancouver (and Whistler), which I am led to believe in many ways might as well be in the US from a cultural point of view.
 
oh, so it's just plain pork? meh.
 
Yeh I know, sort of stupid. You don't get it in many places. The dominos menu in the UK doesn't feature it. And neither do they do marinara sauce pots, which now I know they exist sort of pisses me off.
Not that I eat Dominos very often since I am not loaded.
 
dominos is expensive over there?
 
Dominos was expensive in Van when you compare it to most of the little places. But yeh I mean we get mightily ripped off in this country for fast food. A lot of it is really sh*t quality as well. It is widely remarked that the British will put up with a lot of sh*t in this respect and we really suffer because of it.
 
12:08 AM
interesting. iirc, it's not all that expensive over here
but the chain i normally use is donato's
or one of a few local ones
mmm this is delicoius
 
in JavaScript, 2 days ago, by rlemon
I hope my boss never discovers this chat...
 
yeah that applies to this conversation
 
There are way more fast food chains in general in the US, like you have a load of burger chains, we only have McDs and BK.
 
it's also saturday night, not like we're at work
so who really cares
Really? I hate both of those for burgers
I think it's just that we all demand really fatty, caloric food
what about sandwich shops?
 
I don't eat a lot of food I didn't cook myself, mostly because I am poor, mostly because I have a child
We have Subway and that's it (in terms of chains)
 
12:11 AM
subway sucks
anyone who has ever made a sandwich can do way better at home
 
We have Subway and that's it (in terms of chains)
WTF my internet is f*cked
 
i can tell by the duplicate messages
 
Hang on I'm gonna go kick my modem/router, it does this occasionally
 
lol
 
...aaaand we're back. DL speed on Vuze has gone from 230KB to 2.4MB lol
 
12:18 AM
nice
 
Yeh my internet connection does kick ass. I got a "friends and family" deal through a guy I know who works for the ISP. I want more upload bandwidth though, can't stream vids :-(
 
i get about the same speed down as you do
it's rated at 24 megabits (3 megabytes) per second but
 
Cable?
 
practically isn't quite that high
att fiber
 
Delivered over copper pair or coax? We've just got "Fibre to the cabinet" in the UK, basically they've put DSLAMs in the street cabinets so it's DSL but over about 100m instead of 6 miles or whatever to the exchange. You can get 80mbps (in theory). It's not available at my house yet but I will be switching as soon as it is.
 
12:26 AM
That's exactly what this is
except they call it FTTN - fiber to the node
which is maybe 500 feet from our house at most
it's 50 megabits total bandwidth now i think
but about half goes to their iptv service
 
Yeh your telephone network in the US is in much better shape than ours. AT&T (who exist in this country as C&W, were Nynex at the time) tried to fibre the country in the 80s but they were blocked from doing so by BT, who were at the time government owned.
As a result we are only just getting fibre sorted out and we have a whole bunch of Ally cabling (that's actually a different story but related) so the vast majority of the country are running on sub-standard DSL.
 
ah, the government blocking private companies from doing things
that's the direction we're now headed
but before i get onto a political rant
yeah that's interesting
 
It's still rife here, it's just the BT has now been privatised so the telecoms market place is a bit more open. It's still a f*cking mess though. And don't even get me started on the PABX market. We are getting totally screwed over by Avaya and Cisco at the moment, who both market sub-standard black box products.
So many people are turning to Asterisk and 3CX, both of which suck
Asterisk is the Apache of the soft PBX world. Thousands of developer all f*cking it up in their own way.
 
lolol
 
Man I love Family Guy, the Star Wars Episode IV episode just came on, I'd forgotten how good it is
 
12:38 AM
i love the star wars parodies
they were so funny
and are
 
I'm still trying to find a BD rip of the unadulterated ep V, I'm still rockin' the "remastered" from the early 90s. I've got the DVD but I want a 1080 of it and I don't own a BD player :-(
<a rel=\"me\" href=\"<a class="vglnk"
 
1:17 AM
lol
well
spilling nearly full water bottle
near computer + tablet + phone = bad.
somehow escaped damages
 
@Lusitanian Bad skillz! Still any non-fatal outcome is a decent one. My GF currently has a 4-way power bank right under her bedside table and it terrifies me slightly because she doesn't have a good history of not knocking glasses of water off her bedside table
 
ouch
 
> When life serves you lemons, make a lemon cannon. Produce frame-busting-busting JavaScript.
 
yeah i used to be even more clumsy with that stuff that i am now
 
1:23 AM
@ShaquinTrifonoff Yeh I've already thrown my two cents in on that one: stackoverflow.com/a/11972459/889949
 
@DaveRandom that pizza was delicious
to change this back to the chat room again
 
might be closer to topic
 
@DaveRandom I had already read that :-)
 
the frame-buster-buster-buster-buster-buster-buster-buster-buster-buster (...)
 
@Lusitanian I'm now wishing I had bought a larger pizza. I am now hungry again.
 
happens to me all the time
especially given my daily caloric intake
 
@Lusitanian A frame-buster-buster-buster has been created, so the next one will be a... frame-buster-buster-buster-buster!
 
Be careful, you'll turn into the stereotypical American who can't fit through stanard doorways without turning to one side...
 
@DaveRandom I'm actually considered underweight on the BMI scale
it's screwed up
I've eaten as much as I want with impunity for years...and it's gonna suck when my metabolism changes
actually i've graduated to the "just-normal" bmi category!
 
1:31 AM
Thing about the whole frame-busting thing is it has now become a competition as to who can fill the event queue with more events. It's essentially just turning into "who can build the most dangerous fork bomb"
 
@DaveRandom :(){ :|:& };:
fixed that for you.
oh what's this i'll paste it into my shell AHHHHHH WHAT THE
ah obscure syntax
 
I almost persuaded an old manager to do it once. He was such a douche. Annoyingly he Googled it.
@Lusitanian I'm 27 and still more or less getting away with it. My GF keeps lecturing me on it though and while I know she's right I currently don't give a crap. Although to be fair I do usually live on one meal a day in the week, because I'm always late so I don't have time for breakfast and I just sort of get distracted and don't eat lunch.
 
i forget to eat meals sometimes, admittedly
let me recall what i ate today and convert it to calories, never really done this
3200...actually not that bad
but yeah, I hope i can still do that in ten years
i enjoy eating like complete shit because unhealthy food tastes really good
 
Never do it if you have a McDs breakfast. I ate my entire recommended daily calorie intake in a single breakfast once, after that I stopped looking at the figures.
 
lol --- their breakfast is like a complete dinner
it's too much to eat in the morning imho
 
1:40 AM
If they did breakfast past 10.30 I would be a fat bastard by now.
 
a la austin powers?
 
Quite possibly. Although less Scottish. And I probably wouldn't be a huge fan of my own farts if I ate that much McDs
 
yeah true
 
Right I'ma going to , it's nearly 3am
Nighty night
 
night
 
1:50 AM
almost 4am for me
good night
 
almost 10 pm for me :p
night
 
Almost 3pm for me.
 
 
4 hours later…
6:00 AM
0
A: Parsing a HTML file for CSS references

Shaquin TrifonoffHere's a nice DOM/XPath way (demo): function scan($html) { $dom = new DOMDocument; $dom->loadHTML($html); $path = new DOMXPath($dom); $nodes = $path->query('//style|//link'); $style = ''; foreach($nodes as $node) { if($node->tagName === 'style') { ...

 
 
2 hours later…
7:52 AM
Anyone want to test this? Syntax: shaquin.tk/rand/<width>/<height> or shaquin.tk/rand/<min-width>/<min-height>/<max-width>/<max-height>.
 
@ShaquinTrifonoff Looks very good, I like it. Here are some things I found:
/rand/x gives an error page, whereas /rand/x-min/y-min/z doesn't.
/rand/x/y/x-10/y-10 does not complain that the max and min values are out of order.
 
@Paul The first is expected, I coded it like that (at least a width and height have to be specified).
 
Yes, they are all fair. It looks good to me.
 
8:16 AM
Could anyone help me ? I am in a trouble?
I am using markdown(wmd-editior) and html-Prufier. But i am in confusion that what to use first markdown or sanitising?
 
@jhonraymos Sanitize the input first.
 
@ShaquinTrifonoff using purifier first creates problem it converts <?php to &lt;?php
and changes the meaning and it also removes the <script tag from user input code?
can you help me
 
@jhonraymos What do you want the end result to be? Do you want to keep <script> and <?php tags?
 
if like <code><script</code>.Than i want to keep
when user type "<script></script>" than it also removes that
 
function format($text) {
	$text = htmlspecialchars($text);
	$text = preg_replace_callback('/`(.*?)`/', 'decode_html', $text);
	return markdown($text);
}
function decode_html(array $matches) {
	return html_entity_decode($matches[0]);
}
That's the code that I use.
 
8:28 AM
@ShaquinTrifonoff i am using
Markdown(stripslashes($purifier->purify($_POST['post_content'])))
stripslashes is because magic_quote_gpc is on and i am using pdo
Is that right?
 
Mob
Test
 
@m
@Mob ?
Markdown(stripslashes($purifier->purify(Markdown($_POST['post_content'])))) is working? but i think it is not right
@Mob will you help me?
 
9:04 AM
Good morning
 
 
1 hour later…
10:11 AM
hello
2
Q: possible xss when edited the code by tools like firebug

NullPointer When i was tried to edit my site html by firebug it shows the alert also i am getting the same result on Stackoverflow even on google if its a Xss than how to fix this ? is this venerable ? what about window.location? on my site on Stackoverflow

 
Dude, you are not editing server code.
Server sends you HTML page, and it is rendered. Firebug manipulates your local copy. No worries.
 
@Robik is there any refer will be posted ? if yes than is it harmful ?
 
@NullPointer I don't understand
 
@Robik if some one tried to use the window.loaction and tried to hack the another website than witch ip will posted our server or user who tried
 
Yours
 
10:17 AM
@Robik you mean our server
 
If I understood you correctly
If you manipulate some sebsite to redirect to other page.
You get redirected.
 
@Robik could you elaborate ?
 
If you edit for example, Stack overflow and add window.location = "whatismyip.com"; it would print your IP, not stackoverflow.com if that's what you asked.
And only you get redirected.
When you refresh StackOverflow, the code disappears
 
@Robik thats exactly i want to know ... thank you
@Robik give this as an answer ill accept it
 
Done
 
10:26 AM
@Robik done
 
10:37 AM
@Robik please explane your answer more so the other user can understand more and looks relavent to the question ... i have no problem with it but some others are
 
10:53 AM
morning
 
morning @PeeHaa
 
Last day of the weekend :(
 
11:08 AM
Morning
 
@draconis morning
 
need some help with array_udiff, reading for a while but couldn't get it how it works.
what is the point of returing(0,-1 or 1)? Why do we need this it is not sorting(or it does?) Isn't it is just for looking for difference of arrays?
sorry last sentence was not complete
 
morning
 
morning @DaveRandom
ok got it. I just misunderstood the document.
 
11:50 AM
is this .orderInfo_table>tbody>tr>td>a same than .orderInfo_table tbody tr td a
 
@Olli No
 
what's the difference?
 
The > means that the selector on the right must be a direct child of the selector on the left.
Hang on I'll do an example of what it will and will not match
 
ok thank you
 
The first rule will match only the first structure, the second rule will match both
 
11:56 AM
ok...
thanks
 
The only part the really matters is the last td>a vs td a - because <tbody> will (should) always be a direct child of a <table>, and a <tr> will (should) always be a direct child of a <tbody> and... etc etc
By direct child, I mean no intermediate containing elements
 
Hiya all
 
ok
 
can someone just confirm something for me, just looking for best practices here, if someone wants a simple site where he can upload photos and it automatically displays them, he can delete them, there is a fancy box etc etc, How should I be doing such a site for him?
Do poeple normally write this out from scratch in PHP?
Or is there a standard CMS for this sort of thing
@DaveRandom wassap
 
@InGodITrust There is no "normally". A lot of people will use some out of the box CMS, a lot will start from scratch, and others will go somewhere in between.
I suspect you'll find the most (all?) of the regulars in here would start from scratch, or use there own frameworks.
In a way it depends on your competency level.
 
12:04 PM
I have quite good OOP PHP skills and could do it.
 
i would do it totally myself. it's easier, and you can do everything not caring about CMS restrictions
and you can also make it more simpler to the user
CMSs usually contain unneeded features for that case
 
but it would make it quite expensive. I dont want them to hear about some other developer who can do it a quater of the time and price because they used an already prepared CMS
 
user1125394
^^^the only pain is doing all the css stuff, for having something beautiful
 
@DaveRandom @Olli would the people who do it themselves also create a platform for the client to update the photos as well?
@cyril which a CMS doesnt help ansywas
 
If you are letting people upload files to your site, you have to be very conscious of security. There are so many back doors that you wouldn't even consider until you have fallen victim to them.
 
12:06 PM
not
I mean the picture upload, I would use ready script
 
@DaveRandom only the ADMIN would upload
 
which I would check for security first
 
other wise who will change the peictures on the site for him
 
@InGodITrust All well and good, but you have to treat the admin as if you don't trust them. If someone compromises your admin login, you're screwed.
 
@DaveRandom so how do you let the client update and change his pictures on a weekly basis
anywasy I can probable handle the security check
@Olli script like..,..
 
12:08 PM
here is very good example of security thing ohjelmointiputka.net/koodivinkit/…
it's commented in Finnish
but you will understand the code part
 
@InGodITrust You just need to be careful about what you do with the upload. Don't accept anything that the client tells you about the file - use finfo to verify the type of the file, use GD to copy the pixel data from the uploaded into a new file that you create, and make sure the way you store the file in the file system does not in any way involve user input.
 
@Olli the PHP I am not scared of. But I tried to use an jQuery Uploader but it used Bootstrap which I am not familiar with
 
ok, I either dont know that
 
@DaveRandom gotcha, but in the end of the day clients are still uploading their own pictures arent they? Or do people normally let the clients use FTP
 
user1125394
plz what would be the best SE site for a general question on networks theory
 
user1125394
12:12 PM
cstheory, superuser, webapps
 
So will it end up being quite expensive site to even display a few pitcures just because the client wants to have the ability to change them @DaveRandom @olli
 
user1125394
there should be a SE site for finding out what SE site you are looking for
 
user1125394
 
@cyril but how will you find that one ;-)
 
user1125394
hehe
 
12:16 PM
another question too, how can I charge per hour, why will the client believe me on the amount of hours I worked
@DaveRandom In a way it depends on your competency level? Which way, if youre a better programmer then you are more likely to...
 
user1125394
what's the difference between programmers.stackexchange.com and stackoverflow
 
12:29 PM
how I could get all info about element by using $(this)
 
user1125394
console.log($(this))
 
ok
function debug(msg){
	$("#debug").val(""+$('#debug').val()+""+msg+"\n");
}

$(document).ready(function(){
	$("body").append("<textarea id='debug' cols='100' rows='10'></textarea>");
	debug("Debug Start");
});
why I cannot call the debug function inside document ready
 
1:05 PM
@jhonraymos location expects an absolute URI. Please change it.
 
1:52 PM
got a question.. i am about to create a member's page, this page has a profile picture, that fetches a 'path' from the database, where is the best place to upload this images...should i create a folder on the root directory?
 
@JoeySalacHipolito Depends
Do you want to images to be accessible by everyone?
 
no ofcourse..
 
@JoeySalacHipolito If you want to prevent people from accessing the images they need to be outside of the doc root
 
for example?
 
What do you mean?
 
2:00 PM
uhhmmm, what do you mean by they need to be outside the docroot?
 
Everything under doc root is accessible by default
 
so i just need to restrict people from accessing the folder right?
 
@JoeySalacHipolito No you need to place the files outside the document root somewhere and let them access the images through a php script which handles the permissions
 
okay, i think i'll try that... thanks peehaa
 
np
 
2:58 PM
Or I just don't understand the question
 
Hello
Any cakephp developer around?
 
No
Not in here
 
Sorry :-)
 
Where to find them ? then :P
 
3:09 PM
@OsamaYawarKhawaja Cake "developers" are mostly found in the most dark places you can imagine. They are too afraid to come out in public because they are too ashamed to face the public ;-)
 
Lolz why is that? :|
 
Because they are using cake
 
Lolz cake is a good framework, isnt it?
 
3:23 PM
Cake is a lie.
 
@OsamaYawarKhawaja Tbh it's a terrible framework. In fact it is the worst
 
Why and what do u mean by a lie?
 
3:41 PM
@OsamaYawarKhawaja Let's just open a random file of CakePHP
Yep. It's crap
 
3:57 PM
-5
Q: Summing in Mysql

Nisha ReddyI have 3 different queries from different tables in same database $sum = "SELECT htno, SUM(tm) AS tech"; $sum1 = "SELECT htno, SUM(em) AS tech1"; $sum2= "SELECT htno, SUM(hm) AS tech2"; Now i want to add tech, tech1 and tech2

summing ????
 
@PeeHaa What are you doing trolling Java? Traitor... :-P
 
Hi, what do you guys think about the new syntax in my "easy PHP unit testing" library?

before: `test::assertEqual('square', 4, 16)`
now: `test::is('square', 4)->equalTo(16);`
 
@DaveRandom I I'm open minded when it comes to house keeping :)
 
@Sawny bad , on multiple levels
 
4:30 PM
@tereško Why?
 
abuse of static calls, method chaining and hidden eval
 
@tereško No eval at all :)
 
then how do you expect that 'square' to work when executing method on an object with injected dependencies ?
 
kill it with fire before it lays eggs
 
4:35 PM
-.-'
 
i am quite serious
 
So to sum up: you love the syntax, but, hate that I abuse static calls and method chaining.
 
The static calls and method chaining are the syntax
 
@Sawny , you seem a bit confused
you should have started by researching how unittesting is being done in other language and existing php testing frameworks
 
@DaveRandom no. It's the way I achieve the syntax.
@tereško 2. I did. I disliked them all. Wanted something really easy and compact.
 
4:40 PM
7 mins ago, by tereško
then how do you expect that 'square' to work when executing method on an object with injected dependencies ?
also , you might benefit from watching this lecture youtube.com/watch?v=4F72VULWFvc and some other from same series
 
How do you quote like that?
 
Fatal error in "DaveRandom" (faulting module: Brain): The stack is full. Consider limiting the alcohol resources available to the application.
@Sawny Just paste the permalink for the post you want to quote
It also works for comments from SE sites.
 
10 mins ago, by Sawny
Look at https://github.com/s4wny/easy-php-unit-testing/blob/master/easy-php-tester.class.php#L29
 
got a question, i have this i46.tinypic.com/2j4prp5.png in my web app, I wanted it to dynamically change when i change something, for example i submitted a form, that made the user change his status.. any suggestion?
 
You can't include anything else in the post (except possibly reply markers). And you certainly can't include new-lines
Any post with a new line in it is not parsed for markdown
Go have a play in the sandbox I suggest

Sandbox

Where you can play with regular chat features (except flagging...
 
4:46 PM
@JoeySalacHipolito Set a timer function, (setTimeout) and fetch eventually new data with AJAX.
 
@Sawny that DOES NOT answer my question
did you even understand what i asked ?
 
@tereško No. I didn't understand.
 
then there is nothing more i can do here
 
:(
@tereško Do you understand what the code does? First it call square(4) and then compares it's result to 16.
 
oh, so you mean the webapp should do its 'reloading', not reload but, yeah, kinda reloading , uhhmm, in a specific amount of time, the script will check if there is a change in the 'object/array' sent by the php file?
 
4:49 PM
@JoeySalacHipolito Yes.
 
@Sawny i understand what you code does , but you do not understand what i asked
 
@Sawny that doesn't make my code messy, or slow right? it's how it is really done right?
 
@tereško Can you give an example of what you want to do?
@JoeySalacHipolito It will not be slow. But it takes a bit bandwidth from you server. I can't imagine any other way of doing it.
 
okay then :D thank you very much!!!
 
$pdo = new MockPDO('/path/to/data');
$foo = new ForTesting( $pdo , new MockSomethingElse );
$x = $foo->getSomething('lorem ipsum sit dolor amet'); // test this method
 
4:54 PM
$pdo = new MockPDO('/path/to/data');
$foo = new ForTesting( $pdo , new MockSomethingElse );
$x   = $foo->getSomething('lorem ipsum sit dolor amet'); // test this method

test::is(array($foo, 'getSomething'), 'lorem ipsum sit dolor amet')->equalTo("exceptedResult");
:)
@JoeySalacHipolito No problem. :)
 
@tereško :(
 
@Robik , please read the whole conversation
 
@Robik It's okay, I'm immortal.
 
@tereško Confirmed
 
4:58 PM
:(
 

« first day (729 days earlier)      last day (4219 days later) »