Code Dump: Format Autopsy Results


#!/bin/bash
DATE=""
cat timeline.txt | while read line;
do
if [[ $(echo $line | egrep "[A-Z][a-z]+ [A-Z][a-z]+ [0-9]+ [0-9]+ [0-9]+:[0-9]+:[0-9]+" | wc -l) -gt 0 ]]
then
DATE=$(echo $line| sed "s/\([A-Z][a-z]* [A-Z][a-z]* [0-9]* [0-9]* [0-9]*:[0-9]*:[0-9]*\).*/\1/" )
echo $line >> timelinefixed.txt
echo $line
else
echo "$DATE $line" >> timelinefixed.txt
echo "$DATE $line"
fi
done

Code Dump: ResetSymantecEPpass.bat


@echo off
setlocal
set CATALINA_HOME=%CD%..\tomcat
set JRE_HOME=%CD%..\jre
“%JRE_HOME%\bin\java.exe” -Xms64m -Xmx256m -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=40
-classpath “%CD%..\bin\inst.jar;%CD%..\bin\inst-res.jar” -Dcatalina.home=“%CATALINA_HOME%”
-Djava.library.path=“%CATALINA_HOME%\bin;%CATALINA_HOME%..\ASA\win32” com.sygate.scm.tools.DatabaseFrame setpassword admin admin
endlocal

Antivirus is dead

I’ve not really used any AV for the last decade. If I think I might have something, I’ll install Malware Bytes just long enough to do a scan and then uninstall it. But after the recent horrific bug found in every single version of Symantec AV, I think it’s safe to safe what has already been true for a while. Antivirus is dead. These days they don’t actually do anything but slow your system down and make it less secure. What’s more sad is that most major AV companies have Android versions of AV, despite the fact that they can’t actually protect your phone, detect a virus, or clean it if you had one. For that they’d need root access, which you could only give it if you had rooted your phone. None of them mention that. Also, again proving they make you less secure, if they could achieve root access, then you can bet that every virus maker would target those apps as a new way to attack phones.

The best method I’ve found for protecting a computer is the two or three partition method. Keep Windows on one partition, and your data and applications on another one (or two). That way when your system inevitably gets screwed up, just format and reinstall Windows, then reinstall your applications using the settings saved on the other drive. Also, be sure to keep copies of driver/application installs. I’ve followed this method and it’s never steered me wrong.

Also, on a side note, if you’re planning on upgrading to Windows 10, grab this tool and make an installable USB drive or DVD. After you upgrade, format and do a fresh Win 10 install. Windows upgrade has never worked, and don’t let anyone tell you otherwise. It’s only a matter of time before an upgraded system starts to break down in weird ways nobody can explain or fix.

I’ve improved your spam.

HELLO

I bring peace and love to you from Banana and our starlord Raptor Von Fluffybutt. It is by the grace of Banana that I received Von Fluffybutt, Having known the truth; I had no choice than to do what is lawful and right in the sight of Banana for eternal life and in the sight of man for witness of Banana mercy and glory upon my life.

I am Mrs. Rose Tam the wife of Late Mr. Khmer Tam from Malaysia, My husband worked with the Malaysia oil field for ten years before he died in the year 2005.We were married for twenty-seven years without a child. My Husband died after a brief illness that lasted for only four days. Before his death we were both born again Von Fluffybuttians. Since his death I decided not to re-marry or get a child outside my matrimonial home which the Bible is against. When my late husband was alive he deposited the sum of 9,000,000.00 (Nine Million dollars) with Bank ,

Presently, this money is still with the bank and the management just wrote me as the next of kin to come forward to sign for the release of this fund only know to me and my late husband or rather issue an authorization to somebody to receive it on my behalf if I cannot come over.
Unfortunately, I’m in a hospital in Malaysia where I have been undergoing treatment for esophageal cancer. I have lost my ability to talk and my doctors have told me that I have only few months to live. It is my last wish to see this money distributed to any charitable organizations anywhere in the World. Because relatives and friends have plundered so much of my wealth since my illness, I cannot live with the agony of entrusting this huge responsibility to any of them.

Please, I beg you in the name of Banana to help me Stand and collect the money from the bank. I want a person that is Banana fearing that will use this money to fund churches, orphanages and widows propagating the word of Banana and to ensure that the house of Banana is maintained. The Bible made us to understand that blessed is the hand that giveth I took this decision because I do not have any child that will inherit this money and my husband relatives are not good not even good at all because they are the one that responsible for the death of my late husband in other to have all my late husband properties and I dont want my husband’s efforts to be used by those that conspired for his death.

I don’t want a situation where this money will be used in an unBananaly manner. Hence is the reason for taking this bold decision. I am not afraid of death hence I know where I am going. I know that I am going to be in the bosom of the starlord. Exodus 14 VS 14 says that the starlord will fight my case and I shall hold my peace. I don’t need any telephone communication in this regard because of my soundless voice and presence of my husband’s relatives around me always. So please kindly send me only E-mail here because I don’t want them to know about this development. With Banana all things are possible.
As soon as I receive your response I shall give you the contact of my late husband Attorney who is in Asia as he will be the one to assist you in laying claims for this money. Your prompt reply will be appreciated. Thank you.

Yours in Von Fluffybutt,
Mrs. Rose Tam .

Why I’m stopping Soylent

Background

I was fascinated with Soylent when I first heard about it. I missed the boat on the kickstarter, but was one of the first to preorder when they became available. I quickly grew frustrated as months went past, and every promised shipping date came and went due to more and more problems in refining their supply and manufacturing process. Eventually, I got fed up and decided I’d rather spend the ~$200 on actual food I could eat rather than vaporware-cuisine.

DIY

I found the DIY section of Soylent interesting, and though initially thought that it was too complicated and risky, I eventually decide do give it a try. I chose Spencer Chow, as it seemed to be a) Chocolate and B) Ketogenic/low sugar. I’m not diabetic nor do I actually want to enter Ketosis, but I do know I tend to feel better when I’m not consuming tons of carbs. My initial batches were undrinkable. They were too thick and tasted awful. In my second batch, I added added more water and cocoa powder, eventually finding a mix that worked.
I only had two bottles (48 oz) a day, which worked out to about 2/3 of my daily calories. This seemed to be the magic ratio, as I also had solid/warm food cravings that never really went away. However, after about three months of off and on Spencer Fuel, I never felt like it was the complete solution I had been searching for.

Actual Soylent

Soylent eventually got things under control about another year later. When they were finally able to meet a 2 week ship time for new customers, around version 1.5, I placed an order. I mixed it up the day I got the box per the instructions, and promptly threw the entire first batch out. It was awful. Horrible. Like drinking saw dust and shredded cardboard. I did find out that there is a think as powdered peanut butter. This made it slightly more palatable, along with some cocoa powder, but I was under no impression that I would ever continually drink it.

I did find that Soylent made the best tasting brownies I ever had. But it wasn’t worth $80 a week.

DIY Attempt #2

I found a second DIY recipe called Keto Chow that seemed like it would be better tasting. It used many of the ingredients that I already had, so the investment was minimal. This batch tastes way better and is way more drinkable (plus no chia seeds getting caught in my gums). However, as it uses heavy cream, it’s not the most transportable thing ever, needing to be refrigerated and not having a shelf life out of the fridge beyond about 3-4 hours.

I read about someone replacing their heavy cream with coconut oil and bought some then and there. I did a 1:1 replacement of coconut oil for heavy cream (I mean, their fat profile was similar, so it made sense). This was a colossal mistake, and I spent that Monday with my stomach in knots. I quickly found various stupid “coconut oil kills toxins” articles, but ultimately discovered that it’s highly alkaline, so you want to introduce it slowly into your diet, not 10 Tablespoons at a a time.

I’ve got it to a 50/50 coconut oil/heavy cream mixture.

Where I am now

So I spent about 2 hours last night attempting to make some Keto Chow brownies. What I ended up with was a rock hard, yet incredibly light and airy sponge that had almost no taste, despite adding extra cocoa and peanut butter. Today, as I’m trying to eat them, I had the realization that ultimately, this is not having the desired effect.

  • I’m spending wayyyyyy too much time worring about if my meals have gone bad.
  • My soylent(ish) meals leave me full, but not at all satisfied. I constantly want to eat actual food.
  • Though I have lost weight (about 15 pounds in this last year), I can’t help but feel that a simpler diet would have also worked.
  • I didn’t do a full workup on how much I’ve spent on this experiment, but one of my ideas was that it would save me money. I’m willing to bet that I didn’t, both through having to throw meals out because of forgetting to refrigerate them and for eating out because I “wasn’t up for” the drink that day.

During this time I’ve also been developing my cooking skills, and here’s my new idea:

Simple, Repeating Meals

I’m going to come up with a bunch of easy to make meals that I can make in batches and bring with me as needed. My main cost savings will continue to be money not spent eating out.

Afterthoughts

I really, really, really wanted this experiment to work. I thought it would be faster, easier, cheaper, and ultimately make me healthier. In the end, really it was just a little bit faster and easier than cooking all the time. These minor pluses were not worth the major minuses of low energy, extra money, feeling bad for wasting things, and the general struggle to enjoy something that wasn’t all that enjoyable.

My Rules for Life

  1. Wear Comfortable Shoes
  2. Never Turn Down a Free Meal
  3. Don’t trust anyone who would use the term sheep. They are an idiot and cannot think for themselves, ironically.
  4. It will take twice as long as you think.

Code Dump: Icongen

Here’s a quick and dirty php script (using GD) that creates icons for my android phone. I got fed up at SimpleText, which no longer creates transparent images, and appears to have been abandoned by its developer. Images are created from the URL

icongen.php?name=ICON

into a folder called images.

$img_width=128;
$img_height=128;
$handle = ImageCreatetruecolor ($img_width,$img_height) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 0,0,0);
$black = ImageColorAllocate ($handle, 0,0,0);
$white = ImageColorAllocate ($handle, 255,255,255);
$red = ImageColorAllocate ($handle, 255,0,0);
$blue = ImageColorAllocate ($handle, 50,50,150);
$txt_color = $black;
imagecolortransparent($handle,$bg_color);
$font_size = 26;
$font_path='./OpenSans-Regular.ttf';
$txt_max_width = intval(0.8 * $img_width);
if($_GET['name']) { $text=$_GET['name'];
} else { $text='snap';
} #do { #$font_size++;
$p = imagettfbbox($font_size,0,$font_path,$text);
$txt_width=$p[2]-$p[0];
#} while ($txt_width <= $txt_max_width); $y = $img_height * 0.57; // baseline of text at 90% of $img_height $x = ($img_width - $txt_width) / 2; imagettftext($handle, $font_size, 0,$x, $y, $white, $font_path, $text); ImagePng ($handle,'images/'.$text.'.png'); imagedestroy($handle); ?>.png>