kevin_911's Profile User Rating: -----

Reputation: 4 Apprentice
Active Members
Active Posts:
127 (0.07 per day)
02-April 09
Profile Views:
Last Active:
User is offline Oct 06 2013 04:44 PM

Previous Fields

Who Cares
OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:

Latest Visitors

Icon   kevin_911 has not set their status

Posts I've Made

  1. In Topic: Jquery Adding and Removing Cookie

    Posted 23 Sep 2012

    View PostMartyr2, on 23 September 2012 - 02:37 PM, said:

    Well doing an expires -1 is going to expire the entire cookie which is under the same key "Cookies". Remember that it is a key->value system here so your entire my_array is being placed under the key "Cookies".

    Have you tried removing the value from "my_array" and resetting the cookie with the same name? This should overwrite the cookie at the key "Cookies" minus the value since it is no longer in the array.


    Actually I realised that right after I posted this but forgot to update this post.

    I tried removing the item from array list but now my jquery is not working :(
    It doesn't remove the cookie from the array.
    var val = $(this).attr("href");
    var index = my_array.indexOf(val) > -1;
    if (index = -1) {
    return false;

    Edit: As mentioned above, the cookies are stored like 74851%2C48877%2C55669 do I need to split it and then remove the element?
  2. In Topic: Image names

    Posted 16 Sep 2012

    View PosttlhIn`toq, on 16 September 2012 - 08:33 AM, said:

    folderCount + 1

    And on that note I'll be bowing out of this conversation now. Happy to help with a single problem, but I don't really have time to be a personal tutor for every line and ultra basics like how to add 1 to a variable.

    Thanks, I know about 'folderCount + 1' :D and yes all this is basics :) which I am aware off.
    I asked the question without even thinking what I was asking :P Silly me......Trust me I didn't write the rest of the code by 'cut and paste'. I know the code is ammature but I am getting there

    But appreciate the rest of your message about learning programming ;)......Don't worry I am working at it everyday.....

    Anyways got it working as

    wc.DownloadFile(newURL, largeDir + "\\" + (folderCount + 1) + "." + split[split.Length - 1]);

    I am now going clean out my code and make it more methodical ;)

  3. In Topic: Image names

    Posted 16 Sep 2012

    Thanks for the reply :)

    Ok so as you advised I get the folder count as this
      int folderCount = System.IO.Directory.GetFiles(System.IO.Path.Combine(ImagePath, PropIdFolder, LargeFolder)).Count() ;

    But when I am saving it to the folder how do I add 1 to it?

    wc.DownloadFile(newURL, largeDir + "\\" + <folderCount> + "." + split[split.Length - 1]);
  4. In Topic: Image names

    Posted 15 Sep 2012

    Hi Thanks for the reply. The code is a bit of a mess, sorry :(

    Ok hopefully I can explain a bit more. Basically I have a property website and each property has a different property code and image folder, hence the names SP1 and SP2 etc....

    Before this code, I perform a deletion to clear out the images from the folder and then when the import happens new images are brought in.

    The images are only deleted inside the large and thumb folder and main parent folder is left as it is.

    The next part of the code (as posted above) basically refills the folders and if there is a missing parent folder then it creates one.

    At line 4 I get the ID of the property (as you mentioned) i.e. 1,3 or 20 etc and then add it to the folder name as SP1,SP3 and SP20.

    So the code keeps looping through the ImgList at line 4 till the end.

    Now the list can create from SP1 to SP458 depending upon the feed.

    As you can see at line 34, idx++ keeps incrementing as the number of images come in.

    I am not able to figure as to when to reset the idx when it sees a new property ID meaning if property id is different then reset idx to 0?
  5. In Topic: C# Deleting Directory Files

    Posted 14 Sep 2012

    View PostCasiOo, on 14 September 2012 - 09:59 AM, said:

    On page 1 you already have the code to loop through the directories. What you would then want to do is loop through the files. You can get the file paths by using Directory.GetFiles(path)

    Thanks for help again :) I was able to get that working.

My Information

Member Title:
D.I.C Head
Age Unknown
Birthday Unknown
Programming Languages:
C++; C; ASP.NET; VB; MYSQL; Javascript; Unix/Linux

Contact Information

Click here to e-mail me
Website URL:
Website URL  http://


kevin_911 hasn't added any friends yet.


kevin_911 has no profile comments yet. Why not say hello?