-
as seen on Stack Overflow
- Search for 'Stack Overflow'
can someone help with this?
I need the following function to do this...
$x = 'AAAABAA';
$x2 = 'ABBBAA';
function foo($str){
//do something here....
return $str;
}
$x3 = foo($x); //output: A4B1A2
$x4 = foo($x2);//output: A1B3A2
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to encrypt a number and I and this encrypted value will be given to a customer ask a key so I want to minimize the number of digits and make them all printable.
So I'd like the result to be either all number or all Hex characters.
The current encryption method I'm using (for non numbers)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a table:
'objects' with few columns:
object_id:int, object_type:int, object_status:int, object_lati:float, object_long:float
My query is :
$stmt = $db->query('SELECT o.object_id, o.object_type, o.object_status, o.object_lati, o.object_long FROM objects o WHERE o.object_id = 1');
$res =…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am trying to compare two tables to find rows in each table that is not in the other. Table 1 has a groupby column to create 2 sets of data within table one.
groupby number
----------- -----------
1 1
1 2
2 1
2 2
2 4
Table 2 has only one column…
>>> More
-
as seen on Super User
- Search for 'Super User'
I'm finding it difficult to understand some stuffs about the df command. Suppose I type df and I have the following output
Filesystem 1k-blocks Used Avail Capacity Mounted on
/dev/da0s1 some number some number number percentage /win
/dev/da0s2 some number some…
>>> More