Browsing articles in "open source"
Jan 19, 2013
heldervasc

mybash – Advanced features for your bash shell environments

mybash

Features

  • Profiles: Manage the bash shell environment for each machine
  • Shortcuts: Create shortcuts for important filesystems paths
  • Aliases: Aliases for your most important tools

To Install mybash on your computer

git clone git@github.com:hvasconcelos/mybash.git
cd mybash
ln -sf `$pwd`/.bashrc ~/.bashrc
ln -sf `$pwd`/.bash ~/.bash

Create a new mybash profile

> .bash/profiles/<profile_name>
chmod +ux .bash/profiles/<profile_name>

Example:

vim .bash/profiles/macbookpro_home
export_dir_after /Users/hcv/Desktop/Android/sdk/tools
export_dir_after /Users/hcv/Desktop/Android/sdk/platform-tools
export_dir_after ~/bin
export_dir_before /usr/local/sbin
export_dir_before /usr/local/bin
addidir projs /Users/hcv/Desktop/beartouch/Projects
addidir blib /Users/hcv/Desktop/beartouch/Libraries
chmod +ux .bash/profiles/macbookpro_home

Select the profile in vim .bashrc

set_profile <profile_name>

Example:

vim ~/.bashrc
set_profile macbookpro_home

Create a shorcut to a filesystem path

In a profile like “.bash/profiles/macbookpro_home” add something like

addidir <shortcutname> <path>

List your shortcuts

lidir
projs /Users/heldervasconcelos/Desktop/beartouch/Projects
blib /Users/heldervasconcelos/Desktop/beartouch/Libraries

Goto to a filesystem path over a shorcut

goto <shortcutname>

Exemplo:

goto projs
pwd
/Users/heldervasconcelos/Desktop/beartouch/Projects

Clone mybash  on Github

Dec 20, 2012
heldervasc

Bearstouch SMS Scheduler referida no Sapo TeK como uma aplicação de grande utilidade para as próximas festividades

“Ainda relacionada com a missão natalícia: saudações por SMS, deixamos nota para o SMS Scheduler. Esta aplicação permite agendar o envio de mensagens. A véspera de Natal e ano novo são sempre dias atarefados e um contributo para descongestionar as horas anteriores à consoada pode ser tratar das mensagens de Boas Festas mais cedo. Pode preparar tudo hoje e mandar entregar só daqui a uns dias…

A aplicação foi desenvolvida pela Bearstouch Software e tem versões para Android e BlackBerry. Na plataforma Android está disponível de forma gratuita e paga, esta segunda disponível por 1,5 euros.

Para iOS não está disponível uma versão desta aplicação, mas pode encontrar outras que fazem as mesmas tarefas ou até opções que fazem o mesmo com outros serviços, como o email.”

Fonte:

http://tek.sapo.pt/extras/montra/montra_tek_6_apps_portuguesas_para_o_ajudar_c_1289042.html

Feb 1, 2012
heldervasc

Android Image Resizer – New Open Source Android Developer Tool

What is Android Image Resizer?

Android Image Resizer is a tool to automate android project image files resizing for all screen density supported by your app.

For example a image in res/drawable/xhdpi with 200x200px as a base file will be resized to :

  • res/drawable/hdpi with 150×150 px
  • res/drawable/mdpi with 100×100 px
  • res/drawable/ldpi with 75×75 px

Install Instructions

gem install android_img_resizer

Note: For Mac OSX you need to install rimagick first. Please follow the instructions described in this page rimagick

How To use it

In a Android Project directory (PATH that has a AndroidManifest.xml) please type:

To list all drawable resource imagefiles

android_img_resizer list [xhdpi|hdpi]

To Resize a resource image File

android_img_resizer img <image_file> [xhdpi|hdpi]

To Resize all resource image files

android_img_resizer all [xhdpi|hdpi]

Note: by default Android Image resizer will use xhdpi as base image file.

To use hdpi as base image file please type hdpi in the optional argument

Resize a image example:

cd /home/john/WorkSpace/smssheduler
android_img_resizer img ic_home_log.png
OUTPUT:
Resizing Image = ic_home_log.png with size = 64×64
Image = ic_home_log.png hdpi = 48×48
Image = ic_home_log.png mdpi = 32×32
Image = ic_home_log.png ldpi = 24×24

Resize all images example:

cd /home/john/WorkSpace/smssheduler
android_img_resizer all xhdpi
OUTPUT:
Resizing Image = ic_micro_site.png with size = 64×64
Image = ic_micro_site.png hdpi = 48×48
Image = ic_micro_site.png mdpi = 32×32
Image = ic_micro_site.png ldpi = 24×24
Resizing Image = ic_micro_logo.png with size = 64×64
Image = ic_micro_logo.png hdpi = 48×48
Image = ic_micro_logo.png mdpi = 32×32
Image = ic_micro_logo.png ldpi = 24×24
…..

License and copyright

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

Contributions are welcome ! The project is mainly missing documentation and examples…

Bearstouch Team