Java - Querying an LDAP Directory

yuibox 3 Comments »

yuibox(All credit to my sensei, Eric Enright)

Yesterday I spent a lot of time figuring out how to go about getting a user’s group membership information out of Active Directory, Java style. Since Active Directory is essentially a glorified LDAP server, you can connect to it through JNDI, treating it like any other database: connect to it, query it, and process your results. The below code will run over all user accounts, printing out their full LDAP DN, their email address, and their logon name.

Read the rest of this entry »

Comunication Between Bluetooths through COMs in C# Part I

yuibox No Comments »

yuiboxI was trying to send information, strings, files and the most important, custom packets between 2 bluetooth. One listening and the other one sending(Master <-> Slave). In order to test this in an easy way, both bluetooh are connected to a Serial Port, in this case, COM1 and COM2. In order to test this in 1 single computer and avoid the hassle, I Connected a Null Modem Adapter or RS-232 Serial Cable. I wired one COM port into another, so both will be connected together, transmitting and receiving in the same line cross linked (TX, similar to RX).

This tutorial will show the first step to start a connection and to get the general idea of how this puppy works :)

In Part I of this tutorial I will explain how to send a simple string and receive it :) easy ne? ^.^ we all love baby steps ;)

Requirements :  - Null Modem Adapter

- VS.NET 2005 (or any other C# compiler)

- Basic Knowledge of C#

- and lots of time and patient :D

Read the rest of this entry »

Connect to Access DB

yuibox No Comments »

Took me a while to actually find the right syntax to connect to an Acces DB in c++. Since every CLR tutorial is in c# and VB, here it goes : Read the rest of this entry »

C++ convert string to float

yuibox No Comments »

You can convert a string to a float with atof(3C):It is simple enough but sometimes, after switching languages so often, the syntax gets mixed up and so the functions :D Here a little example:

Read the rest of this entry »

Design by j david macor.com.Original WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in