Hi,
Given a string like String a="- = - - What is your name?";
How to remove the leading equal, dash, space characters, to get the clean text,
"What is your name?"
Thanks.
Hi,
I'm writing a bash script that will show me what TV programs to watch today, it will get this information from a text file.
The text is in the following format:
Monday:
Family Guy (2nd May)
Tuesday:
House
The Big Bang Theory (3rd May)
Wednesday:
The Bill
NCIS
NCIS LA (27th April)
Thursday:
South Park
Friday:
FlashForward
Saturday:
Sunday:…
I am having trouble displaying a webview. I have a webview inside a custom view. I load this custom view as a subview of the window, and then have an object controller linking a text field to the content of the web view. Once a page is loaded, it loads all the content, but it is visually white. You can click on links. If you go to a Youtube…
Any clues why my programmatically defined UIScrollView (using the application frame) always leaves an empty space at the top (below the navigationBar) of 20 pixels. How can I close that?
UIScrollView *vScrollView = [[UIScrollView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
vScrollView.backgroundColor = [UIColor…
Occasionally, my email-to-support-ticket system catches an extra line break before the message itself, thus my messages look like this:
"
Hello. I have been wondering if y..."
What can I use to get rid of that line before the text? It is on random occasion due to email providers and the way they format their emails using mime.
I…
I'm following this tutorial on youtube:
https://www.youtube.com/watch?v=VSF5p00uorc
Around 4:28 - I get the following array when I load the sql.php page as in the tutorial:
array(8) { [1]=> NULL [2]=> NULL [3]=> NULL [4]=> NULL [5]=> NULL [6]=> NULL [7]=> NULL [8]=> NULL }
I do have 8 ids all with…
I have used the jquery quicksearch plugin and it works fine, except for one problem. I would like the quicksearch to run when the page is loaded. I have created a second quicksearch function (which is called when the page is loaded) and changed the bind to something else, but it won't work on "load" or "ready".
If I change…
hello dear all,
I wanted to create a edit form with the help of ModelForm.
and my models contain a Generic relation b/w classes, so if any one could suggest me the view and a bit of template for the purpose I would be very thankful, as I am new to the language.
My models look like:-
class Employee(Person):
nickname…
I have some .pdf generated by a scanner, that I want to import in LibreOffice and do some small editing. The PDF has only one object per page, a page-size image.
If I open it in LibreOffice under Ubuntu 12.10, it imports "successfully" but all pages are blank. I have the libreoffice-pdfimport package installed.
That is true…
I work in a library, so we have a Ricoh printer that is networked between all of us. I just recently installed Ubuntu 11.10 64bit on my desktop and have been trying to set up the printer without success. Ubuntu found the printer immediately and allowed me to set it up. When I hit test print, I get one sheet with writing on…
I have the following form:
class ModuleItemForm2(forms.ModelForm):
class Meta:
model = Module_item
fields = ('title', 'media', 'thumb', 'desc', 'default', 'player_option')
The model is:
class Module_item(models.Model):
title = models.CharField(max_length=100)
layout = models.CharField(max_length=5,…
I recently bought a new computer, and have been trying to install linux on it, 11.10 x64.
It is a HP pavilion dv6-6117dx.
2.4GHz/1.5GHz VISION A8 Technology from AMD with AMD Quad-Core A8-3500M Accelerated Processor
AMD Radeon HD 6620G Discrete-Class Graphics
I am pretty sure i picked a…
I have the domain http://dropbox.tombrito.com/ (on GoDaddy) forwarding with masking to www.dropbox.com/sh/k6ypvx4y4kf0gu6/rdjxQ1b1OL
It was working fine some time ago, but now the result is a blank page (although the Dropbox's favicon appears correctly in the browser's tab title).
The DNS…
I've got a problem with Ubuntu 10.10 suspend / hibernation. When I try to do one of these actions, computer prepares but in the end a blank screen comes up with just a single underscore blinking. Computer becomes unresponsive to mouse/keyboard and only pressing power button on chasis…
Hello,
I have been asked to implement a javascript floodlight tag onto my site which is to be called everytime a customer downloads a pdf file. I have tried to implement this as follows:
<script type="text/javascript">
function appForm() {
var axel = Math.random() + "";
var…
GNU Screen (screen) behaves differently on OS X 10.5 (Leopard) and 10.6 (Snow Leopard) compared to Linux (at least Ubuntu, Red Hat, and Gentoo) and OS X 10.4 (Tiger). In 10.5 and 10.6, new screens (made with screen or ^A c) always places me in my home directory ~. In Linux and OS X…
Here is the list of Zone ID’s for the Blank WebPart Page (BlankWebPartPage.aspx") that is part of the Publishing Portal with MOSS 2007: TitleBar Header TopLeftRow TopRightRow CenterLeftColumn CenterColumn CenterRightColumn Footer RightColumn I was in…
I am facing a serious problem as my Dell Optiplex 745 loaded with Ubuntu 12.04 32bit freezes with a blank screen no mouse cursor no keyboard activity in many occasions.
Sometimes when I open firefox, or software center, I really can't tell what the main problem is, but what i am…
When I try to login to Ubuntu 10.10 I get a flickering screen for a second showing -
Ubuntu 10.10
.............
and then I get a blank purple coloured screen[Ubuntu's theme colour] which doesn't progress any further
Can anybody suggest a remedy to this problem?
From whatever…
I am trying to show the Days between NOW() and the dates (dd/mm/yy) in, either Column B or Column C - depending which one is NOT blank
A B C
29/03/10 01/04/10
29/03/10 02/04/10
29/03/10 30/04/10
29/03/10 31/03/10
29/03/10 03/04/10
I…
Hope all this makes sense :) I'll clarify via comments if necessary. Also, I am experimenting using bold text in this question, and will edit it out if I (or you) find it distracting. With that out of the way...
Using django.contrib.auth gives us User and Group, among other…
My laptop screen is (almost) black while my secondary screen is fine. I believe it to be backlight / brightness related.
Problem description
it starts when I start the laptop
system loads and works fine, just screen has problems
I can see the screen though very faintly /…
I have inherited a website to maintain that uses a html map overlaying a real map to link specific countries to specific pages.
previously it loaded the default map image, then with some javascript it would change the image src to an image with that particular country in a…