Displaying 20 results from an estimated 32 matches for "isset".
Did you mean:
ipset
2006 Feb 01
8
ruby equivalent of isset()
Hi,
Is there a way to test if a certain (local) variable has been initialized?
I''d like to do something like
if isset(myvar) and myvar.true?
#some code
else
#default behaviour
end
I have a lot of shared views that I call with params such as {
show_pager => true
Instead of having to explicitly say show_pager => false it should be
possible to make false a default value, right?
Jeroen
2014 Jan 23
0
php script to migrate other attributes after running classicupgrade
...[0];
$info["unixHomeDirectory"] = $s3_homedirectory[0];
$info["homeDirectory"] = $s3_sambahomepath[0];
$info["homeDrive"] = $s3_sambahomedrive[0];
$info["scriptPath"] = $s3_sambalogonscript[0];
// below fields are not always filled
if(isset($s3_givenName[0])) { $info["givenName"] = $s3_givenName[0]; }
if(isset($s3_initials[0])) { $info["initials"] = $s3_initials[0]; }
if(isset($s3_mail[0])) { $info["mail"] = $s3_mail[0]; }
if(isset($s3_description[0])) { $info["description"] =
$s...
2009 Jan 22
2
SquirrelMail Sending Under Wrong Username
CentOS team... as is already bug reported and marked solved... as we
await the upstream repair for this.
It was reported that this was happening on CentOS 5. You likely already
know, but it also happens on CentOS 4.
For those unaware. It seems that SquirrelMail has an issue which allows
mail to be sent out from one user on the system and it uses the from
address of another user on the
2020 Jun 23
2
[RFC] Small Bitfield utilities
...ented API
> code: https://reviews.llvm.org/D82058
>
> uint8_t Storage = 0;
> using Amount = Bitfield<unsigned, 0, 4>;
>
> bitfield<Amount>(Storage) = true;
> unsigned Value = bitfield<Amount>(Storage);
> bool Cond = bitfield<Amount>(Storage).isSet();
>
> 3. In between
> code: https://reviews.llvm.org/D82058#inline-754912
>
> uint8_t Storage = 0;
> using Amount = Bitfield<unsigned, 0, 4>;
>
> Amount::fieldOf(Storage) = true;
> unsigned Value = Amount::fieldOf(Storage);
> bool Cond = Amount::isSet(...
2005 Apr 04
0
io timeout after 180 seconds
...}
elseif ($s_backupType == 'monthly') {
~ $s_typeBelow = 'weekly';
}
else {
~ $s_typeBelow = 'monthly';
}
// }}}
// {{{ loop through backup configurations
foreach ($a_configNames as $s_configName) {
~ // make sure that we are using a valid configuration
~ if (!isset($a_backupHosts[$s_configName])) {
~ $tmp_msg = writeln("WARNING: The configuation: '$s_configName'
is not valid.\n", true, true);
~ $s_log .= $tmp_msg;
~ $b_error = true;
~ continue;
~ }
~ else {
~ $s_log .= writeln("-= Beginning backu...
2020 Jun 11
2
[RFC] Small Bitfield utilities
TL;DR: Have support in ADT for typed values packing into opaque scalar types
- Code & design choices: https://reviews.llvm.org/D81580
- Usage:
https://reviews.llvm.org/differential/changeset/?ref=2005337&whitespace=ignore-most
- Example of rewrite: https://reviews.llvm.org/D81662
*CONTEXT*
There are places in LLVM where we need to pack typed fields into opaque
values.
For instance,
2001 May 17
0
Patch: Set SSH_AUTHKEY to key id used to authenticate.
...ot;,
file, linenum);
break;
diff -ur openssh-2.9p1/key.c openssh-2.9p1authdata/key.c
--- openssh-2.9p1/key.c Tue Apr 17 12:11:37 2001
+++ openssh-2.9p1authdata/key.c Thu May 17 00:56:46 2001
@@ -781,3 +781,23 @@
break;
}
}
+
+const char *key_matching_data(char *cp)
+{
+ static int isSet = 0;
+ static char name[100];
+ char *s;
+ int len = 0;
+
+ if (!cp) return(isSet ? name : NULL);
+
+ /* skip leading white-space */
+ for (; *cp && isspace(*cp); cp++);
+ /* copy the data to name */
+ for (s = name; *cp && !isspace(*cp) && len < sizeof(name); s++, cp...
2010 Dec 04
1
what is this averaging function called ?, has R a built in function for it ?
...than 500, you can imagine that there could be a large
spike in data and this would be affecting points near
# if this precaution haven't been conceived
foreach ($rang as $k=>&$v) {
if (!($k % 100)) echo $k.' ';
$up = $down = array();
$walk = 0;
while (true) {
++$walk;
if (isset($sum[$k-$walk]) and
count($v)+count($up)+count($sum[$k-$walk])<500)
$up = array_merge($up,$sum[$k-$walk]);
else break;
}
$walk = 0;
while (true) {
++$walk;
if (isset($sum[$k+$walk]) and
count($v)+count($down)+count($sum[$k+$walk])<500)
$down = array_merge($down,$sum[$k+$walk]);...
2006 Feb 21
6
Help with Script.aculo inPlaceEditor
...for save changes or not it doesn''t work. See example below:
<script type="text/javascript">
new Ajax.InPlaceEditor(''aNombre'', ''productos.php?a=actualizar&f=aNombre'');
</script>
In productos.php file I have this:
$field = isset($_GET[''f''])?$_GET[''f'']:null; // wich means the field for update or not
if ($_GET[''a''] == "actualizar") {
switch ($field){
case "aNombre":
die ('' You try to edit aNombre field '');
break;
}
}...
2015 Aug 04
3
php-R
....php
echo "<form action='poorman.php' method='get'>";
echo "Number values to generate: <input type='text' name='N' />";
echo "<input type='submit' />";
echo "</form>";
if(isset($_GET['N']))
{
$N = $_GET['N'];
// execute R script from shell
// this will save a plot at temp.png to the filesystem
exec("C:\Program Files\R\R-3.2.0\bin\x64\my_rscript.R $N");
// return image tag
$nocache = rand();
echo(&qu...
2006 Apr 15
1
Begin with Autocompleter
...(http_request.readyState == 4) {
29 if (http_request.status == 200) {
30 alert(http_request.responseText);
31 } else {
32 alert(''Han ocurrido problemas con la petición.'');
33 }
34 }
35 }
In search_ajax.php file I find the element in the database:
<?php
$query = isset ( $_POST[''qword''] ) ? trim ( rtrim ( $_POST[''qword''] ) ) : null;
if ( $query != null ){
$db->Execute(" SELECT * FROM table WHERE field LIKE ''%". $query ."%'' ") or die($db->ErrorMsg());
$elements = array();
while...
2019 Apr 04
5
Migration to samba4 ad and sync to openldap.
I managed to do migration using "classicupgrade".
Doing tests with debian buster 2:4.9.4+dfsg-4.
For the moment using samba internal dns and sub-domain of ad.advocap.org.
Had issue forwarding dns if I used main domain.
When it comes to real production will use bind that I understand better
but don't want to mess with my other dns servers now.
Had a w10 box join samba4 ad
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying.
In javascript, I''m using the ajax.updater, and it (obviously) writes
back out to a div. I want to then compare what was echoed out into
this div (which came from the php file I listed in ajax.updater) with
a string.
test should equal "SomeString" because that is what is being echoed
out to
2004 Aug 06
2
XML statistics on remote server
what i did in this situation was dump the stats/status file to the local
server through a lynx --dump call from php .. and then i also update a
sql table to reflect the changes so i can poll that instead ..
a.
<p>On Thu, 26 Feb 2004, MacSym wrote:
>
> Hi everybody,
>
> I am wondering if it is possible to generate the XML/XSL files on a remote
> server (status.xsl,
2012 Oct 02
2
Questions on converting to ConfBridge
I'm looking at what would be involved in converting from MeetMe to
ConfBridge and there seems to be a lot of missing administrative things,
but I hope I'm just missing it. We all know about the missing realtime
linkage. That's a major nuisance, but can be worked around.
More serious is that the CLI command to display users in a ConfBridge
don't show the caller ID information, so
2009 Aug 17
1
Xapian DatabaseError
...e but runned in two different modality didn't work.
To test my page in local I use EasyPhp, I've loaded the php_xapian.dll extension and the problem remains. Why?
all the file and dir: search.php, search_function.inc, xapian_db are in the same dir
1) This is the code of search page
if(isset($_GET['query'])){
$query = $_GET['query'];
require_once 'search_function.inc';
simpleSearch($query,"xapian_db"); --> xapian_db is the path where is stored xapian db
}
2) This is the code of search function.inc
<?php
require_once 'xapian.php'...
2005 Jun 09
1
PHPAGI Swift Escape Digits
I am trying to use swift in PHP/AGI.
function swift($text, $escape_digits='', $frequency=8000, $voice=NULL,
$fnameIn='')
During swift speaking some text I want the caller to be able to press
1, 2 or 3 to do thing 1, thing 2 or thing 3.
How are these digit defines and then caught?
Thanks,
Michael
2008 Jan 25
0
Script for seeding polycom phones with an extension directory
.../xml");
header("Connection: close");
header("Expires: -1");
// location of asterisk config files
$location = "/etc/asterisk/";
// parse sip.conf
$sip_array = parse_ini_file($location."sip.conf", true);
while ($v = current($sip_array))
{ if (isset($v['name']))
{ $directory[] = "<fn>". $v['name']."</fn>\n".
"<ct>".key($sip_array)."</ct>\n";
}
next($sip_array);
}
sort($directory);
echo "<directory>\n";
echo "<item_list>\...
2009 Oct 25
1
Asterisk-stat! - help needed (once again due to mailserver problem)
Dear all,
I'm trying to install Asterisk-stat (ASTERISK CDR ANALYSER) following:
http://www.voip-info.org/wiki/index.php?page=Asterisk+CDR+Areski+GUI
however it fails to run properly - lots of lines like:
**Notice**: Undefined variable: s in
*/home/lukasz/DATA/www/asterisk-stat/cdr.php* on line *26*
**Notice**: Undefined variable: t in
*/home/lukasz/DATA/www/asterisk-stat/cdr.php* on line
2009 Oct 11
1
problem with old stable 0.1.1 roundcubemail contained in the deposit EPEL
...tml';
$INSTALL_PATH = dirname(__FILE__);
$MAIN_TASKS = array('mail','settings','addressbook','logout');
if (empty($INSTALL_PATH))
? $INSTALL_PATH = './';
else
? $INSTALL_PATH .= '/';
//This is the little patch that clears the session cookie
if ( isset($_COOKIE['session']) and !empty($_COOKIE['session'] ))
{
?setcookie('session');
?unset($_COOKIE['session']); //suret?
}
//This is the little patch that clears the session cookie
my problem is that I see appear the login page I enter all data but I do not
understa...