perl -e 'print scalar gmtime 1404982047'
Thu Jul 10 08:47:27 2014
Thursday, July 10, 2014
Monday, July 7, 2014
Set up Word 2010 / 2013 styles
If when re-opeing your doc, Word decided to turn your existing styles into shit (e.g. 3.4 became 1.49), start all the way from the start:
- Enable Developer menu: File | Options | Customize Ribbon then tick the Developer checkbox in the right hand side list
- Then in the new Developer menu, push the Document Template button, and untick the Automatically update document styles checkbox
- Then follow this tutorial: How to create numbered headings or outline numbering in Word
Friday, July 4, 2014
Blocked loading mixed active content
A workaroung in FF is:
Go to about:config
and
security.mixed_content.block_active_content = false
Go to about:config
and
security.mixed_content.block_active_content = false
Tuesday, June 17, 2014
Javascript: force client to reload javascript files
Ctrl+F5or add a version information in file specification, and change it every time the js file is updated
<script type="text/javascript" src="file.js?1.1"></script>
Labels:
javascript
Thursday, June 5, 2014
OSX: from 10.9.2 to 10.9.3
Install the OS X Mavericks 10.9.3 Update (Combo)
Use MultiBeast 6.3 with this conf.
Reboot, et voila:
Use MultiBeast 6.3 with this conf.
Reboot, et voila:
Wednesday, June 4, 2014
Tuesday, May 27, 2014
Saturday, May 24, 2014
HTC Pico/Explorer: Extend external memory after CM10.2 install
Use this link to download MiniTool Partition Wizard Home Edition
http://download.cnet.com/MiniTool-Partition-Wizard-Home-Edition/3000-2094_4-10962200.html?part=dl-6285158&subj=dl&tag=button
1. Connect your SD card to PC through USB mode
2. Run the downloaded file (pwhe8.exe)
3. Select your SD card 2nd partition and right click to select DELETE option
4. Again select your 2nd partition (unallocated space at this moment) and right click to select CREATE option
5. Select partition type as ext4 and drive as primary (Not logical) from popup window
6. At last select the apply button from tool bar (first button)
Done - you created a EXT4 partition
Then install Mounts2Sd from Google Play, then
1. After installing the app, open it and allow root access
2. Configure install script
3. Enable applications, data , cache, etc.
4. Reboot
http://download.cnet.com/MiniTool-Partition-Wizard-Home-Edition/3000-2094_4-10962200.html?part=dl-6285158&subj=dl&tag=button
1. Connect your SD card to PC through USB mode
2. Run the downloaded file (pwhe8.exe)
3. Select your SD card 2nd partition and right click to select DELETE option
4. Again select your 2nd partition (unallocated space at this moment) and right click to select CREATE option
5. Select partition type as ext4 and drive as primary (Not logical) from popup window
6. At last select the apply button from tool bar (first button)
Done - you created a EXT4 partition
Then install Mounts2Sd from Google Play, then
1. After installing the app, open it and allow root access
2. Configure install script
3. Enable applications, data , cache, etc.
4. Reboot
Friday, May 23, 2014
Oracle: Stop a datapump job run via crontab
Show datapump jobs
select * from dba_datapump_jobs;Stop a datapump job
DECLARE
handle NUMBER;
BEGIN
-- Format: DBMS_DATAPUMP.attach('[job_name]','[owner_name]');
handle := DBMS_DATAPUMP.attach('SYS_EXPORT_FULL_02','SYSTEM');
DBMS_DATAPUMP.STOP_JOB(handle, 1, 0);
END;
Tuesday, May 13, 2014
Tuesday, May 6, 2014
Use quotes in a perl one-liner
cat /media/host/vbox.txt | perl -e 'while (<>) { print "'"'"'$1'"'"',\n" if /^(\d+)/; }'
Thursday, April 24, 2014
Oracle: select from list of values
select distinct column_value from table(sys.odcinumberlist(1,1,2,3,3,4,4,5));or
select column_value from table(sys.dbms_debug_vc2coll('One', 'Two', 'Three', 'Four'));
Tuesday, April 1, 2014
ORA-01555: snapshot too old: rollback segment number 61 with name "_SYSSMU61_1706556987$" too small
SQL> select max(maxquerylen) from v$undostat; 26687Add 20% to this value and update UNDO_RETENTION parameter.
SQL> ALTER SYSTEM SET UNDO_RETENTION = 32024;
Wednesday, March 26, 2014
Sunday, March 23, 2014
Mavericks 10.9.2: network lost after upgrade
Symptom: network stopped working suddenly after Mavericks upgrade
History:
History:
- Updated Mavericks to 10.9.2 using Combo update
- Re-installed conf. using MultiBeast 6.2.1
- Reboot
- Network KO
- Repair permissions:
sudo diskutil repairPermissions / - Reboot
Friday, March 21, 2014
Friday, February 28, 2014
Oracle: monitoring long tasks
SELECT start_time, username, target, sofar blocks_read, totalwork total_blocks, round(time_remaining/60) minutes FROM v$session_longops WHERE sofar <> totalwork;
Thursday, February 27, 2014
Wednesday, February 26, 2014
Friday, February 14, 2014
Subscribe to:
Posts (Atom)






