Programming :: Find Logarithm To Base 10 Instead Of Base 2 On Shell Script?
Apr 20, 2010can we find logarithm to base 10 instead of base 2 on shell script??i can do it with bc..like 'l(1000)/l(10)' | bc -l
View 1 Repliescan we find logarithm to base 10 instead of base 2 on shell script??i can do it with bc..like 'l(1000)/l(10)' | bc -l
View 1 RepliesI have a router that is 1000 Base T and two computers each with ethernet cards that support 1000 Base T. All are equipped with Cat 5e cable. Before I had a router that only went up to 100 Base T and I would setup one box with linux running proftpd. On the other box,I would use win xp pro and use firefox to ftp into the other box and download a file. Download speeds went up to 11.2 MB/sec. Now when I switched routers, I expected something like 120 MB/sec but I'm only getting 5.3 MB/sec. What do I need to change?
View 12 Replies View RelatedThis file (and a couple others) are missing from packman ATM.I've seen them (need version 0.10.30 or greater) at multimedia:/libs.My doubt is, does these gstreamer packages housed at download.opensuse.org are limited due to DCMA/patent issues, like OOTB k3b/libxine are
View 7 Replies View RelatedI need to install some software which allows me to read chm files. I cannot seem to find the appropriate package in the base repository. How can I install such a reader?
View 2 Replies View RelatedI try to do a upgrade on my fedora 6 ill 10. But when I try to write yum update or yum upgrade on my server a get this error:
yum update
Loading "installonlyn" plugin
Setting up update process
Setting up repositories
Error: Cannot find a valid baseurl for repo: extras
When trying to run 'yum update' or 'yum install' i get the following message:
Quote:
# yum update
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
[code]....
I have a VPS with Fedora 13 32 bits.
[root@mbr ~]# cat /etc/fedora-release
Fedora release 13 (Goddard)
[root@mbr ~]# yum install cyrus-sasl-md5
Loaded plugins: fastestmirror Repository updates is listed more than once in the configuration Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. 13 is not a valid release or hasnt been released yet/ removing mirrorlist with no valid mirrors: /var/cache/yum/i386/13/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base
I tried
# yum clean all
# yum list
I am using Fedora 14 (64 bit version) Can't start XAWTV. Returns this error: $ xawtv This is xawtv-3.99.rc6, running on Linux/x86_64 (2.6.35.12-90.fc14.x86_64) xinerama 0: 1920x1080+0+0 WARNING: No DGA direct video mode for this display. WARNING: keeping fbuf pitch at: 7680, as no base addr was detected WARNING: couldn't find framebuffer base address, try manual configuration ("v4l-conf -a <addr>") v4l2: WARNING: framebuffer base address mismatch v4l2: me=(nil) v4l=(nil) Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Oops: can't load any font
View 1 Replies View RelatedI have a problem. This class is a base class for a basic enum handler:
Code:
#define ENUMOBJECT_BEGIN_ELEMENTS enum Element {
#define ENUMOBJECT_END_ELEMENTS ElementCount, DefaultElement, NoElement };
[code]...
If I have an array which its size is based on the user input, from some material, I need to use malloc function to allocate memory for that array what is known dynamic array. Don't forget to free it.hat's fine, however, I like to try things out even I know the program will crash.I have written some test program on my Mac using C language like this:int width = 0;//get user input, and assign the input value to width, for example, 3char * array_var[width];and width is an int, its value will be assigned by the user input. The point is, this program work as expected, for example, in command line, I input 3, then array_var length is 3, its size is 3 * sizeof(char *).
View 1 Replies View Relatedi 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 RelatedI am trying to understand working of pci_resource_start function So I browsed code via cscope and searched for string pci_resource_start and got following in pci.h
Code:
#define pci_resource_start(dev, bar) ((dev)->resource[(bar)].start)
I am not able to understand how does this above macro works. How does it above macro gets appropriate base address register in configuration space?
We all know linux kernel base layer is made up of structures, in which every object of kernel is well defined. Structure members correspond to object properties required to define object behavior.
For example if we take case of File system.It composed of four objects , superblock objects, inode objects, file objects and dentry object.Each having well defined structure which is being operated by system call handler and by system call service routine in the kernel mode.
Now my question is even in kernel mode we do not have some mechanism by which we can get access to pointer of these structures.We have some macro.
If I want to manipulate structure on my on way, or performing some more operation defined by me.For example after the crash of Hard Disk Drive, having ext2/3 file system, If i want to know all the inode pointers, and block details.
Can I have some way out to do desired operation ??
mechanism to operate on these base label structures, even in kernel mode ..
Well the topic name says it all. I only installed the base system and when I try "apt-get install gnome" it tells me it can't find package "gnome".Now, I'm actually to much of a noob to try to build my own Debian from the base system and up. But it still seems to be the easiest option.When I try "Debian GNU/Linux on CDs" I can't get online. I start Iceweasl but it just gives me that message telling me that it can't find the website I tried to enter (e.g www.google.com).When I try the net install I get "Bad Archive Mirror" at the configure apt part. I've tried searching your forums for this and it seems to happen to a lot of people but I still can't find a solution in any of those threads
View 8 Replies View RelatedI'm trying to design an inexpensive large scale DNS server but fail to find any metrics or methods to base scalabilty.Can anyone offer information on building a stable dedicated DNS server? That might be able to scale well.
View 8 Replies View RelatedCode:
#include <iostream>
using namespace std;
[code]...
I'm just messing around trying to create a script that will give me a menu driven method of selecting a file from a directory. After doing some searching around on the web, I found that the "dialog" command might be able to provide what I need, but I'm not sure exactly if what I want is possible.
I was messing around with the --menu option and am getting pretty close, but not exactly what I want. Here's a snip of what I've been working with:
Code:
This gets me the results I want for the first option in the list, but the rest comes out a bit weird, as it's taking the directory contents and applying to the "tag" field as well. In fact, if there wasn't a need for the tag field, it would probably be working exactly as I want it to.
I plan on messing around a bit more to see if there is a workaround, but figured I'd post this just in case someone else had accomplished something similar. Essentially, this will be embedded in a script where each file in my $DIR variable will show in the menu and the selected file will end up in a variable for later use.
My script.
This is may script:
Code:
Problem: Output file doest not exclude the values in grep -av
I'm using gmake (v3.81) to build some c executables. As the first step in the process I run the files through a preprocessor (for embedded SQL). The preprocessor completes successfully, but the gmake reports an error and discontinues buiding the remaining dependencies...
make *** [myfile.c] Error 4
which (according to /usr/include/asm-generic/errno-base.h) means "interrupted System Call". My preprocessor doesn't raise any signals, so I'm not sure what's causing this error.
all the manuals and tutorials on bc only says i can use l(x) to find natural log of x. but i want log of base 2. how would i specify that?
View 3 Replies View RelatedI'm using debian wheezy and i managed to install libreoffice 4.3.3.2 from debian wheezy backports.
The LO program works fine, except that i can't use reports in LO Base. When I'm trying to use a report file that already exists in a base file, i'm getting the message "loading component library <file:///usr/lib/libreoffice/program/librptlo.so> failed.
What should i do to make reports work;
I wanted to know if it's installed while installing Squeeze. I've forgotten...
View 2 Replies View RelatedI had made a database in OOO Base, but I guess because of the size, it's not uncommon for it to crash. Now that testing and Sid are now using LibreOffice, is the database any more stable? Or...is there an alternative database package to be used only on a local machine without a server?
View 1 Replies View RelatedI'm prepared installing Fedora11 from; Fedora-11-i386-netinst.iso If I only need a base system (OS) without X what shall I select?
View 1 Replies View RelatedI have upgrade my Fedora to 12, i was trying to use the Openoffice database and can not find it loaded under application>office. Does anybody know why it is not loaded? I try to activate it via yumex, after installation, it comes up with bug errror report and Selinux error also comes up when try to use the BASE.
View 1 Replies View RelatedEvery couple of hours OOo Base crashes - just closes the program of its' own accord.
Annoying enough in itself, but at least it usually recovers up to the last point I saved my work. The last time it happened though it didn't even recover to my last save point - it recovered to an old save point! So I have lost 30 minutes' work.
I installed Ubuntu 10.04 yesterday and have tried to switch OSS by following the explanation in the community wiki. During OSS4 installation, I got this error message:
Code:
dpkg: error processing oss4-base_4.2-build2002-2_i386.deb (--install):
trying to overwrite '/usr/share/man/man1/ossinfo.1.gz', which is also in package oss-linux 0:4.2-2003
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
oss4-base_4.2-build2002-2_i386.deb
Now I can't complete the installation. I tried to move ossinfo.1.gz file but made no difference.
I've recently installed Ubuntu 10.10 and Libreoffice 3.3. My Base is very very slow. I've already tried changing the JRE to the Oracle/Sun latest version and the problem is still there. The problem doesn't seem to be in the file, since I can open it on my Windows 7 Libreoffice, without any problems. Solving this bug is important for me to definitely migrate from Windows to Linux.
View 6 Replies View RelatedI'm have a project about control bandwidth base IP (ex : 192.168.1.2 have 128kbps limit download, 192.168.1.3 have 64 ....) How I can do that? Software MasterShaper is good idea? I want solve this problem base linux kernel command TC without any third party software.
View 2 Replies View RelatedI want interface any free data base software to fedora 12 version.
View 15 Replies View Related