Programming :: Cannot Use Fixed Size Buffers Contained In Unfixed Expressions
Jun 30, 2011
I'm struggling with a C# program to read binary records from a database. The records were created with Borland Delphi. Error: You cannot use fixed size buffers contained in unfixed expressions. Try using the fixed statement.
View 1 Replies
ADVERTISEMENT
Jan 8, 2010
I am trying to test a Gigabit Ethernet Tattile line scan camera. I installed the driver properly set the ip of device using utility given in the driver. when i am trying to open the live view of camera using a utility given (tag_show) it gives me error in /var/log/messages TBP ERROR: No buffers available in free buffers list When i looked into the code of utility it is doing ioctl call where it is failing with errno=12.
View 4 Replies
View Related
Jul 5, 2010
I want to declare an array with fixed size and initialize all the elements to zero. i want all elements of x to be zero and i dont know how to specify the size of array. also i have problem in comparing values in loops. my script is as follows:
i=0
let k=0
declare -a x
for U in ${S[@]}
do
for (( T=1276082023 ; $T -le 1276082139 ; (( T++ )) ))
[Code]...
View 8 Replies
View Related
Apr 22, 2010
im trying to get sed to read through a txt document that contains html and cant get it to copy over my code looks like Code: sed -n '/[width=468 height=60 border=0 /></a></center><hr>]/,/[<br clear=left><hr>]/p' 1.txt > 2.txt This is the code that seemed to have the best chance of working but still all it does is copy the whole txt document over instead of between these 2 expressions
View 3 Replies
View Related
May 31, 2011
i am trying to create an exclude regular expression for my build.xml. The problem is, that i am trying to find some info on which REs are acceptable/valid for ant... Is ant using standard regular expressions? POSIX ones? Since it is a java-based tool, the "Java REs" are probably valid. I am a little bit confused. If somebody can help me out with the different RE standards, i would be most obliged.
View 1 Replies
View Related
Feb 1, 2011
I've been loosely following this:http://norvig.com/lispy.htmlAnd I have a problem: the parsing function throws an array out of bounds exception. I thought that maybe I'm doing it wrong, so I copy and pasted the code from the page, and still the same error
View 2 Replies
View Related
Jun 8, 2010
Using the regex.h functions, how do you:
1) get the matched strings?
2) get the strings that matched sub-expressions?
View 4 Replies
View Related
Mar 17, 2010
Gidday, I'm puzzled as to why this works:
Code:
find /Data/ -type f -iname "*7pm*"
But this doesn't:
Code:
find /Data/ -type f -regex *7[Pp][Mm]*
I've tried MANY variations, but I'm getting no error messages, just no returns, and yet the first find, will find the sorts of files I'm looking for. I realise a win is a win, but I'm of the understanding that the -regex switch allows for some really complex use of regular expressions - but I can't even get a very simple one to work,
View 4 Replies
View Related
Feb 2, 2011
What I am doing is reading the text from a text document and storing all of the text inside of a ArrayList. I then set one of the values of the Arraylist as a string. I want to use regular expressions find out what the first two characters of the String are. if first two characters = "//" then function(); I only care about the first two characters though. If you need any more information, just ask.
View 4 Replies
View Related
Nov 19, 2010
I have this project for my operating systems class and I have put together the basic flow chart to aid me in writing the program. I know how to use pipes as a buffer to hold info. I know how to create a binary semaphore. But what I dont know is this:
How to "use a delay adjustment parameter K in the critical section to adjust the speed of the display process to show that without semaphore protection the displayed contents of the buffer are randomly interleaved."
First off, I am definitely not asking anyone to give me the solution. But I do need some guidance. So I figure there will be an if statement with two options:
1. If true, use semaphore protection to enter/exit critical section
2. If false, no semaphore protection -- this is where the contents of the buffer should be interleaved.
Now does that mean that as each child process enters the non-protected critical section, it should "sleep" for a randomized time? I mean, will this allow my output to be interleaved?
So lets say my command line looks like this:
what happens to the 100? Is it randomized using rand and srand and passed as a parameter to sleep() inside the critcal section?
View 5 Replies
View Related
May 2, 2009
i try to understand this algorithm but i cann't. [URL] I encounter problem understand the algorithm of fixed base windowing exponentiation algorithm ? What is fixed base in the first place ? How this algorithm works ?
View 5 Replies
View Related
Feb 5, 2010
Fedora 12 64bit I need nbd-client which is supposed contained in kbd package.
$ yum list kbd
Code:
Loaded plugins: presto, refresh-packagekit
Installed Packages
kbd.x86_64 1.15-9.fc12 @fedora
kbd already installed.
[Code]...
View 6 Replies
View Related
Feb 5, 2010
Fedora 12 64bit. I need nbd-client which is supposed contained in kbd package.
$ yum list kbd Code: Loaded plugins: presto, refresh-packagekit
Installed Packages
kbd.x86_64 1.15-9.fc12 @fedora
kbd already installed.
But I can't find kbd-client;
[Code]...
View 2 Replies
View Related
Dec 13, 2010
I have 5.8GB of RAM.
I have 6.1GB of swap.
At some point in time my VMs exceeded the 5.8GB limit and overflowed into swap (all dev VMs). I have since shut down the VMs and restarted Firefox (memory hog). Right now I have 0.73GB in RAM and 0.29GB in swap. I want to move all of the data in swap into RAM where it will be faster. So I will end up with 1.02GB in RAM and 0GB in swap. Is there a quick command to move data contained within swap to RAM? I know of the swapon/swapoff command. I was wondering if there was another method which clears swap.
View 6 Replies
View Related
Mar 11, 2010
I need to know what files are contained in kernel headers and where are they?
Are they the same for each kernel or no?
I need slack kernel headers for kernel 2.6.27.27
I just need the headers
View 4 Replies
View Related
Mar 14, 2011
I have a file called test. It has the following contents.Code:there youI want the output to be.Code:replaced youI am trying to use the sed command to replace every occurance of "hey newline there" with "replaced". I tried the following naive apporach.Code:sed 's/heythere/replace/' testThis gives a result containing the same data as the test file.
View 3 Replies
View Related
Jun 19, 2011
On standard Linux setups you have two general paste buffers, the main copy(^C)/paste(^V) one and the select-text/middle-click one. For both of these buffers:
At what level in the environment are these buffers stored/managed; the kernel, the X server, KDE/Gnome, or some other service somewhere? Can they be programmatically accessed somehow using some standard library?
View 1 Replies
View Related
Jan 20, 2011
I want to know the status of udp received buffer ,before receiving nest packet.Are there any API to know the status of received buffers.
View 2 Replies
View Related
Apr 25, 2010
I am installing a new hard drive to replace my old one that contained the /var and /home directories. I don't want to copy the whole directories, especially from home because there is a lot I don't need in it.What I need to do is set the mount points for the two partitions I have made on the new drive to /var and /home, but it will not let me do this with the other drive still running. I can't unmount /var and /home while the computer is running, and I would guess that having two drives with /var and /home on them would not work.
So, how can I set the mount points on the new drive and copy the files I need from the old to the new one? It would seem that would require two /home partitions to be mounted at the same time, but I don't think that is possible. I am sure there is some way, probably many ways knowing Linux so please,
View 9 Replies
View Related
Apr 7, 2011
I have the following problem:
CASE_FOLDER
----------->0_FOLDER
-------------------->ForceX ForceY ForceZ
[code]...
View 1 Replies
View Related
May 20, 2011
Everyone always told me Ubuntu is a perdy Speedy OS. Im thinking otherwise so far, unless Im missing something. Basic problem where i see the lack of speed compaired to when this same machine is running windows 7 comes to web browsing. Mainly ..... vids. i downloaded Flash from the software center and downloaded java with the help of some commands i looked up. I cant watch more than about 8 seconds of video before it buffers. This common?
View 9 Replies
View Related
Feb 8, 2010
I switched from 11.1 to 11.2 last month. I'm now having a smoother experience with openSUSE, with some exceptions.
One is Emacs.
A rather annoying "feature" that has appeared is the following: When editing a LaTeX file, compiling it (C-c C-c, using AucTeX macros) makes the Emacs window become shorter by one line. The same happens if I switch to some other buffer. It does not happen if I switch back to the LaTeX buffer. So, after just a few editing/compiling/checking errors sequences I find the original window half of its initial size...
A similar problem occurs when editing IDLWAVE scripts (it's a proprietary scientific data analysis language widely used in my field, but still has its Emacs macros), but only if I open an interactive IDL-shell to run the script.
So, I imagine it's not a problem related to AucTeX, although it might be related to the macros opening separate buffers/windows (e.g.: error messages) associated with the current buffer. Also, the problem does not go away if I remove my own .emacs customization files. Checking the Emacs bug lists, it seems that there are some bugs related to window resizing, although I have not been able to find exactly the same problem I am having. But, before reporting this one, I'd like to hear from fellow Emacs/openSUSE users. Just in case I'm messing things up somehow.
Currently using: Emacs v 23.1.1
Some more info: Dell Precision M65 portable workstation, NVIDIA Quadro FX1500 using the binary NVIDIA driver). Using OpenSuse 11.2 + KDE 4.3.1
View 7 Replies
View Related
Jan 11, 2010
As per the documentation of sync [URL] , it schedules the writes but does not necessarily complete the write upon return.
Is there any other way to make sure we sync and it returns after it has written all the buffers to disk?
View 1 Replies
View Related
Apr 7, 2009
I'm fairly comfortable with emacs but I can't seem to find how to do this. I deal with a lot of text files and find myself performing a lot of regular expression replacements to correct the formatting of the text -- or to extract certain tidbits of data from large ugly-looking files.
I know how to perform a regular expression replacement in one buffer at a time. But how do you perform a regular expression search and replace across all open buffers? I have found a method to perform a regex search and replace across a directory by marking files but I need to do it in the open buffers.
View 2 Replies
View Related
May 3, 2010
I've been having a bad problem with X freezing up (but not the whole system), and I hate continually performing unclean shutdowns with the power button.Will an Alt+SysRq+o shut down the system in a way that doesn't cause the loss of disk buffers? Obviously, whatever hasn't been saved to the buffer will be lost, but my concern extends to the buffers themselves.ext4 and autofsck make this less of an issue, but I hate the thought of unnecessary silent corruption until the freezing stops.
View 6 Replies
View Related
Jun 18, 2010
I have a Linux server running CentOS with 2GB RAM. I am searching in google and also in this forum but could not find any luck yet. I am searching the way that we can receive notification by system to a specified email when the memory reached a specified value we defined.
Is there any tool or sort of shell script we set via crontab every minute to check that?
View 2 Replies
View Related
Dec 17, 2010
When I try to capture a video with my Conexant BT848 capture card, I get this error:
** ERROR: [lavrec] Error queuing buffers: Device or resource busy
The command I used is lavrec - software-encoding - format = a - input = P - quality = 100 - geometry = 912x576 file.avi
View 1 Replies
View Related
May 1, 2011
I am doing prime number research and I need to know what the max int size is? Does gcc support any other number declarations that would be better than just plain old int (this is in C BTW) that allow for integer handling?
View 4 Replies
View Related
Jul 18, 2011
I am adding a user header(restart.h), which has a bunch of prototypes and a library(restart.c), which includes functions for those protoypes. I know that headers go in /usr/include. However, where do I put the restart.c file? Under /usr/lib? I took a look at /usr/lib and it just doesn't feel like this is the appropriate place. How do I check gcc to see the PATH it checks for headers and libraries?
Also in variable types, what's the different between and int, size and ssize?
View 6 Replies
View Related
Dec 28, 2010
I want to read a file in C, but i dont know the size of the file. Is there any way to find the size of the file in C...?
View 2 Replies
View Related