Programming

Shared Memory using thread in C on AIX

I am looking for C program source code. Could you please help me in finding the source code required mentioned below.

program to create multiple threads (one master thread and rest worker threads) and using the threads write into and read from shared memory

Restrictions:

Only one thread should be able to read at any instant of time into shared memory region. more>>

Java Runtime Environment (JRE) - JDK 1.5.0_15 unable to determine DST changes

Hi,

We are having a strange problem with one of a dev-env boxes that runs on following version of Linux and JRE. The problem is JRE is unable to determine the DST changes as per the set rules, but the system time does changes the moment DST comes into effect and reset when DST ends. We tried to upgrade the DST rules using tzupdater but that too didnt work. more>>

I2C device driver to simutaneously support 2 devices

I am trying to modify the I2C linux device driver code by Gregg Koah-Hartman ( http://www.linuxjournal.com/article/7252 )to enable the driver to simultaneously support 2 devices. The second device will be on a different I2C address from the first device. more>>

shell scripts

newbie here. i'm currently taking a linux class and have an assignment and am having problems. the assignment is to create a shell script. the instructions are to log in and create a directory called "scripts" in my home directory. then i am to open the text editor and create a script that displays the date, who is logged on and the current directory. more>>

User Space Device Driver Development

Hi all, does anybody has a good code or document for developing a Device Driver in User Space for a USB device....please send me the same

Regards Ameya

IT Alignment

Hi guys! Yesterday I experienced to talk with Mr. Daniel Primus about IT related solution for my company. He realy knows what he says and he is an expert in his field. I got a very good IT alignment solution for my IT department. If you want a solution too, I will recomend that you guys contact with Mr. Denniel Primus he is a real expert in solving IT related problems. more>>

Developer required: Embedded apps

We are a company with an existing product and Linux embedded software but require help in development of customer spcific apps and possible on site training (small reqirement) UK resident people only please: reply to andy.c@korenix.co.uk.

php script --> MSSQL error. Why? See details below

[Tue Mar 04 14:10:00 2008] [error] [client 132.64.4.16] PHP Warning: odbc_exec() [function.odbc-exec]: SQL error: [unixODBC][FreeTDS][SQL Server]Invalid object name 'DeviceView'., SQL state S0002 in SQLExecDirect in /srv/www/htdocs/hu/Proj1/ttb.php on line 7 more>>

What is the error in php?

In this php program:

<?php // connect to DSN MSSQL with a user and password $connect = odbc_connect("DSNNAME", "miki", "84139") or die ("couldn't connect"); ini_set('odbc.defaultrl','65536'); odbc_exec($connect, "use SwitchCenterDB"); $result = odbc_exec($connect, 'show tables'); while(odbc_fetch_row($result)){ ... } odbc_free_result($result); odbc_close($connect); more>>

What is the error in getting an info from MSSQL? Enclosed herewith: an error message and source of the program

[Fri Feb 22 12:54:15 2008] [error] [client 132.64.4.16] PHP Warning: odbc_exec() [function.odbc-exec]: SQL error: [unixODBC][FreeTDS][SQL Server]Could not find stored procedure 'SHOW'., SQL state 37000 in SQLExecDirect in /srv/www/htdocs/hu/Proj1/test.php on line 9 more>>

configure: error: Cannot find ldap libraries in /usr/lib

Configuring PHP 5.25 with ./configure --with-mysql=/opt --without-sqlite --with-_lib=lib64 --libdir=/usr/lib64 --with-apxs2=/usr/sbin/apxs --with-zlib --with-ldap=/usr --with-gd --with-jpeg-dir=../jpeg-6b --with-png-dir=/opt --with-iconv-dir --enable-mbstring is chugs away until...

checking for ANSI C header files... (cached) yes checking for LDAP support... yes more>>

SOCKET Programming Trouble

Hi all!

I'm doing some simple server/client based socket progs in C. My problem is that the sending routine uses the protocol family PF_PACKET -> with SOCK_DGRAM, IPPROTO_UDP so i made some own cooked frames and send them with sendto(). I' have monitored them with tcpdump, the packet arrives, the ip sum is ok the udp socket too. more>>

After school programming class. What to teach?

I may be teaching some high school & middle school kids programming as part of an after school program. Any advice on a language, especially if there are resources available (ie, less work for me!)

Their experience would be zero, and mine is limited to BASH scripts used to do menial work on my Linux servers.

Thanks! -Shawn

Syndicate content
Webcast
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers

Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.

Learn More

Sponsored by AMD

White Paper
Red Hat White Paper: Using an Open Source Framework to Catch the Bad Guy

Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6

Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.

Learn more about catching the bad guy in this free white paper.

Learn More

Sponsored by DLT Solutions