solved

How to get IKVM to build in Visual Studio 2008?

I've downloaded the IKVM sources (http://www.ikvm.net/) from http://sourceforge.net/cvs/?group_id=69637 Now I'm trying to get it to build in Visual Studio 2008 and am stuck. Does anyone know of documentation of how to build the thing, or could even give me pointers? I've tried opening the ikvm8.sln, which opens all the projects, but tr...

Fatal Error C1083 - Cannot open include file: "windows.h": No such file or directory

Hey guys, I'm trying to get IKVM to build (see this question) but now have encountered a problem not having to do with IKVM so I'm opening up a new question: When running nant on the IKVM directory with the Visual Studio 2008 Command Prompt (from the Start Menu), I get the following error: ikvm-native-win32: [c...

Getting "database is locked" error messages from Trac

Wondering if anyone has gotten the infamous "database is locked" error from Trac and how you solved it. It is starting to occur more and more often for us. Will we really have to bite the bullet and migrate to a different DB backend, or is there another way? See these two Trac bug entries for more info: http://trac.edgewall.org/ticket/...

[resolved] Can Access "Forms" be treated like .NET forms, example given inside

In a .net project, create two forms {Form1, Form2} and on each form create a basic button {Button1} On [Form1] use this code: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myform As New Form2 myform.Show() End Sub End Class and on [Form2]: P...

C# Simple Countdown - What am I doing wrong?

I wanted to make a simple Countdown-Application with C# to show as an example. For the very first and basic version I use a Label to display the current time left in seconds and a Button to start the countdown. The Button's Click-Event is implemented like this: private void ButtonStart_Click(object sender, RoutedEventArgs e) { ...

How to connect a slot to signal QProcess::started() ? QT

Edit: Solved. Hi, I'm starting with QT, I try to connect a slot to signal QProcess::started() but can't. QObject::connect() returns false. Any idea what am I doing wrong? Here's part of the code: class foo : public QObject { public: QProcess *process; public slots: void process_started(); } foo::foo() { process = new QPro...

How to enforce URI segments to Kohana pagination after the page URI segment?

I'm using Kohana's pagination library and it lets you specify the parameter uri_segment at initialization. When it generates the pages links, they will have that uri_segment you specified, and after that, the page link. Let's say: /some/uri/segments/6 where 6 is the page. Now, that enforces the page number to be the last uri segment. W...

Set a value in CKEditor 3

Hello all, This probably is a very very basic question but i can't seem to find anything about it in the manual. All i want to do is set a value in textarea converted to a CKEditor instance. I tried to pull out some javascript functions with NetBeans, but i couldn't find one that looked like setting a value. So I figured, lets take a l...

How would you go about tackling this problem? [SOLVED in C++]

Intro: EDIT: See solution at the bottom of this question (c++) I have a programming contest coming up in a bit, and I've been prepping :) I'm practicing using these questions: http://cemc.math.uwaterloo.ca/contests/computing/2009/stage2/day1.pdf I'm looking at problem B ("Dinner"). Any idea where to start? I can't really think of a...

[SOLVED]jquery: select first child node

lets say i have a tree of the following structure: <div>node level1 <div>node level2 <div>node level3...etc Is there a way in jQuery, that if div level1 is clicked, only divs of level2 respond? meaning: $('div').click(function(){ $('div').children(first div child).css('color','red'); }) thanks for any input! ::EDI...

Ajax PHP MYSQL on enter

I am using the below code to search a mysql database but cannot get the form to submit when the return key is pressed. Does anybody have any ideas? function ajaxFunction(){ var ajaxRequest; { // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new...

Get number of selected items in android ListView

I have a multiselection listview in my android app. What I need to know is how many items on that list I have selectet. ...