Search results

  1. SoapSurgeon

    Ruby on Rails help needed

    Check out RailsCasts too, great source of information.
  2. SoapSurgeon

    “In an array with integers between 1 and 1,000,000 one value is in the array twice. How do you deter

    they will be once you've sorted them? My understanding was that you would have 1,000,001 numbers from 1 - 1,000,000 but with a duplicate value somewhere.
  3. SoapSurgeon

    “In an array with integers between 1 and 1,000,000 one value is in the array twice. How do you deter

    Could you employ some sort of binary search once you've sorted it? Take the middle index, check the value there if it isn't what you expect then the duplicate must be in the first half, else repeat with the second half? For instance the index 499,999 should contain the value 500,000. If it...
  4. SoapSurgeon

    Colorbox - Help!

    I have not got much experience with colorbox but I have used fancybox pretty extensively. To group in fancybox you set the rel attribute on all the images that are part of the same group. Could you not set the rel attribute of all the thumbs to "thumbCb" but only have the class "thumbCb" on...
  5. SoapSurgeon

    Colorbox - Help!

    Just a quick glance, but what does $(this) refer to when inside the colorbox function? Your line: if ($(this).attr('href') != undefined) looks like you are trying to refer to the anchor that has been clicked, but inside colorbox $(this) probably doesn't refer to that? You can do...
  6. SoapSurgeon

    Transmit FTP converting file names to lower case

    It's called Transmit for Mac. It is pricey and a pile of ****. Really can't figure this out. edit: turns out it's only certain folders it is deciding to convert to lowercase :@
  7. SoapSurgeon

    Transmit FTP converting file names to lower case

    Im using transmit to upload a site to a server but it appears to be forcing all files/folders to lowercase which stops the site from working. I think it is a transmit issue but I'm not 100% sure, it could be FTP. Has anyone had a similar experience or know why this is happening, can't...
  8. SoapSurgeon

    Help me decide which theme is the best

    I think I prefer the first. There are aspects I like/dislike about both but I think the first one edges it. Good job.
  9. SoapSurgeon

    Preferred domain (www or non-www)

    I point the root domain to the www subdomain - I just prefer it as www.mydomain.com
  10. SoapSurgeon

    SOME women are snakes!!

    is it the amount or the proportion that is bothering people? She would have got used to a certain style of life and it is unfair to expect her to simply drop all that because Kobe fancied shagging somebody else.
  11. SoapSurgeon

    Galleries, iPhones, Facebook Pictures and Homepages!

    You could probably reject all email addresses apart from a chosen one - although I do take your point, it is a risk! What about a web form that accepts a file upload? I don't know how iPhones handle them, does it let you browse your photos and upload? That could be an option.
  12. SoapSurgeon

    Galleries, iPhones, Facebook Pictures and Homepages!

    1 idea: you could set up a dedicated email address: [email protected] that runs a script on all incoming mail to process the images and save them to your gallery. It would save you having to create your own iPhone application and means you could use it from any device. Adding the latest...
  13. SoapSurgeon

    Makes of Jeans you have found to be good?

    Ted Baker - might be out of price range but I think they have a sale on atm, could find a bargain.
  14. SoapSurgeon

    Filter query - algorithm

    It is a value that is calculated on-the-fly based on a number of factors. For example, if a user has shown interest in a similar product, the product has been purchased/viewed a lot etc will all increase a products interestingness... This will be calculated during the query. I was thinking a...
  15. SoapSurgeon

    Filter query - algorithm

    Hi, Thanks I've read that link - very interesting but not what I'm after, it might come in handy later though. What I require is a timeline of products. Let's imagine that 5000 products have been added today. I want to display a subset of those products hand picked for a particular user (the...
  16. SoapSurgeon

    Filter query - algorithm

    Hi, Thanks for your reply. There will be new 'products' added all the time and I want the most interesting recent ones to show. Being stale is a definite no-no - I don't want a really interesting product that was added a year ago to show on the front page (strange as it may seem!). I think...
  17. SoapSurgeon

    Filter query - algorithm

    Hi, I have a series of records in MongoDB (although it could be anything for the purpose of this question). Lets say I have a number of products: Product: id name price date_added interestingness I want to list the 25 most interesting products ordered by date (latest...
  18. SoapSurgeon

    Javascript onfocus / alerts help :)

    I think the first problem is to do with the alert. When the alert shows focus is taken away from the input - when you click ok it is given back to the input, forcing another alert... and so on. You could try logging to the console instead? console.info("input focussed"); and then checking the...
  19. SoapSurgeon

    Call of Duty: Modern Warfare 3

    You just lost some more skillz :eek:[/MEDIA]
  20. SoapSurgeon

    Why does England still have a royal family?

    What do people think about maybe sacking off the royal family and installing David Beckham as head of state? Could work.
Back
Top Bottom