I was looking for a nice dynamic ip client to use with noip.com and found this one:
inadyn - Simple and small DynDNS client written in the C language
Then you need to edit /etc/inadyn.conf and modify some parameters:
$ sudo vi /etc/inadyn.conf
# Please see inadyn(8) for a complete list of providers
system firstname.lastname@example.org #(read /usr/share/doc/inadyn/README.md for dyndns example)
# Your username
# Your password
# Your hostname. This option can appear multiple times
alias your-noip.com-hostname (i.e.: yourname.no-ip.org)
Also edit /etc/default/inadyn and change RUN_DAEMON to:
Finally create a symbolic link (I know, but I don’t like to use that command) to start the daemon:
$ cd /etc/rc2.d/
$ sudo ln -s /etc/init.d/inadyn S40inadyn
Then execute the command to start the daemon right now:
$ sudo /etc/init.d/inadyn start
Update: There is also the native noip2 client: http://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client/ A step-by-step installation is showed here:
If your application needs to transfer data over Internet using some mobile device connected to GSM network, then using JSON or other text serializer is not a good solution. It is better to use a binary serializer.
Searching for alternatives I found MessagePack: http://msgpack.org
There are other alternatives like Google’s BufferProtocol, but it is not so efficient as MessagePack.
You can find a listing with many alternatives in the wikipedia:
This is a listing of many sites with nice tips about how to do your PCB board:
This link show how to create a PCB board with industrial-like quality:
Tips for toner transfer method for PCB home manufacturing:
Many useful tips, from good PCB design suggestion to etching material to use:
Direct PCB printing:
Another site about Direct PCB printing:
These are some issues I faced compiling Android on Linux Mint 17:
frameworks/base/include/utils/KeyedVector.h:193:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ssize_t i = indexOfKey(key);
Add ‘-fpermissive’ to line 31:
LOCAL_CFLAGS += -Wno-format-y2k -fpermissive
external/srec/tools/thirdparty/OpenFst/fst/lib/cache.h:136:11: note: use ‘this->SetState’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.o] Error 1
patch -p1 < 4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff
rm -f 4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff
Also I installed these programs:
sudo apt-get install multistrap
sudo apt-get install u-boot-tools
sudo apt-get install xsltproc
sudo apt-get install libxml2-utils
sudo apt-get install openjdk-6-jdk
sudo apt-get install libc6-dev-i386
sudo apt-get install gcc-multilib
sudo apt-get install libstdc++-4.8-dev
sudo apt-get install lib32stdc++-4.8-dev
sudo apt-get install zlib1g-dev
sudo apt-get install lib32z1-dev
sudo apt-get install libncurses5-dev
sudo apt-get install libncurses-dev
sudo apt-get install libx32ncurses5-dev
Se você está tentando pegar o número do seu telefone através da chamada:
TelephonyManager tm = (TelephonyManager)this.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
String phoneNumber= tm.getLine1Number();
Ela poderá retornar “null” ao invés do número do seu telefone, isto significa que o campo no SIM Card onde fica o número do telefone está vazio. Mais info:
Para resolver este problema basta gravar o número do seu telefone no SIM card:
Você pode instalar o app “My Phone Number” do desenvolvedor Lytsing direto do Google Play, mas ele disponibilizou o código fonte no github:
I decided to modify a projector to become a UV exposure unit to sensibilize a photo PCB (photo-resist coated PCB).
Then I bought a Sharp PG-F212X projector with burnout bulb in the MercadoLivre (“Brazilian’s eBay”). Then searched for projects replacing the bulb lamp by LEDs and found these pages:
Based on this page I realized that it is necessary to short-circuit the pins 3 and 4 of the opto-coupler to force the projector to think the bulb is fine. This tip is for projector InFocus LP600. Then I decided to search for the Service Manual of Sharp projector. I found it here: http://elektrotanya.com/sharp_pg-f212x-l_xr-32s-x-l.pdf/download.html
Analyzing the schematic in the service manual I discovered that the opto-coupler should be that D7715 at page 63, because it was responsable by the N-LIGHT signal.
After removing the projector’s top cover I noticed it was possible to short-circuit the pins 3 and 4 of D7715 without disassembling anything more. Then I just used the iron solder to melt solder there and short-circuit it:
Then after powering on the projector the Lamp indicator turned green indicating that the lamp was working fine. Now the next step will be adapting a UV LED module as light source!
I think using if/whether correctly is a little bit confuse for latin people (/me included), because we use just a single word for both case (“se” word).
Then the rule of thumb is: use “if” when you want to introduce a condiction and “whether” when something could happen or could not.
1) If you sing, I will pay you. //Here you are introducing a condition (I will pay you only if you sing).
2) I will pay you whether you sing or not. (I don’t care if you sing or not, I will pay you anyway).