This might be a round about way of doing it, but are there any time-stamped audio formats out there? Also, how is video-audio synchronization usually done?
Thanks in advance.
Hi ,
Please give me a real time simple example for the below questions :
Where to use interface rather abstract class
Where to use abstract class rather interface
I need code snippet for both .
Which takes low memory and which performs well . Do I need to consider the design aspect also?
What is the conceptual difference not the syntactical difference .
I am writing a Ruby on Rails app and I want a method to be called every time the database is modified. Is it possible to do this without inserting a method call in every location where the database is modified?
hi
I have a aggregate column present the microsecond, a report(with jasper) have to show HH:mm:ss of this indicator
What I did is using SEC_TO_TIME(sum(col)/1000) , but when mapping to java.sql.Time, i doesn't work when the value of hour in result pass over 24(ex:36:33:33)
Then I think another way, not using sec_to_time, just mapping the microsecond as Bigdecimal,
but dunno what java class shoud i use to format date as the default format of hh:mm:ss is limit to 24...?
Hi
How to find my code execution time ,
Am using the below snippet,
am not happy with that ?
list ($msec, $sec) = explode(' ', microtime());
$microtime = (float)$msec + (float)$sec;
Regards
What's the battery time of iPhone 3G and 3Gs with GPS active? I'm getting approx. 2 hours of battery life with active GPS (Note: I'm using my own App).
I want to use Timepedia Chronoscope (http://code.google.com/p/gwt-chronoscope/) in my GWT application.
I have all the configuration like shown on chronoscope project site:
chronoscope-1.0.jar in gwt-2.0.x applications:
gwt-user-2.0.x and gwt-servlet-2.0.x
chronoscope-api-1.0.jar
gwtexporter-2.0.10.jar
gin-1.0.jar
I've inherited chornoscope module.
I get the error from gwt plugin to eclipse that looks like that:
java.lang.RuntimeException: Deferred binding failed for 'org.timepedia.chronoscope.client.browser.Chronoscope$ChronoscopeBrowserInjector' (did you forget to inherit a required module?)
Can you help me?
We have recently downloaded, installed and compiled gcc-3.0.4 code. gcc compiler has built successfully and we where able to compile some same test cpp file. I would like to know how we can modify gcc source code so that we add additional run time debugging statements like the binary in execution compiled by my gcc should print below statement in a log file:
filename.cpp::FunctionName#linenumber-statement
or any additional information that I can insert via this tailored compiler code Any references would be highly appreciable.
How do I change the library a function loads from during run time?
For example, say I want to replace the standard printf function with something new, I can write my own version and compile it into a shared library, then put "LD_PRELOAD=/my/library.so" in the environment before running my executable.
But let's say that instead, I want to change that linkage from within the program itself. Surely that must be possible... right?
Hey,
I would like to write a code involving automatic selection of a best composite model using ETS as well as autoregressive models. What is the criteria I should base my selection on?
Also if I'm using the auto.arima function for deducing number of AR terms and corresponding coefficients from the forecast package in R, does my input series necessarily have to be stationary? or the value for d would be automatically selected thus returning a non-stationary model?
Thanks,
Phani
I'm sick of waiting hours for Flash to publish. .NET / VisualStudio projects are WAAAAY faster - is that only compiling the classes that have changed?
Update: Does the Flash IDE re-encode all your sounds and images every time you publish? Can't it cache them somewhere?
We have a third party application running. It shows login dialog when idle for 20 minutes. We need to prevent the application to display login screen.
We do not have any idea how idle state is handled internally in that application.
We have done the follwoing with no luck.
Created an small application in c# which focus it after every 5 minutes (using SetForegroundWindow()) and send a BM_CLICK message to one of its child window. Does not work.
focus it after every 5 minutes (using SetForegroundWindow()) and move the cursor few pixels then restore cursor at its previous position. This does not work too!
Is there any other way to achieve the goal?
Hi,
i always like to real-time edit a web page source in the browser and updated as i type, but firebug really sucks, i can't insert scripts in the current page, some times the changes i type aren't updated at all, Is there any robust firefox/chrome extension for that?
i try to temporarely edit/add code to an existing web page in the internet, not a local one
Thanks
I have two fields and I need to generate an attribute, using Microsoft Enterprise Library validation, so that either or has to have a value, but both can not be null at the same time.
I'm trying to do this:
commands = { 'py': 'python %s', 'md': 'markdown "%s" "%s.html"; gnome-open "%s.html"', }
commands['md'] % 'file.md'
But like you see, the commmands['md'] uses the parameter 3 times, but the commands['py'] just use once. How can I repeat the parameter without changing the last line (so, just passing the parameter one time?)
I'm trying to have an accurate Unix timestamp values for:
today,
this week,
this month,
this year
There are a few snags however:
- Today should be everything since last midnight
- This week should start on the last/this monday
- This month (should know if its 30/31 days or 28/29 days feb)
- This should be the very beginning of the current year up til now
I want to do this without mysql at all, purely in php as I need it as an accurate Unix timestamp to assign to a variable. Any Idea how these timestamps periods can be calculated?
I have a date variable: 2011-01-15 and I would like to get a boolean back if said date is within 3 days from TODAY. Im not quite sure how to construct this in Python. Im only dealing with date, not datetime.
My working example is a "grace period". A user logs into my site and if the grace period is within 3 days of today, additional scripts, etc. are omitted for that user.
I know you can do some fancy/complex things in Python's date module(s) but Im not sure where to look.
I'm trying to set the Console window executed via my C-sharp code to be centered each and every time code is generated.
I hope that makes sense.
I thank you guys in advance.
I have an asp.net web app that has Session state stored in sql server. I need to keep track of the time spent by a user on each page. How can i do that using cookies?
I am currently working my way through the Learn you a haskell book online, and have come to a chapter where the author is explaining that some list concatenations can be ineffiecient: For example
((((a ++ b) ++ c) ++ d) ++ e) ++ f
Is supposedly inefficient. The solution the author comes up with is to use 'difference lists' defined as
newtype DiffList a = DiffList {getDiffList :: [a] -> [a] }
instance Monoid (DiffList a) where
mempty = DiffList (\xs -> [] ++ xs)
(DiffList f) `mappend` (DiffList g) = DiffList (\xs -> f (g xs))
I am struggling to understand why DiffList is more computationally efficient than a simple concatenation in some cases. Could someone explain to me in simple terms why the above example is so inefficient, and in what way the DiffList solves this problem?
I'm wondering what is actually stored in a CouchDB database B-tree? The CouchDB: The Definitive Guide tells that a database B-tree is used for append-only operations and that a database is stored in a single B-tree (besides per-view B-trees).
So I guess the data items that are appended to the database file are revisions of documents, not the whole documents:
+---------|### ...
| |
+------|###|------+ ... ---+
| | | |
+------+ +------+ +------+ +------+
| doc1 | | doc2 | | doc1 | ... | doc1 |
| rev1 | | rev1 | | rev2 | | rev7 |
+------+ +------+ +------+ +------+
Is it true?
If it is true, then how the current revision of a document is determined based on such a B-tree?
Doesn't it mean, that CouchDB needs a separate "view" database for indexing current revisions of documents to preserve O(log n) access? Wouldn't it lead to race conditions while building such an index? (as far as I know, CouchDB uses no write locks).
I find that in uC/OS-II RTOS, there is an idle task that gets executed when no other task is ready to run. If an idle task can consume resources, how can we reduce it ?
I run the following command to push the contents of my local database to Heroku:
heroku db:push --app my-app
and from my home computer it works flawlessly but from my work computer I get this error:
Taps Server Error: PGError: ERROR: time zone displacement out of range: "2011-11-15 12:00:00.000000+5894114400"
I'm not sure where that date is coming from, I can't find it in the data anywhere. Any ideas what's going on and/or how to fix it?
Thanks.