Are you backed up?

Are you backed up?

7.6 has a built notification option. However, its premetive and doesn’t allow for custom messages, alternate ports, or /.

So after much digging and hacking I through together the below which does the job. This is based on the example vbs supplied by retrospect, so cudos to them for the initial work.

Download retroeventhandler.vbs

Also, note that you will need to change your settings according in the last part of the script.

Tags: , , , , , , , , , , , , ,

With all the commosion lately relating to ’s closure and reopening most people are opting to setup their own shortning service.
There’s Lessn and Yours.  Both
I searched around but couldn’t get a clear answer that worked.

With all the hullabaloo lately relating to tr.im‘s closure and reopening most people are opting to setup their own shortning service.

There’s Lessn and Yourls.  Both are great but Yours takes the cake for the admin panel and more detailed info.   I followed the LifeHacker Tutorial, but couldn’t get  working.  With the help of this post I figured it out.

change the following line in /etc/2/sites-enabled/000-default

 DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride all
        </Directory>
        <Directory /var/www/>
                Options FollowSymLinks
                AllowOverride all
                Order allow,deny
                allow from all
        </Directory>

then restart apache

/etc/init.d/apache2 restart

Theres also a bookmarklet for Yourls from twitter.com/jarbro but I’m still working on getting past the “Unknown” error.

UPDATE: The unknown error is normal.  You just need to drag the links to the bookmark bar.

I have to install 5- just to get the _init() function installed

sudo apt-get php5-curl

sudo  /etc/init.d/apache2 restart

Hopefully this helps someone


Tags: , , , , , , , , ,

I saw this post @ stackoverflow.com, I was trying to do the same. So I thought I’d post a complete solution. See this link above or the code below

To Combine the answers above”

Create a file and paste this in it:

<?php

echo $_SERVER['REMOTE_ADDR'];

?>

save it as curip.php and upload it to your server.

In your project create a .

Declare the imports section at the very top

Imports System.Net

Imports System.

And create your function:

Public Function GetIP() As String

Dim uri_val As New Uri(“http://yourdomain.com/curip.php”)

Dim request As HttpWebRequest = HttpWebRequest.Create(uri_val)

request.Method = WebRequestMethods.Http.Get

Dim response As HttpWebResponse = request.GetResponse()

Dim reader As New StreamReader(response.GetResponseStream())

Dim myIP As String = reader.ReadToEnd()

response.Close()

Return myIP

End Function

Now anywhere in your code you can issue

Dim myIP = GetIP()

and use the value from there as you wish.

<?php
echo $_SERVER['REMOTE_ADDR'];
?>

Tags: , , , ,

Very usefull generator for creating complex links.

jsCode.com :: JavaScript MailTo Link Generator.

Tags: , ,

The dateTimePicker can indeed do time. Hence the name

Just change the Format property to time, and the ShowUpDown to True.

Either in the editor, or in code like

CODE

dateTimePicker1.Format = Time

dateTimePicker1.ShowUpDown = True

via VB.NET – Date Time Picker – How Can I Choose BOTH A Date And A Time? | DreamInCode.net.

Tags:

Reading through some coding expamples I came upon this well commented code.  The info is in XML format and makes perfect sence for any reader.

I’m going to start using this method from now on.

''' <summary>
''' Checks to see if a table exists in Database or not.
''' </summary>
''' <param name="tblName">Table name to check</param>
''' <param name="cnnStr">Connection String to connect to</param>
''' <returns>Works with Access or SQL</returns>
''' <remarks></remarks>

//<summary>
//checks to see if a table exists in Database or not.
//</summary>
//<param name="tblName">Table name to check</param>
//<param name="cnnStr">Connection String to connect to</param>
//<returns>Works with Access or SQL</returns>
//<remarks></remarks>

via CodeProject: Check if a table or field exists in a database. Free source code and programming help.

Tags: