consider that i have 100 perl modules in 12 directory . but looking into main perl script . it looks like 100 use p1 ; use p2 ; like this .. How originzw to best way to slove this issue
Hi Guys,
here the following code is used to view the present modal view controller.
[[self navigationController] presentModalViewController:doctorListViewNavigationController animated:YES];
code for dismiss the ModalViewController.
-(void)closeAction
{
[[self navigationController] dismissModalViewControllerAnimated:YES];
}
My problem is the dealloc method is not called then I am getting memory issue problems like object allocations, leaks..
(void)dealloc
{
[doctorList release];
[myTableView release];
[super dealloc];
}
I'm writing a IRC bot in Python using irclib and I'm trying to log the messages on certain channels.
The issue is that some mIRC users and some Bots write using color codes.
Any idea on how i could strip those parts and leave only the clear ascii text message?
hi guys,
Could someone please help me solve this issue?
I have a form that sends info into a database table. I have it checked with a jave script but what is the best way to stop spammers entering http and such into the database with php when java script is turned off?
Help really appreciated
Francesco
Hi all!
Please can anyone help me with my issue - what is the way to know that browserfield2 has finished loading in Blackberry.
I need to set some options after loading. Does browserfield2 have some methods to show that?
greetngs, i am trying to learn Java and Swing by writing a simple game of connect4.
i am hoping you could guide me regarding the following issue:
to emulate the connect4 grid should i use a JTable or rely on Grid layout?
thank you.
I have written a simple auth script so that Webusers can type in their username and password and my PHP script verifies them by SASL.
The SASL Library is initialized by php function sasl_server_init("phpfoo").
So phpfoo.conf in /etc/sasl2/ is used.
phpfoo.conf:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
log_level: 9
So the SASL library now tries to connect to saslauthd process by socket.
saslauthd command line looks like this:
/usr/sbin/saslauthd -r -V -a pam -n 5
So saslauthd uses PAM to authenticate.
In the php script I have created sasl connection by
sasl_server_new("php", null, "myRealm");
The first argument is the servicename. So PAM uses the file /etc/pam.d/php to see for further authentication information.
/etc/pam.d/php:
auth required pam_mysql.so try_first_pass=0 config_file=/etc/pam.d/mysqlconf.nss
account required pam_permit.so
session required pam_permit.so
mysqlconf.nss has all information that is needed for a useful MySQL Query to user table.
All of this works perfectly when I run the script by command line.
php ssasl.php
But when I call the same script via webbrowser(php apache module) I get an -20 return code (SASL_NOUSER).
In /var/log/messages there is
May 18 15:27:12 hostname httpd2-prefork: unable to open Berkeley db /etc/sasldb2: No such file or directory
I do not have anything with a Berkeley db for authentication with SASL.
I think authentication using /etc/sasldb2 is the default setting. In my opinion it does not read my phpfoo.conf file. For some reason the php-apache-module ignores the parameter in sasl_server_init("phpfoo").
My first thought was that there is a permission issue. So back in shell:
su -s /bin/bash wwwrun
php ssasl.php
"Authentication successful". - No file-permission issue.
In the source of the sasl-php-extension we can find:
PHP_FUNCTION(sasl_server_init)
{
char *name;
int name_len;
if (zend_parse_parameters(1 TSRMLS_CC, "s", &name, &name_len) == FAILURE) {
return;
}
if (sasl_server_init(NULL, name) != SASL_OK) {
RETURN_FALSE;
}
RETURN_TRUE;
}
This is a simple pass through of the string.
Are there any differences between the PHP CLI and PHP ApacheModule version that I am not aware of?
Anyway, there are some interesting log entries when I run PHP in CLI mode:
May 18 15:44:48 hostname php: SQL engine 'mysql' not supported
May 18 15:44:48 hostname php: auxpropfunc error no mechanism available
May 18 15:44:48 hostname php: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sqlite
May 18 15:44:48 hostname php: sql_select option missing
May 18 15:44:48 hostname php: auxpropfunc error no mechanism available
May 18 15:44:48 hostname php: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Those lines are followed by lines of saslauthd and PAM which results in authentication success.(I do not get any of them in ApacheModule mode)
Looks like that he is trying auxprop pwcheck before saslauthd. I have no other .conf file in /etc/sasl2.
When I change the parameter of sasl_server_init to something other then I get the same error in CLI mode as in ApacheModule mode.
Is there an upgrade guide for Kohana 3.0.9 from 3.0.8. I'm looking for something like what jQuery provides when they release a new version. It allows for a quick scan of the changes to notice if there's anything I could use or would change how I've done things.
The resolved issues are part of this, but I'm looking for something more high level. The issues require reading everything in each issue and it's often hard to understand what's actually changed.
I have started using M-x compile to compile programs in say, C.
What is the most efficient way to run the executable e.g. a.out. At the moment I'm using M-! ./a.out. Basically, what is the best code-compile-run procedure to follow?
Almost all the tutorials mention how compilation is done, but I haven't seen one which addressed this issue?
Thanks,
Samuel
My calendar works properly on servers in PST but on the production server (EST) all events seem to end one day early. I am not sure if it is a timezone problem because even with the 3 hour difference the events should be display on the proper date.
Has anyone else encountered this issue?
I have an issue that means I cannot check in changes even if I resolve the issues.
I have removed a form from the solution then created a new form with the same name. Now when I go to check in the form I get the following error:
Even if I mark all the conflicts as resolved the check in fails with the following error: All conflicts resolved but no files checked in due to initial conflicts.
How can I get this to check in?
I'm running Apache, mod_wsgi and Django. Uploading a file over 100mb causes a timeout on IE 7 and 8, but successfully uploaded on Firefox 3.5. Specifically the error is "Internet Explorer cannot display the webpage". Is this a timeout or keep-alive issue, something specific to IE?
Hi All,
I am using WMI to get SMBIOS data and for that I am using following code to initialize the IWbemLocator interface through a call to CoCreateInstance.
CoCreateInstance(CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER, IID_IWebLocator, (LPVOID *) &pLoc);
But it always returns FAILURE. I think its due to some environment issue but wanted to know exact reason.
Thanks in advance,
Rahul
I am a big fan of optional parameters in C#4 but am having an issue with MVC when I use them in my controller constructors. For example, if I have a single constructor:
public TestController(sting a = "") { /* blah */ }
MVC has a fit saying that there are no parameterless constructors for TestController.
How can I get around this?
Hi,
I have a standard bit of fstream code that .fail()s on some machines to write to a file when on a network path. It is not a network permission issue.
Any ideas?
Hello everyone,
I am having, what i believe is a minor issue.
I am developing a J2ME application which predominantly uses canvases for display.
The problem is I have set all these canvases to fullscreen and when i navigate from one class to another i am first given a white screen and then taken to the canvas i intend to go.
I am not understanding what i am doing wrong
I am using the following statement for navigation
javax.microedition.lcdui.Display.getDisplay(MIDlet).setCurrent(Canvas);
Please help!!
whenever I recreate the home screen widget on my phone, the onReceive() method is not called.
the problem would be that it doesn't respond to Button press that I assign which its function resides in the onReceive method..
The issue does not reside on the emulator but when I tested it with my phone, it doesnt respond to it.
What would be the best solution for it?
Hello,
I have added auhlogic in my Rails app to authenticate users. I have also included the code from the Reset password tutorial . All of it works, the only issue I have is that once a user registers he gets automatically logged in.
Anyone worked with authlogic, what would be the best & fastest way to disable the autologin after the registration?
when i try to send email from asp script i got email bounce from
[email protected]
why this ?
is this some issue with spam or my domain is under spam list ..?
if yes how to remove this..?
I am attempting to shoehorn an existing SDK onto an android device and one of the dependencies of said SDK is Apache log4j. I am able to load my test program onto the android emulator but when the log4j object "PropertySetter" is called the program fails with a verification exception. Is there a way to ameliorate this issue?
I have an app that's worked since version 2.0 of the SDK where I create and add a UIWebView and then load the URL of an .mov to play a movie. Ever since the early version of the 4.0 beta up until the 4.0 GM this has stopped working. When I load a movie now I get the following error: :Plug-in handled load" and the movie never displays.
Is this a known issue? Am I doing something wrong in 4.0?
Trying to do a few URLRewrite rules - some of them worked, some didn't. For those that didn't work, how do you debug it? Especially if the rule was never invoked, how do I tell where I'm making a mistake? Tried Live HTTP Header extension with firefox as well as checking the server access logs, to no avail.
My site is hosted with cpanel, using apache, and the rewrite rules are defined in .htaccess (I have some rules that worked, so it's not a setup issue I'm pretty sure)
Thanks
Hi all,
I am testing my web application's security and all of my pages are served over ssl. The issue I am having is the certificate is not trusted as firefox starts in a new profile each time. I was reading on OpenQA's site about a jar and importing the certificate, but that is only for Internet Explorer and Firefox should automatically be handled.
Is there anything special I need to do in order for certificates to automatically be trusted?
Thanks,
Walter
I'm working on a project with a group that is using Eclipse, but I'm using Netbeans. Up until today this wasn't an issue. When updating from the repo they have added some source code as a library under a directory called /lib-src. When I try to compile the code I get an error that it can't find certain packages... these are the packages under /lib-src.
Using NetBeans I can add the library as a folder so now the references to those packages are happy. However, I'm getting this new error when compiling:
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.addEntry(HashMap.java:753)
at java.util.HashMap.put(HashMap.java:385)
at com.android.dx.dex.file.ClassDataItem.addStaticField(ClassDataItem.java:134)
at com.android.dx.dex.file.ClassDefItem.addStaticField(ClassDefItem.java:280)
at com.android.dx.dex.cf.CfTranslator.processFields(CfTranslator.java:159)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:130)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
at com.android.dx.command.dexer.Main.processClass(Main.java:297)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
at com.android.dx.command.dexer.Main.access$100(Main.java:56)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:134)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
at com.android.dx.command.dexer.Main.processOne(Main.java:245)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
at com.android.dx.command.dexer.Main.run(Main.java:139)
at com.android.dx.command.dexer.Main.main(Main.java:120)
at com.android.dx.command.Main.main(Main.java:87)
/home/aaron/NetBeansProjects/xbmc-remote/nbproject/build-impl.xml:411: exec returned: 3
BUILD FAILED (total time: 1 minute 25 seconds)
I can include the build-impl.xml file if you need it, but I don't think that is main issue.
Any ideas?