« first day (731 days earlier)      last day (4203 days later) » 

1:09 PM
@Leigh I'm just glad Abu Hamza didn't figoure out that screaming suicide would get him out of extradition
 
@GordonM Heh, if he screamed suicide, all the more reason to extradite him.
Who would you rather keep. Scottish hacker who serially embarrasses the US, or a Muslim
 
@Leigh .. emm ... how do you know that the scottish hacker is not a muslim ?
 
@tereško Because he doesn't have a silly hat and a masked wife
.. oh and he didn't explode yet
 
or was it that by "muslim" you meant: religious fanatic, member of former american gorilla warfare project , who has aided kidnapping ?
 
1:16 PM
Also, for the record. I live in a town where white people are very much a minority, and my opinions are based on actual experience.
@tereško No, I mean the idiots who headbutt the floor several times a day in honour of a mythical deity
 
how do you know that said hacker is not religious ?
 
@tereško I didn't say that I knew he wasn't, in fact I don't care if he is.
 
6 mins ago, by Leigh
Who would you rather keep. Scottish hacker who serially embarrasses the US, or a Muslim
 
posted on October 16, 2012 by Ilia Alshanetsky

My slides introducing PHP 5.4.7 from the talk at IPC 2012 are now available online and can be downloaded at: http://ilia.ws/files/ipc12_php54.pdf

 
what you said was : "all muslims are suspected terrorists"
everyone who is not a hacker is an idiot ?
 
1:20 PM
You're not very good at reading are you. Go get yourself another beer.
 
Sem
@Leigh I know that feel bro.
 
@Sem Heh, yesterday on the bus home from work, some masked bint got on with a buggy, stupidly I got up to give her my seat.. she literally pushed past me to get into it, with no word of thanks, and then talked loudly on her mobile the whole journey while her kid pissed off the other passengers.
Typical experience.
 
@Leigh Shooting's too good for her!
It's not like white people are ever rude to me on public transport!
 
Sem
@Leigh Dark colored females and their egocentric pushing habits. Always happen to me in the metro here.
 
@TimPost cv-backlog can return the results in json when you send a json accept header
 
1:25 PM
@Sem Actually, the african descent ones seem to be nice, the somali ones and the middle eastern ones are rude as fuck
 
really? wtf
this is not IRC. Please keep it civil, unoffensive and reasonably on topic
 
@ircmaxell Technically is a kind of IRC
 
user50049
@Gordon Thanks, I didn't realize you had that up on github
 
It is the internet, and our chat is being relayed.
 
you know what I mean
 
Sem
1:27 PM
@ircmaxell Just this once (please???), for the sake of personal experience ;)
 
huh?
 
@TimPost yeah, i hacked that together and figured since this is the I'd put it up on github in case anyone here wants to add/improve it
 
user50049
@Leigh Can you tone down on the ethnic comments, please?
 
@TimPost In order that I don't have to tone down my comments, I'll just stop writing them where you can see them, deal?
 
user50049
@Leigh That works.
 
user50049
1:32 PM
Surprised you didn't get me for asking if you could rather than would.
 
@TimPost well .. let him write .. i find it very enlightening
 
Sem
@ircmaxell Saying muslims are bad, mmmkay is offensive for sure. But talking about how we're living in an enviorment where white people are a minority is just talking about our own experience with these types of people in these environments with these clothes and these attitudes, ya? But NVM, PHP is the topic anyway.
 
user50049
I can see the basis of generalizations. If you live in a community of very rude purple people, you might develop a cognitive bias that purple people are generally rude. You aren't wrong according to your sampling, the bias is forgetting how limited the sampling actually is. However, statements as such do create disruptions, so it's generally wise to keep them to yourself unless surrounded by those affected by the same bias.
 
@Sem Ok, technically I'm not a minority in the demographic area, but in the city center it's pretty much 50/50.
@tereško @TimPost If you'd like some numbers that reinforce my personal experience - en.wikipedia.org/wiki/Leicester#Demography - As of 2001, 23% of the population was born outside of the country, 40% have no academic qualification whatsoever, and there are more women than men, and according to 2006 estimates, 58.3% of residents are white British. (31,000 muslims here)
 
Sem
@TimPost It can get you killed, I know.
 
user50049
1:41 PM
@Leigh I realize your observations aren't the product of something sinister like bigotry. Thanks for keeping it out of the room.
 
For saying you're dropping this topic of discussion, you're doing a really bad job of dropping it!
 
user50049
@GordonM I've yet to succeed today, at all actually. Par for course :P
 
Sem
@TimPost I dare you to paste the last code snippet you've worked on.
 
user50049
@Sem I'd be beaten to death with a giant $ if I did
 
user50049
(I have a love / hate relationship with jQuery)
 
1:46 PM
posted on October 16, 2012 by Cal Evans

Derick Rethans’s Blog: http://derickrethans.nl/ Jason Myers’s Blog: http://binarydelusions.com/ Luke Stokes’s Blog: http://bestoked.blogspot.com/ Ben Ramsey’s blog: http://benramsey.com/ Jacques Woodcock’s Blog: http://www.kitewebconsulting.com/ Derick Rethans’s Twitter: @derickr Jason Myers’s Twitter: @jasonamyers Luke Stokes’s Twitter: @lukestokes Ben Ramsey’s Twitter: @ramsey Ja

 
Any Cake developer around?
 
.. i suspect that you are looking for CakePHP users , not developers
 
@tereško, I'm surprised you haven't really noticed any trends based on ethnicity, simply by being present in this chat room :)
 
@Leigh , the trend i have noticed has nothing to do with ethnicity , but with local education policies
 
1:49 PM
@OsamaYawarKhawaja Please read the description of this group "Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will."
 
@OsamaYawarKhawaja , when stored new Note , you should be able to get the ID for that entry
 
Yes i do get but i want to store it in Comment table as foreign key. In simple words i want that comment table should have the id of the note on which the comment is made
 
well .. if you have the ID of th note that you just stored, when you just assign that ID .. where is the problem ?
 
2:01 PM
@TimPost if you like, you can add the redis support to the backlog. maybe we can deploy it to heroku.
 
I'm writing an init.d script for a gitlabhq daemon. For some reason it always fails but there is no output. Anyone knows why?
 
Yeah, I know that's seriously off-topic, but....
By the way, when the command in question was ran through cli directly it worked. In case you were wondering. :)
 
@Christian I'd normally suggest a permissions issue. Runs fine as cli (assuming your local user), init.d will be run as root though..
 
2:09 PM
@Leigh Well, I ran it on cli as root...
 
@hakre I have actually bloody done it. I was climbing the parapet ready to throw myself off for a while until I remembered that you have to unprotect sheets to make them writeable even programmatically. Now I have actually got it working. 8 lines of code in under a week! A new personal record...
 
Also, to have the setup script working, it's necessary to do the following, correct?

# chmod 0755 /etc/init.d/gitlabhqd
# chkconfig gitlabhqd on
 
No clue
 
@Leigh Don't tell me you're a Windows guy?! gasp
 
Most of my init.d scripts are chown root:root and chmod 500
 
2:11 PM
:D
 
Sorry for the late reply @te
 
Heh, home is windows for games, work is osx (i guess to stop me playing games), and my servers are either debian or freebsd
 
Sorry for the late reply @tereško ... The problem is that i want to print comments related to each status as on facebook and for that i have to add conditions like Comment.note_id = Note.id but i dont know how i should add the id of each status in Comment table foreign key field i.e note_id
 
Well, after running that stuff, I think I've got some further leads
Starting gitlabhqd: bundler: command not found: rails
Install missing gem executables with `bundle install`
 
Oh there's your problem. Ruby.
4
 
2:17 PM
well .. you need to install rails gem
 
@tereško I did. It's somehow not available to the interpreter.
In fact, I had to use absolute path to bundler
 
there should be a log somewhere
 
But that shouldn't be an issue..a little hacking up a script and it ought to work.
 
oh .. really .. if you say so
 
whereis rails and then put the resulting path in the script.
@tereško Hey, I'm no expert, and I only know half of what I'm doing. But I think I'm better off than not doing anything at all.
/usr/bin/env: ruby: No such file or directory
Bloody hell.
 
2:25 PM
When people duplicate their own questions, is it wrong to create a circular reference of close as dupes?
 
I suppose close the new one as dupe?
 
Aha, but the old one is also a dupe, of the new one!
 
@Leigh I'm pretty sure my great-grand father is not a duplicate of me....at most I would be of him.
 
@tereško miserable reputation. Poor thing.
 
2:27 PM
two answers to his own question :D
 
Leave the oldest as it's the original question!?
 
@nickhar I hear in the UK humour is now illegal.
 
@Leigh But you've got to admit he's creative.
 
I blame labour
 
Whats flag by the way @tereško, sorry but i am new here :P
 
2:28 PM
I wouldn't have though of that to annoy @tereško.
 
@Leigh Indeed. Only sarcasm is allowed here now!
 
@OsamaYawarKhawaja Blame the local education system.
 
Erghh i mean whats the function of flag here :S @Leigh
 
@OsamaYawarKhawaja we use them as semaphores, to communicate messages
 
2:31 PM
Semaphore Flags is the system for conveying information at a distance by means of visual signals with hand-held flags, rods, disks, paddles, or occasionally bare or gloved hands. Information is encoded by the position of the flags; it is read when the flag is in a fixed position. Semaphores were adopted and widely used (with hand-held flags replacing the mechanical arms of shutter semaphores) in the maritime world in the 19th century. It is still used during underway replenishment at sea and is acceptable for emergency communication in daylight or, using lighted wands instead of flags, ...
Here you go, you need to learn it. It really should be in the CakePHP manual.
 
Oh thanks for sharing .... It was really helpful. Well i am new to CakePHP and honestly speaking i am learning it and also doing my Final Year Project in it so thats why i don`t know much about it.
 
user50049
@Gordon I'm playing with it now, though I don't think it will get my full attention until the weekend. But yes, I will send pull requests if I come up with something useful.
 
It's official as it gets: Stas is a moron.
@Leigh Have you been reading his latest replies on properties?
He's saying type-hints were a mistake.
 
Wait, what?
 
@LeviMorrison Haven't read it.
 
2:39 PM
@LeviMorrison Link please!
 
user50049
@Gordon I'm interested in replaying the 'life' of questions that end up in the backlog. Call it proving a point :)
 
@TimPost What info/stats exactly do you want?
 
He's against creating 'typed' properties for objects. In lieu of the recent properties discussion, how is using a 'typed' property any different than an untyped property with a type-hint on it's setter?
 
user50049
@DaveRandom Is "I'm not yet sure" acceptable?
 
2:42 PM
class Entity {
    DateTime $last_modified;
}
//vs
class Entity {
    public $last_modified {
        get();
        set(DateTime $last_modified);
    }
}
Dunno about you guys, but I'll take the former any day.
 
user50049
@DaveRandom The idea just hit me an hour ago when I saw what Gordon had.
 
user50049
I need to spend a cozy weekend with the SE API
 
user50049
Kind of sad to admit, I have not used it since we got the first version out the door.
 
user50049
(no time)
 
@TimPost lol - I would be interested to see some stats about how many requests get acted on, how many get reopened etc, it would be nice to have some impartial metric on which we can judge the efficacy/fairness of the process. Unfortunately the SE API does not expose information about close/delete/reopen/etc votes, it only currently really deals with content.
The cv-helper client side currently relies on the API not returning any information for a given question ID to determine if the question in errr... question has been deleted, although it does tell us whether the question has been closed.
 
user50049
2:47 PM
@DaveRandom I'm interested in that, as well as the UX for the person that posted a really bad question to begin with
 
@GordonM It's hard to pin down because there are so many threads with almost the same name. The archive cuts them to a certain number of chars, so it's hard to find.
 
Thanks, looking now
 
Is type safety really a bad thing?
 
so his argument is type hinting is bad because it means strong typing by the back door? Am I reading that right?
 
So it seems.
 
@TimPost I know I do worry about that myself. Too often I think close votes are a cast against a user's first question with no comment whatsoever, not even a "go read the SO FAQ/your language manual, dumbass" type of comment. It would be nice to automate it but I've yet to come up with a way that would work reliably and not produce duplicated content, since none of the clients running the cv-helper communicate with each other (currently)
 
I'm appreciative of Stas' work on the core. He's done a lot.
 
As far as I'm converned type hinting is a really really good thing, but could be better if it wasn't restricted to objects and arrays
 
Of course that relies on people actually running the helper, which I know not everyone does.
 
However, I disagree with Stas on practically everything.
 
2:51 PM
But as everyone keeps pointing out, getting an implementation for scalar type hinting that everyone's happy with is problematic
 
user50049
@DaveRandom Did you listen to the latest podcast? (yes, after seven months, they come out weekly again)
 
user50049
Thinking is, new users get put through a meat grinder, and it's all our (SO's) fault.
 
@LeviMorrison He's also pushing the "this feature is too immature, and is being rushed" approach re: accessors
 
@Leigh I personally think the implementation needs a lot more thought. I agree with that aspect of his argument.
 
@TimPost No I thought the podcasts were pretty much dead. Would be good to see a blog entry linking to them if they are not. If I've not seen them I'm fairly sure other interested parties wont have either.
 
user895378
2:53 PM
@PeeHaa Woot! New [cv-pls] version!
 
Me too. It really needed a lot more discussion about the finer points before the implementation began.
 
@TimPost Oh there is one. Ignore me.
 
It's not like adding type hinting for scalars would force anyone to actually use it.
 
@GordonM Well, that's debatable. I agree, but I'm not 100% on scalars.
 
If you want to keep things loosely typed, good for you. Just don't type hint the arguments
 
user50049
2:55 PM
@DaveRandom They said it would be produced weekly again, hopefully it is.
 
I mean, look at these two syntax:
13 mins ago, by Levi Morrison
class Entity {
    DateTime $last_modified;
}
//vs
class Entity {
    public $last_modified {
        get();
        set(DateTime $last_modified);
    }
}
Who in their right mind would ever think the latter is better than the former? They don't have to be exclusive, the top simply translates to the bottom one, but why is Stas against it?
 
Or you could add semi-tight hints with scalar $argument for an argument that can take any kind of scalar, or object $argument if you want to accept any kind of object.
Oh, we're talking property type hinting? I was thinking argument type hinting
Though I suppose property type hinting would be a cool thing to have too.
 
Property type-hinting would benefit from what you are suggesting, @GordonM, but for now I'm staying away from that area.
Hard enough to convince people as it is to have a better accessor impl.
I am impressed with Clint, though. He's changed his implementation quite a bit based on feedback. Usually doesn't happen with these types of things, not in my experience anyway.
Time for work.
Had to vent about Stas somewhere first. :)
 
Well type hinted properties and return values would really be nice, but if that message you linked is any indication then maybe it's a bridge too far, at least for now. Most IDEs support @var tagging these days which goes some way to addressing the issue of lack of property type hints
 
3:14 PM
lol
 
@TimPost I think the single biggest thing we could do to resolve these issues is to revoke the insta-delete capability for everyone except moderators - make it so that you have to wait at least say an hour to delete anything. I suspect a lot of new users are used to forums where you don't get responses within 1 minute of posting so they'll ask a q, go AFK for an hour and come back and their question is gone.
I'm sure this will be an unpopular opinion in here, but before you kill me consider this: We have the backlog, so it's not like the stuff that is not improved will hang around forever.
Plus we have merciless archaeologists like @Jocelyn
 
3:30 PM
Is there any way to force PHP to call destructors in the event of a fatal error? I'm a little surprised I've never come across this before, I assumed they were always called unless PHP itself dies
 
Good afternoon everyone.
I'm creating an albums' categories database. Do you think I should separate main categories from child ones in db? Or make everything in one table and get data in SQL?
 
@hakre Afraid not. Not for me, and I've got @edorian to back me up: stackoverflow.com/a/2385581/889949
 
3
A: How to determine that a PHP script is in termination phase?

hakreAfter reading a larger part of the PHP sourcecode I came to the conclusion that even if such state(s) exist on the level of experience, they do not really exist within the interpreter in form of a flag or variable. The code about throwing Exceptions for example decides on various variables if th...

are you calling exit?
 
@hakre This reproduces the actual situation I want to avoid: codepad.viper-7.com/mTPR5L
 
3:40 PM
Hi everybody, i'm very confused, and I need some help to figure out something, I have raw date that I want to sort so I want to create a array with the date has a key with a sub array filled by the information of that date (event) does that sound okay to you ?
 
Notice that "Destructing" is only output once.
 
events_list => Array (
date_as_a_string => Array(
title = ""
description = ""
end_date = ""
)
)
 
@Leigh but no variable to read that out I think.
 
@hakre I don't think I fully understand what you want.
 
3:44 PM
@IvoPereira you should have all categorie in the same table
 
with a parent_cat field, right?
 
You could read this and you'll have all your answer :)
 
-3
Q: CAKEPHP - Retrieving a specific field

Osama Yawar Khawaja Possible Duplicate: CAKEPHP Storing foreign keys I have three models. User Model Note Model [ Similar to status on facebook ] Comment Model I made all the associations but i am getting problem in assigning Note model ID as foreign key in Comment Model field Note_id Comment Contro...

 
@hakre It's all still related to this whole Excel COM thing. If you don't call Close() on the workbook it leaves an orphaned excel.exe process running when the script terminates, with a write lock on the file. So I put a call to Close() in my destructor, but the destructor is not called in the event of a fatal error. I don't anticipate any fatal errors but it's a hole that I feel is too big to leave unplugged.
 
@DaveRandom lool, you can do some dirty stuff there. codepad.viper-7.com/2eZxri
 
3:47 PM
@hakre If PHP is shutting down, functions registered by register_shutdown_function will be called. What more do you need to know the state of the script? shutdown functions (all of them) are called before object destructors.
 
@rdlowrey Thank @DaveRandom for this one
 
@DaveRandom try to keep a registry inside a global variable, that might do it.
 
So you can set a variable from a shutdown function, then check it in an object destructor to see if the object was destroyed during shutdown or not.
 
@Leigh that is my answer, yes.
 
user895378
@PeeHaa @DaveRandom Thanks for the new and improved [cv-pls]!
 
3:48 PM
@hakre I didn't read the code :D - OK that seems to be the only way to detect it without doing something insane (enabling ticks, and checking if ticks are stil enabled)
 
now off to home and beeeeeeer
 
@hakre Mmmmm... global lovelyness.
 
@DaveRandom yes, keep in mind that the file-lock is also global. even across the boundary of the script ;)
 
Could someone take a second to look my question ? I only want an advice...
 
whats up fellas
 
3:56 PM
@DaveRandom @hakre @Leigh ? Someone still alive ? Or does earth has stop spinning ?
Hi @AndyPerlitch
 
@JonathanLaf Look at array_multisort()
(probably, I'm guessing is what you want)
 
I know how to sort, I was looking for an advice on the way i'm doing it, does someone think there's a better way to do it or something ?
@DaveRandom
 
@JonathanLaf Don't ping random people who have not spoken to you and do not care about your problems.
 
@Leigh u mad bro ?
 
No, just schooling you on etiquette.
 
4:01 PM
@JonathanLaf Yes, I think array_multisort would probably be better. But it's hard to say without knowing where you get the data from, what it is, etc etc. If it's coming from SQL, do it with SQL.
 
i'm only asking a question and i ping random people who have have talk and may have an opinion on the subject. Sorry if the beep of my ping was too loud for your ears...
Thank you @DaveRandom sorry if I took your time ;) and it's coming from a raw file that's why i'm not making it with sql directly
and that's why I was asking for an advice, because normally I would do it with SQL directly
Goodbye @Leigh ;) just for you memegenerator.net/instance/28451187
 
@JonathanLaf Look at example #3 on the array_multisort() manual page, that's what you need. To be honest it largely comes down to personal preference, I would array_multisort(), YMMV
 
@JonathanLaf Well, what do you know. Trolls exist outside server-fault too.
 
is there a faster way to create domain classes that correspond to rdbms tables than just manually writing properties with getters and setters?
 
@JonathanLaf I think you mean "too" loud, thats what you get for being so close to America.
 
4:08 PM
Ooooh fight, fight, fight
 
@Leigh someone's wearing a ...
 
@DaveRandom Yea, I'm saving the "for a country so big, how come you're still Englands bitch", for a retort.
 
One of the good things about PHP is the fact that given a huge project, you can always start with an index.php.
Then again, there's a lot of masochists out there ready to start with a config file without knowing their target framework/architecture.
 
> I'm sorry if this seems to be attacking you, but it really is.
 
@ircmaxell Then why are they sorry.
 
4:21 PM
@hakre it's all horrible frankly. I think this will serve my purpose but it still sucks. When you register a shutdown function in such a way that private members of an object are accessible to it, it (presumably) increases the refcount on the object so the destructor is not called when you unset() the last "real" instance. At least that is true of everything I can think of.
 
@Christian , yeah , but if you are doing it right, your index.php will contains only few lines
 
that was me
 
@ircmaxell when you're using valgrind do you typically enable or disable maintainer zts?
 
both
 
> I don't mean to sound bitter, cold, or cruel, but I am, so that's how it comes out. -- Bill Hicks
 
4:23 PM
fair enough :p
 
I miss working with php :(
 
@skeasor So work with PHP
 
@Leigh current job doesnt do php... coldfusion and java...yuck
 
now , that's actually nasty .. one could say that you are overreacting about Java , but .. CF .. yeah
 
I did do a small php project here use QueryPath recently...best project ever! hah
 
4:26 PM
@skeasor The coldfusion alone would be enough to make me call in sick every day
 
@Leigh , some people need to work to pay the bills
 
Yea, java isnt too bad. CF is just ugly...I respect the concept of it, but you if you want to customize anything it's a mess...Cant extend from any of their classes
@tereško: haha yup...gotta pay the bills
 
ahaha, @ircmaxell. Julien described you as "short but nice"
 
lol
 
i get the impression that maxell is over 6 feet
 
4:27 PM
5'10"
 
@Leigh Short but nice? As if short people are not usually nice?
 
Really? I'd have said slightly less... but I was wearing my DMs at PHPNW, and I am 6'3" to start with
 
Well, sometimes I appear 5'9"
but I really am 5'10"...
 
I suppose my height varies depending on how long I've been hunched over a keyboard.
 
FYI, you are shorter in evenings
 
4:31 PM
@tereško Yea, FU gravity, compressing my spine
 
anyone ever use Sublime-Text?
 
I use sublime text (2)
 
some do .. why would it matter to you ?
 
@Leigh...yea that's the one i'm using too...Just started using it a few weeks ago and am very impressed with it.
 
@skeasor Its nice, as long as you don't have to do massive amounts of refactoring. The multi-selection stuff is what I use most.
 
4:33 PM
I dig the simplicity of it...
 
@skeasor per-filetype configs also very nice
Minimap is awesome for huge files, when you can remember the shape of code.
I also use the multi-column view a lot
 
yea, multi column comes in handy...I like everything about it...Hasnt crashed on me once. I always have problems with eclipse
hi, @user1663513
 
what is the best way to develop a web services api in php?
 
@skeasor Sometimes the linter can make it run slow (if you use the php linter)
Right, home time ;D
 
4:38 PM
Pay someone to do it, @user1663513 :) j/k
 
hehehehe skeasor
how mach?
 
could someone help me out with some regex?
 
@user1663513 whats the service for?
 
to upload file
it easy
auth and upload file
 
4:42 PM
@user1663513 Generally, I try to avoid programming faster than the speed of sound. The sonic booms annoy my coworkers.
 
@SomeKittens nice one hah
 
@PeeHaa For me it was mainly uselessity and semantics that I didn't like ;)
 
5:20 PM
@NikiC uselessity
 
@DaveRandom I knew that you'd like it :)
 
@DaveRandom , you should make a jquery plugin with that name
 
@tereško The source file will be 30MB minified and the plugin will do nothing but 100% the CPU.
Right, for me. Laterz
 
evening
 
5:40 PM
word?
 
word
 
user895378
jo
 
ho ho
 
user895378
arggggggg! avast!
 
@rdlowrey Why are you using avast?
 
user895378
5:54 PM
@PeeHaa lol my pirate speak was a miserable failure. For the record, I'm not using some garbage anti-virus software.
 
hehe lol
btw that isn't the dupe of dupes
I thought there was some good encoding answer somewhere
 
I want to create a site like ustream.tv
Any idea about the architecture of such live cam sites?
 
I see thay have a flash player to start with :(
 
In SO I didnt' find much informative answers. Most questions asked have no answer or very low quality answer.
@PeeHaa Thats true. A flash player will be required for sure.
 
@shiplu.mokadd.im why?
 
6:06 PM
But I am talking about the inner architecture of it.
 
That is really vague
I suspect fairy dust and unicorn candy
But serious what exactly about the inner architecture?
 
Well I know a client side code (may be flash) captures webcam data and streams it to server
And the server streams it to multiple clients
It can be created from scratch. But I think there are solutions which have more features.
 
Well the inner architecture can be anything you want / like
 
I can build it from scratch. But I think people dont do that
There are tons of such websites.
specially in pr0n Industry
 
@shiplu.mokadd.im I don't think it is that hard to build from scratch. retrieve some stream -> broadcast stream. Or I'm thinking about it to simple
 
6:11 PM
Yea its simple
To make it a industry standard It'll take a lot of time testing. So I was looking for existing solution
 
@shiplu.mokadd.im What did the Google say?
 
@shiplu.mokadd.im red5 ?
 
hey everyone
 
@godka Flash Media Server and Red5 thats what I have found by googling.
 
6:28 PM
@MadaraUchiha So do I have to rewrite the whole code with all the new functions starting from mysql_connect or only the few functions that are troubling the code . — user1726659 1 min ago
This guy's a real blockhead...
 
Just tell him he needs to rewrite everything =)
 
+ case IS_BOOL:
+ case IS_NULL:
  case IS_RESOURCE:
  case IS_ARRAY:
  default:

it doesn't make sense to have those cases and the default. Please remove all those useless cases.
thoughts?
 
@ircmaxell Some context please?
 
sounds legit
 
My reply: I see it as self-documentation to include them as it indicates without needing to think that it's intentional that they are treated as default. If the overall consensus is that they should be removed, that's fine (and I'll remove them). But I consider this more readable and easier to comprehend than without...
 
6:32 PM
@ircmaxell As in other cases that will also "trigger" the default case?
 
Well, it's switching over the variables type
 
I would drop those cases if it was up to me
 
@ircmaxell Some context please???
 
php src
 
@ircmaxell Figured that out already, what part is this? What's this about?
 
@ircmaxell semi related. Have you thought about throwing an error instead of returning false github.com/ircmaxell/password_compat/blob/master/lib/…
 
Ah, the new password API
 
I have thought about it, but not sure what the error should be
 
@ircmaxell Throw an exception
InvalidArgumentException to be exact
 
No
 
6:52 PM
@MadaraUchiha You may now leave your dream world
 
@NikiC Why not?
 
Can I ask a question on SQL here?
 
@Hypn0tizeR Don't ask to ask, just ask.
 
@ircmaxell Dunno what error. But for an API which should be as secure as possible / usable by default it seems like some security leak. I.e. a potential problem when not handled correctly by users. Seems to me this may potentially introduce problems again
 
sure
 
6:54 PM
I would like my search query to avoid some characters in sql rows. For example when you search for: Heye it will match He'ye from table
 
That last post didn't come out the way I planned, but you get the idea :)
 
I still don't understand what's wrong with throwing an Exception.
It shouldn't work if the arguments are invalid, right? Why not make that perfectly clear?
 
@Hypn0tizeR WHERE field LIKE ('%H%e%y%e%') but it will load up a lot of matches, you'll see
 
@godka I don't think that's the way...
 
no, too much
 
6:56 PM
@MadaraUchiha not sure what he wants exactly
 
searching for every letter is not a good idea
 
@godka He want specific characters ignored.
 
I want Heye to match only He'ye, nothing more)
 
@Hypn0tizeR Not even Heye?
 
so, only ' ?
:)
 
6:57 PM
no, I mean and Heye itself :D
 
1
Q: How to ignore characters on a MYSQL SELECT LIKE %...%

HenryI have a table with a phone column, where data may have spaces, dots,dashes or + signs between the numbers. I need to do a search with LIKE wildcards that ignore all those characters, for example: a record may have phone as "+123-456 78.90" a query looking for "6789" or any complete or incomple...

Google helped me pretty darn quickly really.
 

« first day (731 days earlier)      last day (4203 days later) »