





// This script will add a Strip Spaces button to the Lexis download page.
//
// ==UserScript==
// @name ReplaceWUnderscore
// @namespace http://techoflaw.blogspot.com
// @description Adds a Strip Spaces button to Lexis
// @include http://w3.lexis.com/research2/delivery/*
// ==/UserScript==
//
var eltAfter, newElement;
eltAfter = document.getElementById('delDwnldName');
if (!eltAfter)
eltAfter=document.getElementsByName('fileName')[0];//for some reason the getdocument is dift that the search
if(eltAfter)
{
//add the script
scriptAfter=document.getElementsByTagName('head')[0];//document.getElementsByName("script")[0];
newScript = document.createElement('script');
newScript.setAttribute("type","text/javascript");
newScript.innerHTML="function stripspaces (){obj=document.getElementById('delDwnldName');if(!obj) obj=document.getElementsByName('fileName')[0];str= obj.value;str=str.replace(/ /g,'_');obj.value=str;};"
scriptAfter.parentNode.insertBefore(newScript, scriptAfter.nextSibling);
//add the button
newElement = document.createElement('input');
newElement.setAttribute("value","Strip Spaces");
newElement.setAttribute("class","browseButton");
newElement.setAttribute("onclick","stripspaces();");
newElement.setAttribute("type","button");
eltAfter.parentNode.insertBefore(newElement, eltAfter.nextSibling);
}
I recently stumbled on a blog by some law students doing something similar to this blog, only Mac centric. The guys at Mac Law Students recommended a web app for creating legal time lines called TimelineIt. This topic relates to one of my earlier posts so I decided to give it a try. The app works fairly well, you can see my time line at top. The only problem that I had is that it wont do events in the minute/second/hour range. The app is better suited for multi day events. TimeLineXpress still has my vote but you may disagree. Its hard to beat free.
Every once in a while you stumble upon a piece of software that, after using it for only a short time, you can't imagine ever living without again. Foldershare is one of those pieces of software for me. I initially downloaded it to be a simple backup method after reading one too many horror stories of "bricked" hard drives, and hearing one too many weird clicks coming from the dark netherregions of my own computer.
Foldershare, at it's simplest, allows you to automatically synchronize specific folders among two or more computers. This overly simple description doesn't begin to touch on ease of mind of always knowing that every change you make to every document is automatically being whisked away and stored safely on another hard drive; far away from the danger of the coffee mug sitting next to your computer just waiting for a chance to tip over and let it's half-caf goodness ooze into your keyboard, and turn your beloved laptop into an awkward paperweight.
OK, so maybe I'm a little bit more paranoid about backing things up than the average bear (I really don't think my coffee mug is out to get me... I drink tea), but my peculiarities are really not the point of this post... I promise. Below you'll see a picture of Foldershare in action... Quietly whisking away every change I make to the Commissioner v. Estate of Bosch file while at school to the safety of my desktop computer at home ("King Ebenezer" is the name of my laptop, named after a song. OFFICE, is predictably, my office computer).
But as the name (FolderSHARE) indicates, file backup is not the main or only purpose. Once this is installed on your home computer you will be able to access any file on your computer, from any computer anywhere in the world (provided that it's turned on). Also, folders can be shared with one or more friends/colleagues.
In spite of my praise for it... Foldershare does leave a bit to be desired. My wishlist includes 1) ability to exclude designated extensions; 2) unlimited libraries (current limit 10); 3) folder hierarchy maintained after delete; 4) automated maintenance of the trash folder (or sending them straight to the recycle bin); and 5) better compatibility when a file is open on both computers at the same time.
Even after I've laid out this wishlist Foldershare is something I would highly recommend to everybody, whether you're on the go alot or not.
I've debated a little about whether to publish this post. Hopefully your practice will be so busy you wont have time to look at code (or can pay someone to do it). On the other hand, it might pay to at least understand some concepts in order to benefit from the power of automation. Bill and I need to set the stage for some simple (trust us) code that will make your life easier (really - trust us). This post is only for the most daring so if you don't like it - just don't read it.
1. Get access the screen to draw on
2. Grab a red pen
3. Draw a circle with the pen
4. Quit
1. get access to the screen
2. DrawRedCircle (at the top right of the screen)
3. DrawRedCircle (at the bottom left)
4. DrawRedCircle (middle)
5. Quit
function average(numbers 50, 60,95,85)
...
SumOfTheNumbers=50+60+95+85
AverageOfTheNumbers=SumOfTheNumbers/4
...
function AverageFourNumbers(FirstNumber, SecondNumber, ThirdNumber, FourthNumber)
{
SumOfTheNumbers=FirstNumberSecondNumber+ThirdNumber+FourthNumber
AverageOfTheNumbers=SumOfTheNumbers/4
}
AverageFourNumbers(50, 60,95,85)
function AverageFourNumbers(FirstNumber, SecondNumber, ThirdNumber, FourthNumber)
{
SumOfTheNumbers=FirstNumberSecondNumber+ThirdNumber+FourthNumber
AverageOfTheNumbers=SumOfTheNumbers/4
return AverageOfTheNumbers
}
MyGPA=AverageFourNumbers(50, 60,95,85)
StoreGPA(MyGPA, MyFile)
Ball
{
Properties=
Color
Size
BounceSpeed
Type
etc.
Methods=
DoBounce
Stop
}
Ball.Color = red
Ball.size =15
Ball.BounceSpeed =2
Ball.DoBounce
For Number=1 to 100
...do some stuff
Next Number
Number=1
Do Until Number=100
Number=Number+1
...do some stuff
Loop
if Number=100 then
DisplayMessage("Number is one hundred")
end if
MyString = "This is an example of a string"
MyNumber = 1
Sub Macro1()
'
' Macro1 Macro
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^p"
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
accesses the Find property. Actually Find is itself an object. The Selection object has a Find object inside. To get even more wild, the Find object has a Replacement object inside of it. ClearFormatting is a method. So whats going on? Well the Find and Replace objects represent the Find what and Replace with fields on the Find and Replace box (at right). Word allows you to find words or phrases with specific formatting, like bold/italic/etc. The ClearFormatting function does the equivalent of clearing that setting out on the Find and Replace box for both the Find what (our function's Find object) and the Replace with (our function's Replacement object).With Selection.Find
.Text = "^p"
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
JD Supra is a free online collection of legal documents contributed by other attorney's firms and other groups with a legal slant to them. As of now there isn't much specifically for South Dakota (surprise surprise), but there is an interesting amicus brief from the Abourezk v. ProBush.com case. It's hard to tell from my quick once-over, but this may be, for now, a better source for federal documents than for the states. There are already several thousand documents uploaded and so if you're stuck on something, keep this source in your pocket for an example. My only criticism for now is no browsing feature, it's search only.
__________
Share This Post!