« first day (646 days earlier)      last day (4527 days later) » 

12:00
*color
use red coloer, that green sucks
@webarto ok, i'll deleted both the columns & create again, that is repair na?
nah
REPAIR TABLE table;
@webarto oops! i've already deleted! i'll create them again :)
so close
@webarto For what?
12:04
@webarto i deleted the two columns but they astill shoing in the browse, but they are not seen in structure :(
@NokImchen post a question about it
try accessing it from teh command line, it may be a bug in phpmyadmin
@GeoPhoenix ya, i'll google a bit and if failed them i'll post a question :)
update phpmyadmin
@webarto this is the latest verison! i downloaded it day before yesterday from wamp
12:10
@NokImchen Create a new table with the same structure and check what happens. There aren't any "special names" which mysql does not take as good? For example, when created one application on C++, I was f***ing with that I couldn't create a table, because of some kind of error - finally I came on that the table name (i suppose) 'money' was not allowed and I just changed it and it went ok.
@DanielsPitkevičs table named money is not alloed in c++?? :O omg!
@DanielsPitkevičs ok, i'll make a new table with the same structure & see what happens :)
wanna bet that is not the latest version?
@NokImchen i think that was money, using in-built database wizard for c++ builder.
@webarto heheh, may be its not the latest version, but this the is latest version of WampServer Version 2.2()
@DanielsPitkevičs oh, i'll check whether it the problem with the name or not :)
12:17
Can anybody tell me to integrate oauth api
?
@THOmas Integrate OAuth API
next!
@Leigh yes
Does anybody know of any other colour-schemes as well thought out as Solarized?
12:22
@DanielsPitkevičs hey, i can create another table with the same structure without any problem :)
@NokImchen Then it was some freakin phpmyadmin bug :)
@NokImchen And also, You could just use MySQL Workbench
Ok, time to smoke
@webarto lol, u r right, just now i got a notification saying that they highly recommend me to upgrade :P
this is the notification : A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is 3.5.2, released on 2012-07-07.
The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.
ufff...getting headache being played by phpMyAdmin :( tome to have a cigarette :)
@DanielsPitkevičs i'm joining you :P
someone here proficient at VHDL?
12:37
@Nadal Vague notions why?
I find it sooo difficult to complete tasks at school in VHDL because I have never seen it before...
not familiar with syntax or the concept...its not similar to C# or PHP or anything else I have known
rubular.com/r/DhhhpC1eSc need to match URI, but not the ones between BB tags...
they kind of said okay, here is a language that was secretly used by the military before and now you guys will learn to use it. develope this little program. Here is sample code:..... and then you would just be wondering what syntax you can use because you aren't given a little booklet with a manual and there isnt much on the web about it
dafuq are you saying?
VHDL (VHSIC hardware description language) is a hardware description language used in electronic design automation to describe digital and mixed-signal systems such as field-programmable gate arrays and integrated circuits. History VHDL was originally developed at the behest of the U.S Department of Defense in order to document the behavior of the ASICs that supplier companies were including in equipment. That is to say, VHDL was developed as an alternative to huge, complex manuals which were subject to implementation-specific details. The idea of being able to simulate this doc...
12:47
I'm guessing that there are lots of languages like this... and you can't do anything without manual, that is just stupid thing to do... like you were supposed to figure it out...
I have to do strange shit called waveforms of the circuits.....
apparently introducing the syntax is too hard and confusing so the best way to teach you is for them to throw you in with sample code and tell you okay implement this feature to make this happen
morning, everyone
@tereško morning
@tereško morning
oh my lawd
its a beautiful monday morning
"your way out, is by formatting your question so its not one blog of text"
@webarto are you in a dairy cooler in your picture? Either that or the county morgue.
@gorelative Or elevator?
13:16
yep
now it just looks like a safe room
Definitely the entrance to his secret underground bunker.
agreed
his bat cave
I gotta change my avatar now
Speaking of which, I always wanted to know what this is @hakre
13:19
a halucination
I'm too lazy to have unlimited vacation
@deceze That are two older picture I took some time ago layered above each other. I think that guy in there is even me :)
Hmm... artistic. :o)
> workers are evaluated on the basis of their output instead of how many hours they clock at the office.
helllll yes
13:22
@deceze Sure I'm an artistic person :) I love arts.
@gorelative No shit, can that possibly work??!!?!one
My boss at my day job does it unofficially, hes told me "I dont care how long you work, just as long as you do your job, and don't ruffle any feathers."
It's like with getting paid for webdesign by kilobyte. The less kilobytes a website has, the more expensive it must be.
@hakre Très bon.
so some days i flag 6, some days i flag 13
I'm almost at 500 flags :D
hello cute asian lady typing
hmm .. i am only a bit over 200 flags
hello
is this chat active?
13:34
no
My goal is to get Marshal today stackoverflow.com/badges/1298/marshal
well, you know... moderators will slap your hand for over flagging.
my goal is this badge : stackoverflow.com/badges/1233/mvc?userid=29407 .. but not this month
They both seem pretty hard to get
@gorelative Looks pretty uncomfortable with that second monitor she's half hiding behind there...
13:38
her things are pointy like women in the 50s
Work ergonomics department would not approve of that position for working any amount of time.
weird
shes like overly happy to be typing on a 27" monitor too
and whats with the random sunglasses?
the whole picture is a disaster .. i bet even girl is ugly , just with few kilos of makeup
ok , here is a question: should i read Nietzsche or play some game ?
@tereško Not constructive.
@tereško Off topic.
13:51
i regenerated the fields of a php form in a new div by calling the same function by ajax.. but after that the related save function saves only the data from the last array of fields independent of the number of times the function has been called with ajax
what is the question ?
my data is from all the dynamically generated fields is not getting saved to the database.. only from last generated field
and what is your question ?
slow golf clap
obviously am looking for the solution..
13:58
Ahoy hoy
you want us to just pull code out of the ether? Maybe start guessing what your code looks like?
i think i will ignore this channel for few minutes ... for the sake of my sanity
what'n sam hell?
$query = 'insert into #__joomd_item_cat values('.$cat.', '.$row->id.')';
third time's the charm.
why is he pretending me to be so insane..
@gorelative do you find an error in that statement??
14:04
why are you passing secondary data, why are you using mysql_*, why are you not sanitzing and escaping your user submitted data
Sup @ircmaxell
oh and why are you serializing your form data, when POST will send it anyways?
oh and wtf is $jd. ?
if you're using post, all you need to do is access the posted variables $_POST['name'] and sanitize.. the only time you'd need to pass using data: data is if you were doing any kind of pre submit manipulation (e.g; reformatting a date or passing an additional non input data).
well.. i thought serializing becomes necessary when there are more arrays
though i may not have answers to all you questions..
but the current problem is not related to your points i guess
Damn you @hookman, Sublime seems pretty nice. But damn is it expensive. But damn is it nice... -_-;;
only post won't do when i have the number of dynamically generated input form fields
@HariOm It does perfectly fine, as long as you name your inputs correctly. E.g.: name="myfield[]".
so is your example E.g.: name="myfield[]" the correct form
am i doing something wrong
particularly..
14:20
I have not looked at all at your code. Just saying that dynamically added form fields can be sent via POST just fine if named as above. That'll become an array on the PHP side.
new blog post going live in 10 minutes
@deceze i just verified this format is perfect..
@deceze what OS would you be looking to use it on?
@deceze am again !!!
@Leigh OS X
@THOmas Already pm here.
14:23
@deceze i didnt get any solution?
but the current problem is not related to serialization.. as that won't disable to save the data..
@deceze if you get teh beta its free to use, they just ask you every couple hours if you want to buy.
@gorelative Yeah, that alone is kinda annoying though...
not really, at least not for me.. its a quick click/enter key and it goes away.
when i get some extra cash ill buy it.. until then..
14:28
> This video is unavailable with Safety Mode enabled. To view this video, you will need to disable Safety Mode.
usually not a good sign
@gorelative , isn't the stable version doing the same ?
@tereško probably so, i use the beta version though. always have.
hello @ircmaxell, @tereško
been quite a while
only thing that sucks about Sublime Text 2 is that its not a full blown IDE.. it doesnt supp code hinting etc.
its like textmate or notepad++ on roids
no sure ... i don't recognize that guy
@gorelative Just what I want. Never liked any PHP IDE I tried.
i'm not surprised, i used to chat here a couple of years back
you probably don't remember
@deceze Same here, every IDE I've tried is clunky, slow and doesnt work with any frameworks.
except for dreamweaver, that was by far the best editor i've ever used.
14:38
Sup @hakre
@gorelative O_o;; A rare statement. ;)
@deceze thats because it was sarcasm, DW is utter shite :)
Phew. Was worried there for a sec.
Deadpan isn't always compatible with teh intarwebs.
@Unique_Key I remember
oh, nice :D
so how's it going? haven't been dabbling in PHP a lot lately, but it's always good to drop in from time to time.
14:42
PHP Chat is not a place to socialize. We do work here, son.
Design question: I'm attempting to abuse the hell out of docblock annotations. Let's say I was designing something at the model layer and I had a website field.. I want to indicate that the website field has some validation http://pastebin.com/raw.php?i=328k9kkE

I'm getting hung up on the format parameters/options that get passed into the validator. I'm tempted to use `eval()` instead of parsing the options manually
you sure ain't my pops to call me son @gorelative :P
@Unique_Key Do you have a new SO account?
it's not "work" .. it's a self-inflicted punishment
@Unique_Key > Do Work Son
14:43
@PeeHaa not quite, i've had this account for two years now
posted on July 23, 2012 by Anthony Ferrara

The concept of generators was recently proposed for addition in PHP's core (Possibly for 5.5.0). While I believe that this is a great tool, it appears that many PHP developers aren't familiar with the concept of generators. So I thought I would take a little time and explain some of how it works, and how it can be used to greatly simplify code. Read more »

not much active at all
member for 1 year, 5 months :)
14:57
member for	2 years, 2 months
visited	802 days, 799 consecutive
2
799 consecutive! bravo
<-- visited 1141 days, 309 consecutive
too bad that only the first 365 gets you a badge...
A vacation broketh my record... :(
15:00
I went to Europe 3 or 4 times during that 800 day window
and on vacation twice
551 days, 83 consecutive
So did I, I just wasn't so addicted to also get a data plan for the mobile... ;)
I did :-P
Denile is nice this time of year, isn't it? ;)
my favorite actor is Denile
15:03
I concur.
Megan Deni se Fox
interesting search they got
I'm listening
so you want to know if there are links outside BB tag:
function can_haz_linkz($input)
{
    return preg_match(
        "#([\w-]+:\/\/?|(www|([\w]+))[.])[^\s()<>\[\]]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/))#is",
        (preg_replace("#\[url=(.*?)/url\]#is", '', $input))
    );
}
6
A: PHP class not found but it's included

webartoif ( ! class_exists('User')) die('There is no hope!');

dafuq this guy answered twice
adding CMS on words hate list
15:16
its a bit ambiguous of a term.
@deceze shes good looking, but can't act for crap.
@gorelative "shes good looking" -- sorry, you were saying?
15:31
both of your arguments are invalid
what the
so many things wrong with that question...
like tereško says, didn't now come out in English...
i think i am going to go on a development hiatus until the interwebs gets smarters
im a dumbass, and yet people still surprise me.
we are noobs, but not idiots...
15:46
@gorelative related:
0
Q: array_rand() need to be the same in whie loop

Johnny 187I habe a While loop where I use the value of an array while (blablabla) { $id = $scene[array_rand($scene)]; ... few mysql querys using $id } Each time I use $id I get anoter value (yes this is what I want, but!). I would need for each time the while is running another ...

oh lord i can already tell what that ones about just by the Q:
I'm still not sure what he's asking, and I've read it 5 times
same, hence my comment.
// get last user
$result = mysql_query('SELECT * FROM users');
while($row = mysql_fetch_array($result))
{
    $rows[] = $row;
}
print_r($rows[mysql_num_rows($result)]);
array_rand() needs to be the same is epic
15:49
AHHHH
This is like the 3rd version of this answer I used today!
1
A: can not echo $_SESSION variable in PHP

NealStop using mysql_* functions, try using PDO or mysqli instead. Now that that is over.... Make sure that the query your ran Actually returns results, otherwise mysql_result returns FALSE.

@webarto is the person like purposely trying to write ugh..
and then you have somebody giving false answer which is accepted as correct
i say we all upvote neals response
MUST DESTROY STUPID PEOPLE!!
15:53
good luck with that
@ircmaxell I know my statement sort of means I should destroy myself... so let me amend that:
MUST DESTROY STUPID PEOPLE (that are not me)!
@webarto ^_^
@hakre I do not understand ur comment.
16:00
@Neal it's a pretty basic feature of jquery
@orourkek huh?
his code is unrelated
@orourkek you have no point of reference....
I was talking abt this:
@Neal: That sounds more like: If you pull the plug of your server, you can not hurt anyone. Sorry but that's really broad and actually counter-productive if you want to make this PHP planet a better one IMHO because nobody does understand it. — hakre 3 mins ago
ah, I assumed it was the cv-pls that you replied to
@orourkek nope
16:05
0
Q: What is wrong with this wordwrap?

Lap Ming LeeI can't wordwrap this for some reason.. its just displaying a long line. Is there something else I am missing or do I need to do something with css or html? <?php $text = ucfirst($row->description); echo wordwrap($text, 200, '<br/>'); ?> Just to clarify the width '200' is the pi...

200 pixels :'(
Fastest gun in the west
@webarto I was just about to post a link to the manual on there, but it just says "column width"
nowhere does it actually say characters :[
strlen('The quick brown fox') == 19
it breaks on 20th character
I bet many "designers" don't know definition of pixel...
@MikeB yes, you are :P
Yeah it's completely obvious and very intuitive, but somewhat understandable if one didn't fully read the manual
e.g. everyone on SO :p
Even if the manual doesn't specify the unit represented by 'column-width'.. thinking it's pixels demonstrates a complete lack of understanding of basic web technologies
16:08
@orourkek Should the docs be changed to charaters rather than column width? Are there characters which will take more than 1 column?
It's the same as asking "How can I do this: onClick=<?php validateStuff() ?>"
I wonder why it states column width
@MikeB i totally agree, I just found it odd that the manual was so vague
@PeeHaa It's just the semantics of the page - "column" is mentioned many times
is it wrong that i'm actually starting to enjoy using gdb..
IMO it should mention characters somewhere...
jay
jay
16:10
hello every body
@Leigh not in the least
0
A: What is wrong with this wordwrap?

webartoRead definition of pixel. <div style="word-wrap:break-word;white-space:pre-wrap;width:200px"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of ty...

jay
jay
any one tell about dhtml prototype
@orourkek True.. trying to think of some outside case where a generalized 'width' would be used.. since $input is a string I can't think of any :(
@PeeHaa Actually it does mention characters, right at the top in the function description ><
16:11
@orourkek Would about I change it to say characters everywhere?
> wordwrap — Wraps a string to a given number of characters
in JavaScript, 7 secs ago, by Neal
: http://stackoverflow.com/q/11616262/561731
I just think it is strange they used column width
the ambiguous part is in the parameter "definition"
@PeeHaa agreed, it's not really indicative of what the function actually does
I'll just change it
16:12
@ircmaxell Having difficulty assembling on the fly to patch functions, but apart from that, the amount of info you can pull out + the expression evaluation are awesome
@PeeHaa also, the return value explanation is in the same boat
> Returns the given string wrapped at the specified column.
hmmm it's already changed lemme see what is in the diff
@orourkek did you change the docs?
@PeeHaa negative
16:16
... Somebody is editing it so I cannot change it I think. I neither can commit it, because it isn't a patch yet
-       The column width.
+       The column width (number of characters).
for docs? Just edit it in svn directly
@PeeHaa probably someone that read that SO question :]
@ircmaxell How?
I would be moar than happy to drop that beast
@PeeHaa You have a vcs account, you can edit it anyway
then it'll automatically move to your work in progress
and you can then commit
svn checkout the docs, make the edit, and commit
16:19
I don't have a svn client here at home
Do I need it?
you don't have svn installed in a terminal?
| File modified by anonymous #18516.
that's what it tells me when I open that page
@ircmaxell not at home nope
@hakre I think you made the same mistake that I did
@hakre lol read below that. i was not referring to the cv
16:21
@Neal Ah that one: If you power-off the server, your application is safe. Unless you don't do that, it's not. Always.
@hakre ?
eh?
What does that have to do with anything?
You say PDO prevents sql injection. But the truth is, it infact does not for the very same reason that mysql_* does.
@PeeHaa good boy
keep the svn out :P
It's just has one added feature which makes it a little bit easier and less error prone.
@NikiC I wish I could say the at the office... :(
16:23
So if you want an easy solution to make the code safe, you should not only suggest PDO but to shutdown the server for example. Works even w/o code changes ;)
@hakre :-P
@PeeHaa psst: Git has SVN support ^^
GIT > SVN
@ircmaxell Hey, you stole the generators blog post!
16:25
You blog too much :P
Won't be anything left for me ^^
@gorelative blanket statement is blanket. While I agree for a lot of usages, Git is better. But there are cases where SVN can be better as well... Especially when it comes to large repositories
@NikiC Sure there will...
@ircmaxell sarcasm does not transmit well via chat. i need to quit using it.
Well I must say I had a lot less issues (conflicts etc) with GIT than with SVN. The issues I had with GIT I knew what I've done wrong
@NikiC yeah, I do. And I have 1 more scheduled, and 10 more in draft :-P
@NikiC And you stole my password proposal to core (well, initially proposing it anyway), so we're even :-P
@ircmaxell Well, it was my idea after all :P
16:29
@tereško you being against it doesn't make it a bad idea. it works and it works just fine. selecting repeated actor names when selecting the items from the MetaValue column also causes additional IO traffic and this code doesn't do that. — ugurcode 2 mins ago
ehh ..
@NikiC Actually, it wasn't. We were talking about it in this room that day earlier (you weren't around)
@ircmaxell Ah, then we must have had the same idea all at the same time ^^
Which is somewhat logical ;)
After LinkedIn
@NikiC which is why I called it "not cool" that you posted it
simple misunderstanding
I think now I understand it ;)
btw "when you call the getLines() function, PHP will run the code until it hits the first yield, at which point it'll remember that value and then return the generator instance." isn't exactly right ;)
I wasn't sure about that
16:32
It'll return the generator immidiately without running anything
I briefly looked at your code, and interpreted that's what it would do...
generators are intercepted directly at the call
Ok, I'll update the wording in a little bit
so I don't run anything and just assign a new generator instance ;)
but now, it's lunch time
16:36
@ircmaxell Btw $length = yield fread($f, $length); has to be written as $length = (yield fread($f, $length));
That's not in the RFC yet, but it is required to make everything unambiguous
Just like in Python ;) Only difference is that I allow using yield without value directly. So you doesn't have to write $data = (yield);
Noooo! +1 :)
lol
@webarto +1
@Neal someone flagged stackoverflow.com/a/11615961/46675 as not an answer
@MikeB odd
@MikeB I think it might have been @tereško but I could be wrong....
@ircmaxell You don't think that's a valid (albeit misguided) question?
@MikeB I would say severely misguided
@MikeB read the question. Tell me what he's asking...
16:51
@ircmaxell agreed
does anyone know if google personalized results can pull pages from your history that are otherwise hidden from google with robots.txt?
:ashamed: ^_ ^ tnx
17:10
here this is array http://pastebin.com/0mimUWc0
it's multidimensional array i want to fetch http://www.facebook.com/beaulebens
how can i do this. `$profile['**'][**]['***']`
what is a good chat to ask about Linux installation problem?
@ircmaxell hey a question how did you get zend certification.?
I took the test
well how you prepare for this.? any book or any thing else
years of experience
17:16
any suggestion for me. what to do.
for this
Submitted 3 CFP proposals for @TrueNorthPHP http://truenorthphp.uservoice.com/forums/169672-general/suggestions/3021582-don-t-be-stupid-grasp-solid http://truenorthphp.uservoice.com/forums/169672-general/suggestions/3021595-the-power-of-technical-debt and http://truenorthphp.uservoice.com/forums/169672-general/suggestions/3021629-php-s-source-for-php-developers #AnyOtherIdeas?
@BasicBridge learn the language inside and out...
Thanks so much. for these link. i'm also looking forward at books by you.
means the book you linked 'http://careers.stackoverflow.com/ircmaxell'
17:37
opinion question: do you consider the parameters to be a part of the general semantics of the method? e.g. comparing replies_by_topics($id) vs. replies($topic_id) from a readability standpoint
0
A: Displaying a table in PHP with repeated columns

hakrePlease see your data, it is sorted and ordered: Autonum ID Name MetaValue 1 1 Rose Drinker 2 1 Rose Nice Person 3 1 Rose Runner 4 2 Gary Player 5 2 Gary Funny So what you can do is to solve that by the output: Each time the ID/Name changes...

saw it already
in JavaScript, 25 secs ago, by Neal
: http://stackoverflow.com/q/11617226/561731

« first day (646 days earlier)      last day (4527 days later) »