Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
80% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #1K
~60.2K People Reached
Favorite Tags
c++ x 252
java x 86
c x 62
c# x 8

283 Posted Topics

Member Avatar for Acidburn

Hello, It's been a long time since I've done some polymorhpic programming and nowI'm struggling to get my head round it again Here's what I've got... an interface public interface INote { string note { get; set; } } I've 2 options dervived from this public class Disclipinary : INote …

Member Avatar for Acidburn
0
103
Member Avatar for Acidburn

Hey guys, whats wrong with this? var sublistofsolutions = (from x in p.sol().Where( f => f.ps.Where(a => a.p.Location == location) select x); it keeps saying cannot convert expression type of Ienumerable to bool

0
69
Member Avatar for Acidburn

Hey guys, I'm struggling writing some linq. Basically I've got a search method which takes boolean values and decides what results should be included / excluded from the search. Eg Search (bool IncludeStatus1, bool IncludeStatus2, bool includeStatus3...) Now on the back of that I need to create a linq statement …

Member Avatar for Mitja Bonca
0
125
Member Avatar for Acidburn

Hi guys, I'm playing with storyboards and have managed to construct the fallowing based off a tutorial.... My delegate header file #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic, retain) IBOutlet UITextView *label; -(IBAction) my_btn:(id) sender; @end implementation file -(IBAction) my_btn:(id) sender { self.label.text = @"updated!"; } Now with the …

Member Avatar for ChrisPadgham
0
121
Member Avatar for Acidburn

Hi guys, it's been a frustrating day so far, I've taken the week off to get to grips with Xcode and produce an application for the iPhone. Wishing I hadn't now! Anyway, I'm slightly stuck in my conquest... I collasped the "Scene" panel when storyboarding and now I need it …

Member Avatar for Acidburn
0
118
Member Avatar for Acidburn

Hello, I've been playing around with some CSS in an attempt to grow my knowledge. Now, I've drafted up a design on paper and the idea was to have a login box on the right hand side. A sub menu in the middle and a fairly large title banner. So …

Member Avatar for JorgeM
0
112
Member Avatar for Acidburn

Hi guys, I'm using the MVC 2 framework and have managed to mock up a website. I'm trying to demonstrate this prior to given the go ahead and make it full scale. I've got a "Persons" controller, this allows me to add a "person" to the application. I've got a …

0
63
Member Avatar for Acidburn

Guys, I've got an issue but I also dont know if its possible. I've templated (generic'd out a class that takes type T where T is a HtmlControl object ... [code] internal class Controller<T> where T : HtmlControl { public T locateControl(T t) { t.SearchProperties.Clear(); t.Find(); return t; } } …

Member Avatar for darkagn
0
122
Member Avatar for Acidburn

Hello guys, I'm trying to develop a application that calls another exe from my code base. The method to execute is pasted below... [CODE] private void mymethod(FileInfo file) { ProcessStartInfo startInfo = new ProcessStartInfo("jsmin.exe"); startInfo.Arguments = "<fulljslint.js >jslint.js"; Process p = new Process(); p.StartInfo = startInfo; p.Start(); p.WaitForExit(); }[/CODE] The …

Member Avatar for nick.crane
0
2K
Member Avatar for Acidburn

hey guys I'm trying to get hold of a StreamConnection [code] try { StreamConnection conn = ( StreamConnection ) Connector.open ( url ) ; } catch (Exception ex) { ex.printStackTrace(); } [/code] however when i do this i get the following error [quote] java.lang.ClassCastException [/quote] According to my know of …

Member Avatar for Bens
0
164
Member Avatar for Acidburn

Hi guys, I've been banging my head all day with this I've got a regular expression and im trying to extract a menu from the html page source to assert within a test. For the life of me i can't get it to work correctly. Here's the page source: <span …

Member Avatar for thines01
0
148
Member Avatar for Acidburn

Hey guys, I've got 2 tables... Computer Motherboard now computer has a FK constraint from Motherboards PK so I can no longer do a simple insert without having the motherboard present. That all works correctly. Now in my ADO I've got an insert statement on Computer which calls a stored …

Member Avatar for lolafuertes
0
94
Member Avatar for Acidburn

Hi guys, I've started learning SQL after spending several years in the industry. I've got a table defined ... [code] CREATE TABLE [dbo].[Computer]( [Id] [int] NOT NULL, [Name] [nchar](10) NULL, PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS …

Member Avatar for darkagn
0
106
Member Avatar for Acidburn

Hi guys, I'm trying to get to grips with ADO, so I've installed SQL server 2008 and made a database and placed a table called Computers in it. Now ive got the following class... [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.OleDb; using System.Data; using System.Data.SqlClient; namespace …

Member Avatar for Mitja Bonca
0
187
Member Avatar for Acidburn

Hi guys, I've got a C#.NET background and due to circumstances I'm trying to make a plugin written in VB.NET. I've created a new class project which gives me a DLL. This class implements a C# interface which all works. My only question is this... In my C# code I've …

Member Avatar for Unhnd_Exception
0
128
Member Avatar for Acidburn

Hi guys, I'm dynamically loading a dll that I've written at runtime but for some reason I'm struggling to get the generics working. I keep getting the following error: [COLOR="Red"][B][I]Cannot create an instance of XmlPlugin.XmlPlugin`1[T] because Type.ContainsGenericParameters is true[/I][/B][/COLOR] Heres the code that's in the DLL that I'm trying to …

Member Avatar for Acidburn
0
2K
Member Avatar for Acidburn
Member Avatar for Acidburn

Hi guys, I've got an idea but I'm struggling to understand perhaps how one would go about implementing a solution. Basucally I've got a .NET or more so C# UI that loads plugins using reflection. this all works fine but now I'm wondering if its possible to load the C# …

Member Avatar for Momerath
0
103
Member Avatar for Acidburn

Hi guys, Following on from my questions earlier about plugins I've got another stumbling block to get over. I've got an object say "Person". This person has 2 fields - age and name. This lives in the UI project. Now i've got a DLL that implements the following interface: [code] …

0
61
Member Avatar for Acidburn

Hey guys, Just wondering how I check for the space bar input...since my program doesn't seem to want to know when I hit the space bar..... It just outputs a space on the konsole window and then hitting enter makes a new line... cheers John

Member Avatar for Nirvin M
0
238
Member Avatar for Acidburn

Hey guys, I've got this code implemented below in my UI form... and calling it from another thread. On debugging the 'else' part throws an TargetParameterCountException... I'm clueless has to why... [code] public delegate void SolveDrawMaze(Cell aCell); public void SolveDraw(Cell aCell) { if (InvokeRequired) { this.BeginInvoke(new SolveDrawMaze(DoMe)); } else { …

Member Avatar for nick.crane
0
213
Member Avatar for orcboyx

Does this help? [url]http://forum.java.sun.com/thread.jspa?threadID=280745&messageID=1092147[/url]

Member Avatar for javaAddict
-1
885
Member Avatar for Acidburn

Hey guys, I'm uploading form data with a file so having to use the HTTPResponse and request objects provided by .NET. It's all going well but now I want to obtain progress. It would appear that HttpWebResponse.getResponse() actually uploads the file and waits for the response. Given that this is …

Member Avatar for Teme64
0
97
Member Avatar for trippinz
Member Avatar for Acidburn

Hey guys, Is it possible to have Thread X do more than one thing half way through executing another task? I'm trying to learn more about threading, I understand multithreading and wait and resume but I was more after knowledge about whether I can use 1 thread to mimic the …

Member Avatar for Narue
0
35
Member Avatar for kohkohkoh
Member Avatar for shock1

your passing char, now which char is that????? , that could be a huge hint! See if you can get this one yourself, i've done the rest, so I'm sure you can work this one out from the others?

Member Avatar for Narue
0
339
Member Avatar for Ravenous Wolf

Yeh compile it and use the *.jar file. All the java command does is compile it? Could be wrong here.

Member Avatar for shruti123
0
242
Member Avatar for Acidburn

Hey guys, Is there a standard library for communicating with a USB device? I've got a smart card reader that works via USB, and implemented the PC/SC interface. To my knowledge and googling I've not been able to answer the question. Surely someone somewhere as written a library to allow …

Member Avatar for ddanbe
0
117
Member Avatar for Acidburn

Hey guys, a long shot in the dark, but I've googled around for this and so far not promising! All the threads / pages / wikis etc I've read are all pre 2005 and state it can't be done yet. I can't find any information thats up to date. So …

Member Avatar for peter_budo
0
88
Member Avatar for Acidburn

Hey guys, I'm coding a phonebook viewer using J2ME, now the following code appears to break when the hasMoreElements gets fired! The exception is a arrayoverflow type on. Not sure why though [code] /* * Midlet.java * * Created on 15 July 2009, 23:38 */ import java.util.Enumeration; import javax.microedition.midlet.*; import …

Member Avatar for kvprajapati
0
199
Member Avatar for Acidburn

Hey guys, Is it possible for a J2ME application to access the devices phonebook? I've been googling but nothing much as turned up. John

Member Avatar for peter_budo
0
84
Member Avatar for Acidburn

Hey guys, I'm really puzzled about this error: [quote] Error 1 Feature 'generics' cannot be used because it is not part of the standardized ISO C# language specification C:\Documents and Settings\John Rudd\Desktop\dissertation\custom_plugin\myProtocolPlugin\myProtocolPlugin\Commands.cs 9 54 myProtocolPlugin [/quote] Generics IS supported, I've done it on more than one occasion in the same …

Member Avatar for sknake
0
145
Member Avatar for Acidburn

Hey guys, I've got a mobile application written which can browse through directories on the handheld device. This links to a C# application on windows via a usb cable (Simple phone cable). now i'm wondering how to go about transfering a file from the device over the serial conection and …

Member Avatar for di2daer
0
112
Member Avatar for Acidburn

Hey guys, I'm trying to access the file system of a Nokia device which operates on Symbain OS 60. Is this possible with Java? I've googled around but can't seem to find much... Most likely my search terms. Could someone point me in such a direction? Thanks, John

Member Avatar for di2daer
0
299
Member Avatar for Acidburn

Hey guys, I'm not sure where to post this but I've got some code written in C#. Now I'd like to talk to the device, I can't find any information on obtaining a connection to an S60 device. Could someone point me in the right direction please. John

Member Avatar for Ramy Mahrous
0
31
Member Avatar for Ankita B
Member Avatar for Acidburn

Hey guys I've got a Factory that can return a database writing object. It takes in a config file that points it to which class to create an object of. Now this is were I'm stuck. Factory -> returns a database writter now there's more than 1 way of writing …

Member Avatar for JerryShaw
0
101
Member Avatar for Acidburn

Hey guys, I've got a multithreaded application done in C# but the label on one of my forms won't update! It doesn't do anything [code] public IndividualPCSpec(AllKnownDevicesFrm parent) { m_Parent = parent; InitializeComponent(); m_IPAddressLbl.Text = "HELLO"; } public void showInformation(ComputerHardware dto) { m_IPAddressLbl.Text = "HELLO WORLD"; this.Refresh(); this.m_IPAddressLbl.Refresh(); Application.DoEvents(); } …

Member Avatar for alc6379
0
157
Member Avatar for Acidburn

Hey guys, I've got a multithreaded application. The GUI runs on its own thread whilst a background worker thread will get invovked later on. Now the problem occurs when the bakground thread trys to manipulate the GUI thread. Solution is a callback using invokeRequired. [code] public void ThreadProcSafe2(String text) { …

Member Avatar for dickersonka
0
110
Member Avatar for gemini31

you can get software from the manufacteur of your HDD or try the smart boot software that comes with your mobo

Member Avatar for jlego
0
244
Member Avatar for Acidburn

Hey guys, I've got a GUI thread, which creates a new thread to compute some data. Depending on how big that data is more threads get spawned from the new thread. My problem is this GUI - Thread A - Thread A creates a new Object called objectB. Object B …

Member Avatar for LizR
0
77
Member Avatar for Acidburn

Hey guys, I've found this article showing how to manipulate itunes using java and com objects. However I dont really understand how it works, and can't seem to tell java to send a play / pause request. The event listeners works. [url]http://www.workingwith.me.uk/articles/java/itunes-com-with-java-and-swing[/url] Could someone try and expand on this? Or …

Member Avatar for priyankalakhe
0
148
Member Avatar for Acidburn

Hey guys, my main thread seems to stop when i start 2 new threads and start them off. It sits and waits for the 2 threads to finish. The two threads are created off a factory class. Is this why? Its not created in the GUI class? Cheers.

Member Avatar for dickersonka
0
65
Member Avatar for amaravanich

kaleeswaranm please read the rules.. We don't do other people's homework!!

Member Avatar for stultuske
0
204
Member Avatar for Acidburn

Hey guys, I've an issue when it comes to multithreading i seem to get this error after updating a variable... [quote] Cross-thread operation not valid: Control 'progressBar1' accessed from a thread other than the thread it was created on. [/quote] Basically I'm trying to use a progress bar indicator to …

Member Avatar for dickersonka
0
98
Member Avatar for Achupa

Woah!! Woah!! Woah!! First things first, don't catch Exception unless you really need to! Exception will catch *all* exceptions. I'd rather create my own exception class which inherits the base class. Then you can catch that one!

Member Avatar for orko
0
131
Member Avatar for Acidburn

Hey there, I'm quite new to C# but have an extensive background in Java so I know all the basics and perhaps more. But I've found i'm struggling with C#'s answer to dynamic binding at runtime. Whilst Java can take a namespace entry from an interface and turn it into …

Member Avatar for fuzzelogic
0
177
Member Avatar for Acidburn

Whats wrong with this syntax? I can't figure it out for the life of me! [code] String str = ((String)result[i][1] ? (String)result[i][1] : ""); [/code] [quote] Error 7 Cannot implicitly convert type 'string' to 'bool' [/quote] its doing me trunk in :p

Member Avatar for Narue
0
107
Member Avatar for Acidburn

Hey guys I've got the following code drawn up. But it doesnt work has I wanted it to and can't figure out why. If the user doesn't exist or if that username has been disabled then the query should return -1 otherwise it returns 0. Now that doesn't happen. It …

0
45

The End.