Programming :: C# Control Cannot Fall Through From One Case Label To Another?

Feb 27, 2011

I'm having this problem with this piece of code, and i don't really get what the problem is, maybe is because i am already too sleepy to concentrate enough but maybe

switch(plazo){
case 1:
plazo = 12;

[code]....

View 3 Replies


ADVERTISEMENT

Fedora :: F12 VFAT Volume Label Case Wrong

Feb 25, 2010

Under both Windows and Fedora 11, my USB flash drive was mounted using the volume label of "RBR Astro". Under Fedora 12, it now gets mounted as "RBR ASTRO". I like my old case. It's a small nuisance, but it also ended up breaking all my links to files/directories that I store on flash. How can I get the flash to mount while preserving case?

View 2 Replies View Related

Programming :: Perl Switch Statement Throwing Error Like Bad Case Statement (invalid Case Value)?

Oct 6, 2010

I've written a simple perl code to learn switches in perl.My code is pasted below,

#!/usr/bin/perl
$opt = 1;
switch($opt) {

[code]...

View 3 Replies View Related

Debian :: Umounting With LABEL=label In Fstab ?

Jan 31, 2010

I'm having trouble umounting partitions.

This is the entry I have in /etc/fstab for backup:

I can mount it ok:

But can't umount it:

View 3 Replies View Related

Programming :: GTK - Change The Font Of GtkButton Label?

Nov 15, 2010

I used gtk_bin_get_child to change the font of GtkButton label. It worked properly but when I added an image to the button it didn't work.

View 3 Replies View Related

Slackware :: Mkisofs -iso-level 1 Converts To Lower Case Instead Of Upper Case?

Oct 28, 2010

Kernel 2.6, Slackware 12.0
mkisofs 2.01

I do 'mkisofs -iso-level 1 -o image John Smith.txt'. Only an example. When I mount image, ls outputs john_smi.txt. So it has shorten to 8.3 and translated ' ' into '_'. This is in accordance with the manual, although it doesn't say the conversion will be done.

Quote:

-iso-level level
.........................
With all iso9660 levels from 1..3, all filenames are restricted to upper case letters, numbers and the underscore (_).
...........................

However, as it did not reject the file name, it should have converted it to all upper case, it seems to me. And -iso-level 2|3 does the same thing.

Code:

root@darkstar:~# mkisofs -iso-level 1 -o image John Smith.txt
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0

[code]....

View 5 Replies View Related

General :: Difference Between 'LABEL=/1' And 'LABEL=/'

Jun 2, 2010

I have to configure "Oracle Ent Linux 5" in different two server.

After installing the server ,I observer that the grub loader entry are different like:

Machine 1:

Machine 2:

Here , I don't understand the difference between 'LABEL=/1' and 'LABEL=/' .

View 1 Replies View Related

Programming :: Generic Case In C ?

May 14, 2010

As you know that GNU-C provides qsort() function in <cstdlib> in this prototype

Code:

You may know about Selection Sort Algorithm already, I want to write a function to perform Selection Sort but it can apply generally for many type: int, long, float, double... like qsort() above.

View 14 Replies View Related

Programming :: Setting No Case Sensitivity In As?

Jul 9, 2011

GNU assembler 2.17 (invoked as 'as').

Is there a way of setting no case sensitivity in as?

View 3 Replies View Related

Programming :: BASH - Regex In A Case Statement?

Jun 9, 2010

the following works and BASH doesn't complain, but VIM highlights the closing square bracket is if it sees a syntax error. Is there a better way to express regex in a case statement or is this an issue with VIM?

Code:
#!/bin/bash
case $1 in

[code]...

View 3 Replies View Related

Programming :: Change Variable In Case Command?

Aug 7, 2010

I want to display 4 options using the case command and refresh the screen when options 1 and 2 are chosen (no changes to the options and you get asked again to chose option), but give a message for option 3 and exit on option 4. I set this up with the script below, but choosing option 1 works and choosing option 2 exits the script.

Code:

#!/bin/bash
#testing options
Option="0"

[code]....

View 7 Replies View Related

Programming :: Escape '*' In Case Statement Bash

Jan 23, 2010

Does it possible to escape * in the case statement

Code:

View 2 Replies View Related

Programming :: Any Option To Make GCC Case Insensitive

Jul 11, 2010

I am working with a third party that use windows to compile. When we port that code I am running into a lot of case issues where the includes are not case sensitive. Is there any option in GCC to make it case insensitive. I know its a long shot, as I have done reading and does not seem so.

View 1 Replies View Related

Programming :: Change To Lower Case And Concatenate The First And Last Names?

Nov 28, 2010

I have a file like below. For all the lines (except for the ones listed as 'Unknown Owner' and N/A') I would like to change to lower case and concatenate the first and last names.Before:

Code:
aaa.bbb.ccc.ddd,Unknown Owner
ddd.eee.fff.ggg,N/A
hhh.iii.jjj.kkk,John Doe
aaa.bbb.ccc.ddd,Mary Jane

[Code]...

View 4 Replies View Related

Programming :: Case Statement Passing Multiple Arguments?

Aug 7, 2010

I've started dabbling with the case statement in order to pass some option's arguments into variables. I do not think I am doing this right.

Code:

usage() {
echo "Usage: $0 [-z|--snooze] [-c|--channel] [-p|--playlist]
[-m|--message] [-v|--mpcvolume]"

[code]....

As you can see, I want to pass arguments depending on the option(s) chosen by the user; ie. --snooze, or --channel. By default, if no options are chosen, I'll display a usage message; though in the future I'll provide some sane defaults. I'd like to create a case statement to handle passing arguments to any number of options; something like:

Code:

wakethehellup.sh --snooze 20 --message 'wake up!'

and for the other arguments, it would have a default set. The case statement I provided fails with a syntax error "syntax error near unexpected token `$2'" near the '--snooze' in the statement, so I take it you can't pass a parameter in this way; but I'm confused as to how I'm supposed to pass different parameters to different options without the options being confused as parameters.

View 2 Replies View Related

Programming :: Certain Book Search - Checking Of Case Insensitive

Jan 19, 2010

I am trying to do a search for the certain books, and I am trying to make it case insensitive. what I have come up with so far is this :

Code:
Database.txt
RETARDED MONKEY:RACHEAL ABRAHAML:30:30:20
GOLD:FATIN:23.20:12:3
StUPiD:JERLYN:20:40:3

Code:
echo -n "Title: "
read Title
echo -n "Author:"
read Author
echo ""
valuecheck='grep -i "$Title" Database.txt | grep -i "$Author" | awk -F":" '{ print $1}''
echo $valuecheck
if [ $Title = $valuecheck ] ; then
echo "HOHOHO"
else
echo "too bad"
fi

The issue which I am having is that, when it does the search for the correct row to be inputted into valuecheck, it will input the value as written in the database, which is in Uppercase. For this case, if I type in stupid for $Title and jerlyn for $Author, it searches the correct row, but the awk will print "STUPID" into the variable as that is what is written in the database. So how can I make my if statement case insensitive? Currently it reads like this:

Code:
if [ $Title = $valuecheck ] ; then
which means
if [stupid = StUPiD ] ; then

How can I make the if statement it case insensitive to allow it to display "HOHOHO"

View 5 Replies View Related

Programming :: Do Not Miss Any Cases While Making The Test Case Doc?

Jul 28, 2010

Few months back I learnt a *few* concepts about bits/bytes and started writing a program for bit packing in C++. Now that program has grown upto 600 lines and I am still working on it. Yesterday I realized I missed some special cases due to which the program was malfunctioning. Now I have modified the program and it is working properly but I think If I would have designed all the possible test cases before writing the code, I would have finished the program long ago.

I. What is proper way to design the test cases before coding?

II. How should I make sure that I do not miss any cases while making the test case doc. ?

III. Does writing test cases prior to coding solve messy code issues or should I consider something else ?

View 8 Replies View Related

Programming :: Ignore Case In If Statement Shell Scripting

Feb 3, 2010

How do i make my strings case-insensitive while comparing them with an if statement?

View 2 Replies View Related

Programming :: No Debugging Symbols Found (not The Simple Case)?

Jan 6, 2011

I wasn't sure where to put this so if I need to move it just let me know.I have a strange problem that I cannot figure out. When I use gdb to debug our rpm-installed program, it says (no debugging symbols found) when it loads. Thing is, when I use nm on the program it can print the symbols, and even stranger is if I use gdb on the program before it is packed up by rpmbuild it loads the debug symbols just fine.Our program is built via the standard make using:GS=-g -Wall-pedantic and as I mentioned I can debug the resulting program. After the build, I package it up using:

cmd="rpmbuild -v -bb ptsnmp.spec --define "ver ${cmvc_release}" --define "rel ${cmvc_level}" --define "_topdir $rpmdir""When this package is installed via rpm, the binary on the machine shows all the debug info via nm, file shows it is not stripped:pt_snmp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not strippedyet when I try to debug it I get the no debugging symbols found.This is really taxing my brain and I am sure I am just missing something

View 4 Replies View Related

Ubuntu :: Error - Set A Valid User Name Consisting Of A Lower Case Letter Followed By Lower Case Letters And Numbers

Mar 12, 2010

I tried to add my wife , and when I put in a password for her, this error comes up."Please set a valid user name consisting of a lower case letter followed by lower case letters and numbers." I did all that and I still can't set a password for her.

View 3 Replies View Related

Ubuntu :: Fall Out From Upgrade To 10.10?

Oct 16, 2010

What does this mean? E: prelude-lml: subprocess installed post-installation script returned error exit status 1

View 3 Replies View Related

OpenSUSE :: Desktop Effects Fall Apart Stopped With 11.4 Upgrade

Mar 16, 2011

Frivolous, I know, but you can't imagine how many winbloz users see this on my laptop and ask how they can get openSuse.

View 4 Replies View Related

Networking :: Write A Little Script Which Displays A Message When Fall Offline?

Apr 6, 2010

My provider sometimes kicks me and assigns a new IP address.I'd like to write a little script which displays a message when I fall offline. What is the most reliable way to check whether I'm offline with a (bash?) script?

View 2 Replies View Related

Fedora Installation :: Gnome3 In 15 Failed To Load And Started In The Fall Back Mode?

May 25, 2011

I am installing fedora 15 in vmware 7.1.4.It tells me "Gnome3 failed to load and started in the fall back mode" when accessed in live-cd.Ever since fedora 15 beta or any other distros take gnome3 as default destop,I haven't experienced a beautiful normal gnome3

View 14 Replies View Related

Ubuntu :: (Wine 1.2) World Of Warcraft Fall Of The Lich King: Blank Screen?>

Mar 31, 2010

I have a problem with WoW 3.3, when it starts I get a Black Screen, but I can hear the sound, and the windows responds to keypresses (like, pressing Esc exits the game, o when I press enter I hear the sound of logging in).I have a Lenovo G530, with Intel GMA X4500 as display processor. I think that the drivers are working fine, as I can run all the OpenGL games without problems. I have Ubu 9.10 and Wine 1.2. I've tried many solutions posted on this forums and WowWiki.When I run the game from a console with wine "/home/xxxx/Storage/Games/wow3/Wow.exe" -opengl -windowed, it outputs:

Code:
fixme:advapi:SetSecurityInfo stub
archive DataenGBpatch-enGB.MPQ opened

[code]....

View 1 Replies View Related

Programming :: Control Characters In C

Feb 16, 2009

I'm working on my ncurses application, written in C. I get user input through a loop which uses getchar(). I was able to recognize Ctrl-n by comparing the keypress to ASCII character 16, and this seems to work fine. However, if I noticed that the ASCII character for Ctrl-j (10) is the same as the Line Feed. I tested this, and if I press enter on the keyboard I get the same ASCII value as when I press Ctrl-j.

So, what do I do if I want Ctrl-j to mean something different in my program than pressing enter?The ncurses terminal mode is set to raw, with a 100 millisecond timeout, and keypad is on (I'm already using the up and down arrow-keys).

View 1 Replies View Related

Programming :: Control VI With Tcl And Expect?

Mar 7, 2011

I'm using expect to log into a remote server and run a script. I want to able to have expect edit the output from that script, on the remote server, in VI. Has anyone ever done this before, it seems as though the expect interpreter has nothing to expect once VI is started, the file pointer starts at the beginning of the line, and expect usually reads the characters before the pointer.

spawn ssh user1@$remote_server
expect "password: "
send "$password

[code]....

View 2 Replies View Related

Programming :: GDB (Control C) Command Not Working

May 12, 2011

I've just started using gdb at my new job, and I'm having a small issue debugging C++ with it. After I execute "continue" or "run" through gdb, I'm not able to return control to gdb. Based on the documentation I read, I should be able to use Control-C to interrupt the program, and have control return to gdb.

This does not work on my setup. Not sure if it's related, but I'm debugging on a remote machine. I tried through PuTTY and xterm using Exceed XServer. In both cases, gdb does not respond to Control-C. This is quite annoying because I have to restart my program every time I want to set a breakpoint.

View 2 Replies View Related

Programming :: Hosting Cp - How To Control Apache2 Via Php

Apr 23, 2011

**Forenote** i HAVE posted the other threads with the same intro of "hosting cp - " for the subject. I am attempting to create a web based hosting control panel and i figured that it would be easier & less confusing to post each different issue in a different thread so that answers to several differant problems weren't getting mixed up together. Ok, so as i said i'm building a hosting control panel and i need to figure out how to make my software control the functions of apache2. like setting up virtual hosts, sub domains, domains, etc.

if anyone can direct me to some good articles on interfacing with apache, or some open source projects that i could try to reverse engineer, that would be great. ive tried searching google, but i couldnt really find anything that really explained what i am trying to do. probably because most people usually dont try to use php to control apache as a weekend project, or a task to pass the time.

View 3 Replies View Related

Programming :: Running Commands In Control Structures?

Apr 25, 2011

how to run a linux commands in shell programming using control structures.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved