« first day (977 days earlier)      last day (3974 days later) » 

12:00 AM
Could it be because I use JP localization?
 
@TheLastMelody SET NAMES 'utf8' is not recommended way to set charset with mysql_* neither is SET CHARSET 'utf8'
 
Sigh... that project misses the point. The domain objects shouldn't be aware of the relationships...
 
@cspray This could explain alot, I use php 5.5.24
 
@TheLastMelody Well, it probably doesn't explain whatever charset issues you are having. But it does explain why you should swap to a different MySQL extension :)
Although...it very well could
Because the charset isn't ever set properly to UTF8 in the API your escaping might not be doing what you think it is doing
 
12:05 AM
@cspray My way of setting charset in mysql is deprecated in my version of mysql
Meaning I have to use one of the other alternativess
Wich one is easier to use MySQLi or PDO_MySQL
 
@TheLastMelody No. Your use of mysql_* functions all together is deprecated
Regardless of whether you were setting a charset or not
 
@cspray what do you mean?
 
You just shouldn't set the charset in that way when using a PHP MySQL API regardless of which extension you use
 
we need to have some deprecation education up in room 11
 
@TheLastMelody mysql_connect() and mysql_query() and every other function that starts with mysql_* is deprecated
It is old, missing key features and is generally not recommended in any new code
The only place I find it acceptable to use mysql_* is in a very restricted legacy environment
 
12:08 AM
Well DW CS 6 uses that, so not much choice there
 
wait for it!
 
And the school doesnt teach me anything else than point-and-click DW style
 
@TheLastMelody I'm sorry, I don't mean to offend, but that is a very poor excuse.
@TheLastMelody Then your school is doing you a serious disservice
 
@cspray Yeah, I complained about that
they told me it was the ministry of educations fault....
 
12:10 AM
@TheLastMelody I would do more then complain. I believe your time and finances are being seriously wasted if that is how you're being taught PHP development.
 
It is free, and the classes are for people whom doesnt even know what HTML is...
 
@TheLastMelody Even if it is free you are wasting your time.
 
I only took them because I had to in order to be able to take the more advanced ones...
 
don't make excuses, write better code.
 
Yeah, I am new to PHP and MySQL
I am only analyzing code DW writes and piece together new code
 
12:12 AM
@TheLastMelody Code Dreamweaver writes is not worth analyzing
 
I learn some, but it is slow :/
 
no one is binding your hands forcing you to use dreamweaver, use another IDE, don't use a deprecated extension
 
@cspray Well, it works :/
 
@TheLastMelody If you are learning the wrong things it does not matter
@TheLastMelody But ultimately your goal is to find employment after you're through with this right?
 
@CarrieKendall School teaches point-n-click DW, meaning I have to use DW since our teacher only knows point-n-click DW....
 
12:13 AM
although if they were binding your hands and forcing you to use dreamweaver, that would be slow typing ;]
 
@CarrieKendall I don't type that slow
 
@TheLastMelody do you mean to imply you can only learn what that person knows?
 
@TheLastMelody Wow. And I thought there were problems where I went to school.
 
Yeah, I know. I am bad at this
If I use another IDE and doing it by myself, the teacher cant help me when running into issues
when I am*
 
@TheLastMelody I would argue the teacher isn't actually helping you now...
 
12:15 AM
@cspray She isn't...
 
@cspray exactly
 
This is my exam assignment
She isnt allowed to help me
 
Allow me to rephrase
 
But then again, I am already beyond what we are supposed to know
 
I would argue your teacher hasn't helped you at all if the only thing she has taught is point-n-click web dev with Dreamweaver.
Not one second for the entire time you've been under her tutelage.
 
12:16 AM
@cspray Nope, she hasn't.
 
i was put into a PHP/RoR class with a teacher that new some bash..
 
@CarrieKendall seriously?
 
yup, i chose to learn PHP in spite of my school's poor standards
you will need to do the same
 
@TheLastMelody If you admit she hasn't helped you any why so adamant about doing things her way?
 
@cspray Because I run into issues frequently, and this way, I can help the others in class more than she can...
 
12:18 AM
also, you went out of her range of help when you decided you wanted to learn how to code, not just learn DW
 
@TheLastMelody If you figure out how to write code without Dreamweaver you will be able to help your fellow students even more
To help expose the awfulness that you're being taught
 
@CarrieKendall True enough, but whenever I try to code something simple, it just doesnt work
 
I help make decisions on who to hire at work. I would never hire anybody who only knows DW point-n-click development.
 
@cspray And with just reason
 
@TheLastMelody welcome to programming, its an uphill battle that you'll never win. it will get easier though
 
12:19 AM
You might be able to find employment but you will be severely limited in options
 
@CarrieKendall I thaught myself CSS and HTML
and some very basic bash
 
Well, either way. The charset issues you're having are likely because of inappropriate mechanism in setting charset.
With that, my wife is calling me :)
See you guys later
 
See you @cspray ^_^
So, how do I set charset to UTF-8 with MySQLi?
 
Morning
 
Morning
 
12:31 AM
Is this good idea to put solutions of test tasks to github?
 
12:48 AM
@sectus Depends on what you expect.
@TheLastMelody why not simply to query SET NAMES UTF-8 once a connection is established
 
@metal_fan , I like what i have done : )
 
@ircmaxell i bet forensics could pull your prints from your forehead ;]
 
@sectus well, congrats!
face-palm: There are no frequently asked questions at the moment
 
@ircmaxell if you don't mind me asking, what do you work on at NBC?
 
all sorts of stuff. I'm not really on any one project (especially not anymore)
111
A: SQL injection that gets around mysql_real_escape_string()

ircmaxellThe short answer is yes, yes there is a way to get around mysql_real_escape_string(). For Very OBSCURE EDGE CASES!!! The long answer isn't so easy. It's based off an attack demonstrated here. The Attack So, let's start off by showing the attack... mysql_query('SET NAMES GBK'); $var = mysql_...

 
@metal_fan , : ) just want to use github for homemades
 
@ircmaxell okay, just curious, with your fancy job title and all :]
 
:-D
titles are meaningless
I almost got mine to say Czar Of Technology
but HR didn't like that too much
 
12:56 AM
lmao
 
and to be frank, neither did the CTO
 
@metal_fan I do, but it doesnt work
 
@ircmaxell psh, picky
 
no, his name was Frank...
 
@sectus well, github is kinda your "homepage", so that you're free to share what you want. So.... hell, just use it then!!!
@ircmaxell well, the SRP: How would you efficiently detect those responsibilities? Kinda one reason to change?
 
12:59 AM
@metal_fan , how it would looks like? For hirers, for example.
 
@ircmaxell Shoot, of course this conference is the weekend my sister is visiting. One of these days I'm gonna be able to go to one of these things and listen to one of your talks.
 
@metal_fan basically, there's a little more to it than that, but not much
@cspray :-D
 
I have to admit...seeing all your tweets and posts about going to dev conferences has gotten me a little envious
 
;-)
 
1:04 AM
i was in boston in april, which makes sense.. just about 2 months after i leave somewhere, a conference is scheduled
 
@sectus I believe, if someone wants to hire you, they care about what you have done in the past. So.... yes it would look much better than having empty github
 
all right, that's it for me, later
 
lol
good night
 
So, now I got it to rename the file name that is added into the database, but the file that is uploaded is renamed to something else.
 
 
1 hour later…
user652649
2:46 AM
morning
 
3:15 AM
mornin'
 
user652649
 
Why is this not working?
$filename=$_FILES['Filename']['name'];
$Description=$_POST['Description'];
$Contact=$_POST['Contact'];
$Time = gmdate('Y-m-d H:i');
$Title=$_POST['Title'];

$Filename = preg_replace("/[^a-zA-Z0-9.]/", "", $filename);

if(move_uploaded_file($Filename, $target))
 
@TheLastMelody what's the error?
 
None whatsoever, it just doesnt work
 
how can you tell?
 
Because:
$filename=$_FILES['Filename']['name'];
$Description=$_POST['Description'];
$Contact=$_POST['Contact'];
$Time = gmdate('Y-m-d H:i');
$Title=$_POST['Title'];

$Filename = preg_replace("/[^a-zA-Z0-9.]/", "", $filename);

if(move_uploaded_file($Filename, $target)) {
echo "Filen ". basename( $_FILES['Filename']['name']). " er nå lagt til blant Alta Botanikkforeningens funn.";
mysql_connect("localhost", "root", "") or die(mysql_error()) ;
mysql_select_db("altabotanikk") or die(mysql_error()) ;
 
3:48 AM
i don't get why
 
The last echo appears, and when I run the
if(move_uploaded_file($Filename, $target))
with
if(move_uploaded_file($_FILES['Filename']['tmp_name'], $target))
the database entry gets renamed, but not the actual file
But I need to remove any special characters from the actual filename too
if I run
if(move_uploaded_file($_FILES['Filename']['tmp_name'], $target)) then the actual file and the database entry for the file ends up differently, but if I use
if(move_uploaded_file($Filename, $target))
it should end up the same, but instead, it doesn't work
meaning that running the
if(move_uploaded_file($Filename, $target))
with two strings $ doesnt work
but it should be working according to php.net documentatin
documentation*
 
Can someone with 10K on meta tell me what this was: meta.stackoverflow.com/questions/184983/… ?
 
4:20 AM
Any help anyone?
 
@TheLastMelody Link your actual code with desired output.
 
I want this code to upload a file and strip the filename of any special characters, then add an entry in the mysql database

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="index.css" />
<title>Funn registrert | Alta Botanikkforening</title>
</head>

<body class="content">
<div align="center" class="text">
<?php
ini_set('date.timezone', 'Europe/Oslo');
 
post your code on pastebin and post here its link
 
Sorry, forgot about pastebin
 
now say what is your desired output.
 
4:29 AM
I want to upload a file called "Bær.jpg" and have it renamed to "Br.jpg" then add an entry in my MySQL database table called "Filename" where it would write "Br.jpg"
 
$filename=$_FILES['Filename']['name'];
$Filename = preg_replace("/[^a-zA-Z0-9.]/", "", $filename); $target = "pics/";
$target = $target . basename( $Filename);
if(move_uploaded_file( $_FILES['Filename']['tmp_name'], $target))
Use this code @TheLastMelody
your order of code was wrong
 
Ooooooooohhh, I see now
Thank you for the help and extra enlightment ^_^
Now I can finally get some sleep before my exam! (2.5 hours) THank you alot ^_^
 
Hi,Can anybody help me with joomla 2.5 problem?
i need to get a custom url parameter in a perticular article , not in all article.Is their a way to get that .... :)
 
4:58 AM
yay, 22K
 
@Mr.Alien Repwhore. :P
 
@user2485618 Set your own alias
@YogeshSuthar Muhahaha (evil)
 
I am still on 13K. :(
 
@YogeshSuthar Don't worry, study CSS3 and you'll get more points, I need mre 20 upvotes to enter top 10 :D
13 votes, just checked :p
 
@Mr.Alien Actually I am bored in giving answers. :P
 
5:01 AM
Same here :p I am getting up votes on my old answers a bit
 
Most of our rep wastes when OP is not accepting after getting correct answers. :(
 
gooooooooodmorning!
 
@YogeshSuthar Most of my answers get negative for envy :p
 
good mornings :)
 
@Mr.Alien Yeah , most time the co-answerer gives negative votes to get upvotes.
@hakre morning. :)
 
5:06 AM
@YogeshSuthar I hardly downvote :p but this -> @hakre downvotes too much ... Morning :p
 
hahaha
@Mr.Alien Are you doing photoshop also?
 
@YogeshSuthar Yes, basics...
kinda crop, skew, rotate, brushes blah blah
 
@Mr.Alien what is the password of this quratek.com/projects/xenon
 
lol nothing, it's a dummy, enter anything and you'll be in
 
I tried but its not opening in chrome
 
5:12 AM
:-/ use fox, it is buggy, just works perfectly on ff 17, but btw there are startup sounds and all stuff so if u r in office, just mute ur laptop
ya wait, something is fishy
server is down, pshhhh
 
@Mr.Alien In my desktop there is no sound. :)
 
@YogeshSuthar aa cool...
yes it's up again
 
yeah it opens
 
hmm
 
its awesome dude.
 
5:18 AM
haha thanks ;)
 
Ands still you say you get bored even after doing this kind of stuff. :P
 
it plays music, videos in real, on double click, just made it in 2 days... will give some time to fix stuffs
lol yes
 
5:36 AM
3 quest in a day, should say 3 quest in 4 hrs
 
Gordon marks @PeeHaa埽's profile with an annotation about unneccessary mod pinging :P
 
hello friends,
i have question that How module call custom layout? in MAGENTO
and what is pre-requirement for module creation? in magento
 
@Michel06 To fulfill your req, study magento
 
@Mr.Alien Thanks sir, i am reading bt i cant get idea that's why i ask it here
 
5:52 AM
Throw up a question on forums and see if any one helps you
 
ohk Thanks Let me try it.
 
@Mr.Alien It's to bad when OP is not accepting the answer when their problem is solved. :(
 
6:07 AM
@hakre oh shit,i asked it in stackoverflow, by the way thanks for it
 
@Michel06 delete your question on SO, it's a support request, not a programming question.
 
@hakre ok
 
@YogeshSuthar did you just copy the answer from the linked dupe and gave it as answer?
 
6:26 AM
@Gordon Yes, sorry. I deleted that answer. :)
 
@YogeshSuthar thanks
 
Good morning room 11!
 
@Gordon Just had a look at your wishlist. Reading that many books will take some doing, wouldn't it?
 
6:45 AM
@asprin I've still got 12 here to read so I guess, yes.
 
Where do you find the time for that?
 
Hey guys i need help
 
It's such a pity we can not close question because of lazyness reasoning:
 
Here is my code pastebin.com/cjgNid42
 
6:52 AM
First i am using post method in form
When i submit name and age it displays "at Last"
after that when i push back button , browser send http headers
and display form . But when i change form method to get and repeat the above process again it doesn't send any http header. Why is it so ??
??
 
@Cody: You are making use of the GET after POST pattern. Replacing POST with GET does destroy that pattern
Post/Redirect/Get (PRG) is a web development design pattern that prevents some duplicate form submissions, creating a more intuitive interface for user agents (users). PRG implements bookmarks and the refresh button in a predictable way that does not create duplicate form submissions. Bookmarks User agents (such as browsers) store only the URI of an HTTP request as a bookmark. Because of this, an HTTP POST request that results in a response based on the body of the HTTP POST request cannot be bookmarked. By using the PRG pattern, the URI of the HTTP GET request can safely be bookmarked...
 
0
A: Cross platform hashcode

fgeRelying on Java's .hashCode() is not what you want here. If you want checksums, you have the choice of using, for instance, MD5, which is available in pretty much all languages, or SHA1, SHA256, SHA512 etc. Pick your poison!

@Gordon In this answer fge used Pick your poison!. So should this be removed from answer or not?
 
@hakre In simple Words
 
I think it is just the order of the way it works....
 
^ self-duplicator
@Cody Changing from POST to GET is different.
oO
This is the third time you've asked this question. Glad to see you've included more detail this time. If the answers aren't what you require you should improve the question instead of asking a new one. — topher yesterday
 
7:08 AM
@Hakre POST submits data to be processed (e.g., from an HTML form) to the identified resource. The data is included in the body of the request. This may result in the creation of a new resource or the updates of existing resources or both.
I know that but is there a way someone can access the 'bod of the request'?
Or is that impossible?
 
@Gordon loool /me check his profile. Nothing happened... mods must like their unneccessary pinging :D
 
yes, i'm sorry for that, i just don't get the answer, and i am afraid that no one will seen my question. I really don't get this update session thing, and i start to feel bad. — 5ome yesterday
confession of a self-duplicator
@Duikboot You mean the request-body of the post-request? As outlined in the HTTP specs?
 
Okay i understand PRG but why when i push back button (in form post method) it starts sending headers , the same is not true for get
 
Indeed.
 
7:14 AM
@Cody Technical headers are always send. I guess you mean very specific headers, right?
 
@hakre Wait a min let me show you
 
If those are the headers you are receiving it's normal... those are the technical onesthat Hakre mentioned I think.
http://pastie.org/private/l0wwfc7bbtetre0f2nwmw
 
@YogeshSuthar no. that's fine. That's a colloquial phrase.
 
@Gordon Okk. thanks.
 
7:29 AM
@hakre On RAMPAGE today. :)
 
@hakre see this tinypic.com/r/icthkp/5
 
@YogeshSuthar no, just cleaning up :)
 
bah! Fatal error: Cannot redeclare class PDF in ../app/includes/PDFGenerator.php on line 6
 
g'day
 
Hi, @dragon112 :-)
Lol @Hakre
 
@Duikboot Hey
 
AAAAgh I reached 8 deletion vote limit. :(
all because of you @hakre :)
 
I am waiting for such questions - I want to create a website, how do I do that?
 
@YogeshSuthar only 8?
 
@kaᵠ Yes only 8. :(
 
@YogeshSuthar 20K ^ .. muhahaha
 
7:37 AM
@Mr.Alien Do you have unlimited delete vote. :P
 
yes
 
0
Q: Is it possible to use Garch library with PHP? If yes then is there any code example in PHP?

Rahul TailwalI want to use Garch prediction. I studied different articles but unable to find any php code to use Fgarch class methods with php code. Please suggest some thing about this. Thanks

 
but not 8, I guess 16
 
@hakre okay converting ...
 
0
Q: Am I using move_uploaded_file() correctly to add images to dynamic location?

FriedBitzI have received some errors when I tried using the function: move_upload_file() . I have tried researching it, but I can't find any solution. The error code I receive is the following: Warning: move_uploaded_file(example.com/users/username goes here/test.png): failed to open stream: ...

check the title
 
7:38 AM
22
Q: Now that 20k users can delete answers, should we increase the number of daily delete votes?

Brad LarsonWith the new capability to vote to delete answers, 20k users now have another kind of content to vote to delete. However, we still are rate-limited to only 5 total delete votes we can cast per day (which seem to apply to both votes on questions and answers). I understand the reasons for wanting...

 
lolzzzzz. today's joke. :p
 
@YogeshSuthar no, nobody has unlimited anything.
 
9
Q: "vertical" regex matching in an ASCII "image"

QtaxNote: This is a question about possibilities of modern regex flavors. It's not about the best way to solve this using other methods. It's inspired by an earlier question, but that one is not restricted to regex. The Problem In an ASCII "image"/art/map/string like: ....X....... ..X..X...X.... X...

^ Regex awesomeness
 
Jesus that's pretty cool
 
@dragon112 Yeah but the patterns used, aaaargh Level over 9000
 
7:44 AM
Yea pretty cool :)
 
Hello all
I am working on Zend Framework
I have written a preDispatch( )method which checks for zend_auth and if identity is there, it lets in
i also want to implement remember me functionality
I have written the code for remember me using Zend_Session::rememberMe(some_time);
But taking the case that i didn't logged out, (identity is not cleared)
I am not seeing any difference between displaying the web page using zend auth(displays only when the identity is valid..i.e..untill user logs out)
and
using Rememberme functionality
 
Should i hide login form when using remember me functionality?
 
7:55 AM
@YogeshSuthar See I told you envy, just got a down vote on this answer stackoverflow.com/questions/16869978/…
 
@Mr.Alien I think that person is your common sense. :P
he is always downvoting on correct answer.
 
@Mr.Alien fixed
 
I don't know who downvoted, but this is the latest example here ;)
@kaᵠ ha ha thank you :) but I posted it here cuz just in the morning we were discussing about envy votes, should have a badge for that
 
@Mr.Alien That answer is really repwhore answer. :P
 
@YogeshSuthar That was smart answer :p
 
7:58 AM
@Mr.Alien nevertheless an awesome answer
 
Repwhore answer is below my answer :p
@kaᵠ Thank you :p
 
@Mr.Alien from Badshah?
 
yes
 

« first day (977 days earlier)      last day (3974 days later) »