« first day (672 days earlier)      last day (4501 days later) » 
00:00 - 18:0018:00 - 00:00

18:02
Hello buddies
Anybody has an advice for decent eReader?
Kindle? :-)
@ShaquinTrifonoff ))))))
A like seeing a shelf full of books, I believe I'll be still buying paper variants just to put it on shelf :D
|||||/////,,,,______
18:08
@hookman you mean like a standalone device or an application for desktop computer ?
@tereško I mean a device
then i dont have an opinion
@hookman I've read a review before with about 6 devices, but I can't remember which was best...
0
Q: PHP views relate controllers

NichI would like to implement controllers that connect to any specific views like MVC do. I'm not using any framework that provided in PHP. So,I need some guide and advice on doing it. I have some controllers and views. For my views,i would like to just output my data only. My concern now is how m...

could anyone take this .. i need a nap
anyone ?
@tereško I'll have a look...
18:18
@ShaquinTrifonoff I can't get what he want's to achieve :\ newModel...
@hookman Neither can I. He did want to find if GET or POST was used, though.
@ShaquinTrifonoff get all the $_POST params into an object
@hookman I'm not terribly good with Objects and OOP etc.
18:34
Q: "I'm trying to retrieve information from database with submit buttons..." - Cool, huh? #Stackoverflow
I have a mocking problem
with PHPUnit, the mocked method will receive an object as an argument
I want to make assertions on this object
the only way I could find so far is to use will to capture the argument
does anyone know of a better way to do this?
@PeeHaa why did you posting another user question?
Does anyone know how to debug Pear installs? I installed Phpdoc via PEAR but whenever I try to run the command all I get is status: 500 internal server error content-type: text/html
@Zigu Check your error log.
cross validation?
19:39
@igorw Not sure I understand your issue
@igorw Can't you just pass whatever assertion you need to with()?
19:51
@NikiC here's an example of my current approach: gist.github.com/3389339
maybe there is a way to check argument's members, method calls, etc. without creating my own constraints
or maybe I'm just doing it wrong
hm, i see what you mean
(though I don't get your particular test code ^^)
the sinon js mocking library solves this by using "spies"
a spy being a function that captures any calls made to it
phpunit also has logical combinators for with (e.g $this->logicalAnd()) though probably you can't make anything complicated with it
this allows you to create the spy, pass it into your calls, and then check the arguments of the calls that were made to it
@igorw But you can do the same with $this->will($this->returnCallback( right? Just like you did? Only I would move the assertions into the closure
19:59
yes, that's the other possibility, both approaches are equally ugly imo
and this really isn't what returnCallback is made for
it's suddenly mixing the generation of the return value with assertions
too bad all those germans who actually know something about PHPUnit are drinking right now
Btw, there is a callback constraint too, but I don't think it applies here
because that's just for true/false, not for assertions
@hakra @PeeHaa Super::$tatic is gaining traction: bugs.php.net/bug.php?id=62860
@NikiC Not enough jQuery... @webarto
I mean, just look at that term: "self-loading configuration registry singletons"
@NikiC Eh... I hope this is just a joke.
No, it isn't ;)
That guy is completely serious
Obviously the best suggestion is at the end (easy to miss): __getConst(). So he can avoid the $!
20:11
@NikiC I see the guy being serious, but I don't see the reason behind it. Why should a static class have a constructor if the static class is a type of animal which is not "constructed"?
Yeah, it's just incredible
@NikiC Which would be good in PHP is that child->__construct() automatically calling parent::__construct() unless otherwise noted. Not in the way it happens now that I have to explicitly call the parent constructor.
@NikiC lol
> The particular use case I have for this is self-loading configuration registry singletons
priceless
@Whisperity It's not possible in PHP because it doesn't have function overloading and as such doesn't have a concept of a "default constructor"
Also, how could something be self-loading if you explicitly have to load it.
function __constructStatic($property)
{
    static::$settings = parse_ini_file('config.ini');
}
What is that $property doing there? Why do we overwrite self::$settings with the output array of parse_ini_file(). Even if this is an example, it seems to be biased for me...
function __constructStatic($file)
{
    array_merge(self::$settings, parse_ini_file($file));
}
20:20
@Whisperity You're misunderstand it ;) __constructStatic is called once immediately when the class is defined. It is roughly equivalent of writing it as normal code under the class definition
@NikiC Oh. This is the proposed new feature. Still it's obstructed.
@PeeHaa "self-loading configuration registry singletons" --- is there a way to cram more awful into one phrase?
@Lusitanian self-loading global non-sanitized configuration registry singleton without jquery
more like
@Whisperity with*out* jquery?!?!
20:22
codeigniter-based self-loading global non-sanitized configuration registry singleton with jquery and cakephp components
@NikiC Blasphemy. I know right.
@NikiC I like how that person wrote "moar" instead of "more"
20:36
codeigniter-based self-loading global non-sanitized configuration registry singleton with jquery and cakephp components factorybuilding factory
@Lusitanian It's you who likes saying 'moar jQuery', isn't it? :-)
16:47 - The Doctor, Elec: heh
16:47 - The Doctor, Elec: me just thinking
16:47 - The Doctor, Elec: should I do the Genesis Project
16:47 - The Doctor, Elec: Inside JAva
16:47 - The Doctor, Elec: or inside C++
16:47 - The Doctor, Elec: At one point, C++ fastest language except ASM
16:47 - The Doctor, Elec: At the other point
16:47 - The Doctor, Elec: Java runable on everything
16:47 - The Doctor, Elec: everywhere
16:48 - Super::$tatic superior scope: what is genesis project in the first place?
16:48 - The Doctor, Elec: Me and a friend of mine created 3 Theories
19:26 - The Doctor, Elec: which saves all static data
19:26 - The Doctor, Elec: like maps
19:26 - The Doctor, Elec: entities
19:26 - The Doctor, Elec: character datas
19:26 - The Doctor, Elec: etc.
19:26 - Super::$tatic superior scope: heh
19:26 - Super::$tatic superior scope: why don't we save everything everywhere
19:26 - Super::$tatic superior scope: distributed is the new centralized :)
19:26 - The Doctor, Elec: cuz you cannot distribute static game data
19:26 - The Doctor, Elec: when one PC is not online
> why save the internal quantum mechanics of a cookie when 99,9% of the players will only need the reaction of their body with the cookie
@KoenGeeraert FactoryFactoryRecursiveIteratorIterator
we must go deeper.
20:56
Hey guys I want some help...I am using codeigniter.I can successfully download a file but after download I am not able to redirect to a particular controller.
function game_file($filename)
{
$file_path = base_url()."resources/games_application/$filename";
header('Content-Type: application/octet-stream');
header("Content-Disposition: attachment; filename=$filename");
ob_clean();
flush();
readfile($file_path);
redirect('downloads');
}
please help me on this
2 days ago, by SomeKittens
codeigniter advice: Don't use codeigniter
You can't send a redirect header after you've sent content.
@RakeshShetty
sorry ,I didn't get you ?
I am new to codeigniter
@RakeshShetty Depending on what redirect() does (I guess header("Location: something")) you can't redirect after a content is already sent.
@RakeshShetty It's basic PHP. header() outputs must always prepend live content (that's why it is called a header). This might be done in making the calls before any output or using ob_.
So there must be a solution for it ?
@ShaquinTrifonoff @Whisperity
21:00
Open a download in a new tab.
@RakeshShetty
@RakeshShetty Yes, there must be a solution for everything. Open the download in a new tab with a pure page or don't redirect.
@Whisperity what do you advice to use instead of CI, I've been looking at CI and was actually adviced towards using CI
@KoenGeeraert I don't?
oh, I see now you quoted somebody else, my bad
 
1 hour later…
22:16
If anyone has ever setup a site that can embed its videos to facebook newsfeed, can you please message me via skype at karaliusdrb or let me know here? I've made videos stream on my site but they won't show up in facebook. Don't know if it's my player or how it's setup, and would like to know the basics/fundamentals, not the coding, just the programs I would need to correctly show videos and have them embedabble.
22:41
Are deleted questions completely invisible, or am I just going mad - I'm sure (and responded to) this same question from this same user earlier: stackoverflow.com/questions/12022712/…
ah, found it in my history: stackoverflow.com/questions/12020742/…
"This question was voluntarily removed by its author" - hm...
Anyone using SeChatModifications.user.js here?
23:42
no
23:56
@Lusitanian I'm almost sure @tereško uses this userscript :)
He finds his quotes too damn fast
lol
i just ate a 1000 ish calorie mcmeal and am now tempted to hibernate
00:00 - 18:0018:00 - 00:00

« first day (672 days earlier)      last day (4501 days later) »