Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Salem
  • Order by date
  1. Salem

    Partially disabling touchpad

    Perhaps https://duckduckgo.com/?q=touchpad+palm+rejection Plus the name of your laptop. -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  2. Salem

    Robocopy OK on command line, errors when in batch file

    Do you name your batch file as .bat, or .cmd? https://stackoverflow.com/questions/148968/windows-batch-files-bat-vs-cmd -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  3. Salem

    Video outputs on laptops

    Each new model / variation of a laptop is just a few tweaks on from the previous version. Just putting a connector on the other side is a major investment for the manufacturer, which would be a cost passed onto the consumer in a very price sensitive market, especially at the low end. I guess...
  4. Salem

    Segmentation error assembly

    > hex file built around the code What does this even mean? Normally, if you want to remote admin a machine on your local network, you 'ssh' into it and issue the shutdown command to shutdown or reboot. -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect...
  5. Salem

    Segmentation error assembly

    Because Linux != DOS. > mov ax, 5307h http://www.ctyme.com/intr/rb-1404.htm No, you can't just power off the machine with a few simple asm instructions poking away at a non-existent DOS interrupt from the user space of a 64-bit protected operating system. > do anyone have any solution for the...
  6. Salem

    Processor for new PC

    What are your use-cases that require all this extra performance? -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  7. Salem

    Script with three nested loops taking a long time to run, can it be improved ?

    Go for the innermost loops first, because they're the ones which ultimately run most often. So constructs like this: echo $wprice | awk -v wp=$wprice '{printf "%2f\n",wp+7}' | awk -F. '{print $1"."substr($2,1,2)}' Might be replaceable with this: awk -v wp=$wprice 'BEGIN {printf "%.2f\n",wp+7}'...
  8. Salem

    Script with three nested loops taking a long time to run, can it be improved ?

    Formatting and indentation go a long way to readability. #!/bin/bash # startdate=`date` outfile=price_list.txt rm $outfile # create full price list full=1 if [ $full -gt 0 ]; then minh=1750 maxh=2000 mind=1400 maxd=2000 minw=1400 maxw=3000 else minh=1450...
  9. Salem

    Using My Libraries in Linux

    Your .profile comes into effect when you login. So all you need to do is logout and login again. Also, you can re-read it by just typing in . $HOME/.profile -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  10. Salem

    Using My Libraries in Linux

    Try using say $HOME rather than ~ Or failing that, absolute paths. Not everything understands ~ shell magic. -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  11. Salem

    Backups

    What kind of backup? - Physical media (tape/disk) - Remote site you control - Remote site you don't control (aka - "the cloud") How much data, MB, GB, TB? - in the initial backup - in the deltas between whatever your backup interval is. How often do you backup? - x times a day? - every day? -...
  12. Salem

    Using My Libraries in Linux

    https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html In your .profile/.bashrc or similar export LIBRARY_PATH=/path/to/my/lib export CPATH=/path/to/my/headers -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  13. Salem

    IT Management for financial services companies

    Is your company registered with the SEC - https://www.sec.gov/ ? Do you know what their best practice guidelines for IT are? https://www.sec.gov/spotlight/cybersecurity Could you pass an audit from them? > Almost all of our users are on laptops as they travel very frequently between offices...
  14. Salem

    ping -t not working

    Your 'ping', along with whatever else is available at your shell prompt, is most likely provided by busybox. https://busybox.net/downloads/BusyBox.html -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  15. Salem

    Application not visible

    Use the old-style keyboard interface. Assuming it's just got itself positioned off-screen somewhere, try alt-space R This will make the app be no longer maximised (or do nothing). alt-space M, then any arrow key This will activate the move window control, which initially takes its cue from the...
  16. Salem

    SCO Unix Bulk Process Killer

    Do you have pgrep and/or pkill available? PGREP(1) User Commands PGREP(1) NAME pgrep, pkill - look up or signal processes based on name and other attributes SYNOPSIS pgrep [options] pattern pkill [options] pattern...
  17. Salem

    FlipflopflapflipflupFLOP

    Perhaps they're trying to avoid the singularity. https://www.youtube.com/watch?v=nEI19kJ5GfU -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  18. Salem

    comparing 2 arrays for invalid mac addresses only

    A perl 1-liner ;) $ perl -e '%valid=(); open FH,$ARGV[0];while(<FH>){chomp;$valid{$_}=1;};close FH;open FH,$ARGV[1];while(<FH>){chomp;print "$_\n" if ( !defined $valid{$_} );};close FH;' 1st_file.txt 2nd_file.txt 1B:BB:1C:7D:34:77 F8:8A:2C:5F:FD:49 Or formatted for readability $ perl -e...
  19. Salem

    regex help multiple pattern extensions

    Try this $ find . -regextype posix-extended -regex '.*/DC18B[0-9]+\.(xml|zip)' ./progtest/DC18B20181130111.xml -- If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
  20. Salem

    Making swap space contiguous

    NTFS stores it's backup MFT right in the middle of the disk, which limits the maximum contiguous size you could have to be half the disk. https://flatcap.org/linux-ntfs/ntfs/help/layout.html One possible workaround would be 1. disable the swap 2. fill the disk to nearly half full with multiple...

Part and Inventory Search

Back
Top