Hi,
I have a linear layout which has a background image (a 9 patched png file).
How can I add padding to left and right so that the background image does not take up the whole width? I have tried 'android:paddingLeft' and 'android:paddingRight', but that does not change anything.
<LinearLayout …
What PHP code can I use to stop showing text at a certain time?
For example:
"Come to this event at 3PM on Monday!"
I don't want that to show after 3:01PM on the site.
Hi,
How can I maintain the position of my ListView in my activity when I go to another activity (by launching another intent) and then come back (press the back button)?
Thank you.
Hello,
My question is how to sort a Linq query by a sub table:
Table Apps:
- app_id
- name
Table AppStatus:
- app_status_id
- app_id
- severity
- status_date
I would like to have a query with all the apps, sorted by the last status severity:
app_id name
1 first
2 second
3 third
…
If I just put in XUL file
<label value="°C"/>
it works fine. However, I need to assing ° value to that label element and it doesn't show degree symbol, instead literal value.
Hi,
In android, ImageView is a rectangle by default. Is it possible to make it a rounded rectangle (clipped off all 4 corners of my Bitmap to be rounded rectangles) in the ImageView? If yes, can you please tell me now can I do that?
Thank you.
I've been asked to resolve an issue with a .Net/SqlServerCe application. Specifically, after repeated inserts against the db, performance becomes increasingly degraded. In one instance at ~200 rows, in another at ~1000 rows. In the latter case the code being used looks like this:
Dim cm1 As…
I am making a new file dialog and it seems that the NSSavePanel is the right tool for the job but I cannot find a way to add a text field to input the name you want to save it as. Is this functionality not built into the NSSavePanel? Do I need to make my own text field and add it as an…
i am running a mac with mamp and mamp pro. how do i check if i have apc enabled and if its not enabled or not installed how do i install it? thanks
i am trying to get the apc upload loader to work that i found online and it gets stuck on NAN% when im uploading.
this is a link:…
scrollViewDidEndScrollingAnimation and scrollViewDidEndDecelerating
Looks like the last one is called when the bouncing effect is finished. But can't really understand what's the difference between first because they are called same time(well, decelerating called first).
Hello all,
I've got a horizontal menu on my website: http://www.alcmariavictrix.nl
When i browse it in small browsers (IPhone), the horizontal menu on top is screwed. What i want to perform is get that horizontal menu to the left when the browser can't display it all in one…
Hello,
I need to write a PHP script that will print out results from a MySQL database. For example, say I have 9 fields. Field 1 is an auto increasing number, field two is a three digit number.
I need to be able to have a script read, find the matching number (it'll be…
Given a file tree - a directory with directories in it etc, what software would you recommend to create a diagram of the file-tree as a graphic file that I can embed in a word processor document
I prefer vector (SVG, EPS, EMF...) files.
The tool must run on Windows, but…
On Win32 I'm getting intermittent output like this at page header:
order allow,deny deny from allorder allow,deny deny from all
I'm running php script which has number of .htaccess files in each subfolder.
I need to understand why sometimes apache is just dumping me…
Hi,
In the Makefile.in of an existing project, it has this:
EXPORTS = \
gtkmozembed.h \
gtkmozembed_glue.cpp \
gtkmozembed_internal.h
Can you please tell me what does EXPORTS mean?
Thank you.
Say I have an environment variable myvar:
myvar=\tapple\n
When the following command will print out this variable
perl -e 'print "$ENV{myvar}"'
I will literally have \tapple\n, however, I want those control chars to be evaluated and not escaped. How would I…
From the java sources, it look like to drops into native code. Is the cost roughly equivalent to a volatile read or does it need to acquire a lock of some type?
another question related to my previous question
My horizontal menu also goes down a few pixels on my iPhone
see:
wrong on the IPhone
Right on the comp
Does anyone know how to fix this? :)
link is here: Alcmaria home page
I need help making this loop to move a label move smoothly across the screen using count for the animation (its required). The labels location is currently in location 0,0 I'd like to make it go in a square right - down - left - back to its original position
how…
I need help making this loop to move a label move smoothly across the screen using count for the animation (its required). The labels location is currently in location 0,0 I'd like to make it go in a square right - down - left - back to its original position
how…
When is the earliest I can find out the actual (after layout) width/height of my view?
I tried to do that
@Override
protected void onFinishInflate() {
super.onFinishInflate();
w = getWidth();
h = getHeight();
}
But it gives me 0. I have cases in…
I have the following two slider functions which work well and display like so:
I have diskAmount and transferAmount stored in global vars, however what I am now trying to figure out is how do I get the sum of the two to initially show as the monthly fee, and…