« first day (941 days earlier)      last day (4233 days later) » 

17:00
well, it's a hint, but it does crap itself when you give it something that can't be cast
@iroegbu That's kinda the point of the header...
w00t
14056000 mem usage: 515288 | stack size: 6
14056500 mem usage: 515328 | stack size: 0
14057000 mem usage: 515328 | stack size: 5
14057500 mem usage: 515288 | stack size: 0
14058000 mem usage: 515584 | stack size: 7
14058500 mem usage: 515248 | stack size: 5
14059000 mem usage: 515288 | stack size: 0
@rdlowrey
@bwoebi E_ERROR, E_NOTICE etc for log levels
@Lusitanian Sounds like it should be an RFC to Apache/Nginx, not PHP.
@JoeWatkins How'd you manage that?
17:00
@Hiroto you know i am using same script for other domain and it working f9
@MadaraUchiha rewrote stack manipulation ...
it's not quite perfect ...
user895378
SWEET
that script connected with same database just facebook appid and sceret code is different
@MalikUsman the state tokens dont match and you dont know what CSRF is. you arent setting cookies for the right domain
</question>
it's not perfect ...
17:01
SOUR
Alright folks, I'll take my leave
but no need to rush ... I just got given another unwanted three month break from work ... so plenty-o-time ...
user895378
@JoeWatkins I can't explain to you how exciting that fix will be for me. Keep me posted.
See you all later this evening
@rdlowrey S'up?
17:02
@rdlowrey still waiting for it to fail at 30 million tasks executed ...
user895378
@Bracketworks I was referencing @JoeWatkins message above ... he's working on a memory problem I'm having in pthreads.
34mil and getting 514XXX sometimes ...
Ah. Neato.
think it's pretty stable but I have observed it to go wrong ... is pushed you can test if you like ...
Hello! Quick question, if you have the spare time: Is it possible in PHP to somehow assign a Class to a variable? By this I mean something like:
$some_variable = MyClass;
$some_variable::aClassMethod();

Why would I want to do this? Well, the class name is kinda long and I'd like to use something shorter. I kinda want to use the variable as some sort of alias for the class name.
17:05
well wish NikiC was here ... he laughed at me for writing exactly that for no reason the other day ...
oh wait no
I misunderstood
48888000 mem usage: 514896 | stack size: 7
w00t
cspray, why did you pass me the standard docs for class?
I know the basics of a class...
user895378
@JoeWatkins Gotta finish my current train of thought. I'll pull the latest in a little while and let you know how it goes.
Unless there's something special over there.
17:07
@MadaraUchiha Later, IDF.
@rdlowrey sure sure ...
@EmmanuelFiguerola Yes. Try it.
I'd do class Shorty extends ReallyLooooooooongClassName {} and then used Shorty:: ... but this is just functions wrapped inside Class, it's not OOP.
oh
ok, thanks
@EmmanuelFiguerola
$some_variable = "MyClass";
$some_variable::aClassMethod();
but "Well, the class name is kinda long and I'd like to use something shorter" That's a really rubbish reason for wanting to do this.
Just use an IDE with auto-complete.
@JoeWatkins I am here
17:13
@Hiroto PHPStorm supports type-hinting from functions youtrack.jetbrains.com/issue/WI-6027
ooh
@NikiC no nevermind, I was wrong, thought someone asked for the thing I wrote last week Object, but couldn't remember what prompted me to write it ...
CodeIgniter doesn't work either way :P
> please visit here and fix this problem.it is my university project.
Stackoverflow 2013
@webarto herez muh user ans pass and while I'm at it *throws money at you*
I almost feel like he is trollin us
Probably not, which is sad :P
I think 'i found the problem directory is Main in form action he uses lowercase main so 404.
Yeah, goodies of Windows development.
Just noticed I have a t-shirt that says Super Gentle which is not true, I'm not softcore like @DaveRandom.
17:43
Evening
Evening, Dutch boy.
Hola @webarto
@PeeHaa埽 Goedeavond :)
:)
What makes trello so awesome?
Sucked this morning, sucks now too.
If it can do my tasks, then it's awesome :P
17:46
I would fork that yeah
@PeeHaa unlike most issue trackers, it's manager-compatible.
manager-compatible. *short circuit*
@Janoszen I don't even know what that is suppose to mean :P Are you a manager?
We developers, we do shit.
@PeeHaa no, I'm fortunately not. It means that you can have a non-IT person sit down and work with it.
17:48
Occasionally.
@Janoszen You mean it stands behind you, making not very helpful comments?
lol @ the demo video
All workplaces with only pads
You can even scroll the lists!!!! OMGWTFBBQ
All I see is... BULLSHIT BULLSHIT BULLSHIT BULLSHIT BULLSHIT
It's not made for bad ass motherfuckers. (us)
It's made for douchebag hipsters.
I can see the usefulness of that. It's just a useful as basecamp...
i hate when you see a word so much it starts looking weird.. currently its session for me
17:51
banana
that's really sad =o(
@crypticツ Error: nothing to transfer.
@webarto hahaha
@PeeHaa埽 Apparently, Joel Spolsky company made it, so we kind of have to like it.
17:55
@webarto yeh...
hey
I want my @Lusitanian's mother pinned message back!
something I was thinking today, why implement Countable, Iteratory, ArrayAccess etc when you can just create your own interface for collections which method names you like?
And the minutes it took to watch the demo video about yet another todo / sticky notes app
/me listening to Justin Timberlake entire day #oneofthosedays
@PeeHaa埽 So forking revolutionary! It's swipe manager compatible!
17:57
:S
Nevermind those bollocks.
I'm using a Firefox addon to basically highlight posts by people on my SO favorites list, I just have myself on the list so I can distinguish my own posts quickly. Does anyone know of a addon for Firefox or Chrome that allows you to blacklist posts from people? Say there are users who post stupid questions all the time, I'd like those questions from those users never to appear to me.
@Bracketworks - hey where'd your code go?
$functionList = array(
1 => "doFor1",
2 => "doFor2",
3 => "doFor3",
)

if (array_key_exists($switchExpression) == true) {
$function = $functionList[$switchExpression]
$function();
}
else{
throw new Exception();
}
@crypticツ I do believe you can "ignore this user everywhere" from the chat
$functionList[$switchExpression] ()
18:00
@Danack Yea, no. I didn't want to do that; realized that was the only alternative; threw a switch() around the $expression, turned return into assignment, and said eff it.
@ircmaxell You really got hooked on JS :D
you can do that in PHP as well
@ircmaxell Although you can I follow a rule of coding that "one line = one function" as otherwise it's not possible to step through each function it in a debugger.
Bleh, if PHP had array-literal dereferencing, then it would be clean-er.
Also spelling is hard today.
18:01
@cheesemacfly I'm not talking about chat, I'm talking about the main site
@Danack generally, sure
Yep just tried and it is only available for the chat
but you only have one expression here
$r = ['a' => function () {}, 'b' => function () {}][$e]();
Sad face at the syntax error ------------------------------------^
user895378
@JoeWatkins In your tests did you modify my gist script at all? Because I seem to be getting the same ever-growing memory after building the extension from your latest push :(
18:06
@PeeHaa埽 NO bai
@Bracketworks the [$e] part of it is no syntax error ;)
The () might be though
No, the dereference is; (sorry my arrow was off)
echo [1,2,3][1];
Parse error: syntax error, unexpected '[', expecting ',' or ';' in Command line code on line 1
However
function noop($a) { return $a; } echo noop([1,2,3])[1];
(of course)
@ircmaxell that's evil, or at least black magic
# 1
$writer = new Zend_Log_Writer_Stream();
$writer->setFormatter(new Zend_Log_Formatter_Xml);
# 2
$writer = (new Zend_Log_Writer_Stream)->setFormatter(new Zend_Log_Formatter_Xml);
Are these two the same?
@webarto yes
no
18:12
E_YES_NO
;)
Just fooking with ya
hello people
PeeHaa hello again :P
Nay, apparently the second one "doesn't work", but doesn't bitch about it.
@webarto The latter does not contain the reference, but the return value of the methpd
@IceD heya
@PeeHaa埽 Hi man. I have some issues and PHP could jump in
I am trying to make a file and use it as a database
user895378
18:14
sqlite. winner. question answered.
i store links in it. Line by Line
@webarto consider this $foo = (new DateTime())->format('d-m-y') <-- contains 14-05-13 and not instance of dateTime
@rdlowrey needs less sql
but when I try later to find the links in database search() method doesn't give good result
user895378
<-- forgot sql isn't webscale :)
18:14
@PeeHaa埽 Got it right now, it doesn't have the object to setFormatter to. Thanks :)
any way of using a good search method ?
@IceD Kinda hard to know what is going on when I have no idea what search does
@rdlowrey flat files are webscale
we need more flat files.
i am a chief agile flat file expert officer
user895378
can I use sharding with flat files?
I'll explain.
link
link
link
...
...
...
link
18:15
@Lusitanian I only store in relief biatch
@Lusitanian You'd be surprised :P
"people who use framework X obviously write better tests than everyone else" #fail
E_LANGUAGE_ERROR
so I tell in the script and use search() method to compare each link with the current one
something like
ow no it actually is spelled relief
18:16
@igorw no. people who use framework Y obviously write better tests
Z #ftw
var database_search=loadedfile.search(current_link);

if(database_search<0)
{
//the link is not in database
}
@PeeHaa埽 so... how are we with the friggin date regex leap jarre resistant? :P
42
Regex hey. That's @NikiC's job!
:)
Bleh
My running dialogue
// Parse error: syntax error, unexpected '[' in Command line code on line 1
// dammit
[ 1 => function ($a) { echo $a; } ][1]('foo');

// Parse error: syntax error, unexpected '[' in Command line code on line 1
// sonofabitch
[ 1 => function ($a) { echo $a; } ][1];

// ok... ok... here we go
function n($o) { return $o; } n([ 1 => function ($a) { echo $a; } ])[1];

// Parse error: syntax error, unexpected '(' in Command line code on line 1
// AW COMEON!!
function n($o) { return $o; } n([ 1 => function ($a) { echo $a; } ])[1]('foo');
18:18
haha
Sirius question: What's a good webscale method to serve almost static dynamic pages?
@webarto "almost static dynamic pages"?
wut
@webarto varnish.
@Lusitanian Content doesn't change often, but it's MVC shit.
then yes. varnish.
18:20
anyone?
@Ic
aushaush
hello @IceD
Hi :)
so like i wrote above I am looking for a good way to search link in database
database is simple .csv file and has links in it
@Bracketworks I recommend testing syntax on some recent PHP version ^^
what u r trying?
the current method I use is simple search()
18:21
with PHP or JS ?
var database_search=loadedfile.search(current_link);

if(database_search<0)
{
//the link is not in database
}
the JS but I want to try some PHP solution
@NikiC Recent as in 5.5?
@Bracketworks of course
is it stable?
@kaᵠ It's a release candidate
18:23
so... not reccommended for production
@IceD why exactly don't you want to use a real database? it's very hard to get it right when you roll your own.
@igorw If you don't mind answering, how does that stop PHP from generating content over and over again? It doesn't even get to that point?
@kaᵠ why? it's just dereferencing
and has been supported for years
@webarto correct. it caches content
in PHP, file return a array
18:24
@webarto varnish sits in front of your HTTP server. responses served from the cache will not hit PHP.
@igorw I am limited since I use JavaScript in iMacros addon for firefox.
with a foreach, you can check all lines
Bah, I hammered 3v4l, gotta wait.
@Falci can that be used in JS too ?
what is this called? echo "word" . $variable . "word";
concatenate?
18:25
Concatenation?
@IceD can't you use one of the browser storage APIs?
@ircmaxell yea.. dinosaurs time even, but still evil, obsfucates the code (i actually could envision a good usecase, but can be written nicely)
I've never used javascript to manipulate files (only thumbs)
yep @Bracketworks that's what I'm thinking, thanks. I'm horrible with the names of things
@igorw like what APIs ?
18:25
@kaᵠ I know a number of usecases
@ircmaxell so, instead of a switch/some ifs
other"?
instead of ternary
or other blocks
@IceD localStorage, indexedDB or such.
ok i will use google now
thanks
@ircmaxell yeah, ternary is ugly, but this is hard to read too... just swapping apples for oranges
18:27
@IceD look on MDN
@Lusitanian Yes, Sir. How are form submissions etc handled if you know? Basically, what are the gotchas if you know :)
is there no way to un-upvote a comment?
@kaᵠ depends on a lot of things
@igorw Got it, thanks Sir.
18:28
@Daniel There is no way to un-anything on stackoverflow
lol well I found out earlier you can un-upvote something by down voting it again
but only for answers, not comments
not really
@NikiC Ok, array-literal-dereferencing works I see; but array-literal-dereferencing-calling still fails. Expected?
@Bracketworks Yes
Know if intentionally, or is it something that merely hasn't been revamped yet?
18:29
@Daniel Only in short period of time, or if content changed drastically.
right
@ircmaxell instead of a switch could be actually nice, bit odd, but interesting. any other ideas where this could fit nice?
enum callables
where you have a different callback for each entry in an enum-style class
like for example: responses to different status flags
@ircmaxell Totally not read this in English at first.
18:34
Thomas Bangalter (born January 3, 1975) is a French electronic musician best known as a member of the French house music duo Daft Punk. He has also recorded and released music as a member of the trio Stardust, the duo Together, and as a solo artist including compositions for the film Irréversible. Thomas Bangalter owns a music label called Roulé. Outside of music production, his credits include film director and cinematographer. Bangalter lives with his wife, French actress Élodie Bouchez, and their two sons, Tara-Jay Early life and career Thomas Bangalter was born in Paris, France. He ...
Profile picture, really? :)
This conversation has gone epic:
( ⚆ _ ⚆ ) @bryanveloso
19
A: How to get the mouse position without events (without moving the mouse)?

Tim DownReal answer: No, it's not possible. OK, I have just thought of a way. Overlay your page with a div that covers the whole document. Inside that, create (say) 2,000 x 2,000 <a> elements (so that the :hover pseudo-class will work in IE 6, see), each 1 pixel in size. Create a CSS :hover rule for those

@NikiC So, call_user_func strikes again 3v4l.org/kTMbG
@ircmaxell ( ͡° ͜ʖ ͡°)
( ͡° ͜ʖ ͡°)╯︵ ┻━┻
ლ( ͡° ͜ʖ ͡°ლ)
╭∩╮( ͡° ͜ʖ͡°)╭∩╮
Pasted in for reference :D
18:40
What would be the best, most efficient way to generate an account verification token, but check it against the database first or something? No users can have the same token.
I'm missing character sets on this computer :(
this is what i have so far: pastie.org/7908079
18:41
Ahh James, you wrecked it.
Yo
Too late? oh..
C-C-C-C-COMBO BREAKER
3
lol @MadaraUchiha
:9410330 what the ping?
18:44
@JamesAllison you could use a session id?
This email confirms that you have donated $10.00 USD to Christina Goebel [email protected]) using PayPal.
Follow me.
rad
rad
A mongoDB related question: I am taking data from XML, parsing it and storing it into mongo. But every entity is stored with additional "0". eg.: "fb_id" : { "0" : "3000" }
So, if I typecast the data into string before inserting, I gets stored properly, like- "fb_id" : "3000". I do not want to typecast each and every element to string, manually. What am I missing here?
#richfags
@Daniel thanks, that's actually got me thinking i can md5 the user's unique username :D
18:45
@MadaraUchiha Thanks! :D
Looks like Daft Punk.
yep that would work too, lots of different options that wouldn't require checking the db for an existing one
@webarto Who's Christina Goebel?
@rad By "parsing" it, are you converting it into an array?
@MadaraUchiha Saw on pastie.org ... savenatenow.com/?term=read&src=pastie (afaik brother of pastie.org founder)
rad
rad
@MadaraUchiha No. I am parsing it by converting it into SimpleXMLElement object
$user_data = simplexml_load_string($msg_obj->user_data,'SimpleXMLElement');
I am definitely missing something important.
              ∧__∧
             ( ͡° ͜ʖ ͡°)
            ⊂  つ
             (つ ノ
              (ノ
     \      ☆
             |     ☆
          (⌒ ⌒ヽ   /
    \  (´⌒  ⌒  ⌒ヾ   /
      (’⌒ ; ⌒   ::⌒  )
     (´     )     ::: ) /
  ☆─ (´⌒;:    ::⌒`) :;  )
     (⌒::   ::     ::⌒ )
    / (    ゝ  ヾ 丶  ソ ─
@ircmaxell :P
18:50
And boom goes the dynamite
Hi, any one aware of amazon mws api integration?
is that why they call you @webarto
Y'all will probably have some interesting comments, esp. re:PHP
0
Q: Is it necessary to use &mdash; and &ndash; in XHTML or HTML5?

BaumrIt seems that it is best to use the &amp; escape, instead of simply typing the ampersand (&). However, should we be using X/HTML character entity references for dashes and other common typographical characters when writing blog posts on CMSs like WordPress or hard-coding websites by hand? For e...

Guys any replies?
Need to download the inventory files from FTP from amazon...
@Manoj Apparently, no one here knows the Amazon API, you can try asking it on the main site, be sure to include what's the problem exactly, and what you've tried to solve it.
19:03
Hy all :)
Is there any reporting tool for laravel (bundle) or in "pure" php.
Something like jReports in java or any other reporting tool.
Through that tool i want to input some SQL and through template to genera report(pdf, excel, html or any supported format).

Thanks:)
shims = {
    array: {
        forEach: function (obj, callback) {
            var key;
            for (key in obj) { if (obj.hasOwnProperty(key)) { callback(obj[key], key); } }
        },
        map: function (array, callback, thisArg) {
            if ('function' === typeof Array.prototype.map) { return array.map(callback, thisArg); }
            var len = array.length >>> 0, T = thisArg || undefined, A = [], k = 0;
            for (k = 0; k < len; k = k + 1) { if (array.hasOwnProperty(k)) { A[k] = callback.call(T, array[k], k, array); } }
:-D
@ircmaxell Implementing stuff like [1,2,3,4].map()?
looks neat :P
@madra sure.. thank you
You've earned a bonus for your associated accounts: +100 reputation
What is that about?
19:14
@JamesAllison it has been asked at least 1000 times
I know it has, but all the things I've tried are not working
@Daniel If you're active on another site (gaining more than 200 reputation), you gain a bonus of 100 on every other site.
Ah okay cool, ty @MadaraUchiha
@Daniel It's meant to get you over the initial phase of can't comment, can't vote.
Right, that makes sense
19:17
@rdlowrey swapped jobs for normal array, still working on it ...
user895378
@JoeWatkins Cool, just updating you with my results. Thanks for keeping me posted.
just pushed some mo'
posted on May 14, 2013 by Christopher Jones

This post shows the changes to the ZF2 tutorial application that allow it to run with Oracle Database 11gR2. Oracle Database SQL identifiers are case insensitive by default so "select Abc from Xyz" is the same as "select abc from xyz". However the identifier metadata returned to programs like PHP is standardized to uppercase by default. After executing either query PHP knows that column "AB

@rdlowrey am getting pretty steady results now ... I think, you ?
user895378
@JoeWatkins Will check, one minute.
MGE
MGE
19:25
I have a PDO problem :/ ( pastebin.com/Lvc4y1pz ) the problem is on :soundid if I type manually soundid='soundidfromPOST' that I get from POST, the row is updated, but with soundid=:soundid ... nothing. Why?
@MGE Have you set PDO::ATTR_ERRMODE to PDO::ERRMODE_EXCEPTION?
MGE
MGE
Madara
no error exception
is that the row isnt updated
@MGE I get that, but do you have PDOExceptions enabled?
user895378
@JoeWatkins Didn't seem to work the first time, so I deleted everything and re-cloned/rebuilt the extension again in case I had done something stupid and reused cached objects from before. After ruling out user error it looks like the worker stack is now being cleared correctly (which it wasn't originally). However, I still get the runaway memory:
user895378
50000    mem usage: 4460640 | stack size: 0
100000   mem usage: 8655264 | stack size: 2
150000   mem usage: 17043872 | stack size: 1
200000   mem usage: 17043872 | stack size: 1
250000   mem usage: 17043872 | stack size: 827
300000   mem usage: 33821088 | stack size: 557
350000   mem usage: 33821088 | stack size: 1
400000   mem usage: 33821088 | stack size: 1
MGE
MGE
19:30
@Madara
yes
$this->_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
and nothing..
clearing every 5000 iterations
Is error_reporting() enabled?
?
no 50000 !!
try 500
user895378
@JoeWatkins I did before I responded just to be sure. Same results :)
user895378
The memory keeps rising even when I clear every 500 calls to Worker::stack()
MGE
MGE
19:32
madara yes
@rdlowrey running this gist: gist.github.com/krakjoe/5576666 as it is now ?
50000 mem usage: 19745496 | stack size: 0
100000 mem usage: 19746536 | stack size: 516
150000 mem usage: 19746312 | stack size: 233
200000 mem usage: 19746400 | stack size: 68
250000 mem usage: 19746416 | stack size: 0
300000 mem usage: 19746344 | stack size: 0
350000 mem usage: 19746112 | stack size: 0
400000 mem usage: 19746208 | stack size: 0
user895378
@JoeWatkins DOH! I was using my old code. It works with the code from that gist!
user895378
WHOOOOOOOOOOHOO!
right yeah, good ... yeah don't use stackables for lists that you do not intend to share among contexts ...
I will of course try to find out why stackable acts so wierd ... but at least, solution found ...
user895378
Awesome. Very awesome. Thanks for working on this.
user895378
19:35
(off I go to upvote some of your quality SO material)
no problemo, like I said the other day the more people that use it the more bugs I get to find ... the whole idea works, my use of zend is shabby in places ... thought I'd be getting help ...
user895378
> thought I'd be getting help ...
user895378
That is lamentable ...
MGE
MGE
0
Q: Simple PDO update is not working

MGEThe problem is on :soundid if I type manually soundid='soundidfromPOST' received from POST, the row is updated, but with soundid=:soundid ... nothing. Why? PDO::ATTR_ERRMODE to PDO::ERRMODE_EXCEPTION and error_reporting enabled. public function save($args) { $userid = Controller::getUserCon...

20:06
zzzzzz
@JoeWatkins wake up! :)
user895378
Lol @Lusitanian please tell me you've seen this article about the sad state of Cleveland sports.
20:25
lol, always var_duuuuuuuump :p — HamZa DzCyberDeV 20 secs ago
Well seeing as it's really quiet in here - are there any Nginx experts around? serverfault.com/questions/507750/…
Basically the example way of using Nginx with a front controller appears to make Nginx always process the request through the nginx config twice.
Please post more cat pictures in chat :) - cat.chat.stackoverflow.com.meowbify.com/transcript/11
20:42
@hakre Meh, I like the mustachify one better
@HamZaDzCyberDeV just solved 59 on euler ROTFLMAO
later people, I'll leave you with this news.google.com/nwshp?hl=en&tab=wn
@kaᵠ congratz :D
> what are the 3 most common passwords in the world?
20:50
@kaᵠ don;t know ...
@HamZaDzCyberDeV remember ? you told me about this one
@kaᵠ Yeah, but I didn't know about the "3 most common passwords" ...
god, sex, love (not necessary in that order :P)
wut
The Worst Passwords of 2012, including their current ranking and any changes from the 2011 list:

1. password (Unchanged)
 2, 123456 (Unchanged)
 3. 12345678 (Unchanged)
 4. abc123 (Up 1)
 5. qwerty (Down 1)
 6. monkey (Unchanged)
 7. letmein (Up 1)
 8. dragon (Up 2)
 9. 111111 (Up 3)
 10. baseball (Up 1)
 11. iloveyou (Up 2)
 12. trustno1 (Down 3)
 13. 1234567 (Down 6)
 14. sunshine (Up 1)
 15. master (Down 1)
 16. 123123 (Up 4)
 17. welcome (New)
 18. shadow (Up 1)
 19. ashley (Down 3)
 20. football (Up 5)
haha monkey ...
awesome one at #12
imdb.com/title/tt0113243 <- oldie but goodie "3 most common pws" quote is from this movie
20:57
@kaᵠ fun fact: I've seen some mobile phone numbers as passwords...
understandable, DoB is common too
#21 is new... hmm
ninja? really? who accepts pws less than 6 anyway?

« first day (941 days earlier)      last day (4233 days later) »