User Profile

Collapse

Profile Sidebar

Collapse
thesmithman
thesmithman
Last Activity: Dec 5 '11, 10:06 PM
Joined: Aug 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thesmithman
    replied to FTP over SSL/TLS
    Thanks again for your feedback. So it sounds like you're using SFTP, not the FTP over SSL that I'm having problems with; and that makes me think that SFTP is probably the best way for me to go. I take it you used the public IP assigned by your ISP to set up the SFTP account, and you just submit a new support ticket if it ever changes?

    Honestly I'd rather switch hosts now, rather than deal with more headaches in the future, if I thought...
    See more | Go to post

    Leave a comment:


  • Hi Jason,
    I would suggest that in order to do what I think you're describing, you'll probably need some programming technology other than simple HTML. You might be able to use PHP, JavaScript, or even XSLT, based on your requirements and your comfort zone. If you're uncertain, I recommend PHP. The syntax is fairly intuitive, it does not rely on the visitor's browser, and it's supported by most shared hosting environments. You did mention...
    See more | Go to post

    Leave a comment:


  • thesmithman
    replied to FTP over SSL/TLS
    Thanks very much for your feedback, sicarie. I suppose I could do that... it would feel a bit temporary and unreliable. It's true my public IP (as determined by "your IP is..." websites) tends to stay the same for months at a time; but my understanding is that the ISP could at their discretion change it at any time for whatever reason. I try to update my website frequently, although I don't have time to update as often as I would like....
    See more | Go to post

    Leave a comment:


  • thesmithman
    started a topic FTP over SSL/TLS

    FTP over SSL/TLS

    Hello to all you security experts out there,

    My website is hosted on a particular shared hosting server, run by some big company; let's not get into which one. Suffice to say, it's a typical cPanel account on a LAMP stack. The server (not my domain, but the server itself) possesses an SSL security certificate, and I can connect to the server securely for e-mail and cPanel admin.

    My web host's Knowledge Base states...
    See more | Go to post

  • Thanks Banfa,

    That totally did it! I really appreciate your pointer, thanks for the tip; you saved my hair, I was ready to pull it out.
    See more | Go to post

    Leave a comment:


  • thesmithman
    started a topic setting up a server for a small office LAN

    setting up a server for a small office LAN

    Hi all,

    I know this is a total newbie question but I've already spent far too much time trying to figure it out, and answers from Google search results have been all over the place so I'm hoping some of the Bytes community members might have some insight.

    I'm trying to set up a tiny local network. This network is for application testing, so it will not connect to the Internet at all. I only need the machines to be...
    See more | Go to post

  • thesmithman
    replied to What is the best GUI library?
    in C
    Almost a year later, I'm posting an update to this thread because upon reflection, I changed my mind.

    I eventually decided to go with wxWidgets after all. The library is extensive and seems to function in the required manner. It has a permissive license, with a clause allowing users to do anything they want to do with the compiled executables (such as sell them for money without revealing the source code or paying a licensing fee...
    See more | Go to post

    Leave a comment:


  • thesmithman
    started a topic Defense Against the Dark Arts
    in PHP

    Defense Against the Dark Arts

    Hi All,
    There have been a whole lot of high-profile hacks lately: Sony, Lockheed Martin, the CIA, the Senate, the list goes on. I've heard that many of these relied at least in part on SQL injection. However, news reports don't provide much information regarding what we as coders can do to protect ourselves, our websites, and our users.

    Within a PHP/MySQL environment, I think most people know by now that
    • all user-submitted
    ...
    See more | Go to post

  • thesmithman
    replied to PHP Vunerabilities in sessions
    in PHP
    Hi Aaron, sorry you didn't get a reply sooner. As I'm sure you're aware, session hijacking occurs when a third party intercepts the packets sent to the server by a logged-in user. When the user logs in and is authenticated, the server sets a session identifier cookie in the user's browser. Each time the user accesses a new page, the cookie data is transmitted again. If your users are not accessing your pages over a secure connection, then anyone...
    See more | Go to post

    Leave a comment:


  • One question to ask when evaluating the utility of any method, is how long you intend this system to be in place? If the children grow up and have kids of their own, then the parents become grandparents and the children become parents and you have to do some rearranging. Furthermore, if parents get divorced (and that does happen, even in church communities) then you have to be able to separate them from each other while retaining their relationship...
    See more | Go to post

    Leave a comment:


  • I think the dialog you're referring to is created by the operating system, not by the program that is opened by the icon. For example, I can open a .doc file with Microsoft Word, or I can right-click to open the same file with OpenOffice.org if I want to. So you may not have control over this feature, to the best of my knowledge.
    See more | Go to post

    Leave a comment:


  • Hi Panditt,
    If this is a one-time operation, I would probably use a simple for loop that iterates a thousand times and increments through the record numbers. Alternatively, if your records are numbered sequentially, you could do something like

    Code:
    UPDATE table WHERE id<1000
    It's not very fancy but it just might get you through.

    Happy coding!
    See more | Go to post

    Leave a comment:


  • thesmithman
    replied to CSS Validating Error!
    Hi Justin,
    I think the good doctor was suggesting you might want to rearrange your declaration thus:

    Code:
    .yourclass{
    background:#fff url(../images/right-bg.gif) repeat-y right;
    }
    as the #fff in your declaration is the color.

    I might also question what the 0 is intended to do. In the error message you related above, there is a 0 before the #fff. The background declaration can be...
    See more | Go to post

    Leave a comment:


  • Hi acoder,
    Thanks very much for your reply. I appreciate the thought; and you are correct that if there were only one image within my contentEditable div, then I could simply navigate down to the image from there. Unfortunately I have no way of knowing how many images will be contained inside the div, so I can't reliably predict that a particular image child node is necessarily the selected image.

    What I wanted was a button...
    See more | Go to post
    Last edited by thesmithman; Oct 8 '10, 05:22 PM. Reason: clarity

    Leave a comment:


  • Hi Nesha,
    I'm a little unclear what you're trying to do. Presumably you will eventually add input elements to your form. Are you trying to use JavaScript to get the value of the inputs, after the user has submitted the form, for the purpose of form validation? If so, then you access input values something like this:

    Code:
    var inputValue = document.forms[0].yourInputName.value;
    where "yourInputN ame"...
    See more | Go to post

    Leave a comment:


  • are you looking for something like this?

    Code:
    function myfunction(){
    checkCookie();
    var inputs = array('Firstname', 'Lastname', 'Address');//et cetera
    for(var i in inputs){
    alert(document.forms[0].inputs[i].value);
    }
    }
    I included your call to checkCookie within the function that alerts all the values. Then you would just have to change your submit...
    See more | Go to post

    Leave a comment:


  • How to get the selected image inside a contentEditable div

    Hello,
    I wrote a little rich text editor. Like many widgets of this type, it uses an iframe that contains a div element with contentEditable set to true. It works pretty well except for one thing: I would like users to be able to select an image and then click a button to edit the image's HTML attributes. I've waded through pages and pages of Google results but have not found a solution that works in W3C compliant browsers (although I did...
    See more | Go to post

  • thesmithman
    replied to What is the best GUI library?
    in C
    For anyone who finds this thread, here is a brief summary of my experience now that I've had time to play around with a couple of libraries on my own time:

    My initial experiments with each library consisted of little more than compiling the provided example files.

    -compiling the provided examples from the FOX toolkit resulted in compile-time errors

    -I also experimented with the wxWidgets library, which seems...
    See more | Go to post

    Leave a comment:


  • Hi Josh,
    It sounds like you want to attach the event listener to the parent of all the other elements. The HTML element from which all the other elements are descended is <body> so I think that is the element you're looking for. Alternatively you could try using the window object.

    For the other part of your question, YarrOfDoom gave a good answer: your script will be listening for the mouseout event.

    Happy...
    See more | Go to post

    Leave a comment:


  • thesmithman
    replied to What is the best GUI library?
    in C
    Thanks for the clarification re: executables, I appreciate it.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...