- 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
void RemoveSpace(char *String)
{
    int i=0,y=0;
    int leading=0;
for(i=0,y=0;String[i]!='\0';i++,y++)
{
    String[y]=String[i];    // let us copy the current character.
    if(isspace(String[i]))  // Is the current character a space?
    {
        if(isspace(String[i+1])||String[i+1]=='\0'||leading…
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
I've been trying to construct a ruby regex which matches trailing spaces - but not indentation placeholders - so I can gsub them out.
I had this /\b[\t ]+$/ and it was working a treat until I realised it only works when the line ends are [a-zA-Z]. :-(  So I evolved it into this /(?!^[\t ]+)[\t ]+$/…
            >>> More
            
         
    
        - 
            
            
as seen on Server Fault
            - Search for 'Server Fault' 
            
We recently had an issues where I had rebooted our EC2 instance (Ubuntu x86_64, version 9.10 server) and due to an EC2 issue the instance needed to be stopped and was down for a few days.
Now I have been able to bring the instance back online I cannot connect to SSH using the keypair which previously…
            >>> More
            
         
    
        - 
            
            
as seen on Server Fault
            - Search for 'Server Fault' 
            
I'm having trouble trying to SSH to my Debian 5 VPS with blacknight.
It was working fine until I did the following:
Logged into 'Parallels Infrastructure Manager' - Container - Firewall - Set to 'Normal Firewall settings'.
It told me there was an error with the IPTables and offered the option again…
            >>> More
            
         
    
        - 
            
            
as seen on Ask Ubuntu
            - Search for 'Ask Ubuntu' 
            
I have a setup where I'm running Ubuntu 11.10 as a VirtualBox guest under a Windows 7 host, behind a restrictive corporate firewall. I have set up NAT from the host port 22 to Ubuntu's port 22; IT inform me that they have opened port 22 outbound for the host machine's IP address.
I have run ssh-keygen…
            >>> More