« first day (800 days earlier)      last day (4139 days later) » 

10:00 AM
i programmed in LOGO when i was studying in 4th standard but dont remember much about it now :D
 
Hey, lets add this really cool embedded browser functionality ohnowaitIcbaletsuseIEinstead
Sep 6 at 11:32, by Leigh
@ShyamK I'd rather cut my arms off and write in assembler by smashing my face into the keyboard before I'd use ASP.
5
Face-driven assembler development ftw
3
 
lol
 
@DaveRandom Assuming that refers to classic ASP?
 
I think so yes
Actually no
it was a reply to this
Sep 6 at 11:29, by Shyam K
@Leigh no fighting :) ... just wanted to reassure myself that PHP was waaay better than .NET
 
Seriously? C# is nice
The Microsoft control over the platform is a bit scary, as is Visual Studio's pricetag...and the cost of Windows Server that you need to run your web-apps :P
But if you use Mono...it's cool I'm sure. Very nice language though, I think @Leigh should explain himself
 
10:08 AM
@DaveRandom still laughing at Face-driven assembler development. Did you ever write in assembly?
soo tough
 
No I'm at a bit of a disadvantage as a dev where that sort of thing is concerned - I never did any programming in education of any variety, I am 100% self taught
networking is my thing
 
my head hurts trying to remember it.
 
and a depressing amount of general IT maintenance
 
@DaveRandom I taught myself a tiny bit of x86 ASM while writing cheats for video games :)
 
@DaveRandom good for u self taught > spoon fed involves much more effort :) and knowledge
 
10:12 AM
yeh but I wish I had better theoretical knowledge of algorithms etc
 
@DaveRandom That's what I want, hence throwing money at a school in hopes that I might learn something :D
 
@DaveRandom better buy a book instead of reading online articles about algorithms if you are intrested.
 
@DaveRandom Have you ever read The Art of Computer Programming by Donald Knuth?
 
No, I own a copy but too many things on the IRL todo list. I'm sure one day I will get around to it.
 
my c++ SDL tiled mapeditor and php based gallery bungle is also at halt atm.
bundle*
 
10:17 AM
Children are time consuming.
 
@DaveRandom I thought you had just one? Strike that, you're making a generalization from your specific case.
^^ reason #149035 why I should go to sleep now
 
@Lusitanian haha
 
Currently, yes. Although that probably wont be the cast for much longer if Her In Charge gets her way. Anyway, 1 is time consuming enough...
@Lusitanian Yeh, isn't it like 5.30am for you?
 
@DaveRandom indeed :)
 
mine is GMT+5:30 so no its 3:50pm here
now*
 
10:22 AM
GMT+0:00 - because we invented time, apparently.
 
@DaveRandom haha no you colonized most of the land in the past thats why :P
 
@DaveRandom lmao
 
-10
Q: PHP WEBSITE ON IIS SERVER THAT WILL ACCEPT TEXT FILE AND SAVE IT

debdipta GhoshI am asked in my office to write following project: Write a PHP script that will run on server side which accepts text file and saves it in server. What I understand here: One PHP script will run on server side. I have to send (HTTP POST or by any other method) a *txt file from client si...

MAYBE IF I SHOUT LOUDER PEOPLE WILL HELP ME
 
not enough rep :d
 
@PruthviNag So, back to your original question: What problem are you having with the aforementioned probably-a-bad-idea-but-sounds-like-your-stuck?
 
10:29 AM
@DaveRandom may be ill ask him to hire a c# dev
and develop the rest of the app in php
 
@PruthviNag Would be the recommended course of action (or C++, then you can potentially create *nix versions as well)
 
he'll agree coz he want to launch something out like a beta verson
 
What does the app actually do?
 
for the cross platform solution i suggested java since most other co-workers would disagree with c++
but he dont want a java app
 
scala?
 
10:32 AM
its like task management for small scale industries that have multiple branches
like local printing press.
our side of the app i.e managing the customer account, our staff, payments etc is done
and the one that customers use
to manage and distribute tasks and their workers is remaining
 
Anyone has an idea on how to use Symfony2's console out of CLI and with exec() and brothers functions disabled ?
 
the customer side of app manages their tasks, and work allotment to their employees and billing etc
but the customers we target may not have an available internet connection so we are trying for alternatives
since 50%app is completed
 
Hey guys I have a non php related question but since I always utilize the php chat thought I'd ask here. It's in regards to google and indexing. I recently updated the site's layout and created seo friendly url's.. my index count dropped by thousands and now I have thousands of pages not found by google's robot, and it keeps trying to access those pages which I assume hurts new content from being found as fast. Should I delete my google analytics account and remake it?
 
@PruthviNag tbh seems like something that should've been considered before development was started
but you really will need to do it in another language
 
The website has good standing in terms of search results for homepage and its main pages but the products and other content i don't know about.. shopping products for sure not being indexed as fast.
 
10:39 AM
@Darius Your GA account has nothing to deal with GoogleBot
 
@Lusitanian yes i agree but what has happened cant be undone right?
 
@Darius you should have created 304 moved on the old urls
 
bad project management :(
 
@PruthviNag indeed, but still you should start over
 
@andho You maybe meant 301 ?
 
10:41 AM
@Touki i probably did :) hehe
 
@Lusitanian yes we need to.
 
Going to bed. Leaving on this note: SEO is a MYTH.
 
I assume 301 as well, but since it hasn't been done, what can I do now? Just wait it out?
 
@Lusitanian but google friendly is not
 
@Lusitanian Nighty night
 
10:42 AM
@Lusitanian haha good night
 
@Darius you can still create the 301 pages
 
Dec 15 at 21:02, by DaveRandom
Everyone join hands while we sing the "SEO is a myth and a waste of time" song
 
@Darius Just edit your .htaccess to move google 404's to your new pages
 
By redesigning the site I literally broke all the old url structures from /photo?id=1231 etc to /photo/digitalart/the-broken-flower-23132 or stuff of the sort
 
Erm, then happy editing !
 
10:43 AM
:'(
 
@Darius the ID's are changed?
 
yeah the ID's changed
 
Or you can make a "transition" control
Ho, you're screwed
 
Yepppp
 
And that, boys and girls, is why we never re-index our front end databases...
 
10:44 AM
So google gonna penalize me or will I just have to wait?
 
if there is now way to map old url to new url, there is no way
 
@GeorgeLim its more better but i'd suggest you to use prepared query also there is no need of ; in double quote
 
I still have old back ups of original database and can run a query to mix and match
 
other wise, handle the old url, output a 301 header and the new url
 
@Darius You need to issue 301s to the new correct locations. Do you have any way to tie the old URL to the new one?
 
10:44 AM
You probably should have used Oracle(tm) and SAP.
 
@DaveRandom Yes, I can tie the old pages to the new ones, now to figure out how to utilize the htaccess file to do that. If i'm not asking too much, maybe you would point in a direction or show how to do something like /photos?id=1231 to /photos/digitalart/the-broken-flower-323123
 
bye guys i go get my phone repaired
 
@Darius I suggest simple Redirect directives - you need to create essentially a huge static lookup table, it's not a job for mod_rewrite
 
I'm guessing I run a query for the ID's number and SEO friendly url titles, then set the headers
 
@Darius Redirect permanent /photos?id=1231 http://domain.com/photos/digitalart/the-broken-flower-323123
 
10:47 AM
So now, my browse pages will have to do a job of displaying moved to
 
@DaveRandom isn't this for a base path redirect?
 
If you use permanent then Google should only hit it once and then it will only hit the location
 
@DaveRandom how can he send an apache directive programmatically?
 
@andho ...and? Isn't that what we want here?
@andho .htaccess in the root
 
@DaveRandom so you are suggesting he puts a line to map each of the old-urls to the new-urls in the .htaccess file?
 
10:50 AM
@DaveRandom Thanks for that, so if I understand correctly, you're suggesting create a large static list in the htaccess file for the content. I'll run a query to mix and match the values I need and use php to echo out the loop of what I need to add in the htaccess file.
 
You just have to generate a huge lookup table, since the IDs have changed. You could write a script to do it dynamically, but what's the point? If you issue 301s this will be a very temporary problem, so you may as well generate a 1-off set of rules, let the search engines pick it up, then you can delete it and forget about the whole nasty business
 
there might be old links to the pages, best to keep them
 
You could spend 3 days writing a nice dynamic script to do it with a ridiculously complicated set of mod_rewrite rules to force the old-style requests through you script, but it seems like overkill to me.
 
@andho Not on the site, if it was external, I don't care, we were beta testing and google went crazy in one month's time.
 
@DaveRandom I would generate the Redirect directives with a script, cox I hate building lists manually. Maybe if it was less than 100 items.
 
10:53 AM
Thanks for that daverand, so now I can take care of that. So here's what's gonna scare you off a bit.. what do I do if I have... 140k records.. to fix...
The regular stuff is about... 3k records, which I can do.. but the 140k pages (e-commerce) is a bigger deal
 
@Darius a script to generate the .htaccess file
 
a big htaccess file won't kill the server/access to site?
 
@andho Yeh I mean generate the file with a script, just don't do the actual redirecting with a script
(sorry should have been clearer on that)
 
Actually, you know what, I think I'll generate it in chunks. Couple days one, couple days 2nd chunk and just chop it down till no errors
 
@Darius You should do it all in one. Google won't keep trying forever, eventually they'll give up and you lose your rankings
 
10:56 AM
Got it, alright. Thank you for that! Now I know what direction to start working in.
Embarrassed to have made this error in the transition process :(
Now I know..
 
@Darius The only real mistake you made is in changing your IDs. If you do that, it becomes no longer a simple rewrite job and you have to create a lookup table to translate.
16 mins ago, by DaveRandom
And that, boys and girls, is why we never re-index our front end databases...
 
:D Thank you again.
 
@DaveRandom now when you say front-end, people usually have THE DATABASE so you're already too far
 
There is a situation where I need to do this one specific thing. I have an affiliate from which I get some products and they give me the title and I just have the barcode number. Using the barcode I get their product. Can I redirect the person to lets say /barcode/241212313/RandomWord where the number is the barcode and since I got the name from the barcode I set the canonical name to the real url once the robot visits that page so it will say /barcode/241212313/sneakers for the canonical name.
So that way, it's moved to the semi-correct page through htaccess, and the canonical url fully corrects the path it needs to go to?
 
@andho You never use back-end archiving databases then?
 
11:10 AM
@DaveRandom i thought you were talking about production databases
 
morning
 
@Darius Use redirects (you'll notice this is what SO does) - you link through to the page based only on the ID, then you do the lookup and create the full URL with the URL slug and redirect to that. You should ensure there is only one URL (to the outside world) where you can get at the same content.
You will be redirected to the full URL with the URL slug, even though they could just serve the content on that URL.
Same thing will happen if you use the short link stackoverflow.com/q/14020110
You always end up with the same URL in the address bar by the time you see an content
(use 301 redirects for this as well)
 
I see, so send them to /1231231 with 301 and do a redirect internally to /1231231/title-here once I get the info
 
@Darius Exactly
 
11:15 AM
Alright! Can't wait to see google go crazy in a good way again :D
Off I go, will be working now. Thank you Dave and andho and happy holidays!
 
Have fun... :-P
 
@Darius Happy holidays
 
FYI , people , the solstice was on friday already .. also known as "the end of world"
 
@tereško did you just wake up since before the solstice?
 
wat
 
11:23 AM
hello
 
yo
@hakre If you are going to keep making tiny edits, can't you sort out the wall of code?
 
@DaveRandom Sorry, back for one more question in regards to seo, which would you recommend in url structure ? /photo/title-123 (id at end of title and split the url when processing) or /photo/123/title (id in a separate place so handling it would be easy, like SO does), logically thinking 2nd approach is better but 1st approach looks nicer.
 
48 mins ago, by DaveRandom
Dec 15 at 21:02, by DaveRandom
Everyone join hands while we sing the "SEO is a myth and a waste of time" song
(or, in other words, it really doesn't matter)
 
O.O that was within a second of me asking lmao
 
You should do it in the way that's programmatically easiest/most sensible to you
 
11:31 AM
@Darius the reason i have seen for the second approach is that when someone copies and pastes the answer somewhere else, some websites tend to cut off the url if it is too long
 
I suspect the answer to that will be /photo/123/title
 
@DaveRandom what ya mean?
 
2nd approach it will be then, definitely more reliable and SO uses it so I can't go wrong. Thank you.
 
@hakre stackoverflow.com/posts/14020693/revisions - loads of people made tiny edits, none of them made that wall of code any more readable. I just felt like complaining.
 
@DaveRandom Sure, complain :)
 
11:36 AM
@Darius Just remember this: the number 1 thing you can do to get high rankings in Google is to have good content that people want to see and use. Everything else is just pissing in the wind. As long as you don't do anything really stupid, nothing else matters. SEO is an industry built around stupid developers who build sites that are completely inaccessible to Google. Since you have the problem you mentioned earlier, you don't seem to be one of those people, so just concentrate on content.
 
@hakre Grumble grumble bloody kids with their grumble mumble taking our jobs grumble mumble not even music mumble
 
happy hardcore christmas :)
 
@andho So my final process will be use the ID from /photos/123/title , fetch the seo-title for that ID and see if it matches or not, if it doesn't match, lets say someone went to /photos/123/titl instead of title, redirect them to correct page, if it's correct, don't redirect and just show the page. Agree with this?
 
Note to self: buy some speakers for your office computer.
 
11:39 AM
@DaveRandom Note to @DaveRandom: With subwoofer and USB Disco Ball
 
@DaveRandom I appreciate the tip. I'm new to the online business and try to do my best in terms of content, seems we're good with that so far, just doing preventative measures such as SEO (since everyone's always hyped up about it, yet to know how much it will help. Everything seemed good before the SEO optimization we put in, so we'll see).
 
@Darius Your job is to make sure Google can find your content, and to make the content worth finding. Let the general public do the rest ;-)
 
@Darius hmm, i never thought about it that way but yeah that seems right. In one of the sites i did, i did not redirect the page but showed the content with the wrong title. But I put a link to the canonical page also
 
@hakre Best. Thing. Ever. Locating credit card as we speak.
 
@andho I checked how SO does it, and i edited a title and it corrected it for me, so I guess that's how they're doing it.
 
11:43 AM
 
As @DaveRandom is saying, content is more important. Google looks for some data structures on the pages it crawls, so would be good to put those in
 
@hakre The dude on the left looks like Wayne Palmer from 24
 
@DaveRandom yes, 24 casting was looking because of him for palmer.
 
@andho We implemented the datastructures such as "articles" and "artwork" to describe the webpages. is that what you wanted to tell me to do?
The stuff that says who the author is, the publication date, etc.
 
11:49 AM
I found the ultimate complaints song
 
but her voice is a little weak with the orchestra :/ maybe the mixing
 
@Darius that and some more
 
@andho Oh yah, that we took care of :) Thanks for the tip!
 
moshi moshi @hakre :)
 
11:53 AM
does anybody know of a reference to any guildelines to implementing crash only design
 
researching investment opportunities ?
 
is that what they use on planes too? ;-)
"oh dear, the left wing broke off ... hmm, let's land and start over" :)
 
Left wings are overrated anyway. Right wings, that's where it's at.
"crash only design" sounds like the MS developer's mantra
 
> An example of a crash-only implementation is unplugging a computer and plugging it back in
wonderful.
 
ranking developers by the number of patterns he can recite
 
12:01 PM
I don't think that's a great ranking
 
Anonymous
 
Write a program on a piece of paper that incorporates all design patterns you can think of.
 
yeah, considering any one aspect of something is never a great way of ranking
but might be good to learn as many as i can and put on my CV :P
@Jack what's the end result?
 
@andho That's unique to each dev of course :)
What's more interesting is asking the subtle differences between certain similar patterns.
 
$.workProperly() <-- the only design pattern you need.
 
12:03 PM
@Jack i meant in a mental state perspective, what will it do to me
 
Maybe throw a bit of super::$tatic in there as well
 
@andho ehm, i was just joking ;-)
who writes programs on paper nowadays heh
 
@Jack well then you might be onto something
 
like, the difference and similarities between observer pattern and mediator.
 
@Jack i don't really take patterns to heart. maybe i should read up on them more considering i cannot remember the mediator pattern
 
12:16 PM
@Jack Great hat :D I really wanted to have it!!!!! :D
Will PHP 5.5 allow to have arrays and objects as "keys" in foreach iteration?
 
ooh, that'd be noice
though, there's SplObjectStorage.
I, for one, would be a bit weirded out by foreach (array_keys($arr) as $array) { ... } though.
 
asking for things like:
0
A: PHP - Return array of parents from multidimensional associative array for breadcrumb list

hakreIn your example there are actually two paths possible: Key 'Project settings' found: 'Projects' -> 'Project 1' Key 'Project settings' found: 'Projects' -> 'Project 2' You can easily solve this with a recursive iterator (See RecursiveIteratorIterator it offers all you need). I choosed it ...

 
Anonymous
hakre, got a second? I've a question
 
@TheCOMPLETEPHPNewbie Just ask.
 
Anonymous
Well, I just need to know what the difference is between if(isset($variable)) and if($varible) are they the same>
 
12:23 PM
They're not. if ($var) will complain if $var is not set / undefined.
 
Anonymous
Well obviously then if($var) is useless compare to if(isset($var)) right? Is there a reason to use if($var) over the other/
 
@TheCOMPLETEPHPNewbie If you don't know whether most of your variables are defined or not, you have bigger problems.
 
@TheCOMPLETEPHPNewbie and? you looked into the manual and now you are more confused then before? Or what is a better solution? Any ideas why it doesn't work properly? Any insight will be highly appreciated. Suggestions/answers are much appreciated: thank yous in advance. Can u please help me out ? How can I solve this?? ^_^
php.net/isset - bool isset( mixed $var [, mixed $... ] ) (PHP 4, PHP 5) isset — Determine if a variable is set and is not NULL
 
thanks yous .. hehe
 
Anonymous
12:33 PM
@hakre No, actually I am reading the manual and have not reached that. I am in variable scope. But, this one just came into my mind now, because I saw a tutorial someone using if($var) instead of isset
 
@TheCOMPLETEPHPNewbie without using isset will give you warnings/notices if you have the recommended error reporting for development.
 
@TheCOMPLETEPHPNewbie Something that I've overlooked earlier ... if (isset($var)) only tells you whether the variable is set or not, not whether the value is truthy.
The complete statement would / could be: if (isset($var) && $var)
 
@TheCOMPLETEPHPNewbie 3v4l.org/Zel2U
 
@Jack which is also available with empty(). so if (!empty($var)) (which checks for unset variables as well)
 
Anonymous
Isn't this better, or I guess... if(isset($var) !empty($var))
 
12:37 PM
If you're wondering why $var is not evaluated when it's undefined, do check out @ircmaxell's video on Logic :)
@ircmaxell true that, thanks
 
:-)
@TheCOMPLETEPHPNewbie empty($var) is identical to !isset($var) || !$var
 
Anonymous
hmm...
 
which is identical to !(isset($var) && $var) :)
 
De Morgan's Laws FTW
bbiab
 
Anonymous
I use if(isset($username) && !empty($username)) when I am making sure, if value exists,
 
Anonymous
12:42 PM
But, isn't if($var) useless if used out of a conditional statement context? I mean, PHP will skip it, and process the next script whether if($var) is true or false.
 
@TheCOMPLETEPHPNewbie Seriously, watch this video now:
http://www.youtube.com/watch?v=udOU0gagZqg
 
Anonymous
thanks
 
I didn't know you had videos ircmaxwell, that's cool. Did your work on that simple best practice password hasher get into PHP core?
@ircmaxwell ^
 
12:59 PM
@tereško: you you and event binding cross browser js fragment somewhere, right?
 
3 sec
this is the "new" version
i hope it does not require a "how to use" description
anyways ... time to go and cut down some spruce-tree
 
happy chopping + thx
 
Hi guys!
 
hi @Jasper!
 
Mornig people
 
1:07 PM
@PeeHaa A very fine good morning @PeeHaa
 
Yo @hakre!
 
tereško's piece of js event handling made me wonder: why again is that we dislike inline js events so much? I mean I know the technical problems (string interpreted as js, scope problems, you can only attach a single event, bubbling isn't too well-defined) but is it just those technical issues, or is it more than that?
 
@Jasper Not to forget maintainablity, sepration of concerns
etc
 
@Jasper I have no clue what you are talking about. But that's probably just my nooby javascript skillz.
 
Ha first!
 
@Gerry yes
 
@ircmaxwell Glad to hear it, we needed it.
 
there's no w in my name ;-)
 
@ircmaxell also, congratz
 
1:17 PM
thanks ;-)
 
lol
doh
muscle memory I think :)
 
no problem
 
@PeeHaa I was just thinking about the separation of concerns and thought well, putting a button right with the code that has that button do something isn't too illogical, but now that I think about it saying "The button with id='something' does x" allows you to completely change the look of your site and by the virtue of still having a button with that id you still get the functionality
 
Well, don't think in id's. Think in abstract bits of functionality. That way you can re-use code...
 
@hakre Basically, I was questioning the doctrine, to make sure (for myself anyway) that it's based on what we want as well as on technical limitations
 
1:23 PM
24,000 minutes watched on my youtube videos... To put that in perpective that's one person watching for nearly 17 days straight...
 
@Jasper this kind of talking just goes over my head. Consider me and my brain to be in noob mode until some coffee flows in.
 
@ircmaxell I'm not sure what you exactly mean with the thinking in absract bit of functionality here
 
@ircmaxell Yes, that's me. I compile a 24 hours watching programming with anthony as nyan nyan cat version.
 
noh, I didn't want to start the fire. These vids are depressing somehow.
I also have the feeling they cause brain damage
 
1:28 PM
The ultimate torture is 24 hours of this: youtube.com/watch?v=Z3ZAGBL6UBA
/me speaks from experience
 
@ircmaxell Basically the reason I was thinking in terms of an id was that that is the way you can use the exact same javascript with different html (after a change or even just when having alternate "templates" that show the same page in a different way
 
Well, but you're limited to one per page
 
this, on the other hand, is excellent: youtube.com/watch?v=ednKK8GlvwI
 
@igorw Why have 10 hours, when you can have infinity: trololololololololololo.com
 
1:35 PM
@ircmaxell but I'd say that's a completely different matter there. Basically, to avoid such limitations, you should make a named function that does the "abstract bit of functionality" and then have the code that binds the event to that function (or even to calling that function with specific arguments) somewhere else
but I was talking about the event binding code, which still uses an id (or something else to get the correct elements)
 
eih...
 
@Jasper Why does it have to use an id?
Often you want to bind it to some upper level element to prevent from adding a shitload of listeners
Also: an id isn't the only thing you can select elements on :)
 
@ircmaxell it does not loop so nicely though
 
@PeeHaa I never said that id was the only way to select something, in fact the whole id only came up because I used it in a single example.
But in the end it doesn't really matter what way you use to refer to an element
 
1:44 PM
@ircmaxell what? :D
 
@hakre get to the end, it's worth it
 
I was basically talking about "whatever method you use to refer to your element" as for your event handling you do need to refer to the element
 
yeaaaaaah :)
 
Perhaps I should just stop questioning the known best practice - I've heard it's good for your sanity
 
 
1:51 PM
@ircmaxell "At least, in three-dimensional Euclidean space" :D
 
@Jasper One should never stop questioning anything unless you have seen / experienced the benefits yourself
 
:-)
ViHart is amazing
 
Unquestionably so
 
@PeeHaa even then, you shouldn't stop questioning yourself
 
@PeeHaa fair enough, but sometimes (like just then) getting your point across is getting well enough in the way of getting anywhere that it's just so much more productive not to be questioning it
 
1:59 PM
@ircmaxell Wise words
 

« first day (800 days earlier)      last day (4139 days later) »