« first day (925 days earlier)      last day (4248 days later) » 

07:05
so where do you live
what you do
what you like
favourites
user652649
@crypticツ what's your favorite song?
@Wes see my profile =oP
user652649
@crypticツ lol you can't call "Aqua - How R U Doin?"... "a song"
user652649
:P :P
*gasps*
I listen to that song when I drive
it's on my 'Driving' playlist
user652649
07:18
lol, girls (2)
user652649
this is a proper song for driving: youtube.com/watch?v=1mGI-_j_i6c
user652649
this talks about driving youtube.com/watch?v=jh0iihjANPc
user652649
no way, eh?
user652649
:P
user652649
Uby
Uby
morning :)
user652649
morning
07:44
morning :)
@crypticツ:Sure Aqua is a fair choice.
@kaᵠ Crap I either didn't get the notification or it got lost in the list :(
Morning all
/me really needs coffee or beer again
user652649
@hakre tnx for fixing my shit and the PR
user652649
morning @PeeHaa埽 @hakre :P
@PeeHaa埽 just some bits I had spotted. Some of this shit was also new shit for me.
@PeeHaa埽: You've seen the pictures?
07:54
plural?
Aaaah didn't saw the latter. SO's notifcations are pretty crap
user652649
what's that?
main element is this one, had the idea to make an analogy with the letters:
however it's just an idea so far.
user652649
08:02
ok. i'm following you...
user652649
and i like the logo :P
user652649
i was thinking that i started a framework years ago. i never finished it. i fail at everything :(
@Wes thx
@hakre Coolio
but the B is not that visible any longer :)
however it must not be visible :)
08:11
@hakre nope I cant (re your msg yesterday night)
BTW @hakre (or others) are there some free hosted jenkins solutions? Or do I have to install it on my machine?
user652649
my framework's logo
user652649
@Gordon nice tnx
08:14
@Wes cool
user652649
user652649
^ the file explorer icon
user652649
it's a "rover"
looks like you do some 3d renderings.
@Gordon what was it about? Fixing it for real?
@hakre something about putting answers and accepting them
08:18
@Gordon ah okay, yeah I assumed this is not possible otherwise I would have noticed this earlier probably.
user652649
@hakre the center of the fan could be bottom piece of the "B"
Rao
Rao
hi all, I am trying to send a php variable to an external js file, like this.. <button style="width: 100px;" type="button" onclick="User.loginSubmit($php_variable_back_url)">Login</button> but its not working, need help
@Rao "It's not working" is neither a PHP nor a JS error
Check the DOM and find out you should echo the variable
Rao
Rao
will get back with actual err
08:34
@Wes well in 3D I bet there is more room for experiments. :)
Rao
Rao
realised that my prev approach wont workout, now I want to store the url in a php variable before i redirect the user to login page..
this is my code of redirect, <?php
if(! wp_get_current_user()->data){
header('Location: /user/login');
exit;
}
user652649
yes for sure, but it's better a flat logo, nowadays, no?
@Wes sure, it's always better ;)
however to come there, everyhing is allowed and possible.
user652649
if you want a suggestion (also @PeeHaa埽)
user652649
first you create the framework, then the logo
user652649
08:41
lol
any good opensource chat app? (I know I'll bound to its limitations, but can customize accordingly)
@TheLuckyGoof What technique are you looking for long polling? websockets?
am thinking of pooling, whats ur suggestion
I would suggest websockets, but if that's not what you are after I think you should look into something like meteor
I'm pretty sure they have a chat demo
thanks, am just looking at XMPP PHP bot (sourceforge), my net is a bit slow, sry :)
i believe bots can gain my app more reputation over google's index
@PeeHaa埽 its not crime to use a bot right?
08:53
@TheLuckyGoof Don't think I have seen a law in my country that forbids it no
oops, crazy
Now back to fixing the cake
yay for work sundays … NOT
@PeeHaa埽 meteor, thanks to the nerds
yay for the nerds
09:07
'Morning. I'm having a little trouble with a class I made (http://pastebin.com/pajr2JXj) it's a multi-lang thingy, and I use it like so:
$line .= "HELLO_WORLD (before): ".$dictionary->say("HELLO_WORLD")."<br/>";
$dictionary->AddConstant("HELLO_WORLD","Hello, world! How migthy fair of thy. to come by, $DEBUG_NAME",1);

Thing is: I now want to make something like I did in C(++) that was something like `printf("This here %s is a variable and this too %s",$variable,$nextvariable)`
(wow. I almost had my syling correct. can't fix.)
@MoshMage PHP is based on c
So.. Print will behave the same way?
Check the manual when in doubt
Now i feel a little hpmf i completly forgot to check the manual before coming here
ok! It does ^^ all I need to do is use printf instead of echo
but--but--but: with a translation, won't the %s change places? (like erm.. lets say the user tanslates "hello my name is %s and I'm %s years old" with "hello I am %s years old and my name is %s"
If i call $dictionary->say("hello_world",$name,$years) it will only be correct on the 1st sentence. ** or is that a problem of the translator and not mine? **
@MoshMage I don't get it. Why would it change places?
I don't know, "people are strange"; I'm imagening that happening with other languages like if you translate English to Portuguese something is bound to be out of place. But i guess I'll worry with that when that happens :) Thanks for reminding me of the old RTFM :D
@MoshMage you can give it a number. so the first replacement can come after the second :)
without changing parameter order.
Always use your nose: If a problem seems common, you can expect there is a solution already.
Thank you Hakre will be sure to read on that (before being absolutly necessery :P)
Thank you both, indeed. Have a awesome day, Huzzah!
Hi all.
hi @Ihsan
all
all
09:24
@Ihsan hi.
Finally I have a question. I am developing a framework and api for a loong time.
And It is not an API for php but the thing is a system and I am implementing or bending php to work with it
You can call it a system with a bunch of consistent standards.
The system has its own object standards so for native things I have to use wrappers.
how to implement buzz chat feature like SO
Question is: sql server connection component wrapper.
I had implemented it via a base component class cSQL with descendants, mysql, mysqli and mssql. Now I saw pdo... (gulp).
so now you wanna user PDO instead?
wtf is cake using for session serialization. why do they have to have their own. why. ffs
09:31
The way pdo works is very good, and its abstraction level is perfectly high. Yes @hakre
@Gordon because it makes more fun to ride your own bike than just to ride a bike :)
(for some people)
@hakre i had a working session reader and now its not working because they changed the session format. I can no longer run session_decode on it
Problems:
1) The old wrapper root cSQL will go so idiotically redundant and full of unnecessary functions, when using PDO
@Gordon Let me guess: The project really documented the changes in the format between those two versions and you can quickly adopt it, right?
@Gordon You are actually working on the Cake FW!?!?!
09:33
@PeeHaa埽 He loves to eat the pain.
Way to crap up your sunday
@hakre yes. there is nothing.
@Gordon you have any clue which format they use now?
@Gordon isn't that something deprecated like me? ;)
Migrating a legacy app. It's so old that I need the wayback machine to find information about the upgrade path.
09:34
yeah, I read that. backup of the internet to the rescue.
@Gordon heheheheh
@hakre if I had, I could read it ;)
@Gordon lol. no way to find out in their session lib? And how do they import sessions after upgrade?
@Gordon lol
and which format did they use earlier?
maybe they are just using PHP session serialization now?
09:36
this is what I used to take over a foreign session:
function decode_session($session_string)
{
    $current_session = session_encode();
    $_SESSION = array();
    session_decode($session_string);
    $restored_session = $_SESSION;
    $_SESSION = array();
    session_decode($current_session);
    return $restored_session;
}
If it's an old cake app, maybe that old when there was not PHP session management?
$session_string was just the session string as stored in the session files
and it worked
after the framework updated, it doesnt
sure, that is PHP serialization
however, you have the hidden dependency of the ini setting which serializer to use.
it says ini_set('session.serialize_handler', 'php');
@Gordon Do you occasionally use db access at nearly every request?
09:38
@Gordon doesn't work also in which sense? Is the function not called any longer or throwing an error?
@Gordon If so, kick the session storage away and put it independantly to db
slogan : "the way I like it"
And if you want to inspect PHP serialized data incl. sessions, checkout github.com/ktomk/Serialized
@hakre it's not decoding the session string anymore
@Ihsan the task is to get it working again. not to refactor it
@Gordon Ok looking around for a resolution.
instead of the expected string format, I get something like 1ooNJ1A9HzArTDTll3L5qnqByQy2-…
09:41
take that lib and use the text dumper it's nice for debugging: github.com/ktomk/Serialized/blob/master/examples/03-session/…
@Gordon base64?
to prevent encoding problems in the database ;)
oh wait. it could be suhosin
or that, yes.
but suhosing normally is on the save-handler, not in the serialize handler.
@hakre well, I'm reading the strings straight off the session files, so that would make sense
@Gordon yes, then this makes sense. suhosin session encryption: hardened-php.net/suhosin/…
if you're using debian chance is high that suhosin is enabled.
it is enabled. I know that
09:46
$ vi /etc/php/conf.d/suhosin.ini
@hakre already at it. thanks :)
@Gordon Lucky you are
there we go. turned it off and there is my sessions
sorry cake
although you still suck for comparing php versions like this if (PHP_VERSION < 5.1) {
@hakre Magic touch ...
@Gordon If that would have been the only sucky thing... :P
09:50
@Gordon Sorry we do not support your server ....
@Gordon are you writing an installer too?
@hakre do you happen to know how to manually decrypt a suhosin crypted session file?
I could write a strategy then
@Ihsan Installer? for?
@Ihsan I have no clue what you are talking about
@Gordon no I dunno, however a function to decrypt must exist in suhosin sources.
maybe there is even a userland function?
@PeeHaa埽 sorry I was asking to gordon
6
Q: Decrypting and Reading Suhosin Session Data

Zubair1I just noticed that my host started using Suhosin Hardening, i'm not quite familiar with this and am having major issues with my application, mainly in sessions. The session is nowing being stored in the following format: _EzyqHpPJqmQbSpRmXAJTxuFq980aNQlc3XAiRkWxlZQ9B0fnV... I don't mind that...

@Gordon when you install php thingys you check for php compatibility, you do not do that for normal runtimes ???
@hakre why go into the internet when everything is on StackOverflow
@Ihsan same answer. sorry.
@Gordon because you can spare the click to the link in the accepted answer and go there directly?
:D
@Gordon "although you still suck for comparing php versions like this if (PHP_VERSION < 5.1) {" this is not an every-invocation script snippet. If it is, then it is a bad one.
You write such shit in installers.
09:54
@Ihsan we are talking about cakephp 1.2 - you can safely assume that everything in it is bad
@Gordon Undelete that answer please and see the comment below!
@Gordon lol
@hakre one answer says it's "cryptkey + user agent + document root + IP octets" so no way to decrypt it
@Gordon I mean this answer: stackoverflow.com/a/6179353/367456
At first I thought it's crap, but there is a story it tells.
And the other one shows how the key is.
Which actually is the answer.
You can decrypt if you have the key.
I go now, I will come back when you mortals are ready for my question ... :D
09:57
> The variables are concatenated without a separator – if for some reason the cryptkey string is NULL then Suhosin will default to a value of “D3F4UL7”.
ok. that's pretty much not worth the effort when I can just turn it off
@Gordon I'm eager to hear back from you if and how it worked out in the end :)
@hakre i just turn it off ;)
@Gordon I somehow get the feeling your current work has a negative influence on you. I'm under the impression you switched from clean-code to dirty-but-worky. :)
@hakre the old server didnt have suhosin installed at all, so I won't fuss with it now. I only disabled the session encryption. the remaining stuff is still active.
@Gordon @Gordon: Virtualize the old server in the new environment and job done. Why do you care so much?
I mean is there any real reason to port that application?
10:02
@hakre you mean apart from the old server running debian 3, php 4 and mysql 4?
@Gordon so what? virtualize it, firewall port 80 and what to care?
@hakre there is no way to get the machine from the hoster
@Gordon but debian 3, php 4 and mysql 4 is still available.
@hakre manually recreating the environment makes no sense. that takes just as long as updating
> Debian GNU/Linux 3.0 (a.k.a. woody) was released on 19th of July, 2002. ... Security updates have been discontinued as of the end of June 2006.
okay, this is really long time ago.
I remember that name.
10:07
@hakre i had the machine audited and while it wasnt that insecure, updating it was long overdue. so I convinced the client to finally do it
@Gordon it sounds like, yes.
yes, it's much better to do that.
it's just when you start those project, it's often necessary to tell the client that things will not go straight.
Like you have with the encoding or with session configuration.
besides, it makes development somewhat easier. i get the occasional request to add features to it
These details pop up suddenly without warning.
Migration is always just a bit more work.
and with php5+ I got way more options. Try to find a bulk mailer for php 4.3 ;)
So to which PHP version you go now? PHP 5.3, right?
10:11
@hakre yes. current stable in Debian 6
unfortunately
what do you mean? you want 5.4? you know about dotdeb.org don't you?
@hakre Debian: adopting libraries when they officially reach EoL™
@Gordon If something is EOL, it must be stable then :)
I love Ctrl-N in PHPStorm
Error in FooController on line xxx. Open PHPStorm Ctrl-n Foo Ctrl-g xxx and you're there. It's almost vim
10:28
Hi again gentleman...
@Gordon There is also Ctrl+Alt+Shift+N ^^
Uby
Uby
@Gordon It changed in PHPStorm 6. It's now Ctrl/Cmd + O
can't understand why they changed it...
@hakre Is pdo integration of mysql seamless in php? I mean no driver fight... find it install it, beg for it type things...
@Uby ctrl alt shift n still works for me
Uby
Uby
@Gordon Maybe is a OSX thing... or maybe I messed up with shortcuts :P
10:39
thx friends...
11:06
@Ihsan driver fight?
@tereško morning @tereško
mornin'
/me has been playing "Don't Starve"
hi everyone...I've one basic doubt amount the session variable..I hope someone can clear it
suppose my index.php files contains session_start() at the very top...
then

//index.php
//index.php
session_start()
blah..
blah..
include 'someotherfile.php';

now do i need to put session_start inside "someotherfile.php" too?
or will it take the session_start from the index.php page?
yey just one upvote to go .. area51.stackexchange.com/proposals/48905/beer/52456#52456 and my proposal will be in next phase
@asprin session_start() is already executed when your include is reached
@Gordon so that means no need to declare it again insdie the included file?
11:17
@asprin put it in for fun and see what happens
I'm guessing E_NOTICE :)
@asprin dont guess it. verify it.
yeh..trying it out...
Rao
Rao
11:32
how do i access url from this array, array(1) { [0]=> array(3) { ["id"]=> string(1) "2" ["caption"]=> string(8) "Maldives" ["url"]=> string(77) "http://foo.bar/437_images.jpeg" } }
that's the var_dump
array(1) { [0]=> array(3) { ["id"]=> string(1) "2" ["caption"]=> string(8) "Maldives" ["url"]=> string(77) "http://foo.bar/437_images.jpeg" } }
yey ..my proposal( Beer ) is now in commit phase ..
Rao
Rao
@PeeHaa埽 read that manual, but tell me if im wrong, if the array is $arr then i should do $arr[0]->url ?
@Rao Where on that page does it tell you to use ->?
Rao
Rao
little confused, when to use -> and when to use => ?
11:42
That was not my question
@Gordon Notice: A session had already been started - ignoring session_start()
Rao
Rao
@PeeHaa埽 so i should do $arr[0]=>url ?
@asprin why you start again ?
@Rao Don't guess or make things up, just read the manual
@NullPointer Was checking what would happen if I do so
11:47
@asprin good. now you know ;)
morning
Yep! A better leaning technique :)
@NikiC morning ..
@NikiC mornig
Rao
Rao
@PeeHaa埽 got it, $arr[0][url]
11:54
@Rao Also enable error reporting, because the above spits out a warning
Rao
Rao
how to enable error reporting?
u mean try catch?
It may surprise you, but that's also in the manual
mornen
mornirnri
Rao
Rao
i know everything is in the manual, but im still learning, need pointers.. thanks..
11:57
@Rao Here is a pointer: read the manual when you are stuck
Rao
Rao
Thank you! I will, from now on!
http://stackoverflow.com/q/16174841/1723893
12:13
-5
Q: Motherwell vs Celtic StReAmInG Sun, Apr 28, 2013 Scottish Premier League SOCCER TV link

Tv StreamAre You Looking for exciting soccer? Looking for awesome soccer match with HD video on your pc and related others? Don’t worry. It is pleasure that the expected soccer match is going to your favorite channel STREAM DIRECT for live telecast. Hello everybody an enthusiastic Welcome to watch and enj...

@Gordon you may want to see this ^
Aaaaand it's gone
10k meta sux limit :(
http://stackoverflow.com/questions/16262752/run-query-into-php
@NullPointer Oh... stop that... I am repwhoring like eccentrica gollumbits... xD
@Ihsan message is locked now :P
12:22
http://stackoverflow.com/questions/16041573/parse-error-syntax-error-unexpected-t-echo-expecting-or
@NullPointer Why did they downvote erdem ece anyway?
@NullPointer Sir Fred ???? XD
@Ihsan its just privilege and depends on you .. that how you use ..
yep...weird anyway..
http://stackoverflow.com/questions/3216212/do-employers-like-games
Hello everyone !
12:31
@HamZaDzCyberDeV Hi, Might it be you sir Fred?
@Ihsan lool
@Ihsan Who's Fred xD ?
hahahahahahahhahaaha
MWAHAHAHAHAHHAHA
ROTFL really into tears now... loughing...
12:42
stackoverflow.com/questions/16262944/… He is talking about an if loop :)
@Er.NikhilAgrawal hi
hello @Ihsan how are you today
@Er.NikhilAgrawal Thanks. Very good, I hope you are too.
@Ihsan nice so where doo you live
Turkey... But have to go now, have a nice time all...
13:00
6 messages moved to bin
Hi there
I'm sorry but my english is a bit poor... Can someone help me a bit? .. I'm from hungary and I would like to start a google monitor tool for english people, but I have no experience in english websites... How should I start it? How can I for example advertise a free application? ...
Good Morning
Morning @ircmaxell
hmpf. have to take out the big guns now. remote debugging. takes me through parts of cake I rather not want to see
@user2301881 That's too broad
@ircmaxell Hello !
13:08
/me is tired and sore
@HamZaDzCyberDeV Too broad? ...
@ircmaxell How come? Rough night?
you can say that
in the best possible way
wound up at a Sake bar... Yeah...
I was wondering where you begin to? You all started someehere. In hungary know how can I get visitors, but in the world wide web I dont know how to start.. :-s
13:12
@user2301881 So you want to promote your website ?
hello
@HamZaDzCyberDeV Yes. I have created a google keyword monitor script, my users can use it for 100% free... And for hungarian keywords I have got great position in google, but this is a small country :(
@user2301881 No idea, I'm not interested in "promoting", I mean if you make an interesting website, tweak it, some SEO, it would be enough ..
@Jocelyn Bonjour :-)
@HamZaDzCyberDeV Do you know seo forums? :-) I don't know wich ones used in other countries. I know only hungarian forums... And if i try google it it just drop me hungarian sites
@user2301881 are you using www.google.hu ? use google.com (english) instead
13:21
@HamZaDzCyberDeV I use google.com , but it know I'm from hungary.. :-D I dont like this new google
@user2301881 Choose the language you want to use: google.hu/preferences?hl=hu#languages
@Jocelyn It may works...
@HamZaDzCyberDeV This dont do me anything just drop on google.hu
Well it's just some google preferences
@HamZaDzCyberDeV there is no need to use google.com to see results in English. The thing to do is set correct language preferences (with the link I gave)
13:24
@Jocelyn ok
Could you advice me a keyword to find seo forums? :)
How many online users, or user should be on a forum? On a good english forum?
frigging cake!!!1
How can you denote an array of multiple specific types only in a PHPDoc block?
This can't be right: int[]|string[]
hehehehehehehehehhe annoyed much? @Gordon ;)
@AdamLynch mixed or what you just said
@PeeHaa埽 yes, I cannot believe that I have to fix so much to make it work
            $this->data['GroupSubject']['id'] = null;
            if ($this->GroupSubject->save($this->data)) {
13:30
@Gordon yeah I've used mixed but I was hoping I could say it can hold ints and strings
what I said seems to imply an array of strings or an array of ints
@PeeHaa埽 the code snippet above used to work. setting the id to null would insert a new record when calling save(). So I used that often. But now it doesnt work anymore. It will tell me id is empty and thus return false on save()
lulz... that.... sucks
@AdamLynch well, you can still do @param array array of int and string. its not like having int[] or string[] will help you much. they are scalars anyway
ya it's more for a disclaimer than anything
@Gordon is this a good way to explain regex: stackoverflow.com/a/16263406
13:41
@HamZaDzCyberDeV yes. another option would be to use PCRE_EXTENDED and add it as comments into the regex like here: stackoverflow.com/questions/7058162/…
another option would be to repeat the individual parts and explain them like here stackoverflow.com/questions/16139460/…
Ah right !
+1
@ircmaxell you still here?
yo
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
This just made my day #cli russian roulette [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
In your password compat lib. How do you test the stuff after ifs like function_exists('mcrypt_create_iv')
what do you mean?
13:53
Let's say on my machine mcrypt_create_iv exists and I run the tests. How will I ever be able to test the rest of the function?
you can't
in an ideal world, make those polymorphic choices.
Then you can have a factory choose for you: github.com/ircmaxell/PHP-PasswordLib/blob/master/lib/…
But in general you can't test stuff like that easily
Do you have this pieces under tests separately from the repo somewhere? I mean I'm pretty sure you have tested that code
@ircmaxell reminds me of psDoom

« first day (925 days earlier)      last day (4248 days later) »