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 …

Member Avatar
Member Avatar
+0 forum 7

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.

Member Avatar
Member Avatar
+0 forum 5

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.

Member Avatar
Member Avatar
+0 forum 2

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?"<<endl; cin>>n; cout<<"Insert the elements:"<<endl; for(int i=0; i<n; i++) { cin>>elem[i]; } C[0]=pow(elem[0],2); for(int j=1; j<n; j++) { C[j]=pow(elem[j],2); int i=1; while((i+j)<=n-1&&(i<=j)) { C[j]=C[j]+(-1)^i*2*(elem[j-1]*elem[j+i]); i=i+1; } cout<<"C"<<j<<":"<<C[j]<<endl; }

Member Avatar
Member Avatar
+0 forum 2

uploading web file outside doc-root issues I uploaded my file oustside the root directory while leaving only index.php in the public_html here is my directory structure /home/user /myweb_application ----> 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 <?php require '../myweb_application/web_index.php'; ?> 2: Inside /myweb_application i created 2 files for testing along with web_index.php making it 3 php files web_index.php <html><body> <li> <a href="test1.php">Connect test1</a><br><br> </li> <li> <a href="test2.php">Connect test2</a><br><br> </li> </ul> </body></html> test1.php <html> I am test 1 </html> test2.php <html> …

Member Avatar
Member Avatar
+0 forum 1

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 …

Member Avatar
Member Avatar
+0 forum 3

hello all i am a new member of this forum.how are you all

Member Avatar
Member Avatar
+0 forum 4

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

Member Avatar
Member Avatar
+0 forum 3

I am having problem on removing root, moving the lastnode to the new root and applying the downheap. Here is my code snippet #include <iostream> #include "heap.h" heap::heap() { data=new myvector<heapData> (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

Member Avatar
Member Avatar
+0 forum 2

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: <?php mysql_connect("localhost","Carlo","mypassword" or die(mysql_error()); echo …

Member Avatar
Member Avatar
+0 forum 6

hi frend how cn i give a newly install windowserver 2008 on my pc a root domain name.....so that i could do automatic deployment of printer configuration on group policy an so fourth on my pc

Member Avatar
Member Avatar
+0 forum 3

I was wondering the best way to implement a square root button. Below has everything from 0-9, the four functions, and a decimal and clear function. Dim valueOne As Single Dim valueTwo As Single Dim operation As Integer Dim answer As Single Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.TextBoxDisplay.Text += "1" End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.TextBoxDisplay.Text += "2" End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.TextBoxDisplay.Text += "3" End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal …

Member Avatar
Member Avatar
+0 forum 5

When a switch is selected as root bridge why are all ports on that switch in forward mode? I know switches that are connected to each other by two ports have one blocked port and one forward so theres only one why for frames to go so no loops are made.

Member Avatar
Member Avatar
+0 forum 2

I am using fedora. but I don't know my root password. how to I find my root password? If then how to I change my root password?

Member Avatar
Member Avatar
+0 forum 3

when I try to enter the C: root, it goes to C: \ Users \ PC1> 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

Member Avatar
Member Avatar
-1 forum 7

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.

Member Avatar
Member Avatar
+0 forum 8

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<stdio.h> #include<stdlib.h> #include<math.h> 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<sqroot) { d=d+2; comp=n%d; } if(comp==0) { sdivisor=d; } else { sdivisor=1; } system("pause"); return 0; } …

Member Avatar
+0 forum 0

Dear All, I have written a program that finds the integer whose square is closest to but greater than the integer number input as data. But it is giving me an erroneous answer. My algorithm is: 1. Select a number which is half the input number. 2. Square it and check whether it satisfies our condition. 3. Subtract one and square it and check whether it satisfies our condition. 4. Repeat 2 and 3 iteratively until a solution is obtained. Below is my code for the above problem. #include<stdio.h> #include<stdlib.h> #include<math.h> int main() { int n,m,input,powm,pown; printf("Enter a number"); scanf("%d",&input); …

Member Avatar
Member Avatar
+1 forum 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........

Member Avatar
Member Avatar
+1 forum 3

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 …

Member Avatar
Member Avatar
+0 forum 1

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.

Member Avatar
Member Avatar
+0 forum 1

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 …

Member Avatar
Member Avatar
+0 forum 1

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.

Member Avatar
+0 forum 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 …

Member Avatar
+0 forum 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, …

Member Avatar
Member Avatar
+0 forum 2

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 = …

Member Avatar
Member Avatar
+0 forum 3

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 …

Member Avatar
Member Avatar
+0 forum 11

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. …

Member Avatar
Member Avatar
+0 forum 30

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 …

Member Avatar
Member Avatar
+0 forum 8

[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 …

Member Avatar
+0 forum 0

The End.