I've decided to do it this way
flip numbers 0=1, 1=0
add 1 to LSB
if carry, loop until array[i]==0
But I'm stuck on the last point; how can I say that in a conditional loop?
Hi Guys,
My friends and I are trying to setup GIT for windows using this tutorial but we just keep running into problems.
I know many of you guys on this site are GIT gurus - so I was wondering whether anyone would be able to help us (and I am sure 100s of other Windows Devs who want to use GIT) write a "Setup GIT Server" guide for windows using…
My dbml file is just getting bigger and bigger and more unwieldy:
I favoured an all-in-one approach as supposed to multiple data contexts because when I tried that it was near impossible to manage in code. I was advised it was better to have them all in one chart and the difficulty will be simply in managing this chart and not in code.
The…
Is it possible to get the target element in a keypress event handler in a design mode iframe ? I know it can be done in the mousedown event handler (by accessing event.target), but in the keypress / keydown handlers event.target is always the iframe element. For example, with the following html, if the user types into the div where it says *…
Hi there.
I'm trying to install SugarCRM version 5.5.1. on a webhost.
Everything goes nice until the step when the installation begins.
The output is this one:
Creating Sugar configuration file
(config.php)
Creating Sugar application tables,
audit tables and relationship metadata
.............
And never moves on!
I…
I'm tearing my hair out trying to work out why the command I'm executing via Java using a ProcessBuilder & Process is not working. I run the "same" command at the Windows command line and it works as expected. It must be that they're not the same but I can't for the life of me work out why.
The command is this:
ccm start -nogui -m…
I am running Eclipse 3.5 and JBoss 5.1. I want to create a JSF 2.0 project.
I heard here that the Eclipse JBoss Tools plugin version 3.1 (available here) could do this for me.
I have installed the plugin. However, if I go to the Project Facets properties page for a Dynamic Web Project, I only see Facets for JavaServer Faces 1.1 and…
I'm using this library: jsinq.
I want to create a new object using subqueries. For example, in .NET LINQ, I could do something like this:
from a in Attendances
where a.SomeProperty = SomeValue
select new {
.Property1 = a.Property1,
.Property2 = a.Property2,
.Property3 = (from p in People
where…
With silverlight 4.0, it is possible to show a live video of the user on the screen:
Here is the code
VideoBrush videoBrush = new VideoBrush();
CaptureSource captureSource = new CaptureSource
{
VideoCaptureDevice =
…
In Python, if I were to have a user input the number X, and then the program enters a for loop in which the user inputs X values, is there a way/is it a bad idea to have variable names automatically increment?
ie:
user inputs '6'
value_1 = ...
value_2 = ...
value_3 = ...
value_4 = ...
value_5 = ...
…
I made a custom scrollbar that sits beside a normal textbox.
I would like to scroll the text box like you would any other one with my control. How can this be done?
Thanks.
Hey there,
I am trying to get my application an installer via WiX 3.0. The exact code is:
<File Id="ServiceComponentMain" Name="$(var.myProgramService.TargetFileName)" Source="$(var.myProgramService.TargetPath)" DiskId="1" Vital="yes"/>
<!-- service will need to be installed under Local Service -->…
How do you rotate an image with the canvas html5 element from the bottom center angle? See http://uptowar.com/test.php for my current code and image:
<html>
<head>
<title>test</title>
<script type="text/javascript">
function startup() {
var canvas =…
Am I understanding it wrong, or is the description wrong?
Equals checks for noncompatible
operand
(EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS)
This equals method is checking to see
if the argument is some incompatible
type (i.e., a class that is neither a
supertype nor subtype of the…
I wrote a python script that does some stuff to generate and then keep changing some text stored as a string variable. This works, and I can print the string each time it gets changed.
Problems have arisen while trying to display that output in a GUI (just as a basic label) using tkinter.
I can get the…
I've got an Android application which needs to be woken up sporadically throughout the day.
To do this, I'm using the AlarmManager to set up a PendingIntent and have this trigger a BroadcastReceiver. This BroadcastReceiver then starts an Activity to bring the UI to the foreground.
All of the above…
Hi,
I am trying to create a dynamic datagrid in Flex 3, I have a list of columns a list of objects which correspond to datapoints for those columns which I fetch from a url. While the grid works perfectly fine the problem is that sorting on the columns is done in lexical order.
I am aware that…
Hi Guys,
I have the following HTML
<div id="testID" class="test1">
<img id="testID2" class="test2" alt="" src="some-image.gif" />
</div>
I basically want to get to #testID2 and replace .test2 class with .test3 class ?
I tried
…
There was another question with an answer saying that you can use event.down.x to get the x-coordinate of a tap event. It also said that this was not well documented in the Palm Mojo SDK. My question is how can I find the properties that I can use for any given…
Hi!
I want to learn how to use UDK because I always wanted to make games, etc. Is there anybody who knows a good book or online guide to learn the basics?
Thanks a lot!
Run this, and be confused:
<Window x:Class="Fucking_Data_Grids.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350"…
I'm trying to enumerate the contents (feature classes and feature datasets, not interested in tables, etc) of a file geodatabase using vba/arcobjects.
I have the file GDB set as an IGxDatabase object, but can't find a way of getting further in. I've had…
How do I handle key presses and key up events in the windows message loop? I need to be able to call two functions OnKeyUp(char c); and OnKeyDown(char c);.
Current literature I've found from googling has lead me to confusion over WM_CHAR or WM_KEYUP and…
I'm trying to learn how to make a firefox extension. I want to create a toolbar that only shows up on a specific page. I can make the toolbar appear, but then it should become hidden when I open or switch to a new tab, or close the tab with that…