Slackware :: COUNT Never Reaches Zero - Algorithm Doesn't Converge

Jun 5, 2010

upgrading my notebook from Slackware 13.0 to 13.1. There are always some tricky things to wrap around when such upgrade times come, but now I think I caught a bug in mkinitrd, if I'm not wrong. mkinitd doesn't return when I run:

[code]...

After some debugging, I found that the routine copy-libs() is stuck in an infinite loop, because the statement "while [ "$COUNT" != "0" ]; do" does hold always (that is, COUNT never reaches zero). This, by its side, happens because the set of libs whose dependencies should be checked against are regenerated integrally after each step, and the algorithm doesn't converge. I could fix the problem adding some code, which removes the libraries found in the iteration "i-1" from the list of files found in the iteration "i". A patch in provided below. This done, I could build my first initrd image for Slack 13.1 and put it to run with kernel 2.6.33.4.

[code]...

View 11 Replies


ADVERTISEMENT

Programming :: DBD::mysql::st Execute Failed: Column Count Doesn't Match Value Count At Row 1

Feb 24, 2010

I have the following perl/DBI script:

Quote:

#!/usr/bin/perl
use DBI;
my ($db, $user, $pw) = ('dbname', '****', '***********');
my $dbh = DBI->connect("DBI:mysql:$db",$user,$pw) or die "Cannot connect to $db: $DBI::errstr

[code].....

The error message is

[Wed Feb 24 13:03:27 2010] myscript.cgi: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at myscript.cgi. [Wed Feb 24 13:03:27 2010] myscript.cgi: DBI::db=HASH(0x8a30c60)->errstr

View 2 Replies View Related

Programming :: Clock() - Doesn't Count How Much System() Works?

Jun 3, 2011

im stuck with something trivial again. so i want to calculate how much time my programm runs:

int main (int argc, char* argv[])
{
clock_t end, start;
start= clock();
int i;
int p, q, r;
FILE* f_out_loc;
[Code]....

it returns 1.12 sec. looks like clock() doesnt count how much system() works .... is it possible? and how do i calculate the whole thing?

View 4 Replies View Related

Programming :: File System Reaches 90% Or Over?

Mar 19, 2010

Here is the program for Linux machine. GOAL: User will get notify via email when any File System reaches 90% or over 90% of its used space. User will notify as below:

Filesystem: /bkup
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/backup-BKUP
14G 12G 1.3G 91% /bkup
Large Files:
/bkup/prtlprd6_bk20100312_aft2ndjcr.xml

[Code]....

View 1 Replies View Related

Ubuntu :: Freezes When Reaches Desktop During Boot

Jan 15, 2010

I tried to test Ubuntu on my dekstop, an HP Pavilion a6223w with an ATI Radeon HD 2400 but as soon as the live CD reaches the desktop, it hangs, no errors, and from what I can tell it isn't running on any restricted drivers. Is ubuntu not compatible with my PC or something? Here's my full spec's:

AMD Athlon 64 x2 5200+ 2.6GHZ

ECS Nettle2 Mobo with Nvidia nforce 4 chipset and Nvidia 6150SE integrated graphics

3GBs DDR2 5300 RAM @ 667 mhz

500GB Sata HD 7200rpm

ATI Radeon HD 2400 Pro PCIe x16

HP Multimedia Keyboard and Logitech USB Optical Mouse

Realtek Onboard HD Audio

I tested it with the latest version of Ubuntu (9.10)

View 4 Replies View Related

Networking :: Arriving Packet (UDP) Never Reaches Process?

Apr 14, 2010

I don't know if this is related to a problem I have run into and posted elsewhere regarding 2 (or more) ethernet ports. But I encountered this while trying to solve the other problem (which I thought was Linux not setting correct routes for 2 interfaces). As suggested by someone when trying to solve the other problem, I switched to using the same IP address (it's a secondary address) on BOTH interfaces. So thus I have configured 172.30.0.13 on both eth0:1 and eth1:1. I am running the NSD program (an authoritative-only name server) listening on port 53 of 172.30.0.13. Some computers are getting the MAC address of eth0 for their ARP requests. Others are getting the MAC address of eth1 for their ARP requests. So this is determining which ethernet port their DNS queries will arrive on.

Those that send their DNS queries to the eth0 MAC address work fine. The NSD process gets the requests and answers them. The answers get back to where the query was sent from. HOWEVER ... those that send their DNS queries to the eth1 MAC address do not work. Using tcpdump, I see that the queries actually do arrive on the server. Using strace, I see that the NSD process never gets them. There are no iptables in effect.

Any idea why the kernel is deciding to not deliver the DNS query UDP datagram to the NSD process? It sure seems that the kernel just doesn't handle more than 1 ethernet interface (at least in the same subnet) correctly. IMHO, when an ARP request is received on 2 or more different interfaces, it should at least answer on both, each answer with the respective MAC address of that interface. It cannot know, and should not assume, any specific physical topology of the network beyond those interfaces.

View 1 Replies View Related

General :: Incrimental Counter - Reaches Its Value Of 10 To Reset To Zero

Jun 23, 2010

i am just starting a ubuntu server and i am trying to learn i have a script that runs ever hour and i would like to put a counter (count=count+) in a line if it is true and also if the counter reaches its value of 10 to reset the counter to zero

View 3 Replies View Related

Software :: Ubuntu 9.10 - Temp Reaches Around 80 To 90 Degrees

Nov 1, 2010

I am using ubuntu karmic kola 9.10. The problem I have been having lately is of overheating of my intel core2duo proc, where the temp reaches around 80-90 degrees and the cpu shuts down after a while and the message from the bios is of thermal trip. Ideally my cpus temp is around 55 deg,the moment when the temp starts to climb and when I run a top command, I see arpwatch taking 100 % of cpu. After googling I came across this.

Code:
[URL]. How can a process which is taking 100 % cpu cause a system to over heat and shutdown in few mins? I have had seen instances where processes taking a lot of cpu but not something like this.

ryan@wsx04:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

Code:
ryan@wsx04:~$ dpkg -s arpwatch
Package: arpwatch
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 468
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Architecture: amd64
Version: 2.1a13-2.1

Code:
ryan@wsx04:~$ sa | grep -i arpwatch
4 292.10re 2.06cp 0avio 5176k arpwatch*

View 2 Replies View Related

Slackware :: Slackware 13.37 Doesn't Determine Monitor Size Correctly

Jun 12, 2011

I have a display problem since updating to Slackware 13.37. Everything was fine on Slackware 13.1, but when I switched to 13.37 some piece of software came up with the wrong monitor size. I have a 1600x900 LCD monitor but the X screen came up as 1024x768 with blackness on either side of it. Under Slackware 13.1 the X screen came up as 1600x900 as it should without any prompting from me; I didn't even have an Xorg.conf file. I tried using the Xorg.conf file which was needed and work for older Slackwares, eg 12.*, but it didn't work. (Saying it didn't work is a gross understatement! That old Xorg.conf completely screwed up mouse, keyboard, and monitor; the screen was flashing and nothing worked. The only way to get control back was to SSH into the machine from my laptop and reboot. Killing the X server via that SSH console did NOT the flashing or get me back to my console login; only reboot worked.)

I find I can get the screen to be the right size manually by going through KDE's "System Settings" --> "Display and Monitor" --> "Size & Orientation", then disabling "LVDS1" and setting VGA1 to 1600x900. The size of my odd-sized monitor is being correctly detected for the "Auto" choice. Upon reboot LVDS1 stays disabled but VGA1 reverts to 1024x768 so I have to do this each time.I've done some search of the on-line literature regarding the error messages I am seeing in the boot log.

People are suggesting changing all kinds of things to alleviate the side effects of the "conflicting" error message above, even modifying GRUB parameters (which won't work for me since I use LILO).So, I have a manual work around which I must do each time I log in. Does someone know how I can get X or KDE to force 1600x900 upon start (while Linux/X/whoever find and fix the problem) or does someone know of a real fix?

View 6 Replies View Related

OpenSUSE Install :: Receive A Signal Until The Boot Stage Reaches The KDM?

Jun 10, 2010

I have the computer hooked up to a TV via HDMI. The resolution of the booting process is set to 1280x720, and then KDM goes to the correct 1360x768.

Sometimes when I boot, the TV does not receive a signal until the boot stage reaches the KDM. I do not know how to reproduce this exactly.

View 3 Replies View Related

Ubuntu :: Script To Shutdown My Computer When It Reaches A Specific Time

May 10, 2010

I have looked high and low for this, but to no avail. I am looking for a script to shutdown my computer when it reaches a specific time (say 10:00). I know about the shutdown command but if I use that I cannot shutdown my computer manually. I would like to be able to shutdown manually AND automatically.

View 5 Replies View Related

Debian Multimedia :: Plasma 5 Fails To Start - Progress Bar Reaches About 80% And Then Stops

Aug 19, 2015

After installing the latest upgrades in Testing, KDE will no longer start. After logging in, the progress bar reaches about 80% and then stops. At this point the system is unresponsive, and I have to switch to another VT to reboot.

For the moment I'm using XFCE.

View 14 Replies View Related

General :: Break Copy Process When Folder Size Reaches Its Maximum?

Mar 19, 2011

I have written a script.

#/bin/bash
a=`du -sh /root/samplefolder | cut -f1`
echo $a > testfile

[code]....

The aim of this script is, when the folder reaches 20M then attributes will be set to that particular folder so that no newfiles and folders cannot be created or copied to that samplefolder. whenever i copy a file morethan 20M to that folder its getting copied fully and then the attributes were applied. But i dont want this to happen, when the folder reaches its maximum current write operation to that folder should be stopped automatically with a error.

View 5 Replies View Related

General :: Create A Script When Mailqueue (mqueue) Folder Size Reaches 1GB

Aug 4, 2011

how to create a script when my mailqueue (mqueue) folder size reaches 1GB and sent email alert to my email id.

Once mqueue folder size reaches the sent alert by mail. Because everytime my mqueue folder size increasing.

View 3 Replies View Related

Slackware :: Slackware 13.37 Rtl8187b Doesn't Connect With Wep

Apr 28, 2011

I have a realtek 8187b devid 8189 and tried connect to a wep encrypted connection I "borrow" frequently using iwconfig first and it wouldn't connect then I installed wicd and it says bad password. I've connected successfully using multiple other distros, openbsd, os x, and windows. Anyone have any ideas what the problem could be?If you need anymore info I can boot into slack and write it down or something.

View 3 Replies View Related

Slackware :: Slackware Doesn't Recognize An Executable

Jul 27, 2010

there's a program I have that doesn't really install, you extract it to its folder, cd into it, then ./filename to start it. It works fine on my Debian install. But when I do this on Slackware, it just says 'no such file or directory'. The file most definitely is there, since ls shows it. the filename is only three letters long so I know I'm not mistyping it. I've tried in user and su. Any idea why it won't run?

View 14 Replies View Related

Ubuntu :: Jaunty Live CD Not Booting / Screen Hangs When The Loader Reaches About 10% In The Blue Bar?

May 19, 2009

For the first time, I booted up a Kubuntu live CD on a laptop (850 MHz, 40 GB HD, 256 MB RAM). Earlier releases (< 9.04) boot up fine but it does not. It hangs up right on the splash screen and I can view nothing but a blinking cursor on the console screen. The screen hangs when the loader reaches about 10% in the blue bar. No further information can be provided when there is just a blinking cursor at the console. The CPU shows no activity. The CD boots up fine on other computer. How do I go on installing Kubuntu? Is it a good option to use the Ubuntu Server CD and install all the Kubuntu desktop software on it once it is installed (Server edition is not live disk, and I do not have an alternate install CD)?

View 1 Replies View Related

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

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

Software :: Change The Algorithm Of A Node In Ns2?

Jan 3, 2011

there are 3 nodes..A,B and C. Node A wants to send information to Node B but it does so by sending it to Node C first which then sends to B. And similarly Node B sends to A. In this simultaneously C doesn't send to both A and B. This is the in built algorithm..but i want to change it to: A and B send their packets to C and C sends both these packets to A and B..by ORing... In the receiver side...node A can receive the wanted packet and also B. Where do i change the algorithm?

View 7 Replies View Related

Ubuntu Security :: Can Make New Algorithm For /etc/shadow

Aug 16, 2011

i use SHA-512 algorithm in the /etc/shadow File But i Want to use my lgorithm ..

how i can remove the sha-512 and use my algoritm ? Because no one can des encrypt it !! He Not Know the algorithm method

View 7 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

Software :: Algorithm To Compare Images Via Web Application

Mar 30, 2011

I want some algorithm so that I can compare images via web application, (preferably in python)

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 :: 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 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

Debian Configuration :: How To Encrypt Home Folder Using DES Algorithm

Jan 27, 2011

I want encrypt my home folder by using the DES? How to do it?

View 1 Replies View Related







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