It appears to insert less blank lines the closer I type the command to the bottom of the terminal window. If I type it at the top of the terminal window, it inserts nearly a full window height of blank lines; if I type it at the very bottom, no blank lines are inserted.
It seems like the pager program is pushing output to the bottom of the…
Hi,
I have implemented Facebook Connect in my iPhone project and it is working great. The only problem I have is that every time the user closes the app, the next time they load it they have to re-enter their username and password to login even if the 'keep me logged in' box is checked.
My question is is there a way to save the user's…
Hi all.
As a brief run down, I am currently making a dating type site. Users can create accounts and upload profile pictures (up to 8). In order to display these in the browse area of the website, I am looking for a way in PHP (with third party processor/scripts) to resize all images uploaded to have thumbnails that adhere to certain…
Please help explain why the dataset cannot read the encoded xml?
string xml = "<?xml version=\"1.0\" standalone=\"yes\" ?>
<DataSet><node>it's my \"node\" & i like it</node></DataSet>";
string encodedXml = System.Security.SecurityElement.Escape(xml);
…
Maybe my logic is not restful or know if this is how you would do it but this is what I am trying to do.
I'm getting a category inside a category controller and then once I get that category I want to return to an index page in a different controller but keep that @category and the…
How do you add an Expires or a Cache-Control Header in JSP. I want to add a far-future expiration date in an include page for my static components such as images, css and .js files.
Any help is appreciated.
Stuck on the below for a day! Any insight would be greatly appreciated. The constant in the first block match0 behaves as expected. The constant defined in the second block does not behave as nicely in the face of a change to its "source":
var str = "+y+z*1.0*sum(A1:A3)"
if let…
to KIS I have two models: Reservations and Containers.
Container
has_many :reservations
Reservation
belongs_to :container
When I update a reservation I also want to preform call backs on the respective Container.
What is a good way to do this?
Should I be using nested…
Researching specificity I stumbled upon this blog - http://www.htmldog.com/guides/cssadvanced/specificity/
It states that specificity is a point-scoring system for CSS. It tells us that elements are worth 1 point, classes are worth 10 points and IDs are worth 100 points. It…
Is it possible to have a foreach statement that will traverse through a Collections object in reverse order?
If not a foreach statement is there any other way? Thanks.
I'm debugging a batch file left behind by an old employee and I've come across the line:
@nmake -f makefile /E 2>&1 | tee %LOGFILEPATH%
What does this do?
I know what @nmake -f makefile /E does and I know what tee %LOGFILEPATH% does, but I can't find anything on…
I have an interface, IMessage and a class which have several methods for creating different types of message like so:
class MessageService
{
IMessage TypeAMessage(param 1, param 2)
IMessage TypeBMessage(param 1, param 2, param 3, param 4)
IMessage…
The following code:
var constant = Expression.Constant("find me", typeof(string));
// memberExpression evaluates to a string
var predicate = Expression.Call(memberExpression, "Equals", null, constant);
is throwing the error More than one method 'Equals' on…
I have a 1x1 Matrix of points which specifies speed of a drive with respect to time. This speed changes throughout the operation; which means that the difference between two points is changing.
To give you an example: M = [1; 2; 3; 5; 7; 9; 11; 15; 19]. …
I have a few constants which are arrays that I don't want to create db's for but I don't know where to store the constants without getting errors.
For example
CONTAINER_SIZES = [["20 foot"],["40 foot"]]
Where can I store this so all models and…
hello folks., in umbraco, is it possible to check if certain property exist for particular node ? for example, i am having 5 nodes and i am having media picker property for first node alone.. i need to check all the nodes whether media picker…
Hi,
This is my Query
DELIMITER $$
DROP PROCEDURE IF EXISTSdiscoverdb.getuser_info$$
# MySQL returned an empty result set (i.e. zero rows).
`CREATE PROCEDURE discoverdb.getuser_info
(
IN name VARCHAR(100),
IN pass VARCHAR(100)
)
BEGIN…
A crazy question:
Imagine a webpage file called somepage.php
And it contains some html php contents in my editor I see:
<html><head></head><body>
<?=$welcome . $essay . $thatsAllForNowFolks . $footer ?>
…
I would like to write a counter that shows how many seconds an app has be running for. (textView) and the counter should be cumulative and starts from where it left off. Im new to iphone sdk.
Attempting to deserialize a stream to List<T> (or any other type) and am failing with the error:
The type arguments for method 'Foo.Deserialize<T>(System.IO.Stream)' cannot be inferred from the usage. Try specifying the type…
I cannot run the dev server because of this error ("Error: cannot import name escape").
I assume its because of modifications I've done to the project, but i have no idea how to find where the error is originating from to fix it.
I…
Hi
I have problems with my keyup binding when cloning an element. Here's the scenario:
I have an html markup like this:
<tr class="rijbasis">
<td>
<input type="text" class="count" />
</td>
…