Sunday, September 25, 2016

How to protect walking garden fruit cage

How to protect walk-in garden fruit cage

  • Heirloom tomatoes
  • Zucchini flowers/zucchini
  • Cucumber

I love to garden but am surrounded by squirrels where I live so I decided to purchase this fantastic product from the UK:

It's not cheap but definitely the best for the money because it is clean and gives a great look for a walk-in garden. It comes with a door and good quality netting.

I built it alone and ordered it with custom dimension to fit perfectly in a small patch alongside my house. I left enough space to walk around but because it is close to my neighbor's fence but a problem came along the way....
From spring to August, no squirrels were able to get in with the normal installation but then one squirrel figured it out and oh boy, it was game on!

I wanted to protect my garden without killing the squirrels and I won that battle!


A squirrel is a dangerous animal -  They carry disease in their feces and fleas which can bite you and give you bubonic plague or other diseases.  They are rats with a bushy tail.  Sure, they are cute to look at, but they can be a real problem rodent for many people.  They will try to burrow under or into your home and they can eat up electrical wires can even cause your house to burn down.  Not so cute now, huh?  The multiply faster than rabbits.  In springtime you may see one, then suddenly in just three months you will see 14 and that can double again in July.  They can overrun your property and they will steal your bird food, cat food, fruit and vegetables and just make life miserable for you.  The also have amazingly powerful teeth and those fangs are really long fangs too.  One bite from a squirrel and you will be visiting the emergency room for stitches.  Some squirrels can become aggressive and attack you or your kids.
"Squirrels have caused more than 50 power outages in 24 states in the year 2013 alone.  Squirrels caused the blackouts and small explosions that shut down the New York Stock Exchange, twice!" 

How I made my walk-in garden squirrel proof

The net is not squirrel proof so to make it squirrels proof you will have to

I purchase a pack of 100 back zip tie and add a lot of them for the vertical pole to make sure no space is left for a squirrel to get in.

Then to make the size netting Squirrel proof, all around I recommend you purchased deer Block netting

Attach the mesh around for half the height of the cage. Secure them with zip tie and at the bottom place a bunch of Pavel stone on the ground above the excess of mesh net.
This ne t is great because they can't cut it with their teeth. Think about them as fishing net.

Finally for the side area close to the fence where they had lots of time to cut some hole in the net, I purchased red wood bins and I glued some bird pike with adhesive glue

and I added 2 row of wooden nail. Results is very clean and they can't walk around the net on the side along the wooden fence.

Saturday, August 20, 2016

Make image with white background transparent for iOS, Android or Web

Remove Logo Background (Make It Transparent) Using Photoshop

A logo with an opaque background might not blend well with the website’s background compared to one with a transparent background. In this tutorial you will learn how to make a logo’s background transparent.
Note: This procedure requires the use of a 3rd-party image editing application (Adobe Photoshop CS6-CS5). 

1.) Open your file in Photoshop

From the menu bar, navigate to File > Open…
Navigate to the folder where your file is located, select the logo file and click on the Open button.

Tip: You can press and hold the Alt key while scrolling your mouse wheel up or down to zoom in and out of the image.

 2.) Create a new layer

From the menu bar, go to Layer > New > Layer… (or do the keyboard shortcut Shift+Ctrl/Cmd+N).
In the Layers panel on the lower-right corner of your Photoshop window, double click on the layer labeled “Background” and click OK. This will turn the original image into a layer.
After creating the new layer, click and hold the mouse button on it and drag it down below the original image. This will result in the original image overlaying the new blank layer.
Info: Layers in Photoshop are like sheets of paper stacked together. The ones on top will overlay those below it. If some parts of it are transparent, opaque parts of the next layer below will be visible.

 3.) Color the new blank layer

While selecting the new blank layer, on the Tools panel (left side) click on the Paint Bucket Tool.
On the Color pallete on the upper-right corner of your screen, click on the colored square. In the Color Picker choose a color that would contrast with the logo’s colors except white.

Click on any blank space within your image to fill the new layer with the color you chose. You may not see this change in the main window but on the Layers panel you’ll notice that the new layer is now colored.

4.) Remove the white spaces

In the Layers panel, select the layer with the image.
Back on the Tools panel (left side), right-click on the eraser tool set and select Magic Eraser Tool. This type of eraser will automatically erase a single, enclosed shade of color from an image.

Begin by clicking on the outer white area of the image.
Notice how the background layer becomes visible. This means the white space in the logo image has been erased and is now transparent.

5.) Clean white spaces off enclosed areas of the logo

By holding the Alt key and using the mouse wheel to zoom in and out of the image, use the Magic Eraser Tool on sections that needs to be transparent alongside the other areas of the logo e.g. the spaces in between texts.

6.) Delete the blank layer you created earlier

In the Layers panel, select the blank layer (the one you filled with color in step 3) and press the delete button your keyboard. You can also right-click on it and select “Delete layer”.

7.) Save your edited image

From the menu bar, navigate to File > Save for Web (or do the keyboard shortcut Alt+Shift+Ctrl/Cmd+S).

In the Save for Web window, set the image to “PNG-24” (to preserve transparency). You can also adjust the logo’s height in the provided input boxes.
Click on the Save button and choose the directory you’d like to save your newly edited transparent image into.

Saturday, June 04, 2016

Take a screenshot of iOS phone using Mac OSX

Take a screenshot of iOS phone using Mac OSX

libplist -> libusbmuxd -> libimobiledevice -> usbmuxd, ifuse,
ideviceinstaller, ...


A library to handle Apple Property List format in binary or XML

sudo port install libplist


A socket daemon to multiplex connections from and to iOS devices

Install usbmuxd on Mac OSX
App name: usbmuxd
App description: USB multiplexor daemon for iPhone and iPod Touch devices
App website:

Press Command+Space and type Terminal and press enter/return key.
Run in Terminal app:
ruby -e "$(curl -fsSL" <
/dev/null 2> /dev/null
and press enter/return key. Wait for the command to finish.
brew install usbmuxd


A client library to multiplex connections from and to iOS devices
To compile run:
sudo make install

pkg-config --print-variables libusbmuxd

imobiledevice issue due to libusbmuxd not found
pkg-config --print-variables libusbmuxd

Package libusbmuxd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusbmuxd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusbmuxd' found


pkg-config --variable pc_path pkg-config




locate libusbmuxd | grep '\.pc'


export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/usbmuxd/1.0.10/lib/pkgconfig/


A cross-platform software protocol library and tools to communicate with iOS® devices natively

sudo ./ or ./configure
sudo make install

Start XCode so that the iPhone get's mounted

run idevicescreenshot to get a nice ScreenShot in tiff format!!!

Wednesday, May 11, 2016

how to install provisioning profile for xcode

I keep forgeting each time I want to register a new device to ad hoc testing without publishing the app to app store

1) Sign in to
2) Click on "Certificates, Identifiers & Profiles" in the right sidebar.
3) Click on "Devices", then on the + button.
4) Select "Register Multiple Devices" and choose the downloaded device file.
5) Click on "Continue".
6) Confirm the list of imported devices with "Register".
7) Click on "Distribution" below "Provisioning Profiles".
8) Click on the + button, select "Ad Hoc", then click on "Continue".
9) Select your app, then click on "Continue".
10) Select your certificate, then click on "Continue".
11) Now you should see all devices registered in the portal. Select all or just the ones that you want to include in this provisioning profile. Then click on "Continue".
12) Enter a name for the profile. Confirm with "Generate". The portal will now show "Loading…" for some time, then you can download the profile.
13) Drag & drop the downloaded profile to Xcode.... May work if you have already a profile attached you can refresh
  • Xcode menu => Preferences => Accounts.
  • Select the Apple ID in the left panel.
  • Click the View Details button on the right.
  • In the pop-over that follows click the round refresh arrow. ...
  • The provisioning profiles can then be selected in a Mac project under Build Settings => Code Signing => Provisioning Profile.
14) In Xcode, select your project in the left sidebar, then "Build Settings".
15) Enter "code sign" in the search field.
16) Select the line for your release configuration and choose the downloaded profile.
17) Create a build through "Project > Build & Archive".

Sometimes when you build xcode is complaining that UUID blabla profile is not found.

code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “ffff1f-eff1-4fff-bffb-2948a242e59e”, however, no such provisioning profile was found.

In this case you can manually copy the profile you downloaded to 
~/Library/MobileDevice/Provisioning Profiles

Eg 1ffff1f-eff1-4fff-bffb-2948a242e59e.mobileprovision

and build again

18) To export your app to install using iTunes select
archive menu in Xcode --> Product --> Archive

19) After that select Windows --> Organizer

Tuesday, May 10, 2016

Backup raspberry PI accidently installed on big SD card to smaller SD card and how to seal with format sd card unknown capacity on Windows

You have a 32GB SD card.
You are using 1.8GB of space on it.
You want to back it up into an image that is 1.8GB big, not 32GB big.
Then you want to be able to put it on an SD card that is 2,4,8 or 16GB big.

Make a Backup Image of Raspberry pi SDCARD!

It took a while to get your SD card set up, didn't it? Bet you don't want to have to do that again, do you?


Back it up!

Forum user, Mac user, and Adafruit Customer phil.drummond took it upon himself to find the best way to back up his system image.

And he found a fast and easy way - a script which quickly creates a clone of your running Raspberry Pi system, ON THE PI ITSELF!

What You'll Need

  • USB SD Card Reader
  • Blank SD Card
  • Booted and Running Raspberry Pi

Get the Script File

First, get a copy of the script file onto your Pi. You can do that in any one of several ways:
  • First, download the file to your computer
If you are looking for rpi-clone, it is now on github and no longer
available from pastebin.

Get it with git:

    $git clone

To view the rpi-clone README file, go to:

Run the Script

  1. Put the blank SD card into your USB Card Reader, and plug it into one of the PI's USB ports.
  2. Open a Terminal window on the Pi
  3. Navigate to the folder where you stored the script file. (If you stored the file on the Pi's Desktop, simply type 'cd Desktop')
When you run the script, you will have to specify the name of your SD card. Raspbian and occidentalis assign the names 'sda', sdb', etc. to SD cards found on USB. If you only have one USB card reader attached, the name of your new SD card will be 'sda'.If you're not sure that sda is the right card, you can run this command to list the cards connected to your Pi. 

  1. sudo fdisk -l
The SD card slot with your running Pi system will show up as /dev/mmcblk0. Your blank card will be listed as /dev/sda1 (or possibly /dev/sdb1, if you have more than one USB card readers attached to the Pi).

Note that you don't enter the '1' - if your card is listed as '/dev/sda1', then you would still enter 'sda' when you run the script ('sda' is the name of the card, 'sda1' is the name of the first partition on the card).

Ok, so now you should be ready to run the commands
  1. chmod +x
  2. sudo ./rpi_clone sda -f
As noted earlier, the first parameter passed to the script is is the name of the target SD card, in this case 'sda'. The -f tells the script to entirely re-format the card.

The script will ask you if you're sure you want to initialize the destination card. Type 'y', and hit the return key.

Next, the script will ask you if you want to give your new backup a label. It's not necessary to do this - just hit the return key.
Finally, the script will ask you if you're sure you really want to do this, before it begins creating the backup. Type 'y', and hit the return key.


Now it's time to wait - the process will take a little while.
When the process is complete, the script will ask if it should unmount the card with your new system clone/ Reply with 'y', and you're done!
Now you can shutdown the Pi, swap the clone into the Pi's SD Card Slot, and restart - Bingo! a fully-operational clone of your Raspberry Pi system!


If you see an error message like this:
learn_raspberry_pi_script_error1.png means that your SD card is mounted in the file system. You have to unmount it before you can proceed. In the picture, I'm writing over an earlier clone of my system, which has two partitions: /dev/sda2 and /dev/sda1. You might only have one partition.

In any case, issue the umount command for each mounted partition on your destination SD card:
  1. sudo umount /dev/sda1
Now try to run the script again!

Issue on some sdcard

How can I reclaim the full capacity of an SD Card ?

First, let’s take a peek at what the SD card looks like if you attempt to reclaim the space using Disk Manager as you did:

You can format the tiny 64M FAT32 partition, but the remainder of the SD card remains “Unallocated” after you dump the existing (and inaccessible) Linux partition. No amount of pushing or shoving in the Disk Manager application is going to fix this problem. Instead, we’re going to turn to the simple and effective DISKPART tool.
Open up the Start Menu and type “diskpart” in the run box. Press enter. You’ll be prompted by the Windows UAC to authorize admin access to the DISKPART tool.
A command-prompt-like window will open up, only the prompt will say “DISKPART”. At that prompt, type “list disk”.

In the list output on our machine you can see the computer’s hard drive (119GB) and the removable SD card (14GB). It is absolutely critical you note the proper disk number. DISKPART commands are immediate and without any warning. If you type in the wrong disk number, you’re going to have a really bad time.
After identifying your SD card’s disk number, enter the following command “select disk #” where # is the disk number of your SD card.

Whatever commands you execute after this point will only make changes to the selected disk; now would be a good time to double check you’ve selected the right disk just to be extra safe.
Next, now enter the command “clean”

The clean command zeroes out the sectors of the disk that contain the partition data. If you wished to zero out all data on the SD card you could use “clean all” instead, but unless you have a pressing privacy/security reason for overwriting the the entire SD card with zeros, it’s unwise to waste the read/write cycles of the flash media.
After cleaning the disk, enter the following command “create partition primary”

The command, as the syntax implies, creates a new partition on the disk and sets it to primary. After creating the primary partition, the entire storage capacity of the SD card should be available to Windows. If we peek back into Disk Manager, we no longer see a tiny partition with a huge hunk of unallocated space, but a large partition ready to be formatted:

That’s all there is to it! A little DISKPART wizardy and the SD card is factory fresh again.

Wednesday, April 13, 2016

How to find the hardware uuid for iPhone to update Team profile to test iPhone APP outside of Apple Store for beta test

Collect iPhone UUID

As some of you might be willing to help out a developer with beta-testing their apps, he will most certainly ask you for the UUID for your device. So this is a quick three-step guide to finding your iPhone Universally Unique Identifier (or UUID) using iTunes.
While there are apps out there that will tell you what your UUID is, some will cost you money, and if all you need is the UUID, then it's pointless to download an app that does that. Instead, you can use iTunes to reveal it. Here's how.

1. Plug In Your iPhone

Connect your iPhone to your MAC or PC and if iTunes doesn't start automatically, fire it up. Next, go to the Devices heading in the navigation panel on your left and locate your iPhone.

2. Find Your Serial Number

Under the iPhone's Summary heading, you should see a bunch of information including the software version, your phone number and the iPhone's serial number.

3. Reveal Your UUID

If you click your Serial Number (I know it doesn't show as clickable, but just click it), that will change to Identifier and the string of numbers and letters following there is your UUID. Simply press CTRL+C (Windows) or Command/AppleKey + C (Mac) and it will be copied to your clipboard.

Update profile with up to 99 specific device uuid

Exporting Your App for Testing Outside the Store

Because testers don’t have Xcode to run your app, you create an iOS App file (a file with an .ipa filename extension) that they can then use to install your app on their device. Use this method to test a universal app that runs on all supported devices or test device variants that the store distributes later to users.
To create an iOS App file for testing

  1. Open the Archives organizer (choose Organizer from the Window menu), and select the archive.
  2. Click the Export button, select an export option, and click Next.
    To distribute your app to users with designated devices, select “Save for Ad Hoc Deployment.” The app will be code signed with the distribution certificate.
    To distribute your app for internal testing, select “Save for Development Deployment.” The app will be code signed with your development certificate.
  3. In the dialog that appears, choose a team from the pop-up menu and click Choose.
    If necessary, Xcode creates the needed signing identity and provisioning profile for you.
  4. In the Device Support dialog, choose whether to export the universal app or a variant for a specific device, and click Next.
    • If you want to run the app on any supported device, select “Export one app for all compatible devices.”
    • If you want to test all device variances, select “Export for specific devices” and choose “All compatible device variants” from the pop-up menu.
    • If you want to test a specific device variant, select “Export a thinned app for a specific device” and choose the device family from the pop-up menu.

Deploy IPA to test devices

Method # 1 – Using iTunes.
iTunes too provides a functionality to directly install ipa apps on your device. Perform the following steps to install ipa apps through iTunes –
  • Connect your Phone to computer and launch iTunes.
  • Drag the app’s .ipa file into iTunes library.
  • Click on Sync and done, that’s it . If the app was earlier backed up from the same device, it would be installed without any fuss else you need to make sure there's a provisioning profile associated with the app embedded in it generated with the device uuid.
Method # 2 – iFunbox

install ipa through iFunbox
iFunbox is yet another easy method to install ipa files/apps on your iPhone. Perform the following steps to install Apps on your iPad/iPhone through ifunbox –
  • Download and install ifunbox from if not already installed.
  • Launch iFunbox and connect your iPhone/iPad/iPod.
  • Now navigate to the File Browser tab as shown in the figure and select “User Applications” (Highlighted in the same figure).
  • Now click on “Install App” button, select the ipa or apmx file of app which you want to install and click on Open!
  • Yo! The app will be installed successfully.