I couldn't find any documentation on this. What exactly are these variables with 'at' symbols found in Makefiles? Example:
temp = @temp@
srcdir = @srcdir@
I need to change the dojo namespace to something else. I found this stackoverflow post, but it refers to a dojo documentation page that no longer exists. Below is something I tried based on this page, but didn't work:
<html
<head
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js" djConfig="scopeMap: [[ 'dojo', 'newns' ]]"</script
<script
newns.addOnLoad(function(){
console.debug("hello world");
});
</script
</head
<body
</body
</html
Help!
So I am using the HTML5 date input type, primary to trigger the 'wheels' in iOS. Everything is working fine in ie7-9 Chrome and FF. But Safari for OSX is very upset. It sees the need to add little 'up and down' buttons to the right hand side and generally mess up my visual stylings.
My attempt to fix this, is to change the date inputs back to text inputs for desktop browsers, and leave it as date inputs for mobile:
unless device.is # 'device' is a lib I use to detect mobile browsers
dateFields = $ 'input[type="date"]'
dateFields.attr 'type', 'text' #this fails
dateFields.datepicker()
dateFields.on 'keyup', (e) ->
e.preventDefault()
$(@).val ''
Beyond altering the input type with js, I am at a loss for how to fix this little bugger. Have you had to deal with this problem?
I would like to dynamically allocate memory from an assembly
program that does not link against the standard C library.
Since brk(2) and sbrk(2) are unavailable on Mac OS X (10.6.2),
what are the alternatives?
(I'm guessing that it involves a Mach call, but there seems to
be little documentation around that)
Does DataMapper provide a convenient way to create a new record when none exists or update an existing one? I couldn't find anything in the API documentation.
This is what I have at the moment which doesn't seem very elegant:
foo = Foo.get(id)
if foo.nil?
foo = Foo.create(#attributes...)
else
foo.update(#attributes...)
end
foo.save
In Android documentation describing "Configuring General Window Properties", it is suggested that specifying properties via XML is preferable whenever possible. As an example, instead of setting Window.FEATURE_NO_TITLE with requestWindowFeature, they set it to @android:style/Theme.NoTitleBar. Is there a similar way to set a custom title bar to be used in the XML?
I've been toying around with nodejs for some of my COMET stuff and stumbled across Socket.io. Unfortunately, thedocumentation is fairly lacking and there is only one "real" example. Is anyone familiar with some decent tutorials on some of the intricacies of this library? Maybe just some better docs? I'd really like to use it, but I'm probably going to avoid it if I can't figure how to use it properly.
I just want to clear this up once and for all, is it ok to subclass a UIWebView?
Will I ever have to be nervous about apple rejecting the app because of a UIWebView subclass?
Thedocumentation states:
Subclassing Notes
The UIWebView class should not be subclassed.
But at the same time Apple contradicts itself with this WWDC video:
https://developer.apple.com/videos/wwdc/2011/?id=511#rich-text-editing-in-safari-on-ios
In slide 41 they specifically talk about subclassing a UIWebView
Thanks in advance!
I'm going to write a function to play a mp3 file from an URL on Windows Mobile without downloading all the stream to mobile. I read some documentation and faced some problem that.
Using NAudio.dll
: The dll is not compatible for Windows Mobile
Using DirectShowLib.dll : have not found way to get from audio stream.
Is there any way or any dll else to help me?
In the Zend Framework is a very nice and easy way to create a Tag cloud, but thedocumentation gives no clue about a way to automagically give every tag a weight.
Is there a way to do this? If no, how could it best be done?
Hi folks,
I have a list of usernames on Twitter whose profiles are public. I wish to get "all the tweets" they have posted from the day they formed their profile. I checked Twitter4J examples http://github.com/yusuke/twitter4j/blob/master/twitter4j-examples/src/main/java/twitter4j/examples/GetTimelines.java . According to the Twitter API documentation, only the 20 most recent tweets are returned. Is there anyway I could perform my task?
Is there any way to determine what should be your available bandwidth on EC2? Documentation seems to indicate that it should be based on your instance size, but I'm having a bit of trouble finding any specific numbers.
For this example from the MongoDB documentation, how do I write the query using MongoTemplate?
db.sales.aggregate(
[
{
$group : {
_id : { month: { $month: "$date" }, day: { $dayOfMonth: "$date" }, year: { $year: "$date" } },
totalPrice: { $sum: { $multiply: [ "$price", "$quantity" ] } },
averageQuantity: { $avg: "$quantity" },
count: { $sum: 1 }
}
}
]
)
Or in general, how do I group by a calculated field?
My project actually use XML files to define flow of the application.
I like to convert this XML a image that represent the flow, to use it in thedocumentation.
There is any c# library that help with the graphical part of a UML generation?
There is any XML standard format to generate UML flows that can be converted to IMG?
I need something like this
I was reading ICU documentation and came across this fine advice:
For common tasks like this there are
libraries of freely available regular
expressions that have been well
debugged. It's worth making a quick
search before writing a new
expression.
To which libraries of well-debugged regular expressions do you commonly refer?
I'm not much taken with http://regexlib.com where the expressions don't seem all that well debugged. It appears to have no QA process besides user comments and ratings.
In my mind, a web app something that runs continuously; therefore, I'm confused by documentation pages that talk about the "end" of a PHP script (eg this one). Such references seem to refer to the end of each web request, but if the script ends there, doesn't that mean that the OS has to setup a whole new process for each request? That seems unlikely, because spinning up a whole new process is expensive, and be very inefficient for the whole site.
Guys, Ive been using jquery to do this, but now I need to do it with Prototype and Im little confused due lack of documentation
I have 2 lists of check boxes
First List:
Check box 1
Check box 2
Second list:
Check box x
check box y
check box z
I need the JS code, using prototype to work like this: Second list, remains disabled unless I check one of the checkboxes of the First List.
Any suggestions, or help, please!
Thankyou.
I am reading the Asp.net security documentation on msdn.I come across these tow terms and get really confused.
# WindowsIdentity = WindowsIdentity.GetCurrent(),
which returns the identity of the security context of the currently executing Win32 thread.
# Thread = Thread.CurrentPrincipal
which returns the principal of the currently executing .NET thread which rides on top of the Win32 thread.
I want to display a handle at the corners of a UIView that can be used to resize the view. How can I display the handles floating on the top of everything else and still have a connection to and be in sync with a view?
The solution I implemented before looks like this:
I put the view into another view that shows the handles on top of the corners. The problem with this approach is that the handles add extra space to the original view's size. Since Apple recommends at least 40 x 40 px for the size of a button, it is not very little space and also goes beyondthe visible bounds of the original view. Another problem is that the original view has to be encapsulated in this 'helper view' object and thus becomes a part of something although it really is the main component.
I'm looking for a good, feature-rich, library for reading metadata from various audio formats (MP3, FLAC, OGG, WAV, etc.). I have already looked at Mutagen, but thedocumentation is nearly nonexistent, and it seems incapable of loading basic information such as artist and audio title.
NSArray *results = [managedObjectContext executeFetchRequest:request error:&error];
if(results == nil){
NSLog(@"No results found");
searchObj = nil;
}else{
if ([[[results objectAtIndex:0] name] caseInsensitiveCompare:passdTextToSearchFor] == 0) {
NSLog(@"results %@", [[results objectAtIndex:0] name]);
searchObj = [results objectAtIndex:0];
}else {
NSLog(@"No results found");
searchObj = nil;
}
}
The code above compares data a user enters to data pulled from a database. If I enter data which is in the database; it works. But if I enter complete gibberish it returns the error below instead of "No results found."
*** WebKit discarded an uncaught exception in the webView:shouldInsertText:replacingDOMRange:givenAction: delegate: <NSRangeException> *** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
The results array being null should be accounted for during the checks in the above code, no?
I have an API that I'm working with and it has limited documentation. I have been told that some of the methods that it executes are called asynchronously.
How can I get the result of these asynchronous calls. Note that I am not doing anything special to call them, the API handles the asynchronous part. But I can't seem to get a "reply" back from these calls - I'm assuming that's because they are in another thread.
I have a group of geometries stored in MySQl (as polygon and as well-known text) representing counties.
I can build a table of geometries and color codes after querying some county data (say GDP per capita).
What is the best way to export this as an SVG map? I cannot find any reference to SVG conversion in the MySQL documentation.
Hi All,
I've been looking but can't find the the documentation:
Is there a way to have a page render a response without the wrapping HTML elements and just print whatever is provided in the body of the tml or alternatively whatever is set in MarkupWriter.write during @BeginRender?
I need a page that does some server side processing and returns pure javascript for an external application to request.
If that is impossible, is it possible to expose the tapestry Ioc to a servlet in the same app?
Thanks, p.
I'm implementing my own SessionStateStoreProvider with a schemaless database. It's a little hard to tell from thedocumentation but it seems as though I will have to have a separate process for cleaning up expired sessions since the database will not have a way to notify the session state store that a session has expired.
Am I wrong about this? I haven't seen an alternative example for overriding the SetItemExpireCallback method.