I have a jquery tabs with jquery multiselect in my second tab. My problem is that the multiselect doesn't load the css and js if it's in second tab. If I put in in a first tab it works fine. What am I doing wrong?
In Python 2.6, I can run the following fine to strip out chars like -()
'(123) 456-7890'.translate(None, '-(), ')
Python2.5 translate does not accept None, how can I do the above in 2.5?
Hello!
I have this rule written in my .htaccess
RewriteRule ^blog/([0-9]+)/? /obdelaj.php?ime=$1
which works but it redirects me to example.com/obdelaj.php?ime=# and i want the user to stay on example.com/blog/#
I have a hostgator account and i dont have access to the httpd file , and i presume that a some configuration in httpd file is causing this, because on my localhost machine this work just fine.
So what would i have to add to the .htaccess to overwrite this automatic redirection?
Thank you
Hi
I have a temp website set up in IIS Manager (6) linked to an IP / URL, for example:
1.2.3.4 / www.someUrl.com
When that url is accessed, the temp website shows fine.
But if someone tries to access any other file within that domain, for example:
www.someUrl.com/index.cfm?action=profile
then the upgrade website does not display.
How do I get it to show for all requests made to the domain www.someUrl.com??
Thanks
Hi,
I need to use CATRansform3DMakeRotation function in my project, but when I try to compile I get an build error
Undefined symbols:
"_CATransform3DMakeRotation", referenced from:
if I comment the function out the project builds fine.
Any ideas why is this happening?
Hi I have a site that uses flex and calls controller actions which returns json to the flex. This works fine in a dev server , the folder that has the flex app lives inside the web project and in the dev ennvironment, makes calls hostname, ie www.someurl.com
in the actual live scenario, this will be an intranet so not hostname to call, the flex app seems to have trouble calling http://localhost/Virtual directory name
it seems to totally miss the virtual directory name. I am obviously missing something basic, any help?
Greets,
Made some app on android. I for the life of me can't get it to install on the phone as a stand alone application. It runs fine when I deploy from eclipse but never remains on the device. any idea whats happening?
I put the apk file on a web server, went to the address downloaded and installed but still it wasn't to be found.
I'm lost!
This works fine:
NSString *myVariable;
- (IBAction) doFirstAction {
myVariable = @"123456789";
}
- (IBAction) doSecondAction {
NSLog(@"%@",myVariable);
}
However, if I do this (substituting the @"123456789" for some code which returns the same value ie "123456789") I cannot access the value in doSecondAction.
NSString *myVariable;
- (IBAction) doFirstAction {
myVariable = [imageNode getAttributeName:@"value"];
}
- (IBAction) doSecondAction {
NSLog(@"%@",myVariable);
}
Any clue as to why I cant access myVariable outside of doFirstAction?
I have a class name xxxx and a resource whichthe class read from it to set some string. Everything is fine and nothing goes wrong.
The problem is that I have some Constant Global String which I set them in global area like
public partial class ExampleDocument : ClassBase
{
const string TheProblem = "I can not read this string from resources cause here Methods do not work";
#region Method
...
#endregion
}
The question is, How to read this strings frrom Rersource File.
Hello,
I want to access a webservice:getMonitorData() , on creationcomplete and returns an array, in an infinite loop so that the getIndex0.text is updated each time.
Flex is not able to handle an infinite loop and gives a timeout error 1502. If I run the for loop until i<2000 or so it works fine.
How can replace the loop so that my webservice is accessed continiously and the result is shown in getIndex0.text.
This is how my application looks like:
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"
xmlns:plcservicebean="server.services.plcservicebean.*"
creationComplete="clientMonitor1()">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.CallResponder;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
[Bindable] public var dbl0:Number;
//-----------Infinite Loop, Works fine if condition = i<2000------------------------
public function clientMonitor1():void{
for(var i:int = 0; ; i++){
clientMonitor();
}
}
public function clientMonitor():void{
var callResp:CallResponder = new CallResponder();
callResp.addEventListener(ResultEvent.RESULT, monitorResult);
callResp.addEventListener(FaultEvent.FAULT, monitorFault);
callResp.token = plcServiceBean.getMonitorData();
}
public function monitorResult(event:ResultEvent):void{
var arr:ArrayCollection = event.result as ArrayCollection;
dbl0 = arr[0].value as Number;
}
protected function monitorFault(event:FaultEvent):void{
Alert.show(event.fault.faultString, "Error while monitoring Data ");
}
]]>
</fx:Script>
<fx:Declarations>
<plcservicebean:PlcServiceBean id = "plcServiceBean"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" />
</fx:Declarations>
<mx:Form x="52" y="97"
label="Double">
<mx:FormItem label = "getMonitorValue">
<s:TextInput id = "getIndex0"
text = "{dbl0}"/>
</mx:FormItem>
</mx:Form>
</s:Group>
My send mail task works fine for email ids like [email protected] but it throws error for email ids like [email protected].
is there any way i can make it work for such ids also?
Thanks.
I have some Groovy code which works fine in the Groovy bytecode compiler, but the Java stub generated by it causes an error in the Java compiler. I think this is probably yet another bug in the Groovy stub generator, but I really can't figure out why the Java compiler doesn't like the generated code.
Here's a truncated version of the generated Java class (please excuse the ugly formatting):
@groovy.util.logging.Log4j() public abstract class AbstractProcessingQueue
<T> extends nz.ac.auckland.digitizer.AbstractAgent implements
groovy.lang.GroovyObject {
protected int retryFrequency;
protected java.util.Queue<nz.ac.auckland.digitizer.AbstractProcessingQueue.ProcessingQueueMember<T>> items;
public AbstractProcessingQueue
(int processFrequency, int timeout, int retryFrequency) {
super ((int)0, (int)0);
}
private enum ProcessState
implements
groovy.lang.GroovyObject {
NEW, FAILED, FINISHED;
}
private class ProcessingQueueMember<E> extends java.lang.Object implements
groovy.lang.GroovyObject {
public ProcessingQueueMember
(E object) {}
}
}
The offending line in the generated code is this:
protected java.util.Queue<nz.ac.auckland.digitizer.AbstractProcessingQueue.ProcessingQueueMember<T>> items;
which produces the following compile error:
[ERROR] C:\Documents and Settings\Administrator\digitizer\target\generated-sources\groovy-stubs\main\nz\ac\auckland\digitizer\AbstractProcessingQueue.java:[14,96] error: improperly formed type, type arguments given on a raw type
The column index of 96 in the compile error points to the <T> parameterization of the ProcessingQueueMember type. But ProcessingQueueMember is not a raw type as the compiler claims, it is a generic type:
private class ProcessingQueueMember
<E> extends java.lang.Object implements
groovy.lang.GroovyObject { ...
I am very confused as to why the compiler thinks that the type Queue<ProcessingQueueMember<T>> is invalid. The Groovy source compiles fine, and the generated Java code looks perfectly correct to me too. What am I missing here? Is it something to do with the fact that the type in question is a nested class?
(in case anyone is interested, I have filed this bug report relating to the issue in this question)
Edit: Turns out this was indeed a stub compiler bug- this issue is now fixed in 1.8.9, 2.0.4 and 2.1, so if you're still having this issue just upgrade to one of those versions. :)
I'm making a thread class to use as a wrapper for pthreads. I have a Queue class to use as a queue, but I'm having trouble with it. It seems to allocate and fill the queue struct fine, but when I try to get the data from it, it Seg. faults.
http://pastebin.com/Bquqzxt0 (the printf's are for debugging, both throw seg faults)
edit: the queue is stored in a dynamically allocated "struct queueset" array as a pointer to the data and an index for the data
Hi
i am integrating nhibernate validator into my application and and everything is fine with attributes
but as soon as I create *.nhv.xml files and move my validation rules there (as embedded resource)
ValidatorEngine.Validate(entity)
returns wrong (actually nothing and my InvalidValue[] collection is empty
I appropriate any comment/advise
I'm using Tycho 0.16.0 and still getting the following Error:
Error - 7 icon(s) not replaced in C:\Users\weich01\AppData\Local\Temp\p2.brandingIron8219115442087687624\launcher.exe using C:\Development\Workspaces\Workspace RCP SR2\de.mycompany.myproduct.product\target\products\MyProduct\de.mycompany.myproduct.feature\logo_pms_2011.ico
This error should be fixed in v0.16, shouldn't it?
With eclipse export everything works fine, so product definition is correct.
The icon file contains bmp in all sizes.
Thanks for your help
hi :)
after an hour of trying to find a solution, I give up (temporarily). "this.selectedIndex = -1" clears all select element just fine in FF and other browsers, but NOT in Internet Explorer 8.
any idea how to clear select elements in IE?
thanks!
I had a windows service relying on EF, and it was running fine until the server went down. The problem was after the server went up again, it didn't fix itself and still threw the error:
INTERNAL ERROR: Execution of the command requires an open and available connection. The connection's current state is broken.
Not being very proficient in EF I'm not aware of how I could recover from such a scenario, and why it occurred in the first place? Anyone had this happen before?
During development of some Excel vba code about every other iteration where I go in and add some code then save the file, the next time I open the thing (it is automatically set to run the code on open) I get a spurious "File not Found" error.
To fix it I copy all the code- modules and classes plus the startup code, to a fresh blank excel file save it and it runs fine.
This happens in both Excel 2003 and 2007. What is happening here?
I have a RichTextCtrl created as follows:
self.userlist = wx.richtext.RichTextCtrl(self, style=wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL)
It all works fine, except for the wx.HSCROLL style. If I change the RichTextCtrl to a regular TextCtrl, it correctly horizontal scrolls on long lines, rather than wrapping, but on the RichTextCtrl it wraps regardless. Is there an easy way to make it scroll horizontally? (I do, unfortunately, need the RichTextCtrl's featureset for this object.)
I am making a servlet program. It is working fine, but now I am trying to make a method other than doGet or doPost that get called from JSP. Is it possible?
Hi bit of a silly question.
Are there any png transparency issues with backgrounds to submit buttons or inputs of type image? Or do they behave fine just like img tags with a png image as the source.
I understand for IE6 you need a hack for png transparency to work.
I just got a bug report from someone running an app I wrote under Windows XP. He says it won't start up.
The application failed to initialize
properly (0xc0150002). Click on OK to
terminate the application.
It works fine at my end, (under Windows 7,) and I don't have any Win7- or Vista-specific stuff in the program, so it should work on XP too. How do I go about tracking this down and debugging it?
Hi,
I have an application build on my x64 computer. It is now build for x86 but on windows XP machines (x86) it fails with the "bad image format". On all Vista and up OS, it runs perfectly on x64 platfomrms. I tracked the problem to my icon.
I removed the icon and now it runs fine, anyone got an idea of how on earth this could relate to anything?
If I just put in XUL file
<label value="°C"/>
it works fine. However, I need to assing ° value to that label element and it doesn't show degree symbol, instead literal value.
I have winforms project that references many third party controls but when i go to the Application Files under Settings - publish - Application Files..they are not listed! I have the the reference set to Copy Local=True but still no luck..has been working fine for years untill now...its laso happening to another project. Any suuggestion?