Programming :: Self Configurable Diagnosis Algorithm / Tcl Script?

Sep 13, 2010

I have an algorithm guys called "Self Configurable Diagnosis Algorithm" but i don't have program for this.help me regarding that program and which type of Tcl script will be better suitable for that.

View 3 Replies


ADVERTISEMENT

Programming :: Implementation Of RSA Algorithm In C / C++

Aug 2, 2010

Can I know the implemention of RSA(Encryption and decryption) algorithm in C / C++.

View 1 Replies View Related

Programming :: MD5 Algorithm Implementation

Apr 27, 2011

I have a copy of the MD5 algorithm and I'm taking a look at the source. It's pretty interesting but there are a few things that I'm curious about and I was wondering if anyone a bit more intuitive than I could help me out.The function declarations in the MD5 files are a bit unfamiliar to me. There is a macro used called PROTO_LIST, which I'm still not sure as to what this thing is doing exactly, but it's littered everywhere throughout the source.The signature here isn't too unfamiliar to me with the exception of the position of the PROTO_LIST macro. So here is a function with an unnamed argument of type MD5_CTX*.To me, this resembles an initializer list found in C++ with constructors but I certainly don't think that is the case here. So my questions about this are (1) how is this legal code in C and (2) what functionality has the PROTO_LIST macro provided for the function?

View 3 Replies View Related

Programming :: Which Is Scheduling Algorithm Which Will Make Thread O?

May 4, 2011

I have a timer thread, and when it expires, it sets a flag. The only problem is, if any higher priority thread comes in between, then the timer is not expired in real time.Thus i want to set a highest priority to my thread. Now, i know 2 algos, which can make my thread in real time are: SCHED_FIFO and SCHED_RR.

So, here are my queries: 1) Which scheduling algo is best suited for this purpose? 2) Is it guaranted to work in real time if i use that algo (you suggest in 1) and set the max_priority by getting the maximum settable priority for that particular algorithm using, int sched_get_priority_max(int policy);

View 2 Replies View Related

Programming :: Algorithm For Binary Frequency Search?

Jul 16, 2010

I've got a bit of an obscure question for you to test your brains a wee bit. I'm trying to implement a search program to find areas of high density in a binary string.

E.g.

Code:

[0001001010
0001110001
0000001000
1001000010
0101100100]

Where density is the number of 1's / number of digits with a maximum number of digits being the current number in a buffer (in this example 50). So for the example the density for the whole buffer is 15/50. But the density of Buffer[14..20]=[1110001]=4/7. So if looking for areas of density = 1/3 it would find the longest sequences of density over 1/3.So in the example. Buffer[4..9]=[100101]=3/6=1/2 which is above 1/3 but it is within the Buffer[4..48]=[100101000011100010000001000100100001001011001]=15/45=1/3

View 5 Replies View Related

Programming :: Template Algorithm For Std::vector And Std::string?

Sep 8, 2010

I have two functions:

Quote:

void func1(std::string &s)
{
s.clear();
}

[code]....

Is there a way to create one template function for both vector and string that would clear them?

View 4 Replies View Related

Programming :: Simulate Dijsktra's Algorithm Using Network Animator Of Ns2?

May 3, 2011

I need to simulate dijsktra's algorithm using network animator of ns2. how to write a tcl script for my code. This tcl script runs the dijsktra code and simulates its running on network animator.

View 1 Replies View Related

Programming :: Algorithm For Finding The Shortest Path Between Geocoordinates?

Jun 27, 2011

AStar works on the basis of straight lines, AFAIK. In my case, we have geocoordinates and I can get the straight line distance between the waypoints. But I am wondering how approximate will the route calculated on this basis be? The actual distance "by road", which actually matters can be different.

Example. Assuming A and B are on the same plane, and will be equidistant from the goal point, if we consider a straight line between A and the goal point and, B and the goal point. The distance "by road" between A and the goal point may be greater or lesser than B. But because the AStar works on the basis of straight lines, it will return both the routes as the shortest. If yes, then which algo should be considered , if we want the results on the basis of actual distance in Km/m?

View 1 Replies View Related

Programming :: Encryption And Decryption Program In Java And Using RSA Algorithm?

Feb 25, 2011

i need a program for Encryption and Decryption using RSA algorithm in JAVA ..

View 9 Replies View Related

Programming :: Fixed Base Windowing Exponentiation Algorithm?

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

Programming :: Algorithm - File System Block Number For Immediate Read

May 20, 2010

algorithm:breada
input: file system block number for immediate read
file system block number for asynchronous read
output:buffer containing data for immediate read {
if(first block not in cache) {
get buffer for first block
if(buffer data not valid)
initiate disk read }
if(second block not in cache) {
get buffer for second block)
if(buffer data valid) //line 1
release buffer else
initiate disk read //line 2 }
if(first block was originally in cache) //line 3 {
read first block
return buffer }
sleep (event first buffer contains valid data)
return buffer }

Here is an algorithm for block read algorithm. I have problem in
line 1: If buffer data is valid why is it releasing the buffer?
line 2: If buffer data valid why is it initiating disk read. It should have read directly from buffer?
line 3: It should be the first condition as if it is there in cache then it should return it without delay?

View 5 Replies View Related

Programming :: C Language Data Structure/ Algorithm Info Requested

Apr 2, 2010

Does anyone know of a C Language Data Structure Tutorial? I have not been able to find anything much to speak of myself.

View 4 Replies View Related

Programming :: Processor Priority Level For Algorithm For Buffer Allocation

Jan 9, 2010

The algorithm for reading and writing disk blocks use the algorithm getblk to allocate buffers from the pool. In the algorithm getblk, if the kernel removes a buffer from the free list, it must raise the processor priority level to block out interrupts before checking the free list. Why ?Where can i find the C implementation of the above algorithm for buffer allocation in the linux source code ?

View 1 Replies View Related

Programming :: Simulate A Serial Protocol In User Space Program To Test Reception Algorithm?

Jul 28, 2010

I want to simulate a serial protocol in user space program to test reception algorithm. The protocol is similar to UART protocol but frame format is different. The duration of 1 bit is 114,46 us. In my main function I'm creating two threads. Tx for simulating transmitting data and Rx for reception data. For measure time I use create_timer() function and signals. Each thread has its own timer and signal handler. Tx timer uses SIGUSR1 and Rx timer uses SIGUSR2. Tx thread sets the global variable and Rx reads it.

The timers are set to sample with 114,46 us period. When they reach this value signal handler should set the flag. Flag is check in thread and some operation are made. When I set the timers period for longer time (100 ms) everything works fine but when I change it to default value (114,46 us) the Rx thread doesn't receive the proper data. I am wondering if the 114,46 timer period is possible to simulate in user space? Whether the time will give me the proper resolution ? Theoretically it should provide 1 ns resolution.

View 3 Replies View Related

Hardware :: Diagnosis Application Or Tool?

May 11, 2010

I am looking for a tool to diagnose my PC/Laptop/Server in one shot and tell me exactly what is defective/broken/not-working etc.....

Is there an application or tool that I can use to know EXACTLY what hardware issues are present on the equipment?Tested the RAM using memory test via LiveCD, but what about the other components, hard disk, video card, CPU?

View 5 Replies View Related

Fedora :: Hard Drive Diagnosis Tool?

Mar 25, 2010

My new fedora 12 often freeze up for new reason. Not heavily loaded, no back end servers running. I suspect maybe my new harddrive has some problem. Could someone recommend a good hard drive diagonise tool?

View 3 Replies View Related

OpenSUSE Multimedia :: Video Playback Fails. Complete Diagnosis?

Jan 25, 2010

Installed clean new 11.2-32 bit. Followed the restricted formats post. Kaffeine, vlc, and Mplayer present a blue screen with sound or shutdown immediately. Recommended diagnostic steps as follows:-

linux-yeq6:/home/ingrid # LC_ALL=C zypper ve
Retrieving repository 'Updates for openSUSE 11.2-0' metadata [done]
Building repository 'Updates for openSUSE 11.2-0' cache [done]
Loading repository data...
Reading installed packages...
Dependencies of all installed packages are satisfied.
code....

View 2 Replies View Related

OpenSUSE Install :: Gnome Doesn't Seem To Be As Configurable As KDE

Oct 6, 2010

KDE 4 has prompted me to try Gnome -- and I like what I see. It's beautiful, clean, and use-oriented. I especially like Nautilus and the system monitor and the terminal program and simple but helpful features like the F10 menu key. It's inspired software!But nothing's perfect. For one thing, Gnome doesn't seem to be as configurable as KDE. I tried to change the maximize keystroke to Ctrl-Alt-M, to no avail. I'd also like to change F10, since that conflicts with the mc (Midnight Commander) exit key, but I don't know how to do it.

The black screen at startup has recurred.This time, I wads not able to get out by pressing Ctrl-Alt-F1 and restarting gdm from the root: Ctrl-Alt-F1 had no effect.I had to reboot.The problem occurred after gnome flashed and then blanked a login screen.I thought the lack of a login might be the cause, so I added another user and used YaST to ask that the login panel be shown.Well, gnome still isn't giving me a chance to login, but at least the black screen problem has disappeared for now, at least.

View 1 Replies View Related

Ubuntu :: Need A Good Robust Configurable DC++ Client?

Jul 10, 2010

Need a good robust configurable DC++ client., because I am getting slow connections with the latest stable and PPA version of Linuxdc++. Yes it may be a unknown config problem, but even with UFW disabled and using "passive" mode, DL's are consistently falling to 500 B/s. Source report that there is no problem at that end.

View 1 Replies View Related

Ubuntu :: Workspace Switcher Not Configurable On Second Screen?

Apr 7, 2011

I have Ubuntu 10.10 installed on a laptop with a second monitor configured as a separate x screen.

I configured the workspace switcher applet on the laptop screen to be 2x2 and it changed appropriately. When I go to the preferences for the workspace switcher on the second screen it says it's set to two columns and two rows but still displays as the default four columns and one row and any changes made have no effect.

I changed the setting num_rows from one to two under apps/panel/applets/workspace_switcher_screen1/prefs using gconf-editor and restarted my gnome-panels but it had no effect.

Is there anyway to make the workspace switcher on the second screen display as 2x2?

View 6 Replies View Related

Networking :: Device Is Configurable Only Over Console Line?

Oct 18, 2010

I have a configuration file for a network device(2100 lines). This device is configurable only over console line. If I copy chunks of those lines into terminal(I use minicom), there will be mistakes (sometimes some characters missing, space characters added etc). Hardware flow control and software flow control doesn't help either(as I use RS232-to-USB converter, I'm even not sure, if RTS and CTS signals are implemented). I tried with cu utility, but same issues appeared. There will be mistakes even if I copy in ~100 line parts. What causes those missing/added characters? Is there a terminal emulation program under Linux, which supports pausing before each byte/line transfer?

View 2 Replies View Related

Security :: More Secure Than Router's Not Configurable Firewall

Apr 20, 2011

There are routers with firewalls which you cannot configure - you just use those routers and get some protection from Internet attacks. Is it possible to configure iptables on GNU/Linux machine so that you'll get better protection than the protection you get from those kind of routers?

View 4 Replies View Related

Ubuntu Servers :: Bind9 For DNS Installed - Virtual Hosts Configurable

Jun 11, 2011

I have installed bind9 for DNS. I have also installed Apache2, PHP5, MySQL, and correctly configured these together. When I view domain1.co.uk it currently works fine as required. I would like to change it to:
* /var/www/domain1.co.uk/prod/ - becomes the root dir of domain1.co.uk
* /var/www/domain2.co.uk/prod/ - becomes the root dir of domain2.co.uk

Nevertheless, I have created a the following files; these are copies of the "default" file and correctly amended. the required destination directories are in place!
* /etc/apache2/sites-available/domain1.co.uk
* /etc/apache2/sites-available/domain2.co.uk

I then executed:
Code:
sudo ln -s domain1.co.uk ../sites-enabled/domain1.co.uk
Code:
sudo ln -s domain2.co.uk ../sites-enabled/domain2.co.uk

It is important to understand domain1.co.uk and domain2.co.uk represent 2 Existing domain names I own, and both point to my server.
domain1.co.uk currently works in /var/www
Why I would like multiple domain names on the server.

View 1 Replies View Related

Software :: Configurable File Maintenance Programs / Scripts (Logrotate)

Mar 27, 2011

Before I start writing my own file maintenance script, maybe one such program/scripts already exist somewhere. Am looking for a file maintenance script/application that is configurable that I can use to process files under certain criteria, for example, removing files that are x-number of days old, gzip'ping files if they are core dumped files, removing files if they are zero-sized files etc. Am not sure logrotate is the solution that am looking for.

View 1 Replies View Related

Ubuntu :: Use PS3 Remote As Configurable Tool (mouse Andor Joystick) For Computer?

Feb 2, 2010

I'm looking for a way to use my PS3 remote as a configurable tool (mouse andor joystick) for my computer. This site doesn't work at all: https://help.ubuntu.com/community/Sixaxis

View 2 Replies View Related

General :: Diagnosis An Unstable System / Seeing File System Is Not Clean During Boot?

Feb 22, 2010

So 2 days ago everything was all fine on my machine. Has been for about a month, but all of a sudden as of yesterday I have no sound, I am seeing IRQ interupts on boot, During boot I am seeing file system is not clean, , and swap space is being used for the first time while doing normal task, etc. These are 2 new hard drives in RAID 1 with ReiserFS. I should have used a newer FS but thats a whole other argument.

Anyways here we go.
The system is Debian Lenny amd64
Physical RAM 4GB + 6GB swap
/var/log/messages

Code:
Feb 21 07:35:09 Sarah kernel: imklog 3.18.6, log source = /proc/kmsg started.
Feb 21 07:35:09 Sarah rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="3994" x-info="http://www.rsyslog.com"] restart
code....

View 8 Replies View Related

Ubuntu :: Understand Hard Disk Diagnosis Result / "read Error " While Booting?

Apr 3, 2011

I face "read error " while booting. sometimes it start normally. someone told me to check hard disk for errors. i used gsmartcontrol for this. but from its result i am unable to decide is this hard disk failure or just minor errors. can somebody tell me do i require to change my hd or it just something else to cause such error.

View 5 Replies View Related

Fedora :: How To Change CPU Scheduling Algorithm

May 3, 2011

I want to change linux scheduling algorithm for some of my processes but when I click on processes in ksysguard and click renice project, all of the processes use normal level cpu scheduling. Why is it such a thing and there is no priority?

View 2 Replies View Related

General :: Kernel Scheduling Algorithm

Sep 8, 2010

is linux kernel is priority preemptive kernel?if it is. where it is using round robin scheduling algorithm?when processes are scheduled for the processor process will be allocated as which sechudling alogorithm?

View 1 Replies View Related

Software :: Best Program To Write Algorithm?

Oct 5, 2010

What would be the best program to write my algorithm, before sending them to my teacher?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved