Posts Tagged ‘lt’
How do i find my Authentication key for Linux?
I’m trying to delete a partition on my Linux and i totally forgot the Authentication key or code or whatever.
I’m not familiar at alll with Linux.
I totally forgot what it was though! :<
How to use GNU C Compile?
Join Date: Sep 2010
Beans: 1
GNU C Compiler not working
Hey guys. So I downloaded Linux just for the heck of it and decided I would try to learn some C in my spare time. So I found a tutorial, and the first code they told me to do was this:
Code:
#include <stdio.h>
int main()
{
printf( "I am alive! Beware.\n" );
getchar();
return 0;
}
So I copied it into gedit and saved it as "hello.c". Then I followed the instructions and opened up the Terminal and typed this:
Code:
gcc hello.c
And this happens
Code:
sam@sam-desktop:~$ gcc hello.c
sam@sam-desktop:~$
But when I go back to the file and screw it up by randomly erasing characters, it tells me what I did wrong.
I have no idea why this won’t work. I also am pretty bad at some of this complexer stuff (to me it’s complex) and anywhere I look online elsewhere people talk as if everybody knows how to do these things.
Any way to invoke a php script besides user clicking a button on a form?
The only way I know to run a php script is to put the name of the script in a <form action=""> tag. Are there any other options?
I have a situation where I would like to start a php script without relying on the user to press a button. I tried putting php code in a .html file, but when I load the file from the server it doesn’t execute any php.
Thanks,
Houyhnhnm
How do I add my conversion code to my pages?
I have a conversion code from Google Analytics, it says to paste it right before the </body> tag in every page of my blog. But I don’t know what this means or where to find this on my blog.
Can you instruct?
What do i have to configure to allow php to enable interpreting "<?" as the beginning of the script?
I am running php 5.3 in archlinux.
Can somebody please tell me how to INSTALL tar?
I know I need tar to unzip some files from my command line (winXP), and I downloaded the Gnuwin32\bin\tar.exe from the GNU website. How the hell am I supposed to INSTALL this god damn exe file?
I go to CMD and cd there and type tar.exe, it doesn’t like it.
I double clicked the tar.exe in its window and a blue CMD window blinked, but still the TAR is not working so I can’t use it to unzip files.
Any help would be highly appreciated.
Of course the problem is when I type :
tar xvf <filename>
it says tar is not recognized as an internal or external command…
Ok, maybe I have said this wrong. I want to be able to use tar command in windows, so I can unzip files with tar command, but when I type:
tar -xf filename
I get:
‘tar’ is not recognized as an internal or external command, operable program or batch file.
So I assume I have to download it first. I did that and now I all I am trying to do is to install the exe file.
How do I use this code to make a background image instead of a background color?
I am making a profile on a facebook application, but I don’t know much about html. I experimented by looking at the page source and found this:
<br /></div>
<br />
<br /></table>
<br /><div style="background-color: Black;">
<br /><center>
<br /><center><font size="4" color="white" font=”impact”><table style="background: transparent url("http://i532.photobucket.com/albums/ee329/siva0eminencija/untitled-1.jpg") repeat scroll 0% 0%;" valign="center" border="0" width="620" height="600"><td>
along with a bunch of other stuff. when i entered it into my profile it worked, my background became black. however, i’d like to use a background image from a url instead of just the black background? is that possible? also, is some part of this code unnecessary such as the "br"s? what do all the parts mean and how can i change them. thanks
How do I delete records entered in a "Textarea" from Mysql using php?
I have an HTML and php script, but it is only for single line Text, therefore only one record. How do I change the script to used data from a <textarea> and delete multiple records?
What is the correct way to add multiple PHP snippets to the top of a file?
Below is what is at the top of my page. In this case I have 2 snippets at the very top of the page.
———————–
<?php
(code)
?>
<?php
(code)
?>
Is that the right way to do it? Should I take out the first "?>"?
How can I call a javascript function from php?
I need to use php to determine whether or not to call the function and to pass it arguments. This is what I tried:
php:
echo "<Script language=’javascript’>";
echo "youwin(".count.");";
echo "</Script>";
The javascript function is:
function youwin(num)
{
alert("You win!! You are the "+num+"th winner");
return true;
}
For some reason the javascript function is not being executed. Any advice?
Thanks!