I've just finished my 100% total move from Windows after 2 years of developing on two different systems, one Slackware and one XP. I have come away from Slack because it was just taking too long to maintain the rapid advances in development tools and have now moved onto Ubuntu full time.
The last tool I was using on Windows was Dreamweaver, and not for editing (I had Bluefish for that) but for the HTML validation that worked offline. Thing is, I now can't find anything similar on Ubuntu. I've no idea how to get the W3C Validators working offline and the last two add-ons I tried with Firefox didn't work. Anybody know of any packages with reliable HTML and CSS validation that works offline? An offline link checker would also be useful.
sudo mkdir /etc/adobe=(created a directory in /etc named Adobe)correct?echo "OverrideGPUValidation=true" >~/mms.cfg=(created a text file in my Home directory named mms.cfg which contained the text...OverrideGPUValidation=true...correct?sudo mv ~/mms.cfg /etc/adobe/=(moved from my Home directory to /etc/adobe mms.cfg) correct?These commands were part of a flash tutorial but they did not work.So I cd'd into etc and using sudo tried rm -r /adobe. Basically Iwant to undo what those 3 commands did.Link to tutorial=(Flash in fullscreen is choppy, completely white or crashes)[URL]
I have just installed NS2.34 in my Ubutun 10.04. I have installed it successfully, but I got some failures in validation.
Validate overall report: all portable tests passed but some non-portable tests failed: ./test-all-srm ./test-all-smac-multihop ./test-all-hier-routing ./test-all-algo-routing ./test-all-mcast ./test-all-vc ./test-all-session ./test-all-mixmode ./test-all-webcache ./test-all-mcache ./test-all-plm ./test-all-wireless-tdma
I read the post of [SOLVED] Validation failed in NS2.34 in ubuntu 10.04 remix and followed the steps there. But, the same problem remains. I think the problem may be due to my 64-bit operating system.
I have installed Ubuntu 10.04 remix in my new hp mini 110 netbook and I have succeeded in installing NS2.34 after a so many trials but now after running ./validate some of the tests have failed. Is my ns2 installation not successful?
Some non-portable tests also failed: ./test-all-srm ./test-all-smac-multihop ./test-all-hier-routing ./test-all-algo-routing ./test-all-mcast ./test-all-vc ./test-all-session ./test-all-mixmode ./test-all-simultaneous ./test-all-webcache ./test-all-mcache ./test-all-plm ./test-all-wireless-tdma ./test-all-satellite to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
Notice that some tests in webcache will fail on freebsd when -O is turned on. This is due to some event reordering, which will disappear when -g is turned on. I tried to run the test individually one after another, but that is too time consuming, it prompts for permission after every test and thus runs many test & opens a lot of xgraph window. The tests I run so far individually, agreed with the reference output. Now I am wondering, should I report a bug about it, or should I hire a kid to run those failed 40 tests( which require hitting the ENTER key 1200 times,maybe ), or what else should I do.
This question is regarding squid based security. We would like to enforce browser security onto our users and would like to know if anyone has performed this. Our goal is to check a users browser version/plugin level before allowing them to access the internet in our organization. If their browser does not meet a standard compliance level such as patches or if they are using i.e. 5.0 we would redirect them to a page telling them that they need to update their browser before access will be permitted. Has anyone performed any types of checks like these?
I want to validate a web form using PHP. I spent ages confusing myself with client side scripting and realised until I worked out it is not what I want. My problem is that now I am looking at PHP and everything is mixed up in my brain. I need to point out that PHP is very new to me! This is what I already have: 1 An html page with my form on it. 2 PHP page which emails the contents of the form to me.
The above works well. For the sake of clarity, here are my pages (cut down to the essentials where appropriate): My html form: first name surname Email Home phone Mobile Work phone
I have read and understood your terms and conditions. My php script (regform.php) $receiver = 'me@email'; $subject = 'New registration'; #$message = 'This is a new registration.'; $surname = $_POST['surname']; $firstname = $_POST['firstname']; $address = $_POST['address']; $email = $_POST['email']; $homeph = $_POST['homeph']; $mobileph = $_POST['mobileph']; $workph = $_POST['workph']; $time = $_POST['time']; #from here $oldaddress = $_POST['oldaddress']; $DOB = $_POST['DOB']; $elect = $_POST['elect']; $job = $_POST['job']; $salary = $_POST['salary']; $employer = $_POST['employer']; $benefit = $_POST['benefit']; $smoke = $_POST['smoke']; $claim = $_POST['claim']; $children = $_POST['children']; $children2 = $_POST['children2']; $pets = $_POST['pets']; $pets2 = $_POST['pets2']; $require = $_POST['require']; $terms = $_POST['terms']; $rooms = $_POST['rooms']; $body = "first name:$firstname surname:$surname DOB:$DOB email:$email home phone:$homeph mobile phone:$mobileph work phone:$workph address: $address time at this address:$time previous address:$oldaddress electoral register:$elect employment:$job employer:$employer salary:$salary benefit claim:$benefit future benefit:$claim children:$children ages:$children2 pets:$pet pet type:$pets2 other requirements:$require terms:$terms"; $headers = 'From: email' . " " . 'Reply-To: email " " . 'X-Mailer: PHP/' . phpversion(); mail($receiver, $subject, $body, $headers, "From: $firstname $surname " . "Reply-To: $firstname $surname class="inlineimg" />;
You can see there are many more form fields than I have shown in my example html form above. What I want is that the following fields have to be filled: 1 mobileph 2 email 3 terms (checkbox) I would like the user to be asked to fill the form in properly if any/all of the 3 fields have not been filled in. I imagine I need some php in the html page and some more in the php page. I am certainly not asking any one to do this for me but I am really confused. I have googled and copied and pasted and edited for 6 hours and I am lost. What I want is a very simple and clear example of the code needed. Sorry if I sound as if I can't search properly on Google: in this case I clearly can't!
I'm writing a code to get the index of the last occurrence of a given substring in a string.
Code: int StringHandler::lastIndexOf(string src, const string s) { unsigned int lastIndex = string::npos; if (src.find(s, 0) == string::npos) { return -1; } else { bool isLast = false; unsigned int i = 0; do { lastIndex = src.find(s, i); if (lastIndex != string::npos) { i = lastIndex + 1; if (i == src.size()) { isLast = true; } } else { isLast = true; } } while (!isLast); } return lastIndex; }
My problem is: execution steps into an if with a false condition! Check the values of i and src.size() at the right panel. How could be possible for the program to run the highlighted statement? The if condition above is false! [URL]. I could use char arrays, for example, but this kind of false validation has happened to me more than once, I'm using G++ 4.5 with these flags: -O0 -g -Wall -c
I am doing a perl script validation for Phone numbers. The normal phone number format is 01-32145. I need to do two validations for the phone number
1) A valid phone number can have at least two digits as prefix and at least five digits as postfix. e.g. 01-01011 2) A valid phnoe number can't contain only the digit "0" in either area code or phone number e.g. 00-11111 or 01-00000 is not allowed.
I am able to do the first validation, but not the second. I am pasting my code part here. How to add the second validation inside my current code.
open(TMPOUTPUT, "<$tmp_output_file") or die "Can't open output"; open(OUTPUT, ">$output_file") or die "Can't open output"; while ($line = <TMPOUTPUT>) { $line =~ s/ + //; ($cur_phone, $xxxxxx, $xxxxxx) = split(";", $line); ($cur_phone_prefix, $cur_phone_postfix) = split("-", $cur_phone); $length_prefix = length ($cur_phone_prefix); $length_postfix = length ($cur_phone_postfix); if ($length_prefix < 2 || $length_postfix < 5 ) { print "Invalid phone number: $cur_phone "; } else { print "Valid phone number: $cur_phone "; } } close TMPOUTPUT; close OUTPUT;
I am having a huge problem checking the data I input to make sure it is correct. What I am trying to achieve is when I input a value, it will check if the input is all digits and if it is not, check to see if it contains certain alphabets. Thus for example, if I were to input in data such as "11A" , the program will then inform me "There is an important alphabet in the program." This would be my expected output. Here is the program I have wrote...
Code: int test(string r ){ const int arraySize = 10; char array2[arraySize2] ={'A','B','E','F','G','H','J','K','N','O','P','Q','R','S','T','U','W','Y','Z'}; for(int cntr = 0; cntr <r.length(); cntr++) if(!isdigit(r[cntr])){ for(int new1 =0; new1<arraySize2;new1++) for(int cntr1 = 0; cntr1 <r.length(); cntr1++) if(array2[new1] == r[cntr1]){ return 2; //will return2 when it finds the same // char in the array and the string r. } else{ return 3; //will return 3 when there is a char //in the string which isnt in the array } } else { return 1; // will return 1 when string is all digit. } int main() { string r = "11D"; test(r); if(test(r) == 1) { cout << "ALL ARE DIGITS" << endl; } if (test(r)== 2) { cout << "There is an important alphabet in the program." << endl; } if (test(r)== 3) { // testRoman(r); cout << "There is an Alphabet in the String which is not in the Array" << endl; } }
So, the problem I am facing is when I input in data such as 11 or A , the prog will come out the right input. But if I were to put in data such as "11A" , the output coming out will be "ALL ARE DIGITS". The problem which causes this seems to be in the return statement , as once as it finds the first char which is a digit, it will then return 1 and not continue checking the rest of the string. Is there a way I can stop or continue a loop if it has met the condition I stated? What I can do or any other way available for me to check my input?
Some minimized apps no longer appear in the top menu and by that are no longer accessible.For example firefox with the minimize addon or Jungel Disk backup service.How can I reach apps that minimized them self and are not shown in the top menu?
I've no internet in my home, But I wish to install some applications (Like VLC, WINE, ...) for my system. How do I download these installations files from another PC? If you can state the links of VLC & WINE, it'll be good.
I am having a computer attached to internet and is updating regularly using update manager. Is there any way to update the other computers which are not connected to internet?
when i upgraded my PC to 10.04, i had to add a new entry to the network interface file so it would connect to the Internet (auto etho etc.) since then firefox 3.6.3 always as being offline. each time i uncheck it then next time its offline again.
Tell me some way to upgrade from Ubuntu 10.04LTS to 10.10. But in Offline mode? is there any package or iso image or CD by which i can upgrade my offline PC?
I know I can build a local repository but I'd like to try just moving the appropriate .deb files. My problem is not knowing which files I need and it what order. Example... I want to install nfs-common
Doing apt-get install nfs-common --- does it all for me when I'm online. So I looked in the /var/cache/apt/archives to see what was installed. I found two nfs files... nfs-common_1.2.0-4ubuntu4.1_amd64.deb nfs-kernel-server_1.2.0-4ubuntu4.1_amd64.deb
But when I tried to install those on another machine I found I was missing additional files. libgssglue1_0.1-4_amd64.deb libnfsidmap2_0.23-2_amd64.deb librpcsecgss3_0.19-2_amd64.deb portmap_6.0.0-1ubuntu2.1_amd64.deb
For future installations. How do I find all the dependencies and the ORDER they need to be installed so I can write my own script and install them to a machine that is offline?
What do I have to do to get some love from the Me Menu? It says "Offline". If I click "Available", then Empathy starts up, and I get Twitter/Gwibber notifications, but the Me Menu still says "Offline". If I click "Offline" (even though it's already selected), then Empathy disconnects. While I am connected to a chat room via Empathy, the little envelope thingy will turn blue or green if I have a new message. Basically, all seems normal except that Me Menu permanently says I'm Offline.
I have downloaded valgrind 3.6.1 from here. I want to install it, how to do it.How to install valgrind on xubuntu 11.04.This program is not in software center.I am already using code::blocks 10.05. Can i integrate it with codeblocks so that as i debug program in codeblocks valgrind called itself and show memory leaks.
Myself Bhaskar Chakraborty from India, i m a new user of Ubuntu 10.04 LTS, My system has a dual boot(Windows XP and Ubuntu). I access internet using my Micromax Q5 mobile having Aircel network. it work fine in Windows XP but it doesn't provide drivers for linux. So in Ubuntu i cant access internet. But i want to update ubuntu. So how i update ubuntu offline?
I just installed ubuntu server 9.04. Now i wanna install GUI on that such as Xinit, and others, theni stuck because i wannna install it without connection (from source / offline).
I have two PCs one has Windows XP the other has Ubuntu 9.10 on it, the Windows PC has no problems getting on the Internet (I'm posting this with it) and getting an IP address from the wired router. The wired router I have is ONLY wired it does not have wireless at all, it is currently setup to hand out IP addresses between 192.168.1.2 and 192.168.1.254.
The Ubunutu 9.10 PC worked great last night surfed all over the place for hours, then finally shut it down last night when I went to bed, shut down appeared to be normal like it always does when it shuts down, then this morning when I booted it up it gave error: "WIRED NETWORK - disconnected you are now offline".
It seems that Reconstructor is only available as browser application. I saw a guide which featured an offline version, but it is already very old. Is there still an offline version that is up to date? I do not like the thought to work on my projects on servers of strangers, you know.
I was able to do this before but, I can't remember where I found the link.I think is was a script or something. It would get all the files that the .Deb will need and make an installer.
P.S. I have Ubuntu 64-bit the PC that need the install is a 32-bit both are 10.04.
I was wondering if there are any programs out there that allow me to write a blog offline in ubuntu and then upload it when its done?
also I have never written a blog before and dont know where to get started, I own my own web domain and hosting and was wondering if anyone can direct me to basic information on how to get started as well.
Does anyone has the information regarding a collective repository for ubuntu download packages which provides a single download for all the packages or selective packages, may be some torrent sort of links.I know of packages.ubuntu.com but there the packages are dispersed. Downloading each one of them requires a hell lot of time. Doesn't anyone has this information where a one click download of packages is facilitated.