Skip to main content

Posts

Showing posts from September, 2008

SMS Programming in C# Part 1

It's quite difficult to find resources regarding SMS programming with C#. Well, I have gathered through some other sites on how to program mobile phones (various models including Nokia N96 ). Before I write about C# (I'm using C# express 2008), let's have a look at the basics first. This first part will talk about connecting to your mobile phone and testing its connectivity. Be sure that you have your mobile phone driver installed. Connect your mobile phone To test the connectivity of the phone and whether it responds to our commands, let us try hyperterminal. In XP, Start->All Programs->Accessories->Communications->Hyperterminal. Specify the Name of the connection. Choose the Communications Port (Usually, the mobile phone will from Com1 to Com3. To know which port the mobile phone is assigned to, go to Control Panel->Phone and Modem Options->Modems. It will list down all the modems attached to your PC). Specify the Bits per second, Data bits, Parity, Sto...

Software for Light

Various kinds of businesses exist over the years. Many survived with the use of simple technologies. Like in the Philippines, many have not automated their business processes and some are still reluctant in doing so. We are however, in the age of Technology, where almost everything is and will be depending on IT. The need for automation will arrive sooner or later, otherwise, your business gets left behind. How do we choose the appropriate software for our business? Well it depends on the nature of our business. Let's take Farreys.com for our example. Farreys offers both product and services. They sell chandeliers , home lighting , etc. They offer lighting fixtures like bathroom light fixtures , kitchen light fixtures , and ceiling light fixtures . When selling tangible products, we either need a Point Of Sale software (if it is a direct sale basis) or a Sales Order System software (if we allow order-basis). With regards to rendering services, a Service-Order System can be acquir...

What is Active Directory?

Active Directory is a directory service created by Microsoft (MSFT) that provides three services: * LDAP-like Directory services * Kerberos based authentication * DNS based naming and other network information It is an essential part of the Windows Server Family (including 2000, and 2003). AD is used to store information about Windows-based Networks and Domains. It allows management of users, security, and other resources on a centralized location over the network. It's not easy managing servers if you don't have a background on network administration. It's a good thing that the industry is already flooded with service-providers. Check out ensim.com. It's a good place to start for businesses who want quality implementation of Active Directory , Active Directory Management , Active Directory Tools , Exchange Management and Exchange Tool . How do we install Active Directory on a Windows server? It comes with your Windows Server installation disk. It's relativ...

Using MySQL with C# express

1. Download and install MySQL Connector ODBC at http://dev.mysql.com/downloads/connector/odbc/5.1.html 2. Create a new Windows Application in C# express 3. Add the System.Data.Odbc namespace 4. Add a DataGridView 5. Use the following code to fill the DataGridView OdbcConnection cn = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=myDatabase; User=root;Password=;Option=3;"); cn.Open(); OdbcCommand cmd = new OdbcCommand("Select * from test",cn); OdbcDataAdapter ad = new OdbcDataAdapter(cmd); DataTable dt = new DataTable(); ad.Fill(dt); dataGridView1.DataSource = dt; ******************************************************************************* The code should look like this: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; ...

Philnits. Assume that a survey of 100 students was conducted.

Assume that a survey of 100 students was conducted. The result was that 18 students were learning Spanish, 40 students were learning German, and 42 students were learning French. Of them, six were learning both Spanish and German, fifteen were learning both German and French, and five were learning both French and Spanish. Of those who were learning two or more languages, two were learning three languages. How many students were not learning any language? a) 22 b) 24 c) 26 d) 28 P(AUBUC) = 100 P(A) = 18 P(B) = 40 P(C) = 42 P(AUB) = 6 P(BUC) = 15 P(AUC) = 5 P(A∩B∩C) = 2 _____ P(A∩B∩C) =100 – [P(A)+P(B)+P(C) – P(AUB)- P(BUC) - P(AUC) + P(A∩B∩C)] = 100 – [18+40+42 – 6 – 15 – 5 + 2] = 100 – [100 – 26 + 2] = 100 – [76] = 24

Employee profiling

Got this email from one of my MBA classmates. There is a certain degree of truth to this email, and I know, managers will be able to use this to become more effective leaders: *Aries Employee Profile (march 21 - April 19) * Aries employees make excellent troubleshooters. They'll usually want to be out in the field at a variety of different work sites fixing things. They certainly won't be happy for very long behind a desk in a 9 to 5 schedule. The bored Aries employee who has been forced into a square hole will typically be restless, angry, and careless with details. No amount of money would compensate for being stuck in a routine job. Money in fact isn't why they are working at all. They do want to be paid fairly and need a status position to satisfy their competitive tendencies-- but even more importantly, they'll want challenging new projects They typically like to have a sense of responsibility and need to feel needed. In return, they'll give their all and provi...

Web hosting and Domain Name

What is a Web host? What's the difference between Web hosting and Domain name? Oftentimes we encounter websites that advertise their web hosting services. When we avail of their services, do we have our own website (ex. http://www.mysite.com)? Web host is a business entity that provides web hosting services. Web hosting is providing an online storage for data and information (text, images, videos, etc.). Domain Name is an address in the Internet which takes an alphabetical form (we can also refer to it as the alphabetical form for the IP Address). Companies invest on server computers with large amounts of storage to be able to provide space for those who want to have a website but don't have the resources to "host" it from their location or office. These servers will have their IP Address which takes on the form of ###.###.###.### all of which are numeric (ex. 209.85.175.99) Before we avail of a company's web hosting services, it is good to at least know ...

Firebird Database in ASP.net

Today, I successfully connected to a Firebird Database in ASP.net. I was disappointed though because I did it using controls. I'm still trying to connect through hard code but was unsuccessful. The data just won't show. I know I did something wrong... still trying to find out what. I'll post it here when I'm done. I'm using Microsoft Visual Web Developer 2005 Express Edition. Goal: Connect to a firebird database using the firebird .net engine and using a repeater. Update: Goal successfully done. See Using Firebird with ASP.net