Linux is a popular, open source operating system kernel. Linus Torvalds started development of the kernel in 1991.

learn more… | top users | synonyms

7
votes
2answers
5k views

How are the size of the stack and heap limited by the OS?

Note: if you need to consider a specific OS to be able to answer, please consider Linux. Whenever I run a program, it will be given a virtual memory space to run in, with an area for its stack and ...
1
vote
1answer
543 views

Reading CSV files located on a Linux server and updating the tables in a SQL Server database

I was wondering how we could ingest CSV files located on a Red Hat Linux server into SQL Server database tables. I know we can write a stored procedure/bulk insert to read the files that are located ...
0
votes
1answer
120 views

which is better of these two architectures and why

PhpServer will handle gSoap requests and http requests from clients. PushServer will push notifications to clients and act a file server. There are many server machines. Every PhpServer will ...
1
vote
2answers
252 views

is there a programming language designed to express data combinations? [closed]

Very often, when using the command line or just programming, you want to express some kind of combination that you end up using a for - which is often verbose. for (int i = 0; i<10; ++i) ...
0
votes
1answer
411 views

Comparing performance of different C++ self-made tree data structures

I have two tree data-structures that I made in C++ , and they give a response for range queries/point queries in that program. I am using Ubuntu. I need help in understanding the way to compare the ...
0
votes
1answer
1k views

Creating java package on ubuntu? [closed]

I am new to java. Here I am trying to create java package. And try to compile it from another directory . But there is an error like bash: /home/gaurav/Desktop/package2/B.java: Permission denied Here ...
2
votes
2answers
138 views

Purpose oriented user accounts on a single desktop?

Starting point: I currently do development for Dynamics Ax, Android and an occasional dabble with Wordpress and Python. Soon, I'll start a project involving setting up WP on Google Apps Engine. ...
3
votes
2answers
408 views

Can I fork Linux source code, change it around to suit my desires, and claim it as my own kernel without doing any of the originating work?

Is it acceptable form to take Linux kernel source from any version, change it, claim it is mine, and then distribute it for monetary gain? In such a case open-source software is entitled to a sort of ...
-1
votes
1answer
466 views

How to reconstruct this application using design pattern

I am engaging in redesigning a linux c++ server application. The application acts as file relayer in the form of receiving file packets (incuding control packets and data packets) from client A, ...
1
vote
2answers
186 views

How can I improve my productivity in Linux? [closed]

I have been mostly using Windows but I know my way around a Linux system but I am not as productive as in Windows. I am looking for some "survival" guidelines on what should I focus to be able to ...
2
votes
1answer
383 views

Difference between mutex in windows and linux

Is that correct that a mutex object in Linux cannot be used for cross process synchronization as opposed to its Windows counterpart? If that is true - what was the idea to limit mutex synchronisation ...
4
votes
2answers
4k views

Developing Python on Windows and deploying to Linux

I have a client who would prefer to host their application on Linux. However, my coworkers and I have very little experience with Linux. This is a short project with a low budget, so making choices ...
-1
votes
1answer
381 views

Mono patent safety [duplicate]

Could you please share you thoughts about Mono patent safety? Is it risky to use Mono in production for commercial projects? In case of WEB application, for example the following technology stack: ...
6
votes
1answer
514 views

Does change the license under which Linux is released need the permission of all the copyright holders?

As far as I know Linus holds the copyright to Linux. While looking around in the kernel sources, I see that almost every file has it's own copyright holders. For example the file module.c in the ...
2
votes
2answers
714 views

How to port cli c++ program with GNU libraries from windows to Linux

I need to implement some graph partitioning algorithms for my thesis. I have mostly Windows experience. I would like to know if it is hard to migrate c++ console program to Linux. I want to program it ...
2
votes
2answers
280 views

Hardware running gpl code

Let's say I am selling hardware that uses the linux kernel. Do I have to state somewhere that it is running linux(or other gpl code)? The reason I am asking this is because I bought a television, ...
3
votes
2answers
1k views

So I'm a developing a workflow with vagrant+git…does this make sense?

Relevant Background Details We've got two types of VMs (Utility Boxes & Web Servers) that developers need. We are going to be using git for version control. We have developers who have ...
3
votes
1answer
1k views

Protocol for closing a socket connection

I'm rolling my own application protocol on top of TCP. I'm using Linux and C. I'm wondering whether there is an advisable sequence to closing a socket connection. The client will always initiate ...
4
votes
3answers
413 views

How to implement better security in Linux?

I'm just investigating the security and control of the Linux platform in comparison to Android. In Android there seems to be a huge development around security - Applications are required to ask for ...
2
votes
1answer
270 views

Application Architecture

first of all I am new here and I hope that this is the right place for my question. I have a question about the recommended architecture of a project. IDEA: Automate some calculations concerning to ...
1
vote
1answer
406 views

Handling timeout in network application

How can I handle timeouts in a network application. I'm implementing a provisioning system on a Linux server, the code is huge so I'm going to put the algorithm, it works as like this Read ...
4
votes
2answers
517 views

Is bash “finished”? [closed]

Should bash be expected to change in ways that break non-trivial amounts of existing scripts at some point in the (near/<5y) future? How much change has it gone trough in the last ten years ...
5
votes
4answers
800 views

Is it possible to create a 2d game for both linux and windows with next to no changes?

I'm starting a project with friends which would preferably reach both audiences of windows and linux. The only problem is that none of us have any experience of linux porting or linux coding any way. ...
1
vote
2answers
2k views

Where to find the source code for the Linux command line functions [closed]

I would like to study the source code of the standard command line functions in Linux such as ls, echo, cat, etc. But I have been unable to find the source code (a Google search was useless). Does ...
6
votes
3answers
3k views

Lowercase in Linux file names

As I find that UpperCase are really readable for first letter word separation in long complex names, I tend to give some of my Linux files names with some UpperCase. Mostly executables, some ...
104
votes
10answers
28k views

Is Ken Thompson's compiler hack still a threat?

Ken Thompson Hack (1984) Ken Thompson outlined a method for corrupting a compiler binary (and other compiled software, like a login script on a *nix system) in 1984. I was curious to know if modern ...
1
vote
1answer
79 views

Need some input on storing stdin, stdout, stderr information for debugging

I am working with a legacy system that is not too bad, but I thought of making some improvements to it, and I wanted to solicit your feedback to help me make good decisions. The platform is Linix ...
5
votes
5answers
1k views

Is it necessary to learn Makefiles when you have an IDE? [closed]

I have recently began studying Makefiles in Linux. I have ample experience developing applications with advanced IDEs, such as Visual Studio. My first impression and query after reading a few ...
4
votes
2answers
8k views

Low Latency Unix/Linux

Most low latency/high frequency programming jobs (based on job specs) appear to be implemented on unix platforms. In a lot of the specs they make particular request for people with "low latency linux" ...
3
votes
1answer
1k views

C++ on Windows vs Linux - common issues? [closed]

So far all my development in C++ has been targeted to Windows, however I have always had it in the back of my mind that I will someday be targeting Linux. I am aware therefore of the need to select ...
15
votes
6answers
5k views

Git-friendly spreadsheet format? [closed]

We're trying to move our project documentation process from Google Documents to a set of self-hosted Git repositories. Text documents are Git-friendly enough, since we usually do not need any fancy ...
4
votes
2answers
342 views

What is the lifecycle for loading a Linux Desktop Environment?

I'm looking into delving into a bit of custom OS work (and yes I understand that doing any development at the DE level or lower on an OS is extremely complex and not a light thing to undertake, ...
4
votes
1answer
244 views

unseen/unknown function definition in linux source

Can any one please explain this piece of code I found in the linux kernel source. I see a lots of code like this in linux and minix kernel but dont seem to find what it does (even if C compilers ...
0
votes
3answers
451 views

Which language is more suitable heavy file tasks?

I need to write a script (based on basic functions) to process /image/audio/video files. The process is mainly filesystem tasks and converts. The database of files has been stored by mysql. The script ...
3
votes
1answer
155 views

Is this possible to re-duplicate the hardware signal on Linux?

Since that every things is a file on the UNIX system. If I have a hardware, for example, a mouse, move from left corner to right corner, it should produce some kinds of file to communicate with the ...
7
votes
9answers
1k views

What is the way to understand someone else's giant uncommented spaghetti code? [duplicate]

Possible Duplicate: I’ve inherited 200K lines of spaghetti code — what now? I have been recently handled a giant multithreaded program with no comments and have been asked to understand ...
0
votes
1answer
170 views

How to develop a menu for Linux apps [closed]

I want to create a python panel for Linux like pypanel or tint2 just for fun and to do practice with python development. Now the problem is: I want to create an auto-generated menu, but I don't know ...
5
votes
1answer
385 views

How is the Linux repository administrated?

I am amazed by the Linux project and I would like to learn how they administrate the code, given the huge number of developers. I found the Linux repository on GitHub, but I do not understand how it ...
2
votes
1answer
368 views

Can Win32 message loops survive being ported to native linux?

I would like to port a large Win32 DLL to native linux in C++. I don't think I can use Wine for a DLL like mine, because users of the DLL would then also have to be in Wine, and then they would all ...
2
votes
1answer
211 views

Setting source IP with posix sockets

Is it possible for an application to request a socket (tcp) and have it set the source address without using raw sockets? (the addresses would be bound to the interfaces. [no spoofing]). This would be ...
1
vote
3answers
4k views

Difference between Windows and Linux development environments? [closed]

I have an interview coming up soon for a Business Analyst position and the recruiter mentioned some feedback from a prior candidate that was interviewed who said the interviewers asked him what the ...
4
votes
3answers
580 views

What are the options for setting up a UNIX environment to learn C using Kernighan and Richie's The C Programming Language?

I'm a novice programmer and have been experimenting with Javascript, jQuery and PHP but felt I wasn't getting a real depth of understanding of what I was doing. So, after reading Joel Spolsky's ...
2
votes
6answers
2k views

Is it possible to keep only one Database for both web and desktop applications?

I'm experiencing a trouble with my business model, let me explain better. I'm developing a software for 1 year and few months, it's for the food industry, more exactly a software to: Delivery, Take ...
6
votes
5answers
7k views

Is there a way to publish IOS app from windows/Linux?

I have been using Linux (especially, Ubuntu) and Windows 7 for a long time. I want to publish iOS apps, but I don't have a Mac or an iPhone. I don't have anyone near me who will lend me a Mac, and I ...
-1
votes
1answer
1k views

Belkin device runs Linux, how can I create my own custom firmware for it? [closed]

The Belkin N300 F9K1002 firmware is located here. It does not appear to be encrypted. How can I upload my own custom Linux firmware to this device. How would I go about hacking it?
7
votes
3answers
4k views

What is the relationship between OpenGL, GLX, DRI, and Mesa3D?

I am starting out doing some low-level 3D programming in Linux. I have a lot of experience using the higher level graphics API OpenInventor. I know it is not strictly necessary to be aware of how ...
2
votes
2answers
827 views

Shared FIFO file descriptor

is ok to open fifo with one FD and share it with multiple threads? or is it better to have multiple fds opened for the same fifo and share these fds with the threads? BTW, I'll be doing write and ...
2
votes
2answers
692 views

Issues with time slicing

I was trying to see the effect of time slicing, and how it can consume significant amount of time. Actually, I was trying to divide a certain task into a number of threads and see the effect. I ...
5
votes
2answers
653 views

Linux OpenGL programming, should I use GLX or any other?

I'm new to OpenGL and found that there are a lot of libraries to do that in C, and I also found that glx is most friendly with Linux X Server, I just want to do basic stuff, and I cannot find any ...
2
votes
2answers
1k views

What are the advantages of programming to under an OS as opposed to bare metal executive?

Assume you are presented with an embedded system application to program, in C, on a multi-core environment (think a Cavium or Tilera) and need to choose between two environments: Code the application ...