IT-Blog
Android debug bridge (adb) for Debian
- Details
- Erstellt am Dienstag, 20. November 2012 20:02
After a fullwipe of my phone (after playing around ;-P) I ended up with a almost bricked phone and needed to copy some files. You normally do that with adb (android debug bridge) an command line client for your (to the pc connected) phone that runs on your client. Normally you need to install the Android SDK (some hundred MBs) and do a bunch of configurations, but there seems to be a new package "android-tools-adb" currently in Debian SID. Installation was not more than download it from packages.debian.org and install it with
dpkg -i downloadedpackagename.debworked out of the box, perfectly I LOVE DEBIAN!!!
add macro plugin to gedit
- Details
- Erstellt am Samstag, 17. November 2012 18:00
I really don't know why, but there is no macro (record/playback) component included in gedit, and if you are used to that as I am from Notepad++ it's hard not to cry if you come to source you need to reformat or change....
But there is a plugin for gnome2 that Eduardo Romero changed to work in gnome3. Here the (very few) steps you need to get this plugin working on your gnome3 desktop
- get the files "macropy.plugin" and "macropy.py" from https://github.com/eguaio/gedit-macropy
- copy them to /usr/lib/gedit/plugins
- restart gedit
- activate plugin in Edit/Preferences/Plugins
If you prefer to not configure the plugin for global use then you can also do it per user following the README included in the github
You are done, have fun!
Java in Oracle Forms without Beans and Pluggable Java Components
- Details
- Erstellt am Mittwoch, 15. August 2012 23:32
- Program -> Import Java Classes
- enter "java.lang.System" as in "Import Classes"
- Press "Import"
SYSTEM.getProperty('user.dir')
Especially when using Java you need a better exception handling here's an rudimentary example of this:
BEGIN
MESSAGE (SYSTEM.getProperty('user.dir'));
PAUSE;
-- just an example, of course some better errorhandling should be done here
EXCEPTION
-- important that you handle JAVA_ERROR AND EXCEPTION_THROWN
-- you could even do a better handling by importing the Exception class
WHEN ORA_JAVA.JAVA_ERROR then
MESSAGE('Java Error occured: '||ORA_JAVA.LAST_ERROR);
PAUSE;
WHEN ORA_JAVA.EXCEPTION_THROWN then
MESSAGE('Java Exception occured');
PAUSE;
WHEN OTHERS THEN
MESSAGE('others occured....');
PAUSE;
END;
Have fun! Let me know if anybody needs more examples!
FRM-41214 Unable to run Report with CELLWRAPPER
- Details
- Erstellt am Dienstag, 14. August 2012 22:13
If you use the output format DELIMITEDDATA in Oracle Reports, that exports the report as CSV file, then sometimes you need to use a wrapper (e.g. if there are CR in a field) means output is not like
SCOTT;TIGER;TESTUSER; CAPERS;JONES;TESTUSER2;it's
"SCOTT";"TIGER";"TESTUSER"; "CAPERS";"JONES";"TESTUSER2";In Reports it's pretty easy, there is a parameter that you can set called CELLWRAPPER. With this parameter you can define which character should be used to wrap the cells. If you use double quotes (") then you get FRM-41214 Unable to run Report (when running from Forms, another error when running from rwservlet directly). I am currently working on 11g, but it seems thats something that's not fixed since 10g. So it's kind of terrible that for such a long time there is a bug that has not been fixed. Metalink Note 397279.1 describes a workaround, by using another parameter CMDFILE, basically a file that contains parameters for the reports. In this file you put in your CELLWRAPPER=" (UX) or CELLWRAPPER='"' (WIN) parameter, and call it with CMDFILE=/tmp/mycmdfile.cmd. Means you change your Url (or forms parameter lists whatever...) from
http://myreportsserver....&desformat=delimited&cellwrapper="to
http://myreportsserver....&desformat=delimited&cmdfile=/tmp/mycmdfile.cmd.
gnome connection manager - ssh
- Details
- Erstellt am Dienstag, 17. Juli 2012 20:03
Also more advanced features, like the sending of host-commands to multiple connections is supported.
Heavily recommended, get it!!!
P.S.
Screenshots taken directly from kuthulu.com
splitting a comma delimited string in Oracle
- Details
- Erstellt am Montag, 28. Mai 2012 20:03
Recently I needed to split a delimited string with PL/SQL. I just did not want to write the xx version of a "parse delimited string" package, and so I stumbled upon Alex Nuijtens Blog. This solution was not the least complex, but so beautiful I almost wanted to cry ;-). !Thanks for sharing your solution at this point Alex! It worked perfectly and so I implemented it in my programs. After a few more tests with larger string (~5000-10000) I noticed huge performance issues. So I did a fast check with using a "normal" loop and not the hierachic query Alex is using. Same result, terribly slow (~30s). After thinking a bit (...happens from time to time...) it was clear, normally if you parse a delimited string, you always cut the part off the front, that you parsed and put it somewhere else (collection....), what did not happen by using this solution. So I rewrote the pure SQL approach to a PL/SQL function. So The code looks now:
vParseString := pParseText;
FOR i IN 1..length (regexp_replace (vParseString,vRegExp)) + 1
LOOP
vToken := REGEXP_SUBSTR (vParseString,vRegExp);
vCutPos := REGEXP_INSTR(vParseString,vRegExp,1,2);
vParseString := substr(vParseString,vCutPos);
DBMS_OUTPUT.PUT_LINE(vToken);
EXIT WHEN vCutPos = 0;
END LOOP;
The complete programs needs below 0.1 seconds to finish in comparison to 30 before.
So Alex program is good for small strings, but does not fit my needs in this case.
Probably it's much faster if you use analytic functions, where you always replace the string of the previous line...
I think if I have some time I will give that a try, because a pure SQL solution would be much more beautiful than a PL/SQL approach ;-).
Empty calendar in Icedove/Thunderbird
- Details
- Erstellt am Samstag, 31. März 2012 21:22
I use Icedove (Thunderbird) since years, and think it's really a good piece of software, in my opinion it's much better than Outlook, I was using for several years too. After splitting up my data into "OS" and "real data", I also moved the .icedove folder from my home directory by symlink to my data-harddisk. Mails worked fine, but lightning would display any evens, you also could not even create any new calendar, events. After I while I saw the following error in the error-console:
Error: Components.classes['@mozilla.org/calendar/datetime;1'] is undefined Source File: chrome://calendar/content/calUtils.js Line: 78Solutioin: my data-harddisk was mounted by fstab with rw/user (for whatever reason I did this once...), I changed it to defaults what is equal to "rw,suid,dev,exec,auto,nouser,async on my current Debian Wheezy. After rebooting, everything works fine. I really would appreciate if anybody can explain me why this was the solution to my problem.
Gnome extension work for Debian Wheezy
- Details
- Erstellt am Sonntag, 05. Februar 2012 13:46
Printer problems in Gnome
- Details
- Erstellt am Samstag, 19. November 2011 06:22
I setup my Laptop with Gnome3 and was suprised that the printer was not automatically added, I know for sure that it was added automatically with earlier version... Guess that has nothing to do with gnome itself, sometimes there is some other kind of trouble. My Printer is a old multi-functional Canon (scan/print/fax) MP780 the scanning with simplescan (standard program from Gnome3) works pretty well. If you look for drivers in the Inet, there is just commercial software, like Turboprint. I tried it but had some issues after a while, and don't really want a kind os software suite just for printing... I looked further and noticed that there are free drivers called gutenprint, already available in Debian. Basically the steps you need to configure the printer were
apt-get install cups cups-driver-gutenprint
preseeding in Debian wheezy
- Details
- Erstellt am Dienstag, 08. November 2011 22:22
I have two servers with KVM running, on both I use preseeding to install the guests. It's amazing to watch a guest install automatically by using virt-install and passing some parameters on command line. Basically you need to pass further preseeding parameters in a file. When converting this script to wheezy I ran into a problem. In squeeze, the parameter that defines the disk was named vda (why vda??? however) in wheezy its sda now (more like its in every debian install). Means I had to change the config parameter from
d-i partman-auto/disk string /dev/vdato
d-i partman-auto/disk string /dev/sda
build thunderbird 7.x on Debian wheezy
- Details
- Erstellt am Sonntag, 06. November 2011 22:22
Still not finished with my Gnome-Desktop, what I can say that there are some great features that I really missed on Windows for years, however I want to use my Thunderbird and Windows parallel and decided to use dual-boot with the same thunderbird-profile-directory. Wheezy still has a 3.x icedove (=thunderbird) client, and my Windows installation already has a 7.0.1, so I needed a new client, and could not find any distribution out there. Means I was forced to build it by myself. There were two guides that helped my with that topic the one was from Mozilla, the other one for an Ubuntu-build. Here is my step-by-step guide:
get sourcecode
get sourcecode from mozilla, in this case for building 7.0.1
wget ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/7.0.1/source/thunderbird-7.0.1.source.tar.bz2
unpack file
tar -vxfj thunderbird-7.0.1.source.tar.bz2
change to direcotry
cd comm-releases
get build-backages
apt-get install build-essential libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm
and dependencies from the icedove (debian version of thunderbird) package
apt-get build-dep icedove
create .mozconfig file
This file controls what is built and is specific for the mozilla project. In the first line I let the build put the new files in a new directory “thunderbird-7.0.1”
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/thunderbird-7.0.1 ac_add_options --enable-application=mail mk_add_options MOZ_CO_PROJECT=mail ac_add_options --enable-optimize ac_add_options --enable-calendar ac_add_options --disable-crashreporter
Here I disabled the crashreporter, because you run into a problem with deprecated headers on wheezy, a known bug of the mozilla build.
workaround for bug with 3.0 kernel
A workaround for another open bug with the mozilla build, on 3.0 kernels, just needed if you really are on a 3.0 kernel.
cd mozilla/security/coreconf cp Linux2.6.mk Linux3.0.mk
start the build
make -f client.mk
after the build finished change to the build-directory
cd thunderbird-7.0.1
create the deb-package
make -j4
there is already a metapackage “thunderbird” on debian so we need to give it another name checkinstall also asks you for some stuff for naming and describing the package
checkinstall -D --install=no --pkgname=´thunderbird-fairtec´ --pkgversion=´7.0.1´
install the package
dpkg -i thunderbird-fairtec_7.0.1-1_amd64.deb
Enable Sound on Debian Wheezy for Dell Latitude 6500
- Details
- Erstellt am Sonntag, 06. November 2011 01:22
Last week I setup dual boot on my Laptop for giving Gnome on Debian a try. Worked without any problems, except the sound, the driver was installed correctly, but still had no sound. After reading loads of docs I found the hint of using the Realtek Code-Software here. Here step-by-step what I needed to make it working:
get_build_packages
apt-get install linux-source linux-headers-3.0.0-1-all-amd64 build-essential
get file from realtek - choose your kernel
become root
su root
uncompress file (example!)
tar -vxjf LinuxPkg_5.17Beta.tar.bz2
change to new dir (example!)
cd realtek-linux-audiopack-5.17
do the installation and reboot
./install
reboot
Weitere Beiträge...
- RMAN-06026 and RMAN-06023 when restoring
- history for SQL/PLUS and RMAN
- UTL_MAIL with SMTP authentication
- How to fix ORA-00600/ORA-07445
- clockworkmod "an error occured while downloading your recovery."
- KVM - bad usb drive performance
- KVM Kernel Based Virtual Machine vs. XEN
- Oracle 11g Installation on Debian Squeeze
- The type R is already defined
- HOWTO Sign Amazon Product API Requests
- Multiple Desktops in Windows 7
- java.security.AccessControlException: access denied
- FRM-13008 cannot find java bean
- SET_WINDOW_PROPERTY does not trigger WHEN-WINDOW-RESIZED
- subversion tortoisesvn with alternate ssh port
- developer suite 10g on vista and windows 7
- Securing the RBASH?
- sending bacula status mails with smtp authentication
- svnserve with slikSVN
- limit user rights - Jail Shell RBASH (Debian)
- limit user rights - Jail Shell RSSH (Debian)
- limit user rights - Jail Shell SFTP (Debian)
- limit user rights - Jail Shell SSH (Debian)
- Bacula "Network error with FD during Backup"
- port 9240 already in use
- XPlanner+ Permissions for security Manager
- XPlanner Plus
- Cannot configure CacheManager
- Tomcat on Debian
- Oracle Developer Patch 10.1.2.3
- Oracle Reports font subsetting
- Adding Fonts on Unix for Oracle Reports PDF
- Harddisk recovery tools free and not so free
- REP-1352 Font Issue
- Oracle Reports with barcode
- Enterprise-Manager + RMAN No RMAN found, Message file not found
- ORA-1017: invalid username/password when creating database link
- resolv.conf overwritten empty after reboot
- AmazonBestseller which products are cheap?
- 4gb seg fixup errors after upgrading from etch to lenny
- Oracle Bug ORA-07445: exception encountered
- C compiler cannot create executables.
- Oracle Java File permissions
- EM Manager "Compute dynamic property takes too long"
- where to download com_migrator
- PL/SQL Email-Validation
- Power Consumption of Dell Server
- Enterprise Manager and ORA-00018
- Io exception: The Network Adapter could ...
- Centos = Redhat Enterprise Linux
- Enterprise Manager notification not working
- the magic Oracle WITH-clause
- Error in invoking target - Oracle on Debian
- Oracle Installation on Debian for dummys II
- Oracle Installation on Debian for dummys I
- Oracle-Reports Asynchronous calls with SRW-API
- on-commit not working on materialized views
- using Materialized View
- How to determine the character-set in Oracle
- how to compile invalid sys-objects
- ORA-06553: PLS-320: the declaration of the type...
- Access Control with Context/Fine-Grained Access Control
- MDA Vario/Qtek 9100 Ersatzstift/Replacement Stylus
- Versioning of a table in Oracle
- datapump fails with ora-06502
- Where to find Opatch
- How to create a SPFILE from a PFILE
- How to use UTF8 in PDFs created by Oracle-Reports
- Oracle Failsafe and SPFILE
- phone-number check in constraint
- webutil wuc-024 (WUC-24)
- Failsafe ORA-00942 "View or Table does not exist" workaround
- direct access to the database without TNSNAME.ORA
- Failsafe ORA-00942 "View or Table does not exist"
- Connection to host failed. Bad SQL_SCRIPT at - line 227.
- Is Oracle Failsafe just for Databases?
- Do you know Oracle Failsafe???
- REP-56055: Exceed max connections allowed
- Troubles with OracleDataSource
- Enterprise Manager clone Database results in "insufficient disk space"
- How to distribute Oracle Reports Part II
- How to distribute Oracle Reports Part I
- No valid GPS-Signal on Acer N35
- How to use a terminal-file in webforms
- ORA-00257 ORA-16020 Archiver Stuck
- ORA-39002 ORA-39070 ORA-39087 with Datapump
- Installation Forms and Reports Service failed
- Simple Machine Forum
- Don't use timers in webforms - WHY NOT?
- The difference between PJC and Java Beans in Forms
- Forms and Reports Services Standalone
- ORA-00932: inconsistent datatypes
- Compare Database Performance
- Scott and Tiger
- Surprise Surprise Oracle Developer Suite 10gR2
- Working with Oracle Express Edition
- Oracle Express - an Oracle-Database that's for free


