« first day (1398 days earlier)      last day (3775 days later) » 

12:04
Hello everyone
I am installing cakephp on go daddy and i am using Ultimate Windows Hosting with Plesk i have installed cakephp and i have setup the database connetion and i have also chnges the .htaccess file code but i am getting 500 internal server errror please suggest me what i have to do
Holy crap, that's a huge array of fail right there
2
Bitwise not on a value fetched from database is a bad idea, at least without doing an (int) cast on it before…
@DaveRandom LOL
@DaveRandom :D
@bwoebi Stop using MySQL
Although yeh, bitwise ops when you aren't 100% certain of the type, which you can only really be if you explicitly cast it, are also a bad plan
12:14
@DaveRandom Exactly what I was thinking :o
@DaveRandom actually, it'd be enough if mysql_fetch_* functions would return an integer if it's also integer type in db.
TOMORROW Friday 15th August 2014 at 20:00 UTC - Room 11 Online Hangout. Be there.
@DaveRandom please replace this with the current pinned message
Also, could you schedule an event? I'm not a room owner so can't.
@bwoebi Hey, fixing the Rasmus optimisation with new operator ... would that be an easy thing to do?
Or @PeeHaa ^
12:23
I love abstract classes ;-)
@RonniSkansing can u help me in cakephp
@SecondRikudo Where's the actual thing being held? We doing skype / hangout? I remember someone pointing out flaws in both those
@Jack it's not really an abstract ...
@Jimbo Hangouts
Skype is discontinued in both Android and Linux
That kind of killed the option of Skype.
@bwoebi Yeh, MySQL is more or less the only driver that exhibits that behaviour
12:25
@SecondRikudo Wait, skype is discontinued on linux??
that's not true
but they changed their proto, so old clients (I was running 2.1 until this week) won't work
Why would it be discontinued on Android ... is it because of Microsoft? :)
12:27
So I was forced to install new (crappy) 4.3
@AlmaDo can you help in cakephp
$10 the hangout turns in to a G+ version of this room as no one wants to go on cam :P
@Fabien No cam needed. Just mic.
user924016
@akhilesh depeands on what the problem is / do you have pastie/pastebin
@Feeds From hours to hours? 'cos I wanna save some liquid for the pissup :P
ohnvm.
12:28
Oh, my bad.
@RonniSkansing please see this link stackoverflow.com/questions/25307895/…
It's just the version of skype that gets deprecated.
Linux is still supported.
I saw it after, it's "after the fold"
@SecondRikudo btw, still no ads under Linux (suppose they don't know how to do it :D )
@akhilesh cakephp is one of the worst PHP frameworks
@akhilesh windows-based hosting is the worst possible way to publish PHP applications
12:33
@Danack for newables? Seems like a smell :P
@tereško but i have developed the website in cakephp on my local server so i have to upload it on live server
@DaveRandom yeah, then it's the drivers failure, not the databses failure.
@Ocramius I still have no idea what you mean by newables ;-)
@JoeWatkins looks like a wrapper around mb_* functions?
no, icu
12:35
icu, u don't c me?
@tereško please suggest me what i have to do now so that my website will be run on my godaddy windows hosting server
@JoeWatkins and why does that need to be at extension-level? (and not userland)
@Fabien pff. I'll turn my cam on just to win those $10 xD
Wouldn't that make it a cam show?
@RonniSkansing how my website will run on my godaady server
I... I guess it would. grin
See how this reporter continues to calmly report how a giant spider is terrorizing the city.
@JoeWatkins hmm, does it do array subscripting? :D
@Ocramius If you know the exact concrete class and so you can know what params it takes, then sure just use new. If you aren't sure what the class is going to be, then you really have a dependency on something that knows how to make it. Yeah, it'd be better to pass in a real factory...but the DIC will be involved somewhere along the line.
@SecondRikudo Can you post the follow up of the female anchors reaction in the newsroom?
php > print ~false;
PHP Fatal error:  Unsupported operand types in php shell code on line 1
12:38
Oh wait, I was thinking of this:
Oh, really, PHP?!
haha
@bwoebi did you expect -1?
jup.
too bad!
php > print false | true;
1
12:40
@JoeWatkins Does it overload the concat operator?
^ this works, but not with ~.
heehee .. welcome to the land of arbitrary decisions.
@Jack can
@Jack looks more like the IS_BOOL just was forgotten.
@DaveRandom could
12:41
How can I convince someone on my team that global state is bad? He's saying "It's not all about tests, if it works it works". I could only say global state eventually becomes unwieldy, couples everything to this stuff, especially if you have more than one person on it. Then I went into laravel's facades and explained how bad practice they were. All I got back was "well I like them, go and tweet the writer of laravel and see what he says"....
What is an abstract class/
@bwoebi because libicu is C++ :s
or c
@bwoebi yeah, but at the same time ... $a =false; ++$a; doesn't throw a fatal =S
@JoeWatkins I mean, any advantage over using mb_* in userland?
@bwoebi other then that you don't have to use mb_? :)
12:42
uniformity ....I've experienced needing at least mb and intl, and I read someone else needed three extensions for good support ...
silly ...
@Jack especially in binary bitwise ops, juts the general cast-to-long function is used, but just not in bitwise not (unary).
@JoeWatkins three? what's missing in mb_*?
Sanity?
I can't rmember off the top of my head why there was the intl requirement, just remember it existing, deep in the bowels of something as this stuff always is ...
Intl has a bunch of support for various normalisations (STRINGPREP routines etc)
mb_* only really deals with ensuring character boundaries are respected
Easiest upgrade path/method for php 5.3.3 to php stable?
Wondering if it'll nicely overwrite itself or I should take some precautions
12:46
@JoeWatkins Did you mean Patchwork-UTF-8?
iconv + intl + mbstring ... \o/
yum remove php-common <--- Seems to be recommended. Seems like a fairly okay method. After that just install php repo + php I guess.
@Fabien Go through this list and look for usages of any of those things in the codebase
Then install 5.4 and see what (if anything) breaks - if you audited that list properly it should be nothing
Then you should be able to go from 5.4 to 5.5 or 5.6 with no issues really
@DaveRandom Shouldn't any/many compatibility errors. There's only really 1 script running here. Just wanted to see if there's anything I should to to prevent conflicts with upgrading from a server level.
If there's only one script, there's nothing to worry about. I'd be very surprised if anything actually relies on PHP except your PHP scripts
user924016
@akhilesh that is not really a cakePHP problem. Either your .htaccess is faulty or godaddy specific issue (and if such, have you read their faqs or contacted their support)?
12:51
but... a whole server just for running one script??
@JoeWatkins Just took a random function, doesn't seem that ->replace() is binary safe?
do_all_the_things.php
You can't do all the things!
I dunno why, I like the fuzzy feeling I get when I see "binary safe"
12:53
no I mean why isn't it binary safe ?
The omnipotence paradox is a family of semantic paradoxes which address two general issues and three specific issues: Is an omnipotent entity logically possible? and What do we mean by 'omnipotence'?; and What do we mean by 'power'?, What do we mean by 'logic'?, and What is the relation between power and logic?. The omnipotence paradox states that: If a being can perform any action, then it should be able to create a task which this being is unable to perform; hence, this being cannot perform all actions. Yet, on the other hand, if this being cannot create a task that it is unable to perform, then...
oh UnicodeString ctors ...
@JoeWatkins Well, normally Z_STRVAL_P() and Z_STRLEN_P() go together :)
Also, trim() doesn't have an option of what to trim.
I don't actually know that findAndReplace is tbh
@DaveRandom Script being more like a tiny app. The server is one of the elasticsearch instances. So it holds a lot of that stuff.
12:55
@Jack library impl
I don't care! =p
bit strange tho yeah ...
yeah there's a binsafe findAndReplace ...
UnicodeString& icu::UnicodeString::findAndReplace	(	int32_t 	start,
int32_t 	length,
const UnicodeString & 	oldText,
int32_t 	oldStart,
int32_t 	oldLength,
const UnicodeString & 	newText,
int32_t 	newStart,
int32_t 	newLength
)
/me eats lunch ... nom nom nom ...
@RonniSkansing i am using the .htaccess by following this url book.cakephp.org/2.0/en/installation/url-rewriting.html and this is document given by cakephp itself so i don't think there should be any kind of problem in .htaccess file but it may be reason of my windows based godaddy server
@JoeWatkins woohoo, awesome!
It can even do search and replace within a section of the string .. cool
@JoeWatkins Is that PHP 6? :)
13:04
@PeeHaa It's PHP6.revival
user924016
@akhilesh it might, have you checked if godaddy has any answers, faq, support ?
@AlmaDo haha Jan Dvorak proclaimed me the devil today in the Tavern
cause I was trying to convince him of that
and some other things related to religion
great. But it's something about Fixed-point Combinator (and it's specific case, Y-Combinator)
so
(:
particle size distribution?
13:11
Ah, the Y(mca)
Curry's paradox (and case of "omnipotence paradox"). No matter how strange that sound :p
the impotence paradox :)
it's not a paradox. It's a.. fail (:
heh
So, jfyi, turns out that the PHP Storm indexing service can't detect recursive symlinks, and neither can it detect when the index files are going to overflow the available space on the project volume
13:15
but Y-combinator actually isn't some "abstract" thing, it may be used in CS :p
@DaveRandom storm needs space, got it :)
@Jack It run out of space, exploded with an uncaught IO exception, checked the project .idea dir, 17.9GB :-S
It had just been indexing the project for about 7 hrs straight
@DaveRandom seems legit heh
13:18
But project subdir has a symlink ref to the root, apparently it can't detect that
Haha, reminds me of vacation responder thingy you've encountered.
oh yes
@webarto weren't you working in Amsterdam
Yes, very similar issue
@ziGi Unlikely. For one thing, @webarto doesn't do any work.
1 hour ago, by webarto
I'm fat and drunk and doing nothing.
ahahaha
ahaha
13:21
Hi Every one .
hi
@ziGi No, currently in Vienna, "working" for US and A.
user924016
@webarto if you like a game once in a while and waiting for the next season of sp, I can recommend the "South Park: Stick of truth" title
@webarto isn't it spelled USA
@RonniSkansing Ah, Ubisoft, they wanted me :P Thanks, looks fun :)
13:23
oh, forgot you are Borat
is php event driven language ?
It's drama driven language.
php is kitten-driven language
Although Kazakhstan glorious country, it have a problem too - economic, social and jew. This way ministry of information have decided to send me to US and A, greatest country in the world
user924016
@webarto it some hybrid between a interactive season of south park, ff, elder scrolls and diablo..
user924016
13:24
not like the old previous shit 3d one ;)
@AziBaloch PHP can be it all
> economic, social and jew
Um... Did I read that correctly?
@DanLugg He quoted.
Ne'er mind then
@DanLugg They lay eggs you know.
13:29
@DanLugg haven't you seen Borat?
@RonniSkansing Damn you, I had work motivation aaaaaaaaaand it's gone.
@ziGi Apparently not, actually.
user924016
@webarto lol
13:33
@webarto work motivation? You're betraying our slackers club with that
> Uhhuh, uhhuh, that's whatever you were talking about for ya
lol
@JoeWatkins I went forth and conquered, and now I need a liver.
lol
@ziGi Please don't post things like that anywhere on the internet. It doesn't matter if you are quoting someone else, it's extremely open to misinterpretation and it's not acceptable from anyone, anywhere, in any context.
Hello, I need to learn a logic.
<? while($chanelrow = mysqli_fetch_array($result)){
echo "<div>.$chanelrow['name'].</div>"; }
my question is if i want to insert </br> on every after 3 div then how to do it? as a bengener your help will helped me a lot.
13:46
@DaveRandom so how come Sasha Baron Cohen can do it?
@DaveRandom lol
He is English of Jewish descent himself
a) He is doing it in a context where the people exposed to it have elected to be exposed to it b) He is Jewish c) I'm not a fan of his anyway, precisely because of things like that
@oyshee extra variable = 1, ++ in loop, if $var == 3 echo <br/> (in short)
I'm a fan of his
13:49
haha me too
@Naruto Will you please edit the code and submit here. it will helped me a lot.
@ziGi Feel free to make a Borat: Glorious Language Of Glorious Programming room then.
wtf is "borat" ?

Borat

Glorious Language Of Glorious Programming
Family Guy is the best.
13:54
Good morning
mornin
Morning.
.morninG
Howdy amigos.
13:56
Hola
Good morning bad eveninG
I'm thinking of submitting a CFP for true north PHP. Would anyone be interested in something like "how to start using things now even if you don't have experience doing it" ?
Since PHP is so closely knit with dumping HTML over the wire (historically) why is there no sane way to format HTML through a built-in? On record: Tidy is terrible, and the DOMDocument::saveXML() is unreliable.
@DanLugg because in PHP the classic historical approach is to treat HTML as a string and not as a structured representation.
13:59
@BenjaminGruenbaum Fair, however out of the mere frequency of interaction with it (reading and writing) it seems it should have naturally taken a first-class seat alongside other built-in functionality; the ability to manipulate it, that is.
@DanLugg I think most of it is because most HTML that is dumped is actually not well formatted. Browsers will actually "fix" your errors, for example, if you put <p><div /> foo </p> your browser might render that as: <p></p><div></div> foo
Of course, there's nothing natural about PHP.
If you're willing to do that, use something that will not simply tidy, but re-structure it.
I'm not concerned about malformed HTML, I'm just talking about dumping the DOM in a more human-readable form.
try and echo it out, then use chrome and right-click-> inspect element to see what I mean.
14:00
@DanLugg PHP attempts to abstract stuff like 'tree structure' from developers.
@DanLugg That's what I'm telling you. The DOM isn't the DOM until you've parsed the thing and it is "corrected". DOM !== "html string".
You don't need to actually understand data structures of programming very well in order to build a personal dynamic web site - that's PHP's elevator pitch.
@BenjaminGruenbaum The same way that the real world is abstracted by parents through early bed-times?
@BenjaminGruenbaum Yea, I know. PHP has a shitty elevator... ffs.
@Incognito Yea, I know that. But even the DOM implementation sucks knob (for dumping back to string, at least)
@DanLugg If you view it in dev tools front-end-side it won't be the same as what you sent for the average case of every website you visit.
@DanLugg actually, PHP is quite good at what it does
14:02
@Incognito Yea, that's fine. But I don't care about dev-tools. I'm working in PHP.
It's a shitty programming language and a very erm.. challenging ecosystem but it has always been very good at its premise.
@DanLugg Do you mean the PHP ca2.php.net/dom or the concept of the DOM api?
@BenjaminGruenbaum Simple, and first-time-user friendly, yadda yadda. I know.
user924016
@BenjaminGruenbaum tell me 5 things you love about php.. =]
1)It's easy
14:03
In the world of artistic mediums, PHP is the box of crayons.
php is not easy
T_PAAMAYIM_NEKUDOTAYIM
user924016
oh you guys make me sad =/
it has an error in Hebrew but not in Bulgarian
@RonniSkansing it's cheap to find developers for, it's cheap to host, big ecosystem, db drivers are bundled with it, and it's easy to build small stuff with
14:05
I don't think I'm alone here, and even I have been on both sides of the fence, but whenever I hear someone defending PHP's "simplicity" or "vision" (myself included) I just want to say something to the effect of: No, I think we just need to admit that there's a lot of shit that PHP dropped the ball on. It sucks, and is missing things.
user924016
@BenjaminGruenbaum =] thanks
Hey @AlmaDo at which university do you study
posted on August 14, 2014 by kbironneau

/* by Ras Thomas */

@Utkarsh yay.. golden times.. my university study. I wish I'll do that again..
but it was so long ago..
@DanLugg oh of course, I hate php as a language it's terrible.
PHP truly sucks, I would not consider it for my next web project.
14:07
@ziGi Issue a bug report: Not enough internationalized error messages.
@Utkarsh php.net probably, depends on what you want to do.
@DanLugg not really
@DanLugg PHP could just use the webkit DOM, but I think they're doing their own thing because "who knows". Webkit DOM is great at doing DOM: webkit.org/projects/dom/index.html
there has been a long discussion about this
I have read many articles
I think everything should be in English
^^ Yes, I was joking.
14:07
otherwise it becomes a meal with grapes in it
and php.net
Well, I better get out my pen... List of things PHP can do: deal with HTML sanely.
user2620028
Hey guys how do you add an element to an associate php array?
ThW
ThW
@AaronSiciliano set the key
ThW
ThW
@DanLugg "and the DOMDocument::saveXML() is unreliable." - how?
@ThW Because it doesn't pretty-print properly. I should have said "is fucked" instead of the more benign sounding "is unreliable"
ThW
ThW
@DanLugg Actually that is a BC, some browsers had problems with whitespaces
@ziGi If you're so homesick, no one stops you to return from land of flowers.
ThW
ThW
So by default libxml tries to keep formating that would screw that up
14:17
An optional $options map parameter/property wouldn't fix?
$dom->setOptions([DOM_DONT_BE_STUPID => true])
@PeeHaa Did you say you worked with elasticsearch?
@webarto I am not homesick, actually I hate most of the people living in my country because 80-90% have no critical thinking
I get it, but I don't think we need to support Netscape Navigator 3.1 anymore.
I code-reviewed
0
A: Login function in PHP

ircmaxellOk, let's go through this line by line, and talk about it: Class User { private $db; public function __construct($db) { $this->db = $db; } public function Login($user_email, $user_pass, $remember = false) { $user_pass = sha1($user_pass); OK, let's stop...

@ircmaxell isn't it just easier to ask users to submit blood samples?
user2620028
14:23
@incognito I have read through that many times and it does not come close to answering the questions i have about associative arrays.
@EmergencyPuppy, San Francisco, CA
Just pics of cute animals, but who am I kidding, I find these pics on reddit and post them here. We dont post any ads, so that's nice. [email protected]
784 tweets, 332k followers, following 0 users
@ircmaxell Great stuff, I like to see you're still pushing at making this stuff easy for devs.
@AaronSiciliano Then I don't know what you're asking. Post a question with more details about what you have and what you want it to look like.
@ircmaxell well written
user2620028
I am asking guys what is the syntax for adding a new element to an already constructed php associative array.

Lets say we have

$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
user2620028
I understand that php array class is non mutable but if it had another empty index after this one how would you add an element to fill that index
14:26
@AaronSiciliano what have you tried
@AaronSiciliano and where did you read that it's not mutable... because that's very much not true
user2620028
@iircmaxell was working on it last night all ended up in a jumble.... not really sure where i read that but i figured that when they said that they meant that the methods like push just returned a new array copied over
@SecondRikudo What is this, exactly?
user2620028
Either way I searched SO and google last night and i could not find a straight answer. I tried

$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
$age=array("Peter"=>"45","Ben"=>"47","Joe"=>"53");
user2620028
@Patrick Yes i have read that over many times.
14:30
@AaronSiciliano so how did you come to the conclusion that it's not mutable?
@AaronSiciliano This is incorrect.
Push modifies the array you pass it.
@AaronSiciliano then read the heading titled Creating/modifying with square bracket syntax
user2620028
@Patrick I do not remember where i read last night that said it was not mutable. I just took it with a grain of salt and figured it worked like the java array object
user2620028
@ircmaxell Yeah i read that and it confused me even more. How can you add an element while skipping the rest of the named keys for that element.
user2620028
Does it just null the rest of the named keys out for that element?
14:33
no
it adds a new named key
just like a hash table
user2620028
So each named key has its own index?
Well the name is his key? :)
Fak damnit. Look what I just found in a codebase I have to work on:
				@fputs($fp, "POST {$_path} HTTP/1.1\r\n");
 				@fputs($fp, "Host: {$_host}\r\n");
 				@fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
 				@fputs($fp, "Content-length: ".strlen($_query)."\r\n");
 				@fputs($fp, "Connection: close\r\n\r\n");
 				@fputs($fp, "{$_query}\r\n");
@AaronSiciliano What is an index? Why is it distinct from a key?
@PeeHaa My condolences :D
14:38
@PeeHaa "la la la la la"fputs
$a[] = [&$a[]];
@PeeHaa Golly gee, that looks terrible spectacular.
And it even goes on...
@preg_match_all("/HTTP\/\d+\.\d+ (\d+)/",$retdata,$matches);
user2620028
@Incognito I guess i don't entirely understand how a key works in php hash map so i can't really answer that question
I take it you're using a fork called @PHP?
"Write your own HTTP client in 50 lines of code!"
14:40
@PeeHaa I haven't seen fputs in a long long time... the @ sign is like... wow, that's some eldritch level stink.
@NikiC unless it's HTTP2, in which case 50000 lines of code!
@AaronSiciliano You basically have an 'array' in the traditional programming concept which is a list of things like numbers or chars. In PHP an arrays can actually be a hash map, a hash map is basically a set of key-value pairs, not a list. You just have a big bucket of key values, and you can change the value of any specifc key or add to it or remove it or whatever.
hey, @ircmaxell , what do you know about setting up a network within a company ? (routers, access points, stuff)
user2620028
@Incognito So essentially a key in a hash map is its own array and you can add to it or call its listed variables by key name. But they keys themsleves are not associated to each other in a 1:1 ratio
The doc page explains it all in extreme details.
14:42
@tereško ummm... what's the question. I've done it before on a medium scale...
@AaronSiciliano Your question doesn't make sense to me.
what solution would work for a 50+ people setup (each with at least 2 devices)
thing is, @ircmaxell , we have a setup where 90% of people are getting the net through WiFi, but the damned thing is rapidly becoming unstable
user2620028
@Incognito You have answered my question. Thank you.
i was wondering what are the common solutions for medium size companies ?
@tereško desktops or laptops mainly?
14:44
laptops + smartphones (there are like 4 desktops in whole office)
well, you don't have much choice but to support wifi
we had a similar problem in my workplace
look into multiple access points, and repeaters
and have a good backbone between them (prefereably wired)
now, we have 2 access points and RJ45 ports on the walls
we have no wiring in the walls at all
all the cables go overhead
14:45
false ceiling?
gimme a sec
@iroegbu you may want to get a third...
and get a commercial one, not a "belkin" or whatevewr
@Jack i.sstatic.net/IbpCQ.jpg something like that
We are just 20+ with like 15 desktops
I actually like that look and feel
14:49
@tereško ah right, that's before the renovation I hope :)
@tereško Usually plaster ceiling comes to hide it, but this is way of expressing WE'RE SO RAW MOTHAFUCKA.
@Jack lolno
oh ... kay
anyhoo, i see overhead cable gutters that are empty, so wire it up :D
@tereško The most important thing I have learned over doing that sort of thing (which I have done many, many times) is that you can never have too much cabling. 2 Cat5e/6 points per desk *minimum* and a liberal sprinkling of double points wherever you can reasonably manage
@ircmaxell I'd say "prove it by publishing the code" :D
14:55
LOL WHAT
Compiler written in PHP
I think I like the second better...
@tereško We have 3 WiFi routers here on the same 'network'.
I'd believe it too...
2 messages moved to bin
:18292352 yep, second one is fine.
14:57
If you don't put a model train in your cable raceway you're doing networking wrong.

« first day (1398 days earlier)      last day (3775 days later) »