I've following code:
int column_width = 100;
long indx1 = alist-InsertColumn(0, L"User Name", wxLIST_FORMAT_LEFT, column_width);
long indx2 = alist-InsertColumn(1, L"User Id", wxLIST_FORMAT_LEFT, column_width);
long itemIndex1 = alist-InsertItem(indx1, L"John Smith", -1);
alist-SetItem(indx1, 1, L"jsmith");
I expect to see two columns with…
We're building a data tracking web app using CakePHP, and I'm having some issues getting the database structure right. We have Companies that haveMany Sites. Sites haveMany DataSamples. Tags haveAndBelongToMany Sites.
That is all set up fine. The problem is "ranking" the sites within tags. We need to store it in the database as an archive. I…
Using Visual studio 2012, C#.net 4.5 , SQL Server 2008, Feefo, Nopcommerce
Hey guys I have Recently implemented a new review service into a current site we have.
When the change went live the first day all worked fine.
Since then though the sending of sales to Feefo hasnt been working, There are no logs either of anything going wrong.
In…
Most advice on thread safety involves some variation of the following pattern:
public class Thing
{
private static readonly object padlock = new object();
private string stuff, andNonsense;
public string Stuff
{
get
{
lock (Thing.padlock)
{
if (this.stuff == null)
…
has anyone used a uitableview to write a uitextview-like interface where I would be able to use multiple fonts?
How would I arrange the table and responder?
In HTML & JS, how do you make a textfield that has grayed out text telling the user what the field is for that goes away when the user clicks on the field?
For example, in firefox the search field in the top right hand side says which search engine it uses when there's nothing entered, then once you click it's an empty textfield, but if…
Given N binary sequence
Example :
given one sequence 101001 means
player 0 can only choose a position with 0 element and cut the sequence from that position {1,101,1010}
player 1 can only choose a position with 1 element ans cut the sequence from that position {null,10,101000}
now player 0 and player 1 take turn cutting the sequence, on…
Hello I have a string and when i try to use replace method in for loop it doesn't work
String phrase="hello friend";
String[] wordds=phrase.split(" ");
String newPhrase="sup friendhello weirdo";
for (int g=0;g<2;g++)
{
finalPhrase+=newPhrase.replace(wordds[g],"");}
}
System.out.println(finalPhrase)
It prints out "sup…
In the hope of fixing a bug of mine from another post i would like to know why apple writes this (for it's Elements example)
UIView *localContainerView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
self.containerView = localContainerView;
[localContainerView release];
instead of the simpler method:
…
Being pretty new to C++, I don't quite understand some instructions I encounter such as:
#ifndef BOT_H_
#define BOT_H_
#include "State.h"
/*
This struct represents your bot in the game of Ants
*/
struct Bot
{
State state;
Bot();
void playGame(); //plays a single game of Ants
void makeMoves(); //makes…
I had a bunch of code in an activity that displays a running graph of some external data. As the activity code was getting kind of cluttered, I decided to extract this code and create a GraphView class:
public class GraphView extends LinearLayout {
public GraphView(Context context, AttributeSet attrs) {
…
Let's say I want to allow my developers to upload their war files to a web app (not the application server itself) running on our intranet and that web app would then run those wars as if they were separate apps deployed individually in our J2EE container.
In other words, we are not actually deploying the wars as…
Hi there,
i have tried to create a contact form (a standard form, square in nature but with rounded corners)... I can't use the CSS3 specs so i have an image for each corner..
I have set the images on the background-image and no repeat but it seems if the div is empty then it doesn't display, is there a hack -…
A List does not work in the way that I want. The way that I want is that WeakReferences are automatically removed from the list when the object they weakly reference is garbage collected.
ConditionalWeakTable does not do what I want either, because although its keys and values are weakly referenced and…
Hi, I have a requirement to create a simple windows forms application that allows an admin user to manage the Services on remote servers. We don't want to give the admins the usernames and passwords to the servers so these will be encrypted and stored in a database.
My question is whether or not it is…
Is there a way to include examples for multiple languages (C# and Visual Basic, for example) in XML documentation?
I'm using SandCastle to build MSDN-style documentation and would like to include usage examples for a few .NET languages.
I would like to explain CQRS to my team of developers. I just can't figure out how to explain it in the simplest way so they can implement the pattern rapidly without any others frameworks. I've read a lot of resources including video and articles but I don't find how to implement CQRS without using…
The rich text editor must be implemented in Java, provide Swing support, and preferably be open source.
I'm looking to integrate it into an existing Java/Swing application.
Thanks.
Hi there,
can anyone tell me if there is a tool for creating the strongly typed classes (available via the schema) - i suppose similar to Paste as XML type ..
But i was hoping for a tool that i could run to automatically update the classes automatically when there are changes
Does anyone know if…
For a musical application (a sequencer), I have a few buttons
static ArrayList<Button> Buttonlist = new ArrayList<Button>();
Buttonlist.add(0,(Button) findViewById(R.id.case_kick1));
Buttonlist.add(1,(Button) findViewById(R.id.case_kick2));
Buttonlist.add(2,(Button)…
I have linked a library with my program. It works fine. The only problem is that there visibility errors/warnings (thousands of them).
They are all of the form:
newlib::method() has different visibility (default) in newlib.a and (hidden) in AppDelegate.o
It is always with AppDelegate.o. I…
Hi,
I'm trying to draw an image in a view but having problems trying to maintain the scale of the original image. Basically, I have a small view and I would like to show part of the image in the view. The intention then is to perform a translation on the image so that a different part appears…