Hi, i am an android application developer. I have developed 10 applications so far. I want to develop a funny and weird android application. Could anyone suggest any ideas..?
How can I instruct Eclipse to copy a file from my Android solution to an emulator, as part of Run/Debug? I have a small database, stored in Assets, that needs to accompany the application. Thus far I have simply copied the file myself using DDMS but would prefer to have it automatically included. The project properties allow me to specify some aspects of the build, e.g. the build order and which libraries should be included, but I don't see anything about simply copying a file.
As far as I know, RM should mock anything that can be accessed by a derived class. Since a protected virtual member is accessible from a subclass, shouldn't it be mockable?
My understanding is that RM does not support mocking protected virtual members.
I'm looking for a way to embed Flash into a XHTML Transitional page that does not rely on enabled JavaScript, which validates and that works across all major Browsers including IE6.
So far I'm using this solution which seems to work just fine:
http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml#toc-final-solution
However, when this method is used in an RSS Feed it seems that Feedburner and Google Reader at least (maybe other feed readers, too) strip the whole object tags and only leave the alternative content.
Any suggestions how to improve this?
I have two tables:
Table1 = Schools
Columns: id(PK), state(nvchar(100)), schoolname
Table2 = Grades
Columns: id(PK), id_schools(FK), Year, Reading, Writing...
I would like to develop a query to find the schoolname which has the highest grade for Reading.
So far I have the following and need help to fill in the blanks:
SELECT Schools.schoolname, Grades.Reading
FROM Schools, Grades
WHERE Schools.id = (* need id_schools for max(Grades.Reading)*)
What I really like in C# are generic lists. A list that can contain only one type of objects.
Is there something like a generic list in Cocoa/Objective-C? As far I only know NSArray who will take a pointer to any object.
I am trying to mutlipivot source data (as below )
want results as single column (as below)
My query so far is
SELECT *
FROM ( SELECT *
FROM ( SELECT NK,
DC,
VERSION,
GEV
FROM MULTIPIVOT
) SRC PIVOT ( MAX(GEV) FOR DC IN ( [10], [11], [12], [18] ) ) AS PVT
) SRC PIVOT ( MAX([18]) FOR VERSION IN ( [2006], [2007], [2008],[2009] ) )AS PVT
which outputs results as
what is the way to get this as single row?
Thanks
If you had the opportunity to take one computer science course now, and as a result significantly increase your knowledge in a subject area, what would it be? Undergraduate or graduate level.
Compilers? Distributed algorithms? Concurrency theory? Advanced operating systems?
Let me know why.
(Note that I appreciate this isn't a far fetched scenario - but time and inertia might be preventing people from taking the course or reading the book or whatever)
Learning just another language is not much work. However, getting familiar with all the supporting libraries is veeeery expensive and actually you cannot go too far without that.
Would you consider a worthy career investment to learn java once you already are an accepted professional of .NET or you would rather invest the same amount of energy to get deeper in the things you already know?
Hi All
I would like to handle time series in python.
I have been suggested to use scikit.timeseries but I need to handle up to microseconds and this last, as far as I know, handles up to milliseconds.
Do you know any other library able to do that? At some point I need to merge 2 time series sampled at different time, and I would like to avoid rewriting such kind of features or any new classes from scratch whenever it is possible.
I thank you all
AFG
I'm a bit confused, how can I create public and private members.
My code template so far is like:
(function()){
var _blah = 1;
someFunction = function() {
alert(_blah);
};
someOtherFunction = function {
someFunction();
}
}();
In Clearcase:
I'm trying to find the names of all files in the current view without a specific label. So far I've come up with the following:
cleartool find -cview -all -version '\!lbtype(LABEL_1)' -print
But this ends up displaying the filenames with the "@@/main/BRANCH1/SUBBRANCH" appended to the end, and I really want just the filename.
I've tried adding a -short, but the find command doesn't like that option, and I can't find an option in the manuals to change the behavior.
I'm trying to find a good environment to building and maintain an existing website. Would Adobe's Dreamweaver be a good purchase as far as coding in PHP, html, jquery, with a mysql database?
So far Ive managed to download and install the SDK and its in my PATH. Problem now is that I can't run "android update sdk" since it expects to be connected to a display and Im connected to a remote headless server through ssh (its a build server so there's no desktop env). Is there a command-line option for the android tool that tells it to run without X ?
What is the best or most concise method for returning a string repeated an arbitrary amount of times?
The following is my best shot so far:
function repeat(s, n){
var a = [];
while(a.length < n){
a.push(s);
}
return a.join('');
}
Hi
I have an array that its first element might contains something like [some text, here. That's some text]
I'm trying to figure out a pattern to check if such string exists and if not create it but having problem with making the pattern. Here's what I've done so far
$pattern = '/^\[*\]$/';
if(preg_match($pattern,$exploded[0])){
$name = array_shift($exploded);
}else{
$name = "[Unnamed import] - " .gmdate("His");
}
But I always get [Unnamed import] - 032758 even when I'm sure that pattern match
Hey guys
Just wondering if anyone has any idea how you can determine how many bytes of a request have been read/received by the server... In other words how do I stream http request...
In that, users are uploading files and I want to report on a perotic basis how many bytes have been read/received so far.
Just wondering if anyone has any ideas on how I might do this...
Cheers
Anthony
I want to call Type.GetFields() and only get back fields declared as "public const". I have this so far...
type.GetFields(BindingFlags.Static | BindingFlags.Public)
... but that also includes "public static" fields.
Hi All,
I am working writing a regular expression used to validate string in C. Here is to what I have gone so far
'^"[A-Za-z0-9]*[\t\n]*"$'
for rules
- A string should begin with double quotes
- May not contain a newline character
However, I am not able to capture the rule for allowing '\' or '"' in a string if preceded with '\'. Here is what I tried:
'^"[A-Za-z0-9]*[\t\n]*[\\\|\\"]?"$'
But this doesn't seem to work. What might be wrong with the regular expression here?
Regards,
darkie15
I've been getting into Backbone.js lately and I'm enjoying it so far. All the examples tend to be simple to-do lists, so it's been a little difficult extrapolating code organization and file structure for a larger/more robust single page application.
I've come to a crossroad:
Should I use something like Yepnope.js to load models and views as I need them or,
Combine and minify into fewer files and front-load it all.
Some combination of both?
Any advice would be appreciated!
So far I've only build "small" graphical applications, using swing and JComponents as I learned at school. Yet I can't bear ugly JButtons anymore. I've tried to play with the different JButton methods, like changing colors, putting icons etc. but I'm still not satisfied. How do you make a nicer GUI in java ?
I'm looking for not-too-heavy alternatives (like, without big frameworks or too complicated libraries).
Hi,
I need to develop an e-Commerce site that sells auto parts. For that, I need a database that has year/make/model information that each part is applicable to. As far as I know, we need to purchase the database and subscribe updates.
Is there any database available for free? (I may not need updates)
Thanks.
Sam
I want to be able to use this IDE to step though code and debug.
So far I have found:
"e" Text Editor (http://www.e-texteditor.com/) $34.95
Arcadia (http://arcadia.rubyforge.org/)
Has anybody ever tried either of these and how are they? Or anything else you can suggest?
Hi,
I'm looking for Linux embedded web browser, or preferably just a rendering object (it will not be used for actual browsing, just for displaying web based gui).
The requirements are:
Written in C (small footprint)
Support Dynamic HTML
Support Java script
Minimum dependencies on the libraries (although i understand that it can not be completely standalone)
No Dependency on X11 (i.e working with direct frame qui libraries)
So far i only found Embedded Konqueror. Any suggestions are welcomed, commercial solutions are OK, but open source is preferable.
I'm looking for a way to sanitize input that I paste into the browser, is this possible to do with jQuery?
I've managed to come up with this so far:
$(this).live(pasteEventName, function(e) {
// this is where i would like to sanitize my input
return false;
}
Unfortunately my development has come to a screeching hold because of this "minor" issue.
I would really make me a happy camper if someone could point me to the right direction.
Thanks in advance.