I'm a beginning Android Developer trying to learn the file system, etc. I'm hoping to eventually delve into Home Automation and traffic analysis using phones/GPS, but I'm in the beginning arc of this learning curve. My background is mostly C/C++, though I've done some work in Java. I'm not so great with Linux, but semi-familiar. Ditto with security. I have a Computer Science degree and have been programming for years. Currently I have been trying to figure out what goes where in Android and have been running into a lot of permissions issues when trying to list directories using the … +0 I'm so confused on this, can anyone please give me a hand. Thank you in advance. A program that uses the numbers from 1 - 12 and output the number, the square of the number, the cube of the number and finally the square root of the number. At the end give me a grand total of the square roots. +0 Code Snippet Python Get Root Floor and Root Ceiling of a Number Also because of my work in number theory, I often need to have the root floor and root ceing of a number. This is my function for computing those two numbers from a target number. +0 So i have to write a c++ program for the Graeffe's square root method I have am stuck here when i have this formula transform into c++ code, the formula is on the link The code works particulary, the (elem[j-1]*elem[j+i]) doesn't work, it's beeing ignored and i don't know why... can any one help me? [http://latex.codecogs.com/gif.latex?A_{k}=a_{k}^{2}+2\sum_{s=1}^{k}(-1)^{s}a_{k-s}*a_{k+s},&space;k=0,....n](http://latex.codecogs.com/gif.latex?A_{k}=a_{k}^{2}+2\sum_{s=1}^{k}(-1)^{s}a_{k-s}*a_{k+s},&space;k=0,....n) cout<<"How many elements?"<>n; cout<<"Insert the elements:"<>elem[i]; } C[0]=pow(elem[0],2); for(int j=1; j my uploaded files /access_log /etc /mail /public_htm /public_ftp /tmp /www Here is how i configured it 1: inside /public_html I have index.php with the content as follow 2: Inside /myweb_application i created 2 files for testing along with web_index.php making it 3 php files web_index.php
• Connect test1

• Connect test2

• test1.php I am test 1 test2.php … +0 how to test if a num is a square root? ex: 9 is square root 3 is not square root ///////////////////////////////////////////// //do not worry about sytax. int x = 0; //always start at 0 int y = 101010; //is this a square root? square(x, y){ if((x*x) >= y){ //not a square root return false; } else if((x*x) == y) //it is a square root return true; } else{ //inc x by 1 square(x+1, y); } } this algorithm works fine when y is small int. ex 4, 10, 20. but when i put y to be large ex 10000. than … +0 hello all i am a new member of this forum.how are you all +0 Hello, I am curious about how to root an Android phone without using any one click methods. A Google search returns only how to use programs to do this for you. Obviously there is a security vulnerability that is exploited, but I'd like to know in detail how this is done. Thanks, Cheeve +0 I am having problem on removing root, moving the lastnode to the new root and applying the downheap. Here is my code snippet #include #include "heap.h" heap::heap() { data=new myvector (10); size=0; heapData item; item.key=0; item.data=0; insertItem(item); } heap::~heap() { delete data; }; void heap::insertItem(heapData item) { data->insertAtRank(size,item); size++; heapData parentData; //upheap int currIndex=size-1; int parentIndex=parent(currIndex); while (parentIndex>0) { //int parentIndex=parent(size-1); parentData=data->elementAtRank(parentIndex); if(parentData.key>item.key) { data->replaceAtRank(parentIndex,item); data->replaceAtRank(size-1,parentData); } parentIndex=parent(parentIndex); } } heapData heap::removeRoot() { heapData root=data->elementAtRank(1); //remove root //move the lastnode to the new root //apply downheap +0 Hi, here I have another problem for you guys.I am doing this tutorial on mysql and php: http://repository.ui.ac.id/dokumen/lihat/3322.pd Now after I have reinstalled everything, MySql,phpMyAdmin and PHP everything works fine except I cannot log in as root.When I installed mySql I set a root password and also I created 2 accounts both admin.I can connect with the db from the command line with both but not as root.If I insert the root password the prompt disappears.I experimented a little and I can connect like this localhost/connecting.php with this code and any of the 2 accounts: so I've tried pressing E: so it goes to E:> when I saw press C: so it goes to C: \ Users \ PC1> again, it has worked until today, but now it does not work, why would it not now, I have tried to restart the computer but it still does not work. I have tried the following commands c: it does not work cd to go one directory back, does not work in E: it works -1 Hi Everyone, In Linux as a root i need to create a user account with 700 permissions as its home directory permissions, so that user after logging in should not be able to change his/her home directory permissions , he/she should be can change other files/directories inside home directory. So Please tell me is there any way i could create a user like this. Thanks in Advance Thanks Srikanth M. +0 Dear All, I have written a program to find the smallest divisor of an input number. The code gives me an error in lines 19 and 23. The error is invalid operands to binary %. Please help me to troubleshoot, thank you. Below is my code: #include #include #include int main() { int n,r,sdivisor; double d,sqroot,comp; printf("Enter the number whose smallest divisor has to be found"); scanf("%d",&n); if(n%2==0) { printf("the smallest divisor is 2"); } else { sqroot=sqrt(n); d=3; } comp=n%d; while(comp!=0 & d #include #include int main() { int n,m,input,powm,pown; printf("Enter a number"); scanf("%d",&input); … +1 How print this series in while loop square root 1 2 4 8 16 32 64 128.......... and cube root 2 8 24 72........ +1 News Story Who is rooting your Android? With the recent announcement of an easy way to gain root access for Android phones running 2.3.4, to add to the list of similar exploits for earlier versions and 3.0 and beyond, it should come as no real surprise that the bad guys are taking advantage of the relative weakness of the Android OS when compared to iOS devices. [ATTACH=RIGHT]23200[/ATTACH]According to the latest FortiGuard Labs report looking at the top five Android Malware Families, there are approximately five times the number of malicious families on the Android OS as compared Apple's iOS. Of course, some of this will be down … +0 Code Snippet Square root extractor Hi.Someone asked a day or two ago for a way to extract the square root of a number without using the std::sqrt function so i thought about writing my own.Here it is and please feel free to criticize. +0 I prefer firefox over other internet browsers including iceweasel (and lets not bring that back up or get into a debate). I am semi-newer to linux but am a fast learner so bear with me.... I have downloaded firefox 5.0.1 from the site (for debian). Then I extracted the file in my Downloads. Then I moved the file to /opt (where others say it is susspose to be). From there I changed my directory to be opt and tried apt-get install firefox but I get this error: root@Mike-Debian:/opt# apt-get install firefox Reading package lists... Done Building dependency tree Reading state … +0 Code Snippet Newton-Raphson in C# I find C# very well suited for doing math and all sorts of calculations, so here is an example. Just start a Console application and fill in the code. Have fun! The code also shows a use of delegates and some Console functions. If you don't know what the Newton-Raphson iteration method is, you can look it up [url=http://en.wikipedia.org/wiki/Newton%27s_method]here[/url] There is much to be improved in my code: Could have asked the user for input, instead of hardcoding some values. Could have made a Forms app out of it. Etc. +0 Hi everyone! I am new to Ubuntu and Linux in general, and as is to be expected from such a disposition, have landed myself in trouble. I installed Ubuntu with WUBI and later created a new .disk file with larger capacity to accommodate the growing needs of my system. The new hard disk image has 11.04 on it (as does the old one), and it started shutting down unexpectedly a while back. Whenever I tried booting into that installation it took me to the grub command line. I tried many things to try to boot into the OS, but it … +0 Hi, I can't manage to set a root password no matter what I try. I've tried to uninstall and reinstall. I've tried to get the new version and replace the old one with it. I've totally deleted all mysql files off my machine and reinstalled mysql but I STILL get these problems: I've tried: mysqladmin -u root password "newPassword" But I get this error: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' I've tried: mysqld_safe --skip-grant-tables & But I get this error: 'mysqld_safe' is not recognized as an internal or external command, … +0 Hi all, can someone help me here - I ave a regisration script where I am uploading an image to mysql, The problem im having at the moment is this..... The script creates a new folder by using the mysql_last_id function as shown below - The problem im having is concatinating the image path to be the document root. ie. websitename.com/members/uploaded/12/image.jpg i have tried using $_server document root again as below shows, but the directory is not being created with server document root. document root option - directory being created as$lastid not id number of 12 [code] \$lastid = … +0 Hi all, I am working on a PHP project. Im having a problem giving the 'src' for a image, because the image file is placed outside of the www folder :(. Let me explain more. When I log in to my server using FTP logins, it gives the directory structure as below +--[B]www[/B] +--[B]project1[/B] -----+[B]www[/B] ----------[B]index.php[/B] -----+[B]resources[/B] --------+[B]additional[/B] ---------------[B]image.jpg[/B] +--oldproject +(some other folders) I can access my [B]project1[/B] directly through the browser using [B][url]http://hostname/index.php[/url][/B] That means [B]/project1/www/index.php[/B] file directly get executed by calling [B][url]http://hostname/index.php[/url][/B] (I really don't know how it is done, but it's working :)) Now I want to … +0 News Story Five *nix Myths Busted I love mythology and there's nothing like hearing a technology myth to make my day complete. Just today someone applied one of the following myths in a conversation with me. I didn't say anything but it gave me the idea for this post. Here are the five myths related to *nix systems that I hear most often when dealing with technical and non-technical people alike. You'd be surprised as to how often even the most technical people spout these myths to each other and to the unsuspecting and unknowledgeable bystander. I have to bite my tongue when I hear them. … +0 I'm building a Content Management System on my own in PHP & MySql. I thought it's a good idea that all CMS files to be stored secure on the server "before" www folder so that it can't be accesed from the browser (all cms files in one folder). In www folder it's only the TEMPLATE cause I want to separate template from CMS, separate folders. I can include *.php files from folder above but I can't include the JavaScript files and other files that are linked from forms. For example at login: my login form actions on "login.php" which is … +0 News Story Running a Root/Administrator Console from any Folder [COLOR=Red][B]This blog entry is regarding a registry hack for Windows XP. Be advised that twiddling with the registry requires care, and use the information here at your own risk. [URL="http://support.microsoft.com/default.aspx?scid=kb;en-us;322756"]Backing up[/URL] the registry before proceeding is adviced. [/B][/COLOR] This is a based on the [URL="http://www.petri.co.il/add_command_prompt_here_shortcut_to_windows_explorer.htm"]Add Command Prompt Here[/URL] tweak that is fairly common in the internet. What the original tweak basically did was, create a shortcut in the Directory/Drive Context Menu of Windows Explorer when clicked executes a command prompt with the clicked directory as current directory. This modification was created so that I could run a root console from … +0

The End.