I can't seem to get a page to load with scrubyt and I think its because the page I am navigating to checks the referer. Is it possible to set the referer on the fetch action?
I have created some jQuery and put it in an ascx include. It works fine on regular pages, however when I load a secured page on my site I get the following javascript error.
Permission Denied
jquery.min.js
Code: 0
Any ideas?
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
ok guys a question, can this be done or has it already been done, or can someone point me in the right direction (be aware i an a total newbie with action script)
i have a main swf movie about 600px x 400 px
what i want is this to run for say 30 seconds, then i want a countdown timer in the bottom corner for say 10 seconds, after this i want it to randomly load another swf file over the top of the original, and then the timer repeats for 10 seconds and repates the random loading of another swf file over the top etc, etc, etc
so whats the best way around this
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...)
In my HTML document, I have a table with two columns and multiple rows. How can I increase the space in between the first and second column with css? I've tried applying "margin-right: 10px;" to each of the cells on the left hand side, but to no effect.
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!
After spending 14 hours on this I think its time to share my woes and see if anyone has experienced this issue before.
Ill describe the issue and tests I have done to rule out certain things.
Ok so I have a WPF application which loads in data from an SQL database.
I am using DevExpress Components for datagrids, ribbons etc.. and FluentNhibernate to provide a session for database operations. I am also using log4net to log events to a textfile.
Using the application on my laptop with SQL Express 2008 works fine.. the application starts up, retrieves 1000 records and I can tab through the controls on the ribbon.
Now, I decided to demo the application to a third party and used remote login/sharing software online to share my desktop with the other person so as I could load the application on my laptop and they could view me using the application.
Now, the application takes approx 45 seconds to load... 30 seconds with a blank database where as, when im not sharing out my screen using the online software the application loads in about 7-10 seconds. As well as that, even using the controls in the application during the demo were very sticky, slow and unresponsive.
During the sharing session though however I was able to use other applications without any problems.. everything else worked fine.
But I cannot understand how my application works ok under normal conditions , even browsing the net at the same time etc... BUT totally fails to perform correctly when I am sharing a session with another user... the CPU usage shot up to 100% too at times when the application was trying to start up...
Please see below a list of 3rd party dlls I am using as references in my project.
DevExpress dlls
FluidKit
PixelLab.WPF
PixelLab.Common
Galasoft WPF Kit
FluentNHibernate
NHibernate
Nhibernate.ByteCode.Castle
Skype4ComLib
TXTEXTControl
log4net
LinqKit
All of these DLLs are in the output folder with the application dlls created from the class assemblys in the project. So when installed via an installer on a machine the dlls will be in the same application folder as the application file itself.
Many thanks
I get the following error when trying to start a daemon using Ubuntu 10.04 and the PHP5:
PHP Warning: PHP Startup: Unable to load dynamic library 'usr/lib/php5/20060613/pcntl.so' - /usr/lib/php5/20060613/pcntl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Does System_Daemon try to call pcntl? If so, why is it looking for the file where it does not exist?
I am a couchDB newbie and am doing the examples in the O'Reilly CouchDB guide.
I have a problem using a view to retrieve a document by key:
curl http://127.0.0.1:5984/basic/_design/example/_view/by_date?key="2009/01/15 15:52:20"
gives the reply:
curl: (52) Empty reply from server
but just retrieving all rows:
curl http://127.0.0.1:5984/basic/_design/example/_view/by_date
gives me 3 rows including the specific row I am looking for:
{"id":"hello-world","key":"2009/01/15 15:52:20","value":"Hello World"}
why doesn't the key query work?
I am using CouchDB version 0.10.0 on Ubuntu 9.10
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?
I need the same document to be printed twice, but with one single different word when the user does one click. I have tried everything i could come up with but i can't find a way to do it. Any recommendations?
I have two view controllers (viewControllerA and viewControllerB) with their own views. When the user touches a button in the view of viewControllerA, I am able to load the view of the viewControllerB.
However, I don't know how to invoke a method in viewControllerB's class!
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 to load a reference when my configuration is x64 and another when my configuration is x86?
Thanks,
Richard.
Silverlight version of Windsor container does not provide XmlInterpreter() for reading bindings from config file. Could someone suggest how can I implement my own interpreter?
The online document suggest reading a configuration file, creating an instance of IConfiguration and registering them into IConfigurationStore.
How and where can I do this?
I'm interested in Password protecting my apps RSS Feeds. So when you load a RSS feed url in the browser the browser's default dialog asks for a login and password.
Any tutorials or tips on how to get this to securely work? 37 Signals has this behavior on their web apps.
Thanks
Hi I'm using shadowbox and I am trying to load 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,
Im trying to load 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,
I am considering using MongoDB (mongo-mapper) for a portion of my rails application. I am not ready to go whole hog MongoDB because there are too many useful gems that depend on a traditional DB.
That being said there are parts of my application that would be great to leverage a document database.
Has anyone had success mixing the two approaches? How do you link activerecord models with mongomapper models?
Thanks,
Jonathan
Hi,
When using :
document.onmouseover = function(e) {}
Is there a property which gives me the element in the dom tree ?
For example, I can set a style to e.srcElement
But, how can I later access this element to (for example) reset its style ?
And how can I know at which place in the dom tree it is ?
I want to be able to situate it in the whole page dump.
Many thanks.
I am wanting to return the start and end range or the caret postion inside a div. The div will have the attribute contentEditable.
typically I would use document.selection.createRange(); but the createRange function is broken in IE8 is there a way to get around this?
Couldn't find an answer, but Im trying to get the last ID of the last div that was created on the page. The code I'm using doesn't seem to work using .last(). My syntax is probably wrong but I can't get it to show the ID.
jQuery(document).ready(function()
{jQuery("a.more_posts").live('click', function(event){
jQuery("div[id^='statuscontainer_']").last();
var id = parseInt(this.id.replace("statuscontainer_", ""));
alert(id);
});
});
I would like to know, if you people out there could help me out, regarding the best practices or the a better way for creating a flash website... Actually I would like to know whether we should load the xml first and then the swf and other components or the other way round ?
I am bit confused, even if anybody could refer some book to dig upon the steps or most common practices regarding the development... it would of great help...
Thanks
shane amon
How can I add a subview when the new view is in a different xib file?
The class for the different nib is an NSViewController and I'm using self = [super initWithNibName:@"NewView" bundle:nil]; to load the nib
Can I just do something like:
NewView *nv = [NewView new];
[oldView removeFromSuperView];
[mv addSubview:[nv theView]];
or do I have to do something different