How expensive are local variables (var v), global variables (window.v) and cross-global variables (parent.v) in JavaScript, in the major browsers? Has anyone performed any good tests on this one?
if one of the main benefits of jquery is cross browser javascript support, does that become less valuable as more browsers aim to become standards compliant and the same javascript works on all browsers?
Most of the applications that I'm finding, inncluding LiveHelp and PHP Live Chat! feature terrible, un-commented, non-cross-browser compatible Javascript.
I'm looking for chat software that uses a Javascript framework to avoid some persistent and common bugs related to the DOM.
hi.
I need to decorate all the activities shown in designer with some icons or other pictures.
is there any way to show all activities with some decoration (lets say cross "X" as picture )
I have some data tracked and I want to show that this activity finished OK and this failed because of ... etc.
do someone of you know? It would really help me a lot.
I want a portable C++ IDE for general development, and too to develop basic Windows GUI applications.
In my research, I've found this (with latest version date):
CodeLite IDE (2010-04-02)
Code::Blocks (2008-02-28)
Bloodshed Dev-C++ (2005-02-22)
NetBeans (2009-12-10)
Ultimate++ (2010-03-16)
Qt Creator (2010-02-01)
But I don't know if some these IDE's supports Windows GUI development (or Cross Platform GUI development) or if can be Portable (NetBeans can be portable).
Given a file tree - a directory with directories in it etc, what software would you recommend to create a diagram of the file-tree as a graphic file that I can embed in a word processor document
I prefer vector (SVG, EPS, EMF...) files.
The tool must run on Windows, but preferably cross-platform.
The tool may be commercial but preferably free.
sub items of dropdown can be increased and decreased. angle only needed at last item's right bottom corner.
Edit:
I Know how to make dropdown menu and how to give cross browser transparency , my question is about to make transparent dropdown with right bottom angle.
Hi,
I often cross this kind of code transformation (or even mathematical transformation)
(python example, but applies to any language)
I've go a function
def f(x):
return x
I use it into another one.
def g(x):
return f(x)*f(x)
print g(2)
leads to 4
But I want to remove the functional dependency, and I change the function g into
def g(f):
return f*f
print g( f(2) )
leads to 4 too
How do you call this kind of transformation, locally turning a function into a scalar ?
Hi,
Why does the Javascript function call isNaN(123.) return false? Is this a universally acceptable number or will it cause errors downstream?
I'm validating whether a value is a valid decimal using isNaN along with split. Are there cross-browser issues with isNaN? Should I use a bespoke implementation?
Thanks.
sub items of dropdown can be increased and decreased. angle only needed at last item's right bottom corner.
Edit:
I Know how to make dropdown menu and how to give cross browser transparency , my question is about to make transparent dropdown with right bottom angle.
Hi all,
I came cross a question in my interview.
Question:
Array of integers will be given as the input and you should find out the middle element when sorted , but without sorting.
For Example.
Input: 1,3,5,4,2
Output: 3
When you sort the given input array, it will be 1,2,3,4,5 where middle element is 3.
You should find this in one pass without sorting.
Any solutions for this?
Say I have a dataframe df with two or more columns, is there an easy way to use unique() or other R function to create a subset of unique combinations of two or more columns?
I know I can use sqldf() and write an easy "SELECT DISTINCT var1, var2, ... varN" query, but I am looking for an R way of doing this.
It occurred to me to try ftable coerced to a dataframe and use the field names, but I also get the cross tabulations of combinations that don't exist in the dataset:
uniques <-
as.data.frame(ftable(df$var1,
df$var2))
Heading says it all really. Using Windows 7 and latest stable gvim, whenever I save (:w) a file it's marked executable. I'm doing cross-platform development and it'd be nice if this didn't happen.
I am looking for a cross platform RAD IDE with GUI building. NetBeans looks right (or am aI wrong?).
However, I may want to code somethings in C++ and some in Python.
It looks like both are supported, but I am not sure if I need to install two copies of NetBeans or if one can handle both programming languages.
Sorry it's such a st00pid n00b question - can anyone tell me quickly? Thanks
It is said here:
http://blogs.msdn.com/b/mikeormond/archive/2010/12/09/writing-cross-platform-xaml-applications.aspx
Within Visual Studio, if you add files to the project via “Add Existing Item”, and select the “Add As Link” option you can work on the same file from multiple projects.
Oh my I'm on a project which have multiple countries, brands, components layers and each time I will add a file you want me to "Add as Link" ? This is a nightmare maintenance !
Is there any other solutions ?
Hello,
I'd like to know if the executing thread is the one that created a given control instance (to prevent cross-thread if it's not).
Is that possible ?
Thx.
Quoted from here:
BW = edge(I,'zerocross',thresh,h)
specifies the zero-cross method, using
the filter h. thresh is the
sensitivity threshold; if the argument
is empty ([]), edge chooses the
sensitivity threshold automatically.
If you specify a threshold of 0, the output image has closed contours,
because it includes all the zero
crossings in the input image.
I don't understand it,can someone elaborate?
Hi
Complete novice question. I've used jQuery a bit, YUI not at all and know very little about it.
I work on a website thats IE specific, we're now looking at making it cross browser. jQuery seems great at hiding the differences between browsers from a javascript point of view. However in terms of css layout is it YUI that I should really be looking at?
thanks
hi,
what's the best way to customize html-css tooltips ? (I mean an easy cross-browser solution).
I need to reduce the fade-in delay and change the style. (also, could you suggest a good jQuery plug-in for it ?
thanks
What is the jQuery alternative to the following JavaScript code?
var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
I believe a jQuery alternative would be more cross-browser compatible?
If you have 2 cross classifying variables you can use rowSums and colSums to produce margin totals on an xtabs output. But how can it be done if you have 3 classifying variables (ie margin totals in each sub table)?
Hello
I want to use XQuery on a column of data type NTEXT (I have no choice!). I have tried converting the column to XML using CONVERT but it gives the error:
Incorrect syntax near the keyword 'CONVERT'.
Here's the query
SELECT
y.item.value('@UserID', 'varchar(50)') AS UnitID,
y.item.value('@ListingID', 'varchar(100)') AS @ListingID
FROM
dbo.KB_XMod_Modules
CROSS APPLY
CONVERT(xml, instancedata).nodes('//instance') AS y(item)
(instancedata is my column)
Can anyone think of a work around for this ?
Thanks
I have problems with installing PHP and in Ubuntu. I followed the instructions on the PHP-FPM site, PHP FastCGI Process Manager but when doing ../configure && make to compile PHP I got a lot of not found messages (listed below), and I don't know how to fix them. I tried both the Integrated compilation and Separate compilation but both compilations ends up with the same messages. Is there a solution or workaround? An alternativ way to install PHP with PHP-FPM?
../configure: 11986: ac_fn_c_check_func: not found
../configure: 11997: ac_fn_c_check_func: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: checking for socket in -lsocket: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: checking for socket in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12147: ac_fn_c_try_link: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: result: no: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: no: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: checking for __socket in -lsocket: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: checking for __socket in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12147: ac_fn_c_try_link: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: result: no: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: no: not found
../configure: 12154: ac_fn_c_check_func: not found
../configure: 12165: ac_fn_c_check_func: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: checking for socketpair in -lsocket: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: checking for socketpair in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12315: ac_fn_c_try_link: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: result: no: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: no: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: checking for __socketpair in -lsocket: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: checking for __socketpair in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12315: ac_fn_c_try_link: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: result: no: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: no: not found
../configure: 12322: ac_fn_c_check_func: not found
../configure: 12333: ac_fn_c_check_func: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: checking for htonl in -lsocket: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: checking for htonl in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12483: ac_fn_c_try_link: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: result: no: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: no: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: checking for __htonl in -lsocket: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: checking for __htonl in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12483: ac_fn_c_try_link: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: result: no: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: no: not found
../configure: 12490: ac_fn_c_check_func: not found
../configure: 12501: ac_fn_c_check_func: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: checking for gethostname in -lnsl: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: checking for gethostname in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12651: ac_fn_c_try_link: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: result: no: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: no: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: checking for __gethostname in -lnsl: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: checking for __gethostname in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12651: ac_fn_c_try_link: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: result: no: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: no: not found
../configure: 12658: ac_fn_c_check_func: not found
../configure: 12669: ac_fn_c_check_func: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: checking for gethostbyaddr in -lnsl: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: checking for gethostbyaddr in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12819: ac_fn_c_try_link: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: result: no: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: no: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: checking for __gethostbyaddr in -lnsl: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: checking for __gethostbyaddr in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12819: ac_fn_c_try_link: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: result: no: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: no: not found
../configure: 12826: ac_fn_c_check_func: not found
../configure: 12837: ac_fn_c_check_func: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: checking for yp_get_default_domain in -lnsl: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: checking for yp_get_default_domain in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12987: ac_fn_c_try_link: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: result: no: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: no: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: checking for __yp_get_default_domain in -lnsl: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: checking for __yp_get_default_domain in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12987: ac_fn_c_try_link: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: result: no: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: no: not found
../configure: 12995: ac_fn_c_check_func: not found
../configure: 13006: ac_fn_c_check_func: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: checking for dlopen in -ldl: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: checking for dlopen in -ldl... : not found
cat: confdefs.h: No such file or directory
../configure: 13156: ac_fn_c_try_link: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: result: no: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: no: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: checking for __dlopen in -ldl: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: checking for __dlopen in -ldl... : not found
cat: confdefs.h: No such file or directory
../configure: 13156: ac_fn_c_try_link: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: result: no: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: no: not found
../configure: 13164: 5: Bad file descriptor
../configure: 13164: :: checking for sin in -lm: not found
../configure: 13164: 6: Bad file descriptor
../configure: 13164: checking for sin in -lm... : not found
cat: confdefs.h: No such file or directory
../configure: 13196: ac_fn_c_try_link: not found
../configure: 13198: 5: Bad file descriptor
../configure: 13198: :: result: no: not found
../configure: 13198: 6: Bad file descriptor
../configure: 13198: no: not found
../configure: 13214: ac_fn_c_check_func: not found
../configure: 13225: ac_fn_c_check_func: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for inet_aton in -lresolv: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for inet_aton in -lresolv... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for __inet_aton in -lresolv: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for __inet_aton in -lresolv... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for inet_aton in -lbind: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for inet_aton in -lbind... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for __inet_aton in -lbind: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for __inet_aton in -lbind... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13516: 5: Bad file descriptor
../configure: 13516: :: checking for ANSI C header files: not found
../configure: 13516: 6: Bad file descriptor
../configure: 13516: checking for ANSI C header files... : not found
cat: confdefs.h: No such file or directory
../configure: 13615: ac_fn_c_try_compile: not found
../configure: 13617: 5: Bad file descriptor
../configure: 13617: :: result: no: not found
../configure: 13617: 6: Bad file descriptor
../configure: 13617: no: not found
../configure: 13665: ac_cv_header_dirent_dirent.h: not found
../configure: 13665: 5: Bad file descriptor
../configure: 13665: :: checking for dirent.h that defines DIR: not found
../configure: 13665: 6: Bad file descriptor
../configure: 13665: checking for dirent.h that defines DIR... : not found
eval: 1: Bad substitution