LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Really tiny executable

Posted 02-01-2012 at 04:23 PM by hydraMax (Bits and Pixels)

Thought this was neat:

A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux

The author uses assembly and ELF-hacking to make a binary as small as possible while still doing something useful (returning a value). Goes step-by-step through each hack.
Member
Posted in Uncategorized
Views 4819 Comments 1 hydraMax is offline
Old
Rating: 2 votes, 5.00 average.

How to reverse a linked list? - C

Posted 02-01-2012 at 06:49 AM by TheIndependentAquarius



Code:
void reverseLinkedList ()
{
	linkedList *pointer1;
	linkedList *pointer2;
	
	pointer1 = NULL;
	pointer2 = head->next;
	
	while (pointer2 != NULL)
	{
		head->next = pointer1;
		
		pointer1     = head;
		head         = pointer2;
		pointer2     = pointer2->next;
	}
...
Attached Files
File Type: txt reverseLinkedList.txt (1.8 KB, 5 views)
Senior Member
Posted in Data structures
Views 1626 Comments 0 TheIndependentAquarius is offline
Old

mount error 13 permission denied

Posted 02-01-2012 at 05:48 AM by linuxpandi

Dear All,

When I tried to mount a folder in windows to Linux using
mount -t cifs //ipaddr/foldername /home/folder -o username=<username> and hit enter it asks for password after giving the password it shows "mount error 13ermission denied"

I have share the folder with full control to everyone in windows pc.

Please let me know how to solve this issue
LQ Newbie
Posted in Uncategorized
Views 1007 Comments 0 linuxpandi is offline
Old

Fix: browser downloads PHP file instead of running it (Debian Squeeze)

Posted 01-31-2012 at 03:39 AM by catkin

This problem took nearly a day to solve so here's the solution.

The problem symptom was with nagios3. After browsing http://<server>/nagios3 and logging on, Firefox opened a download dialog with said "You have chosen to open <blank line> which is a: application/x-httpd-php".

Looking for nagios-specific solutions was not fruitful. It was only when I searched for solutions to the browser downloading PHP files instead of running them I found solutions...
LQ 5k Club
Posted in Uncategorized
Views 2123 Comments 0 catkin is offline
Old

Slackware-13.37-Hacks-Turning Off Services

Posted 01-30-2012 at 08:18 PM by arniekat

These are all of the Services that are available upon Installation. It is better to deactivate them upon the initial Slackware 13.37 installation, however in this tutorial will go through deactivating services as an exercise.

Confirm startup services to run

[ ] rc.atalk
[ ] rc.bind
[ ] rc.cups
[ ] rc.dnsmasq
[X] rc.fuse
[X] rc.hald
[ ] rc.httpd
[ ] rc.inetd
[ ] rc.ip_forward
[X] rc.messagebus
[ ]...
LQ Newbie
Posted in Uncategorized
Views 3267 Comments 2 arniekat is offline

  



All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration