Programming :: Name Of Formula N Things Out Of Collection Of M Things
Jul 22, 2011
I'm working through some problems in a beginners programming book. The author mentions a formula for calculating the number of ways of picking out n things from a collection of m of them:
Code:
/ m m!
| | = -----------
n / n! (m-n)!
But he does not give a name for the formula. Does anyone happen to know what it is called? I need to do some related research.
I am doing something for a class, and i have to list all the files in the users home directory, and i did a ls -F so the directories have a / after them but i don't know how to remove them because i just want the files not the directories
I have everything working in terms of the video and audio both play. However the audio player I have will scroll over the banner when I scroll up. also will do this when Flowplayer is active (playing or waiting to play a video) and a slide out menu hides behind this player as well.
I am trying to understnd where java preferences are stored based on web search I understand they are somewhat like windows registry - stored out there somewhere. web suggested things like hidden files or directories - and i've look all over th eplace withour result on Fedora 14. trying to start a program. got part way in and had given some info and then it blew. it still remembers my iput - which may have been wrong. ive looked at code and see it uses the java preferences system - wpould like to find and erase.
Ive noticed this in 2 places specifically.The first is when I try to open the only "tarball" program Ive ever tried to install, Celtx. I unpacked the program into my bin folder, and when clicking (or double clicking) on either the executable file or the shell script nothing happens. If I double click on shell script, and then on the executable, I get an error saying "celtx is already running but not responding. To open a new window you must first close the existing celtx process, or restart your computer".
The second time is when I get a notice on my screen about new security updates available.I click on it, and it opens up the "software update" window with the updates it wants to nstall already checked. I click "install updates" and nothing happens. If I click the help button, it gives me an error "failed to execute child process "gnome-help"". Im guessing this one is because Im not using gnome, but XFCE. If I open up online update using yast, I can update from there and install these files fine.So basically the second problem is not that big of a deal, since Im able to install the files from a different area. Its just annoying and I dont know if it means there is a deeper bug in my system. The first problem makes me unable to run a program I really wan to run, so thats the one I really need the most help with.
I updated through the update manager the other day and after I shut my computer down and turned it back on the next day, all my icons on my desktop disappeared and I can't access my files or my applications. It gives me this error when trying to access my files in my desktop.
Could not open location 'file:///home/anubis/Desktop' No application is registered as handling this file.
I posted a new thread about this the other day and somehow the thread disappeared too. what do I need to do?
I just recently upgraded to Ubunutu beta 10.10, & now whenever I minimize anything, I cannot find where said program is going to. The programs do not appear anywhere, like before where they were on the bottom panel or whatever.
So I'm trying to get mediatomb to run at startup automatically. I went into System Settings -> Startup Applications and added a new one with the command 'sudo mediatomb.' Unsurprisingly it did not work. What am I doing wrong?
Also, what do I use in ubuntu to check for updates to all of my installed applications?
So I've just recently started using awesome, but I was wondering why things look like this and how I can fix it
Just wondering why it's so 'un-decorated' I guess, I assume I'm just not running something I should be at startup, it happens on all programs and windows. http://i51.tinypic.com/afac5c.png
It's looks like windows 98
Here's another screenshot of it http://i54.tinypic.com/349ary9.png
Just all the borders, menus and stuff look horrible.
My linux computer just kicked the bucket, so Iḿ kinda stuck on testing terminal commands
Can somebody give me the commands to:
1. Start the smb service. 2. Start the libvirtd service. 3. Create a symbolic folder link at /opt/google/chrome/plugins that links to /usr/lib/mozilla/plugins 4. Create a symbolic folder link at /opt/google/chrome/plugins that links to /usr/lib64/mozilla/plugins
It scrolls jerky and sometime wont stop scrolling even after i only pushed the up or down arrow one time. it freezes up and take minuets to switch tabs or post to sites etc.Could this be a video driver issue? Or a Firefox issue? I am running Ubuntu 9.10 latest patches on and IBM R51
When I (try) to upload files to Ubuntu One; generally, the upload doesn't happen. What does happen is [on] the bottom panel says: "Sending request to files.one.ubuntu.com . . ." It may sit there like that for hours without an upload happening. Once, I left my computer on and left for a couple of days; when I got back it had uploaded. Is this the norm? Is there something wrong on my end (other than PBKAC)? What can I do to speed things up? Or can they be speeded up? Is the description of Ubuntu One one thing and the reality something else?
I've installed Ubuntu 10.04 and I wanted to customise it a little (splash screen, login screen, window theme) - problem is, all of the tuts on the net have been written for 9.xx or lower and none of them seem to work with the version that I am running (I can't remember why right now because I looked this up a few days ago but there was a tab missing in 10.04 that was there in 9.xx and below). how to customise these things running Ubuntu 10.04?
this is totally weird and i have no idea what's happening. i have a 64bit ubuntu 10.10 (just like the title says). i've been having random (really out of the blue) slow ubuntu response. so slow, the mouse pointer works stops works kinda thing. i can't open any program and clicking the power button doesn't work. i have to hard restart it (holding down the power for a couple of sec). this is really making me mad since i'm afraid for my hardware life and to be honest - not very impressed with ubuntu.
i have no idea why this happens and i really need help on this subject, otherwise i'd just have to look for another OS (and i would like not to) also - the computer is new so i don't think it's a hardware problem, but if there are tests i can do to check it i wouldn't mind
I've been running Linux for about 3 years now. I still am having difficulties understanding some of the basic unix and linux software and their dependencies.
What I am wanting to do, simply for my own amusement, is to strip the OS down so that I am only running software that I need. Then I want to build it back up with X and some sort of desktop.
Right now I have a stock Ubuntu 10.04 installation from the alternative DVD. Right now I sit at 643MB and 14MB of ram. Of course I would want it to be lower.
Here are the programs currently on the chopping block. I need to now if I honestly need them or not. I state next to the software whether or not I know what it is. code...
So obviously I have not a clue about many things still, and if you've caught an error in my descriptions then I have less of a clue than I thought.
I just need to know what the system needs to run. I like the basic commands like less, grep, free, df, du, adduser, usermod, apt-get, dpkg, cp, mv, rm, mkdir, ect. What I don't need are things like w3m telnet(Unless someone knows something I don't), memtest+, and I don't ever use cron, but I also don't know if it does something behind the scenes that is vitally important. I remember trying to get rid of memtest one time and it wouldn't boot after that. Any idea why?
For some odd reason when I logged into Ubuntu Lucid Lynx today, Caro dock is all messed up and the close, minimize, etc buttons are on the left on all of the windows.Yesterday all was fine. The buttons were on the right side and cairo dock was fine.Now, it is all messed up. I even brought the compiz icon up and clicked reload WM and that did not even fix it.
I have been trying to go through Beginning Ubuntu Linux but there are inconsistencies with what the books says and what it looks like on my computer. For example, The book speaks of a Device Manager that should be located under System > Administration > Device Manager. It does not appear for me under System > Administration.
The book I have was published in 2006 and I am using Ubuntu 10.10.
What's the easiest way to make things autostart in KDE? The only method I know is to make links to the applications and then put them in the KDE autostart folder. Last time I did that, I had a lot of trouble with not being allowed to make the links unless I was root. Is there a simpler way?
How Linux would run NT in a VM, and the correct definition of how things work. Now I now about nothing about of Linux, though I have installed it a few times, but never really worked with it. I have been using MS products for 15 Plus years and have a pretty good understanding of how things work. I do not claim to be any expert. Some Idea of what I am inquiring: Now, how does the Linux Kernel handle the NT Kernel? Are processes/threads in cpu separated for each Kernel? How would interrupt requests be handled? How is Memory and Disk Management handled? Then obviously how would Device Management be handled as well?
I installed it a while ago but haven't bothered to use it much, and before I installed Kubuntu and had Ubuntu, it worked fine, I could use Notepad and browse the C:... But, now when I go to "Browse C:" it says "Unable to run the command specified. The file or folder file:///home/theif519/Documents/.wine/dosdevices/c: does not exist." What do I do? I tried reinstalling Wine but that didn't do any good. Do I manually make the directory?
I am looking for a basic guide to Linux security. I am assessing a multi-server farm and have very limited experience with Linux. Where can I get a list of basic things I should be looking at from a security standpoint, i.e. ports, vulnerabilities, users, etc? Looking for a checklist I can run through. We are running CentOS Linux 5.0.
I'm at the point where I don't know how to assign certain things for the partitions. When I was on windows I took out 25gbs out of my primary hard drive for Fedora. I also have a 200mb partition. I know I need to put the 200mb partition as the /boot but what do I put as the 25 gb one? I'm using the create custom layout.
I got the conversion to work for hiragana to kanji by downloading the language support, but now I can't input things in katakana there is no option for it on Anthy. I looked all over. There's no drop down menu for me to change it. One more thing, how do I change the default font to a different one for Japanese scripts?
hows it goin ?? anyways i would like to know how to install firefox 3.6 and just to tell you that i used this tutorial to do it http://linuxhub.net/2009/11/how-to-install-firefox-3-6-on-ubuntu-karmic-koala/ and i did everything perfectly but at the end it told me to download a plug in which i dont want to ( not secure ) so i was just wondering if there was a way just to treplace the ubuntu version of firefox into to the Mozilla version ! how to run things in terminal
I just did something that is moderately serious in my book.while trying to put a iso/img to a USB drive using "dd" command (actual command: "dd if/=/home/<username>/Desktop/<image file name> of/=/dev/sda1"), I accidentally wrote to /dev/sda1 (which is my windowspartition on this dual booted computer). When i try to boot into windows, it gives a error that it cannot find the parition. the iso was about 400meg, it was a install iso for another form of linux (arch linux).Is there anyway that I can get my windows partition to work again, or am i just going to have to say goodbye to all my music, pictures, etc. And I think some of my teachers require me to use windows based software... So I would like to eventually get back into windows though.I am running Ubuntu 9.10, I am on a laptop (HP HDX 16t)I am going to get ubuntu back onto my netbook (i destroyed that earlier tonight by deleting a partition that had the bootloader on it... i am just wiping that though)