Posts Tagged ‘manual’

Manual flex compling creating two files as .swf and .swf.cache

Posted in Adobe on October 2nd, 2009 by Saba – Be the first to comment

Hi,

I have complied my mxml in flex builder and it generates the .swf file in 5251478 bytes size.

In Same way , When i complied the same in linux box as instructed below link

http://asantoso.wordpress.com/2008/05/18/flex-3-sdk-command-line-development-with-example-on-linux/

I Could able to generate the swf file as .swf file size 3985282 and generated another swf as .swf.cache file size 13162929

Can any one help me why it has generated in such way and i cannot able to run the generated .swf file.

Below is the command i have used

mxmlc -load-config flex-config.xml -locale=en_US -include-resource-bundles=SharedResources,charts,collections,containers,controls,core,datamanagement,effects,formatters,locale,logging,messaging,rpc,skins,styles,validators -source-path+=/home/myproj/myproj_Compile/workspace/locale/{locale},/home/myproj/myproj_Compile/workspace/src,/home/myproj/myproj_Compile/flexsdk/3.2.0/fbpro/projects/datavisualization/bundles/{locale} -show-binding-warnings=false -show-actionscript-warnings=false -show-deprecation-warnings=false -warnings=false /home/myproj/myproj_Compile/workspace/src/myproj.mxml -incremental=true -keep=true -output /home/myproj/myproj_Compile/workspace/bin/myproj.swf

manual sticky mac address

Posted in Cisco on September 25th, 2009 by Saba – 9 Comments

Hi,

Id like to know what is the point of having sticky manually entered mac addresses as they are part of the configuration anyway.

Thanks, Abderrahim

Core Data Manual Migration

Posted in Apple on September 11th, 2009 by Saba – 2 Comments

Hello, I need to implement manual migration in order to chain migrations. I have compiled every mapping model from a version to the next one. All my models are included in my resources (in a .momd bundle). My code determines the model version used to create the document metadataForPersistentStoreOfType:URL:error: and isConfiguration:compatibleWithStoreMetadata:. with success. Once the version is determined, I determine the migration path using the model name (if I have found that the document is using model A, and that current is C, I now I should use AtoB and then BtoC mapping models). Once I have manually got my file to be migrated, source model, destination model, mapping model. I cannot successfully migrate using NSMigrationManager.

I have configured NSMigrationManager following the steps described in Core Data Migration Programming Guide - Customizing the Migration Process:

NSMigrationManager *mManager = [[NSMigrationManager alloc] initWithSourceModel:srcModel destinationModel:destModel]; NSString *storePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"(A document being migrated)"];

if ([[NSFileManager defaultManager] fileExistsAtPath:storePath]) { // Removing previous item because unless, core data will try to append data rather overwriting [[NSFileManager defaultManager] removeItemAtPath:storePath error:&error]; }

NSURL *storeURL = [NSURL fileURLWithPath:storePath]; NSURL *backupURL = [NSURL fileURLWithPath:[[[storePath stringByDeletingPathExtension] stringByAppendingString:@”~”] stringByAppendingPathExtension:[storePath pathExtension]]];

[mManager migrateStoreFromURL:URL type:nil options:0 withMappingModel:mModel toDestinationURL:storeURL destinationType:nil destinationOptions:0 error:&error];

if (error) { NSLog(@”An error occured while manually migrating document: %@”, error); NSLog(@”UserInfo: %@”,[error userInfo]); }

The process fails here and the log then contains the following: An error occured while manually migrating document: Error Domain=NSCocoaErrorDomain Code=134110 UserInfo=0xf336960 “An error occured during persistent store migration.” [6871:813] Error: { reason = “Can’t add source store”; }

I don’t understand what does mean Can’t add source store, and how should I configure my Migration Manager to perform my migration successfully.

Does anyone can explain to me what is happening ?

Thanks in advance Yvan BARTHELEMY

2960 switchport config and manual qos values

Posted in Cisco on July 18th, 2009 by Saba – 1 Comment

Ive been burned a few times by Port-Security and having ports err-disabled due to itany thoughts on this template for my 2960 switches. Came from the WebGUI port-macro thing.unfortunately this is from remote lab and I dont have anything in front of me to test;

config ! udld aggressive ! mls qos srr-queue output cos-map queue 1 threshold 3 5 mls qos srr-queue output cos-map queue 2 threshold 3 3 6 7 mls qos srr-queue output cos-map queue 3 threshold 3 2 4 mls qos srr-queue output cos-map queue 4 threshold 2 1 mls qos srr-queue output cos-map queue 4 threshold 3 0 ! mls qos rewrite ip dscp ! macro global description cisco-global ! errdisable recovery cause link-flap errdisable recovery interval 60 ! spanning-tree mode rapid-pvst spanning-tree loopguard default mls qos rewrite ip dscp ! interface range f0/1  48 description Host/IP Phone no shutdown switchport access vlan 2 switchport mode access switchport voice vlan 3 switchport port-security maximum 2 switchport port-security switchport port-security aging time 2 switchport port-security violation restrict switchport port-security aging type inactivity mls qos trust cos spanning-tree bpduguard enable macro description cisco-phone spanning-tree portfast end

We plug in phones, then PC to back of phone. Also Im thinking for 7911/79411 phones I should have just mls qos trust. Also the LAN Lite 2960 doesnt have auto-qos voip Cisco-phone so I have to manully set qos  You get what you pay for.

EMAILING FOR THE GREATER GOOD Join me

Why manual upgrade but no automatic?

Posted in Firefox on June 24th, 2009 by Saba – Be the first to comment

I’m creating a toolbar add-on for Firefox, I’ve got the XPI file and update.xml sitting on my secure web server, and I can manually ask if there is an upgrade available and Firefox says “sure” and downloads it perfectly.

But I can wait, and wait, and wait, and close Firefox and reopen it, and it never notifies me that an upgrade is available. I always have to start the upgrade process manually.

The documentation says that Firefox will check “periodically” if an upgrade is available, am I doing something wrong that a manual upgrade works but not automatic?

Thanks! Chris