Skip to main content

Posts

Showing posts from May, 2014

Mobile App Prayer companion

Why need to recite the Rosary everyday? check out link below:
http://quickbytesstuff.blogspot.sg/2014/09/how-to-recite-rosary.html

Amidst the daily toils and hard work.

It's always a good thing to get down to your knees and pray.

A true prayer delights the heart and gladdens the soul.

Do not believe only what the eyes of your body tell you. What is not seen is here more truly seen, for what is seen belongs to time, but what is not seen belongs to eternity.
Saint Ambrose

The Christian life is the continuation and completion of the life  of Christ in us. We should be many Christs here on earth, continuing his life and his words, labouring and suffering in a holy and divine manner in the Spirit of Jesus.
Saint John Eudes

You learn to speak by speaking, to study by studying, to run by running, to work by working. In just the same way you learn to love by loving.
Saint Francis de Sales


Divine Mercy Chaplet Guide:

https://play.google.com/store/apps/details?id=com.dmercyapp

Heaven's Dew Fa…

Bash Script check if folder exists

This piece of snippet code below will check if a folder exists.

Linux OS that has NTFS driver installed, can easily to plug in and plug out NTFS formatted external drives.

Or look for ntfs-3g driver if NTFS is not supported.


And can easily be used by both Windows OS and Linux OS.

This piece of snippet code below will check if a folder exists and execute a command if a folder is found.

In Linux world, depends on the distro you are using.

If you insert an NTFS formatted external drive you need to mount the drive.

Once the external drive is inserted type: df -h

Then you will have this output or it might be different in your distro.

/dev/sdb1   1.9T

Then you can proceed to mount the drive like:

mount -t ntfs /dev/sdb1 /media/Week1  (Week1 is the folder name, can be change to any name)

Of course there are other methods, if the command above will not work.

Type "man mount" (don't include quotes when typing on the terminal) if you want to dig further about mount command.

For …

Run screen saver in batch file

How to run screen saver using batch file or using command line?

This one liner code snippet below will launch screen saver using batch file or via command line.

It will run the screen saver even though the screen saver settings on desktop is not set.

This can be set also using task scheduler and call the batch file to run at an specified time.

I had tested this on Windows 7 and it works fine.

cmd /c C:\Windows\System32\bubbles.scr /?

cmd /c C:\Windows\System32\ssText3d.scr /?

cmd /c C:\Windows\System32\ ribbons.scr /?

The ssText3d.scr will read or get the input text or the preset text and display as the screen saver text.

I guess this would work fine also on Windows 8.

To run screen saver via command line using the pictures installed on "My Pictures" folder.

Type this command:

cmd /c c:\Windows\System32\photoscreensaver.scr -start

If the photoscreen saver has not yet been configured it will prompt where to get the pictures or photos to be displayed when the screen saver runs. Se…

How to show remote notifications in PowerShell

This snippet code below shows how to set notifications using PowerShell.
If you’re shutting down a computer, it’s good to show a message to alert the user that the computer is going to shutdown.
If Winrm or Windows Remote Management is already configured on the Active Directory environment, you can just run the script remotely.
Provided that the user account that invokes or run the script has the proper rights to access the remote computer.
Net send was quite useful during Windows XP glorious days.
Msg.exe can do the same job with net send, provided that Windows Remote Management is properly setup.
Like winrm quickconfig has been configured, and proper ports are open and of course Windows Remote service is running.
Different versions of Winrm have different ports to open that make msg.exe not as popular as net send.
To check the version of Winrm, open command prompt and type “winrm id”. Don’t include the double quotes when typing at command prompt.

Running winrm id, will show the version of win…

How to set email notification in file server resource manager or fsrm

Setting email notification in File Server and Resource Manager in Windows 2012 or Windows 2008.
This tutorial assumes that the FSRM has been added and available in the server manager or in the administrative tools on control panel.
But a quick guide below is provided on how to install File Server Resource Manager (FSRM) on Windows 2012.
Check out links below to find out more about File Server Resource Manager on Windows 2012.
Check this link to find out more on FSRM PowerShell cmdlets: http://technet.microsoft.com/en-us/library/jj900651.aspx
File Server Resource Manager Overview http://technet.microsoft.com/en-us/library/hh831701.aspx
If you haven't install FSRM, follow this quick guide below on how to do it.
Open Server Manager.
Click On Manage.
Click Add Roles and Features.
Click Next (Follow on Screen Instruction)
Under Server Role.
Click File and Storage Services
Click File and iSCSI services.
On the sub items tick File Server Resource Manager.
Follow on screen instructions to…

Unable to install old programs in Windows 7 or Windows 8

Unable to install or emulate XP in Windows 7 or  Windows 8?

On Windows 7 or Windows 8, Microsoft provides a compatibility tab.

On this tab, you can select the earlier version of Windows.

How to access the compatibility tab?

Find the installer of your program.

Right click on the installer and click on properties.

The properties option for the installer will be displayed.

Click on "Compatibility" tab.

And tick the option, "Run the program in compatibility mode for:"

Click the drop down arrow and select the operating system.

Click on "Apply" and click OK.

Double click the installer to run the installation.

See screen shot below:




Enjoy using old programs, if still serve the purpose.

Cheers!



PowerShell File Path Too Long

Striving hard to work on files and folders whose paths are too long in PowerShell?

Well, it’s not hard anymore it can easily be done on PowerShell.
With the master piece of Johan Delimon, the Delimon.Win32.I​O Library (V4.0) is of very great help.
The file can be downloaded on TechNet gallery on this link below:
http://gallery.technet.microsoft.com/scriptcenter/DelimonWin32IO-Library-V40-7ff6b16c
Download the file and install it.

And with this piece of snippet code, accessing long path exceeding 260 characters or more is not a problem.


This code snippet below will read the files on a path which exceeds the path limitation.

=====================================
#Load the  DLL to PowerShell [Reflection.Assembly]::LoadFile("C:\Program Files\Delimon\Delimon.Win32.IO\Delimon.Win32.IO.dll")

#Access the method or the function of the DLL to read the files
#Note: Line below has to be in one line

 $xstr = $xstr =[Delimon.Win32.IO.Directory]::GetFiles("\\servername\very very long path exceed…