Parker's DevEd Blog

Musings on all software development technologies, and education involving computer science and fraud investigation

August 2007 - Posts

Exchange 2007 - OWA Direct File Access

A new feature in Exchange 2007 and OWA (Outlook Web Access) is direct file access to a SharePoint or Windows File Share. Enabling this feature is a snap, well always on the second try.

On the server-side:

  1. Fire up the Exchange Management Console...
  2. Go to Server Configuration -> Client Access, select the owa (Default Web Site), and pull up it's Properties window
  3. Most of the features are enabled out of the box, but if you would like to play, you can setup some pretty neat features on the Public and Private Computer File Access tab pages correspondingly.
  4. The only thing we NEED to configure is on the Remote File Servers tab.
  5. You need to add the File server(s) to the Allow list and their corresponding FQDNs to the treat as internal list, you can also set how default server's are treated, allowed or blocked.
    Server Side Configuration

On the client-side:

  1. Browse to your OWA (http://[servername].[domainname].com/owa/) and login...
  2. Select the Documents tab in the lower left corner
  3. Click on Open Location, and input a server name click ok
    Client Side Configuration
  4. You can now browse through any of the server's file shares and so on...you can then add a folder to your favorites list so it always pops up when you login to OWA, for convenience.
    Client Side Browsing
CJ 330 : Criminal Law & Procedure - Introduction
U.S. Constitution
  - Read it, it’s short
  - Supreme law of the land
  - Source of our freedoms and rights
  - Not a lot of detail
  - Leaves much to judicial interpretation
Early History of “Law”
  - Origin in English Common Law
    o Precedent foundation
  - Carried to colonies/states
“Crime”
  - Violation of society’s specific code of conduct, as defined by legislative body.
  - Government Unit v. Individual (Criminal Crimes)
  - Contrast with Civil Action (Civil Crimes)
    o Individual v. Individual
    o Tort
    o Breach & Contract
  - Civil Crimes (1 of 2 Things)
    o Caused harm/damage (Tort)
    o Breach of contract
  - O.J Simpson (Criminal-Innocent, Civil-Guilty)
  - Statute specifics the elements of the crime
  - All elements must be proved beyond a reasonable doubt
  - Combination of prohibited act with requisite intent
  - Intent v. Motive – Mental state
  - Intent = Purpose – “Do you intend to harm?”
  - Motive = Why?
  - Government always prove intent hardly ever motive
    o Will try to prove motive (convince jury completely)
  - “Male in se”
    o Universally recognized as morally wrong
       Ex) murder, assault, arson, rape, burglary
  - “Mala prohibita”
    o Wrong simply because statute prohibits them
       Ex)Traffic offenses, practicing law w/o a license
Rationales for Criminal Punishment
  - Retribution(punishment) = “getting even”
  - Deterrance
    o Defendant
    o Others
  - Incapacitation – “to cage up”, Prison or Death
    o Protect society
  - Rehabilitation – make a better person
  - Restitution – Pay back victim
Forms of Criminal Punishment
  - Death
  - Incarnation = “Take off Street”
  - Fine
  - Probation – “Second chance”
  - Restitution
  - Supervised Release/Parole – Comes after being locked up
  - Loss of civil rights
  - Community Service
Levels of Offense
  - Felony – Imprisonment > 1 year (doesn’t have to be fulfilled)
  - Misdemeanor – 1 year or less
  - Classifications:
    o Each jurisdiction defines its own crimes and terms
    o 1st Degree – Class A
Sources of Law
  - U.S. Constitution
  - State Constitutions
  - U.S. Statutes
  - State Statutes
  - Federal Court Decisions
  - State Court Decisions
Statutes
  - Bills passed by Congress or State Legislature
  - No action can be considered criminal unless prohibited by a statute in effect at the time the conduct was committed.
Constitutions v. Statutes
  - Governments control conduct of individuals through enactment and enforcement of criminal statutes.
  - Constitutions place limits on the power of the governments to control the citizens.
Court Decisions (Case law)
  - Written and published decisions by courts which interpret existing constitutional and statutory provisions.
  - “Stare Decisis”
    o Written opinions are generally binding precedents which must be followed by inferior courts.
Provisions of U.S. Constitution Relating to Criminal Law
  - Article 1, Section 9
    o (2) Writ of Habeas Corpus
    o (3) No Bill of attainder or ex post facto law
Bill of Rights
  - 1st Amendment
    o Freedom of religion, speech, press, assembly
  - 2nd Amendment
    o Right to keep and bear arms
  - 4th Amendment
    o Freedom from unreasonable search & seizure.
    o Warrants require probable cause
  - 5th Amendment
    o Requirement of grand jury indictment
    o Freedom from double jeopardy
    o Right against self-incrimination
    o Right to due process of law
  - 6th Amendment
    o Right to speedy and public trial
    o Right to impartial jury and trial in proper venue
    o Right to be informed of charges
    o Right to confront witnesses
    o Right to subpoena witnesses
    o Right to counsel
  - 8th Amendment
    o Prohibition of excessive bail
    o Prohibition of excessive fines
    o Prohibition of cruel and unusual punishment
Criminal Procedure
  - Constitution missing something
    o Does not specify procedures or remedies
  - Statutes, Court Rules, and Case law, all combine to create a system in which the criminal laws are enforced within the bounds of the Constitution.
State Constitutions
  - Each state has its own
  - Apply to actions of state only
  - Can be more restrictive than U.S. Constitution
  - Cannot dilute the protections of the U.S. Constitution
Law of the Jurisdiction
  - Federal Court
    o U.S. Constitution, statutes, court decisions and rules apply
    o Federal law applies in all 50 states
  - State Courts
    o U.S. Constitution, federal court decisions
    o State Constitution, statutes, state court decisions and rules apply
    o State law only applies within that state
Who’s Who in Justice System
  - Law Enforcement Officers/Investigators
    o Federal, State, Local
  - Prosecutor
  - Defense Attorney
  - Judge
    o Magistrate
    o Trial
    o Appellate
  - Pretrial Services/Probation Officer
  - Corrections Officers
Chronology of a Federal Criminal Case
  1. Congress passes and president signs a bill, creating a statute that defines the crime.
  2. Defendant commits the crime after the effective date of the statute.
  3. Law enforcement officers investigate, gathering evidence that a crime was committed, and that the defendant committed it.
  4. Investigators present evidence to the U.S. Attorney, who decides whether to prosecute.
  5. Case is presented to grand jury, meeting in secret, who determine whether there is probable cause to believe the crime was committed and that defendant   committed it.
  6. Grand jury finds probable cause and returns an indictment.
  7. Defendant brought before magistrate judge for initial appearance
    o Arrest
    - or
    o Summons
  8. First appearance
    o Informed of charges
    o Informed of rights
    o Right to counsel
    o Release from custody or continued detention pending trial
       Bail
       Personal recognizance
       Other conditions of release
  9. Arraignment
    o Defendant appears before judge and enters a plea
       Not guilty – proceed to trail phase
       Guilty – proceed to sentencing phase
       Not guilty plea can be changed at later date
        • Most cases get resolved this way (90%)
    o Note: Max 10% of all cases actually go to trial.
  10. Discovery
    o Prosecutor provides defense counsel with copies of evidence against defendant
    o Defense must disclose some of its evidence to prosecutor
    o Defense counsel and defendant map out their strategy
  11. Pretrial motions
    o Defense presents legal challenges to the charges,
CSCI 372 : Assembly - Number Systems

Details shall be posted tonight...

Axvius Server Did Not Come Easily

Building the new server was a cakewalk. Setting up the server was not, view all the gory details here.

Posted: Aug 22 2007, 08:50 AM by Parker.Hillius | with no comments
Filed under:
New Axvius.com Server!

This last weekend my cousin and I were finally able to take advantage in our new investment and build our new server, to see the details go here.

Class AutoNumber Id
Have you ever wanted to implement some type of AutoNumber field on a class, similar to a db table with an autonumber field. Well here's how you can accomplish it: 

class Group {
    private static int _autoNumber = 0;
    private int _id;
    private string _name;
    private string _transaction;

    public Group(string name, string transaction) {
        _id = _autoNumber++;
        _name = name;
        _transaction = transaction;
    }

    public int Id { get { return _id; } }
    public string Name { get { return _name; } }
    public string Transaction { get { return _transaction; } }

    public override string ToString() {
        return string.Format("Group(Id={0},Name={1},Transaction={2})", Id, Name, Transaction);
    }
}

Get Current Security Zone
Ran into quite a fiasco today, trying to figure out what Security Zone my app is running in. Here's how it is done:

SecurityZone
zone = Zone.CreateFromUrl(AppDomain.CurrentDomain.BaseDirectory).SecurityZone;
Changing an Office XP, 2003 or 2007 Product Key without reinstalling

Here's the a link to the Microsoft KB article on how to change an Office XP, 2003 or 2007 Product Key without having to reinstall the application, very useful...!

http://support.microsoft.com/kb/895456

When to use HashTable, SortedList and the specialized dictionaries:ListDictionary, HybridDictionary, and OrderedDictionary

The .Net Framework 2.0 includes a couple of standard dictionaries including the Hashtable and SortedList. In a nutshell, you use a Hashtable when you need to store a key/value pair (an element), and you do not need to be able to access the elements by an index. Now SortedList is basically a Hashtable with a few extra features added. You can use a SortedList when you need to keep the list sorted at all times, and if you need to be able to access an element by and index. Note: the Hashtable sorts by the name's Hashcode.

Now this is all fine and dandy, but the .Net Framework also includes specialized dictionaries for use under special conditions where the Hashtable adds extra overhead, or the SortedList decreases performance.

A ListDictionary is best used when your list will contain fewer than ten elements, the Hashtable is best used if you know your collection is going to be large. Now, what if you really do not know how big the collection may be, or it could vary depending on the instance. Sometimes it might be small and sometimes it might be really large. This is where the HybridDictionary is best to use. The HybridDictionary is basically the best of both worlds, it dynamically converts itself between a ListDictionary and a Hashtable depending upon how many elements have been added and deleted. Note: it is still important to not just use the HybridDictionary everywhere. If you know your list is going to be small use the ListDictionary, if you know your list will be very large use the Hashtable. Only if it can be variable do you want to use the HybridDictionary, otherwise it will just add overhead and actually be a performance decrease.

There is also an OrderedDictionary this is best used when you want the functionality of a Hashtable but still need to keep an order on the elements.