Programming :: Are There Any Other Areas Where C Still Prevails?
Sep 22, 2010
I'm relatively young and equally ignorant as to C or C++ (or any other language for that matter). I've started learning C, but come across a view that C is getting old/obsolete, etc. and If someone just starts out they should start with C++.
I know that most of the linux kernel is written in C and so are a lot of linux tools. Are there any other areas where C still prevails?The reason I'm asking is that I'm now not sure which one to learn. I know that you'll answer: depends what you want to do. The problem is that I don't really know what one can do with C, as opposed to C++.
View 14 Replies
ADVERTISEMENT
Dec 30, 2010
alloc_task_struct( ) This function allocates 8 KB task_union memory areas. The function takes memoryareas from the cacheif it is at least half-full or if there isn't a free pair of consecutive page frames available.
View 3 Replies
View Related
May 24, 2010
I upgraded from 9.10 to 10.04 and now the colors are off. I tried different themes which made some of the tabs more readable, but I don't see how to fix it. Things like background colors in Firefox are too light to see. The same for the grid lines in OpenOffice.org Spreadsheets. Form fields are not outlined. If you don't know where they are you have to hunt by dragging the pointer over the area.
Images look OK.
Does this sound like something others have seen?
View 1 Replies
View Related
Jun 15, 2010
I've been using Ubuntu consistently for about three days now. I really, really love the interface and how everything works and all that, but I've been having a couple of weird problems with speed.
Graphics things seem to work really well. When I go into the overview of all my workspaces, it's instant and looks great. The problem is when I open and use some applications.
For example, when I open up the software center, it takes longer than it did the first time to start up. Also, when I drag windows off from being maximized, it takes literally about five seconds for it to show up as being dragged around by my mouse.
When I look at the system monitor, about 20% of my CPU cores are constantly being used. That's 20% each. I have a 3-core CPU, could that be the problem?
Another example: when I went to ..... just now, it would take a second for any volume changes in the video to register.
And I also have smooth scrolling in firefox, but it's very unresponsive now. It's slow as all hell. Even notifications are showing up more slowly.
So, what's the deal? What could I have done wrong?
CPU: AMD Phenom II X3 2.8Ghz
GPU: ATI Radeon HD 4860 1gb
RAM: 4gb
One more thing: I have really bad screen tearing when I try to move windows around, as if there isn't any vsync on. Where can I turn it on or fix this?
I'm still pretty new to Ubuntu and Linux, but I'm an advanced computer user. Since I feel linux is killing my CPU I think I'm going to boot back into Windows 7 for now, but if I can fix this problem I think I want to keep Ubuntu as my main OS after this, having Windows for games, unless I can get Wine to work right with them.
View 9 Replies
View Related
Feb 16, 2011
I know this is Ubuntu forums, but my other laptop has Ubuntu and I know this is a community full of very smart people (got Ubuntu help the other day).Anyway , this laptop's problem is, the screen goes teal i areas that were once white. Now, originally I thought something was broken, but now my theory is it's a loose connection. On the bottom left of the screen there is a thick black cable that leads up behind the screen and connects with that duct tape looking thing. If I simply lift up on the black cable, the screen goes back to normal.
View 1 Replies
View Related
Mar 23, 2011
Suggest some thrust areas of research in Linux .
That what topics can be taken up for research
View 1 Replies
View Related
Nov 3, 2010
What skills or concepts would you include in these three areas of Perl?
Perl Automation Test
Perl Development
Network Scripts / Programming
Could you make it look like a course contents so that I can check out those topics for the above three broad subjects of Perl?
View 1 Replies
View Related
May 17, 2010
Maybe this isn't the right place, BUT: How can I create an OO Writer template with about 20 input Text Areas? I can make one, and then I thought I could use COPY and PASTE to dupe it in the other places, but it didn't work. I hate to spend all that time creating the other 19 identical boxes.
View 3 Replies
View Related
Feb 6, 2009
I installed debian etch, it runs and does connect to the internet fine through a linksys router...the linksys router is connected to my cable modem...now..
I just registered for a domain name (ex. mydomainname.org) with Verio....this is where I am stuck.
I installed apache 2, a web server, file server (all seem to work) I need to know what files I need to configure to have my machine actually BE that domain name.
Ex. my linksys DHCP IP addresses, the linksys gets an IP from the cable modem...my yquestion is ONCE I register a domain name with verio...how do I configure my end so it "knows" I am that respective domain name...I think I need to configure the following, but knot sure how to do it: resolv.conf, hosts, and interface?
View 3 Replies
View Related
May 5, 2011
SANE + HPLIP 3.11.3a-1 + Tomato v1.28.8754 ND USB Std + Hp Deskjet F380 (F300 series) only works with small scan areas. This error is affecting SANE running on my tomato router, this affects all computers that try to use that scanner, regardless of platform, in fact, it affects scans originating from the router itself. I believe that it could also happen on ubuntu if I had the same configuration as the router, it seems to be an error that would happen on any platform with the same SANE/hplip settings and hardware (HP Deskjet F380). The problem is also related to DPIs, but I can't manage to get one full page with 75 DPI, which is the lowest possible. If I get a small area (around 1/4 of the full glass) it will scan at some times.
If I increase the DPI, it won't scan. I will get an Error during device I/O, even if I try to scan directly from scanimage. I would like to have the scanner function of my AiO printer working, at least to scan the full glass in low resolutions (<=150). I can't load previews as well. I thought it could be a memory problem, since it does scan small areas, but it is not, in fact, the memory usage doesn't increase much during the scan, I even created a 128MB swap partition in my flash drive (was afraid of doing so, since it would wear it quickly, will probably remove now), but it didn't change anything, it still doesn't scan with more than 55% of the router's memory (16MB) free and more than 97% of the swap memory free.
Here are my configuration files:
/opt/etc/sane.d/dll.conf
Code:
hpaio
/opt/etc/sane.d/saned.conf
Code:
192.168.0.0/24
/opt/etc/xinetd.d/saned
Code:
service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}
/opt/etc/xinetd.conf
Code:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Sample configuration file for xinetd
defaults
{
only_from = localhost 192.168.0.0/24
instances = 60
log_type = FILE /opt/var/xinetd.log
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /opt/etc/xinetd.d
Everything is configured properly, I got the dbus and cups installed since both are required for hplip to work properly. Here are some other files, that shows what happens:
sane-find-scanner
Code:
# sane-find-scanner will now attempt to detect your scanner. If the result is different from what you expected, first make sure your scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that you have loaded a kernel SCSI driver for your SCSI adapter. Also you need support for SCSI Generic (sg) in your operating system. If using Linux, try "modprobe sg".
found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300 series]) at libusb:001:006
# Your USB scanner was (probably) detected. It may or may not be supported by SANE. Try scanimage -L and read the backend's manpage. Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports can't be detected by this program.
scanimage -L
Code:
device `hpaio:/usb/Deskjet_F300_series?serial=CN6BSGK1M104KH' is a Hewlett-Packard Deskjet_F300_series all-in-one
hp-probe
Code:
root@white:/opt/bin# ./hp-probe -busb
warning: python-dbus not installed.
warning: hp-probe should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 0.0.0)
Printer Discovery Utility ver. 4.1
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details.
Found 1 printer(s) on the 'usb' bus.
Done.
scanimage > test.jpg
Code:
scanimage: sane_start: Error during device I/O
saned -d5
[saned] process_request: waiting for request
saned doesn't report any error, but starts waiting for another request.
View 1 Replies
View Related
Mar 31, 2011
Today while watching a video on my PC I noticed some white sparkles or spots appearing at the dark/blackish areas of the video.
The first thing that came to my mind was that the video may be corrupted so I tried another one. But the same thing happened with it too.
Then I changed the video driver of Smplayer from vdpau to xv but the same thing.
Then I tried playing those videos with vlc but those white things appeared there as well.
Here is an example of the problem. I have circled the areas with green.
I am using
openSUSE 11.4 Gnome 64 Bit
XFX Nvidia 9500 GT
Nvidia Proprietary Driver Ver. :260.19.44
View 4 Replies
View Related
Jul 22, 2011
I just scanned a book recently and as what happens in these situations , the borders get dark I just looking for a simple way (prefer command line) to solve this problem maybe, crop pictures for cutting out the borders and then change the dimension (NOT MEAN STRETCH) to regain original size I am not sure , but any others ways that can turn black border areas to white one is fine with me.
View 1 Replies
View Related
May 19, 2011
I am having some issues with my screen resolution. I am not sure if it is a monitor or graphics card issue. I believe I have the ATI x300 card. I am gunning a dell dimension E510. My monitor is a MAG Innovision. The screen resolution keeps changing. I had this same issue with 11.3. Also, the screen looks fuzzy in certain places, especially white areas and bars at the tops and bottoms of pages. By fuzzy, I mean it will be a color that doesn't belong there and it will kind of look like static, in either a line, or a blob, or just the whole box. I recently had to disable all desktop effects because they would make the screen unusable.
View 1 Replies
View Related
Sep 24, 2010
My ubuntu 10.04 has two monitors connected both being treated as individual desktops.But only one desktop is showing the wifi network icon in the notification area.Is it possible to have more than one wifi icon going at one time?
View 1 Replies
View Related
Aug 27, 2010
I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.
So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?
Why and what is the main difference between them?
View 4 Replies
View Related
Mar 7, 2010
Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
View 1 Replies
View Related
May 30, 2010
I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better
View 1 Replies
View Related
Mar 8, 2011
I have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.
View 3 Replies
View Related
Feb 9, 2011
I want that I click with the mouse on the video, it paused.I notice that there is "BaconVideoWidget" which I guess is the video rendering widget but it don't have signal named "clicked":
Code:
vd = totem_object.get_video_widget()
vd.connect("clicked", vd.hide)
[code]....
View 3 Replies
View Related
May 16, 2011
i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....
View 1 Replies
View Related
Oct 27, 2010
I am learning network programming via a book of Richard Stevens.The sample source codes are given here
http://www.unpbook.com/unpv13e.tar.gz
I downloaded and unzipped the file in /usr/src folder.As per the instructions given in README of downloaded archive I did.
View 5 Replies
View Related
Sep 28, 2010
A simple TCP based chat server could allow users to use any TCP client (telnet, for example) to communicate with each other. For this question you should consider a single process, single thread server that can support exactly 2 clients at once, the server simply forwards whatever is sent from one client to the other (in both directions). Your server must not insist on any specific ordering of messages as soon as something is sent from one client it is immediately forwarded to the other client. As soon as either client terminates the connection the server can exit
View 4 Replies
View Related
Dec 19, 2008
I am unable to find a description of alsa's programing language, this sort of stuff:
[Code]...
I need to know what, for example, 'ttable' means and what is its syntax. This seems to be a state secret.
View 2 Replies
View Related
Feb 18, 2011
We have documents on multiple workstations and want to collate them into a single repository to provide text search and download. So far we have implemented rsync to copy files from each workstation under a directory for each workstation on a server (incidentally providing a backup) and have set up text search using Xapian with Omega; users access it via a web browser. Still to do is to set up a system to copy files from each workstation's area on the server to the repository.
Many files are duplicated. In these cases we want to preserve the names but keep a single copy of the file;hard links can be used for that.For each file to be copied from a workstation's area into the collated area we need to check whether it is a duplicate (file size and, if same, MD5 sum) and if so, create a hard link to the original rather than create a copy.A system to detect and replace duplicates in the collated area has been written using ruby and postgresql but the developer cannot commit to continuing this work. It does mean we have a postgresql database populated with "fingerprints" of files in the collated area.My first priority is to get the system working; in the longer term whatever is developed must be maintainable; I do not yet know which language skills are available locally.
I am fluent in bash and competent with awk. Ruby looks nice but I have started to learn python and do think it prudent to learn both at the same time. Python's postgresql capabilities are not settled but may be fine for the simple usage required.What to do? A bash solution would run very slowly but could be developed quickly. Language knowledge aside, I have found it difficult to install ruby on the server (CentOS 5.5;installed rvm but "gem" still not installed; seems a very complex system with its own package management).
View 7 Replies
View Related
May 11, 2011
i have problem in socket programming, while displaying received message in file,i got a problem... i cant able to write it in the file.... this is the code....
Code:
/* tcpserver.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
[Code]....
now my problem is run time error i can able to create file but i cant able to write file....log.txt contain nothing.... as here i have give sample code... dont say not initialising function and all.... i have initialised , please only see func1() - my problem is only not able to write msg which i got received from the client..
View 2 Replies
View Related
Apr 11, 2011
I need help as I am not proficient with Linux C++ Programming. There are two parts which I need to do in the coding provided below.
1. Produce the program so it can output the word "Hey there!" and wait two minute and print the word "See you later!".
2. Produce the program that will output the text "Cool" every 20 seconds by setting a periodic task.
Quote:
#include <linux/kernel.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
int init_module(void)
{
printk("Hey there!
[Code]...
View 3 Replies
View Related
Jun 28, 2009
I've been working in the real world for a year making some money to go back and finish my masters, and now I'm coming to the end of my contract and am realising how little i remember and how small my scope has become; i basically do shell scripts and perl these days, and its making me uneasy. So instead of bitching about it , I'm going to endevor to complete Project Euler Using randomly generated programming languages for each problem, selected from
And post the fruits of my attempts at my blog (shameless plug) aswell as opening up my svn repository when I'm done. (altho i need to ask in another thread about svn permissions....)To my shame i havent ever touched C#, JavaScript, Ruby or Python, so all in all its going to be very interesting how much i screw up.Anyone have any additional ideas, or languages I'm missing or such? I was considering TCL or Haskell or Erlang at a strech, but i dont know how useful these three would be.
View 14 Replies
View Related
Aug 25, 2010
how to use socket programming in order to implement chatting feature
View 5 Replies
View Related
Jun 30, 2010
I trying to write a UART(interfacing of serial devices) to linux machine but after I execute the following code to receive data I need to enter key (carriage return).... but I don't want to remove carriage return/enter key
[Code]....
View 13 Replies
View Related
Sep 28, 2010
i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.
View 3 Replies
View Related