dehydratedchicken

- friends
474 link karma
140 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • One-Year Club

    Verified Email

reddit is a source for what's new and popular online. vote on links that you like or dislike and help decide what's popular, or submit your own!

array_push() is being ignored completely. by T_Variablein PHP

[–]dehydratedchicken 1 point2 points ago

Ok got it, my bad

array_push() is being ignored completely. by T_Variablein PHP

[–]dehydratedchicken 1 point2 points ago

int array_push ( array &$array , mixed $var [, mixed $... ] )

Looks like they're passing by reference too

array_push() is being ignored completely. by T_Variablein PHP

[–]dehydratedchicken -2 points-1 points ago

You're not assigning the pushed array to anything. Pass the array by reference

array_push(&$keyArray, $k);

Need a free alternative to cPanel, to manage multiple (Friends) domains. Ideas? by jonatcerin webdev

[–]dehydratedchicken 1 point2 points ago

This. I needed something that could easily manage multiple sites on my VPS and managed to get it working in a few minutes with Nginx support too

Thoughts on my Heavy Metal Radio Station website? by markskullin webdesign

[–]dehydratedchicken 0 points1 point ago

For me the widget takes a while to load up, and then clicking the play button, takes a while for the player in the new window to load up too.

Additionally, when I first read your comment, I went back to the site and immediately tried clicking the speaker icon at the very top to play it - perhaps you could actually link that to the player too?

Overall a great looking website and I'm very impressed.

WTF America? by SoraPiroBin comics

[–]dehydratedchicken 0 points1 point ago

Maybe thats the joke.

First site I built in my new job. I think I'm really going to enjoy brining this design department's work to life. by maninthemiddle25in webdesign

[–]dehydratedchicken 0 points1 point ago

Fantastic site, one of the best things I've seen someone do with Magento

I'm interviewing two PHP programmers tomorrow, help me ask some questions please by ihaveaninjain PHP

[–]dehydratedchicken 1 point2 points ago

Here's some questions I was asked at a recent interview...

  • do you know what a closure is?

  • what workflows are you aware of? e. g. Agile

  • what design patterns are you familiar with? Example: singleton

  • what's normalisation?

  • what size teams have you worked with?

  • have you done pair programming?

  • have you ever disagreed on a solution with another developer and how did you deal with it?

  • what do you do when you realise that somethings going to take a lot longer than expected?

  • have you dealt with any critical issues on a live site and how did you deal with it, and how did you deal with the client?

  • how would you go about quoting for [basic Web dev task here].

  • what IDEs are you familiar with?

  • what frameworks are you familiar with?

  • have you ever realised you're not going to meet a deadline and how did you deal with it?

  • have you done any unit testing?

Reddit, what mental images make you cringe? by Just_another_manin AskReddit

[–]dehydratedchicken 1 point2 points ago

The thought of chewing on cotton wool

Because the internet needed one more picture of Batman in a wheelchair. by [deleted]in funny

[–]dehydratedchicken 1 point2 points ago

Wheelchair from the Bat Mobility store*

*Accessories sold seperately

Why are prices usually marked as $0.99 or $1.99 etc. instead of $1 or $2? by manmaladein AskReddit

[–]dehydratedchicken 8 points9 points ago

Its Pyschological Pricing

Psychological pricing or price ending is a marketing practice based on the theory that certain prices have a psychological impact. The retail prices are often expressed as "odd prices": a little less than a round number, e.g. $19.99 or £2.98. The theory is this drives demand greater than would be expected if consumers were perfectly rational.

It makes people think it's cheaper than it actually is

Wikipedia Article

Never taken a class, read only a basic quick 24 hour html book, had to learn some css today. How am I doing so far? by dude2k5in webdesign

[–]dehydratedchicken 1 point2 points ago

I might be being overly-critical so sorry in advance but here's a few things I'd say:

  • You're using a lot of tables instead of CSS to create your layouts. Try to avoid this An example of a layout would be this...(not for your site, but just to give you an idea of creating layouts)

    <div class="wrapper">
    <div class="column1">
    <!-- whatever you want in here -->
    </div>
    <div class="column1">
    <!-- whatever you want in here -->
    </div>
    </div>

    .wrapper { width:960px; margin:0 auto; overflow:hidden; }
    .column1 { width:650px; padding:0 15px; }
    .column2 { width:250px; padding:0 15px; }

  • The main navigation links look a bit weird, the Home link appears smaller, different colour and not bold.

  • Try to have a different state for hover on your navigation links. Using bold isn't a good idea as it makes the items around it "jump" as the element expands to give room for the extra width of the bold text. Alternatively, you can set a fixed width on each nav item which will prevent the issue with the bold text

  • Is there any particular reason you're using HTML buttons for your "More" links?

From the overall look of things it seems like you're using some kind of code generator to create the code, and even though you've got the Valid XHTML badge, it doesn't actually validate. There's a lot of markup errors, not to mention unnecessary markup.

If you really want to learn how to do it properly then try handwriting your code using Notepad++ or similar. You can use an IDE for code completion, but don't rely on WYSIWYG (What You See Is What You Get) editors to create an kind of clean or maintainable code for you.

Today my room mate asked me what I was watching on TV. It was How I Met Your Mother, and he had never seen it. What kind of pop culture items did you or a friend have no idea existed? by Peashoutin AskReddit

[–]dehydratedchicken 0 points1 point ago*

Last week at work I started a sentence with "My..my...my...mama..said..." as a Waterboy reference in response to someone stuttering a sentence and whilst everyone laughed, I discovered that there was one person that hadn't even heard of The Waterboy

I'm 24 and he's only a year old than me, I thought Waterboy was part of everyone in my generations' childhood

Since then, I ask him "How's Vicky Valencourt", "Can you get me some water too Bobby?" and other crappy references which he has no clue about, but the rest of us have a little laugh at his expense

Developing a daemon in PHP by domniklin PHP

[–]dehydratedchicken 0 points1 point ago

This is so awesome, I've been meaning to spawn a daemon on one of my projects for a time consuming task (creating a pretty large PDF file) and now I can have it run in the background whenever the contents get updated and prevent the admin from waiting for the file to generate when they decide to view the PDF

What are some good topics to write about in a programming blog? by rogue_coderin PHP

[–]dehydratedchicken 0 points1 point ago

Post snippets of code from whatever you've been working on that day, especially something you've had to look up.

It not only builds up a cache of code for yourself, but chances there's someone out there who's looking for the same thing.

It's also a means of code review and a learning platform for yourself because you'll find people will come and comment on how to make it more efficient or how they modified it for a different purpose.

This can then lead to you possibly finding an unsolved problem or just provide you inspiration to write some utility class or library that you can publish on Github.

You'll end up with what's essentially a code journal which you can then reference yourself and something that'll hopefully benefit others too - even trivial code helps, there's plenty of beginners out there.

It's a lot easier to blog regularly about instead long winded posts that you'll either get bored of

What's a phrase that someone can say, and you instantly know that you won't like them? by chrismuthadamnsipein AskReddit

[–]dehydratedchicken 0 points1 point ago

Some people don't need to think outside the box, they just need a bigger box to begin with

Say you have a website that works fine in Safari, Chrome, and Firefox. Is it worth it to go back and rework things to work in Internet Explorer? by jwong112157in webdev

[–]dehydratedchicken 0 points1 point ago

I wouldn't rely on that W3Schools statistic, your IE userbase could be significantly larger (or smaller).

W3Schools is a website for people with an interest for web technologies. These people are more interested in using alternative browsers than the average user. The average user tends to the browser that comes preinstalled with their computer, and do not seek out other browser alternatives.

These facts indicate that the browser figures above are not 100% realistic. Other web sites have statistics showing that Internet Explorer is a more popular browser.

Supporting IE8 and 9 isn't too bad. IE7 can usually do what you want, and you can always use progressive enhancement for CSS3 features e.g. your rounded corners just fallback to square ones.

Creating a form for an associated model from the "parent" model by dehydratedchickenin rails

[–]dehydratedchicken[S] 0 points1 point ago

That sounds very promising, I'll try both out tonight and report back.

Thanks for the help :)

Hey webdev, a client asked me to develop an intranet for them. Anyone with any recommendations for an open-source self-hosted intranet? by danscumin webdev

[–]dehydratedchicken 0 points1 point ago

Used it about a year back for a client intranet and it was a terrible experience. The codebase is really poor and the documentation was no better.

There were bugs and errors all over the place and it was a nightmare getting constant phonecalls from the client about issues with the system and then looking to see if I could make any sense out of the code and trying to fix them.

Can anyone tell me the SEO cost of redirecting a URL with good search rating to another URL with no search raing? by djmichaelbin webdev

[–]dehydratedchicken 0 points1 point ago

This, a 301 basically tells the search engine that the content it was looking for at the previous address new belongs at the new address.

One thing that we do when launching new sites is to crawl the site and map all the old URLs to the most relevant new ones.

Sometimes SEO's 'cheat' by redirecting content that's not available on the new site to a similar page (or the homepage) to keep the SEO value, but technically this is wrong. If the old content doesn't exist on the new site it should return a 410 status code (Gone). An example of this would be staff profiles. If a member leaves they should be gone, that content is no longer available. However, SEO's may use a 301 to go to the staff profiles page which isn't really correct as you're telling the search engine that the staff member details are now on the profiles page.

TL;DR 301 is a permanent redirect for content that now exists on a different URL
410 is for content that no longer exists

view more: next