Could someone explain how to use the Timer.schedule - that is used for scheduling tasks - in Python?
Note that Python's time.sleep will not work in Android.
I get this error:
Catchable fatal error: Object of class stdClass could not be converted to string
So, my question is, how do I convert an object to a string in PHP? I don't want to serialize it though.
Just a note: the code I use works in PHP 4, but not in PHP 5
Thanks!
Windows and OS X have always bumped heads on this, but what is the general concensus on whether a Save button or Cancel button goes first in a web application?
[Save] [Cancel]
or
[Cancel] [Save]
Note: I have these buttons at the top of the form flush to the right.
I have a View that contains a UITableView and a UITabBarController. I have set my IBOutlets, but the UITabbarController does not appear. Do I need to do anything else to allow it to appear?
Note:
I don't want the tab-bar to be displayed throughout the entire application. Only on one specific view.
I recently put up a site and I have been doing some SEO.
However I noticed that links from Google search append index.php to my links.
For example a site page which clearly appears as www.example.com/index/why on search together with correct content sample when clicked on ends up in the new browser as www.example.com/index.php/why
Note that on my site all links are redirected to SSL and I use the MVC stucture.
Any directives that am may be missing?
I am using .net Windows Forms i need to maintain some date to check the condition. so i have to maintain it up to user logged out?
like session in asp.net
how can i do this?(note it should not expires until the user logged out)
Hi,
My Visual Studio 2010 project creates resource.h when compiled but does creates the file in UTF-16. How do I get VS 2010 to generate this file in either UTF-8 or ANSI?
Note: I need this to happen automatically. So, re-opening the file and resaving it is not an option.
Thanks.
I have an Incident table with one row that has the value 'out of office' in the Description column.
However the following query does not return that row.
SELECT * FROM Incident
WHERE CONTAINS( (Incident.Description), '"out*"' )
The word 'out' is not in the noise file (I cleared the noise file completely).
Is it because SQL Full-text search does not index small words? Is there a setting for that?
Note: I'm on SQL 2005.
Hi,
On view in IB I have numerous items (including view itself). ONLY one item has tag 0, yet following line works for ANY UITextBox other then the one with tag 0. Note that only ONE UITextBox has tag 0, why:
(UITextField *) [self.view viewWithTag:0]).text = @"foo";
Interesting that when triggered event received for the element with tag 0, I can get value of Tag 0 with no problem.
Is there a limitation to look for tag 0 elements?
Where is the value of the actual query executed for an AccessDataSource with the parameters replaced with actual values?
Note: Answers in VB.NET or C# are fine.
am doing one project using vb6.0+access+crystal report8.5
some error occur during the crystal report.
Query Name
seqquery:
SELECT segment_trans.division_name, sum(segment_trans.Total_value) AS total, division_master.Target
FROM segment_trans, division_master
GROUP BY segment_trans.division_name, division_master.Target;
crystal report percentage formula:
{(seqquery.total * 100) / seqquery.Target }
Error: This field name is not known.
note: Total_value and Target field's datatype "Text"
how to solve this ?
please help me.
Thanks
Sathik
Does any programming language use =/= for not-equal?
Are there any lexical difficulties for scanners to recognize such an operator? Or was it the case historically?
[Note: this is NOT a homework question. I'm just curious.]
What is the easiest way in standard Java Swing to align three components in such a way that:
the dynamic widths of Component1 and Component3 are adjusted to be equal,
while Component2 (which is in between) has constant width?
Imagine we have some resizable JPanel (such as inside a JFrame).
Small width should look like this:
[----------------whole JPanel----------------]
[--Component1--] [Component2] [--Component3--]
Big width should look like this:
[------------------------whole JPanel------------------------]
[------Component1------] [Component2] [------Component3------]
Note: I just "trialed-and-errored" with GroupLayout for too long.
Should I write the meta-tags in utf-8 format?
For example, is it okay to have double-quotes in the meta-keywords like this:
19" wheels
or special characters like the & sign... ?
Thanks
NOTE: Im using utf-8 encoding on all my pages!
I trying to train haar cascade classificator for card suite detection (which no rotation and has no distortion on image)
For example I have file Clubs.png which contents clubs image on white background 20x20 pixels
This tutorial is so tangled
http://note.sonots.com/SciSoftware/haartraining.html
My image varies only in sizes, no distortion or angling.
Which commands I must enter in aim to get Clubs.xml file?
i have created http seesion, using the same http session, i would like to do some get and set operations.
Note : What ever the operation, data is present in XML Format, giving xml file as input. And need to fetch the status.
Is it possible using TCL curl.
I've been using matplotlib in a Python project. It is great.
I have now to plot data in a C++ project. Is anyone aware of a plotting library in C or C++?
Note that I cannot accept GPL licensed libraries.
How can I copy a table from an SQL Server CE 3.5 database to another (also CE database) in Visual Studio 2008, using the design tools?
Note: When right clicking on a table there is a "copy" command, but I couldn't find any "paste" command so far...
I'm cocking this up and it should be really simple but the value of sortdate is none (note im only doing this because converting a string to a date in Python is a bugger).
DateToPass = str(self.request.get('startdate'))
mybreak.startdate = DateToPass
faf = DateToPass.split('-')
sortdate = str(faf[2] + faf[1] + faf[0])
That should work? but its just being stored as null though the datetopass is being stored fine.
I am generating tables from classes in .NET and one problem is a class may have a field name key which is a reserved MySQL keyword. How do I escape it in a create table statement? (Note: The other problem below is text must be a fixed size to be indexed/unique)
create table if not exists misc_info (
id INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
key TEXT UNIQUE NOT NULL,
value TEXT NOT NULL)ENGINE=INNODB;
I would like to create a query on a field which after a certain number of characters adds/displays a number of dots to show the user that there is additional text to read. At the moment there is a syntax error using the following code in which it doesn't like the "Left" instruction:
X:IIF(len(description) > 5, Left(description, 5) & "....", description)
Note: "X" is what i am naming the field 'description' in my query screen in Access
hi i want to refresh user page with different data but with same template (user-profile.tpl.php) by simply clicking tabs. Can any one suggest the best way to do that ?.
for ex:
tab1:sports , tab2: music tab3: literature
by clicking tabs the template is same but the data is going to refreshed.
Note: Look like profile categories but not the same. all details are from user table
Is it possible to define a current user?
I found a stored procedure 'sp_mgGetConnectedUsers'. It returns a result set with the only unique field 'Address'. How could I associate an executing query with such 'Address'.
Please advice.
Note: As far as I understand, another way to get the current user is to set a unique application Id for each connection, but I don't like this way much.
I never remember how to do this properly - can you help me fix this query?
SELECT * from log where now() - EventTime < '1 day'
Note - this question seems identical but there's no solution there for mysql.