Samba Printing on Fedora 3 »
Configuring a printer using Samba is usually pretty trivial. Unfortunately, I spent weeks trying to get mine working. I had a HP 4110 Office Jet printer which works great on Linux. I wanted to share it with my other windows machines so I added a section in my /etc/samba/smb.conf file for the printer. All my windows machine were able to see the printer and I was even able to add it. But unfortunately, once I printed a page from windows, nothing happened…no error messages..nothing. I could see a new file getting created in /var/spool/cups. I had no clue and I found several days searching for a useful link.
Anyway, to make the story short, I then started to use a Generic driver instead of the HP drive and there you go…I was able to print a page. I then modified the driver to use MS Publisher Color Printer and then everything worked like a charm.
Oracle DBMS_OBFUSCATION_TOOLKIT »
Oracle – DBMS_OBFUSCATION_TOOLKIT: This package allows us to encrypt and decrypt values.
Here is an example on how to use the package:
—————————————————————-
FUNCTION encryptField(pi_fieldIn VARCHAR2)
RETURN RAW
IS
– 1. The input string has to be a multiple of 8 bytes…so RPAD it.
– 2. Convert VARCHAR2 to RAW to overcome DB Character Set dependencies (Useful when we are doing IMP and EXP to different
– character sets).
inputString varchar2(32767) := UTL_RAW.CAST_TO_RAW(rpad( pi_fieldIn, ceil(length(pi_fieldIn)/8)*8 , chr(0) ));
po_encrypted_string RAW(32767);
BEGIN
dbms_obfuscation_toolkit.DESEncrypt( INPUT =>inputString,
KEY => UTL_RAW.CAST_TO_RAW(‘XpVVze3F’),
ENCRYPTED_DATA => po_encrypted_string);
RETURN po_encrypted_string;
END encryptField;
————————————————————————————————–
– decryptField: Decrypts the parameter passed in and returns the decrypted string
—————————————————————————————————
FUNCTION decryptField(pi_fieldIn VARCHAR2)
RETURN RAW
IS
inputString varchar2(255) := pi_fieldIn;
po_decrypted_string RAW(32767);
BEGIN
dbms_obfuscation_toolkit.DESDecrypt( INPUT =>inputString,
KEY => UTL_RAW.CAST_TO_RAW(‘XpVVze3F’),
DECRYPTED_DATA => po_decrypted_string);
RETURN po_decrypted_string;
END decryptField;
——————————————————————————
Tech Force One is my web log related to technologies, I use day to day.
0
-