I've read this post about mocking location with custom provider, but I am looking for a way to mock the location during a presentation, is that possible?
Hi,
I'm searching for android phones that can use video out to the tv for a research project. I'm considering the HTC Touch Pro.
Is there anything I have to do specifically to get the video out to work (for displaying my app on the tv)? or will the phone just display a running app on the tv without extra work?
Thanks, I hope the post made sense =)
Since naming is a so important thing in programming, I would like to start a thread for giving help to all those that have same problems as I sometimes.
Rules: Set a post with the description of the form||control||class or whatever you need to find a good name for. Get name hints in the answers.
Hi folks,
I have a little program allowing users to type-in some regular expressions. afterwards i like to check if this input is a valid regex or not.
I'm wondering if there is a build-in method in Java, but could not find such jet.
Can you give me some advice?
Best regards
Phil
I am working in Joomla trying to build a skillsbank. I am wondering if there exists any open-source module on the net that supports this operation. Can anyone help me please
What is a good non-programming question to ask a candidate during a job interview?
I'll post my two favorites below, but I'd like to hear others.
Clarification: By "non-programming," I mean you are not asking them to solve a problem by writing or describing code.
(Cross post from serverfault)
Hi,
Our IIS6 log (W3SVC1) is showing entries with suffix ClixSmart+ServiceMonitor 200 0 0.
There are over 10 of them per second and it lasts about 20 seconds when happened.
Is our server being hacked?
TIA
Very similar to this post
How can I declare template array as a parameter in templated function?
Something like this code:
template <unsigned i> void my_func (char (&a)[i]); //yes, I do need that reference
Hi ive got an mvc form with a fileupload functionality. Ive got an action that accepts an file and extracts thumbnails from it, after which the user can select the images and then proceed to submit the form. How can post the initial file via ajax, bearing in mind, this is not the final submission on the form and I want to retain user input. ie no postback
Thanks
function FakeClass(){};
FakeClass.prototype.someMethod = function(){};
FakeClass.prototype.otherMethod = function(){
//need to call someMethod() here.
}
I need to call someMethod from otherMethod, but apparently it doesn't work. If i build it as a single function (not prototyped), i can call it, but calling a prototyped does not work. How can i do it as if i was treating the function just like a class method?
Hi All,
Not able to create standalone python binary package
1) The binary package works only on the machine on which it is build
2) There is always an error with respect console.py dependent on cx_freeze and wx libraries (.so files).
3) Tried the rpath trick suggested at this link http://wiki.wxpython.org/CreatingStandaloneExecutables
4) I have also experimented with GUI2exe , but still dependency problem exists.
Please let me know if there is working python script to solve these dependence problem of cx_freeze and wx._core (.so) files.
Thank you
I'm learning Javascript right now. Can anybody tell me why the second code block traces a empty path for -launch(this)- but using the first code block it gives me the right path?
"<form action='"+launchwebsite+"/subsite/' method='post' target='_blank' onsubmit='launch(this)'>"
and this not:
"<a onclick='launch(this)' title='launch' class='iblack' /></a></div>"
Best
Uli
I have the following code:
$('#change').dialog({
autoOpen: false,
width: 380,
buttons: {
"Close": function() {
$(this).dialog("close");
},
"Accept": function() {
var test = $("#ChangePasswordForm").submit();
alert(test);
}
}
});
In my controller I want to return a string
[AcceptVerbs(HttpVerbs.Post)]
public string ChangePassword(string Name)
{
var msg = "Cool!";
if (name != null)
return msg;
}
How can I do that?
How can I dipslay
I'm using jWYSIWYG in a form I'm creating that posts to a database and was wondering how you can prevent a malicious user from trying to inject code in the frame?
Doesn't the editor need brackets (which I'd normally strip during the post process) in order to display styles?
So I'm searching for a good crash course on localstorage and interacting with it in Javascript. I want to build a to-do list webapp with some extra functionality but it would be just for 1 user. I don't want to mess with php/mysql and have the server doing anything. Links to tutorials would be best :-D
I couldn't figure out how to cleanly do a tag cloud with JPA where each db entity can have many tags.
E.g
Post can have 0 or more Tags
User can have 0 or more Tags
Is there a better way in JPA than having to make all the entities subclass something like Taggable abstract class? Where a a Tag entity would reference many Taggables.
thank you
I'm trying to mock a class method with rspec:
lib/db.rb
class Db
def self.list(options)
Db::Payload.list(options)
end
end
lib/db/payload.rb
class Db::Payload
def self.list(options={})
end
end
In my spec, I'm trying to setup the expectation Db::Payload.list will be called when I call Db.list:
describe Db do
before(:each) do
@options = {}
Db::Payload.should_receive(:list).with(@options)
end
it 'should build the LIST payload' do
Db.list(@options)
end
end
The problem is that I am always receiving the following error:
undefined method `should_receive' for Db::Payload:Class
Any help understanding this error would be most appreciated :-)
Our Company is looking for a sr.flex developer. As part of interview process customized UI understanding and implementation is also included.
I am Usability&design Lead for the same product team have some understanding of flex 3 but am not sure if pure UI/usability questions can be answered by flex developer. So can you suggest some UI related questions to see if he/she has competency to refer a prototype(html/mockup's) and build the same UI in flex.
Hi,
I really like the idea of putting forms into a seperate class that manages validation etc, but I don't like everything ending up in a DL and also not being able to use square bracket notation in post elements like <input type='checkbox' name='data[]'>.
Is there another way of generating forms - like in views so I can style them the way I want, but also keeping the validation aspect? Also how would I load this view into my current view (using partial view somehow?)
I need to build a Java app with considerable IO requirements, supporting tens of thousands of concurrent TCP connections.
I found a library called Raining Sockets which seems intended to make it easier to use Java's asynchronous NIO package, but the last update was 6 years ago.
Are there other libraries, that are preferably still under active development, and with a public maven repository, that I should look at?
hi .. im want to learn how to build a web service using vb.net.
unfortunately i could find any websites that provides good tutorial..
can any one suggest a web site? thank u in advance ..
We are developing in vb.net using Visual Studio 2008 and a SQL 2005 back end database and are looking for a Report Designer that can be used to build reports and give the User the ability to modify and create reports once the software is sold and in use.
I want to make preview button as usual form button next to submit button(as it made in most cases of "Post new topic" forms). How can I programmatically simulate toolbar's preview button click ?
I tried $('#article_body_preview').click() but it didn't work. (I use jQuery lib and #article_body_preview is toolbar's preview button element )
I want to build rest web services in java. can some body tell me what are the software and hardware requirements for that?
I want to know it in sense like one computer, which one database and which one server and if any other because i want to use these web services globally and want to post JSON in request and also want to get response in json for an android app. thanx, any answer would be a great help for me.
Here's the sample code:
X * makeX(int index) { return new X(index); }
struct Tmp {
mutable int count;
Tmp() : count(0) {}
const X ** getX() const {
static const X* x[] = { makeX(count++), makeX(count++) };
return x;
}
};
This reports Undefined Behaviour on CLang version 500 in the static array construction.
For sake of simplication for this post, the count is not static, but it does not change anything.