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. …
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?
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 );
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.
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 $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
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 = 'dc=login,dc=ldap,dc=company,dc=com',
…
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 each possible combination from…
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?
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] = b[i];
if (d[0] ==…
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…
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 follows the…
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…
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 pause button…
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 in my jsp.…
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 ??!
Are…
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…
(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 standards-conformant…
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 same, i.e. the unstyled…
On a page I include some css eg:
<style type='test/css'>
.myBox{
color:#000000;
border:#FFFFFF;
padding:4px;
}
.myBox2{
color:#000000;
border:#FFFFFF;
padding:4px;
}
</style>
I want to then change the "color" property set within both myBox and myBox2 in jquery, without knowing the…
I am trying to provide a service on my website to allow users to upload files so others can download them.
The issue is, since some of these files I will allow to upload will be .zip/.rar files, I am curious as to what ideas exist to help prevent the uploading of archives with Viruses/trojans…
Hello Everyone,
Basicly, what I need for the program to do is to act a as simple fraction calculator (for addition, subtraction, multiplication and division) for the a single line of input, for example:
-input: 1/7 + 3/5
-output: 26/35
My initial code:
import sys
def euclid(numA, numB):
…
Okay, I am going to try to make this totally not a "plz send teh codez kthxbai"
I am considering an app which takes sound (eventually an audio track) and applies an audio filter to it.
So I can play sounds with AudioServicesPlaySystemSound via AudioToolbox framework just fine.
What I need…