User Controls

  1. 1
  2. 2
  3. 3
  4. ...
  5. 346
  6. 347
  7. 348
  8. 349
  9. 350
  10. 351
  11. ...
  12. 638
  13. 639
  14. 640
  15. 641

Posts by gadzooks

  1. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
  2. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by GGG What did you google to find it?

    I'm not even kidding... simply "kool aid man oh yeah".

    No mention of "periods", "menstruation", "blood", etc.

    It was among the first matches found.
  3. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by GGG That's maybe the best thing I've seen in my entire life. Thank you gadzooks.

    I can't say I made it.

    I'm actually perplexed that such a thing already existed on the Internet.
  4. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by GGG Then why the fuck do you live in Canada?

    Vancouver is like... the honorary American city, with all the pros of being part of Canada.

    Most of Canada sucks.

    Vancouver, and surrounding areas, are absolutely perfect.

    Well, minus the cold. But the cold (and expensive real estate) are a relatively small price to pay.
  5. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Nil I gotta walk to the city tomorrow, should be a balmy minus 17c in the morning.

    God i hope somebody stops, if not 2 hour walk.

    I don't envy you, being in Edmonton and all.

    Vancouver's bad enough.

    But I know Edmonton (and much of the rest of Canada) are a lot worse.

    I used to live in Ottawa and Winter's there were absolutely brutal.
  6. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    I can't stand Winter, I can't stand cold, and I have some pathological fear of snow.
  7. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by GGG Well get out of your country and go to some other one you fucking birch

    I have to admit, seeing someone call somebody else a tree as an insult is kinda new to me.

    10/10 for originality, though.
  8. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Erekshun DH out rocked totse, BELIEVE!

    Factually incorrect.
  9. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    It's an all-out alt assault.
  10. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
  11. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
  12. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Is that a kool-aid tea bag?
  13. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Actually wait!

    I want to buy a diplomat.
  14. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Faggot.
  15. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Erekshun And still be WRONG

    There's an enormous difference between estimating historical global temperatures and predicting the severity of localized weather phenomena.
  16. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by 34nfi4w8g3wnfge4j93qrj309jg How did they know how hot it was in the 1400's if there was no computers back then

    They estimate trends in global temperatures by aggregating data from different sources.

    Originally posted by Wikipedia Quantities such as tree ring widths, coral growth, isotope variations in ice cores, ocean and lake sediments, cave deposits, fossils, ice cores, borehole temperatures, and glacier length records are correlated with climatic fluctuations.

    Basically, if you have sufficient correlational data, you can draw fairly confident quantitative conclusions.
  17. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Sophie Personally, i try to use PowerShell a lot as well, on Windows, it's good for automation and security oriented scripting too.

    The funny thing is, as much as I use Windows, I have yet to learn even the basics of PowerShell. It's on my To Do list, but just kinda low priority compared to other things so I haven't made much progress in that regard.

    Originally posted by Sophie I do a lot of cross-platform dev stuff as well though

    My exact set-up is as follows:

    Home computers are all Windows (except for a couple of "headless" Raspberry Pi's that I use for local "web" storage and local git repository storage).

    Then, I use a plethora of cloud-based virtual machines (AWS, Digital Ocean, etc) all running Linux.

    Then I just use SSH (PuTTY) and SCP (WinSCP), and various python scripts, to interact with the virtual machines (and my local RPi's).

    To some it might seem a bit convoluted, but it's what works best for me.
  18. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    I am fairly proficient with Bash, but only out of necessity (having to interpret other people's scripts, for example).

    But I think one of the biggest reasons I'm so drawn to using Python instead is because I use Windows just as much as I use Linux, and Python scripts will work almost identically on both environments (barring maybe the occasional minor necessary tweak).

    And since I have yet to encounter any shell tasks that can't be done with Python, I remain fully sold on Python.

    Although one factor I will concede on is that Python is technically an unnecessary dependency (since all Linux kernels incorporate Bash right out of the box). I suppose if I were writing an automation script for a work-related project, I'd probably use Bash. Actually, I pretty much always have to have some kind of init.sh for initializing Docker containers, but they're usually pretty simple scripts for the most part.
  19. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    I pretty much exclusively use Python for task automation scripting because it's always more concise (fewer lines of code), and a lot more readable (at least IMO).

    For example, converting that backup automation script from Bash to Python:

    Originally posted by Merlin

    # firsts make array of folder names
    i=0
    files[0]=""
    for f in ${folder}_*
    do
    files[i]=$f
    ((i++))
    done
    # sort them by actual timestamp
    for (( i = (${#files[@]}-1); i >= 0; i-- )); do
    for (( j = 1; j <= $i; j++ )); do
    if [ $(stat -c %Y ${files[$j-1]}) -gt $(stat -c %Y ${files[$j]}) ]
    then
    tmp=${files[$j-1]}
    files[$j-1]=${files[$j]}
    files[$j]=$tmp
    fi
    done
    done

    The above lines of code can be condensed into the following two lines:


    # MAKE ARRAY OF FOLDER NAMES... #
    folders = glob.glob(folder+'_*')

    # SORT BY TIMESTAMP... #
    folders = sorted(folders, key=lambda file: (int(file[-4:]), int(file[-6:-5])))


    Originally posted by Merlin

    # check there is an old copy
    if [ ${files[${#files[@]}-1]} != "${folder}_*" ]
    then
    # if the last copy is labelled more than a month old: copy it
    lastMonth=${files[${#files[@]}-1]:${#folder}+1:2}
    lastYear=${files[${#files[@]}-1]:${#folder}+4:2}
    if [ $curYear -gt $lastYear ]
    then
    cp -r $folder ${folder}_${curMonth}_${curYear}
    files[${#files}]=${folder}_${curMonth}_${curYear}
    elif [ $curMonth -gt $lastMonth ] && [ $curYear -eq $lastYear ]
    then
    cp -r $folder ${folder}_${curMonth}_${curYear}
    files[${#files}]=${folder}_${curMonth}_${curYear}
    fi
    else
    # there only exists the main backup, no versioning yet, create one
    cp -r $folder ${folder}_${curMonth}_${curYear}
    files[${#files}]=${folder}_${curMonth}_${curYear}
    fi


    This segment of code, well... I'm still trying to fully parse and translate it, because I'm not even totally sure what's different between what's happening in the three different conditions here.

    Originally posted by Merlin

    # trim extra files that might exist
    for (( i = ${#files[@]}-1; i >=0; i--)); do
    if [ $versions -le 0 ]
    then
    rm -r ${files[$i]}
    fi
    ((versions--))
    done

    This can be reduced to a mere two lines of code:


    # TRIM EXTRA FILES THAT MIGHT EXIST... #
    for f in folders[:-versions]:
    rmtree(f)


    I guess it ultimately depends on personal preferences and so on, but I will always prefer Python for shell scripting over Bash.
  20. gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Lies all around.

    Anyway, I do my own finny-blocking.

    Y'all motherfuckers need GreaseMonkey.
  1. 1
  2. 2
  3. 3
  4. ...
  5. 346
  6. 347
  7. 348
  8. 349
  9. 350
  10. 351
  11. ...
  12. 638
  13. 639
  14. 640
  15. 641
Jump to Top