Mar 10

I have been working on a class to create 837 files to allow the company to provide electronic billing capabilities, so far the class has working successfully with a few issues here and there.  very soon we will have a a 837 that cover all instances of billing as long it stays along the government standard.

Sphere: Related Content

Mar 09

I just bought a new running shoes and they are great… not better than Nike freestyle IMO but definitely  good for real running.

Mar 08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/*Login Class*/
class  login{
	/*SUMIT FORM*/
	function formlogin($db,$action,$clientlogin,$username,$password){
		//VERITY DATA//
		return $this->parselogin($db,$action,$clientlogin,$username,$password);
	}
 
	/*VERIFY FOR NO MISSIN DATA*/
	function parselogin($db,$action,$clientlogin,$username,$password){
		//VARS//
		$credentials['action'] 			= $action;
		$credentials['clientlogin'] 	= $clientlogin;
		$credentials['username']		= $username;
		$credentials['password']		= $password;
 
		//CHECK FOR LOGIN ACTION//
		if ($credentials['action'] == 'login') {
			//COUNT ERRORS//
			$errorcount = 0;
			//PARSE DATA//
			foreach ($credentials as $key => $value){
    			if (empty($credentials[$key])){
        			$RETURN 	= "<h5><font color='red'>Missing Credentials</font></h5>";
        			$errorcount++;
    			}
    		}
    		//IF ALL DATA WAS FOUND TRY CREDENTIALS//
    		if ($errorcount == 0) {
    			return $this->logincredentials($db,$credentials['clientlogin'],$credentials['username'],$credentials['password']);
    		}
		}elseif ($credentials['action'] == 'logout'){
			//BLOW SESSION OUT//
			@session_start();
			@session_destroy();
			//REDIRECT//
			$RETURN  = "<script language=\"javascript\">";
			$RETURN .= "location.replace(\"index.php?task=login\")";
			$RETURN .=	"</script>";	
		} else {
			$RETURN 	= "<h5>Login Screen</h5>";
		}
		return $RETURN;
	}
	/*AUTHENTICATE LOGIN*/
	function logincredentials($db,$clientlogin,$username,$password){
		//CONNECT TO DB//
		$db->dbconnect();
 
		//SELECT CLIENTS DATABASE//
		$db->dbselect('main');
 
		//QUERY DATA AND VERIFY//
		$loginqry = mysql_query	("	SELECT `main_client`,`username`,`passwd`,`client`,`company`,`name`
									FROM main_credentials AS myCredentials
									JOIN main_client AS myClient ON myCredentials.main_client  = myClient.client
									JOIN main_company AS myCompany ON myClient.main_company = myClient.main_company
									WHERE myCredentials.username = '{$username}' 
									AND	 myCredentials.passwd = md5('{$password}')
									AND  myClient.clientlogin = '{$clientlogin}'	");
 
		$logincount = mysql_num_rows($loginqry);
		if($logincount	==	1){	
			$RETURN = "<h5><font color='blue'>Valid Credentials</font></h5>";
			//START SESSION HANDLER//
			@session_start();	
			@session_register("loginusername");
			@session_register("loginpassword");
 
			//ADD SESSION CLIENT//
			$_SESSION['clientlogin'] 	= $clientlogin;
			$_SESSION['username'] 		= $username;
			$_SESSION['password'] 		= $password;			
 
			//REDIRECT//
			$RETURN  = "<script language=\"javascript\">";
			$RETURN .= "location.replace(\"index.php?task=client\")";
			$RETURN .=	"</script>";		
		}else{	
			//SET FALSE RETURN//
			$RETURN = "<h5><font color='red'>Invalid Credentials</font></h5>";
			//DESTROY SESSION//
			@session_destroy();
		}
		//RETURN//
		return $RETURN;
	}
}
 
?>
Mar 08

not a bas start for this week.

Syscom a  software and hardware (Systems) partner had a presentation at the westin hotel in hallandale,Fl.

At end of the presentation I got to play on a segway; that was LOTS of fun. shame I ripped my pants, but luckily I was not wearing any funny boxers lol.  I also have to add that they were kind enough to buy me a pair of short from the golf store at the hotel.

presentation keys:

among the presentaion I got to see interesting technology

  1. RiveBed WAN Optimizer-
    1. cool technology
    2. a must check out
    3. increases speed across network
    4. I might have to look more into it in a near future project :-)
  2. Compellent SAN -
    1. I deployed their system at work for our core servers
    2. greate product
    3. expensive
    4. not so expensive when needed to increase storage size, compared to competition.
    5. if you don’t have forcasted to grow exponentially - look somewhere else cheaper other wise it will payoff at the long haul.
  3. VizioCore -
    1. not very innovating.
    2. technology can be bought form other vendors -  veeam backup?
    3. only highlight was vfoglight to monitor vmware. $699 per socket seem a bit steep.

As I said not bad for Monday… I’m out I gotta go run.

Sphere: Related Content

Mar 07

it has been a while since last time I wrote anything on this Blog.

I really just don’t find the motivation to do it.

well Sergio’s Blogging pardoux.

later going to play racquetball. let see it I get better a this shit!

Sphere: Related Content

Sep 15
 
#LOAD LIBS
from ftplib import FTP
import sys
import oss
ftp_ip       = ‘xx.xx.xxx.xx’
sftp_user    = ‘UserName’
sftp_pass     = ‘Password’

#Windows Path
clientl_sftp_path   = “C:\Users\LocalPATH\”

# Linux in Server
r_sftp_path   = “/mnt/Remote/Path/”

#CONNECT TO MEDIOS RESTRICTED FTP
try:ftp = FTP(ftp_ip)
ftp.login(ftp_user,ftp_pass)
#LIST FILES OT PUSH OR DIE TRYING :p
for root, dirs, files in os.walk(l_ftp_path):
for name in files:
#SET VAR
f = open(os.path.join(root,name),”rb”)
#DO UPLOAD
ftp.storbinary(’STOR ‘+name, f)
f.close()
#REMOVE FILE FROM LOCAL#
print “Removing: “+ os.path.join(root,name)#
# ERASE LOCAL FILES #
os.remove(os.path.join(root,name))
ftp.quit()
except ftp.Error:
print “Error Connecting”
sys.exit(1)

Sphere: Related Content

Feb 25
Sphere: Related Content

Jan 09


Watch CBS Videos Online

Sphere: Related Content

Jan 07

An audio message reportedly from al Qaeda’s deputy chief vows revenge for Israel’s air and ground assault on Gaza and calls the Jewish state’s actions against Hamas militants “a gift” from U.S. President-elect Barack Obama.

read more | digg story

Sphere: Related Content

Jan 07

An 18-year-old hacker with a history of celebrity pranks has admitted to Monday’s hijacking of multiple high-profile Twitter accounts, including President-Elect Barack Obama’s, and the official feed for Fox News.

read more | digg story

Sphere: Related Content