I have trying this:
$string ="Group: ALL:ALL:Good";
@str2 = split (/:/,':',2);
print "@str2";
I am looking in $str[0] = Group and $str[1]= ALL:ALL:Good.
It not working. What would be issue?
Imagine you got a 1m record table and you want to limit the search results down to say 10,000 and not more than that. So what do I use for that? Well, the answer is use the limit clause.
example
select recid from mytable order by recid asc limit 10000
This is going to give me the last 10,000 records entered into this table.
So far no paging. …
How can I convert a shell script into a Perl script?
I have a 10k line shell script and want to convert it into Perl. Is there any tool is doing that, or is there any way to do that?
How to use Operating System Commands in Catalyst Controller?
For example. I want to use Perl system command in Controller .it’s not working ..
Any idea?
In Controller module
my $cmd = "/temp/useradd.sh $username_st1 $_ $log_file &";
system ($cmd );
http://itunes.apple.com/us/app/bistromath/id309214622?mt=8
Number pad in second screenshot:
So is this some customization of the stock keypad? Modal view?
Hi
I have the following jquery in my code$j.getJSON("http://localhost:8080/WWTestHarnessWEB/ReadersToolkitFinalController.htm?jsoncallback=?", {'uID': 1}, function(data){alert(data);});
The json that i am returning looks like the following ({"positiveCount":"0","negativeCount":"999"})
But my alert is never firing.
Any idea what i need to do to…
how can i modify memory loaded methods in given assembly so that clr when instantiates new objects for some class it makes new objects with modified code in it?
my $cmd = "grep -h $text $file2 $file1 | tail -1 | awk '{print \$NF }' ";
my $port_number;
$port_number =`$cmd`;
print "port No : ==$port_number==";
the output is : "port No :== 2323
==
and i tried chomp its not working
How do these filters affect the output of imagepng() in PHP?
PNG_NO_FILTER
PNG_FILTER_NONE
PNG_FILTER_SUB
PNG_FILTER_UP
PNG_FILTER_AVG
PNG_FILTER_PAETH
PNG_ALL_FILTERS
The documentation simply says, "A special PNG filter, used by the imagepng() function" for each of them.
It seems that using PNG_NO_FILTER will reduce the filesize of the…
My file contains
a: b
d: e
f: a:b:c
g: a
b
c
d
f:g:h
h: d
d:dd:d
J: g,j
How can I parse this file into lefthand side values into one array and right hand side to another array? I tried with split, but I am not able to get it back.
I want to store them into hash.
Is there a way to detect whether or not an object has called GC.SuppressFinalize?
I have an object that looks something like this (full-blown Dispose pattern elided for clarity):
public class ResourceWrapper {
private readonly bool _ownsResource;
private readonly UnmanagedResource _resource;
public…
We're distributing a Cocoa framework with regular updates. We'll be updating the version numbers with each release. The Apple documentation appears to suggest that version numbers should be consecutive incrementing integers. We are distributing output in several formats, and the framework is only one of them. We…
I have setup some dropdown menus allowing users to find pages on my website by selecting options across multiple dropdowns:
eg. Color of Car, Year
This would generate a link like: mysite.xyz/blue/2010/
The only problem is, because this link is dynamically assembled with Javascript, I've also had to assemble…
I have this enormous loop in my code (not by choice), because I can't seem to make it work any other way. If there's some way make this simple as opposed to me repeating it +20 times that would be great, thanks.
for (NSUInteger i = 0; i < 20; i++) {
if (a[0] == 0xFF || b[i] == a[0]) {
c[0] =…
I have this Perl subroutine that is causing a problem:
sub new
{
my $class = shift;
my $ldap_obj = Net::LDAP->new( 'test.company.com' ) or die "$@";
my $self = {
_ldap = $ldap_obj,
_dn ='dc=users,dc=ldap,dc=company,dc=com',
_dn_login =…
I want to convert the db with innodb tables into myisam, all of them. How can I do these? there are some foreign keys exist among tables.
how can I make this in the best way?
This is in mysql, but its a database design issue. If you have a one to many relationship, like a bank customer to bank-accounts, typically you would have the table that records the bank-account information have a foreign key that keeps track of the relationship between account and customer. Now this…
Hello,
I am working on an Azure project. To secure this site, I wanted to install a SSL certificate. So when I uploaded .pfx file, I am getting error message "Uploaded file is not a valid X.509 Certificate, or the password is invalid. " when I try to upload a certificate. I was able to do the same…
Hi!
I develop an eclipse plugin, and I created an progress view which indicates where the work runs. Everything works correctly, but I have a question. When I made this view an stop button appeared on it. But I haven't found any listener to control this. But the best should be that if there is an…
I'm building a spring mvc application.
Now the problem I have is the following.
I have a controller which adds a DayInfo[][] to my ModelMap.
(DayInfo has an id, a title (String) and Text(also String).
Now the problem I have is that I have no problem displaying this DayInfo[][] with foreach tags…
What the heck is an FPGA -- where can I buy one?
What sort of system do you need to experiment with them? How to program them?
Can you "load" if that's the right terms an FPGA using an ordinary mac or perhaps other *nix or windoze computer?
Where can I buy some FPGAs today to experiment with…
(This question came out of explaining the details of CHAR_BIT, sizeof, and endianness to someone yesterday. It's entirely hypothetical.)
Let's say I'm on a platform where CHAR_BIT is 32, so sizeof(char) == sizeof(short) == sizeof(int) == sizeof(long). I believe this is still a…
Hi everyone.
I am making use of jQuery 1.4.4 and jQuery UI 1.8.7 in a legacy code base.
I have added a few combobox() ui-widgets, these comboboxes live along side normal <select> dropdowns.
I am finding it difficult to get the two elements to look the…