problem

[PHP] Array key as string and number

How to make arrays in which the key is number and string. <?php $array = array ( 'test' => 'thing', 'blah' => 'things' ); echo $array[0]; // thing echo $array[1]; // things echo $array['test']; // thing echo $array['blah']; // things ?> ...

Is this a bug in AS2?

I have 4 buttons on my canvas named item1, item2, item3 and item4. In the first frame i've written this code(as2): stop(); for (n = 0; n <= 10; n++) { this["item" + n].onPress = function () { trace('lol'); }; } When click the one named item1, it doesn't shows lol, which is funny because if i do this: stop(); for (n = 0; n <= 10;...

Hecl download ,but what next?

I have downloaded Helc from Hecl.org. I have also installed the SUN WTC. What next. Hecl is just in a zip file of 40meg with no extension. What do I do with it. ...

Understanding Agile

Hi, I recently shifted to a new organization that follow Agile mode of development. The current project we are working has stalled due to many requirement changes that were reported recently. Since this is my first Agile assignment (after working in 4 years in non-agile environ), its a bit hard to differentiate where the problem really ...

Deploy:symlink on capistrano points the "current" directory to previous release

Hello, I am using capistrano to deploy my Ruby on Rails project. I am on a Dreamhost VPS and since a few weeks ago, with no change in capistrano or passenger, I began to experience a strange problem with the deployment: Every time capistrano is deploying my application, everything goes right except deploy:symlink (which is called by de...

SVG arabic fonts not showing properly

Hi all, I have SVG embedded arabic font. It's not showing properly in browsers: Chrome 5, Safari 5, Opera 10.54. But batik's Squiggle shows correctly for SVG arabic fonts. After some testing and searching I've found that my SVG embedded arabic font contains valid glyph data for the character(for all four positions: initia...

asp.net mvc - RenderAction problems

I'm not quite sure I understand what Html.RenderAction() does. I've just noticed one weird behavior when using it: In View/Contacts/Edit.aspx I used Html.RenderAction("ModalAddNote") which contains form for adding Notes for Contact. This is for ajax usage (it is opened in modal dialog). Problem occurs when I create method ModalAddNote: ...

Javascript does not recognise dynamic div content

I have a script i have been battling with now for like a week. I have a page which has a div with id ("content"). Now I loaded some content, a form contained in a div tag to be specific, into this div VIA Ajax, and it is displaying fine Now, the challenge is - When the form is submitted, Im am calling a function that will disable all t...

Problem in showing tiff image in browser

Sir, i am facing problem in showing tiff images. following is my html code. plz help. Thanks < img src="tiffdocument.tif" /> ...

IE doesn't display properly the same code on the same page twice

Okey, here it goes. I have a block of code that repeats it self twice. But it doesn't display the same, it is on the same page. I've checked everything is the same the html and the CSS. I realy can't wrap my head around this. This code is part of joomla module. I have to note that this is not my code!!! But i have to fix it so.. <di...

Code problem - objective c - newbie

Here is the code: - (IBAction) charlieImputText:(id)sender { NSAppleScript *keystrokeReturn = [[NSAppleScript alloc] initWithSource:@"tell application \"System Events\" to keystroke return"]; [keystrokeReturn executeAndReturnError:nil]; [progressBarText startAnimation:self]; charlieImputSelf = [sender stringValue]; NSAppleScript *se...

Quoting the argument

- (IBAction) charlieImputText:(id)sender { NSAppleScript *keystrokeReturn = [[NSAppleScript alloc] initWithSource:@"tell application \"System Events\" to keystroke return"]; [keystrokeReturn executeAndReturnError:nil]; [progressBarText startAnimation:self]; charlieImputSelf = [sender stringValue]; NSAppleScript *sendCharlieImput = [[...

The problem continues....please help

Here is the code: - (IBAction) charlieImputText:(id)sender { [progressBarText startAnimation:self]; charlieImputSelf = [sender stringValue]; NSAppleScript *sendCharlieImput = [[NSAppleScript alloc] initWithSource:[NSString stringWithFormat:@"tell application \"Terminal\" to do shell script \"%@\"", charlieImputSelf]]; [sendCharlieIm...

Glassfish 2.1 WSDL/ Tester Problem

Howdy, Im having problems with my glassfish 2.1 install. I am using eclipse Hellios (which i dont think will be a factor in it) and have my glassfish set up as a server within it. I have deployed an EJB and the server see's the install and appears in the web services tab. But when i select Test or view wsdl all i get is Bad Reques...

Objective c ERROR: incompatible types for argument 2 of 'NSRunAlertPanel'

Here is the code: float charlieSoundVolume; charlieSoundVolume = [charlieSoundLevel floatValue]; NSRunAlertPanel(@"CHARLIE",charlieSoundVolume, @"", @"", @"Ok"); This gives me the error: incompatible types for argument 2 of 'NSRunAlertPanel' Will NSRunAlertPanel not accept floats? Any ideas?? Elijah ...

textDidEndEditing: Objective c example

So I know you have to put this in the .h file: - (void)textDidEndEditing:(NSNotification *)aNotification BUT what do I call in the .m file?? How do I show that text is done editing in one of several NSTextFields? I looked around on the internet, but it seems pretty vague on how to use it correctly. Any ideas? Elijah ...

PHP strange behavior in function nl2br.

I was dealing with refactoring of my small web app. all night. Today when I started testing, first bug what I found was problem with system PHP function nl2br(). On my localhost I have PHP version 5.2.9 and as I see on PHP site from version 4.0.5 nl2br() is XHTML compliant. Then I absolutely don't understand why does my nl2br() return ...

Problem in SQLite3 installation...

The following error comes up: C:\gem>gem install sqlite3-ruby --local Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for #include <sqlite3.h> ... no sqlite3.h is missing. Install SQLite3 from htt...

PartCover and multiple TargetArgs

Hi I need to load coverage report from multiples test source, but if I set multiple dlls (two of them test the same class) in TargetArgs, the coverage data is overwritten with the results of the last dll. How can I add the results from multiples dll testing the same class? Here is an example of my partcover config file <PartCoverSett...

FireFox and javascript Problems (event.keyCode or event.charCode or event.which not work )

hi my dear friends : i do not know what is going on my firefox! my aspx and javascript codes are like this : <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> <script type="text/javascript"> function a() { alert('a'); //alert(event.which); //alert(ev...