work related blog

Friday, May 12, 2006

Marketplace: Corporate laptop theft, part 2: "It's a priviledge to have customers"

Thursday, May 11, 2006

Slashdot | MS .net vs Mono, Open Source

Slashdot | MS .net vs Mono, Open Source:


Re:Eclipse and SWT on Monster
(Score:4, Insightful)
by 1000StonedMonkeys (593519) on Wednesday December 25, @07:19PM (#4958463)
Most users' experience with swing can be summed up with the following:

1. Open any swing application
2. Right click the mouse button somewhere a context menu should appear, or click on one of the file menus.
3. Wait 3 seconds
4. Form the incorrect conclusion that Java is slow
5. Go back to using native win32 programs

Sun's been trying to "fix swing" for the last 5 years, and they've had no luck. What makes you think IBM has the magic bullet?

Swing will never be fast. The same abstractions that make it such a joy to program with make it terribly inefficiant. Print out a stack trace in a event handler function in swing and take a look at how deep it is. Every one of those functions had to be called before the event was process, and ever call had to be done through a table lookup. I'll avoid going into the whole native vs. non-native widgets debate, but forgive me if I remain skeptical about the non-native approach sun has been using with swing.

IBM (well, the company that wrote eclipse that IBM bought) did the right thing when they started from scratch to design SWT. Eclipse is amazingly responsive when compared to any swing application I've seen. Try it out yourself, I think you'll be impressed.

Monday, May 08, 2006

NewsForge | One-on-one with Miguel de Icaza

NewsForge | One-on-one with Miguel de Icaza:

Joe: I heard yesterday, in an interview with Debra Anderson, the Novell CIO -- we were discussing the Novell migration -- that people were telling her that they couldn't migrate to Linux because they've got all this dot net stuff. She said she tells them, "Well, Mono is being ported to NetWare, so you can." So Mono is serving as an exit strategy for Windows users to cross over to Linux. And still, people have cursed you for making a "pro Microsoft" tool like Mono.

Miguel's Bell curve
Click to enlarge
'Bell Curve' sketch by Miguel de Icaza
(Miguel picks up my notebook and begins sketching in it.)

Miguel: In every population, you have this behavior, where it doesn't matter what you're plotting, but every time you deal with a population you have this curve, right, the standard distribution.

Joe: The bell curve.

Miguel: Right. So you always have two extremes, and it doesn't matter what you ask them. It may be, for example, the height of a population. Or it may be the preference towards salt or sugar. It doesn't matter, you always have this tiny percentage who respond at each extreme. So if you have a perfect curve, this would be 11 percent, this is 78 percent. So there are people who are very vocal in terms of not liking Mono, because it comes from Microsoft, and anything from Microsoft, they hate. I am not wasting my time with that 11 percent.

Friday, May 05, 2006

Mga Grupo sa Google: microsoft.public.sqlserver.odbc

Mga Grupo sa Google: microsoft.public.sqlserver.odbc:

Zachary,

> Can someone walk me through the steps to set up a linked server that points
> to dbf tables.

Q. Are there any examples of heterogeneous data queries from SQL 7 to other
sources?

A. Here are a variety of examples for several different datasources. Note that
you will have to change filenames, drives, regions etc. as necessary for your
environment :-

1. Selecting from an Excel spreadsheet using OpenRowSet. Here, c:\ramsql7.xls
is a spreadsheet (note we haven't specified the extension). sheet1 is a sheet
within the spreadsheet - note the trailing $.

SELECT * FROM OpenRowSet
('MSDASQL', 'Driver=Microsoft Excel Driver (*.xls);DBQ=c:\ramsql7', 'SELECT *
FROM [sheet1$]')
as a

2. Selecting from an Access linked server database via Jet. The Access
database is at c:\msd\invent97.mdb

print 'add Jet 4.0 Invent'
-- Clear up old entry
if exists(select * from sysservers where srvname = N'INV')
exec sp_dropserver N'INV', N'droplogins'
go
-- create linked server
exec sp_addlinkedserver @server = N'INV', @srvproduct = '', @provider =
N'Microsoft.Jet.OLEDB.4.0', @datasrc = N'c:\msd\invent97.mdb'
go
-- setup default admin login for Access
exec sp_addlinkedsrvlogin @rmtsrvname = N'INV', @useself = N'FALSE',
@locallogin = NULL, @rmtuser = N'admin', @rmtpassword = N''
go
-- Lists all tables in the linked server
exec sp_tables_ex N'INV'
go
-- Now select from a table in the Access db called INVENT
select * from INV...INVENT
go

3. DB/2 accessed via Star SQL Driver with SNA 4.0.

print 'add DB2 LinkedServer'
if exists(select * from sysservers where srvname = N'DB2')
exec sp_dropserver N'DB2', N'droplogins'

exec sp_addlinkedserver @server = 'DB2', @provider = 'MSDASQL', @srvproduct
= 'StarSQL 32',
@location = 'DBT1', @datasrc = 'DB2IBM'
exec sp_addlinkedsrvlogin @rmtsrvname = 'DB2', @locallogin = 'sa', @useself
= 'false',
@rmtuser = 'HDRUSER' ,@rmtpassword = 'SQL7'
go

-- test to see is catalog is accessible
sp_tables_ex N'DB2'

-- create view to see if select works
create view V007MUNI as select * from DB2..T1ADM007.V007MUNI
go
select * from V007MUNI
go

4. DBASE IV

print 'add DBase IV LinkedServer'
if exists(select * from sysservers where srvname = N'DBFs')
exec sp_dropserver N'DBFs', N'droplogins'

EXEC sp_addlinkedserver
'DBFs',
'Jet 4.0',
'Microsoft.Jet.OLEDB.4.0',
'F:\DBFs',
NULL,
'dBase IV'
GO

exec sp_addlinkedsrvlogin
@rmtsrvname = 'DBFs',
@useself = false,
@locallogin = NULL,
@rmtuser = NULL,
@rmtpassword = NULL
go

SELECT * FROM DBFs...test
go

5. Visual FoxPro. Using a FoxPro DBC file to group the DBF files. ODBC DSN
pre-defined called FOX using the Microsoft Visual FoxPro Driver 6.01.8440.01

-- FOX using Visual FoxPro Database file .DBC
print 'add FOXSERVER'
if exists(select * from sysservers where srvname = N'FOXSERVER')
exec sp_dropserver N'FOXSERVER', N'droplogins'

exec sp_addlinkedserver @server=N'FOXSERVER',
@srvproduct ='',
@provider = N'MSDASQL',
@datasrc=N'FOX'

exec sp_addlinkedsrvlogin @rmtsrvname=N'FOXSERVER',
@useself = N'FALSE',
@locallogin = NULL,
@rmtuser = N'',
@rmtpassword =N''

exec sp_tables_ex N'FOXSERVER'

select * from [FOXSERVER].[D:\SQL\FOX\TESTDATA.DBC]..[customer]

6. FoxPro using plain DBF files in a directory. Using an ODBC system DSN
(Called DBF) using the Microsoft Visual FoxPro Driver 6.01.8440.01

-- DBF using plain .DBF files
print 'add DBFSERVER'
if exists(select * from sysservers where srvname = N'DBFSERVER')
exec sp_dropserver N'DBFSERVER', N'droplogins'

exec sp_addlinkedserver @server=N'DBFSERVER',
@srvproduct ='',
@provider = N'MSDASQL',
@datasrc=N'DBF'

exec sp_addlinkedsrvlogin @rmtsrvname=N'DBFSERVER',
@useself = N'FALSE',
@locallogin = NULL,
@rmtuser = N'',
@rmtpassword =N''

exec sp_tables_ex N'DBFSERVER'

select * from [DBFSERVER].[D:\SQL\DBF]..[country]

7. FoxPro using installable Jet 3.51 ISAM drivers.

print 'add FOXDBC using Jet 3.51'
if exists(select * from sysservers where srvname = N'FOXDBC')
exec sp_dropserver N'FOXDBC', N'droplogins'
exec sp_addlinkedserver 'FOXDBC', 'Jet 3.51', 'Microsoft.Jet.OLEDB.3.51',
'c:\sql\fox', NULL, 'FoxPro 3.0'
exec sp_addlinkedsrvlogin @rmtsrvname = N'FOXDBC', @useself = N'FALSE',
@locallogin = NULL, @rmtuser = NULL, @rmtpassword = NULL
exec sp_helplinkedsrvlogin N'FOXDBC'
exec sp_tables_ex N'FOXDBC'

===

v1.04 1999.04.27
Applies to SQL Server versions : 7.0, 2000
FAQ Categories : Application Design and Programming
Related FAQ articles : n/a
Related Microsoft Kb articles : n/a
Other related information : n/a
Authors : Neil Pike
Neil Pike MVP/MCSE. Protech Computing Ltd
(Please reply only to newsgroups)
SQL FAQ (428 entries) see
forumsb.compuserve.com/vlforums/UK/default.asp?SRV=MSDevApps (sqlfaq.zip - L7
- SQL Public)
or www.ntfaq.com/sql.html
or www.sql-server.co.uk

Thursday, May 04, 2006

Slashdot | Mono Poises to Take Over the Linux Desktop

Slashdot | Mono Poises to Take Over the Linux Desktop: "Re:Why should we bother?
(Score:4, Informative)
by JabberWokky (19442) on Friday March 12, @04:37AM (#8541355)
(http://www.timewarp.org/ | Last Journal: Monday September 30, @08:49AM)
The .exe extracts a large .wmv file. Perhaps someone could mirror?

Just use cabextract. It's bundled with most distros. Pretty common linux tool.

--
Evan"

Slashdot | Mono Poises to Take Over the Linux Desktop

Slashdot | Mono Poises to Take Over the Linux Desktop: "Re:C 'Dying', Scripting Languages, Cross Platform
(Score:4, Informative)
by Jellybob (597204) on Friday March 12, @04:58AM (#8541478)
(http://www.jellybob.co.uk/ | Last Journal: Thursday January 29, @08:43AM)
Mono is also write once, run anywhere - the .NET platform is designed to be cross platform (even if Microsoft were hesitant to make use of that).

I have written programs in C# on my desktop, compiled them with mcs (the c# compiler with mono), and then e-mailed it to a friend running Microsoft's .NET runtime on Windows, and it ran without any problems (obviously you have to make sure you don't use the Mono APIs if you're doing this).

To push it to further extremes, that person could then upload the same compiled file to their PDA, and *still* be able to run it, so long as they have the runtime installed.

How much more cross platform do you want?"

Wednesday, February 08, 2006

Bill's House O Insomnia : Spot the VB6 Programmer:

My absolute most hated VB user is the dreaded "corporate analyst" who knows just enough to be really dangerous. They say things to their boss like "sure I can have a CRM application that uses Sql Server up and going in a few weeks" deadline comes and they have their basic connection code up and going and not much more. So they come downstairs to the lab where I work and see which research developer they can try and con into helping them. If that fails shortly afterwards their boss will go speak to our boss about "getting someone to help them out with a small project they are having trouble with". Our boss will have us go take a look and we come back and tell him that not only is it not a small project what they have so far is a VBA app in Excel that populates the wrong part of a spread sheet with the wrong data from Sql Server. Yes, that's right they tried to write it in Excel VBA. Think I'm joking I can e-mail you code straight out of their stupid projects. I save some of the really bad stuff to use as examples of what not to do. Such as If Then Else statements nested 18 deep in a time critical loop, etc.

katie vs. the philippines: Kababata ba kita?:

Noong ikaw ay bata pa, nagawa mo ba ang mga sumusunod?...

*kumakain ka ba ng aratilis?

*nagpipitpit ng gumamela para gawing soapy bubbles na hihipan mo sa binilog na tangkay ng walis tingting?

*pinipilit ka ba matulog ng nanay mo pag hapon at di ka papayagan maglaro pag di ka natulog?

*marunong ka magpatintero, saksak puso, langit-lupa, teleber-teleber, luksong tinik?

*malupit ka pag meron kang atari, family computer or nes?

*alam mo ang silbi ng up, up, down, down, left, right, left, right, a, b, a, b, start?

*may mga damit ka na U.S.E.D., Boy London, Cross Colors, Esprit, Blowing Bubbles at pag nakakakita ka ng Bench na damit eh naalala mo si Richard Gomez?

*addict ka sa rainbow brite, carebears, my little pony, thundercats, bioman, voltes v, mazinger z, daimos, he-man at marami pang cartoons na hindi pa translated sa tagalog?

*nanonood ka ng shaider kasi nabobosohan mo si annie at type na type mo ang puting panty nya?

*marunong ka mag wordstar at nakahawak ka na talaga ng 5.25 na floppy disk?

*inaabangan mo lagi ang batibot at akala mo magkakatuluyan si kuya bodgie at ate sienna... nung high school ka inaabangan mo lagi beverly hills 90210?

*gumagamit ka ng AQUANET para pataasin ang bangs mo?

*meron kang blouse na may padding kung babae ka at meron kang sapatos na mighty kid kung lalake ka?

*nangongolekta ka ng paper stationaries at mahilig ka magpapirma sa slumbook mo para lang malaman mo kung sino ang crush ng type mo?

*kilala mo si manang bola at ang sitsiritsit girls?e si luning-ning at luging-ging?

*alam mo ibig sabihin ng time space warp at di mo makakalimutan ang time space warp chant?

*idol mo si McGyver at nanonood kang Perfect Strangers?

*eto malupet... six digits! lang ba ang phone number nyo dati?

*nakakatawag ka pa sa pay phone ng 3 bente singko lang ang dala?

*cute pa si aiza seguerra sa eat bulaga at alam mo ang song na "eh kasi bata"?

*inabutan mo ba na ang Magnolia Chocolait eh nasa glass bottle pa na ginagawang lalagyan ng tubig ng nanay mo sa ref?

*meron kang pencil case na maraming compartments na pinagyayabang mo sa mga kaklase mo?

*noon mo pa hinahanap kung saan ang Goya Fun Factory?

*alam mo lyrics ng "tinapang bangus" at "alagang-alaga namin si puti"?

*alam mo ang kantang "gloria labandera".. lumusong sha sa tubig ang paa ay nabasa at ang "1, 2, 3, asawa ni marie"?

*sosyal ka pag may play-doh ka at Lego... at nag-iipon ka ng G.I. Joe action figures at iba pa ang mukha ni barbie noon?

*inabutan mo pa yung singkong korteng bulaklak at yung diyes na square?

*lumaki kang bobo dahil ang akala mo nangangagat talaga ang alimango sa kantang tong-tong-tong... di ba naninipit yun?

*alam mo yung kwento ng pari na binigyan ng pera yung batang umakyat ng puno para bumili ng panty... and shempre, alam mo rin ba kung ano binigay nya sa nanay nung umakyat ng puno?

*meron kang kabisadong kanta ni Andrew E na alam mo hanggang ngayon.. aminin?

*laging lampin ang sinasapin sa likod mo pag pinapawisan ka?

*bumibili ka ng tarzan, texas at bazooka bubble gum... tira-tira, at yung kending bilog na sinawsaw sa asukal?

*kinukupit mo pa at nanonood ka ng mga porno tapes ng tatay mo na nasa BETAMAX format pa... at sanay ka tawagin ang porn as BOLD?

*takot ka dumating ang year 2000 dahil sabi nila magugunaw daw ang mundo?

*naaalala mo pa na mas masarap ang mellow yellow kaysa mountain dew?

*75 cents pa ang pamasahe n'un?

If so, then you must be 25-30 years old by now. Hahaha! Love to remember the good old times. *SIGH!*

Tuesday, February 07, 2006

ANN: "Oddly, though, the day's tragedy seemed to reveal something bizarre in the Filipino psyche: Instead of going home, thousands of Wowowee fans who made it to the stadium before the stampede decided to stay put, holding on to their tickets and their seats, still hoping the show would go on."

ABS-CBN Forums -> Wowowee ULTRA Tragedy: "The Ultra stampede doesn't fit into the global pattern. What we have here is something that was described several decades ago by an American anthropologist, George Foster, as 'the image of limited good,' the idea that certain 'good' resources are limited. He was studying a Mexican village and noted that whenever someone experienced good fortune -- sudden wealth, for example -- rumors spread that the person had entered into a pact with the Devil."