Friday, May 25, 2018

Adding QuickReports to the Delphi 7 Component Palette

Thursday, August 13, 2015

Low disk space on C

hiberfil.sys  = cmd (run as admin) > powercfg -h off
pagefile.sys = my computer > properties > advanced > performance > advanced > virtual memory
addtl space  = control panel > administrative tools > computer mgt > disk mgt > shrink & extend volume

Thursday, June 4, 2015

sql error on unjspf_id update...

solution: temporarily disable workrate_change trigger on member_sg, enable again

Thursday, October 16, 2014

Row | Column does not unhide in Excel -- How to

... select the hidden row(s)/column(s) then CHANGE the row(s)/column(s) WIDTH

Wednesday, January 22, 2014

Problem: "Connection is busy with results for another hstmt"
Solution:

To set the rowset size with the BDE, do the following:
  1. Click on your TDatabase component
  2. In the object inspector, expand Params
  3. Put in a Key of "ROWSET SIZE"
  4. Put in the desired value

source: http://sourceitsoftware.blogspot.com/2008/06/connection-is-busy-with-results-for.html

Sunday, June 16, 2013

Remove mailbox from outside Outlook...

Control Panel > Mail > Email accounts > Data Files Tab > Main pst/ost > Advanced > Mailboxes

Solved!

Monday, October 15, 2012

MS Excel Macro for exporting a text file with both comma and quote delimiters


Before you work with the following sample code, follow these steps:
  1. Open a new workbook.
  2. In Microsoft Office Excel 2003 or in Microsoft Excel 2002, point to Macro on the Tools menu, and then click Visual Basic Editor. Alternatively, press ALT+F11.

    In Microsoft Office Excel 2007, click the Developer tab, and then click Visual Basic in the Code group. Alternatively, press ALT + F11.

    Note To show the Developer tab in the Ribbon, click the Microsoft Office Button, click Excel Options, click thePopular category, click to select the Show Developer tab in the Ribbon check box, and then click OK.
  3. In the Visual Basic Editor, click Module on the Insert menu.
  4. Type or paste the following sample code in the module sheet.

    Sub QuoteCommaExport()
       ' Dimension all variables.
       Dim DestFile As String
       Dim FileNum As Integer
       Dim ColumnCount As Integer
       Dim RowCount As Integer
    
       ' Prompt user for destination file name.
       DestFile = InputBox("Enter the destination filename" _
          & Chr(10) & "(with complete path):", "Quote-Comma Exporter")
    
       ' Obtain next free file handle number.
       FileNum = FreeFile()
    
       ' Turn error checking off.
       On Error Resume Next
    
       ' Attempt to open destination file for output.
       Open DestFile For Output As #FileNum
    
       ' If an error occurs report it and end.
       If Err <> 0 Then
          MsgBox "Cannot open filename " & DestFile
          End
       End If
    
       ' Turn error checking on.
       On Error GoTo 0
    
       ' Loop for each row in selection.
       For RowCount = 1 To Selection.Rows.Count
    
          ' Loop for each column in selection.
          For ColumnCount = 1 To Selection.Columns.Count
    
             ' Write current cell's text to file with quotation marks.
             Print #FileNum, """" & Selection.Cells(RowCount, _
                ColumnCount).Text & """";
    
             ' Check if cell is in last column.
             If ColumnCount = Selection.Columns.Count Then
                ' If so, then write a blank line.
                Print #FileNum,
             Else
                ' Otherwise, write a comma.
                Print #FileNum, ",";
             End If
          ' Start next iteration of ColumnCount loop.
          Next ColumnCount
       ' Start next iteration of RowCount loop.
       Next RowCount
    
       ' Close destination file.
       Close #FileNum
    End Sub
         
  5. Before you run the macro, select the data that you want to export, and then run the QuoteCommaExportsubroutine.

Sunday, February 26, 2012

SQL transfer data from one table to another...

<< for tables with exact same columns only >>

//creating new table
SELECT *
INTO new_table
FROM old_table
WHERE condition


// with existing table
INSERT new_table SELECT * FROM old_table

<< for transfer with static value and/or tables with NOT exact same columns only >>

INSERT INTO new_table (columns, columns, columns)
SELECT columns, sum(), static_value FROM old_table

WHERE condition

Friday, November 25, 2011

Outlook: “Can’t Create File” Error When Opening Attachment

1. Click Start > Run and type regedit.

2. Click Edit > Find and type OutlookSecureTempFolder.

3. When regedit has found the entry, it will tell you where your Outlook temporary files are stored. It will look similar to:

C:\Documents and Settings\username\Local Settings\Temporary Internet Files\OLKrandomnumber

4. Open My Computer and navigate to this location on your hard drive.

5. Delete all of the files in this folder.

6. Test open attachment

7. Restart Microsoft Outlook if not able yet

Wednesday, March 16, 2011

"different...."

haven't blog and updated this for a while... perhaps because of the new twitter, meme, and facebook? nah...

today i stood up and left home for work past 6am... i have lots of things in my mind right now so i took a different path... a path i never havent crossed yet... somehow it felt strange but good... the early walk, the smell of the grass, breakfast alone... it was like going to work on your first day... it was like one of my travels in a different country...

i hope this is a start of a new good beginning in my life...

EDIT: at 6pm of this day, my father died.

I love you Pa. You'll always be here in my heart.
Thank you for everything. We'll surely miss you. Rest in Peace with the Lord.

Tuesday, October 5, 2010

solved problem: MSSQL Maintenance Plan Save Error "no such interface supported"

i recently encountered a problem in Microsoft SQL 2005 which did not arised in my first server.

Microsoft SQL Management Studio does not allow me to save any Maintenance Plan and pops-up this message:

"no such interface supported"

after long research on the net, solution is very simple.

solution:

regsvr32 msxml3.dll

regsvr32 msxml6.dll

Thursday, January 28, 2010

30 second Speech by Bryan Dyson (CEO of Coca Cola)

"Imagine life as a game in which you are juggling some five balls in the air. You name them - Work , Family, Health, Friends and Spirit and you're keeping all of these in the Air. You will soon understand that work is a rubber ball. If you drop it, it will bounce back. But the other four Balls - Family, Health, Friends and Spirit - are made of glass. If you drop one of these; they will be irrevocably scuffed, marked, nicked, damaged or even shattered. They will never be the same. You must understand that and strive for it."

WORK EFFICIENTLY DURING OFFICE HOURS AND LEAVE ON TIME. GIVE THE REQUIRED TIME TO YOUR FAMILY, FRIENDS & HAVE PROPER REST.

Wednesday, November 25, 2009

Monday, November 9, 2009

OLPC, after years of launch... still unbeatable!

this laptop never fail to amaze me. i support this project.



Friday, October 16, 2009

9 year-old kid created a starwars website !

Today I stumbled upon a Star Wars blogsite created by a 9 year-old kid. Can you believe that??? And I checked the source, he's not using any content management system (cms) to aid him. He's using purely html codes.

I thought he might be 9 when he created this during the time of the movies like revenge of the Sith which is 2005 making him 13 already but his images were from the new Clone Wars series so the site is quite updated, at least 2008 or current. Therefore he's really 9.

I'm impressed on his skills considering his age. Kids usually don't have interest yet on such matters. I have a niece with same age so I can relate and I'm really amazed.

Here's his site: http://www.schwef.com/nolan

The force is strong with him.
A jedi, he will be.

Thursday, October 15, 2009

Tweet using command line

simple script that will allow you to send tweets from the command line:

The script you will see takes exactly one argument: your tweet. You use it like this:

$ ~/bin/tweet "Writing my TechMails"
Successful tweet!

Once you run the script and look on Twitter, your post is there for all to see. The script itself uses nothing fancier than cURL to post the text provided to the script.

The text must observe shell constraints: it must be properly escaped for special characters (such as "!" and "?"). The script doesn't require the tweet to be in quotes; you could use:

$ ~/bin/tweet Does my tweeter need quotes\?
Successful tweet!

and it would work just as well.

The script itself:

#!/bin/sh
tweet="${@}"
user="username"
pass="sekret"
if [ $(echo "${tweet}" | wc -c) -gt 140 ]; then
    echo "FATAL: The tweet is longer than 140 characters!"
    exit 1
fi
curl -k -u ${user}:${pass} -d status="${tweet}" 

https://twitter.com/statuses/update.xml >/dev/null 2>&1

if [ "$?" == "0" ]; then
    echo "Successful tweet!"
fi

Output of the cURL command is directed to /dev/null because it returns some XML that we don't need to care about. The script also makes sure that the tweet is 140 characters or less, and exits with an error if it is longer.

Wednesday, September 30, 2009

Star Wars Timeline

The Star Wars Galaxy

Star Wars: The Old Republic Cinematic Trailer

So fucking damn great video, this is. --Yoda

I have never seen a Vader-looking Sith fight like this!