« first day (662 days earlier)      last day (4268 days later) » 

8:00 PM
great question
 
@Chris I would use break for consistency with the rest of the switch
Or do the other cases also return?
 
In which the other cases do not return
 
Is there a PHP spec, or is it a spec-by-standard-implementation thing?
 
I hate not seeing a break below each case, but this looks dumb:
		default:
			return null;
			break;
 
break just in case :P
 
8:01 PM
I know, peanuts, really is a code conventions question
 
if (...)
{
    return true;
}
return false;
I kind of write everything like this :) I would keep it switch in your case
 
Ewwww, I am a 1TBS guy
 
It does look stupid... Though, I definitely always use the break... I think of switches kinda like an if statement with the case something: being the if parameters and break; being the endif -- habit i guess
 
Justin Biber!! o no..... with coding skills!! oops....
 
@Chris 1TBS is now confusing to me :P
 
8:04 PM
Not that I use cases often (I used to use them all the time)... Once upon a time I built an entire website in 1 set of nested switches... Was a CLUSTER F*CK
 
@webarto K&R now?
 
I've heard people joke about people using curl, do you guys use streams now?
 
@rdlowrey Thanks again for the mocking help.
 
@Nick Not me, nothing inherently wrong with curl
 
u mean curl is a method of joking.. i must learn it...
 
8:07 PM
@Nick Don't cross them.
 
@Chris Allman I think :\
 
user895378
@LeviMorrison no problem. I've been trying to figure out the best way to test the socket stream bits in the client all afternoon ... think I've finally got it right
 
Curling the sport is a joke, though
 
@Chris no way. :)
 
user895378
@Nick curl is fine, but IMHO the php curl binding has a terrible API. Also, the libcurl dependency isn't always the easiest thing to procure for windows users.
 
8:08 PM
@rdlowrey Is there a reason you have all those spaces in your http client file?
 
user895378
@PeeHaa spaces?
 
user895378
because tabs are stupid?
 
i know only two curls. the 'Curl ofvector' and 'Mr.Carl'
 
Pro-tip: if your "sport" requires a broom, you are not playing a sport -- someone tricked you into doing house work. See also: Tom Sawyer and the whitewashed fence
4
 
@Chris Curling is a sport
 
8:09 PM
haha
 
@Chris and requires a broom
 
:D
 
And quidditch is a sport!
 
@rdlowrey I want to push something to you (tabs -> spaces), only to find out there are a shitload of redundant spaces in your files left behind. Can I just remove those (actually my texteditor does that for me)
 
@Chris Tell that to the Quidditch people
 
8:09 PM
@rdlowrey wooo wooo wooooooooooh. ofc they are. That what I want to fix :)
 
Okay thanks guys, I got the wrong impression I guess
lol Curling is hilariously boring
 
Gees what do you think I am??? A tabs lover??? You know me better than that :) @rdlowrey
 
user895378
@PeeHaa Oh yeah, sorry. I've been meaning to install a gedit plugin to take away the redundant spaces. Go for it.
 
little learning is a dangerous thing....... that make you a lethal weapon
 
I use curl often still @Nick -- mainly when working with an outside API or something but yeah
 
8:10 PM
SPACES FTW!
 
@ircmaxell Fair enough. Hey, we're having a tournament at my place this weekend. Solid wood floors. Registration is $7.00 per player.
 
@Nick nothing wrong with it...
 
lol
 
@Justin right that's what I'm using it for I got the wrong impression
 
hi guys. wow, stackoverflow has a chat. that gave an idea - making my own chat. but where do I store messages? In database?
 
8:10 PM
@PeeHaa \t 4 (spaces) life :D
 
no in the database
 
@webarto You got it bro! :D
 
@Chris If you don't mind me throwing a 40 lbs stone on your floor, I'd be happy to do so...
 
lol
 
Instead of stones, our league uses cats.
 
8:11 PM
Curling is pretty damn hard I tells ya.
 
they are softer?
 
well then, u can throw it on his head
 
It looks so easy on the telly. Just yelling and it works right? Wrong!
 
@PeeHaa my parents made me take it one year
 
@PeeHaa by yelling, you direction it...
 
8:12 PM
IMO, curling is bowling after severe flooding.
 
@Chris lol cats.. I've got 2 cats and a 4 year old daughter you can use... swing by and pick them all up.. PLEASE
 
watching curling (especially amateur) is very boring
 
LOL, what a derail! :D
 
@Justin hide that from your wife :P
 
user895378
I'm not going to lie, I watched curling during the last olympics because the Canadian chick was hot.
 
8:13 PM
this thread is now hijacked
 
@webarto I'm at work, and I use linux... My wife has no clue how to use linux lol
 
:D xD
 
Heh, Linux: keeping wives off your computer since 1991
 
my girlfriend just asks me for big bang theory rips haha
 
haha
 
8:14 PM
haha
 
My wife asks me for big bang theory too... That's how we got our daughter ;)
 
@rdlowrey is that you br0? lookin' good!
 
user895378
@webarto lol
 
@Justin face the consequences of your theory.
 
8:15 PM
:D
 
@webarto Told my wife that I'm only dad when she's asleep.. so far so good...
 
omg... are u all seriously married !!
 
I am, 13 years this November
 
congrats...........
what, just 13.
 
@blackbee yes.. Don't ever fall in love with a woman.. or the devil vagina!
 
8:18 PM
@blackbee nope
 
there is common thing between women and mobiles
 
neither of them ever shut up?
 
@Chris mine is on Debian, and I'm on Windows :D
 
Chris, do you like it? I'm only 21yo, so I don't really know much about this stuff, but in my opinion - wife get's boring after few years. Is it true?
 
both makes u feel: shuold i have waitd i would have a better one. (don't mind)
 
8:20 PM
@MichałKról years?
 
@MichałKról get boring lol ?
 
@MichałKról that all depends... I was with my wife for 10 years, living with each other for 5 years before we got married 2 years ago... If you have a connection, communication, and trust marriage is great...
 
weell, i don't plan on marrying....... someone else is planning on marrying me........ i hate that.......
 
@Justin I guess that's what true love is :P
 
8:22 PM
@blackbee haha like in movies :D
 
user895378
I'm using the hell out of some static in a custom stream wrapper test stub right now. It feels dirty :)
 
i only see action movies......
 
heh
 
Though by communication, I don't mean her never shutting up...
 
@MichałKról I'm 23 and 7 years with a girl, we're living together, but not married yet, like @Justin said, doesn't mean anything...
 
user895378
8:23 PM
@GordonM Soon I'll be able to apply the custom stream wrapper knowledge to your question -- finally.
 
@rdlowrey
 
@rdlowrey I'll modify your code if you agree, to be able to do "handshake", and send data... or it can do it as is?
2012-08-08 20:51:48 [info] [client 192.168.0.102:63964] Connected
2012-08-08 20:51:48 [info] [client 192.168.0.102:63964] Performing handshake
2012-08-08 20:51:48 [info] [client 192.168.0.102:63964] Handshake sent
 
@MichałKról , yes in database , but most likely a noSQL database
 
you mean like a file?
 
no , i mean "noSQL database"
In computing, NoSQL (mostly interpreted as "not only SQL") is a broad class of database management systems identified by its non-adherence to the widely used relational database management system RDBMS model, that is NoSQL databases are not primarily built on tables. The following characteristics are often associated with a NoSQL database: *It does not use SQL as its query language :NoSQL database systems rose alongside major internet companies, such as Google, Amazon, and Facebook, which had significantly different challenges in dealing with huge quantities of data that the traditional R...
 
8:26 PM
ok
 
user895378
@webarto I don't have that implemented right now -- It either connects successfully and returns the stream or a ConnectException is thrown with the relevant error information. What benefits would there be?
 
user895378
(I'm asking because I'm not sure)
 
user895378
Also, I'm working to get test coverage on the Client today and tomorrow, so it may be worth waiting on pull requests until there are tests to work against.
 
shit , i ignored an user by a missclick. how do i undo it?
 
Handshaking is just a series of requests, so what's the need to magically do it? Extend it yourself :)
 
8:29 PM
@MichałKról , by clicking on the small user icon in the userlist (assuming that i was not the ignored user)
 
user895378
@LeviMorrison I'm not sure I understand what you're saying.
 
@rdlowrey Unless I don't understand 'handshaking', it's just a series of requests, right?
 
@MichałKról I'm 32, we hooked up when we were 18. We both had casual relationships prior to being married; I prefer marriage. Unlike many of our generation, we didn't get married because she was pregnant, but because we knew we weren't going to mess around with anyone else. When you find something that works, why mess with it? Plus, now we have kids, so there's just really not an alternative. At this point, "do you like being married?" is akin to "do you like breathing air?" Of course I do :D
 
@teresko yeah, it was you, haha :D I was trying to select your username with special char ś. but I unignored you now. im stupid
 
@rdlowrey By the way, I just made a class that has __get and __set magic that mimics the behavior for my PHP 6 RFC except typehints. That would require annotation parsing, and since the magic already adds overhead I figured it wasn't worth it.
 
8:32 PM
@rdlowrey you are right, that doesn't fit Clients role... keep on the good work :)
 
this chat has autocomplete for usernames , you write @ , then first letter of nickname , and it will show you the list of options , then you press to select the username
 
@LeviMorrison yes, send, recieve, send...
 
@Chris nice explanation
 
user895378
@LeviMorrison Oh I see what you're saying -- I'm not sure what the difference would be from a series of requests. If handshaking is nothing more than a series of requests ... well the machinery is already in place to do each request individually
 
@tereško ok, in IRC i used to click on username
 
8:33 PM
@MichałKról in IRC ther is the same mechanic
with the tab keys
 
I guess that depends on the irc client
 
user895378
nevermind.
 
@Chris I would star that but someone might consider it too gay... (sheds a tear)
 
@MichałKról available in Irssi , BitchX , Xchat, mIRC and OperaIrc
 
8:38 PM
Hey guys. I'm having some trouble with PDO and inner join returning DB info.
Here's a link to the code: http://pastebin.com/fUfckvLw
 
heh
 
i am using a mysql database....... but i was thinking won't the process of inserting and fetching the message from databse take long if the numer of conversation increased........ or is it like i am dreaming a bad dreaem
 
you need to JOIN 3 tables :) @AlexCastro
 
What do you mean, @webarto?
 
@AlexCastro have you tried running query with some MySQL client tool, does it return results? Are there any errors?
 
8:40 PM
No errors, just no data pulled
There are three different tables, the students table, the enrollments table, and the classes table.
The purpose of that code is to list the classes a student is enrolled in.
 
Hi all ^_^
 
use a foreign key instead
 
@Chris I don't think to many people are like that, or even think like that... majority are YOLO idiots (in my case)...
 
Hey Neal
 
@AlexCastro whoa that is an interesting link name there!
and they said the hash was random....
 
8:43 PM
haha just saw it
 
what is a random hash !! i heard of hash.......
 
SELECT enrollments.*, courses.*, students.* FROM enrollments
LEFT JOIN courses ON enrollments.course_id = courses.id
LEFT JOIN students ON students.course_id = courses.id
WHERE enrollments.student_id = ?
@AlexCastro maybe something like this, altough you haven't pasted your table structure, so blind guess..
and turn your error reporting on...
 
@webarto this is the structure.
students table: id - username - password - email
courses table: id - name
enrollments: id - student_id - course_id
 
y need to join, why not a foreign key instead? @webarto
 
@rdlowrey Can you make sure a function was called with certain types of parameters?
 
user895378
8:45 PM
@LeviMorrison I'm not sure :/
 
hi :P
 
@LeviMorrison Do you mean particular data types?
 
@GordonM Yes.
 
If it's an object or array you can type hint, otherwise you'll have to use is_foo() in the function body and emit some kind of error if the data type isn't what you want.
 
user895378
@GordonM In a mock?
 
8:46 PM
Oh, missed that bit :P
 
omg SO asked if i am a human!! then wtf am i ! vaccum??
 
user895378
sorry, context from way earlier in the day :)
 
@rdlowrey should the http client be stable now?
 
user895378
talking about mocking in phpunit
 
Ah
 
user895378
8:47 PM
@PeeHaa It's pretty stable, but I'm working on getting full test coverage on it today and tomorrow.
 
What about called with a certain number of parameters?
 
@rdlowrey I might have ran into an issue, but I have absolutely no idea what the hell it is? Is it possible?
 
user895378
@PeeHaa It is possible. What's happening?
 
defining catname: $this->view->catname = $cat;
 
user895378
@PeeHaa Does it have to do with setting a low timeout value and making multiple requests to the same host from a single client instance by any chance?
 
8:49 PM
in view: echo $this->catname; returns error
why?
 
because you did something wrong
 
(Undefined property)
hmm
 
@rdlowrey Don't think so.
 
LOL @tereško
 
@webarto Could you help me now that I've sent you the structure? Been stabbing at it myself and it isn't working.
 
8:50 PM
@MichałKról , most likely that the value was not assigned to the template
 
but this syntax is good, right?
 
change it to dogname
 
@rdlowrey I've been trying to setup the soundcloud service for the oauth library for two days now, but the fucker kept complaining about invalid_client. This often is the case when the body params are fucked up in some way. So I finally resorted back to my old curlclient and with that the request does work
 
i have to keep the cat dry
 
yeah , most of cats don't like water
 
8:51 PM
my point exactly
 
I have got no idea where I should go to find out where / what goes wrong (yeah very helpful... :P)
 
@MichałKról , without actually seeing your code , it is impossible to tell what you did wrong
 
@tereško if i pust that in __construct() it works, but in other function - not so much
 
user895378
@PeeHaa Well, the request body should be set by the user. Also, is it possible you're setting the body but not specifying a possibly necessary Content-Type header to go along with it?
 
8:52 PM
by seeing $this->view->catname = $cat;i can only tell that your "view" is leaking encapsulation
 
@rdlowrey Lemme check
 
user895378
@PeeHaa If you can show me code and the response you're getting I can be of more help ...
 
we cannot see what is on your computer
 
What could I put to @link tag value ?
 
we don't know what is in your source code , because you have not published it anywhere
 
user895378
8:54 PM
@hookman a URI, I believe.
 
user895378
perhaps to a documentation page or something
 
There will be no public documentation page
 
The source code is owned by a client
after i finish it
 
@MichałKról , that tells nothing about what is in $this->view
 
8:55 PM
 
phpDoc asks to provide @link tag :(
 
headers and body are what is returned
 
good ni8 guys
 
view renders views/category/page.php and I want to show php data in this view
 
user895378
@PeeHaa And what's the $request object look like?
 
user895378
8:57 PM
Also, is the request body actually application/x-www-form-urlencoded?
 
@webarto I had to Google YOLO, but yeah, I know what you mean
 
@Nile hey :p
 
@rdlowrey yup
 
oooooooooh
 
@MichałKról are you really so dense ?
 
8:58 PM
i know what i did wrong , nvm
 
Calling someone dense..
 
i asked you to source of "view" instead you show code from controller and tell that "view renders views/category/page.php"
 
Dense is something filled tightly with substance.
 
is it just me or are there less codeigniter questions these days?
 
i just added "public $cat; " in the class and it works
 
8:59 PM
shame, easy rep..
 
@AlexCastro , have you tried learning english ? urbandictionary.com/define.php?term=dense
 
user895378
@PeeHaa Is the code that generates the request on github somewhere I can see?
 

« first day (662 days earlier)      last day (4268 days later) »