The function NSStringFromPoint disappears when I compile my code using objective-C++, but it's fine under objective-C.
How can I make objective-C++ see that function?
Hello, all ...
UIImagePickerController is easy to use, but i'm all of a sudden finding it exasperating when I didn't find it so before. What's happening is that sometimes the imagePickerController:didFinishPickingImage:editingInfo delegate method does not seem to work -- the image will not show in the UIImageView even after the assignment was…
Hi,
I'm trying to connect Javamail application to James server, but I'm getting
javax.mail.MessagingException: Could not connect to SMTP host:localhost, port:4555;
nested exception is: java.net.SocketException: Invalid arguent: connect
Here's the code, which is creating a little problem for me:
import java.security.Security;
import…
Hi there.
I'm taking my first steps in to the world of Wicket. I've set up a login form and a logout page.
The logout page looks like this:
public class LogoutPage extends WebPage {
public LogoutPage(final PageParameters pageParams) {
getSession().invalidate();
setResponsePage(getApplication().getHomePage());
…
It is possible to create proxy on some free webhosting? But I want surfing that I enter web address to the web browser. Do you think that is possible? How?
Hello,
I am trying to create a simple chat client using the red5 media server, but I seem to be having a slight hiccup. I am creating a shared object on the server side, and it seems to be creating it successfully. However, when I make changes to the object via the client (type a message), the SYNC event fires, but the content within…
I'm working on porting an app from WPF to Silverlight.
The app uses custom types derived from FrameworkElement (in WPF) to describe shapes, and text to be rendered on a Canvas.
The WPF app root node overrides OnRender() to iterate through a collection of 'child' nodes, calling Render on each child node to build the Visual Tree.
…
Many of the component libraries and toolkits I'm familiar with lack CLI-specific libraries (zend, kohana, etc..). Are there any libraries/tools that are designed specifically for developing CLI application (such as an abstraction of php's multi-threading library, pcntl/posix)?
Battleship!
Back in 2003, (when I was 17,) I competed in a Battleship AI coding competition. Even though I lost that tournament, I had a lot of fun and learned a lot from it.
Now, I would like to resurrect this competition, in the search of the best battleship AI.
Here is the framework: Battleship.zip
The winner will be…
I am trying to debug the android source using Eclipse by following the instructions found at:
http://source.android.com/using-eclipse
I have downloaded the source, and gotten it to build. I follow the directions in the link above and everything is fine until I run the ddms command. At this point, if Eclipse is running I…
i'm trying to send the iOS device name along with the deviceToken to my server in didRegisterForRemoteNotificationsWithDeviceToken.. my device has an apostrophe in it and the request string shows as ....&name=John+Doe’s+iPhone ...
I've tried replacing "'" with "" and "‚Äô" with "" .. but neither fix it.. i assume i…
Okay so I have started a new language in class. We are learning Scheme and i'm not sure on how to do it. When I say learning a new language, I mean thrown a homework and told to figure it out. A couple of them have got me stumped.
My first problem is:
Write a Scheme function that returns true (the Boolean constant #t)…
I've looked at http://stackoverflow.com/questions/817325/asp-net-mvc-routing-legacy-urls-passing-querystring-ids-to-controller-actions and several other similar posts for legacy URL routing, but I can't get past the error "The RouteData must contain an item named 'controller' with a non-empty string value." Looking this…
I'm having trouble figuring out how to get a named pipe WCF service to work.
The service is in a seperate assembly from the executable.
The config looks like this:
<system.serviceModel>
<bindings>
<netNamedPipeBinding>
<binding name="NoSecurityIPC">
<security…
I am using a in-place editable listview control for a project.
The editable listview adds a 'SubItemClicked' event so that each 'cell' can be edited.
lstSD2.SubItemClicked += new ListViewEx.SubItemEventHandler(lstSD2_SubItemClicked);
I also have the listview checkboxes enabled with a 'ItemChecked' event.
The…
We have an existing repository which is based on EF4 / POCO and is working well. We want to add a service layer using WCF Data Services and looking for some best practice advice.
So far we have developed a class which has a IQueryable property and the getter triggers the repository 'get all users' method. The…
I'm a bit confused all as to why the belowSubview does not work.
I'm adding some (subviews) to my navigationController and all of that works well.
-(UITableView *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
...
...
[self.navigationController.view…
I have an Employee entity which inherits from Person and OrganizationalUnit:
OrganizationalUnit:
@MappedSuperclass
public abstract class OrganizationalUnit implements Serializable
{
@Id
private Long id;
@Basic( optional = false )
private String name;
public Long getId()
…
I'm creating HTML dynamically in a WebBrowser control. Most elements seems to appear correctly, with the exception of a table.
My code is:
var doc = webBrowser1.Document;
var body = webBrowser1.Document.Body;
body.AppendChild(webBrowser1.Document.CreateElement("hr"));
var div =…
I have a ruby on rails app running a server and sometimes it needs to be taken down for updates/etc. As of now, one way I see to have a general display screen during update periods (when the app is down) is to substitute the files within /srv/www/ directory to just have it…
Hi
I have wrote a custom widget
class AutoCompleteWidget(widgets.TextInput):
"""
widget to show an autocomplete box which returns a list on nodes available to be tagged
"""
def render(self, name, value, attrs=None):
final_attrs = self.build_attrs(attrs, name=name)
…
Dear all,
I have a TWO tables of data with following fields table1=(ITTAG,ITCODE,ITDESC,SUPcode)
table2=(ACCODE,ACNAME,ROUTE,SALMAN)
this my customer master tables that contains my customer data such as customer code, customer name and so on...
Every Route has a…
Hi,
I've got a richfaces calendar component defined as
<rich:calendar id="startDate" value="#{myBean.dateSet.startDate}"
timeZone="#{myBean.dateSet.timeZone}"
datePattern="#{myBean.dateSet.datePattern}"
…
Hi,
I'm problem with defining a mouse over effect for my datatables.
I have
<a4j:form>
<rich:dataTable id="dataTable"> ... </rich:dataTable>
<rich:datascroller id="dataScroller" for="dataTable" />
</a4j:form>
…
I am useing the superfish jquery plugin
If you view the superfish menu here: clicky
the drop-downs show correctly (above the main content) in Chrome, Firefox, Safari, IE6, IE7
But for some reason they fall behind the main content in IE8.
I…