|
code-frog wrote: I always thought from the title it meant surf a website later.
That's what I first thought when I saw Neville post about it. Turns out to be a lot more functional than that.
code-frog wrote: So far I like your blog. Most people blog in such a boring way. Yours is good. It meanders a lot and I like that.
Well I tend to meander through life so it’s only fair that my Blog does.
Funny part of it is I have another Blog that I use; it’s just not visible to the rest of the world (it reside on my server at home). This one is reserved for when I'm away from home and need to vent or exclaim something I just figured out.
Do you still actively post at yours? The few times I have checked it I haven’t seen any activity or have you moved on to a “real” blog?
-- modified at 4:41 Thursday 26th January, 2006
|
|
|
|
|
code-frog wrote: You just inspired me to check this out. Seems like a cool tool.
Tis. Comments, barbs, suggestions most welcome.
code-frog wrote: I always thought from the title it meant surf a website later.
The name is unfortunately causing me some grief.
Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
|
|
|
|
|
|
Neville Franks wrote: Thanks for posting about Surfulater
No problem.
Neville Franks wrote: Surfulater uses stock standard XML for storing all text you clip from Webpages or Windows Apps. Binary stuff like images and attachments are stored in an open source database. I touch on this here: http://www.surfulater.com/compareus.html[^]
Thanks, I will look into that.
|
|
|
|
|
Well I went to the oral surgeon today, got all four of my wisdom teeth pulled out. I had them put me out for the procedure. I must admit I don’t know what everyone is complaining about the pain is nowhere near as bad as having those teeth in. the worst part thus far has been the after effects of the Novocain. It’s been almost 9 hours at this point and my jaw is still numb. Its great to do my impression of an overly drunk person, can't quite keep all of the water going down. Some of it invariably ends up dribbling out the side of my mouth.
Well the best part of this is my boss is a ninny and let me take a little over a week off to recover, I should be back up and ready to do some work tomorrow.
Well the strangest thing just happened the Oral Surgeon who pulled my teeth out just called to check and see how I was doing. I was pretty decent (esp. how much this operation cost)
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
-- modified at 21:50 Wednesday 28th December, 2005
|
|
|
|
|
Well a friend of mine came to me last week looking for a small script that would backup a directory for him. I hammered this out in a few hours (most of that time was spent looking for how to invoke the built in XP zipping interface). Rather than just forget about it I thought I would post it here in case anyone else could use something similar.
To use it, copy the text below into a text file rename it to .vbs, fill in the variables strDirToBack and strDirNewloc and choose whether or not you want the folder to be zipped or not. An incrementing number will be added to the end of the resulting file / folder. There isn’t much in the way of error handling, if you have trouble let me know and I will try and help.
Option Explicit
'***************************************************************************'
'*** Quick Back Up by Stephan
'***
'*** No warranties express or implied use at your own risk
'***************************************************************************'
'********************************************************************************'
'*** if bZip is set to true then Quick Zip will try and use built in windows ***'
'*** Zipping functionality (Windows XP and Newer Only), other wise Quick zip ***'
'*** will try and find WinZip to add the folders to a zip archive. If neither ***'
'*** of these are available then Quick zip will copy the folders directly ***'
'*** appending a numeric integer to end of the folder ***'
'*** The last folder name of the destination directory will be used as the zip ***'
'*** File name or folder name if zipping is not used ***'
'*** Exp, the directory to back up "C:\Test" backed up to "C:\Temp\Test will ***'
'*** become "C:\Temp\Test1.zip ***'
'********************************************************************************'
'*** The directory to back up *** 'SFD
const strDirToBack = "C:\eia"
'**** The new location ***'
const strDirNewloc = "C:\TEMP\eia"
'*** Zip the files Using Windows Zip ***'
const bZip = true
'***************************************************************************'
'*** App Variables, Do No modifiy ***'
Dim objFSO
'*** End App Vars ***'
'***************************************************************************'
Call main
'***************************************************************************'
'*** Start the work *** SFD 12/17/2005
'***************************************************************************'
sub main()
dim strNum
dim strLoc
dim objShell
Set objFSO = CreateObject("Scripting.FileSystemObject")
strNum = GetFileNumber()
strLoc = GetWinZipLoc()
if(bZip) then
if(CreateZip(strDirNewLoc & strNum & ".zip ")) Then
AddFilesZip strDirNewLoc & strNum & ".zip ", strDirToBack
end if
elseif(Len(strLoc) > 0) then
'*** Winzip is installed ***'
set objShell = CreateObject("Shell.Application")
strLoc = strLoc & " -a " & strDirNewLoc & strNum & ".zip " & strDirToBack
objshell.Open strLoc
set objShell = Nothing
else
'*** WinZip is not installed Just copy the folder ***'
objFSO.CopyFolder strDirToBack, strDirNewloc & strNum
end if
set objFSO = nothing
end sub
'***************************************************************************'
'*** Get File Number *** SFD 12/17/2005
'***************************************************************************'
function GetFileNumber()
dim objTextFile
dim strValue
if(GetExists("foldernumber.dat") = false) then
Set objTextFile = objFSO.CreateTextFile("foldernumber.dat")
objTextFile.WriteLine("0")
objTextFile.Close()
Set objTextFile = NOthing
end if
Set objTextFile = objFSO.OpenTextFile("foldernumber.dat")
strValue = objTextFile.ReadLine()
objTextFile.Close
set objTextFile = nothing
if(len(strValue) < 1) or (IsNumeric(strValue) = False) then
'**** Error ***'
strValue = 0
end if
strValue = strValue + 1
call SetFileNumber(strValue)
GetFileNumber = strValue
end function
'***************************************************************************'
'*** Get File Number *** SFD 12/17/2005
'***************************************************************************'
sub SetFileNumber(strNewNumber)
dim objTextFile
Set objTextFile = objFSO.OpenTextFile("foldernumber.dat", 2, False )
objTextFile.WriteLine(strNewNumber)
objTextFile.Close()
set objTextFile = nothing
end sub
'***************************************************************************'
'*** Does the file exists *** SFD 12/17/2005
'***************************************************************************'
function GetExists(str)
GetExists = objFSO.fileexists(str)
end function
'***************************************************************************'
'*** Get Location of Winzip from Registry *** SFD 12/17/2005
'***************************************************************************'
function GetWinZipLoc()
On Error Resume Next
dim strWinZip
dim objRegEdit
strWinZip = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\winzip32.exe"
Set objRegEdit = CreateObject("WScript.Shell")
strWinZip = vbNullString
strWinZip = objRegEdit.RegRead(strWinZip)
Set ObjRegEdit = Nothing
GetWinZipLoc = strWinZip
end function
'***************************************************************************'
'*** Create The Zip File *** SFD 12/17/2005
'***************************************************************************'
function CreateZip(strLoc)
On Error Resume Next
dim strHex
dim i
dim objTextFile
CreateZip = true
'Create the basis of a zip file.
Set objTextFile = objFSO.CreateTextFile(strLoc, True)
strHex = Array(80, 75, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
strLoc = vbNullstring
For i = 0 To UBound(strHex)
strLoc = strLoc & Chr(strHex(i))
Next
objTextFile.Write strLoc
objTextFile.Close
Set objTextFile = Nothing
if err.number <> 0 then
CreateZip = False
end if
end function
'***************************************************************************'
'*** Add Files to Zip *** SFD 12/17/2005
'***************************************************************************'
function AddFilesZip(strLoc, strback)
On Error Resume Next
dim objApp
dim objZip
Set objApp = CreateObject("Shell.Application")
Set objZip = objApp.NameSpace(strback)
If Not objZip Is Nothing Then
objApp.NameSpace(strLoc).CopyHere objZip.Items
End If
wScript.Sleep(5000)
Set objZip = Nothing
do while(objZip is Nothing)
wscript.sleep 3000
loop
Set objZip = Nothing
Set objApp = Nothing
If Err.number <> 0 then
msgbox err.description
err.clear
End If
end function
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
|
Yea, I tried it, it works well for what it was designed to do. My personal complaint about it was no logging and I never did figure out how to set up a schedule for it run.
Do you remember the first draft for the article idea I'm kicking around? Well one of your comments was something to the effect of me being a minimalist. I really am and the friend who I wrote this for is one also. Why rely on yet another tool when windows has built in scripting capability? Besides, SyncToy doesn’t compress the files it copies; it’s a 1 to 1 copy. What if you want a daily history of a directory? I should really update the script here as I have modified it since I posted it.
|
|
|
|
|
Well it’s been almost a week since the Microsoft VS2005 launch party. This is the first time I have ever attended such an event. While most of the seminars were not all that real informative I did like going. The new features of VS2005 from what I saw of the presentation where pretty cool.
I am very stoked about getting VS2005 installed on my development machine but first I need to add a DVD-Rom drive to it. With the holidays being here already I don’t have the spare cash just go out and buy one.
I cross my fingers that projects in VS2005 with STL code will cleanly compile. Right now using VS6 to compile any code with STL results in tons of errors and the thought of purchasing the updated libs from Dunkinware seem out of reach.
It would sure be nice to find a few more seminars to attend throughout the year. It’s nice to get out and see what others are doing.
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
This afternoon I was experimenting with Avants (Avant Browser[^]) news feed reader. When I pointed it at Code Projects Blog space and started reading through other CP members blogs. I was amazed at the sheer number of help questions people had posed in their blog space. I have to wonder if some folks really should have a compiler if they can’t figure out the difference between a blog and a programming forum. Now some of the questions where legit, wtf type stuff. Just about all of the questions could have easily been solved with a quick MSDN search or even a Google search.
I truly hope a lot of these folks are young students somewhere attempting to figure out the whole programming thing. Other wise the whole world is just getting bleaker and bleaker.
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
Testing the new sig...
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
Some of the Message board icons I have figured out. There are more icons, as I firgure them out I will update this post.
==
==
==
==
==
==
==
==
{yes indeed I am very bored}
DEBUGGING : Removing the needles from the haystack.
-- modified at 0:51 Sunday 25th December, 2005
|
|
|
|
|
While I have been sitting here idly at work over the last few days I have been hacking together a small VB script to backup my SVN repository. I would rather not install any other dependencies on my windows server. So using the python scripts provided with SVN are out of the question. So far it looks like it just might work, I haven’t tested it. As soon as I have tested it I will post it here. Maybe someone else will find it and help them.
My thought for the script was simple; provide a script that would make a backup of the repository every day and delete any copies older than a designated number of days. It should also keep a log of events. Sounds simple enough, and indeed the script is very simple. I should really add in the capability to monitor how full the destination drive is. After all in my circumstance the backups will be pushed to a zip 250 drive. Let’s just hope it all ends up working…
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Life is back to normal, well that is normal for me. I finally have my computers / servers back up and running. Everything seems to have made it though the move unscaved.
Before I packed everything up I was in the middle of finally adding the 2003 Platform SDK to my copy of VS. Well it wasn’t going very well, I some how got things broken (I know how I did it I just don’t want to admit it). That’s all fixed now, VS still isn’t using the Platform SDK but at least I can compile sources again.
The problem I seemed to be having with the platform SDK is I had a beta copy of VS.NET 2002, yup that’s right VS.NET 2002 beta. Don’t remember where I got it but it was horrible. Never did like the UI, it just felt very clunky. I still like VS6. Anyways the SDK updater was updating VS.NET 2002. I tried manually updating VS6 but that’s when things when awry.
I was just over looking at the prices for VS.NET 2005, the standard version looks very reasonable (well compared to the rest of the versions) priced for what I need. However, after all of the groaning (rightfully so might I add) in the lounge about VS 2005 I'm a little hesitant to go out and buy a copy. I'm still not .NET enabled but that’s something I will need to change here quickly.
The VS.NET 2005 launch is coming to my area next month and I have signed up to attend. From what I have heard they will be giving away a copy of VS. I think I will use that opportunity to experiment with it. Best part of that is it’s supposed to be free.
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Well it took more than a weekend but I have finally moved. I hate moving, I need a full day to set up all of my computer equipment. Sadly it doesn’t look like that’s going to happen anytime soon.
I'm so going through with drawls; I haven’t written any code in a couple of weeks now.
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Sadly I haven’t been able to do any type of development work not in about a week. It’s driving me absolutely batty. I'm moving here in a few days so most of my computers are packed up ready to go to the next apartment.
If this process takes much longer my girlfriend is going to have to admit me to the local computer shop for a few days, so I can recover.
On a related note if you ever feel like your life is in a rut and you need a little change. Move, for about two weeks you will have plenty to do. The only good thing is I get to completely redesign my work space.
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
If you read the tailing end of my last post (about Source Code Repositories) I wondered out loud if Subversion can be set up to replicate it self to another SVN server. Well as it turns out there is a service out there to do just that. Pretty interesting, it’s called SVKServer.
I haven’t had a chance to download it and install it. I just may end up doing so. After of course I back everything up and make sure the back up system works correctly.
Link to the website is.
SVK - Subversion Replication[^]
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
So after a number of years relying on zip files for backing up my source code I have finally made the plunge and started using subversion for source code management. This isn’t the first time I have used a source code repository, a few years ago I experimented with Visual Safe Source. After using for a few weeks I just didn’t like the interface, it just felt clunky. VSS just didn’t work very well for me. I'm sure it works well for some folks but not me.
A very long story short and several experiments later (I first started out attempting to use CVS, which might I add isn’t worth its weight in horse manure). I end up finding and installing Subversion SVN server. Wow, an easy install, fairly strait forward instructions getting info into the server. Subversion combined with TortoiseSVN is brilliant, it works very well. While it requires some pre-reading get up to par on the concepts it just works out of the box.
It’s been a few weeks since I started using it, and I'm at the point where I feel comfortable enough with it that all of my apps and some of the documents I maintain are going to get pushed into it. My only gripe is why didn’t I find Subversion sooner and where is the users group for it. I do have some FNG type questions about it. Guess some of that will come in time and just using it. The next order of business to do is find a good back up scheme and I wonder if there is a way for me to set it up so I can have my source code pushed to a friend’s subversion server?
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
I'm interested in using this kind of tool. Could you please provide a link, if any ?
|
|
|
|
|
Stlan wrote: I'm interested in using this kind of tool. Could you please provide a link, if any
Yea know I thought about including links, but then decided who on earth would read my ramblings. Who would have thought?
Anyway here is the link to the subversion site.
http://subversion.tigris.org/[^]
But before you do anything read through this online book. The information here is absolutely necessary.
Version Control with Subversion[^]
Here is the link to the TortoiseSVN project.
http://tortoisesvn.tigris.org/[^]
If you’re looking for a local repository as in it you only have one computer, TortoiseSVN will suffice for both client and server. Tortoise has a chm file with fairly detailed instruction on its usage (including setting it up as client and server).
If you get stuck I would be happy to try and help.
Good luck, hope this helps.
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
|
No problem...
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
sfdougl wrote: but then decided who on earth would read my ramblings.
Only weird people of course.
|
|
|
|
|
Jeremy Falcon wrote: Only weird people of course
Your proof positive of that statement.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
All right! Wait... um... :->
|
|
|
|