« first day (1341 days earlier)      last day (3832 days later) » 

00:00
I started yesterday but i was tyring to ask about getting query results with PDO for my login pages
@Fabien without the login pages working I can't test it correctly.
Create a new repository in git. Get something setup specifically to try out PDO
12,157,692,622,039,623,539 = 1¹ + 2² + 1³ + 5⁴ + 7⁵ + 6⁶ + 9⁷ + 2⁸ + 6⁹ + 2¹⁰ + 2¹¹ + 0¹² + 3¹³ + 9¹⁴ + 6¹⁵ + 2¹⁶ + 3¹⁷ + 5¹⁸ + 3¹⁹ + 9²⁰
00:03
@Fabien I did that yesterday but how can I test the code if it is in git?
Think of git as a cloud hosted code place. (it's a lot more than this but go with it)
@ircmaxell 0¹² = 0 * 0 * 0 * 0 * 0 * 0 * 0 * 0 * 0 * 0 * 0 * 0 * 0, right? :)
By host I mean storage only. When you make and finish a change to your website you push (upload) it to your git host
2¹⁶ == 2 … boring… ^^
user895378
00:04
yesterday, by DaveRandom
@Fabien Yeh it will probably take a while, it took me a long time to grasp it as much as I do and there are probably a lot of things I still don't fully get. I have to say, working with php-src improved my git understanding on an exponential curve, I know @rdlowrey would agree with that as well
user895378
^ Late to the party, but yes: php-src definitely forced me to level up my git-fu
@bwoebi how do you figure?
oh, 2 ^ 1 ^ 6?
@ircmaxell Wait. Is that 2^16 or 2^(1^6)?
Pretty sure php-src would level up many of my lacking abilities :)
00:05
@Fabien ok I build my code and test it for the day and when I am done I upload it to git?
@JukEboX Try Git
@ircmaxell my browser represented it as 2^1^6
@JukEboX Pretty much.
@Fb
@Fabien i started a bitbucket using git yesterday
Your VM has mysql server installed?
00:07
@Fabien yes it does although I do'nt know if it is working correctly
test it by typing 'mysql' assuming user is root and there's no password.
@bwoebi yeah, it's definitely 2^16
Wait. Can you SSH in to your VM? or access it through command line?
@Fabian I get the root a password. I made the test user accoutn and password
@ircmaxell yeah, only logical when looking at the suite… but first look and wondered^^
00:08
@Fabien and I think I gave it priviliges althoguh when I do a SHOW GRANTS in mysql it shows nothing
@Fabien I am using VirtualBox
@JukEboX What about 'show databases;'
Says 1 row in set and its information_schema
which can't be right because I imported a 30M DB into yesterday
@JukEboX So it probably works fine. do 'CREATE DATABASE pdo_test;'
00:12
hang on
@JukEboX Take a look at vagrant, might be cool. But hey, you might get overloaded by "take this, try that, no just use these" :)
I di'nt log in as adming first one sec
doing a mysql -uroot -p
@HamZa I installed it yesterday. no idea what it did
lol ok
@Fabien just logged in as DB admin and now I can see all my DB
Btw I installed a SSD in my laptop. It's blazing fast now :D
00:14
So create one called pdo_test
Did that
@HamZa got one on mine and it is ridic fast
Now create a table and add some rows. Doesn't matter what. Just anything.
See you later chaps, I need to sleep.
@Fabien I can see te tables and db of the one I added yesterday
Ok so use that one then.
Go create a fresh repo. Add some code to connect to that database using PDO.
Try and retrieve a single row.
00:17
Ok I have the repo made on my dev VM
Here is my problem
the MYSQL DB is the exact smae name, usersname, password as my live one.
When I load the page
none of the SQL works
I can't login
It shows you entries from the DB
BUT
my live site does
Yeah. That's not what I am asking you to do though.
If you want a quick answer to your solution then ask on SO. If you want to learn and find the answer yourself with guidance ask here.
Ok sorry
let me try the PDO line on my test box. its just a basic connection line
Just hits base line --> $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);
What exactly do you mean by base line?
that is the connection line for PDO for connecting to my DB
Then what do you mean by 'Just hits'?
user895378
00:24
@Fabien You're a better man than I.
user895378
@HamZa later
@rdlowrey No, he's just a bit younger.
sorry that was a typo
"Just This" line i was going to put in
user895378
hehe
@rdlowrey heh. It was DaveRandom's watch last night.
00:25
Naive, I meant :P
user895378
Less experienced in the ways of the Help Vampire.
@webarto s/bit/a lot
user895378
Yeah @DaveRandom is a saint. Very helpful, that guy.
r'oldwrey
user895378
Every now and then I'll help someone who really doesn't know anything about what they're doing, but only if they have the right attitude.
00:26
see I guess my quesiotn about the connection line is
when you use a mysql_connect you make a $db varaibel
And you use that variable with the username in msyql_select_db line
but how does the $db variable get accessed using PDO?
@JukEboX The end point I am trying to get to here is 'Are you seeing the expected result? If Y - Huzzah. If N - Is there an error? if Y - google debug it. If N - turn on error reporting'.
To me it seems like it isn't initializing by any code
ok so let me show you this
00:44
Them's some grade A animation.
He does it fast also, right after the game or something, maybe a day.
 
5 hours later…
05:33
morning
user924016
morning
@tereško now I recall - I watched how some of you have done test flights last summer, was working in the same BC, I think I even have filmed one or two flights
what is the context ?
@tereško flying drones if that company was connected to you somehow
05:49
have anyone use xquery for scraping html
how can I use fn:string() in xquery using php
@sabbir what you want to do exactly with xquery?
@atmon3r, I want to scrap webpage's content, which I already did, But my problem is, I can't get accurate link text, for example my xquery("//div/a/text()"), it doesn't return accurate result if there are any child html tag, So I have to use fn:string() in xquery, but I don't know how to use fn:string() in xquery
06:20
How could I do something like this SELECT * FROM mytable WHERE MONTH(event_date) = 5 AND DAYOFWEEK(event_date) = 7; but using mm-dd-y as the format?
morning
06:48
@BrandonGelfand Something like what? Compare the date? You can't really compare with mm-dd-y if you are looking for nth day of the week, because those dates are not the same every year
If that's not what you meant, please explain more clearly, so people know what you are trying to achieve
@Magikaas Just looking for the day of the week, thats all
Mornig
@BrandonGelfand So you are looking for the day of the week? Then you would have to add DAYOFWEEK(event_date) to the select, right?
It's still not quite clear to me what you are trying to achieve
I would like to do DAYOFWEEK(event_date) but the column event_date is in mm-dd-y format
so it isn't working
ohhh
06:50
Your column has the incorrect datatype fix that first
then use from_unixtime to get the timestamp
If that works
Its fine, I am making a second column that will have the correctly formatted date, and the other one I need for what was already coded
._. k
Be sure to document that, it will cause confusion in future if not documented clearly why you made a second column with the same data in a different format
basically event_date and event_date_formatted and then just gonna query event_date_formatted when I need to do the day of the week
@BrandonGelfand No serious. Fix the original column and the code that uses it
06:53
@PeeHaa Its in a string format, not date, I can't
I'm guessing the original column is used in many places in code, but if it's not, then fix the first column if you can and change code around to make it work
that as well ^ ^
It would take a lot of time to rewrite it all
Technical debt (also known as design debt or code debt) is a neologistic metaphor referring to the eventual consequences of poor software architecture and software development within a codebase. The debt can be thought of as work that needs to be done before a particular job can be considered complete. If the debt is not repaid, then it will keep on accumulating interest, making it hard to implement changes later on. Unaddressed technical debt increases software entropy. As a change is started on a codebase, there is often the need to make other coordinated changes at the same time in othe...
Even if it's in a string format, you can still change the formatting around, if you use an update query to change the format in one fel swoop
I'm still paying off the debts of previously 'finished' projects to date...
From before I worked here or before they threw it into our group's lap
Yes I know, but still, I am going to just use two formats, one 'human readable' sort of
the other (the formatted) for queries
06:55
I wish you the best of luck
And hope you document your decision well
@Magikaas Thanks, I am the only person who will be using it though.
That's what I thought too about what I was doing a few years ago
But never mind, if you're the only user, it will only bite you in the ass later :P
@Magikaas Yeah, lol, I might go in and fix it later, I am thinking about how time consuming it will be.
@BrandonGelfand Hahaha
hi everyone. I'am no longer allowed to ask question from stackoverflow. does anyone know how can i be able again to ask in stack overflow with the same account i was using. thank you :)
user924016
06:59
@BrandonGelfand exactly how time consuming would it be?
@RonniSkansing I am already going through and changing them all, probably an hour or two
user924016
=] yay
@x'tian There's probably a good reason you are not allowed to ask questions
@x'tian All you can do is fix your questions that were bad, and answer other peoples' questions. I did that, and it allowed me to post again, but then for some reason, I was blocked, again... I gave up though, chatrooms are better anyhow
faster responses and better advice to be honest
07:02
Not nearly as comprehensive as some answers
dont turn this into a refugee camp... :(
@Brandon i guess so :) yieeh i was trying to retrieve my account i mean to get it back by answering others answer :) thank you for the quick advice.
@Magikaas yes. i was block. :(
morningz
@x'tian No problem, make sure to also search around on Google, my personal rule is to look for the answer for at least one hour before I come here.
user924016
@JoeWatkins morningz
07:04
@x'tian Then either try harder to answer questions or give advice to others, or update your current questions to follow guidelines and help people answer them
user924016
@x'tian something like stackoverflow.com/questions/23669330/… just does not cut it. Do you understand as of why?
@BrandonGelfand yeah thanks :)
@BrandonGelfand I agree, I only ask questions if I can't find it on the internet within 1 or 2 hours and if I do ask, I try to explain my problem as clearly as possible
thanks guys :)
@tereško Will watch after I have gotten myself something to eat and drink
07:07
@Magikaas Yeah, I read through all of this and the comments: dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html , searched around, and tried some random stuff before I came here
Same
Asking on Stack Overflow should be a 'last resort' sort of thing. You have tried everything you can think of and looked all over and still can't figure it out
@Magikaas To bad I didn't have that mentality for I got blacklisted, lol
@BrandonGelfand Improve your previous questions so that they get reopened and get upvotes.
It's hard but possible.
@SecondRikudo I don't know anything about Objective-C, nor do I ever intend to. Can't improve something that I know nothing about.
@BrandonGelfand Improving your questions isn't about knowing the answers.
It's about asking your questions better.
First of all, do you have deleted questions?
I doubt you got question banned over one downvoted/closed question
07:14
Good morning
@SecondRikudo How do I find out?
@SecondRikudo btw, if OP has self-deleted questions, does that count?
@AlmaDo Towards the ban? Yes.
Which is why it is discouraged to delete your own questions if they get closed/voted down
(If you're a beginner)
@SecondRikudo so, if you have a question (may be even upvoted), but then you've deleted it, it will increase that counter?
@BrandonGelfand Well, have you asked any questions which no longer appear in your profile?
@AlmaDo I think so. I'm not sure how it works with upvotes.
07:16
@SecondRikudo I don't remember, the last time I was able to post a question was March 2013
I have such questions. two or three. They had +2.. +3 votes, but I've got a suspicion that they are duplicates and later deleted them. sigh I'll get ban soon :(
@AlmaDo You've 20k rep. You won't get banned...
@BrandonGelfand Flag one of your own questions, for moderator attention, ask them to undelete all of your questions for improvement.
@SecondRikudo <sarcasm>
Improve the questions by adding examples, code, etc.
Make your questions answerable. Add as much detail and information as you can
there's a page about that
07:19
-3
Q: Port iOS app to a web app

Brandon GelfandI have written an iPhone game and I want to convert it so that it can be played on my website. How can I do this?

Wow... I wrote that..
That is one of the stupidest things I think I have ever asked..
@SecondRikudo I found one I deleted, if I undelete it, what do I write?
It is so random and weird, I can't even make sense of it..
The Title is so general too, I don't even see where I was going with it..
@SecondRikudo What do you think:
I undeleted this post as over a year ago I got a question ban. Unfortunately I know nothing about this subject (Objective-C) and am still baffled about the stupidity of this question, I can barely tell where I was trying to go with it. There isn't a way I can necessarily fix it, as I don't even understand where I was going with it, else I would. I guess this is my way of an apology of sorts.
@BrandonGelfand I propose you ask on meta what to do with a question like this. Because I'm not sure your plea to help will be answered just like that.
Ask on meta: "I want to improve, but the question is impossible to salvage, what do I do?"
@AlmaDo DUPEHAMMERED
07:37
@SecondRikudo I found basically a similar answer but I literally have only asked 4 Questions
So I suppose I need to fix them as best as I can
-1
Q: Cocos2D and GameKit

Brandon GelfandI undeleted this post as over a year ago I got a question ban. Unfortunately I know nothing about this subject (Objective-C) and am still baffled about the stupidity of this question, I can barely tell where I was trying to go with it. There isn't a way I can necessarily fix it, as I don't even u...

Gave it my best shot...
morning
@BrandonGelfand That will count as defacing the question. Don't do that.
Like I said, ask on meta what you should do. Explain the situation thoroughly
good mornings
I only have 4 questions, all of which are basically the same, stupidly asked and unsalvageable.
What am I supposed to do?
07:41
@BrandonGelfand Ask. On. Meta.
Your situation isn't the same as his.
moanings
Good morning.
Hi guys
Anyone knows MongoDB ?
At a past internship, I've worked with it.
07:45
@BrandonGelfand You've two deleted questions
It's been a while, though.
I don't know. But that's what a mod told me.
Flag one of your questions with a custom flag, and ask to undelete all of your deleted questions in order to improve them.
@NiekBergman How much time ago ?
@KiDZee Just ask your question.,
user924016
07:46
=]
@KiDZee: last time I've really worked with it was in 2012.
@SecondRikudo You seems to be in hurry ??
But yes, feel free to ask your question.
@KiDZee Not about hurrying, but about not filling the room with useless meta discussion.
Don't ask to ask. If someone can and want to help you they will.
Also, I only just now removed you from my ignore list because I don't remember putting you in, please don't make me regret it :P
07:49
Good morning salathe :)
Morning @ChrisF :)
@salathe moanign
it is funny that majority of the people that stumble here always ignore the first thing they see "Discussion for all things PHP, and..."
Morning;.
@BrandonGelfand - here's the link for one of your deleted questions - stackoverflow.com/questions/13329730/…
@SecondRikudo You can cont. I'm also not interested in you.
07:51
The other is a duplicate so wouldn't be a candidate for undeletion.
@KiDZee Why are you not interested in him? He's awesome
Are you a racist?
@NiekBergman How can we get data from 2 different collections ?
we have an offshoot of room11 here 82
@KiDZee Hmm, I think I'm starting to regret unignoring you.
07:52
Morning
mornigni @Fabien
@Jimbo May be. But He is talking very rudely without any reason
@ChrisF Wow, I am so pissed off at myself for writing such stupid questions. I am still trying to figure out how to fix the other bad questions.
@KiDZee I think it's that if you read the rules guidelines on the top right, you don't need to ask to ask a question - just ask it straight away and if anyone can help you they will
@KiDZee Alright, now you've piqued my interest.
07:53
Saves time
rules = guidelines :D
How was anything I said "very rudely" talking?
@KiDZee: Sorry, it's really been too long for me to flawlessly tell you out of the top of my head right now. I'd have to go look it up myself.
@Fabien yes yes, I saw this before you typed it :P
(and I'm a bit busy at the moment)
07:54
Wednesday! We're half way there.
@SecondRikudo 1) Click user avatar 2) click ignore everywhere 3) ? 4) silence!
@PeeHaa I just unignored him because I didn't remember why I ignored him in the first place.
But I think I'm starting to understand past-self now...
@NiekBergman Ok. Give me solution when you get time.
@SecondRikudo I have unignored everybody once. Didn't took them long to get on the list again
@PeeHaa Yeah that last message was the end of it
Back into a tiny avatar you go.
07:57
@SecondRikudo Is KiDZee what you call a help vampire? Trying to think of what he is...
@BrandonGelfand Help vampire who gets angry when he's told off.
@SecondRikudo Ah, yes, that would be it I think!
yoyo
07:59
Mornign Joe
Hi everyone
vampires is it ... I look away for ten minutes and the place turns into a scene from twilight !?
@SecondRikudo Nah, we couldn't start one... maybe later
Let's not classify twilight as 'vampire' :P
08:00
the dudes a vampire, vegetarian one, right ?
moarning
moin @Leri
@JoeWatkins the dudes a fairy.
@Fabien Google "Cunningham's law"
@SecondRikudo this fairy?
08:08
I doubt that help vampires are vegetarians
@AlmaDo well ... you have to take in the account that they are so stupid, that they cannot catch a faster pray
@JoeWatkins Yeah but it's so lame.
@tereško yeah. I was about - plants are too fast for them
BTW, @tereško, congrats. /context: airdog
@Leri yeah. A cheer already went around the office.
08:13
@iroegbu No, this one
@tereško Congrats!
mornings
o/ Chris
/o\
08:24
–o–
@Jimbo Ok thanks for help
concat('.', '!', '.')
FUUUUU
@Gordon What's that one, Superman from the angle of the person he's flying towards?
08:36
morning Mr. Random
user924016
@tereško his profile says he is a core yii dev..
<:3_)~~
"Tight coupling isn't too bad if you're not going to take parts of your controller code and reuse these in different project with different framework that is unlikely to happen"
@Patrick What?
^ that's what that yii guy posted on tereskos answer
08:41
Oh, that's fine then. :D
@RonniSkansing yes ... which makes the complete lack of any arguments even worse
user924016
@tereško I think he is emotional =]
user924016
hehe
Sounds like someting BenjaminGruenbaum would say
Yii is like some strange bastard of CI and ZF
@Jimbo wasn't that guy just trolling?
08:51
@SergeyTelshevsky actually it is a Django clone , which in turn was a Rails clone
@SergeyTelshevsky I think he meant some of it actually
user924016
I need a new os..
@tereško I still can't think of any good reason to take anything from a different language and implement it badly
@tereško and then they say that it went badly because php sucks
@tereško So, Yii is like: we had original text, which was written by Japanese in Chinese, then it was translated to Russian, and result of that translation - to English. All by google translate. Now there's a result
no?
@AlmaDo agree
08:54
well, Yii isn't so bad.. buch better than CI or Cake
but.. it's just good because others are bad
That makes it less bad, not good.
CI is/was popular because of it's simplicity and very low skill requirements to begin working with
Hey hello all.. Can you please tell me How to make reports faster in PHP ??
@AlmaDo Yii isn't, so I don't understand why it's being chosen by experienced developers

« first day (1341 days earlier)      last day (3832 days later) »