Jump to content

uralmasha

Members
  • Posts

    200
  • Joined

  • Last visited

Posts posted by uralmasha

  1. Paul, you want to have it as a one-liner? If so, I cant help you. Otherwise, would

    splitting on whitespace and/or dash, and checking the values before pushing them into array suffice? You can make it a 5-liner, something like this:

    <?php
    	$the_string='IPT - INPUT packet died: IN=eth0 OUT= MAC=00:16:3e:0b:fc:c3:00:05:85:f3:b8:9d:08:00 SRC=60.239.11.173 DST=140.211.166.36 LEN=48 TOS=0x00 PREC=0x20 TTL=114 ID=28281 DF PROTO=TCP SPT=3733 DPT=135 WINDOW=16384 RES=0x00 SYN URGP=0';
    
       $the_array=preg_split('/\s|-/',$the_string,-1,PREG_SPLIT_NO_EMPTY);
    
    	$the_hash=array();
    
    	foreach ($the_array as $val) {
    			list($newkey,$newval) = explode('=',$val);
    			if (isset($newkey)) {
    			  $the_hash["$newkey"] = isset($newval)? $newval :$newkey;
    			}
    	}
    	print_r($the_hash);
    ?>

  2. ... in case you have not been able to find the application.

    I just installed some packages and now I have the volume indicator on screen.

    Among those were

    kdeutils-klaptop and laptop-mode-tools. My guess is that one of those activates the volume indicator.

  3. My googling experience about this is that you have better chance to push files into your fhone using bluetooth. Though there is sure the cable, in my case it only gives acces to the sd-card as a storage device. With bluetooth you can push objects, files, addresses, calendars to and from the phone.

     

    Aside from kandy there are also multisync and multisynk programs to sync contacts/agenda, but it would not work on my phone, so I can't tell whether it can transfer files too.

  4. While Gowator's attacks go on for hours, I now have one or two instances of 3x "Invalid user" + 1x "LimitCons "DROP"" per day, not more than that. Because if you are dropping their connections for half an hour, they don't re-appear after that.

     

    I used this page -- Mitigating SSH brute force attacks -- to arrange blocking of the intruders. It uses shorewall and ipt-recent module, which is installed in Mandriva as well.

  5. chrisaltman,

    as I understood your needs, this kind of menu is available at my provider's ssh access.

    The footnote line says "welcome to pdmenu". If you google for this term, you'll find some references, in particular, pdmenu itself is available for download. It also exists as a mandriva package.

  6. Oh, great

    That's a piece of application i'm willing to pay for. It just contains the 3 features I need: straighten hirizon, shadows and highlights (had it also shear correction, that'd be too good!)

    Now I feel stupid 'cos I never bothered to try picasa under wine.

  7. Ypou can assign any key combination to switch keyboard layouts. In KDE this should be done via "cofigure your desktop" -> Accessibility -> Keyboard Shortcuts

     

    [1] Find there "Switch to next keyboard layout" , and assign the desired key combination. If you want a combination of modifier keys, like ctrl+shift, or alt+shift , KDE will not register those keypresses as a shortcut. Then you might do the following:

     

    Go to the "keyboard layout" to the tab "xkb options". Find there the switch you'd like to have, check the box, apply changes. You may also want to make sure that "sticky switching" is enabled in the "Switching options" tab.

     

    Now, when you start assigning that combination in [1], it will show up as ISO_Next_Group , and you can use it. There may be a better way to do it, but this is one thing that worked for me.

  8. PS

    a cute detail to amuse:

    at some point i gave up and grabbed the XP laptop. Before I could install anything the msi said: "please turn the firewall off" :-) I promptly ignored it, and rightly so. It took about 15 minutes to get all the software installed, and one shy attempt to connect at the end of it... I guess, that's pretty close to the average half-hour a Wndows user needs to get wormed. No wonder Epson supports linux :P

  9. So I finally got a second-hand Epson 2480 Perfection. It has an option for slides, too, but I don't have the unit yet. Id does not scan slides as such without that unit (not even in windws).

     

    I downloaded the software -- iscan and "plugin" which is obviously firmware -- from Avasys site. The RPM installed w/o a problem. Then the xsane, kooka, sane-backends.

     

    It almost worked, I even saw the scanning screen in xsane, but the scanner did not response, only made strange noise. I tried adding/removing some cooker packages for (x)sane etc., in the end I found that the scanner was locked by the "transportation lock" button. :lol2: After I unlocked it, it works. I can use iscan and kooka, but not xsane. Now it segfaults at the start, and I no longer remember what I did to screw it. :wall:

     

    Bad luck, but the iscan is pretty cool. If I were a dpreview site, i'd put the sig "recommended" on the epson scanners + avasys software.

  10. ok guys, thanks. I think I have an idea.

    So far I aim at Epsons with optial resolutin of 2400. I also made a search and found a few options to scan my old APS rolls (the films that always sits inside their cans). My first plan was to disassemble those cans, but Gowator, you have a point, and I'll have those rolls done by a photo studio B)

  11. I only want to get old film strips and photos in. Since negatives are never used to be shown in albums to the quests that are staying for too long :-) , they seem to be in a better shape that the photos that I once printed (would not like to print them again only to throw away!)

     

    Anyways, anyone knows whether negatives can be scanned by any scanner? It looks like 3200x6400 resolution is the number that is intended for a 35-mm film, since in the specs I see that max.resolution is 12800 DPI (i.e. max. 2" n 6400dpi).

     

    What I last have gotten from a photo printing shop as a "free service" on a "Kodac Picture CD" really sucked.

  12. I am considering whether I should get a scanner to digitize old photos. I know very little about scanners, so I do not know what to look at. I want to:

    1) scan the photos I have with a quality to print them later if needed

    2) scan some negatives so that I don't have to order photos from them first

    3) use later to e-mail documents, produce copies etc.

     

    I understand, that almost any scanner can suffice to (3), and I see quite a few models that have option (2). I already have a printer which I don't want to change, so all-in-one is not on the wish-list.

     

    I am willing to spend up to $180 (€150) on the device, thus the lower segment. My question is: which? How many DPI's should I opt for? 3200x2400 seems an awfull lot for me... Or do I want too much for two hundreds?

     

    Any experience would be much appreciated!

  13. perhapss this could be usefull as well:

    #!/bin/bash
    
    until [ -z "$1" ]
    do
    	echo -n "$1" # do what you want with "$1"
    	shift
    done
    
    exit 0

     

    Edit:

    i see that you want explanation.

    $1 ... ${XX} are so called "positional parameters" which are the command-line arguments as they are separated by white space (unless quoted). "shift " command throws away the first argument in the list, so that $1 disappears, $2 beccomes $1, $3 -> $2, etc.

     

    until ... ; do ; done is a loop.

     

    [-z "$1"] checks if the argument exists. If it doesn't, the loop ends, since this is the condition for the loop to run.

     

    In the form I gave it, test.sh * just lists the current dir contents

  14. ... make sure you have created and enabled samba user "hanes" with smbpasswd command. There is also no hosts aloow= xxx.xxx in your [globals] section. By default it is like "deny all" if I remember it right.

     

    BTW i have not checked it, but valid users = hanes and guest ok = yes seem contradictory.

×
×
  • Create New...