Programming :: Is There Pseudocode Comment Convention?
Nov 18, 2010While writing pseudocode is there a convention for writing comments within the pseudocode?
View 4 RepliesWhile writing pseudocode is there a convention for writing comments within the pseudocode?
View 4 RepliesWhat's most commonly used and what do you prefer? C-Style (this_is_my_function), Camelcase 1 (thisIsMyFunction), Camelcase 2 (ThisIsMyFunction
View 10 Replies View RelatedIs there any document or specification like the Linux Standard Base for the naming convention of commandline options?
View 3 Replies View RelatedI want to know that how can i search for a word in a file and then comment it or delete it. I know this command works.
sed 's/word/#word/'g inputfile > outputfile
But the lines in my input file are as under:
zone "abc.com" { ---- This line can be comment
type master; ----- This line repeat again and again in the file
file "abc.txt";
allow-query { any; }; -This line repeat again and again in the file
};
I want to know how can i comment a certain zone.
I have multiple HTML files in a folder. there is a <h2> tag like this:
Code:
<h2>some text</h2>
in each file. I want to write a shell script/batch file to add this tag in <head> section of each file:
Code:
<!-- TITLE= "same text from h2 tag" -->
Note that <h2>some text</h2> in some files has 1 or more linebreaks and so I couldn't capture tag content using a simple grep or...
for example:
<h2>first part of text
second line of text</h2>
The line break shouldn't be shown in <!-- TITLE= "same text from h2 tag" -->. The script has to capture tag content & skip line breaks.
If /mnt & /media are for temporary mount points and removable drives, what is the usual convention for locating permanently mounted partitions for all users on the computer? e.g. I have a partition for photographs, I'll just call it "photos" would it be bad form to mount it as /photos or something like /my_hdd/photos ?In practice it probably won't matter, but I want to make sure it's easy for anyone else to perform admin tasks on the computer when I'm not available.
View 2 Replies View RelatedI just installed Fedora 12 and grub is not working for me. I have 2 physical drives, and installed Fedora on sdb (win xp is on sda). I picked the option that the computer booted from sdb when I installed. I then went and switched the boot order in the bios so that the computer would boot from sdb. Now Fedora boots fine, but when I try to boot into windows I just get a blinking cursor. I tried booting to windows manually (via picking that drive from the bios options) and that works fine.
I tried to edit grub.conf, but wasn't sure how to address the appropriate hard drive. How do I know what to fill in? The linux drive is (hd0,0), and grub tried to make windows (hd1,0). How do I know what to put in (hdx,y) for the windows partition? Grub tells me I have a /boot partition so everything is relative to that.If I'm way off base, please let me know. Is there a way I can just re-run grub so that it looks for everything anew? I also looked at device.map and sda is hd0.---------- Post added at 02:42 PM CDT ---------- Previous post was at 02:37 PM CDT ----------If it helps, this is my grub.conf:
Code:
# grub.conf generated by anaconda
#
[code]....
Some programs will take options like this:$ someprogram -orange apple
And other programs will use something like this:
$ otherprogram --orange apple
Is there a "rule" or convention for this in Linux/Unix/OSX?
Where would i find the list of distribution codes.For example.Code:samba-32bit-3.4.2 -1.1.3.1.x8664.rpmIn above rpm file it is indicated that its release is 1.1.3.1 .The rpm is meant to be run for opensuse.Where would i get the linking of release number and In simple words How would i guess distribution by merely looking at rpm name?
View 2 Replies View RelatedJust upgraded from Lenny to squeeze, and noticed that the comment in /etc/fstab, and it says that I should use vol_id to find my UUID, but shouldn't it be blkid? My system can't find vol_id?
View 6 Replies View RelatedHas any folk used following WD HD before?
WD Caviar Green
SATA Hard Drives
1 TB, SATA 3 Gb/s, 64 MB Cache WD Caviar Green 1 TB SATA Hard Drives ( WD10EARS )What will be your comment. I never used WD HD before only Seagate HD. I like this WD HD because it has 64MB cache. Its price is more or less the same as Seagate and other brand HDs of same storage capacity.
I've been using openSUSE for some time now 10.x to 11.3, there is always badly translated things. In this case the timezone shows "Ciudad de Mexico" as "Ciduad de Mjico"Just for the comment, other users could find more stuff in the subject
View 5 Replies View Relatedhow can i add a comment to specific line with sed?
View 2 Replies View RelatedI have a large text file and I have some comment lines in it beginning with $.
Now here is the challenge there are some lines where there is actually a written comment after $ (with some blanks between)
Then there are lines with only $ on it - with maybe some trailing spaces.
I would like to delete these dummy lines...
Lets say from
$ This is valid comment
$
$
$
[Code]....
I'm planning to partition a new hard drive to dual-boot Mint+Mepis. I've read partitioning tutorials and posts, and want to check my understanding--I'd appreciate input from an experienced person.For 500GB hard drive, dual-boot Mint+Mepis:
--Mint: / root partition for OS; /home partition for ease of upgrading
--Mepis: same as Mint
= four partitions
And:
/swap partition to be shared between Mint+Mepis
/shared partition for shared data
= two partitions
Total = six partitions
Since four primary partitions are allowed, I should use three primary partitions and one extended partition containing three logical partitions.Is that correct?If so, what should go where? I assume there's an optimal strategy--Should each /root of Mint+Mepis go in a primary? What should go in the other primary, and in the three logicals? Or maybe I don't need three primaries?--use two primaries and four logicals?
I recently installed F15 on my laptop. Earlier today I updated a little bit more than 500 different things, and then rebooted. Upon seeing the GRUB menu, I saw that one of the updates added a newer menu entry for Fedora- the newer one's version was a fraction higher than the older menu entry.Anyways, is it safe for me to comment out the old entry in /boot/grub/menu.lst?
View 6 Replies View RelatedHave spend I while searching the net for at PDF annotator for Linux, but can't seem to find any. Most of the forum and blog post I found on the subject suggested different programs, Common for these though, is that they don't do annotations in the pdf, but rather import the pdf as a background for writing on top and then saving your notes separately. This have to problems:
1. You can't comment a pdf and mail it to your co worker.
2. You can't switch between programs freely...
As far as I know the pdf format has capabilities for annotations/comments. So anybody know how to take advantage of this, for note taking? My use for this would mostly be notes on slides during lectures etc.
How do yo find a pattern with sed or awk and then:
- add a # at the beginning of the line containing it
- and add a # at the beginning of the following 2 lines, too?
Say, I want to comment out the line containing "which 0launch" and the two lines following it:
if [ -x "`which 0launch`" ]; then
exec 0launch http://rox.sourceforge.net/2005/interfaces/ROX-Filer -S
fi
Expected result:
#if [ -x "`which 0launch`" ]; then
# exec 0launch http://rox.sourceforge.net/2005/interfaces/ROX-Filer -S
#fi
I need this because I do not want to comment out every line containing "fi", just the "fi" of this specific if statement.
I have this line in my in a .sh file:
Code:
#!/bin/bash
...
[code]....
This n00b is having a weird situation during dist-upgrades that I've never seen before. It's puzzling my more-experienced pals in an irc channel, too.
Sometimes--not every time--while running a dist-upgrade outside of X on my Debian Testing machines, I get an informational text display (a comment box?) that always ends with the text "(END)". The display freezes there, and I am given no opportunity to respond and let the upgrade procedure continue.[URL]..
I've tried pressing escape, the space bar, enter, arrow-keys... nothing changes (I get system beeps with each keystroke). If I Cmd+C, I get a root prompt back, but any characters I type are not displayed as I type them. For example, I can type # "shutdown -r now", and the machine will shutdown --but the characters are not displayed as I type them.
If I immediately restart, go into a regular X session, and run synaptic, I get the same comment--but in a window with a "Close" button that I can click. The upgrade will then continue [URL].. This has happened on at least 3 different boxes, all running debian testing. Under gnome and xfce... Probably with 4 different packages in the last 3 weeks?
This morning it happened on a new debian testing install, and just now it happened -- with the identical package -- on an older debian testing install on a different box.[URl]..
Well I use Shotwell Photo manager for all my photos and I love the app but I can't comment on the photo for a slideshow. So I want to put around 300 or so photos in a slideshow and put comments on them but I dont want to import each photo individualo to OO presenter.
View 1 Replies View RelatedI need to add a comment to /etc/passwd using usermod, but everytime I do it tells me that I can't modify a user in the LDAP database without DN. What is DN?
View 7 Replies View RelatedI have installed the astercc box it is running by centos 5.2 and i want to add some text to the " login page " i dont know how its called but when i start the pc when everything is been loaded it ask for the user and password And in top of it i want add tekst there,
View 5 Replies View RelatedIP Tables Comment Module Causes COMMIT Fail
/etc/sysconfig/iptables:
*filter
:CHAIN_X - [0:0]
[code]....
I agree that this is a problem in making every NTFS partition a boot selection option in your grub menu.lst file during the installation of openSUSE. Someone should consider asking help from please_try_again in the openSUSE forums on how to find a bootable Windows partition and add that fuction to the openSUSE installer. Here is a pointer to the findgrub article here.
Looking for Grub and Windows bootloader in all partitions.The basic situation is that there is normally is only ONE booting copy of Windows, so why would you create three or four menu entries due to the number of NTFS partitions found on a hard drive? Finally, just as indicated by Jean-Daniel Dodin, If one of those partitions in the restore partition and a user boots it, it could be all over for the user copy of Windows, for the openSUSE install and for ever getting this user to try openSUSE again.
I'm trying to clear a bit of space in my overstuffed filing cabinet by scanning all my bank statements, credit card statements, insurance, important post etc. into my computer.
I've been looking for a very simple document management system, where I can record the category (bank statement etc.) date, comment, etc.
I don't want to make these accessible via the internet and I really don't want to hand them all to Mr. Google, via googledocs, because he already has enough info about me without reading my bank statements.
I tried installing 11.4 from the live CD on a new motherboard (ASRock N68C-S UCC) and the very first screen (license agreement) comes out so garbled that I can not read anything from it. I tried to run rather then install from the live CD, with the same result.
Hitting F3 and changing the resolution to 800x600 still did not fix this. I find it surprising, because I would expect the installation process to use low quality graphics and therefore not be too bothered about the specifics of the graphics chipset (NVidia GeForce 7025 / nForce 630a in this case).For reference the machine has 1 GB ram.There is no such problem with the 11.3 live CD, which is what I ended up using. So no problem in terms of getting the PC up and running.
I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.
So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?
Why and what is the main difference between them?
Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
View 1 Replies View RelatedI did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better
View 1 Replies View Related