What is the difference between using int and uint? All the examples I have seen so far are using int for integers. Any advantage of using uint? Thanks.
Hi,
I have an address control which display the contact info of the person.
so it displays something like
1234, street
City, CA 12345
Now i want to give user flexibility to create format out of it.
For ex someone might want to display address as,
street, City, Country
OR
Just display their emails:
[email protected][email protected]
Any good ideas on how to it or similar examples?
thanks
Hi, i have been looking for a javascript code which is like the facebook "like" widget to put in my blogger site.
The examples of the buttons are like in the following website,
http://textsfromlastnight.com/
Where people are able to flag the "Good Nights" or "Bad Nights".
I have no experienced in writing scripts neither do i have any script writing programs, so was wondering if any people can help with the scripts, or maybe tutorials would be of great help!
Thanks!
I have an XML document here that is served with a corresponding XSL file. The transformation is left to be executed client-side, without JavaScript.
This works fine in IE (shock horror), but in Google Chrome, just displays the document's text nodes.
I know that it is possible to do client-side XSL in Chrome, as I have seen examples of it, but I am yet to be able to replicate this success myself
What am I doing wrong?
All of the NHibernate examples I've see that use hbm files have the hbm.xml file set as an embedded resource with "do not copy" chosen in the file properties. This means that if a database column name were to change in production, the app would have to be recompiled with the changes in the hbm.xml file during build time.
Is there any way to make NHibernate load the hbm.xml files from the file system at application startup instead of using an embedded version?
How to Join N live MP3 streams (radio streams like such live KCDX mp3 stream http://mp3.kcdx.com:8000/stream
) into 1 using FFMPEG? (I have N incoming live mp3 streams I vant to join them and stream out 1 live mp3 stream) I mean I wanna to mix sounds like thay N speakers speak at the same time (btw N stereo to 1 mono), please help
BTW: My problem is mainly how to make FFMPEG read from stream not from file...
Would you mind giving some code examples, please...
hi,
I'm having a problem with a simple program I wrote, I want to perform a certain function according to the users input. I've already used a dictionary as a replacement for a switch to do assignment but when I try to assign functions to the dictionary it doesn't execute them...
The code:
def PrintValuesArea():
## do this
def PrintValuesLength():
## do that
def PrintValuesTime():
## do third
PrintTables={"a":PrintValuesArea,"l":PrintValuesLength,"t":PrintValuesTime}
PrintTables.get(ans.lower()) ## ans is the user input
what did I do wrong? It looks the same as all the examples I've seen....
I need to write a function called multipleOf3 that returns a random number that
is a multiple of 3 between 0 and the function's non-negative integer
parameter n
and here is the result i want [Note: No number returned can be greater than the value of the
parameter n]
Examples:
multipleOf3(0) -- 0
multipleOf3(1) -- 0
multipleOf3(2) -- 0
multipleOf3(3) -- 0 or 3
multipleOf3(20) -- 0 or 3 or 6 or 9 or 12 or 15 or 18
I am looking for a lightweight set of C++ classes that implement/show how to use the MVP design pattern, so that I can refactor some legacy code I am working on.
A library/framework would be nice to get me started. A quick google search seems to bring up only C# examples - is anyone aware of any C++ ones out there?
[Edit]
I am particularly interested in a Passive viewer, as I want to completely decouple the view from the model.
Looking at using either ObjectiveResource or ASIHTTPRequest ...
Which is superior for uploading images? Or is there a better option???
Are there any examples of using either or both to upload images (or any other binary content)?
Thanks
I'm trying to build a simple tool to gather statistics from a CaliberRM server.
I've got the API description with examples for VB and Java, but nothing for C or C++.
Does anyone have a simple example to start with ? A kind of :
Connect to a database (caliberRM server)
get number of requirements
... that's all.
What I'd like to use: 2009 XAML primitives
How it would be nice to use them:
<sapv:ExpressionTextBox xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ExpressionType="x:String" />
What actually happens:
"Type reference cannot find the public type named String"
The examples I see don't have updated namespaces. I tried 2009 and 2010, but to no avail. This is in VS 2010 RTM. What am I doing wrong?
I am relatively new to this still, and I have been developing a small app that would benefit greatly from a user being able to press 2 buttons at one time. What is the best method for achieving this? I dont think that an OnClickListener works like that, and I have seen examples for doing this with an OnTouch event. However, I do not know how to set up button presses with and OnTouch event.
Hi,
I'm looking for a CSS Parser in java. In particular my requirement is, for a given node/element in an HTML document, to be able to ask/get the css styles for that element from the Parser.
I know there is the W3C SAC interface and one or 2 implementations based on this - but turorials/examples appear non-existant.
Any help/points in rigth direction much appreciated.
Thanks
I need to create a home screen (menu) with four to six items arranged in a grid view, each item needs to have an icon and a text below the icon. I googled and everything I could find were adapterView examples, with dynamic menu loading, and I want to make it with static xml, this view will not change so no need for dynamic code.
Can anyone post an xml example of this?
GNU xargs has option '-x'. The man page says:
-x Exit if the size (see the -s option) is exceeded.
But xargs seems to not care if -x is set or not. I have been unable to make an example in which the -x has any effect at all.
Please provide two examples in which the only difference is an added -x and that produce different output.
We are currently looking into the Agile Platform by Outsystems.
We have went through their courses and did all the examples but from experience these types of things only show part of the picture.
Are there any serious pitfalls that we may not be aware of?
I'd like to open a pipe using popen() and have non-blocking 'read' access to it.
How can I achieve this?
(The examples I found were all blocking/synchronous)
i want to split a wave file(.wav) into frames of 1 second or for a fixed time period. How can i do it using C# or Java.
Can any one help me out for this with some code examples or some related links regarding this.
I have some experience with C#, and would like to improve my knowledge of its latest improvements. I am in the middle of reading and enjoying "Effective C#" by Bill Wagner right now. However, I would appreciate more examples, especially with lambda expressions and such.
Any suggestions are greatly appreciated. High quality resources are preferable, and it does not matter much if they are free or not.
Subject says it all. I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advice and/or sample code on the best way to implement filtering in a ListView ?
I've just answered problem with sockets in c# where in my example code I initializing my socket using ProtocolType.IP as this is what I've always used in my own code, and it has never caused me problems. But I see many examples specifying ProtocolType.Tcp.
I guess, what I'm asking is, by using ProtocolType.IP instead of ProtocolType.Tcp is anything being performed differently under the hood that I should be aware of?
Every developer has a collection of "must have" tools, things that you want to have around as part of your default development environment. Examples include emacs, vim, meld, ctags, eclipse, cygwin, firebug, etc. What's the most recent such tool you've discovered and cannot now live without?
I've seen the code examples on this article, but throwing Controller_Exception_404 produces an error.
I've just been throwing plain exceptions. I remember in Kohana 2.3 there were different ones you could throw, depending on the situation.
Does anyone have a list of what exceptions should be thrown when?