I'm developing a documentation testing framework -- basically unit tests for PDFs. Tests are (decorated) methods of instances of classes defined by the framework, and these are located and instantiated at runtime and the methods are invoked to execute the tests.
My goal is to cut down on the amount of quirky Python syntax that the peopl...
Hi. I'm trying to create slidingUp divs with variable 'top' heights, so that one div may slideUp 700px, while another (with less content) slidesUp only 400px. Currently, the divs all slideUp at the same height. There are no div height declarations in the css. My script:
$(document).ready(function(){
var oldHeight;...
Sorry, if the topic title does not convey the problem.
As part of a project we want to expose an expressive language to the User, mostly for defining simple expressions, but possibly the ability to write procedures as well as any complex calculations they might want to do with the data.
Of course, the natural choice would be to expose ...
Can someone tell me what the difference is between these two conventions for getting the name of the currently running script?
#!/bin/sh
echo $0
echo ${0##*/}
Does the second version strip the path from the script name?
Thanks!
...
Hi All,
In HTML do we have any variable which can be accessed in all pages similar to Sessions Variables in ASP.NET ?
I have a Querystring value in welcome.HTML and I want that value in complete.htm
User can't go directly to complete.htm from welcome.htm as there are other pages in between those pages.
Regards
msbyuva
...
I have the following structure:
public class A {
private javax.swing.JLabel fullName;
public class B {
public B() {
fullName.setText("Martha Stewart");
}
}
...
...
...
}
My goal is to have B (currently the sub class of A) to be in a separate class.
The pro...
Hi. I have a url that look like this reg.php?lang=no_NO&passkey=testand im trying to get the passkey variable, but it keeps showing up blank.
When I try print_r($_GET); it prints Array ( ) ?! How can this happen?
The site look something like this
<?php
print_r($_GET);
include('..\libs\Smarty.class.php');
?...
What is the difference between a variable declared as dynamic and a variable declared as System.Object? Running the following function would seem to indicate that both variables get cast to the correct type dynamically:
void ObjectTest()
{
System.Object MyTestVar = "test";
dynamic MyTestVar2 = "Testing 123";
Console.WriteLi...
I was reading this today: http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#default-parameter-values and I can't seem to understand what's happening under the hood.
def bad_append(new_item, a_list=[]):
a_list.append(new_item)
return a_list
The problem here is that the default
value of a_list, an empty ...
Hello all,
I having a pretty slow day tday so bare with me. Basically I have an android context menu with various selections and depending on the user selection I want to start an intent. The intent starts the same activity for all the buttons but will contain different String variables depending on the selection. I am currently using a...
Hi there,
I have a quick question. I'm matching class names of LI elements to turn on and off divs with a matching ID name, as follows:
$("ul#mainnav li").click(function() {
$("#mainpages > div").fadeOut(200);
var navClass = $(this).attr('class');
var targeted='#'+navClass;
$(targeted).fadeIn(200); // thi...
What does the letter near the digit constant mean? Just for example:
int number = 0;
float decimal = 2.5f;
number = decimal;
What's difference betweet 2.5f and f2.5 ? I have already looked in manuals, but I really cant understand it. Explaine it me please in a simple format.
...
Is there a quick way (i.e. one line) to dump a collection of variables "in" a structure, using the variable names as the structure fields? The "load" function basically does this but saving and loading to a temporary file seems ugly.
For example:
clear
a = 'adsf'
b = rand(10);
x = var2struct(a,b)
x.a
x.b
or better yet:
x = var2str...
How to declare a variable of bool datatype in C running on Linux platform. I tried the following but its giving an error:
#include<stdio.h>
#include<string.h>
bool factors[1000]
void main()
{
}
...
Hi. I have a a login in script that is a little to complicated for my own good. I have a php file that calls a javascript based on the $_GET variable. The javascript/jquery makes html that uses iframe to call another php file, but I need the $_GET variable in that php code or I need to pass the $_GET variables to the other php file withi...
Hello again! I'm pretty new to PHP and JSON/XML, but we're forging ahead.
Our project entails logging in to a webservice (which we also built) from a handheld device and then accessing our website from that device. The point is to only allow users who have logged in on the handheld device to access the webpage.
Now, I guess this does...
I am trying to assign a variable to a class in PHP, however I am not getting any results?
Can anyone offer any assistance? The code is provided below. I am trying to echo the URL as shown below, by first assigning it to a class variable.
class PageClass {
var $absolute_path = NULL;
function get_absolute_path(){
$url = $...
I'm querying for the ID of a field by accessing a class function which someone has already put in place. The result is a object returned with protected member variables. I'm struggling to see how I can access the member variable values outside the class.
...
Hey,
first sorry that i had written it in german.
Ok in english:
i've written this PHP-Script which is working, and now i want to change the rowname into a variable to (not sure if row is correct), i mean the "name" from the select name...
I've tried near everything, but nothing gave me the right result.
I know that the normal thing ho...
How does a variable in C/C++ work?
I mean, a pointer stores an address from a variable and then you have to dereference it to access the object to which it refers, so I think that a variable is a pointer that is dereferenced automatically when used... does that make any sense?
BTW, I didn't find an answer to this on google...
Thank yo...