I have a ListBox on my Form, I want to save it and load the values when I start the application again.
How can I save a list on PrjName.Properties.Settings.Default?
Hi,
I have a list of rows in an excel sheet which I need toload as historical transactions into a table in my rails applications. I saved the excel file as a csv file. I tried using csv from the standard library but keep getting the following exception CSV::IllegalFormatError.
Not sure how to even figure out where the problem lies. Any suggestions on how to do this.
thanks,
ash
I am trying to manually code some changes into my SharePoint Site Template. I can get the stp/cab file open and have added a new Element to the manifest.xml file, but when I repackage the stp and load it onto the server - the new site that I create using the updated .stp does not reflect the new link that I have added to the manifest.xml
I realize this isn't the proper way to add a link to the sidebar but am interested to make it work this way, for other reasons.
Hi Folks,
I've never come across this before:
I have a series of text boxes. The text of these boxes get set on page load. then I have a submit button that calls a sub to update the table with the new values (text) in the text box. The problem is it is keeping the original text not the text that is CURRENTLY in the textbox. Anyone come across this before? Or know how to get round it?
Cheers,
Jonesy
I had to get a new machine recently. It is Windows 7, loaded with Studio 2008, with Framework 3.5 sp1. When I load pre-existing projects that use the Entity Framework, the projects don't recognize the .edmx files. Any ideas?
Hi friends,
I built a website with CodeIgniter last year www.example.com, and client wanted Wordpress Blog last week. I built the blog and uploaded to www.example.com/blog
Now when I click any link on wordpress it gives error as below :/
http://www.example.com/blog/category/one-last-category/
An Error Was Encountered
Unable toload your default controller. Please
make sure the controller specified in
your Routes.php file is valid.
How can I set Codeigniter to ignore Wordpress folder?
Appreciate helps!!!
Hi,
Im trying toload a remote image into a pdf generated by tcpdf however I can't seem to get it to work?
The rest of the pdf loads fine and it looks like to trying to retrieve the image however it just does print to the page?
The code I am using is:
$pdf->Image("http://media.domain.com/logo.jpg", 0, 0, 100, 150, 'JPEG', '', 'T', true, 72,'','','','','','','');
Any help on this would be a massive help,
Thanks,
Im using phonegap and currently I have a webapp with php and javascript / html running inside of an iframe. It worked for a while but now it crashes with this error when I load the page
-[CFString retain]: message sent to deallocated instance 0x4593540
any ideas? thanks
This question might be a duplicate of this one:
http://stackoverflow.com/questions/217761/nhibernate-disable-automatic-lazy-loading-of-child-records-for-one-to-many-rela
I'd like to know if there is any way to tell nhibernate to do not load a child collections (best if it's with fluent Nhibernate) unless i do it manually with a query (keeping all the mappings!).
The problem is that even turning off lazy loading the collections get eager-loaded automatically. I'd like that no collections are loaded unless I specify a fetchmode in my query.
I've used this calendar widget for several years and several pages, but IE8 refuses toload my new page when I add the date picker.
Has anyone seen/overcome this kind of problem?
Thanks!
Is there any way to disable the "Press ENTER or type command to continue" prompt that appears after executing an external command?
EDIT: Found a workaround: Add an extra <CR> to the shortcut in my .lvimrc.
map <F5> :wall!<CR>:!sbcl --load foo.cl<CR><CR>
Any better ideas?
Is it possible toload new lines from a text file to variables in bash?
Text file looks like?
EXAMPLEfoo
EXAMPLEbar
EXAMPLE1
EXAMPLE2
EXAMPLE3
EXAMPLE4
Variables become
$1 = EXAMPLEfoo
$2 = EXAMPLEbar
ans so on?
i have aspx pages with vb.net in the back. I need to use javascript to open a new window on page load. I am also sending a querystring (www.mysite.com/default.aspx?dest=register.aspx) from the previous page. I need the javascript to parse the querystring and open the new window only if the URL has a querystring.
please advice
Hi guys,
I've been trying to teach myself how to use the Archiving/Unarchiving methods of NSCoder, but I'm stumped.
I have a Singleton class that I have defined with 8 NSInteger properties. I am trying to save this object to disk and then load from disk as needed.
I've got the save part down and I have the load part down as well (according to NSLogs), but after my "initWithCoder:" method loads the object's properties appropriately, the "init" method runs and resets my object's properties back to zero.
I'm probably missing something basic here, but would appreciate any help!
My class methods for the Singleton class:
+ (Actor *)shareActorState
{
static Actor *actorState;
@synchronized(self) {
if (!actorState) {
actorState = [[Actor alloc] init];
}
}
return actorState;
}
-(id)init
{
if (self = [super init]) {
NSLog(@"New Init for Actor started...\nStrength: %d", self.strength);
}
return self;
}
-(id)initWithCoder:(NSCoder *)coder
{
if (self = [super init]) {
strength = [coder decodeIntegerForKey:@"strength"];
dexterity = [coder decodeIntegerForKey:@"dexterity"];
stamina = [coder decodeIntegerForKey:@"stamina"];
will = [coder decodeIntegerForKey:@"will"];
intelligence = [coder decodeIntegerForKey:@"intelligence"];
agility = [coder decodeIntegerForKey:@"agility"];
aura = [coder decodeIntegerForKey:@"aura"];
eyesight = [coder decodeIntegerForKey:@"eyesight"];
NSLog(@"InitWithCoder executed....\nStrength: %d\nDexterity: %d", self.strength, self.dexterity);
[self retain];
}
return self;
}
-(void) encodeWithCoder:(NSCoder *)encoder
{
[encoder encodeInteger:strength forKey:@"strength"];
[encoder encodeInteger:dexterity forKey:@"dexterity"];
[encoder encodeInteger:stamina forKey:@"stamina"];
[encoder encodeInteger:will forKey:@"will"];
[encoder encodeInteger:intelligence forKey:@"intelligence"];
[encoder encodeInteger:agility forKey:@"agility"];
[encoder encodeInteger:aura forKey:@"aura"];
[encoder encodeInteger:eyesight forKey:@"eyesight"];
NSLog(@"encodeWithCoder executed....");
}
-(void)dealloc
{
//My dealloc stuff goes here
[super dealloc];
}
I'm a noob when it comes to this stuff and have been trying to teach myself for the last month, so forgive anything obvious.
Thanks for the help!
I have a dilemma. I've used DI (read: factory) to provide core components for a homebrew ORM.
The container provides database connections, DAO's,Mappers and their resultant Domain Objects on request.
Here's a basic outline of the Mappers and Domain Object classes
class Mapper{
public function __constructor($DAO){
$this->DAO = $DAO;
}
public function load($id){
if(isset(Monitor::members[$id]){
return Monitor::members[$id];
$values = $this->DAO->selectStmt($id);
//field mapping process omitted for brevity
$Object = new Object($values);
return $Object;
}
}
class User(){
public function setName($string){
$this->name = $string;
//mark modified by means fair or foul
}
}
The ORM also contains a class (Monitor) based on the Unit of Work pattern i.e.
class Monitor(){
private static array modified;
private static array dirty;
public function markClean($class);
public function markModified($class);
}
The ORM class itself simply co-ordinates resources extracted from the DI container. So, to instantiate a new User object:
$Container = new DI_Container;
$ORM = new ORM($Container);
$User = $ORM->load('user',1);
//at this point the container instantiates a mapper class
//and passes a database connection to it via the constructor
//the mapper then takes the second argument and loads the user with that id
$User->setName('Rumpelstiltskin');//at this point, User must mark itself as "modified"
My question is this. At the point when a user sets values on a Domain Object class, I need to mark the class as "dirty" in the Monitor class. I have one of three options as I can see it
1: Pass an instance of the Monitor class to the Domain Object. I noticed this gets marked as recursive in FirePHP - i.e.
$this-Monitor-markModified($this)
2: Instantiate the Monitor directly in the Domain Object - does this break DI?
3: Make the Monitor methods static, and call them from inside the Domain Object - this breaks DI too doesn't it?
What would be your recommended course of action (other than use an existing ORM, I'm doing this for fun...)
Hi,
I'm working on visual studio in an x86. I would like to build my application for both x32 and x64. But i need to use the sqlite .net connector wich has a dll for x86 apps and another dll for x64 apps. How do i configure my visual studio toload a reference when my configuration is x64 and another when my configuration is x86?
Thanks,
Richard.
Hi,
I'm trying to accomplish something like Blogengine.Net's way of handlling extensions/plugins. The goal is to have a plugin as a ordinary class file (not a dll), put it in a folder and the webapplication should load it dynamically.
Any help, links, anything is much appreciated.
Don't really know where to begin.
I have an image set by css style to 100x75. When it doesn't load, the alt text loads into the space, but expands the container to beyond 100px width.
How can I prevent this?? Either by cutting it off or wrapping it
I can't use App_Code in Web Application, but I need loadto GridView DataTable from my procedure , how can I work with ObjectDataSource in Web Application (I can't use WebSite yet) ?
I need some classes for playing short wav sounds, this classes would load this wav files into memory when an instance created, play sounds in background when needed, release this wav files from memory when an instance disposed.
How can I do this on C# for windows (.Net 2.0)? (Win API's sndPlaySound, OpenAL or may be any wrapper)
Ideally I would love to find an exist solution that simple and able to solve my task.
Do you know any solutions for this issue?
Hi I'm using shadowbox and I am trying toload my video that has a custom skin. But for some reason it can't find my custom flash player. When I don't use shadowbox I can view the video and the skin shows up.
Thanks in advance!
Hi, All.
When I set break point at some line and press Build&Go my breakpoints become yellow and my program continues. Nothing happens. I`ve unchecked Object Lazy ..., optimization levels, active target is Debug, load debugging symbols is checked. I also want to mention that my debugger never worked before.
I need toload in an swf component but I want it to be an exact width and height, problem is that when I set width and height it doesn't matter, content of that swf still goes out of predefined bounds. How can I tell it not to do so, so it will work exactly as in html document embed?
I have a simple small question which someone who knows will be able to answer easily, I searched google but couldn't find the answer.
There are many programs running at once on a computer, and my question is: when a program loads a DLL, does it actually load the DLL file or does it find the memory in which the DLL is already loaded? For example, is ws2_32.dll (winsock 2) loaded for every program that uses winsock, or is it loaded once and all programs that use it use the same memory addresses to call the functions?
I have a submit button that changes when the user hovers his mouse over it. Right now the image is taking a while toload and you get a half second where there is white screen instead of the other button. Is there anyway to improve this using just CSS and HTML or do I need to do some JS work?