Thursday, June 1, 2017

Sign all vbox modules

for item in $(find /lib/modules/$(uname -r) -name '*vbox*' -type f -print | awk -F/ '{print $NF}' | awk -F. '{print $1}'); do echo "Working on $item" && sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ~/vboxdrv.priv ~/vboxdrv.der $(modinfo -n $item); done;

Thursday, June 23, 2016

iOS 9 Calendars out of sync - duplicate events - etc

If you are experiencing exchange calendar even issues, try this "daily iOS calendar hygiene" steps:


This should fix:
- duplicate events
- missing events

done.

Thursday, May 19, 2016

OSX Messages Fezz: Couldn't create saved chat path at /Library/Messages/Archive

I could not see any pictures in my Message App but when browsing around my system logs, also found this:

If you are seeing these messages in your Console (100x of times):

5/19/16 11:58:45.499 AM Messages[3234]: [Warning] Fezz: Couldn't create saved chat sub-path at (null)
5/19/16 11:58:45.499 AM Messages[3234]: [Warning] Fezz: Couldn't create saved chat path at /Users/<username>/Library/Messages/Archive

Problem is apparently with this folder in /Library/Messages/Archive and Library/Messages/Attachments. The need to be deleted and recreated as folders, not files.

To get to Library/Messages on Mac, easiest method I found is: Finder -> Go -> (Press Opt/Alt on keyboard) -> Select "Library", then "Messages".

Enjoy using iMessage, part of benefits of all Apple ecosystem.


Tuesday, May 5, 2015

Git & completion in OSX

Getting '-bash: __git_ps1: command not found' ? Lets get git installed correctly:

Saturday, April 4, 2015

Expense reporting help with bash

Part of the laborious expense reports is being able to sort / classify receipts by day.

Using this bash script can at least help to automate the "buckets" for your receipts:


for day in $(seq 16 27); do echo "Creating 03_"$day"_15" && mkdir "03_"$day"_15" ; done;

A trip from March 16 to 27. 

Will post if I find some OCR api improvement. Do you have any recommendations for that part?

Tuesday, June 3, 2014

OSX IntelliJ or Eclipse says it needs Java 6

1) Download  Java 6 2014 from Apple:
http://support.apple.com/kb/DL1572

2) Install Oracle JDK 7
http://www.oracle.com/technetwork/java/javase/downloads/index.html

Troubleshooting
Missing libserver.dylib?. If you follow the above instructions you should not have this problem.



Other:
Installing Oracle JDK 7 by itself is almost good but not good enough for Apple OSX. Most apps do not complain.

Enjoy:
http://stackoverflow.com/questions/19563766/eclipse-kepler-for-os-x-mavericks-request-java-se-6

Low level shell commands replacement:
cp Info.plist Info.plist.backup
sudo emacs Info.plist

new file:
...
<       <key>JVMCapabilities</key>
<       <array>
<         <string>JNI</string>
<         <string>BundledApp</string>
<         <string>WebStart</string>
<         <string>Applets</string>
<         <string>CommandLine</string>
<       </array>

...

old file:

...
>                 <key>JVMCapabilities</key>
>                 <array>
>                         <string>CommandLine</string>
>                 </array>

...