« first day (572 days earlier)      last day (4367 days later) » 

7:14 AM
monrings
 
Sam
morning, teresko
 
happy new day everybody!
 
Sam
it's definitely a new day....about the happy part, still plausible...:D
 
7:41 AM
1 message moved to bin
 
@Sam :D
 
Sam
hey @ShyamK; what's cooking?
 
@Sam nah..nothin much...client screws up the website..i get to mop up his stuff :D
 
Sam
ahh.....nice
here.....have some coffee
 
gawd.. why cant they all just play by the rules... :D
thanks... :)
 
Sam
7:50 AM
whose rules?
 
mornin
 
Sam
morning Chris
 
8:09 AM
@Sam mine preferably :D
 
I see you all enjoying html9responsiveboilerstrapjs
 
8:26 AM
PHPUnit Fun Fact: Did you know that strict mode can be strict on time? stackoverflow.com/questions/10520464/…
 
8:43 AM
posted on May 10, 2012 by Stuart Herbert

So that I don’t forget how to do this next time around. Worked for me, your mileage may vary. First step is to get a working install of PHP. Download PHP 5.4.latest ZIP file from the PHP Windows website Unpack the ZIP file into c:\php. You should end up with c:\php\php.exe Copy c:\php\php.ini-development to be c:\php\php.ini Edit c:\php\php.ini to suit (e.g. set date.timezone) Make sure you

 
the page i working on now was written my retard
 
@tereško huh?
 
9:25 AM
hi guys , is it secured to use $_POST['something'] in my code or to define it as ($my_variable=$_POST['something']) and after i use $my_variable in my code , which one is secured thx
 
@gosto $_POST is much more secure than $_GET.

Also I guess the usual practice is to assign the posted value into some variable and then use that variable. I may be wrong on this part though.
 
Hello, I have got a question about something with xml. Is a matchid an element or an attribute?
 
@ShyamK u mean like that ($my_variable=$_POST['something']) and after i use $my_variable in my code
 
@gosto yes thats what I'm saying. Feel free to correct me if I'm wrong though.
:D
 
@ShyamK ok thx
 
9:38 AM
$_GET is oldschool, now we split the QUERY_STRING
 
@Chris sorry man. I'm still fresh to php. So I'm old school. Forgive me for my mistake
@Chris May you explain QUERY_STRING to me, please?
 
$_SERVER['QUERY_STRING'] is everything after ?
mysite.com/?lalalalalalal
and you get lalalalalala
then you do $url = explode('/', $_SERVER['QUERY_STRING'];
put it in a function
that returns $url[$segment]
and then just have fun with urls like mysite.com/?this/is/fun/isnt/it
RewriteRule ^(.*)$ index.php?$1 [L]
will take the ? away
 
@Chris oh okay..that I have seen..thanks for putting a name on that for me.. I didn't know what that was called.
 
there's probably a better way to do that, but I'm new, too ... so that's the way I do it.
 
@Chris yes. but its the same purpose as a get statement right? to send crappy data right? What I mean to ask is that POST is still better for secure data right?
@Chris gonna follow in your footsteps after this
 
9:48 AM
$_POST is for forms
$_GET is for requests
and no
they both can be secure
 
really? but say i sent my username and password across through a (forgive me for saying this) GET form then aint that insecure?
 
so? you see raw data in the url field
you can also see data on inputs
and who the hell uses $_GET for forms anyway?
search engines, yes
otherwise, don't do it.
as far as I know $_POST and $_GET are identical when it comes to security
they are just two different things, is all
 
yes..but ain't that like totally bad? seeing supposedly secure data in the url..wont someone be able to swipe that data somehow?
 
not as far as I know
tho' the url stays in browser history
so if it's a public computer, then yes
 
@Chris I dont use GET in my forms but some else out there will most definitely be doing so
 
9:53 AM
they can dig a hole and jump in
 
hmm... so POST for forms and any other thing is QUERY_STRING explosion? k got it.. thanks
 
$_GET forms are good when you might want to see the same result over and over again, like google search results for example
 
@Chris that'll totally suck
 
no
 
It doesn't matter if you use GET or POST, http is insecure. If you need security use https.
 
9:54 AM
QUERY_STRING is the same as $_GET
well, almost same
Not sure.
 
@Chris yes I got that..but it seems better than GET ..loads more can be sent :D
 
lol
I repeat, I'm a newbie as well so don't take my word for this stuff
@vascowhite https isn't THAT secure
 
@vascowhite aah..but how do you use https:// . Is it like write a function and then it becomes secure?
 
it's mostly just an illusion of being secure.
it's a different protocol, is all
if you can't secure your stuff with http:// ... well, your screwed
 
https is encryped, http is sent in plain text
 
9:57 AM
all you see is requests anyway
it's not really useful unless your a total idiot
 
@Chris https is not just an illusion. If you had to send a request to a https location anyone sniffing on that request will recieve a whole bunch of non sense as apposed to plain text being sent to a http location
 
that does not make it unbreakable
also https is slow as shit
 
depends which service provider you use
thawte is quick
rapidssl is slow as poo
 
@Chris Then don't use it.
 
10:02 AM
I don't.
 
Okay...
 
iv used it before, i dislike it
rapidssl that is
at work we use thawte which is a pleasure
 
I so very much love recovering closed tabs in chrome
at times it's so useful
 
shoudl use firefox!
ur feeding the beast
 
firefox?
hell no
firefox is over 50 points from chrome
 
10:14 AM
@mUnk3y Whats so great about firefox? Also I found that there is a new browser based on chrome.. Rockmelt.. and then another one Comodo (or Comodo Dragon) which is also based on chrome... So chrome is better I say
lighter on its feet
 
also firefox sucks because it has to restart itself everytime an app is installed
or a theme
or anything
 
Sam
Im with @Chris, chrome is much more secure and runs faster. Plus i think it is the most standards compliant browser at the moment
 
@Chris true dat..
 
ok iv just started using chrome
uninstalled firefox
does it like lamb or chicken? this beast we feed
 
Sam
10:20 AM
It feeds on people using ie6
 
10:54 AM
 
Morning guys.
 
Sam
Morning @Eugene
 
Guys, is there a way to create mysql query, that not only adds column to the table, but also checks before whether it exists already?
 
Sam
I got a downvote on that question @hakre :( It wasn't you was it?
 
11:02 AM
@Eugene Maybe do a select * just before addition? then check if the data matches.. if not then add elz return some error message.. thats the simplest and most probably the most stupid way too.. atleast it'll work though? For better options please refer @Nick
Or any other geniuses here
 
@ShyamK I guess you ment @NikiC and I need to check it when adding. One query, not some script. I know that there is such option for creating tables. CREATE TABLE IF NOT EXISTS
 
@Chris firefox rocks.
 
@Eugene well I meant @Nick and not @NikiC cos the former has cleared my doubts and the later I know nothing about.
 
@Chris , they are called extensions , not "apps"
 
11:06 AM
@OmeidHerat sucks to the power 10 :P
 
none can help me here? :(
 
@OmeidHerat slow as shit.. Gets hung up alot.. Gotta restart it everytime you install something onto it..
 
@Alex , "does not work" is not a valid error message , and two notices you get are self-explanatory
 
@tereško who cares
 
11:09 AM
@Eugene Depending on what exactly you need either REPLACE INTO or INSERT ON DUPLICATE KEY UPDATE :)
 
@ShyamK none of them sounds a logical downside to firefox.
 
sure, protect your shitty browser
I don't care
 
I've gotten 5 instances of firefox running at the same time in the task manager and none of them even displayed the damn window..
 
REPLACE INTO is a good choice when you just want to "insert if it doesn't exist yet". ON DUPLICATE KEY UPDATE is nice when you need to increment a counter or something like that (and it also has better performance characteristics)
 
never had that problem with chrome
 
11:11 AM
@ShyamK , thats might be an old bug in relationship with use of breakpoints when debugging JS code
 
@tereško yeah i know that self-explanatory but i dont get why regex's dont work
could you gimme a hand on this ?
 
no , i still need them , to write my own code
 
@tereško seriously? when I just clicked the icon? wtf?
 
@Alex The regex's aren't working because they are protesting about your lack of code indentation.
2
 
@Paul good one. :)
 
11:12 AM
hehe
 
btw, Hi :)
 
@ShyamK , no , that one is based around browser locking
i have no idea what is going one with your issue ... but the root cause might be impatience
 
hello, i support Firefox too.
 
There is far more about a software, the people behind it, the API, the mission of the App.
 
who cares what browser other people use?
 
11:14 AM
@vascowhite web developers.
in otherwords, everyone here.
:)
 
@Sam No, not guilty this time ;)
 
@tereško yeah..sure impatience.. cos the first one dint show squat after the first 15 mins
 
it looks more like evangelism to me
rather than a technical discussion
 
that is exactly why I stopped responding to @ShyamK and the other guy, @Chris ?
 
@Sam If the question get's deleted you should get your rep back. otherwise ping me tomorrow when I can vote again.
 
Sam
11:16 AM
@hakre Cheers :)
 
@OmeidHerat He, I'm a PHP dev, I pass that along to front-end devs ;)
 
You suck.
 
posted on May 10, 2012 by Lukas Smith

It feels like every minute a PHP developer somewhere on this planet starts implementing something aching to a CMS from scratch. Some do it because their project is "so big" it that it "obviously needs" a custom solution. Some do it because their project is "so small" it "obviously needs" just a few days of hacking .. to build a custom solution. Let me briefly focus on the later group. Working i

 
@hakre but like it or not, you have to deal with it in one way or other. even if you have a full blown front-end development department in your organization.
Abstractions are leaky.
 
who downvoted me ? :(
 
11:18 AM
@Alex it wasn't me, but do you realize that your question has nothing to do with ASP and that offends some people ?
 
nothing to do ?
the site i test is asp
 
@OmeidHerat Sure, I was just joking. I'm sure we all know that browsergame.
 
@Alex I will edit your question.
 
ty
 
you are using a wanna-be RESTful API.
it has nothing to do with the script of the website.
 
11:20 AM
@Alex It wasn't me either. Although, you should include the code in your question rather than a pastebin. @OmeidHerat
 
hmm
its a big
and i tho that pastebin is better
 
The question has to remain useful, links that can die in the future make the question and answers useless on the site. StackOverflow (SO) wants to be useful mainly for questions that are asked and answered repeatedly.
 
ok i edited it
true
sorry about that
 
why do people write functions which span 1000 lines ?
and i am not exaggerating now
 
@tereško Ignorance, probably :)
 
11:24 AM
@Alex Also, everything on SO is licensed by the license link that appears at the bottom of the page. So on a question/answer it would be: creativecommons.org/licenses/by-sa/3.0
 
@tereško or just because, maybe :P
 
Speed is key in this world.. You're too slow and you get shot down..
 
@Alex hehe, don't worry, thats all I have to say for now ;-)
 
:(
 
'bit of rep whoring. :checkyface
0
A: ArrayObject iteration

Omeid HeratI look into the ArrayObject __construct method documentation and found the third argument related to my problem: iterator_class: Specify the class that will be used for iteration of the ArrayObject object. ArrayIterator is the default class used. Now I could extended an ArrayIterator...

 
11:30 AM
@Alex It looks like $regs wouldn't be defined at the point it is used. I think you might need your error reporting levels set higher. See this: stackoverflow.com/questions/74847/…
 
my reputation is still the same. :P
 
i used ini_set("display_errors","2"); ERROR_REPORTING(E_ALL);
but still the same
 
actually it should be
 
same with error_reporting(-1);
 
ini_set('display_errors', true);
error_reporting(-1);
 
11:34 AM
same again
Notice: Undefined variable: viewstate in /home/me/test3.php on line 101
Notice: Undefined variable: eventval in /home/me/test3.php on line 102
if i set $viewstate and $eventval
manually
what i see in my firefox website page source
i dont see any errors
but it doesnt login again :(
 
@Alex From what I saw in the code you had E_ALL which should be E_ALL | E_STRICT on PHP 5.3
(or what tereško said with -1)
 
yeah i tried it also
but still the same
 
The one in your code will override any configuration option (just making sure you changed it in the code).
 
I posted my answer a few lines above, and i need at least one up for it. Thanks.
 
@Paul , the -1 is a bit more future-safe
 
11:43 AM
::checkyface
 
@tereško Yes, good point.
 
I'm looking for an alternative to powerpoint online, to do html slide decks. Any thoughts?
 
@ircmaxell OpenSource ?
 
if not, free
 
guys, do you have SO updated smoothly without page reloads?
on work I have rep points and upvotes received right on the page, but here at home it doesn't happen for some reason :-S
 
11:50 AM
@ircmaxell Google docs then.
 
perhaps. Was hoping for something a bit more... not sure what
 
damn i dont get it
is it even possible to login a asp.net website with curl ?
 
@Alex: Yep, just pass viewstate string as-is
 
@ircmaxell or roll your own, shouldn't take that long. specially that you can code only for your fav browser.
 
@Alex Anything is possible
@OmeidHerat I can do the logic, I can't design for crap
 
11:52 AM
hehe
true
@zerkms urlencoded or not ?
 
@Alex: try both, I don't remember. But that's the only asp.net-specific thing I used to interact with remote site
 
k
 
@ircmaxell I feel ya. but some landing page theme should get you started.
 
eih
 
or any other basic theme, I would say.
 
11:56 AM
grrr
nothing
 
@Alex: there is a chance some javascript is used for that :-S I only used it for basic scrape tasks (without signing in) but with sending forms
 
you mean i can do it with javascript ?
 
12:31 PM
hey
anyone here?
 
I'm going to give sliderocket a try
 
ok .. time to do something usefull
 
help ales
alex
:D
 
Is it possible to make HAML work with PHP?
I love the syntax...
... but from what I've seen, HAML is for Ruby
 
why would you want that ?!
 
12:40 PM
even if i set viewstate eventvalidation manually curl doesnt give me an error :S
please someone help
 
@ŠimeVidas , HAML was introduces in Rails, because the default template-thing was just horrible
of course , that being Rails, it was introduces like a "second coming"
 
@tereško Well, I would like to write my (PHP) web-pages in HAML instead of HTML because the syntax is more terse/clean/readable. I switched from CSS to SASS for the same reason.
So, it's not for templates...
 
@ŠimeVidas , thats just BS
 
Another example, CoffeeScript and JavaScript
 
yes, and CoffeeScript is inferior to a well written JavaScript
 
12:44 PM
@tereško Well, ok, that's a programming language, but for non-computational languages (HTML and CSS), shorter syntax is better IMO
 
please , learn to distinguish hype from really useful things
 
SASS is just so much better than CSS... I translated my main CSS to SASS and got rid of 30% of the lines
And it's much more readable
I would like to achieve the same effect with HTML (by switching to something like HAML)
Just like the braces and semi-colons are not really needed in CSS, the angle-brackets, etc. are not really needed in HTML
 
@ŠimeVidas , actually it isnt , it cause additional problems in debugging or adding custom rules , and it promotes use of long selectors
 
we got on a closure talk in the js room about php vs js closures.
@rdlowrey you strike again!
 
12:54 PM
im kinda unsure what race is @rlemon
 
huh?
you wanna know my background?
or you wanna race me?
 
sorry .. wrong name
> im kinda unsure what race is @rdlowrey
@rlemon , wrong tab
 
lol he looks like a "Brotive Bromerican"
 
21 flags to go to Marshal badge mmm shiney :)
 
@tereško "problems in debugging or adding custom rules" - I haven't had problems with that (but I would like to know more about such problems). *** SASS doesn't promote long selectors. A developer should know which selectors should be used vs. avoided - that's unrelated to SASS.
 
12:59 PM
oh , but it is closely related
.. but who cares , just keep on taking "best practices" from SmashingMagazine and ReadWriteWeb as every othere "modern developer"
 
got a design issue i'm trying to wrap my head around. i want to pull data from a remote source and insert it into local source. the data already exists. so, it's not POST data. i know how to get the data. i'm just not clear on how to pass it to the local model for insert. any thoughts?
 
@tereško I don't read those magazines. I have personally decided to try out SASS, and I am amazed how much better the syntax is. That is my own opinion.
I just love terse syntax :)
 
thats not terse
it is a gimmick
 
@tereško Let me show you...
.go_button
  position: absolute
  bottom: 0.2em
  left: 0
  right: 0
  text-align: center
  a
    display: inline-block
    border: 2px solid #bbb
    padding: 0.6em 1em 0.5em
    text-decoration: none
    cursor: pointer
    &::before
      content: "\25B6"
      margin-right: 0.6em
      color: rgba($blue2, 0.3)
    &.external::after
      margin-left: 0.6em
    &:hover
      border-color: rgba($blue2, 0.5)
      background-color: rgba($blue2, 0.1)
    &:hover::before
      color: rgba($blue2, 0.5)
 
yes, it is a gimmick
 
1:09 PM
@NikiC emm, how do those options relate to adding column to a table?
 
@Eugene I already noticed that I misread what you said ;)
 
@ŠimeVidas I like nested rules, but losing the braces makes it harder to read.
 
I read "rows" :)
 
@NikiC :)
@NikiC anyway, problem already solved.
 
@Eugene How did you solve it?
 
1:11 PM
what if for IE7 i need a different background color on hover ?
 
and the nesting is not just 2 levels , but 4
 
@Paul Check out the image above...
 
@NikiC looked where, that I need this query only once and checked the structure of the table. Just executed ALTER TABLE ... ADD COLUM ... AFTER .... ;)
 
@ŠimeVidas , which means that you need additional tools for it to even make sense
thats a counter-argument , ya know
 
1:12 PM
@tereško Tools that run automatically in the background...
 
@Eugene ah, okay :)
 
@ŠimeVidas I like to have something that works with less, vi, emacs... like tereško said.
 
@NikiC gotcha :)
 
my vim does not "run in the background"
 
@tereško My PhpStorm understands SASS syntax, and the Ruby SASS executable compiles my SASS files to CSS in the background... (on every edit)
 
1:15 PM
@ŠimeVidas I use something similar though: lessphp. I am in favour of having CSS with some programming help to it.
 
I experimented with php in css files for a bit. Couldn't quite get on with it though.
But being able to use variables was useful
 
can you use variables in css??????????????
since when!
can you set them using javascript?
 
SASS/CSS comparison:
 
@vascowhite lessphp doesn't have any php in the files: leafo.net/lessphp Its a compiler for lesscss.
 
1:24 PM
@Paul OK, I said that because your conversation brought it to mind, not because I thought lessphp did it. I've never used it, but the name would make you think it does. :)
 
What is this madness that has no semi-colons?
 
@ŠimeVidas IE7 does not support rgba() .. and IIRC, neither does IE8
 
@tereško Yea, I know. That code is for a web-page intended for developers. I haven't yet decided what I'm going to do with IE7/8 visitors....
Probably...
<!--[if lt IE 9]>
<script>
    window.location.href = 'http://getfirefox.com';
</script>
<![endif]-->
 
thats retarded
 
@mUnk3y You can do it this way or this way. I tried both.
 
1:30 PM
@tereško I have that code live in my W3 Viewer for over a year now, and I've had no complaints.
 
@ŠimeVidas That's because you're redirecting the people who would want to complain lol
 
lol
 
@vascowhite True lol
I would change the code, but I just don't give a....
 
thats why we do not consider you a professional developer
 
@ŠimeVidas I see this as, "I would change the code, but I just don't care about the user at all"
 
1:38 PM
@CharlesSprayberry For my resources that are intended for developers (exclusively), if I get a IE7/8 visitor, I will not allow him to view my content. Why should I?
So, I should tolerate web-developers that use IE7/8 as their main browser?
 
@ŠimeVidas That's a bit elitist isn't it?
 
emm .. @ŠimeVidas , how exactly you can detect the "main browser" for a person ?
 
@ŠimeVidas Who are you to tell me what browser I should use? I don't use IE and can see why you wouldn't want to support it. But, at the very least you should give them a basic, no frills version. To blatantly redirect me and tell me what I should do with my computer is not good.
 
@tereško I don't think that there exists a single person in the world which uses IE7/8 as a supplementary browser (apart from testing). If you use it, it's your main browser.
 
i always thought that detection of default browser would need a direct access to the operating system .. @ŠimeVidas must be an unrecognized genius to do that
.. or he is full of shit
 
1:43 PM
@tereško IE's conditional comments are reliable, afaik.
 
how does it detect computers DEFAULT BROWSER ?
4 mins ago, by Šime Vidas
So, I should tolerate web-developers that use IE7/8 as their main browser?
 
@CharlesSprayberry You missunderstood. I don't block IE alltogether. I just block older versions of it.
 
is there a website our source where I can read of the newest/latest libraries that are released?
 
@ŠimeVidas You're still blatantly trying to force me into doing something with my own machine. I can see wanting to suggest your user to upgrade their browser to something not as sucky but to blatantly redirect them to Firefox just doesn't seem good for any reason.
 
@Nadal php.net
 
1:47 PM
sorry I guess I should of been more clear since this is the PHP room. I meant various libraries not just one specific language such as PHP.
Some kind of news site which mentions new libraries released for popular languages as well as a short summary of features
 
@CharlesSprayberry No, I'm not forcing anyone. I have the right to restrict certain visitors from viewing my content. It's elitist, I guess, yes.
 
lets say we have 2 strings like that "102030" and "405030" so after substr the strings to only those 2 latest letters "30" .how to make WHERE clause in sql that those 2 strings are same in the 2 latest letters ?
 
@CharlesSprayberry @Eugene thank you
 
@ŠimeVidas Sure, you have the right and I have the right to strongly disagree with you and hope that I never happen across any of your sites.
 
1:51 PM
@CharlesSprayberry Exactly :)
@CharlesSprayberry Allthough, you must agree that it's not wise to avoid a person altogether, just because you don't agree with one single opinion that that person holds....
 
@ŠimeVidas You do it with Internet Explorer users...
 
@ŠimeVidas But that is exactly what you are doing to people who use IE < 9
 
irony
 
it's so cruel
 
I do not think that means what you think it means
 
1:56 PM
@vascowhite I am not blocking them (as persons). I am blocking the program they use.
 
@ŠimeVidas I'm not blocking you as a person, I'm blocking the programs you create
 
Which blocks the person, because whats more of a pain, installing a program or going somewhere else?
 
@vascowhite For instance, I might now want to hang out with you if you dress a certain way, but that doesn't mean that I'm avoiding you alltogether.
 
You are avoiding them completely because of their opinion that they like IE.
 
I can type another website in faster than I can install firefox.
PLUS people don't like change
 
1:58 PM
Morning again
 
@ŠimeVidas Who told you about the way I dress!! :)
 
@ircmaxell Howdy
 
@vascowhite I'm sure you dress wonderfully :)
 
my father is an indie game programmer, but he still uses IE 8 because he doesn't like change, he complains about firefox if brought up (no suprise it does eat resources, and it does get bloated with plugins) but he's not even willing to switch to chrome or another alternative that is simple.
 
What's up?
 
1:59 PM
non-technical people are sometimes wise not to like change. With the number of times I've seen people with junk toolbars on their browser for something they never meant to install, I wish they would resist change even more.
 
@Paul +1
 

« first day (572 days earlier)      last day (4367 days later) »