« first day (890 days earlier)      last day (4283 days later) » 

00:00
oh good my flight was just delayed more
<--- not going to be home until 230 am or so
@Lusitanian same
loool
@Lusitanian he's smarter than he plays off
@ircmaxell believable, but my god, some of things he says come off as moronic
absolutely
00:03
then again, about half of what i say probably does
I spent 7 hours in a car with him (and another friend of mine) driving up to True North PHP...
how'd that go?
Not bad at all, was really quite interesting
00:07
people are generally more interesting to talk to in person
user895378
Group defamation. Sweet.
good lord, not this delete thing again
lol, sorry, i shall stop
it's in protest of the infinitely-indexed chat logs!!!(111)
user895378
I really am going to write a websocket-enabled plugin at some point to overlay chat so that you can send "private" messages that only show up for people in the room who have the plugin (and aren't indexed because they don't go to the actual room).
00:10
Oh snap! My CPU is operating at 102% of its maximum frequency...
wait a minute, that makes no sense...
@rdlowrey please do. you will single-handedly save the chatroom from @crypticツ and me deleting messages
@rdlowrey do a peer-to-peer socket
lol i have VNC session over airport wifi..soooo slow
trying to install debian on a virtual machine in atlanta
18 messages moved to bin
00:18
@PeeHaa :O
1 message moved to Trash can
Damn oppressors.
:D
y u think u get free speech?
@webarto Best things about censorship... is that we can shut you up :P
@PeeHaa Does this look correct $sql="INSERT INTO $tablename(page_content,page_name)VALUES('" . mysql_real_escape_string($header,$content) . "')"; ?
@Sebastian no
mres' second argument is a resource
But really you should learn PDO and prepared statements while you are at it
1212
Q: How to prevent SQL injection in PHP?

Andrew G. JohnsonIf user input is inserted into an SQL query directly, the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO table (column) VALUES ('" . $unsafe_variable . "')"); That's because the user can input s...

00:25
@PeeHaa I will do that later. I just need this to work
Famous last words.
Ever heard the story about the temporary permanent fixes?
@PeeHaa Nope
I'm not sure whether it is really suited for the room, because it kinda is a horror story
@PeeHaa list($temporary, $permanent) = [$permanent, $temporary]
00:27
@webarto but omg you used php 5.4 short array syntax just to annoy the users with 5.3, quite clearly
My experience tells me that everybody coming in here with a problem (or on main for that matter) who says: "I will do that later" or "It's just temporary" or "I'm going to fix it, but not now" will have that code living on the web forever
@Lusitanian One does not have a reason to use 5.3 over 5.4
@Sebastian But what you should do is consult the manual of mres and what arguments it takes
@PeeHaa Ok Will do. By the way is there a chat for people that are fairly new to php?
@webarto one does not simply common sense
sorry couldn't resist, but no, not that i'm aware of
00:31

Lounge<C++>

Today we're daydreaming about C++26 reflection
;-)
Holy crap. I accidentally entered the room :(
@PeeHaa while you're in that (redacted), troll them!!!!
I'm going to put Powered by Wordpress on my page so I become cool.
@webarto y'know, I thought about putting "Powered by node.js and Ruby on Rails" on every site I ever do
just for fun
00:35
Hah, sounds better.
Or you could do: "This site powered by moarwebscale"
and vanilla js
HAH
VanillaJS FTW
yeah
i should put something at moarwebscale.com but i'm really not sure what
Put NewRelic :P
Get a shirt.
oh yeah, i was going to do that a while ago just for the nerd life shirt
except then they salesforce you to death, i believe
00:41
Is it acceptable to load a view from within a view? Say you have a template view where you load header, footer, etc and then run load view within it to load the supplied view? So you can do this $this->load->view('template', array('view' => 'login')); in the controller, which will load the template view which will contains this $this->load->view('header'); $this->load->view($view); $this->load->view('footer');
@crypticツ backup....$this->load...you have a member variable called load which apparently contains a class with oddly named functions for loading things?
wat?
@Lusitanian it's CI =o(
@crypticツ Currently having similar dilemma.
@crypticツ I am doing that in my latest project. Just not in that way though :)
@crypticツ but based upon just that and CI "standards" anyway, probably fine
dropbox.com/s/ajwaf5egu0dumtb/… what do you think? (8mb "low res" preview of final rendering, which is 1.8gb)
@ircmaxell how long did that take to render? :P
10 minutes...
00:45
@ircmaxell seems legit.
Like it? I think I'm going to try to speed up the initial "coming together"
the low res took 4 minutes
g'evening
Evening
Irc Maxell, New York Minute
Max Payne
Snow and shit.
@ircmaxell anyway, it looks cool
00:46
@ircmaxell videohive.net If you want some, just say.
@webarto what do you mean?
Good guy Google taking links down because of DMCA adds links to convenient list online :)
@PeeHaa hehehe
google is still >50% of the way there to violating their motto of "do no evil" though
@ircmaxell Well, lots of good motion graphics there, for inspiration, etc.
00:49
ah, I was more curious about the "if you want some, just say" part, not sure what that meant
@ircmaxell If you like something, I'm buying :)
ah, nice
thanks for the offer! :-D
"buying"
:P
00:51
Actually... what I could use is royalty free music
@ircmaxell What kind of music?
not sure
like a 8 or 9 second clip
There is lots of CC licensed stuff on Soundcloud
interesting
00:56
LMK if you want any.
I get depressed every time I open those sites. People making money for basically, nothing.
most make peanuts
(._______________________. goes here)
@ircmaxell True, but e.g. I wrote some WP plugin in a day, and it got $2000 in a year, which is silly, because I work entire month for that.
01:00
@webarto they need to pay developers more in your country
eih...
user895378
@Lusitanian sendgrid.com
@rdlowrey LOL
probably
@rdlowrey nah, the last person who had it was an "abuser" according to mr. server-administrator
@Lusitanian 6k would be nice :D
01:23
Gotta love Kohana.
peace be upon you
Peace.
Downloading torrents via CLI is awesome.
well aren't you special :D
My life changed completely.
i'd imagine
01:29
unlink archive.zip
Idiot.
I wanted to unzip :D
@webarto what does this do SQL injection wise: category_id=1%20union%20select%201,user%28%29,3,4,5,6,7,8,9,version%28%29%20--%201
plz can u help me
want to replace this: [img;width:500;height:300;url:some_link;] by preg_replace_callback to
$matches[0] = "img"; // the type of this
$matches[1] = "500"; // the width of the img
$matches[2] = "300"; // the height of the img
$matches[3] = "some_link"; // the link of the img
sorry for my bad english
@BrandonGelfand 1 union select 1,user(),3,4,5,6,7,8,9,version() -- 1 it returns MySQL user name and version, from the looks of it.
Ok how can I get MySQL password to return?
its wordpress site
01:34
Sorry, can't help you with that.
I am trying to get into my site, not someone else's, its not in my moral ethics to do that
any article about how to use preg_replace and its chars
i've a this to replace links
$ret = preg_replace_callback('#([\s>])([\w]+?://[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', $_make_url_clickable_cb, $ret);

but want to know how to order that chars, plz can anyone help me for my first question at least
@BrandonGelfand You can't retrieve MySQL password.
So i can only get database name? It appears on a little scroll selector, what else could I type in so Havij sees it and can try to get the password?
@BrandonGelfand One does not simply use havij for it's own database
01:38
Why not?
Why would you?
Is it not good enough? I am looking into burp also, but atm i only have havij
Cause its wht a majority of hackers from wht it looks like, use
so why not try to hack my own site using the tools they would use
@PeeHaa lol....
I don't see the fun in it. Neither do I see the usefulness when using a magic GUI which does all the work
one does not simply try to hack their own site without having security knowledge...one hires a pentester
01:41
one who does not have any money uses havij
any other rebuttals i need to make?
nah, that's reasonable, but not a rationale for using a fancy gui
@BrandonGelfand No. One that doesn't know how it should be done uses Havij instead of knowing what is actually going on
Amen to that ^ ^
Ok so lets say that http://[host]/wp-content/plugins/ajax-category-dropdown/includes/dhat-ajax-cat-dropdown-request.php?admin&category_level=2&category_id=1%20union%20select%201,user%28%29‌​,3,4,5,6,7,8,9,version%28%29%20--%201 brings me to a drop down menu
one of the selections says select suburb
the other is my database name
how would I make it so it doesnt have a selector, just the database name ?
@Lusitanian
no clue, depends on the contents of dhat-ajax-cat-dropdown-request.php and probably many other factors
so the selector, wht does it do? it just displays the name
01:53
guys plz can anyone help me?
02:21
@AhmedSabry watcha need?
3..2..1...lost interest
@AhmedSabry
$string = '[img;width:500;height:300;url:some_link;]';

$string = preg_replace('/\[img;width:(\d+);height:(\d+);url:([^;]+);\]/', '<img style="width:$1px;height:$2px;" src="$3" />', $string);

echo $string;
actual quote from reddit:

> Life doesn't get much more fun than PHP with Codeigniter... unless you know C++ :)
You may want to do better validation on the URL matching, but that's about what you do
@crypticツ validation URL is running, i was want that to restore the original tag of the img, what i meant that php was replace the img url with this string and i want to recover it
@crypticツ sorry forget to thank you, so thank you very much. worked very good :)
03:42
Anyone else notice that from time to time, SO will notify you that you've received an answer on a question from ... oh, say, a year ago?
Sometimes 2?
:D, i answered a question then when i saw the date was very old
04:04
I need help
I have a java script
and i want to remove val().replace and val().match
from it so it will accept any character
@MalikUsman In that case this link should help
thanks sorry i forgot hehe
 
1 hour later…
05:16
Question about Codeigniter or any MVC file naming convention. When organizing views, is it best to name files like 'view1/index.php' and 'view2/index.php' OR 'view1/view1.php' and 'view2/view2.php'
Anyone here on a mac and feels like helping me real quick?
Im on a mac
Whats up
Thanks,
I'm trying to get the extension to run on Safari
Ok... installed
Seems likes it's working
When you click the "GET TIPRANKS" link, does it offer you a safari extension?
@doitlikejustin Does it show a browser button with a TR logo?
(Also, thanks a lot)
05:29
It doesn't offer... It automatically downloads the extension to my downloads. I then clicked the download and installed
It shows a browser button but NO tr logo... see d.pr/i/14lL
Just a fat square
Cool (I wanted to make sure it doesn't give you an 'installer' but lets you get a browser extension instead)
@doitlikejustin Cool, thanks
Can you take a screen-shot of it working in the browser?
Here is a screenshot... It opens a new tab every time d.pr/i/LhIv
Thanks
Well, that's pretty much all I needed, thanks a lot
05:41
hi all here i have started php today and am stuck at a point need help :(..........
@samir what is your question?
@crypticツ i want to redirect the user to a page after a successful login
header('Location: example.com')
but the issue i m facing here is that it just clearing the username password fields on the same page
@doitlikejustin i did like this only but i guess the issue is in query firing
@crypticツ @doitlikejustin I m doing like
$qry="SELECT * FROM usermaster WHERE username='".$_POST['username']."' AND password='".$_POST['password']."'";
$login = mysql_query($qry);
if (mysql_num_rows($login) == 1)
{
is it the correct way ???
@samir first stop using mysql_*() functions as they are deprecated
05:46
and the connection part i have written in a seperate php file which i m using with include
I recommend you use PDO and learn prepared statements
@crypticツ ooooh k
@crypticツ ok thanks but as a start wont mysql_* functions work now ??????
0
Q: Do we really need neatbeans tags for every version?

NullPonyPointerDo we really need a separate tag for all the different version of NetBeans ? We currently have (including the number of questions): netbeans× 8253 ,netbeans-7× 914 ,netbeans-7.1× 72,netbeans-7.2× 61,netbeans-7.0× 54,netbeans-7.3× 12netbeans-6.9× 361,netbeans-6.8× 176, netbeans-6.7× 87,netbeans-...

@samir pretty much 99% of tutorials online will incorrectly teach you PHP. They will teach you insecure or incorrect ways to do things. They will work for now but they are deprecated and will be removed, so unless you want your code to work for a long time and not bother learning something that will be going away I suggest you just don't even attempt using it.
@crypticツ I am basically a java and android developer so it might frustrate you me asking such silly questions but plz help me bro
05:49
@samir ya at-least you can use mysql_* function to know there prose and cones
@crypticツ very correct
@crypticツ but it may be useful sometime
Yeah i knw they are prone to sql injections as compared to prepared statements
@crypticツ someone should maintain a list of bad tutorials, or warn about them. Or just the big ones (Like w3fools etc).
Then again, that's a huge task
but my issue is i m not able to login the user
05:50
@samir no those are safe as pdo or mysqli
plz check my code again
@BenjaminGruenbaum We will be hearing about mysql_*() functions 20 yrs from now, because once something is on the internet it is there forever =o(
@BenjaminGruenbaum as a beginner one starts with simple practices though the bad one bt going later one finds it difficult to leave those practices
but coming back to my problem
did someone find anything wrong in my code ?????
@samir which code
$qry="SELECT * FROM usermaster WHERE username='".$_POST['username']."' AND password='".$_POST['password']."'";
$login = mysql_query($qry);
if (mysql_num_rows($login) == 1)
{
@NullPonyPointer
should i use pastebin and show u the full code ????
05:54
@samir never ever never use this code at production server
its bad like anything and pow3ed your server
@NullPonyPointer hmm right but for now can u help me make it run
???
baby at-least use mysql_real_escape_string or better would be prepared query
would be way to go
its very simple you just need to prepare query than bind parameter than execute
i used mysql_real_escape_string earlier bt because it wasnt working
i got frustrated and removed all complex stuff so that to make it work
but still not working
Logging in with the password as ' OR 1=1 LIMIT 0,1;-- might be interesting
@samir and atleast never tell @uınbɐɥs to view ... other wise he will convert your site to pony pink random ball
05:57
@samir were you running the entire query string through mysql_real_escape_string() ? That's the only reason I would see it would not work off the top of my head.
Son of a bitch. Phil Sturgeon's comment form is fubar'd, and I wrote this mess of a response.
I'm drunk and angry dammit.
@NullPonyPointer @crypticツ @uınbɐɥs see I have prepared a seperate file for connection
@crypticツ nope
i was using that just in password
@samir well also dont save plan text as password
But still its not working I mean on correct user name and password it doesnt redirect to welcome page instead just clears the field content. Same in case of wrong username and password
use hashing for password and there is no need to escape passowd
05:59
@NullPonyPointer Was "neatbeans" intentional? I think it's neat.
@Bracketworks yes it is .. and it have higher awesomeness level :)
Spectacular.
+1 for neatbeans.
@Bracketworks just try this and you will never think about other ide ..
Plz have look and tell me where am i doing it wrong
@NullPonyPointer Already use it, have since 6.7
Actually, I gotta upgrade, I'm still running 7.3b
06:02
@Bracketworks isnt 7.3 is newest
Normally I run stable and dev side-by-side.
@NullPonyPointer Yea, I'm runnin beta
@samir you need to call session_start() in Validatelogin.php otherwise your session var does not save.
06:03
Why thank you.
@crypticツ ok
@Bracketworks because i am awesome :P
let me try that too
@samir and than try
8 mins ago, by uınbɐɥs
Logging in with the password as ' OR 1=1 LIMIT 0,1;-- might be interesting
06:04
Ok, maybe it's the booze, but I can't waste this quote; I think it's funny.
There will always be people who just want to add numbers in an HTML file. That's just dandy, let them. We have 5.X. To the rest of us, PHP is old, aging, yet immature; like some bizarre man-child who draws webpages.
@samir or better DROP TABLE TABLE NAME
omg don't do that!
=oP
@crypticツ not working
ooh no i m not going to do that
i knw sql atleast
@crypticツ damn let him do ..:P
@samir and check this for pdo thing
89
A: Why shouldn't I use mysql_* functions in PHP?

NullPonyPointerPHP offers three different APIs to connect to MySQL. There are the mysql, mysqli, and PDO extensions. The MySql_* function are very popular but use of MySql_* function is not encourage anymore .The documentation team is discussing the database security situation, and educating users to move awa...

@NullPonyPointer dont want that right now just want to run my basic db connection bro
06:07
@samir change $login = mysql_query($qry); to $login = mysql_query($qry) or die(mysql_error());
@samir It's not about basic. It's about deprecation/
will implement that too but after i get a basic understanding of php mysql working
@samir you are learning wrong though
@samir Get a basic understanding of it working right though
Don't learn to be a carpenter with a rock.
2
@crypticツ ok let me check. I knw. And i M going to upgrade
once the connection concept is clear
06:09
@Bracketworks lololwt....:D
@samir you learning mysql_*() functions and then learning PDO or MySQLi later is akin to you learning to ride a horse and carriage when the modern world has cars.
@crypticツ still not working i m not even seeing any error
atleast if i get the error i can try to resolve it
@samir Is error reporting turned on?
@uınbɐɥs new one .sorry bt as i m new how to do that bro ????
@samir error_reporting(E_ALL);
06:11
Put that at the top of your file.
k
did that :( still nothing happening
@uınbɐɥs did u look at my code on pastie
@NullPonyPointer unless it changed error_reporting(-1)
Yea it changed, awhile ago. Nevermind.
did that still nothing happening
if i change anything in the connection i get can not connect
or access denied
06:15
Try (in config.php, after the connection) var_dump(mysql_query('SELECT 1'));
Wait; that's crap; E_ALL is still int(32767)
so that means my current configuration are right
@Bracketworks yes it is :P
-1 it is!
Or ~0 because I like tildes.
I've resolved to leave silly comments on questions that'll exist for all of 8 seconds.
@NullPonyPointer flag under what?
very low quality
cya guys
bye
Hi, all
06:25
Bye!
all
all
Hi
Bye
ah yawning is so contagious
I know!
Bed beckons me.
But so does beer. I'm so torn./
What time is o'clock?
06:38
Irish?
Me?
No, O'Clock.
: )
06:41
bye all
hasta la vista.
Пока
:^ )
@crypticツ Not a real question much?
I did localized since it's a syntax error
typos I put under that
but seeing OP did not even provide the error message you can NARQ it too
06:48
I just want to edit it with strike-through.
Like, through all of it.
Damn, I got nothing done tonight.
My IDE is still on the "welcome" screen.
What is your IDE?
Beans of the Net VII point III beta

« first day (890 days earlier)      last day (4283 days later) »