Programming :: Store The Data In Program In A Map Of Priority_queues?
Jul 30, 2011
I am trying to store the data in my program in a map of priority_queues an I am having a bit of trouble doing it. basically I am storing activities (ie watching tv, eating dinner, playing ping-pong, etc) and I want these event grouped by the day that they happened on.
my first thought was to use a multimap where the key is the date, and the value is the activity, however I would like to keep the activities in a specific order. I have tried to find the proper syntax for this but have frustratingly come up empty. Even google provided little assistance.
View 9 Replies
ADVERTISEMENT
May 22, 2010
I am looking for a program to help me store, organise and retrieve information. The aim would be to keep notes from literature, concepts and ideas which i come across during my studies. It's always a hassle to retrieve this information when i have to write a paper for instance. So in fact what i need is a sort of wikipedia-like program where information is searchable and where perhaps hyperlinks could lead me from one word/note to another.
View 2 Replies
View Related
Mar 24, 2011
I have a requirment where I have to store some data before the system goes to hibernate.
How the kernel intimates to the application when it goes to hibernate. Is there any event or a signal that kernel posts to all applications?
View 4 Replies
View Related
May 25, 2009
I am writting a program that reads a text file (music.txt) & stores it in a Data Structure. I am a novice learning over the internet so I this is something I have never done. How do I do this?
Quote:
Write a program that reads the data from the music.txt file and store it in a data structure. To implement this data structure you must use an array of songs and each song must be represented by a struct with appropriate fields. So far all I can do is open to file to read it (very simple I know) but so far is it correct?
Code:
#include <iostream>
#include <fstream>
#include <strstream>
[code]....
View 3 Replies
View Related
Feb 15, 2011
I'm working with Radiotap headers right now. I want to get the RSSI data. I came through a problem that I can't figure out right now.The value that I need to get is:
Code:
s8 IEEE80211_RADIOTAP_DBM_ANTSIGNAL
now, when I printf it:
[code]...
View 4 Replies
View Related
Dec 8, 2009
I have two students whose windows laptops are riddled with malware and not working properly. They want me to help them install Linux (which we use in school), but they are concerned about their iTunes.
Having avoided iPods as "defective by design", I know nothing about iTunes whatsoever. However I remember reading about DRM locking and such problems that have me concerned that I won't be able to do it.
Where does iTunes store its stuff?
Can I copy its data store to an external drive, and then into a linux home?
Then will it work on wine, or can another manager (rhythmbox etc) access the itunes data?
Alternatively, if I partition the drive and install linux, can rythmbox/wine/something access itunes data on the win partition?
Supposing they are buying music through iTunes, what will happen to that account?
Finally, one of them has an iphone. Does that work with linux?
Ironic that an apple application is blocking migration away from windows.
View 9 Replies
View Related
Jan 25, 2010
I wanna learn how to store data in text file and be able to modify it and save as well using C++.
Note: im using Turbo C++ 3.0
View 9 Replies
View Related
Jan 31, 2011
i am using linux for the first time. i have been given a project which will fetch data from csd(comma separated form) and ll display on d screen. i want a c program for linux which ll do the above given task. moreover i want the parameter file(such as location of file, file name,etc..) as a different file. so that i can access this program on any computer.
View 3 Replies
View Related
Apr 11, 2009
I have connected a device to my linux system with a serial cable (rs232). The settings are: port /dev/ttyS0, baud rate=38400, data bits=8, stop bits=1, no parity, no hardware or software handshaking. I wrote a linux program that sends 1 byte to the device, but the device doesn't receive it. I know the serial ports are working because when I use the CuteCOM application to send data, the device DOES receive it, so obviously it is a problem with my code..
Code:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
[code].....
View 2 Replies
View Related
Sep 23, 2009
i wanted to capture the stdout and stdin of a child process within a parent so that any output of child is sent to the parent and any input taken from the parent. code is simple enough and i have followed all code guidlines on the internet (some guidlines do differ also) my select call either hangs if i do not give a tmeout and with a timeout it returns 0 descriptors to be written to or read from:
below is the simple code for parent:
int main(void)
{
int outfd[2];
int infd[2];
[code].....
why select hangs without a timeout ... why can it not detect that the pipe is write ready i.e parent can write to it ... if it does not detect tha read pipe as having data...
View 5 Replies
View Related
Dec 13, 2009
I wrote a serial port communication program to access a equipment.
int main(void)
{
int fd = 0;
int nread = 0,i = 0,nwrite = 0, tmpread = 0, m = 0, n = 0 ;
[code]....
View 2 Replies
View Related
Jan 30, 2010
After a prolonged absence, version 4.10, I have started dabbling with Ubuntu again. It was a HDD crashing that sent me down this path. Needless to say, the ability to backup my user data to a second HDD is an important task to me. I'm currently using Back in Time to accomplish this and all is well. However, there is one thing missing. I can't locate my Tomboy Notes data within the file system. I expected to see a "hidden" folder in my /home, but do not. Where this information is stored so I can back it up as well?
View 6 Replies
View Related
Dec 1, 2010
I keep my bank account numbers and passwords in a kwallet file. I would like to buy some external usb flash disk as a backup to keep the file inside. if there is an encrypted way in linux to store the data inthere?
For example: Buy a stick that encrypts the data Encrypt the data by using some filesystem. Does this work on every usb stick?
View 1 Replies
View Related
May 29, 2011
Please tell me spesification if i want buid mail server on ubuntu 10.04 with good features :
1. For MTA ??
2. For Mail Filtering ??
3. For MDA ??
3. For Webmail ??
4. For Mailling List ??
View 3 Replies
View Related
Mar 24, 2010
I want to know my DSL bandwidth usage in the last 15 days.I have no network monitoring software installed.I have the default installation and my distribution is Opensuse 11.2.Is there a way I can get that information from the vanilla system?
View 2 Replies
View Related
Apr 3, 2010
Is it possible to store Windows-based documents and data (e.g, Excel spreadsheets, Access databases) on a Linux server, and easy to do so & to retrieve from a Windows client?
View 3 Replies
View Related
Apr 21, 2010
I am trying to setup my ubuntu machine to automatically log some data I am trying to collect and write the data to a flash drive. I have everything setup so that when the machine boots up it starts that logging process. The problem I am having is that sometimes (not always) ubuntu creates a directory with the same path that I expect my flash drive to mount to i.e., /media/data/ then my flash drive instead mounts to /media/data_/. I need to know the path of the flash drive so I can store my data on it.
View 2 Replies
View Related
Aug 20, 2010
In what files/dirs in the home dir does xfce store the user config data?
Or if you like.
What files do I need to restore from backup in order to restore my xfce desktop with all the different settings I made?
Edit: All user config files is usually stored somewhere in /home/$USER/. And since all the programs, kde, xfce and gnome stores their config there, this question is about what files belong to the xfce desktop.
This is my guess of what files belong to the xfce desktop:
.config/Thunar/
.config/xfce4/
.config/xfce4-session/
.config/user-dirs.dirs
[Code]....
View 1 Replies
View Related
Jan 15, 2010
i have ubuntu 9.04 i want to know if i can do a partition base on what i have right now cause when i installed ubuntu i didnt do the partition to install windows so i want to do it now or in any case how can i reinstall ubuntu again without loosing my data store in my hard drive what is best to be perform in my pc i am very happy with ubuntu and wanna keep with it but sometimes a have some app in windows
View 9 Replies
View Related
May 24, 2011
every-time i try to install, i get this
Error executing command
>>command=C:Windowssysnativecdedit.exe /create/d Ubuntu/application bootsector
>>retval=1
>>stderr=The boot configuration data store could not be opened
The system cannot find the file specified
>>stdout=
View 1 Replies
View Related
Jan 25, 2011
I've got 4 identical 1 TB drives and would like to use them in a software RAID configuration on my home server. I'm running Debian Linux using 'mdadm' utility to manage the software RAID. I don't know how much I've read is fact or dated or even false so I decided I would ask here to get help from people who know more about this than I do. This is essentially just a file server machine to store all my data so being that I've got four identical SATA hard drives, I was thinking about doing RAID level 5. I guess I'll start here and ask if that is the recommended level of RAID. I think RAID level 5 will be fine for my general server usage. My second issue is partitioning the four individual drives to get maximum performance / space from them. Basically just asking here how would you or you recommend I partition the drives? I was thinking about doing three seperate partitions per drive:
/dev/sda1 = 4 GB (swap)/dev/sda2 = 1 GB (/boot)/dev/sda3 = 995 GB (/)Now from that partition schema above, obviously all the types will be 'fd' for RAID and the partition for /boot is going to be bootable. My confusion is that I read Grub doesn't support booting from RAID 5 since Grub can't handle disk assembly. If /dev/sdx2 (sda2, sdb2, sdc2, sdd2) are partitioned for /boot (bootable), how would you guys configure this RAID to match up equally? I don't think I do a RAID level 1 on 4 identical partitions, right?
View 1 Replies
View Related
Apr 13, 2010
i have a loop which produces new value everytime it runs. i want to store the results in an array. how can i do dat??
loop is like:
a=0
declare v
while ((....))
do
v[$a]="$r"
let a=a+1
done
while doing this it is not treating v as array but as variable and it is overriding the value and old value is lost..i am using bash shell version 3.00.15
View 5 Replies
View Related
Jan 28, 2010
Code:
ls Again the command can be stored in a variable and then executed. Like
Code:
var=ls
&var
The above two codes are the same. The problem occurs when we try to pipeline it. Consider the following problem:
Code:
ls | grep *
works fine...but when we try to store it in a variable and run the command there is an error.
Code:
var="ls|grep *"
$var
how to store this kind of commands in a variable?
View 11 Replies
View Related
Mar 4, 2010
i m trying to store h.264 in avi container using ffmpeg....is it possible using ffmpeg.i m using v4l to capture a image and compressed in to h.264, how i can store it in avi container,any programming example,header format for avi container,and what other information required to store in a container.
View 14 Replies
View Related
May 19, 2010
writing a code in C program for debugging error and sendingror messagein routingprotocols. please answer with code
View 2 Replies
View Related
Nov 25, 2008
How to write a shell script the would search for a phone no using at the end text file using sed or awk and store it in a varaible or print it.
The text file is in this form
The first line may take any form but the last line will always be Firstname Lastname:KEN:+254456789
I would like to seach for the Phone and store it in a variable and print it.
The phone no will alway be preceeded by ":+"
View 10 Replies
View Related
Apr 29, 2010
How do I do this? I wish to store the pictures via a "Browse" button on the webpage, and later display them on a particular page on the site.
View 2 Replies
View Related
Jan 20, 2011
I need to find one RUNNING word in latest created logs.
and as soon as i will get RUNNING WORD , i have to execute another Unix Command.
I wrote following script code...
View 3 Replies
View Related
Apr 13, 2009
I am working in DM355 board. CPU is armv5t. I am asked to record the video thats coming from camera using rtsp. I can record the video file in avi format on /opt directory on dm355 target board. Now I have to store this avi file in nas server. My nas server ip is 192.168.1.250. Linux pc,DM355 target board and NAS server on same network. How to write the program to store avi files from DM355 to NAS server.
View 2 Replies
View Related
Oct 30, 2010
I am working on an structure program and i have to represent a 2,4 tree in a class in Java using single int array and make the insert and delete functions .
View 1 Replies
View Related