« first day (618 days earlier)      last day (4556 days later) » 

00:00
Jun 3 at 21:25, by Cat Plus Plus
C++ sucks.
@sehe Okay, I get the image. C++ sucks really hard!
Glad you are convinced
@sehe I really love C++ :)
@sehe You should have done it ^^
Well, I can still :)
@sehe you can?
00:02
4 messages moved from bin
@NikiC Just did
4 messages moved from Lounge<C++>
I got us some C++ sucks messages!
Hope you like em!
Cheers :)
wtf
I've added password.c to the ext/standard/config.m4 file, but running buildconf uses the old one
@ircmaxell and you really rebuilt everything?
did you specify --force?
make distclean, buildconf, buildconf --force, etc
yeah, it appears that something's being cached.
PHP_NEW_EXTENSION(standard, array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
                            cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
                            flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
                            info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
                            microtime.c pack.c pageinfo.c quot_print.c rand.c \
                            soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
yet in the generated configure:
  for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
                            cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
                            flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
                            info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
                            microtime.c pack.c pageinfo.c quot_print.c rand.c \
                            soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
00:16
built-in exts don't need phpize or something like that, right?
I don't think so
you can also try ./vcsclean ^^
It works for some things
Not sure if in your case
or is it the same as distclean?
no, it's not
distclean removes all compilation side-effects only (those inserted by make)
Woot! That did it
you're the man
so that's a problem that buildconf --force really doesn't force a rebuild, it just deletes the configure file and re-makes it from the cached config.m4 parsings
that was 1 hour wasted
That's nothing
Just hope that you don't get some funny segfault that you can debug the next three days ^^
I have a few funny segfaults here
00:30
Great
php-src/ext/standard/password.c:70:16: error: macro "emalloc" passed 2 arguments, but takes just 1
php-src/ext/standard/password.c: In function âphp_password_make_saltâ:
php-src/ext/standard/password.c:70: error: âemallocâ undeclared (first use in this function)
php-src/ext/standard/password.c:70: error: (Each undeclared identifier is reported only once
ahhh
whoops, missed the first line
nevermind
@hakre I'm too tired to still read the question. Simply cv'd
Good night
00:51
Fatal error: Allowed memory size of 134217728 bytes exhausted at php-src/ext/standard/password.c:112 (tried to allocate 4611686018427387904 bytes) in Command line code on line 1
01:31
morning
morning
I really need to start disabling cgi on my debug builds. Will make things much faster
right now, recompiles take 45 seconds instead of 25...
01:47
@ircmaxell What were you trying to allocate?
3, for a very large value of 3
Well, it turns out I mungled the pointers a bit, and instead of doing emalloc(3), I did emalloc(&3)
which wasn't good
02:02
@NikiC I wish I could pay you money to do it.
02:22
you can
Can't afford it.
Sure you can. You choose not to be able to afford it, based on other priorities
Technically, yes.
But when my choices are tuition, rent and food . . . :)
good choices
I love memory leaks
rent & tuition can be replaced by manual labour though ... usually :)
i suppose food as well
@ircmaxell you're putting together the password hashing fn ?
02:29
yes
I've got the scaffold built
just doing some wiring. Once it compiles successfully and runs ok, I'm committing, pushing (to my fork) and calling it a night...
cr%p, I screwed up a logic conditional
02:44
and now I can't figure out what's wrong
static int php_password_salt_is_alphabet(const char *str, const int len)
{
        int i = 0;

        for (i = 0; i < len; i++) {
                if (!((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z') || str[i] == '.' || str[i] == '/')) {
                        return 0;
                }
        }
        return 1;
}
basically, return preg_match('#^[a-zA-Z0-9./]+$#');
can anyone find the error there? it's returning 0 even if passed in a string consisting that would match that regex
I'm looking at it, but I can't see a mistake.
DUH
/me is an idiot
0-9. there's no check in there for that
Woot!
lol
I didn't see it either.
03:31
dam memory leaks
hopefully this will fix the last one
what's the diff between $2a$ and $2y$?
2a is the old (pre-bug) algorithm, 2x is the same, and 2y is a fixed algorithm
thanks .. good to know :)
near the "Provided salt is too short:" error message you emalloc() salt ... but at failure, it's not released
@Jack :-D
haven't tested that branch yet
but thanks, nice catch
sapi/cli/php -r 'var_dump(password_verify("foo", password_create("foo")));'
bool(true)
Only one step left to do
github.com/ircmaxell/php-src/blob/hash_password/ext/standard/… <-- That's the only part left to implement
aside from refactoring and bug fixing
the random salt generation
but that's for tomorrow
@NikiC: github.com/ircmaxell/php-src/blob/hash_password/ext/standard/… <-- It has some issues I'm sure, but it's a start that works...
03:52
exciting stuff :) can't wait to start testing it :D
I can
:-P
Good night...
nite!
 
2 hours later…
05:37
good morning :)
06:31
gud morning all
Is it possible to generate a GeoRSS using php? I didn't find any tutorials on the same. Would like to use MapQuest to use GeoRSS values
07:27
morning
07:55
Good morning everyone, i have a little problem learning codeigniter.
hi
i want to convert text of english language to dutch language in cake php
any one have idea how to do it?
if ($query->num_rows() > 0), isn't this if statement if the rows more than "zero" will do a statement?
08:43
Some people cant even solve such problems and puts a question on SO stackoverflow.com/questions/11185901/…
morning
morning
Its 14:53 here.
G'Morning
08:54
morning @Gordon @tereško @NikiC @Donut
morning @PeeHaa
morning @Donut
i want to append timestamp at end of each chat message, how that positioning is possible
Morning @PeeHaa @NikiC @tereško
hi can someone help with a url rewrite im having trouble with?
please
i have this url: dashboard.php?p=Dashboard

I want to convert to this:


dashboard/dashboard
I am using this but no luck?

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ dashboard.php?p=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ dashboard.php?p=$1
09:09
RewriteRule ^(dashboard)/([\w\-]+)$ $1.php?p=$2
@webarto thankyou but i just tried and it did not work :)
09:26
@NikiC Is php 5.5 already in the picture?
in the picture?
@NikiC did work on it already began or are there already some decisions made on what is introduced and deprecated etc?
@OZ You might be interested in this: pastebin.com/b7m2zWhG
@PeeHaa Work has begun
But most stuff isn't in yet
@PeeHaa You can see the existing changes here: github.com/php/php-src/blob/master/UPGRADING
09:43
You think I can try to toss in the deprecation of mysql_* functions. Or should I be prepared for a shitstorm? @NikiC
hi.. again.. want help in making a kml file.. this generates the content.. but it leaves 4 lines and then only begins.. Hence its no more a KML.. help please..
http://pastebin.com/k73WUGKD
Also another question.. does Google Geocoding API return the right coordinates??
Cos I searched for the New York Times office using the google geocoding api and got coordinates for Antarctica ?? wtf??
I also tried it with the Map Quest Geocoding API and got results in Antarctica.. Am I missing something??
@PeeHaa No chance
Hello everyone!
@NikiC :(
@Eugene hiya
Guys does anyone know how to combine mysql query, that would copy contents of two columns from one table to another table, where there are two columns with same names, but with where like A.id = B.id?
09:59
@Eugene You mean a join?
Well I have table A with two columns. I need to move those to another table. So first of all, I created columns in another table. Now I could use transactions to update records in a loop, but I thought, that maybe there is easier way. With one query for example.
update A, B set A.col1 = B.col1, A.col2=B.col2 where (A.id = B.id)
3
Q: copy one column from one table to another

JProI am confused about how to copy a column from one table to another table using where. I wrote SQL query but it says transaction lock time exceeded or query returns more than one row. using mysql Basically, I have: Table 1: Results BuildID platform_to_insert Table 2: build BuildID correct_p...

guys??? no help today?
10:06
@ShyamK if your question is not chatty, you can always ask on SO. there are more people watching new question that this room.
okay.. its been awhile since I asked stuff on SO.. mostly got answers from here :)
now I rmmbr why.. I can't ask questions on SO.. :(
@ShyamK Why not?
Sam
Sam
Morning guys
10:11
morning @Sam
I think now its the time to give some reps to your fellow chat room-mates
Sam
Sam
Just got back off my week in the lake district :)
What have i missed?
Asked dumb questions during the start of my SO career .
@Sam Nothing much. SO is still full of idiots. :)
Sam
Sam
@PeeHaa Haha business as usual then :P
10:14
Trying to learn Clojure. And It seems tough. Need to give more effort than I thought.
yup @Sam
Sam
Sam
@PeeHaa At work today?
@ShyamK In the starting of SO people usually answers bad.
But ask real questions with zero effort to solve.
@Sam Yup. Don't feel like working though. Been working on the php tutorial :P work can wait... :D
Sam
Sam
@PeeHaa Of course it can :P Im learning some C# + VB on my days off by copying a site from .net + VB to .net + C#
And see how rubbish the old coder was
And curse his crappy javascript
Good start, the homepage is a flash file and 2 images with text on....
10:18
hehe. I feel you pain my friend @Sam
@shiplumokaddim Got the automatic ban thing. So I can't ask questions at SO :(
@ShyamK For how long?
Sam
Sam
@ShyamK Whats the automatic ban thing for?
@PeeHaa It wouldn't do anyone a favor if mysql were deprecated this early
It would just stop the adoption for a few more years
Forever.. SO has got an automatic ban for Help Vampires.. was that when I started out.
Sam
Sam
10:22
@ShyamK Did it warn you that you might be banned?
not really.
@Sam
Sam
Sam
Perhaps you should post something on meta, if it didnt warn you, you couldnt change your habits @ShyamK
but I just started out.. boo hoo... now when the real questions come.. I'm screwed..
Sam
Sam
Although personally, i hate meta
looks kinda life less.. color wise..
Sam
Sam
10:26
I got gang downvoted for a question on meta
Never been on there since
Meta is always colorless
@Sam Downvotes on meta aren't the same as on main
Being banned is very bad. You should ask on meta. Ask it now.
Sam
Sam
@PeeHaa I know, i read the faq
@PeeHaa on main serial votes get reversed. Doesn't it get reversed in meta?
10:29
hi
@jonnypixel dunno, should work
@shiplumokaddim What do you mean by reversed? The only time I've seen it been reversed was when the mods (who don't know php) started to get mental.
anyone expert here in php OOP
Wow threee pings :P
@creativeknight What is the question?
Sam
Sam
@creativeknight Depends what the question is?
10:32
is it alright to link pastebin to a question??
Sam
Sam
@ShyamK Yes, sometimes i post the code in my question as well in case the links breaks in the future
@PeeHaa , that topic is still alive ?
@shiplumokaddim A we are talking about revenge votes.
@shiplumokaddim never bother asking for reversing them :P
Reading barcode through a class
10:34
@tereško neh
@creativeknight And the question is?
When someone votes for revenge they cast a lot of vote in a very small time span. Thats get caught by the script
i want to integrate a barcode device to make an onine bsuiness software
so that it coudl work as a billing software by reading barcode on the products and starts to bill them
There should be docs with the device.
@shiplumokaddim What is the treshold?
yup ..the deicie only reads the card or by laser
the code
10:39
@PeeHaa dont know. I think this information will never be public. Because people will start to miss-use it
@hakre maybe a candidate for programmers / code review?
11:23
hello handsome programmers of the world!
i guess none of you is handsome since no one replied
so long good friends!
Good morning
Morning mr. Ferrara
question.. what is meta.stackoverflow.com used for?? Is it just like SO ?
@ShyamK for questions about main
okay
11:28
@ShyamK You know every site has a faq right?
hehe.. yes.. sorry.. kinda never read through an faq b4.. forgot they exist :)
@ShyamK That's the reason you are banned from main
could i have a very quick help about regex
Hmm, I should put my food recipes on Github too!!!111
11:43
@tereško Owwwhh the horror in the answers
11:54
i think, people who answered on that topic got taken by surprise
@tereško :P
@ircmaxell morning
how's it going?
bugs.jquery.com/ticket/11013 <-- that's a major fail right there (that they fixed that bug)
12:07
@PeeHaa :(
@ircmaxell , not sure .. it kinda makes sense
Im running this query pastie.org/4148056 is there a way of also finding out how many times the "selection" comes up?
I want to do a count
while i keep saying that AJAX is what people call XHR, it's not completely correct
@LeviMorrison Is there a place where I can raise my concerns? or not yet? :p
12:13
@tereško not at all, considering there is a bunch of stuff that still requires syncronous requests
what a load of crap
A in AJAX is for asynchronous.
yes, however the wrapper exists for a reason. It's not trivial to do it cross-browser. So I'd much rather have the library support it
if you have "bunch of stuff" for synchronous request, then you should be using $.xhr() .. or better , native XmlHttpRequest
oh wait .. I TAKE IT ALL BACK , you are right, @ircmaxell
jquery does not have $.xhr()
exactly
12:17
@ircmaxell well... it is terrible to do synchronous requests... I've seen someone in my team make use of the option sadly -_- haven't gotten around to fixing that so it is now in production :p
well, there are times it's terrible. But there are cases where it's a must
onunload for example
or on form submission in webkit: bugs.webkit.org/show_bug.cgi?id=23933
or, validating an email before submitting it, as this programmer reasoned...
@sg3s on submit?
yes...
I know...
that's because you have to do it syncronously thanks to the webkit bug indicated
12:20
actually it sends the validation request to the same server as the form is submitted to, even the same controller.... I'd really just do the submit regardless and indicate problems on the reload
i am not sure if Safari 3.x is sill a thing
it makes no sense to do the validation on submit, it might make sense if it was done onkeyup but in that case you don't do it synchronous
@ircmaxell bug fixing jQuery style
@NikiC , be grateful that they did not choose medicine as the career path
12:25
@tereško how do you manage to live without jQ? Do you some other library or you don't have a need for it?
@sg3s very true
@webarto , there are a lot javascript libraries out there , and yes, i know enough native JS that i dont need to relay on libs
# sapi/cli/php -r 'var_dump(password_create("foo"));'
string(60) "$2y$12$joaT9Mo/U53wOzxtxQ1yyuHcJ.koMifLYGWH/TiRVkCIVgfILKgS2"
# sapi/cli/php -r 'var_dump(password_create("foo"));'
string(60) "$2y$12$hsUfCubkBuPorAmybCDd0uECx6CYevIykJ.h/NAat.XVdLcVOPqzC"

# sapi/cli/php -r 'var_dump(password_verify("foo", password_create("foo")));'
bool(true)
# sapi/cli/php -r 'var_dump(password_verify("foo", password_create("foo")));'
bool(true)
Basic random generator is done
@webarto , there is mootools and yui and extjs .. and if you do not need all that bloat, you can just pick something up from microjs.com
12:29
hello dearest dudes
I have a problem with mysql_connect. I'm connecting to a database, getting a resource id, but I get empty results set from mysql_query
@tereško microjs.com is nice, I'm not a theme designer so I don't need all that fancy animations etc... thank you for your opinion.
What should I be checking?
Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun deprecation process. See the red box? Instead you should learn about prepared statements and use either PDO or MySQLi. If you can't decide which, this article will help you. If you pick PDO, here is good tutorial.
great, I need to write 4 lines of code that will serve m for the next half an hour tops
mysqli
or pdo
@MeLight regardless of the application, don't use mysql_*
12:33
ok, thanks
@PeeHaa done
without using a form is it possible to call a php function from html like this

echo("<input type='button' value='change password' onclick='changepwd()'>");

--both html & php rests in same file--
@pbvamsi ofc not
php is serverside
then using form is the only solution!
@PeeHaa okay, thanks
12:37
@pbvamsi That or by using an xhr request (javascript)
thanks @PeeHaa
How can one not upvote this answer?
8
A: How to replace different newline styles in PHP the smartest way?

NikiC$string = preg_replace('~\R~u', "\r\n", $string); If you don't want to replace all Unicode newlines but only CRLF style ones, use: $string = preg_replace('~(*BSR_ANYCRLF)\R~', "\r\n", $string); \R matches these newlines, u is a modifier to treat the input string as UTF-8. From the PCRE do...

also , @pbvamsi , dont do this : <input type='button' value='change password' onclick='changepwd()'>
javascript events should NOT be attached in html
chat lag ...
@tereško am trying to call a php function from click event like that, its not a js function
write to a file in php??
fopen() not working..
$File = "YourFile.txt";
$Handle = fopen($File, 'c') or die("can't open file");
$Data = "Jane Doe\n";
fwrite($Handle, $Data);
$Data = "Bilbo Jones\n";
fwrite($Handle, $Data);
print "Data Written";
fclose($Handle);
just trying out a tutorial
I was going through the php.net content on fopen().. didn't make much sense..
Hello guys
I have a drupal question.
Is there any way I can add more search weight to a specific page?
Ell
Ell
hi guys
12:56
@hanleyhansen Feed it lots of food
@hakre I agree! :P
@PeeHaa -_-
No joke, because you explain all the details, I go there when "I need to know it". The PCRE manpage is sometimes a bit large to read ^^
@ShyamK file_put_contents()
But naturally I'm not only consulting one resource.
12:58
@webarto then what about the fopen/fwrite command. Why doesn't that work?
@ShyamK Forget tutorials, take the manual: php.net/manual/de/splfileobject.fwrite.php
if file_put_contents work, then fopen/fwrite/fclose works also...
@webarto That depends on your browser setting, I have english on the de site as well.
could be, sorry
I get a 500 server error when I just try out that example.. could it be the module is not installed pr something?
13:02
UI is on DE but manual is on EN (or not translated, shame on you @NikiC)
@NikiC: thoughts? github.com/ircmaxell/php-src/blob/hash_password/ext/standard/… I have some more to do (refactoring mainly, and adding another salt random source), but it works as advertised now...
off to work
later
see ya'll in a bit :)
13:18
@webarto pff
13:33
Hi all, I need to print exact xml response in my page , For that i refer this stackoverflow.com/questions/1199595/how-to-echo-xml-file-in-php
I am using magento , i put the below function helper function like
public function download_page($path) {
return $file = file_get_contents($path, true);
}
I call this helper function in template file as
@Dinesh stop
$sXML = Mage::helper('appmanager')->download_page($apiurl);
@Dinesh have you actually read the answers to the question you linked
I know this isn't exactly on topic but it's driving me up the wall... In CSS how can I stop an element from spanning multiple pages when printed? I want the element to break onto a new page when it overlaps. jsfiddle.net/g105b/89uEM
@Gordon yes gordon i tried with that answer, but its not coming ...thats y i came to chat room
Looks like SO is suffering an attack of the failcats.
@hakre its asking for array to object not array to nested array though
GOOD MORNING EVERYONE!
Sup
anyone here know if Kohana has a db driver written to support Oracle?
13:38
@Dinesh "its not coming" what is not coming? the pony?
@Gordon Yes, right, however those are actually related here (instead of the other links that were given).
omg pony is coming
Happy new Day @Mike and Everybody else!!!!
@Mike morning
In my template page i call the generated url like
$sXML = Mage::helper('module_name')->download_page($apiurl);
print $sXML;
which is not print raw xml in page
13:39
@hakre Weird. I can get to the question you cv-tagged but I just get the failcat on trying to view most questions just now
@Dinesh because you didnt read the answers on that page
10
A: How to echo xml file in php

Josh DavisYou can use HTTP URLs as if they were local files, thanks to PHP's wrappers You can get the contents from an URL via file_get_contents() and then echo it, or even read it directly using readfile() $file = file_get_contents('http://example.com/rss'); echo $file; or readfile('http://example.co...

@Gordon okay i might miss major point on answer. Kindly advice
> Don't forget to set the correct MIME type before outputing anything, though.
I havent had a chance to look into oracle support yet. wanted to see if anyone here knew.
this header('Content-type: text/xml');
i had set it. Okay Let me check it once again
13:43
@GordonM the failcat?
the one from the hashcat website? or the fail cat command?
@hakre The stack overflow page that says there's an error. It's got a picture of a cat on it, so I call it the failcat.
@GordonM damn, I don't have that and I want to see it ;)
@GordonM thx.
@GordonM hashcat.net/file-not-found - use refresh
Jeff Atwood on June 22, 2010

If you’ve ever been unfortunate enough to see our “workin on ur problemz” Stack Overflow error page …

… let me apologize on behalf of our team.

I originally found this image in some random image search and added the lolcat caption myself. I’ve often wondered where this image came from, and what sort of computer the cat in it is “using”, but I thought sourcing the image would be impossible.

But nothing is impossible for our talented community of users — they totally nailed this one! Let’s start with Andrew Grimm who was curious enough to finally ask on meta: What kind of computer is being used in “Workin on ur problemz”? …

love that picture lol
@hakre lol
13:52
another good picture
Aaaaaand back
WB @ircmaxell
@sg3s If your concerns are about the homepage, you should hold off. If you have concerns about the documentation pages, then by all means email me.
What would you name a class that can approve or deny a request?
TheGatekeeper /sarcasm
@LeviMorrison in lack of context: ApproveDenyRequestStrategy
13:58
@LeviMorrison depends on how it makes that deision
@ircmaxell I have two types of people who can approve and deny accounts. Both have to approve an account for it to be approved.
As far as approving or denying, it's just a button click that that trickles down to the code.

« first day (618 days earlier)      last day (4556 days later) »