Things I tend to forget

From Hell

It’s a joke Sam told me yesterday, it’s a lot funnier when he tells it though…

There was the English, the American and the Lebanese and they all went to hell.
After a while, they got home sick and wanted to call someone at home.
The English called the UK, talked to his mother for 2 mins and hung up.
The daemon in charge billed him 1 Million Pounds!
The American was next and he had to call home as well, so he tried not to talk as much, and he was only billed 1 Million US Dollars for 1.5 minutes.
Now, when the Lebanese guy asked for the phone it was a different story.
When he called, everyone wanted to talk to him … the family and friends and neighbors and people from all over the place asking about their loved ones … and so on. So he ended up talking for more than 3 hours!
He dreaded the bill, but when he came to pay up, he was amazed that it was only 2,000 LBP. And the daemon didn’t have any change so he let him go for free!
When he asked why, the daemon shrugged and said it was a Local Call.

Similar Posts:

    None Found

Base Directory?!

For a while now I used something like the following to get a good include() path for my PHP code.

if (!defined("BASE_PATH")) define('BASE_PATH', $_SERVER['DOCUMENT_ROOT'].'/mrp'));

However, I was hit with the realization that it won't work with my new Apache setup, which goes something like the following:

ServerRoot "X:/home/abdallah/xampplite/apache"
DocumentRoot "X:/home/abdallah/xampplite/htdocs"
     Alias /mrp "X:varwwwmanufac"
    AllowOverride None
    Options all
    Order allow,deny
    Allow from all

So, $_SERVER['DOCUMENT_ROOT'] no longer works!
Instead I've reverted to something like the following:

if (!defined("BASE_PATH")) define('BASE_PATH', substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), 'mrp')+3));

Similar Posts:

    None Found

How much time?

Time has been on my mind for a while now. Not the distant notion of time/space continuum one struggles to understand (not that hard, just over-hyped!), but the simple fact that we’re at the end of what the Bible calls “the day of Our Lord”.

The fact that Jehovah’s Witnesses’ yearly scripture is taken from the verse in Zepheniah 1:14 must tell you something!

“The great day of Jehovah is near.”—Zeph. 1:14.

Please note the difference between the two “days”:

*** re chap. 5 p. 22 par. 2 John Beholds the Glorified Jesus ***
what is the Lord’s day? The apostle Paul refers to it as a time of judgment and of fulfillment of divine promises. (1 Corinthians 1:8; 2 Corinthians 1:14; Philippians 1:6, 10; 2:16) …
That “day” begins with the crowning of Jesus as heavenly King. Even after Jesus executes judgment on Satan’s world, the Lord’s day continues, with the restoration of Paradise and the perfecting of mankind, until Jesus finally “hands over the kingdom to his God and Father.”—1 Corinthians 15:24-26; Revelation 6:1, 2.

*** w06 12/15 p. 15 par. 3 “The Great Day of Jehovah Is Near” ***
What is “the great day of Jehovah”? Throughout the Scriptures, the expression “the day of Jehovah” refers to special times when Jehovah executed judgment on his enemies and glorified his great name…
However, the greatest “day of Jehovah” still lies ahead. It is the “day” when Jehovah’s judgment will be executed on those who have defamed his name. It will start with the destruction of “Babylon the Great,” the world empire of false religion, and culminate in the annihilation of the rest of the wicked system of things at the war of Armageddon.—Revelation 16:14, 16; 17:5, 15-17; 19:11-21.

Simply reading the 12 Prophets‘ renderings about the “day of Jehovah” is enough to put a sense of urgency in one’s heart. They talk about it with fear as if they could see it upon them. Zephaniah said that “it is near, and there is a hurrying [of it] very much …” compare that with the word of Peter, who said that “it will come as a thief …” (2 Peter 3:10).

Joel graphically described “the great and fear-inspiring day of Jehovah.” (Joel 1:15; 2:1, 2, 30-32) Amos told the Israelites to get ready to meet their God, for the day of Jehovah would be one of darkness. (Amos 4:12; 5:18) … And near the time of the destruction of Jerusalem, Obadiah warned: “The day of Jehovah against all the nations is near.”—Obadiah 15.

All that, and the recurring words of Jesus, Peter, Paul and others saying it will come “as a thief in the night” (Thessalonians 5:2) is making me wonder how exactly it will come! Recent history has showed us more than once that major earth shattering events do not come with an introduction. Those who remember the fall of the Soviet and the wall of Berlin (and the Iron Wall) understand what I mean, it simply happened when no one expected it! What about the more recent 9/11? Out of no where, a virtually unknown terrorist organization hits the great American Empire in the midst of its home land. Now, some would argue that it’s not entirely true: many knew what was happening in both occasions I mention, they told the world about it and warned people about what’s happening around them. And there were signs that foretold the events that shook the earth and its inhabitants: Gorbachev was obviously working on something when the mighty USSR fell, and I’m sure many in the homeland security forces in the United States knew or speculated about the attacks of 9/11/2001.
That’s entirely true. And it fits the profile of the upcoming great events, many know what will happen and are waiting for it, they are telling people about it, and they know (from the accounts of the 12 profits, among others) how the end will come! Yet, it will come as a thief, and even those expecting it will stand in awe as Jehovah’s Great Day arrives…

Similar Posts:

    None Found

WTLib 2006 on iSilo

It’s out! My iSilo is not working… However, I still got the files for my friends in Lebanon to use.

This version comes in different flavors, I guess the guys who made it worked really hard to make it accessible for almost everyone out there. So, I’m not going to make their efforts go to waste, and I won’t break any laws at the same time: Anyone who needs the files, please send me a note (comment) and I’ll try to deliver the files the best I can (SandalNet or otherwise :D).

Options include:

  • Small
  • Basic
  • Extended
  • Full
  • Index
  • Worldwide Report 2006 (Optional)

Similar Posts:

    None Found

More Cleaning

I was having trouble teaching people how to use the CLI version of the temp directory cleanup code (posted earlier). So, I cooked up this small VB app. Hope you like it.

CleanUp! Screenshot

If you need the code, I’ll attach it to this post later on. files added, enjoy

Similar Posts:

    None Found

Delete Old Files (dotNet)

Umm, I needed some way to clean up the files on my Win2K* servers. So here’s a quickie in VB.NET, hope it helps.

' Written by Abdallah Deeb on 02-Mar-2007
' Use at your own risk, I am not liable for any damages or lost files if you use this code.
Imports System
Imports System.IO
Module DeleteOld

    Sub Main()
        Dim sr As StreamReader
        Dim folderName As String
        Dim files As System.Collections.ObjectModel.ReadOnlyCollection(Of String)
        Dim fileName As String
        Dim fInfo As System.IO.FileInfo
        Dim fCreation As Date
        Dim cfgLine As String()
        Dim numberOfDays As Integer

        sr = New StreamReader("c:\DeleteOld.cfg")
            cfgLine = Split(sr.ReadLine(), "|", 2)
            folderName = cfgLine(0)
            numberOfDays = Int(cfgLine(1))
            files = My.Computer.FileSystem.GetFiles(folderName, _
            For Each fileName In files
                fInfo = My.Computer.FileSystem.GetFileInfo(fileName)
                fCreation = fInfo.CreationTime
                If DateDiff(DateInterval.Day, fCreation, Now()) > numberOfDays Then
                End If

        Loop Until folderName Is Nothing

    End Sub

End Module

Similar Posts:

    None Found