« first day (640 days earlier)      last day (4301 days later) » 

1:00 PM
@webarto and what makes you think that's appropriate for this chat room?
 
pr0n wasn't the point of the link... It could have been any link...
never said it is apt
 
quick refresher, what php function is similar to strpos but instead of fetching a string of specified length it searches the string until a certain other string is reached?
 
@Nadal Take a look: us.php.net/strings it's in that list
 
stackoverflow.com/q/11522861/424004 not a way to use query builder...
 
Hello All, what's the meaning of public function __isset($param) { //function body } ??
 
1:03 PM
so "this is a string" some function("this","string"); result would be " is a "
@ircmaxell thanks
 
@AlexSmith Why not look at the docs...?
 
I'm creating a new framework - what is the best method to add jquery/ajax to site?
 
@webarto: Thanks :) is php support overloading ??
 
PHP
1:06 PM
@AlexSmith yes, PHP is not so BAD now ;)
 
@PHP Thanks :)
 
@DanielsPitkevičs do not joke like that, someone might not drank his morning coffee yet. (possible tense fail)
@ircmaxell and don't say pr0n is worse than this...
 
@webarto I suppose I didn't formulate my question correctly. Well, nevermind.
 
...for reference, "i'm creating a new framework" and "how do you add jquery to a site?" are two things that shouldn't be said in the same paragraph. :P
 
1:09 PM
@DanielsPitkevičs , i am not sure what is worse : fact that you want to create a framework , or that you want to weld jquery into that framework
 
@cHao I'd go as far as 'new' and 'framework'
 
@cHao , well .. to be fair , that's what Yii creator did
 
i can understand the compulsion to build frameworks :)
 
evening
 
WHat is the different between JSON and XML ? Why we are using this ?
 
1:09 PM
@tereško Why that fact is bad that I create framework?
 
it is morning... @DanishIqbal
 
k....brb heading to work...lol
 
@AlexSmith google is your friend
 
@DanielsPitkevičs What does yours do that the others do not?
 
try it
 
1:10 PM
heading to kill myself... brb
@cHao drive safely :P
 
@Leigh It is mine
 
@DanielsPitkevičs so does that equate to 'nothing'?
 
@DanielsPitkevičs , lack of skill
 
@Thanks Danish but it would be great you will share with me :)
 
mine, precious, all mine...
 
1:11 PM
:)
 
@Leigh Well, the thing is that maybe sometimes it will do something better - and all in all, I can try till it will.
 
@Leigh , hehe .. i am trying to make one , for which the answer would be "it lets you use MVC"
 
gf washed my pen drive
 
@tereško How do people usually get skill?
 
good thing it didnt bleed all over the clothes
 
1:12 PM
@tereško Am I still stuck in the past or something? I write libraries...
 
eh eh
 
@Leigh So do I
 
@AlexSmith JSON is more JS-friendly and less wordy. not enterprisey enough to really waste your time and bandwidth, though -- that's what XML is for
 
@tereško Sweet silence
 
User generated content fail: arcticready.com/social/gallery (safe for work)
 
1:14 PM
@DanielsPitkevičs , forgive me for having to take a piss
 
@tereško Never
You think Zend was made that good with first time?
 
@DanielsPitkevičs , you gain sill by reading books and trying to implement what you have learned from them
 
@chao: Thanks :)
 
How many versions there are?
 
1:15 PM
@ircmaxell do you have a rough idea of a roadmap for passwordlib?
timewise
 
@tereško except for me, i just was born with skill
 
for what?
 
@tereško I've read all I need. And actually, theoretical skill is useless - You need to try everything on Your own
 
@DanielsPitkevičs The book of Google.
 
@Leigh Show me book where is that written
 
1:16 PM
@DanielsPitkevičs theoretical skill is not even close to useless. it's what keeps you from having to try every single thing that doesn't work.
 
@DanielsPitkevičs all you need to do is include the php library for jQuery
 
oh .. i remember who this guy was
 
@cHao Ok, sorry, I wrote incorrectly - theoretical skill without practical skill is useless.
 
the one with the mystical cache classes
 
but first you must make, and make install from the CLI before you add it to your framework
 
1:17 PM
@gorelative F** for real? Then I can't formulate my questions. That is not what I need.
 
@DanielsPitkevičs it's not useless in the least, but it does tend to be over-valued.
ok, off to work
 
later irc
 
why do you want to integrate jquery in your framework ?
 
i use this " >/dev/null 2>&1 " in cron job but still cron job create files any idea how to stop cron job to creating log files
 
sick em' @tereško
 
1:19 PM
@tereško Hmm, why not? I like jQuery and it's great usage.
 
@gorelative , don't tell me what to do , and i won't tell you where to go
 
in JavaScript, 8 secs ago, by Neal
: http://stackoverflow.com/q/11522390/561731
 
he wants to use $.ajax from jQuery... with his framework...
 
@DanielsPitkevičs , i like pizza and ice cream , but i would never try to mix them
 
mmmmm icecream
 
1:20 PM
@gorelative: name change? Tired of all the inter-Mike pinging? :)
 
@tereško Well, if You haven't tried to mix them, how would You know that it is bad?
 
@tereško
> Can you please elaborate so I can bring the necessary updates?
l00l
 
wat ?
 
@Leigh i did it for MikeB's sanity..
 
i use this " >/dev/null 2>&1 " in cron job but still cron job create files any idea how to stop cron job to creating log files
 
1:23 PM
specify where it write the log to
and break the chmod perms on the file
 
@DanishIqbal , that should be asked on ServerFault
 
or is this what you mean -> superuser.com/questions/40760/…
 
@gorelative Much appreciated :D
 
in JavaScript, 7 secs ago, by Neal
:http://stackoverflow.com/q/11522390/561731
 
da fuq?
 
1:25 PM
ok thanks @tereško
 
Why would anybody do this?
1
Q: Where is a PHP function located in? (as in which file)

user190284I have a fairly complex OOP PHP project with lots of classes, libraries and helpers to work with. While debugging, I sometimes find it hard to locate which instance of a specific function is used in when it exists in different files or classes and I can't tell which class or library was included...

 
@gorelative its create files outside www folder
 
have many functions with the same name!
 
earth... open yourself...
 
@DanielsPitkevičs since your understanding of OOP is severely limited, you might reconsider that
 
1:27 PM
@Neal Agreed.
Drupal-style "OOP"?
 
@deceze No idea... but it is dumb
I don't use Drupal...
 
@tereško Understanding of the OOP correct usage, You mean. And that I will get only from creating frameworks on my own.
 
@Neal Neither do I, just heard of it by reputation.
 
@tereško Have You tried to create framework?
 
yes
 
@tereško Any links?
 
@PeeHaa , this is kinda sad
 
@DanielsPitkevičs I have as well ^_^
 
@tereško You can just leave out kinda in that sentence
 
@DanielsPitkevičs , no , all the old version have been destroyed with fire
 
1:29 PM
jesus christ, they're going to take over the world. They're driving cars now, and even making decisions on what feels good.. engadget.com/2012/07/17/…
 
@tereško Haha, and You are saying something to me. Miserable
 
JUDGEMENT DAY COMETH
 
Ok got to go
C ya
 
yeah ... so i have been deemed unfit to comment on frameworks
 
@tereško Is that a badge?
 
1:31 PM
it should be
 
anyway .. i'm AFK for hour or so .. need to get downtown
 
can anyone help me with php query? just started with it..
function get_google_result($keyword){
	$keyword = preg_replace( '/\s+/', '+', trim($keyword));
	$q = 'https://google.com/search?q='.$keyword;
	phpQuery::newDocumentFileHTML($q);
	foreach(pq('ol#rso li.g h3.r a.l') as $a){
		echo pq($a)->attr('href');
	}
}
getting nothing with the selector
 
@Sisir wtf. there is a php jQuery now?
WHY
 
1:38 PM
da fuq
 
@Sisir I saw.....
 
it makes scraping easy.. they said :/
 
holy balls
 
@gorelative LOL
 
I NEED THIS
 
1:42 PM
Oy...
 
sarcasm
 
i don't get why phpquery exists, considering the power of the built-in DOM stuff
DOMXPath does everything i'd need some jquery'alike for
 
@cHao Probably does it better too
 
Hope you guys won't get a heart attack from this then: querypath.org
 
@deceze "tuned for server side use". Oh really.
 
1:50 PM
@deceze oh god! its already too much Cholesterol!!
 
@Leigh Well, something like that can hardly run on a client now, cou--- never mind.
 
@deceze Maybe it uses multi-threaded worke... oh.. oh yea
 
lol
 
Is anyone here or can help?
JK for is everyone?
 
word
 
2:04 PM
@ircmaxell which word?
 
@PezCuckow eh?
 
@Neal yeh not really sure what's going on with my english...
Whoever stole my copy of Microsoft Office, I will hunt you down. You have my Word.
5
 
ay dios mio
 
the bird
 
is living in the alps
@Neal
 
2:08 PM
@webarto yes? ^_^
 
saw an opportunity for i.stack.imgur.com/z5nAO.png which
4
 
@webarto bit the bullet when
 
a tumbleweed came rolling through just as
 
@deceze the 4:01am train came
 
I am a bit confused-- What is the difference between <> and != I get the same result
precedence perhaps?
 
2:13 PM
@Neal ...now you hath broketh it again :(
 
where are you trying to use <> and != together?
 
If I have class Author and I have a method getBooks to fill my property $authorsBooks which is an array of Book objects, would I inject the Book model with getBooks, in the constructor, or would I do this a completely different way?
 
I was writing this new framework when
 
I was just curious because I didnt know about the "<>" operator so once I found out what it was I realized it performed same thing as the more common !=
 
2:14 PM
@deceze No i didn't, you can continue that :-P
13
Q: What is the difference between <> and !=

NealIn PHP to check non-equality (without checking type) you can do this: if( A != B ) { DO SOMETHING; } But you can also do this, which has the same result: if( A <> B ) { DO SOMETHING; } Is there any difference? Does using != over <> change the evaluation in any way, shap...

 
<> reminds me of brainfuck
 
@Neal But thou shall end with a conjunction... (is that the right term for it?)
 
@deceze eh? you can say the 4:01am train came around the bend, when :-P or anything else
 
Odd, the docs are wrong there
 
@Neal Exactly, putting in a trailing "where" was your job :P
 
2:20 PM
@ircmaxell Wadya mean?
 
second
 
@deceze ehhh
 
is Yii better than Kohana?
 
0
A: What is the difference between <> and !=

ircmaxellForgetting documentation for a minute, let's check out the source code. Let's start with the scanner (lexer): http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_language_scanner.l#1354 <ST_IN_SCRIPTING>"!="|"<>" { return T_IS_NOT_EQUAL; } So they parse to the same token. Let's check ...

 
@ircmaxell Wow. You really went in on that one
 
2:25 PM
@ircmaxell clap clap clap
 
who needs docs when you have source code
 
hrm, it looks like the precidence docs are wrong...
 
!= === <>
 
@MikeB lol
 
> Well .. i could aways go with "because CI is horrible piece of code" and then turn this answer in flame-war thread, but in this case it would not actually address the question. Though, if you want to discuss this, you are welcome to StackOverflow's php chat room.
hehe
 
2:38 PM
@ircmaxell Your source-code answers always help me a lot.. I'm like @webarto in that I much prefer source over documentation. Getting a greater understanding of C and the PHP implementation are very helpful.
 
@ircmaxell <> is your only option in Delphi (for the sake of trivia)
and it also parses to be !=
 
how to order a result of one table based on other table condition....
SELECT * FROM topics WHERE topic_cat = '$id' ORDER BY posts.post_date DESC
 
@rdlowrey i got the DI idea. I'm trying to implement it in procedural style. Could you take a look at the code? pastebin.com/agi5fnX7
 
@PradyumnaSharma JOIN those two tables on something
 
I am building a simple forum . That query is for showing the latest updated topic. So there is no relation between the topic table and posts table..
5
 
2:44 PM
shish... ^ Imma star this
 
@PradyumnaSharma Aaaariiiighttt.... Sooo... what did you want to sort by again?
 
I want to sort the topics table by the latest post date in post table
each post is linked to topic
 
SELECT * FROM topics topic
LEFT JOIN posts post WHERE post.tid = topic.id
WHERE topic.cat_id = 1
ORDER BY topic.id DESC
 
BANANAS!
 
2:49 PM
I know this isn't the best place to ask but.. does anyone know of a simple screen annotation tool that works in KDE? I just need to be able to draw simple shapes/doodles so I can take screenshots. I've used Compiz Annotate in the past but it doesn't seem to work on Kubuntu
 
there is a jQuery plugin for that @PradyumnaSharma
 
That is the designer view in PHPMyadmin @webarto
if you keep a relation between table it shows the lines
 
cool, probably some HTML5 feature
 
Not very useful for working but good for demonstrating/showing
naah it is there since a long time
 
so, what is your question?
 
2:54 PM
Deleting '.../css/views'
[Jul 17, 16:46:08] Commit succeeded, but other errors follow: Error bumping revisions post-commit (details follow): Directory '.../css/views' is missing Directory '.../css/views' is missing
Committed revision 3453 by user "deceze".
svn, dafuq!? ;_;
 
blame @deceze
 
$ svn blame @deceze
svn: '@deceze' is just a peg revision. Maybe try '@deceze@' instead?
Now imma "just a peg revision" ;_;
 
^_^
 
SELECT * FROM topics
LEFT JOIN posts ON posts.post_topic = topics.topic_id
WHERE topics.topic_cat = 1
ORDER BY topics.topic_id DESC

this is working but i am getting duplicate topic rows.
SELECT DISTINCT topics.topic_id,* FROM topics
LEFT JOIN posts ON posts.post_topic = topics.topic_id
WHERE topics.topic_cat = 1
ORDER BY topics.topic_id DESC

giving me error
 
that was just an example... your design is not good...
 
3:02 PM
Hey ho!
 
good mornin'
 
@webarto 1800 here :)
 
PHP Chat LLC, how may we help you?
 
svn up re-download of large directory over throttled 3G... \^_^/
 
@webarto I linkedin you (is that the correct word to use? What is the "linkedin" version of facebooked?)
 
3:06 PM
svn git ^^
 
@Neal What is the English version of "facebooked"?
 
@deceze idk what?
 
@Neal I accept ^_^
 
Can I facebook you for a conference?
 
has anyone already started a collection of canonical answers for frequent PHP question duplicates?
 
3:07 PM
"I facebooked a magician for my kid's birthday"?
 
@markus-tharkun RTFM maybe ^_^
 
man toaster :P
@deceze I stackoverflowed question, how does that sound?
 
@Neal lol
 
@webarto >_<
 
I stackoverflowed question and I twittered it
I starting to hate word custom...
 
@webarto ...and tooted it. Proper English, please.
 
user895378
@hookman That looks fine. The only suggestion I would offer is please always use braces around your control structures (if/then/else in your example). PHP isn't Python where indentation equals intent. Avoiding braces is asking for trouble.
 
g'morning :}
 
3:22 PM
smile with one tooth?
also, morning
 
Hello, after executing this query $query = "SELECT count(*) FROM users` WHERE (user='".$name."' AND verify_us='".$verify_us."')";, var_dump shows num_rows = 1`. whereas in actual, no single row contains both $name & verify_us in the same row. Is my query wrong?
 
@Davinder COUNT() always returns one row with the result of the count.
The value may be 0, but not the rowcount.
 
I want to say, in simple words, tell me if there is a row which contains name & verify_us in the same row.
 
@rdlowrey Thanks for the feedback. Oh, that's my bad habit: not using braces when I have one line of statement. The result is having problems when I add more lines to statement and forget to add braces :)
 
@deceze Oh, ok, so chould I simply use only * and leave count()? All I want is that if the row containing $name contains the verify_us or not.. $name is always there, verify_us can change time to tome...
 
3:26 PM
@Davinder The query is fine. On the PHP side, fetch the one row that is returned and check if $row['count(*)'] == 0.
 
@deceze Oh, ok,let me try that. I am trying to ask MySql that in the row where $name is name-value, and verify_us is Verify_us_value`
 
who here has played with rsync
thoughts on using a shell script to rsync a vmware file between a laptop and a desktop
 
0
Q: to draw html inside js file

DeepmalaI have to keep a div and inside that I have to have answers and then the div should close.Even after closing the div after the questions in the loop,The div div gets closed without the answers.. code : if(a.isQuestion == "true"){ ansdetails=""; ansdiv =""; ...

 
I have no idea how to modify this file: lxr.php.net/xref/PHP_TRUNK/Zend/zend_language_parser.y
So much to learn about PHP source.
 
user895378
@orourkek My internet connection decided to take a break and I just saw your content-appropriate greeting. Very nice :}
 
3:34 PM
@LeviMorrison teach me once you've got a handle on it :)
 
@rdlowrey this smily face doesn't get enough use, imo :}
 
@orourkek What is it? Smiley with a beard?
 
user895378
 
You call that a beard? :{o}
 
3:37 PM
@PeeHaa either an evil beard/goatee, or a more timid version of :3
 
@LeviMorrison What are you up to?
 
i got my hand slapped :(
 
user895378
I just assumed you dropped the :} bomb in response to my plea for control structure brace usage.
 
Plus it has the benefit of working in parentheses (like this :})
@rdlowrey I did :P
 
4 hours ago, by PeeHaa
@webarto Do you hate curly braces?
:D
 
3:39 PM
I didn't look at the code you were talking about, though
 
Can someone help me with this random hack? codepad.viper-7.com/dSwIL0
Trying to create a variable class name by concatenating the class name and instantiating it, within the same line.
 
@NikiC I'm looking to add default implementations for interfaces.
class_entry_type T_STRING extends_from implements_list T_DEFAULT T_CLASS
Except, it only exists for Interfaces.
interface Uri default Url {
. . .
}

class Url implements Uri {
. . .
}

$uri = new Uri(); // valid, creates new Url
 
@Greg php.net/manual/en/language.operators.precedence.php Order of precedence means you are attempting to instantiate $h then concatenate $w to it. You will need to concatenate the string into a new variable: codepad.viper-7.com/ZYImkI
 
@CharlesSprayberry I prefer $c: codepad.viper-7.com/o7201r
 
@CharlesSprayberry Thanks, I was wondering if something like this was possible $hw = new ($h . $w) (); (it isn't)
 
3:45 PM
slightly more descriptive :P
 
@orourkek :P
I would say one letter variable names are almost never descriptive. The only exception would be a loop counter variable.
 
what did i miss
 
Has anybody here worked on social engine ?
 
@LeviMorrison what's that?
 
2 mins ago, by Levi Morrison
interface Uri default Url {
. . .
}

class Url implements Uri {
. . .
}

$uri = new Uri(); // valid, creates new Url
 
user895378
3:47 PM
@CharlesSprayberry +1
 
@Greg it is, I'm almost sure ... different syntax
 
@PeeHaa , i tried to be honest
 
@LeviMorrison So you're modifying this production: lxr.php.net/xref/PHP_TRUNK/Zend/zend_language_parser.y#379 ?
 
@markus-tharkun Can you help me work this out?
 
@LeviMorrison Looks ... strange
 
3:48 PM
@NikiC Well, I'll have to modify more than that.
 
@webarto no, it isn't .. though they address different usecases
 
@Greg you need curly braces for such stuff
 
@NikiC It's done in Google Dart, and to be completely honest, I <3 it.
 
user895378
I'm so addicted to the TypeFu chrome app.
 
@markus-tharkun codepad.viper-7.com/UjmvVj still getting parse error
 
3:49 PM
@LeviMorrison Sure. A very simple implementation would be to alias the Url class to Uri (in your example). But that's not particularly clean
 
@rdlowrey I came accross that but haven't tried it, is it that good?
 
user895378
@orourkek Don't take my word for it, try it yourself.
 
@CharlesSprayberry Ummm bc it is wrong...
@CharlesSprayberry codepad.viper-7.com/zKUFAj
 
@NikiC . . . It's not an alias. It's still an interface. Lots of times you have an interface so others can interact with your stuff, but you only have one implementation of the interface in your code.
 
@rdlowrey I don't need to improve my typing speed, I need to improve my typing quality prevent myself from multipinging ;)
 
@Neal I think you came in a bit late
 
$hw = $h . $w;
$hw = new $hw();
 
@LeviMorrison Yeah, I got that ;) But PHP allows having a class and an interface with the same name, or doesn't it?
 
no
 
@Greg I guess
 
3:51 PM
No?
 
@NikiC I don't think it does.
 
@Neal trying to do it in one line
 
interfaces are defined with the same mechanism that classes are
 
I thought that was one of it's quirks ^^
 
@Neal Yes, that is my point. I had originally pointed out that you would need to create a new variable. Somebody had mentioned that you should be able to concatenate and instantiate on one line. The codepad was intended to point out that you can't do this.
 
3:51 PM
nope...interfaces and classes share namespaces
 
@CharlesSprayberry ahhhh kk
 
@rdlowrey I like it so far, but I always have my hands ina different place so none of their finger recommendations work...
 
user895378
@PeeHaa lol nice
 
@rdlowrey whats your l9 wpm?
 
3:52 PM
@ircmaxell Yeah, just tried it an it really doesn't work
Always thought it would ^^
 
@NikiC It's basically creating a factory on the language level.
 
user895378
@Event_Horizon According to my aggregate stats I'm in the 65-70 range.
 
@tereško not sure why Kohana is avoided... I was observing todo articles for Tuts+ and there were just CI, Fuel, and Lavarel in plan...
 
What?:
1
Q: Calling my website from my phone

ZeroIs there any way to call my website to receive some data about it? For example: I connect my phone to my PC and call it from another cell phone and then i press 1 and it will tell me how many users online or something like that?

 
3:56 PM
i don't know if i like the idea of default implementations for interfaces. seems to me it'd get you too used to saying new Uri(), and treating the interface like a class
 
@NikiC: source code saves the day again:
7
A: What is the difference between <> and !=

ircmaxellForgetting documentation for a minute, let's check out the source code. Let's start with the scanner (lexer): http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_language_scanner.l#1354 <ST_IN_SCRIPTING>"!="|"<>" { return T_IS_NOT_EQUAL; } So they parse to the same token. Let's check ...

 
has anybody here ever worked on social engine?
 
@DineshVenkata idk
 
I'm gonna try it on Dvorak
 
3:57 PM
@DineshVenkata a social engine or 'social engine' as a product name?
 
it is an api for creating social networking websites @webarto
 
@webarto , because the kohana's tutorials have short expiration date .. each 12 month they release new minor version , 3.0, 3.1, 3.2 .. which has changes in API
 
@markus-tharkun yea the product social engine I mean
 
ok... haven't
 
I was building social network this morning while I was drinking coffee and reading news...
 
3:59 PM
well . actually konaha's versioning is a bit different then in other frameworks , @webarto , it's : [catastrophic].[major].[minor].[patch]
 
oh I have a problem of page redirecting on ubuntu
@webarto
 

« first day (640 days earlier)      last day (4301 days later) »