Category: Linux Programming

Jan 01 2010

Linux Programming Sockets

Linux Programming sockets
Looking for an example of Berkeley Sockets programming in straight NASM assembler under the Linux Os.?


NASM would be ideal, but really, I’m trying to avoid having to make a *whole* lot of educated guesses, so GAS syntax would work as well.

I know there’s a lot of documentation on the internet regarding Berkeley Sockets, but the majority of the material I’ve found assumes I’m writing in C/C++.

Not too sure if this will help, but check the sources for ZSNES, as it has some NASM assembly on it, if I recall correctly. I am not sure though if ZSNES uses the Berkeley Sockets to do communications though.


Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)


Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)


$50.00


This is THE guide to UNIX network programming APIs. Whether you write Web servers, client/server applications, or any other network software, you need to understand networking APIS-especially sockets in greater detail than ever before. You need UNIX Network Programming, Volume 1, Third Edition. In this book, the Authors offer unprecedented, start-to-finish guidance on making the most of sockets, t…

The Linux Programming Interface: A Linux and UNIX System Programming Handbook


The Linux Programming Interface: A Linux and UNIX System Programming Handbook


$62.97


The Linux Programming Interface is the definitive guide to the Linux and UNIX programming interface—the interface employed by nearly every application that runs on a Linux or UNIX system. In this authoritative work, Linux programming expert Michael Kerrisk provides detailed descriptions of the system calls and library functions that you need in order to master the craft of system programming, an…

UNIX Network Programming: Networking APIs: Sockets and XTI; Volume 1


UNIX Network Programming: Networking APIs: Sockets and XTI; Volume 1


$55.98


The classic programming text Unix Network Programming has been updated by author W. Richard Stevens to encompass three new volumes. There have been a few changes in the computing world since 1990 (the year the original was published), and Stevens has taken the opportunity to create a complete set of reference manuals for programmers of all skill levels. The first volume, Networking APIs: Soc…

How to use debugger in linux by using gdb function


Dec 20 2009

Free Linux Programming Tutorial

free Linux Programming tutorial
How to make OS???


Is there a program or a tutorial that will show you how to make your own OS? or make a type of Free Linux Os? Please help!

if u want to make your own os…. dont even think about it unless you have a team to do it… doing it will take years and years.

Free Pascal Tutorial 5 – If Statements – Lazarus


Dec 20 2009

Linux Programming Create Directory

Linux Programming create directory
linux kubuntu can’t edit the menu?


when editing the menu (right click edit) i make my changes click save and I get error could not write /home/myname/.config/menu/applications-kmenuedit.menu

I checked that directory and it is blank no hidden files or nothing there.

When I add a program through add/remove programs it edit’s it fine

I created a new user and the menu works fine? How can I fix it on this user?

Thank you for any help or tries as I am very confused I did research ALOT and found /etc/xdg/menu…. is where that directory is supposed to link to.
running it with sudo did not work either

Your problem may be related to a known bug in Ubuntu/KDE.

Open a console and check the ownership and permissions of the following directories and any subdirectories using the command “ls -l”:
/home/myname/.config
/home/myname/.local

These dirs should be owned by you and should be readable and writable (rwx). The bug causes them to be owned by root, making them uneditable. If this is the case, use “chown -R myname” to fix them.

See the page below for more info.

Introduction to Windows Batch Files (.bat files)


Dec 14 2009

Linux Programming Unleashed Download

Linux Programming unleashed download

Material Abundance In The End Times

The world of the post-Industrial Revolution is one of vast material wealth, where average citizens enjoy a lifestyle that in generations past would have been the envy of kings and queens. Yet, in spite of this great material prosperity, most of the world ignores God, believing Him to be irrelevant in their quest for personal happiness. Unfortunately, this will not change in the near future.

In the coming days, the indulgent opulence of this world will only increase. For the bible reveals that, in the last days, the world will be a place of unprecedented material wealth and abundance.

Ironically, emerging technological developments also augur a world of unrivaled wealth and prosperity. And the catalyst for this great boom will be a technology of tremendous power.

The Coming Era of Molecular Manufacturing

A significant breakthrough is on the near-term horizon for mankind. The development of a revolutionary technology known as molecular manufacturing (MM) promises to usher in a new era of material abundance never experienced in the history of mankind, and it promises to do so in an extremely short timeframe.

Molecular manufacturing is the ability to manufacture products from the bottom up, one molecule at a time, with atomic precision. The central component necessary for the development of molecular manufacturing is a fabricator. A fabricator is a nano-scale device capable of precisely positioning molecules. Once a fabricator has been created, humans can use computer software to direct the fabricator to secure and position compounds at the precise locations where chemical reactions occur. Using this method, a network of fabricators working in tandem (i.e. “a nanofactory”) could construct atomically perfect objects of any size by repeating this process over and over. A simplified way to visualize this concept is to think of a fabricator as an atomic magnet able to attract and repel molecules.

Once achieved, this advancement will result in an almost endless number of relatively cheap products whose flexibility, durability, and power will rival today’s products by several orders of magnitude.

Staggering Wealth Will Be Created

It’s quite difficult to underestimate the implications of such a revolutionary technological breakthrough. The process of molecular manufacturing will eliminate much of the cost built into today’s consumer products, costs such as manual labor, shipping, warehousing, distribution, factory overhead, and raw inputs. In fact, in many cases, common dirt contains most of the molecules necessary for manufacturing the most popular consumer goods. This means that MM will literally make most products “dirt cheap.”

As Mike Treder and Chris Phoenix point out in their paper “Challenges and Pitfalls of Exponential Manufacturing”:

“Exponential general-purpose molecular manufacturing obviously would be worth at least hundreds of billions of dollars, and perhaps hundreds of trillions. It is only a matter of time before the technology arrives, and when it does, the consequences could be staggering.”

Human Creativity Will Be Unleashed

Molecular manufacturing will unleash an explosion of human creativity as information becomes more valuable than most of the world’s physical objects. The need for most of today’s workers will disappear, and with most of their necessities provided in abundance, people will be able to spend their leisure time engaged in creative pursuits.

As Mike Treder and Chris Phoenix further explain in “Challenges and Pitfalls of Exponential Manufacturing,” this creative explosion will markedly increase the productivity, size, and reach of the global economy:

“Given a portable, self-contained, self-building factory system that can make a wide range of products directly from blueprints in essentially unlimited quantities, it should not be difficult to design and rapidly construct new products, whenever and wherever desired. An explosion of creativity similar to the World Wide Web could develop quickly. The good news is that general-purpose exponential manufacturing could create a level of low-cost abundance far beyond the capabilities of any present-day economy.”

This low-cost availability will be enabled by the combined power of desktop manufacturing, computer software, and the Internet. Just as today’s software, music, and book downloads are sold at a fraction of the cost of their retail counterparts, tomorrow’s physical goods will be downloadable as well.

In the same article, Treder and Phoenix further elaborate on the effects of molecular manufacturing:

“If personal nanofactories were ubiquitous, then their products would be readily available. The only limits would be raw materials – which would be completely renewable – and licensing fees for the products. If a product design were created and given away, as Linux is given away, anyone who wanted or needed one could have it. Any product that could alleviate poverty or suffering might be instantly available to everyone. As soon as a need was recognized, designers and programmers would be motivated by the desire to gain reputation through filling the need and by the knowledge that their work could improve the lives of millions of people.”

In What Timeframe Will This Occur?

The Center for Responsible Nanotechnology estimates that it won’t be long before molecular manufacturing is developed. In “Estimating a Timeline for Molecular Manufacturing,” they state:

“Assuming all this theory works – and no one has established a problem with it yet – exponential general-purpose molecular manufacturing appears to be inevitable. It might become a reality by 2010 (assuming the possibility, which we can’t rule out, that a large, well-funded, secret development program has been in operation somewhere for several years), likely will by 2015, and almost certainly will by 2020. When it arrives, it will come quickly. MM can be built into a self-contained, personal factory (PN) that makes cheap products efficiently at molecular scale. The time from the first fabricator to a flood of powerful and complex products may be less than a year.”

Essentially what this means is that sometime between tomorrow and the year 2020, molecular manufacturing will become reality. And when it arrives, the world will be turned upside down.

What Does All This Mean?

What this means is that sometime very soon the world will experience great social tribulation and economic upheaval as the revolutionary changes of molecular manufacturing are thrust upon an unsuspecting global population. However, assuming a small group of people doesn’t monopolize the technology for themselves, the benefits of molecular manufacturing will quickly lead to an unprecedented degree of material abundance throughout the world.

And for those who are patiently awaiting the earthly return of Jesus Christ, the development of molecular manufacturing will bring with it many of the signs associated with the time period just prior to His return. For the bible states that, in the end times, the world will experience great social, political, and economic upheaval. And the bible also tells us that, in the end times, the world will become hypnotized by the creation of never-before-seen physical beauty, wealth, and prosperity.

John’s Amazement

The unparalleled material prosperity of the end times generation is clearly illustrated in Chapters 17 and 18 of the Book of Revelation, where the apostle John is allowed to view the City of Babylon, the world center of commerce in the last days. The following verse summarizes his reaction:

“I stared at her in complete amazement.” Revelation 17:6 (NLT)

Many commentators believe John is left speechless because of the utter debauchery he witnesses in this vision, yet up to this point in time, John has been blessed with many extraordinary visions of the future. And none of them left him speechless and “staring in complete amazement.” Could it be that he was simply mesmerized by the worldly temptations available to those who inhabit this world of endless material abundance? Let’s examine what the bible says.

A Place of Extravagant Luxury

According to the bible, the earth – and particularly the city of Babylon – will be home to extravagant luxury in the last days:

“merchants throughout the world have grown rich as a result of her luxurious living.” Revelation 18:3 (NLT)

In fact, the desires of an overwhelmingly materialistic society will lead to great arrogance and pomposity on the part of the human race:

“She glorified herself and lived in luxury, so match it now with torment and sorrow. She boasted in her heart, ‘I am queen on my throne. I am no helpless widow, and I have no reason to mourn.’” Revelation 18:7 (NLT)

The following passages continue to point out the unparalleled luxury of the City of Babylon in the last days, citing her wealth as the source of worldwide weeping in the aftermath of her destruction:

“And the kings of the world who committed adultery with her and enjoyed her great luxury will mourn for her as they see the smoke rising from her charred remains.” Revelation 18:9 (NLT)

As the bible makes clear, the end times will be a period of great material abundance. From the materialistic viewpoint of the world’s inhabitants, life on earth will resemble heaven. But due to their excesses, arrogance, and rampant sin – from a spiritual standpoint – the world will resemble hell.

The Church in the Last Days

In His message to the seven churches, Jesus issued a grave warning concerning the evils of materialism and arrogance. And although this warning is relevant to every Christian throughout the ages, it is thought by many to be a message specifically tailored to those living in the last days:

“Write this letter to the angel of the church in Laodicea. This is the message from the one who is the Amen – the faithful and true witness, the beginning of God’s new creation: ‘I know all the things you do, that you are neither hot nor cold. I wish that you were one or the other! But since you are like lukewarm water, neither hot nor cold, I will spit you out of my mouth! You say, ‘I am rich. I have everything I want. I don’t need a thing!’ And you don’t realize that you are wretched and miserable and poor and blind and naked. So I advise you to buy gold from me – gold that has been purified by fire. Then you will be rich. Also buy white garments from me so you will not be shamed by your nakedness, and ointment for your eyes so you will be able to see. I correct and discipline everyone I love. So be diligent and turn from your indifference.’” Revelation 3:14-19 (NLT)

The Christian churches of this generation bear a striking resemblance to the one Jesus describes in the passage above. Today’s church is one of passive indifference toward Jesus. Self-reliance, or reliance upon personal development mantras and gurus, has replaced reliance upon God. The prosperity gospel of “ask and ye shall receive” has replaced the salvation gospel of Christ and the cross. In many instances, contentment with one’s career, social, or economic status has replaced the need for a personal relationship with Jesus Christ. In effect, the pagan god of materialism has become the object of our worship, and this is a road that leads to utter ruin.

God’s Work

The people of the end times will be lovers of self – greedy, arrogant, and self-centered. But those who believe in Christ should ignore selfish desires and concentrate of the work of God, an endeavor which will provide everlasting dividends:

“Tell those who are rich in this world not to be proud and not to trust in their money, which will soon be gone. But their trust should be in the living God, who richly gives us all we need for our enjoyment. Tell them to use their money to do good. They should be rich in good works and should give generously to those in need, always being ready to share with others whatever God has given them. By doing this they will be storing up their treasure as a good foundation for the future so that they may take hold of real life.” 1 Timothy 6:17-19 (NLT)

Material abundance should never be used to fulfill our own selfish desires. Instead, it should provide a position of strength from which we can serve others. Jesus used the stories of Lazarus and the Rich Man (Luke 16:19-31) and the Rich Fool (Luke 12:16-21) in order to illustrate the folly of abusing one’s position of material abundance. Whether poor or wealthy in this world, the ultimate goal of each and every person should be a rich and rewarding relationship with Jesus Christ.

Dec 08 2009

Linux Programming Faq

Linux Programming faq
How to unlocked a Lexar Jumpdrive?


I forgot the password of my old Lexar jumpdrive secure. It is a 128 MB and now it is locked, I followed the instructions in Lexar FAQ page and they are useless for my problem, besides They do not answer any email.
I have been trying to format it, to delete the partition and create a new one, but it is not possible (Windows and linux programs).
It is secure by software. This Jumpdrive DOES NOT have any kind of switch.

Plug the drive into your PC and download SIW and run it http://www3.sympatico.ca/gtopala/about_siw.html
It should be able to give you the password:)

GCCUSER #66 Using the GNU Compiler Collection


Dec 04 2009

Linux Programming Online

Linux Programming online
Is installing Linux instead of Windows XP or Vista a viable option.?


What I mean is, can you still run a wide variety of similar programs and games on Linux as you would on Windows.
Such as Norton Internet Security, Audio/Video Codec’s, P2P, E-Mail, Online Internet Games, etc, etc.

Forget about that stupid OS.Is for computer geeks only ,you have to spend hours on linux forums to get help for simple tasks.Not even yahoo messenger is available For Linux!


Hello World! Computer Programming for Kids and Other Beginners


Hello World! Computer Programming for Kids and Other Beginners


$20.15


“Computer programming is a powerful tool for children to ‘learn learning,’ that is, to learn the skills of thinking and problem-solving…Children who engage in programming transfer that kind of learning to other things.”–Nicholas Negroponte, the man behind the One Laptop Per Child project that hopes to put a computer in the hands of every child on earth, January 2008Your computer won’t respond w…

Programming PHP


Programming PHP


$22.35


PHP is far more than a cult language or open-source icon. It’s a remarkably capable language that’s well integrated with lots of technologies–notably mSQL and MySQL database servers–and quite easy to learn. Programming PHP helps you up the PHP learning curve, very nearly guaranteeing that you’ll find in its pages an example that illustrates every fundamental aspect of the language and its most i…

Web Database Applications with PHP & MySQL, 2nd Edition


Web Database Applications with PHP & MySQL, 2nd Edition


$19.50


PHP and MySQL go hand in hand; the former has been carefully adapted, through the efforts of the open-source community, to the latter. For situations that require dynamic content but don’t merit the complexity and development time of Java or .NET enterprise applications, the PHP language and the MySQL database server fit the bill perfectly. That’s the point Hugh Williams and David Lane make in Web…

Google Pranks – Adobe Air for Linux -Freeline Report 4.3.08


Dec 02 2009

Linux Programming In C++

Linux Programming in c++
Please recommend me a book on c programming in linux (fedora 12)…?


Preferably an ebook….

http://www.amazon.com/dp/0672326965/ (C)
http://www.amazon.com/dp/0672326973/ (C++)
http://www.amazon.com/dp/0470147628/ (Linux beginner)
http://www.amazon.com/dp/0471776130/ (Linux advanced)

I hope to have read three out of these four books, cover to cover, before the year ends…

c++ Programming Tutorial 2 (Part 2 of 2)


Nov 29 2009

Linux Programming Rapidshare

Linux Programming rapidshare
do u need books for ur studies r reference?


Oracle 9i Complete Ref

http://rapidshare.de/files/26368246/Oracle9i_The_Complete_Reference.rar

PL/SQL Ref Manual

http://rapidshare.de/files/26368704/PLSQL.rar

REDHAT LINUX7.2 BIBLE

http://rapidshare.de/files/26370272/RedHat_Linux_7.2_Bible.rar

C++ COMPLETE REF

http://rapidshare.de/files/26368933/CPP–complete_reference_3rd_Edition.rar

PYTHON GUIDE

http://rapidshare.de/files/26369839/dive_into_python.rar

PHP5 FULL GUIDE

http://rapidshare.de/files/26369547/PHP5_Programming.rar

JAVA2 COMPLETE REF

http://rapidshare.de/files/26370608/Java_2_-_The_Complete_Reference_5E.rar

MICROSOFT WINDOWS SERVER 2003 DEPLOYMENT KIT

http://rapidshare.de/files/26370846/Microsoft_Windows_Server_2003_Deployment_Kit_.rar

FLASHMX TUT

http://rapidshare.de/files/26371088/flashmx_tutorials.rar

PHOTOSHOP7

http://rapidshare.de/files/26372074/photoshop7_scripting_guide.rar

SUN SOLARIS ADMINS

http://rapidshare.de/files/26371520/AIX_Reference_for_Sun_Solaris_Administrators.rar

thanks

Windows Vista and 7 Activator


Nov 17 2009

Linux Programming Reference

Linux Programming reference
how do i fix this compiler error “undefined symbol main”?


i’m compiling my c++ program in linux and i keep getting this message:

> make
g++ -Wall -c -g project2.cpp
g++ -Wall -c -g image.cpp
g++ -o project2.exe /user/cse232/Projects/P2Graphics/color.o
/user/cse232/Projects/P2Graphics/functions.o image.o
Undefined first referenced
symbol in file
main /soft/sparc/gcc3.4.1/lib/gcc/sparc-sun-solaris2.9/3.4.1/crt1.o
ld: fatal: Symbol referencing errors. No output written to project2.exe
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `project2.exe’

i do have a main() function in project2.cpp. i checked it many times and dont know what could be wrong with it. is it something with my makefile? any help would be GREATLY appreciated.

You said that there’s a main() in project2.cpp, so check in your Makefile whether project2.o is being linked together with image.cpp.

On the line:

g++ -o project2.exe /user/cse232/Projects/P2Graphi…

You didn’t send the entire command being sent to the linker, but I’m guessing that it must have image.o because that’s the module that’s referencing main(). Check if project2.o is also in that line.

The -o project2.exe does not implicitly cause project2.o to be included in the linking.


Intel Fortran Language Reference for Linux - documentation kit ( FTC080LSGD001 )


Intel Fortran Language Reference for Linux – documentation kit ( FTC080LSGD001 )




Learning Python: Powerful Object-Oriented Programming


Learning Python: Powerful Object-Oriented Programming


$34.54


The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation. First off, Learning Python…

Linux in a Nutshell


Linux in a Nutshell


$28.68


Everything you need to know about Linux is in this book. Written by Stephen Figgins, Ellen Siever, Robert Love, and Arnold Robbins — people with years of active participation in the Linux community — Linux in a Nutshell, Sixth Edition, thoroughly covers programming tools, system and network administration tools, the shell, editors, and LILO and GRUB boot loaders. This updated edition offers a t…

Python Pocket Reference: Python in Your Pocket (Pocket Reference (O'Reilly))


Python Pocket Reference: Python in Your Pocket (Pocket Reference (O’Reilly))


$8.51


This is the book to reach for when you’re coding on the fly and need an answer now. It’s an easy-to-use reference to the core language, with descriptions of commonly used modules and toolkits, and a guide to recent changes, new features, and upgraded built-ins — all updated to cover Python 3.X as well as version 2.6. You’ll also quickly find exactly what you need with the handy index. Written by …

Webfocus 7 Keysheet Quick Reference Guide


Webfocus 7 Keysheet Quick Reference Guide


$34.99


WEBFOCUS AND FOCUS KEYSHEET: This book is divided into 13 chapters, The keywords in each chapter are logically related. The General chapter contains all keywords that cross several WEBFOCUS and FOCUS areas. Other chapters include the impact of REPORTS, GRAPHS, MODIFY, USE, FORMS, DIALOGUE MANAGER, SQL, EDA, REPORTCASTER, AND PLATFORMS.
(NO CDs ARE INCLUDED)…

Learn Linux for a Beginner, Debian Edition. Includes Video Training & Two Certification Exams, Training Library, Installation and Printed Quick Reference Card. 5-disk DVD Set, Ed.2010


Learn Linux for a Beginner, Debian Edition. Includes Video Training & Two Certification Exams, Training Library, Installation and Printed Quick Reference Card. 5-disk DVD Set, Ed.2010


$37.95


Do you need to learn Linux fast? A major obstacle for newcomers to Linux is the steep learning curve of command-line workflow. This is designed to be training and certification solution!
This set provides the motivated beginner with everything needed for training! It includes a complete set of efficient “Learn Linux” video courses on two DVDs, corresponding Certification Exams, the “UNIX Academy T…

Seagate Crystal Reports 7.0 Technical Reference Manual


Seagate Crystal Reports 7.0 Technical Reference Manual




GNU C Library Reference


Nov 05 2009

Linux Programming Environments

Linux Programming environments
UNIX / LINUX .. what is it and how do I get it?


I need to use programs that run in a unix/linux environment. So far I tried the VMware to emulate linux. But things are slow and not working that great. How do you get a computer with Unix or linux as the operating system? Do I need an apple computer for this? Please help me understand this all.

The programs I need to use:

http://www.fmrib.ox.ac.uk/fsl/

http://afni.nimh.nih.gov/afni/

You don’t need a Apple computer to run Linux.
You can dual-boot if you like.
Use Wine to install .exe files.

Installation of Ubuntu Linux 7.10 alias Gutsy Gibbon
10 easy steps to success

http://www.futuredesktop.com/

Dual-booting Windows and Linux the easy way (Linux.com videos)

http://www.linux.com/articles/114157

Ubuntu 7.10 (Gutsy Gibbon) Guide

http://ubuntuguide.org/wiki/Ubuntu:Gutsy

Using Wine on Ubuntu

http://www.psychocats.net/ubuntu/wine

Ubuntu Homepage

http://www.ubuntu.com/

Ubuntu Forums

http://ubuntuforums.org/

Installing Software in Ubuntu

http://www.psychocats.net/ubuntu/installingsoftware

How to install ANYTHING in Ubuntu!

http://monkeyblog.org/ubuntu/installing/

Linux App Finder/All Applications

http://linuxappfinder.com/all

Linux Distribution

http://distrowatch.com/

Good luck.


Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)


Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)


$44.19


“This is the definitive reference book for any serious or professional UNIX systems programmer. Rago has updated and extended the original Stevens classic while keeping true to the original.” —Andrew Josey, Director, Certification, The Open Group, and Chair of the POSIX 1003.1 Working Group The same trusted content from the Second Edition, now in paperback! For over a decade, serious C pro…

Unix Programming Environment (Prentice-Hall Software Series)


Unix Programming Environment (Prentice-Hall Software Series)


$11.00


Most of the book is devoted to discussions of individual tools, but throughout run the themes of combining programs and of using programs to build programs–emphasizing how they fit in the environment….

Advanced Programming in the UNIX(R) Environment (Addison-Wesley Professional Computing Series)


Advanced Programming in the UNIX(R) Environment (Addison-Wesley Professional Computing Series)


$14.98


Bestselling UNIX author Rich Stevens offers application and system programmers his professional, experienced-based guidance on using the system call interface with C. Since good examples are the key to a book like this, a simple shell program is developed in the first chapter and then expanded throughout the book to demonstrate the principles….

Computer Science Technology Game Programming