« first day (1178 days earlier)      last day (3996 days later) » 

22:00
What do I need to do to typehint a string?
Conclusion: Drop the typehint, it doesn't work for literals anyway.
or can't I?
Do I need to have Apache in my pc to install PHAR and then composer?
@Suhosin Even if you could typehint a string, what stops me from doing something like
$notAString = 42; $notAString = (string) $notAString;
@samyb8 you need to have php that supports (with the extension for) .phar, what does phpinfo() say?
22:00
Seriously o.O?
You can't typehint ints or strings?
Nope.
Because it's rather pointless
need help in htaccess!!!! ne1 ?
Can you typehint arrays?
Since you can freely cast between them.
Yes, arrays and objects.
@spyder hire a developer
22:01
and callable
@JoeWatkins there are sometimes people who just don't understand…
user924016
hehe
o cmoon
@spyder You need help with htaccess in Camden?
22:02
seems it supports it
@samyb8 you have ssh access then? if yes, get it here.. getcomposer.org/doc/00-intro.md#installation-nix
@MadaraUchiha is there any use for typehinting boolean?
morning all
@crypticツ Nope, same problem
$notBool = 42; $notBool = (bool) $notBool;
you can only typehint objects?
@reikyoushin Objects, arrays, and callable
22:06
@MadaraUchiha oh, right. ^_^
@reikyoushin ya that 1
@spyder Route all requests to a index.php file, that index.php file should take all requests through a router, which returns where each request go.
And now, I am off to bed, good night folks :)
@Danack i need help with htaccess in url routing
@MadaraUchiha bb!
@spyder If you ping people at random I will Trash all of your messages. Don't.
22:07
@MadaraUchiha got it! just cudn't get the right expression
@MadaraUchiha this is why we really need a String, Integer, Boolean classes...and throw in Array as well. =oP Or I'm speaking nonsense.
And with this last message, I'll finish for today:
@reikyoushin The host says they don't support SSH
@spyder i am not a fan of routing via htaccess.. i dont think it should be done that way anyway.. >.<
they support VPS
22:11
@samyb8 you've got a shared host?
ipage.com
@reikyoushin ok....how do we do it then?
php?
4 mins ago, by Madara Uchiha
@spyder Route all requests to a index.php file, that index.php file should take all requests through a router, which returns where each request go.
plus, you should apply for this regarding mvc =p
its just smthing m tryin...if its that bad maybe i'll apply ;)
Why today all people write about mvc...
22:14
@reikyoushin I cannot install composer without SSH access?
@samyb8 if you dont have ssh, you need to use composer and build the dependencies locally, then upload everything after..
If u don't have SSH access u don't have any access...
@reikyoushin I really doubt that he catched the joke
a host without ssh is, well, errr, i dunno. :P
@reikyoushin ok, then we are back to local :) do I need to have the whole Apache thing to install Composer locally?
22:16
@samyb8 you'll run php CLI on shell (cmd if you're on windows) so apache really doesn't have anything to do with it..
@samyb8 IT'S NOT INSTALLATION. You only get source and build locally. And then YOU RUN ON YOUR OWN CLI.
@reikyoushin also, I already understand, that I am not welcome in this chat room .. thank you fore reminding me
don't freight, I will be leaving soon
Who thinks it's good picture for logo of library? github.com/MaciejCzyzewski/__/blob/master/README.md
@tereško huh? you can't leave.. many people would be sad.
@tereško bb!
22:20
hm.. it's only me or is it indeed not too funny to joke on @tereško's MVC capability for such a long time ? Oo
@JoeWatkins @NikiC I just noticed that I can go to edit page, change the poll to closed and use the preview button. Then I still can see actual vote results. ^.^
@AlmaDo well, i will try my best to stop myself.. >.<
@ircmaxell hehe… we see, just works as it should. But don't say anything to Peter or Hannes^^
22:22
:-P
bye guys! gotta go home now..
@reikyoushin bb!
@Suhosin :p !!
22:25
@crypticツ is it just me, or backlog is ignoring the items that start with https:// ?
Hey guys. Say I have a function that "bans" users. Should I allow one instance of User to be passed to the ban function, or should I only allow arrays (or UserCollections)? Is creating an array with one User in it considered a violation of dependency injection if I do it in the ban function?
@tereško gc_collect_cycles() :P
Could use some help finding a dupe for stackoverflow.com/questions/20948309/… -- as far as I can tell, the closest one is linked in the question, but that's not quite exact enough to consider.
22:28
@Jeremy Pfft, just pass an array of ids and let the rest work itself out :)
how can I make the if part dinamyc
@tereško chat or API source?
@Charles That'd be a violation in itself... no?
user924016
Gooodnight guys and girls, have a good one
user924016
Happy coding
@crypticツ not sure
@tereško does it have ?chatroom in URL?
@Jeremy Probably but I'm also lazy. :)
@tereško the backlog URL you are at, does it have ?chatroom in it? If so, it's the chat source otherwise API source. The chat source uses Gordons backlog code which does not match HTTPS URLs, I suppose mainly because at the time there was no HTTPS support for SO.
22:33
no
I am using the one that has been pinned
@crypticツ just add s? to http in the regex ?
@tereško yeah the one that is pinned has both sources available to choose from, top right of page is the selection choices.
@EmilioGort, you have a made a huge mistake in choosing to randomly request help from someone.
See?
@HamZa going to be making a new chat scraper in the new release I'm working on right now. It will support HTTPS and also will fetch delv-pls posts which current one does not do either.
22:35
tl;dr your problem set is undefined as we don't know what dynamic means. If you posted that as a question on SO it'd get closed as too vague.
ok thankoyu very much
@EmilioGort small comment: unset() supports multiple parameters, so instead of using several unset, just use one unset($a, $b, $c['d']);
@crypticツ lol ... nice .. I had never noticed that one before
and now, since I am disappointed in myself, I can depart
@tereško lol
22:37
@tereško yeah the API (default) will grab the latest questions posted in the [php] tag which might need action done, the chatroom source will grab the cv-pls posted in chatroom. Best of both worlds.
@HamZa unset?? I thought just isset
@bwoebi hehe both :D
you're right
just looked up in parser file
22:39
@bwoebi parser file ? You mean the C file o_O ?
the bison file
@MaciejCzyżewski I installed Composer in my local pc... how should I run it so I can create the dependencies?
@bwoebi that's pretty hardcore lol
@HamZa well… that's faster than searching in between of a wall of text in the manual
22:40
@MaciejCzyżewski jeez, still? it was out this morning...
@bwoebi heh, well php.net/unset -> void unset ( mixed $var [, mixed $... ] )
@samyb8 php composer.phar <command> or composer <command>
for me this is way faster ...
@samyb8 for u command = install
@MaciejCzyżewski twitter.com/HNStatus
Yay filesystem corruption. Someone wasn't transaction-safe!
22:42
@HamZa I have the language tab… always open…
@bwoebi I've no idea what you're talking about ... You downloaded the source, so where can I find that Bison file ?
hehe
@MaciejCzyżewski micro opt o_O, meh I ain't making a script that's calculating pi() ...
22:45
:-^^
@MaciejCzyżewski that's compile time optimization… you don't notice that usually…
@MaciejCzyżewski thing is the composer file the library brings is .json
can I just change it to .phar?
Getting this: "Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package lusitanian/oauth 1.0.0 could not be found.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details."
Ahahaha holy crap do I really need to wrap every single method of mysqli that returns a mysqli_stmt in order to subclass mysqli_stmt? Remind me again what the advantage of mysqli is over PDO?
23:02
@Charles <sarcasm>at first glance I'd say the achronym sounds better </sarcasm>
@Charles How many methods do you think that is? Prepare and.....?
Hey everybody!

Does anyone know if it is possible to create a paypal button, with out using the actual button? By this I mean is it possible to grab what the button does and just use that for another button?
@TyreeBrown like using a div with a stackOverflow icon as a paypal button?
@TyreeBrown i'm not sure what you mean
23:17
@samyb8 see packagist.org/packages/lusitanian/oauth you are probably not putting in the correct require value. You probably want "lusitanian/oauth": "1.0.*@dev"
@TyreeBrown if "grab what the button does" means submitting values to the paypal api && "use that for another button" means something that doesn't look like a paypal button... I would bind the click event on that "other button" to "submit those same values to paypal"... anything like that?
@TyreeBrown /* might as well finish the conditional response */ else i don't understand the question
@FernandoSilva : I believe you just answered my question. Im gonna try to create a paypal subscription button, then paste the given code to the button I would like to use.
@TyreeBrown i was honestly trying to give you an answer, dont get me wrong... i just wasn't sure i was understanding what was being asked
@TyreeBrown glad i was of assistance^^
@Danack And query but there are handful of other mixed returns that I haven't audited yet. Still, it's silly.
@TyreeBrown btw you can only "paste" the code if it's on the onclick attribute otherwise u need to bind the click event
23:26
@Charles query returns a result - php.net/manual/en/mysqli.query.php
ffs
have I also mentioned that I hate the statement / result split? 'cause I do.
user895378
var_dump(extension_loaded('Zend OPcache')); // bool(true)
user895378
I find myself wondering WTF the zo+ extension is named so strangely. Do any other extensions use a space and impossible-to-remember capitalization like that?
@TyreeBrown if you go for jQuery take a peek at this one api.jquery.com/on
@FernandoSilva Oh, alright. I just tried tried to paste it and took my button away.
23:28
@Charles I've never had a problem - I use prepared statements pretty much everywhere, so have never needed to use the mysqli results.
@TyreeBrown did you read back on what i was saying?
@FernandoSilva Yea just now.
Good bye all!
@TyreeBrown ok, i think the jqeury on() will help you out a bit...
@rdlowrey OPcache is a port/assimilation of Zend Opcache - presumably they did that to allow people checking for "zend opcache" to use the integrated version without chaning any code.
Same as joe's APCU extension also says extension_loaded('apc') == true
as well as extension_loaded('apcu')
user895378
23:30
Yes, but Joe's extension isn't named "JoeWATkins APcu"
Open an issue? "Please rename to 'Joe Watkins totally awesome cache library'"
@TyreeBrown would be something like $("#newButtonId").on( "click", function() { //do something here });
user895378
@Danack I might do this :)
@TyreeBrown wife is calling... i'll be back in a while
@FernandoSilva I hope so HAHA, Doest it matter that I am using a wordpress theme? Because when I bring up the custom button options, I only have the option to change the URL of the button.
23:32
Who would star a jQuery example?
Probably Tyree.
user895378
Issue: "Repo name should better reflect functionality. Please change to ZOMG Awesomeness PHP Caching for Users"
user895378
ZAPCU
@cspray Me! So I dont have to go and look for the response again lol
user895378
@TyreeBrown That's not how stars work ...
user895378
23:33
That's what browser bookmarks are for.
@TyreeBrown Stars are not your personal bookmarking system
> Awarded 0 times
Hahahahaha
user895378
@LeviMorrison lol I know exactly what you're laughing about.
Yea, that was some good stuff
user895378
Didn't even have to click the arrow.
23:34
@cspray Oh my apologies, I'm still new this.
@rdlowrey Also - it's also not a standard extension. It's a zend_extension, whatever the eff that is.
Definitely helped cheer up an otherwise dreary day
@TyreeBrown No prob :P
night..
user895378
@AlmaDo later
Woke up this morning to 50 degrees and raining and will go to bed with it 10 degrees and snowing
23:35
@cspray 50 degrees? That's even hotter than Australia!
@Danack pfft, fahrenheit
I'm a 'Murican remember
SI ftw.
Yea, I agree actually
@cspray Do you also work with miles instead of km ?
But 30~ years of American is a hard habit to break
23:36
@HamZa Only the US military (and nasa 90% of the time) use KM.
@HamZa I haven't dealt with KM since I was a kid in Germany :P
user895378
The best part about our country's insistence on using the English Standard measurements is it means people neither understand metric units nor the other ones because no one has a clue what measurements like "bushel" or "quart" actually mean.
I remember one collegue told me a story: He got a new bike, he was riding on it one day and he was feeling that it was too fast although the speedometer was on 80. After a while he realised that it was 80 miles/h instead of km/h xD
user895378
I qualitatively understand what gallons, miles and Fahrenheit degrees mean. With any other 'murrican measurements I have no clue.
@rdlowrey Yea, pretty much
user895378
23:41
A barrel is one of several units of volume applied in various contexts; there are dry barrels, fluid barrels (such as the UK beer barrel and US beer barrel), oil barrels and so on. For historical reasons the volumes of some barrel units are roughly double the volumes of others; volumes in in common usage range from about to . In many connections the term "drum" is used almost interchangeably with "barrel". Since medieval times the term barrel as a unit of measure has had various meanings throughout Europe, ranging from about 100 litres to 1000 litres, or more in special cases. The name ...
user895378
^^ I mean ... seriously? WTF is that?
@rdlowrey I would mock you and your country, but the UK has settled on using both metric and Imperial for different things, because of reasons.
user895378
Yeah, none of it makes any sense.
We still measure horses in 'hands'.
@rdlowrey I discovered the same issue applies to shot glasses. Was making a drink the other day which called for x amount of shots and wanted to know oz in a shot. Turns out it's different everywhere, but apparently the US is in the higher oz range...figures =oP
23:46
Ordering beer in Australia also requires a conversion factor handbook.
user895378
@Danack Also known as a "sobriety test"
@Danack I hereby will now refer to 140 ml (5 fl oz) as a pony =o)
user895378
I prefer the bobbie ... A shetland is just never enough.
115 ml (4 fl oz) - small beer, why even bother? =oP
I was going to say that about 140ml
In fact I'm generally not on board with anything less than 568ml
(for beer, anyway)
user895378
23:51
I like my beer like I like my bytes: in increments of 1024.
@crypticツ You can figure out why they use those small glasses, Here's a hint - the smaller glasses are more popular in the north of Australia where it's a warmer.
user895378
Someone should make programming themed beer.
user895378
Kilobeer.
user895378
ByteBrau
@Danack Yeh but you would never leave the bar. I can drink 140ml in one mouthful (I just checked)
user895378
23:53
var_dump($chris->validateConsumption($pony)); // bool(true)
@rdlowrey You can just go out and buy a ruby ale. And there's cobra beer, I'm sure someone somewhere makes a rip-off called python
user895378
user895378
Winner!
user895378
Now someone just needs to convince Carlsberg to sponsor a PHP conference.
user895378
Then we'd really have something.
23:55
Yes, a conference with shit beer (at least, that's what it would be if it happened in the UK)
You would not believe the piss they serve as "beer" here
Oh wait, you're American, you would believe it
It's still awful though
ThW
ThW
lol
<- German
The "brewed in the UK under license" stuff is
Real British beer can be good
@ThW shakes fist in jealous rage
brand fail
apparently that's what America has to offer as our finest
ThW
ThW
@DaveRandom I like the Irish stuff like a Smithwick's
@crypticツ Excellent! I shall order a case.
user895378
23:59
@crypticツ That's about the quality of work I would expect from all the people I've ever met who majored in Marketing.

« first day (1178 days earlier)      last day (3996 days later) »