« first day (916 days earlier)      last day (4256 days later) » 

(crickets chirping) So yea.. about that PHP 5.5....
@RixhersAjazi Yes?
Oh nothing, just trying to start conversation so I can procrastinate from my graduate project
@le
@LeviMorrison
00:23
Gotta love being a student, no?
@RixhersAjazi It depends on what you're doing :p
@ircmaxell what's the correct terminology for importing a namespace? import it? use it? alias it?
I would say use
since it's not aliasing
or importing
or aliasing? :D
> Using namespaces: Aliasing/Importing
@HamZaDzCyberDeV Yea.. you can say that again -_-
I'll just go with import then, since it's less ambiguous
@LeviMorrison thanks for sharing that link on the side btw to the codecademy php tutorial. I've been looking at their python tutorial for a long time deciding on when to take the jump off the cliff... however I am still on the cliff (aka what we call PHP) :D
PHP is given too much crap. Even Python gets more crap than it deserves.
To sum up: people give languages too much crap.
Find it funny actually, going on google and seeing all the x vs y debates.
Even in real life, it gets to the point where I'm like Peter Griffin : youtube.com/watch?v=oI3DlIrvoHg
00:31
> There are only two kinds of programming languages: those people always bitch about and those nobody uses. -- Bjarne Stroustrup
Well said teresko. I always use my bilingual abilities to sum up programming languages. If you can say it one language (English) then the only thing that changes is the word pronunciation (syntax) for when saying the same thing in Albanian (in my scenario)
Both get the same message out just one does it differently.
@kaᵠ GMP vs BC
http://phpseclib.sourceforge.net/math/intro.html
on a completely unrelated note:
> The memory allocation strategy of Java can be described in 3 words. Nom nom nom.
@tereško you sound like my Computer Science teacher.... lol
nom in french means "name"
@crypticツ I read your comment on global xss
I have never gotten any errors with my logging in / any problems period with that enabled. Could you elaborate?
@RixhersAjazi the issue happens when the password contains an & in a specific location the XSS filtering regex will incorrectly think it is part of an entity and do its crap sanitizing.
read the bug report
Yes I just noticed you had a link on your comments - sorry
and I wouldn't call it crap sanitizing :P... better then nothing, but none the less the way I see it, defense in this case is more then just a global filter if you will. Filter/Validate and Escaping should be taken into consideration with user submitted data.
00:48
CI has crap sanitizing, a lot of things get by, it essentially does blacklisting for the most part. Viewing /system/core/Security.php show how it is crap crap crap =oP
So I assume you use the PHP Filters? php.net/manual/en/filter.filters.php
indeed
+1 (If I could) :)
Furthermore while we are on the topic... have you extended? Or do you just use it on the fly
I should extend it eventually, but on the fly right now.
@RixhersAjazi you're an info security major? I was majoring in that until my sophomore year and switched. Didn't like the job security that came with it. You can try to convince management to do something one way and they don't listen due to budget reasons, ego, etc and when shit happens like being breached, who is blamed? =oP
Now I'm an Environmental major, so I get to save the planet instead of executive's wallets =oD
@ircmaxell I'm assuming this would target 5.6, correct?
01:04
Hey guys so I was wondering if I could do something like this: $sql = "SELECT username,firstname,lastname,email,phone,status,statuschangedate FROM csvdata WHERE memberview = :username AND (username =:value OR firstname =:value OR lastname =:value OR email =:value OR phone =:value OR status =:value OR statuschangedate =:value) ORDER BY DATEDIFF(statuschangedate,:date) OR SELECT MailAdrs from insuranceverification ......";
where I could call two data tables in one call?
@igorw yes
@iroegbu So I could use the join to put a result list of both list?...I will need to make sure if it finds results it is for a specific user and not someone else
@RixhersAjazi
@crypticツ Yep I'm an Info Sec guy. It all depends if ya ask me. I don't want to work for sleezy low life a-holes who careless about the protection of users/clients. I actually want to make myself feel good by using my degree to work for the .gov
@RixhersAjazi oh knos you want to end up spying on us =oP
Lol nnnnnnaaaaaaaaaaa xD I rather catch sex offenders, gather evidence against criminals and such. D.O.D is always highering (100K+ starting depending on pay grade)
its a Lucrative business if you ask me.
That was pretty weird @ircmaxell lol
01:38
"I'm gonna need a prop" -> hands over weapon = Rixhers("ROFL");
My favorite was the last one
I didn't get why they all popped up at the end.. confused me there
followed by
LMFAO he just snaps his neck then says Jihad.. ?!
01:44
I feel compelled to tell the OP to "slow down" stackoverflow.com/questions/16095821/…
Hes probably not realizing he is calling session destroy or unset some where.
His config looks perfectly fine.
Oh dear lord.
@ircmaxell first draft, would really appreciate it if you could review some time, and let me know what's missing.
@RixhersAjazi He doesn't seem to be willing to post his code when asked and is rambling on in the comments, so going to narq it.
@igorw looking now
user895378
01:53
@igorw I like the idea but I wonder how useful that really is without simultaneously addressing function autoloading.
It could be a bunch of reasons @crypticツ Database issues, possible unset / destroy... oh wellz.
@rdlowrey I'd treat those as two separate issues, function autoloading is hard to fix.
@igorw I like it. Short, simple and to the point
user895378
You're definitely right but autoloading functions is a much bigger problem. Fixing the namespacing issue feels like slapping a band-aid on a scratch while you have a gaping hole in your face (IMO).
@rdlowrey I actually think function autoloading can be done, if you restrict it to namespaced functions only.
the main problem is that it would require two lookups, one local and one global. but if you don't support the global one, then that issue goes away.
01:57
@igorw just need to figure out how to do the mapping
@ircmaxell well, that's up to the PHP users. I'd go for generating a "funcmap" à la classmap.
there we go, editing messages is hard.
fair enough
@ircmaxell what's the next step? should I just go ahead and apply for wiki RFC karma?
actually, for functions imported like this, you could trivially add autoloading (well, perhaps not trivially, but without the major issues plaguing the normal autoloading)
then again, rather than going through all that bullshit. Why not just fix the f#%()*&% system in the first place and deal with it once
user895378
woah woah woah. There goes @ircmaxell bringing logic to PHP again.
02:03
@igorw definitely! Or just drop a mail on the list with the gist link not as a proposal but just getting the conversation started
02:21
@metal_fan that thing again?
people really need to learn that concept
@ircmaxell the funny thing is that author says he is right (and DI is bad) and anyone else is wrong
@ircmaxell posted
awesome!
@ircmaxell your blog runs on WordPress? :)
@metal_fan most people do say that...
@metal_fan no
02:25
what's it then?!
@metal_fan what gives you that idea?
the template
do a view source, and you should be able to figure it out pretty easily
Well, I was wrong. Its not a WordPress
is it your custom engine? @ircmaxell
02:28
then what is it?
O_o
/me gives up and goes to bed
@metal_fan blogger.com
@crypticツ so lovely...
Damn, that inline css ... =.=
yeah and javascript
why not to separate both css and js?
02:32
Who knows ... I think they should also add jQuery.
Also: "TWITTER WIDGET: This widget is being deprecated"
@metal_fan comic sans? seems legit.
lol igorw
user895378
02:46
I still maintain that people who say dependency injection is bad don't have the first clue about how to test their code.
user895378
Inversion of Control is the only methodology that makes any sense if you rigorously test your code.
03:18
@NullPointer you always changing your avatar
@crypticツ since i don't have gorgeous cat like you :)
morning ....
morning. It's just a second life character, it's the lotus pink maine coon.
@crypticツ that is amazing ..
@NullPointer are you in a bad mood?
@crypticツ noop but haven't got time due to exams .. why ?
-2
A: Undelete and reopen this question, or not?

João MirosI offered money cause I believe it's more than fair give money to a person that helped me solving a problem. It's really fair. I cant see it other way. I do not think that anybody here should work for free. NOBODY must work for free since everybody has a great knowledge and I respect that and I...

dafaq
OMG Google Glass looks rocking google.com/glass/start/what-it-does
but damn on google for its price 1500$
03:37
@igorw ok so I've watched The Mother of All Demos, and it is the bee's knees. But I've been considering the context of your link all day. How is that related to the "smarter people have solved these problems..." lead-in?
@dyelawn consider the technology that existed in 1968. compare it to what we have today. what the hell have we been doing for the past 40 years?
related:
562
Q: Significant new inventions in computing since 1980

Alan KayThis question arose from comments about different kinds of progress in computing over the last 50 years or so. I was asked by some of the other participants to raise it as a question to the whole forum. The basic idea here is not to bash the current state of things but to try to understand some...

@dyelawn hopefully that gives you more context / stuff to think about :)
@igorw definitely clarifies, thanks :) In line with what I was thinking, too. I came up with much cooler ideas when I had little to no concern for implementing the ideas.
03:52
I've got 2 large PHP arrays, ISO languages and ISO countries. Instead of using global which I won't, how can I access the arrays from inside the function without passing it via the function call or putting them inside the function?
@crypticツ what's wrong with passing as a param?
Not to imply that implemented can not also be innovators; it's just a lot easier for a a creative mind to imagine than to blueprint
Implementers*
@crypticツ imo a function argument would be the cleanest solution.
I have a solution that matches your constraints: make a function that returns the large array, then have the other function call it. somehow I doubt that's what you wanted though :)
anyways, I'm off
'night
@igorw good night
@cryptic this sounds like a dictionary case to me. Dictionary is property of class extended by all classes which need access to dictionary
04:05
@igorw I want to be able to just do functioname(); where I need without having to remember the names of the vars to pass, in what order, etc.
nvm apparantly I don't need the arrays as PHP already has what I need in it's locale functions, derp
04:17
@NullPonyPointer peripheral vision ftw =D
> Eye Factor : At any one moment, you actually do not perceive that many pixels, but your eye moves around the scene to see all the detail you want. But the human eye really sees a larger field of view, close to 180 degrees. Let's be conservative and use 120 degrees for the field of view. Then we would see

> 120 * 120 * 60 * 60 / (0.3 * 0.3) = 576 megapixels.
@Jack :D
@NullPointer not enough jQuery
That always irked me about photographic terms, such as 50mm lens is like human vision ... as if that out-of-focus area doesn't matter .. =p
0
A: datetime vs timestamp?

flaschenpostBe very careful on the long term: timestamps get easily updated to "now". For example on modification of the table structure. I was happy with a timestamp on a log-like table, until all the entries became "new" on a alter table. Marco

Apparently "protecting" the question against silly answers for rep < 10 doesn't work very well.
04:53
Interestingly, nowadays such a question would have been closed as NC :)
0
Q: Mailto subject referencing

Josef MillerI have modified an internal error page that is displayed to the user once a URL is blocked by SquidGuard. Following is the part of the script that I need some assistance with: # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # IE displayed self-page, if them size > 1024 # ~~~~~~~~~~~~~~~~~~~~~...

A thing of beauty that code is. ^^
 
1 hour later…
06:01
0
Q: Why Magic Quotes has been removed from PHP?

Yogesh SutharWhat are the technical reasons that Magic Quotes has been removed from PHP ? From PHP docs Performance Performance Because not every piece of escaped data is inserted into a database, there is a performance loss for escaping all this data. Simply calling on the escaping functions (like adds...

06:25
Good morning !!
Uby
Uby
morning
morning
06:37
@NullPointer :^ )
whoooohoow only a half workday today!
Fridaaay
It's vader, vader...
Random fact, mosquitos bite more people who are drunk!
That's a bit counter intuitive :)
I thought they would go for the warmer body heh
06:52
@Jack they go after CO2
290k user with that much duplicate answer stackoverflow.com/tools/flagged?subtype=duplicateanswer wtf
@NullPonyPointer Hmm, that does not compute :)
How are we to deal with such cases anyway?
i have just commented in one answer to let that user know ..
Anyone an idea how just to check on empty records?
06:57
It's an answer, not spam ... normally my action would be to CV the newer questions in favour of the older (more authoritative one), but in this case that wouldn't be appropriate.
@Jack ya agree .. if the answer is exact same that question are duplicate
@Duikboot Do you really need 3v4l for that? It would be better to use codepad :)
@Duikboot I would use isset() or is_null()
But it all depends on what you think empty means.
Empty means that the field is not flled in in my database,
07:00
Not filled in by database translates to NULL
1. [zonenr] =>
2. [nr] => 94
So are the values when I output them
but zonenr is not allowed to show up
Then I would say is_null().
hi here any Core Php Dev is here?...
@gayathri no sir there is only client side php developer
may i know the Core Php Dev Room?...
07:04
@gayathri lol ... that was irony ..
Just ask away :-)
@gayathri this room is dedicated to php .. and yes absolutely core php too
i have one doubt regaring Core Php do u know..
@gayathri the core php dev room is in php.pecl on EFNET
@gayathri just ask if anyone want(in case they know) to help the will help
07:05
guys which one is the best approach?

1) storing votes (like, dislikes) in a same table or database as posts
2) storing votes in a different table called votes but each rows are connected to each posts (1 to 1)
2) storing votes and posts (M [votes] to 1 [post])
Here i am posting validation issue for one page. IN that page i am getting the corresponding city for the selected state also. here i am getting validation for the state but after selecting state i am getting the select box and all from another page getCity.php. for more details refer bellow.
below i mentioned my ajax code
@TemporaryNickName I'd say it depends on whether you want to prevent double votes by the same user..then you have to record every vote separately.
@gayathri Why do you need to see a core dev?
@TillHelgeHelwig right
@TemporaryNickName Re #1, storing in different database is definitely out :)
07:10
What the hell,
return ($var != '0' || is_null($var) || $var = '' );
Why the hell do I receive al empty records though
$var = '' is not the same as $var == ''.
@Duikboot , empty record - what does it mean?
@Duikboot why $var = ''
That whas just a test :P because is_null was not working
07:12
@Duikboot Do var_dump() instead of print_r().
I have to cut those ones: ["logo"]=>
string(0) ""
jhnjk ...@Jack
@gayathri say what now?
@Gordon something interesting stackoverflow.com/users/6309/vonc?tab=answers&sort=newest see newest 4 answer those are exact duplicate and user have 294k rep
@Duikboot Maybe check out if empty() does what you need.
07:14
mornings.
@hakre hola
So now I am curious how long it takes that Pear QA writes back if you offer to maintain an unmaintained package.
@hakre zao shang hao~ :)
empty is also not working
Here i am posting validation issue for one page. IN that page i am getting the corresponding city for the selected state also. here i am getting validation for the state but after selecting state i am getting the select box and all from another page getCity.php. for more details refer bellow.
below i mentioned my ajax code
07:15
@Duikboot "Not working" is the worst possible error description you can give. Just saying.
function getXMLHTTP(){
var xmlhttp=false;
try{
xmlhttp=new XMLHttpRequest();
}
catch(e){
try{
xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e1){
xmlhttp=false;
}
}
}
return xmlhttp;
}
function showState(state)
{
var strURL="getCity.php?id="+state;
var req = getXMLHTTP();
if (req){
req.onreadystatechange = function()
{
if (req.readyState == 4)
{
if (req.status == 200)
{
document.getElementById("txtHint").innerHTML=req.responseText;
@gayathri Don't whack code in here ... use codepad.
Getting there :)
$var = ''
     ^
@Duikboot , please, tell me what is "empty record"?
07:15
@hakre That moving indicator. Soo spooky. :D
@sectus good question as well :)
@hakre it looks like gif
LOL, yes, it founds it way through ^^
@gayathri I edited your message to use fixed font but apparently it's not even properly indented to start with
@NullPointer the four newest answers are not the same?!
Well, an empty record is a database record that is not filled in. Just nothing in the field. I receive all values in an array but I don't want empty ones and '0' ones.
07:17
@Duikboot It would be easier if you declared your fields DEFAULT NULL and use that value for things that are not filled in. My $0.02
True, but that's now to late :/
@NullPointer yeah. that's true. but exact dupes get picked up by a script anyway, so you dont need to flag them
@Duikboot Well, then use return !empty($var);
@Duikboot , 0 for string and 0 for int is different.
07:20
yaa i know but saw this first time by that much high rep user
@NullPointer Also users with high reputation get lazy sometimes, I guess. ;)
@NullPointer not all high rep users are poster boys of good community conduct
This is just their way of asking for moar rep if they spent some time on writing it and don't want just a few upvotes :)
@Jack like give me 3kilogram rep :P
@Duikboot , you have to provide empty values.
07:22
I found out where it goes wrong
Goooooooooooooooooooooooooooooooooooooooooood friday everybody!
@Duikboot , function name?
@PeeHaa埽 happy Friday
@PeeHaa埽 ehlo
07:26
What the hell, I got it working but it's kinda weird:
return ($var != '0' && !empty($var) ) WORKS
return ($var != '0' || !empty($var) ) IS not working
@Duikboot , your function name is wrong.
What is wrong with my function name @sectus ?
@Duikboot , do you mean is_not_zero?
damn fridays
@Duikboot its always Goooooooooooooooooooooooooooooooooooooooooood friday :P
is_zero would be ($var == '0' || empty($var))
Indeed :)
Thanks for the help @sectus
Yeah I now what logical operators are I just was confused :P
07:34
@Duikboot , excellent
What are disadvantages of using LIKE '?%' on DECIMAL index field?
It's slow? ;)
And somehow it seems wrong to do that.
There are much better ways to narrow records down based on numeric values.
@TillHelgeHelwig , the same thing with me.... seems wrong. Sure, i can use between... but it's shorter and clearer
1
Q: How to return a function in a function in php?

AlexI would like to have the functionality to set a function in a class (function setFunction). Later I want to get the function (with getFunction), which I can call from outside (specifying parameters etc. ). Here is what I have tried: class Test { var $function; function setFunction($foo...

That looks like fun. :D
@sectus A string operation on a numeric value is clearer than using proper comparison?
2
A: Multipe SQL commands in PHP and MySQL

sandyyou can achieve this through "multi_query" option. $query = "select * from Users;"; $query .= "Select * from Classes"; if (mysqli_multi_query($link, $query)) { do { /* store first result set */ if ($result = mysqli_store_result($link)) { while ($row = mysqli_fe...

this answer seems wrong...
07:45
> "I don't need to read about what are version control systems and how they work. I already know what i want. Now tell me, why do I need to checkout the repository before adding file ?"
, need to get account numbers with specific prefix. What would be clearer:
1. `account_number BETWEEN 123456000000000000000
2. '123456999999999999999'` and `account_number like '12345%'`
.. i should start a twitter account of "stupid shit the lead dev says"
@tereško a tumblr please
with gifs, loads of gifs
@tereško That's hard...especially because it's friday.
@tereško , oh... tell him about 'git flow' :^ )
07:48
as if that matters, since i will be at work both tomorrow and day after
, new version
1. `account_number BETWEEN 123456000000000000000 and 123456999999999999999`
2. `account_number like '12345%'`
@tereško , all day, all night
@Jocelyn Actually...looks like it's exactly what the OP asked for. However, I really have doubts about the usefulness of that.
I can't see any application where using mysql_multi_query() and mysqli_next_result() would be a better idea than doing separate mysqli_query().

« first day (916 days earlier)      last day (4256 days later) »