I'm looking for a way to do this in Perl:
$a = "60"; $b = "< 80";
if ( $a $b ) { then .... }
Here, $b "holds" an operator... can I do this? Maybe some other way?
For example, the website URL and other stuff that wants to be linked at runtime with the app? I find that info.plist is a good place for that. But maybe it is not allowed or causes trouble...?
So I have a tabbed ui "form", each tab is quiet complicated so it is loaded via the .load('item.html'); command.
All good, when the user clicks to a different tab, I want to read a property, maybe execute a function from within the ajax loaded div.
What is the best way to get to these properties and methods from outsite the ajax loaded div?
I am wondering what this technique is called and what it does. It seems to be validating some regular expression on the variable url. I am customizing another persons code:
var url = document.getElementById("editorURL").value;
if(/(file|http).*/.test(url)) {
}
Maybe someone has a link to an article that explains this a bit more in-depth?
PHPIniDir "D:/Dev/PHP/"
The above instruction can make my apache die on windows.
But I'm just not sure if that's true.
BTW,I found xmpp/wampserver copies the php.ini to the directory of httpd.exe,maybe for the lack of support?
hi, sorry for maybe this is stupid question, I just want download source code form the link as follows: http://argouml.tigris.org/source/browse/argouml/trunk/src/
I try to use the command :
svn checkout http://argouml.tigris.org/source/browse/argouml/trunk/
but it throw error :
svn: OPTIONS of 'http://argouml.tigris.org/source/browse/argouml/trunk': 200 OK (http://argouml.tigris.org)
I am strange that , how to checkout the source code from the url ?
many thanks for your help !
Regards
Hello,
in MySQL, I have table. One column has auto-increment. When I insert something
mysql_query('INSERT INTO `table` SET `column` = "data";');
Now, what I want is, without further queries, to get the value of the auto-incrementing column, maybe like this:
mysql_query('insertion = (INSERT INTO `table` SET `column` = "data");
SELECT `auto_incrementing_column` FROM `table`.insertion');
Please tell me how something like that is done. Thanks in advance!
Hi, we're in need to stop the user session in an ASP.NET site after some time(say 20 mins).
We know we can use a timer and code every page to expire on the timer tick, but we're searching a faster way, maybe through an IIS configuration?
Is there a built in way to do such things?
We're using ASP.NET 2.0, Framework 3.5, IIS 6, c#.
TY.
We're using Trac as the task management tool at the project we work in. However, Trac search is maybe not the most intuitive search out there, and we end up having multiple duplicates as the reporters can't effectively find if there already is a reported ticket of the question he or she found.
Stack Overflow's "Related Questions" concept is great and works magnificently! I was wondering if someone has heard of some similar plugin to Trac, or if you have solved this problem some other way.
Hello,
for my application (WPF) I'd like to use the standard icons for save, open... However, I'm not aware of them being available as vector graphics? So, where can one get them, is it maybe possible to extract them from some DLL files or whatever? Thank you very much!
hello, I want to save a query only one time in the database, this is my code:
$querystat = mysql_real_escape_string($_GET['q']);
$datetime = time();
if( ($querystat != $_SESSION['prev_search']) OR ( ($datetime - $_SESSION['datetime']) > 60) ) {
$insertquery = "INSERT INTO `query` ( `searchquery` , `datetime`) VALUES ( '$querystat' , '$datetime') ON DUPLICATE KEY UPDATE searchquery='$querystat';";
mysql_query($insertquery, $db);
}
maybe something with == 0 ?
template <typename T>
struct Foo
{
void operator()(T& t) { t(); }
};
Is there any standart or boost functor with the similar implementation?
I need it to iterate over container of functors:
std::for_each(beginIter, endIter, Foo<Bar>());
Or maybe there are other way to do it?
Hi
What are the possible ways of representing data in memory in .Net (or in general)?
It would be great if data could be sorted and looked up by key (or multiple keys).
We are thinking to use collections, arrays, list of collections/arrays. One object would be in several collections (one sorted asc, other desc, etc.).
Maybe this is not a good idea, and we would like to hear some other possible solutions.
Thank you
I have custom control - chart with size, for example, 300x300 pixels and more than one million points (maybe less) in it. And its clear that now he works very slowly. I am searching for algoritm which will show only few points with minimal visual difference.
I have link to component which have functionallity exactly what i need
(2 million points demo):
http://www.mindscape.co.nz/demo/SilverlightElements/demopage.html#/ChartOverviewPage
I will be grateful for any matherials, links or thoughts how to realize such functionallity.
The windows service I am writing will need to run some processor intensive operations once in a while (sound encoding wav - mp3) on a machine that takes part in real time voice communication (so I cannot just run them any-time).
What would you check (what counters maybe) before running such operation?
Can you point me to any good articles?
There are two options lists with different names, i need to set first options selected in both of them.
<input type="radio" name="first_list" value="0">abc
<input type="radio" name="first_list" value="1">cba
<input type="radio" name="second_list" value="0">opc
<input type="radio" name="second_list" value="1">cpo
Sure, i can do this way:
$("input:radio[name='first_list'][value='0']").attr("checked", "checked");
$("input:radio[name='second_list'][value='0']").attr("checked", "checked");
Maybe there is another more compact way to do this?
Hi, is there any way, in Python, to have access to an e-mail account (I'll need this for gmail but better if any works) and be able to see the number of messages in the inbox (maybe even unread messages only)?
Thank you.
My CMS system allow people to post some swf on the homepage,
however, sometime there is video which is included in swf, not two files swf+flv.
When the swf video load, it near used up the bandwidth and so the page seems not response for a while ...
Can I use jQuery to control all the swf in a page that they load after the others done or maybe just load it after 3s or what?
Thanks!!
What is the best approach for working at a customers site (with several people) where there maybe not internet access the whole time and using a subversion repository?
(Migrating to Git or Mecurial is out of the question at the moment)
But wouldn't it be possible to leverage something like, for instance the Git SVN Integration, to create a proxy which acts like a subversion repository for the clients and may be used at the end to synchronize the changes back to subversion? Is there already something like that available?
Hi, I'm trying to parse Email Subject which have encoding specified in format itself. I get the format and imagine how this can be done, but maybe there is any free .Net solution available already so I wouldn't waste time on it?
Here is an example of subject I want to parse:
=?ISO-8859-13?Q?Fwd=3A_Dvira=E8iai_vasar=E0_vagiami_da=FEniau=2C_bet_draust?=
question 1)
between different characters&real numbers , finding specific one
how could i do
question 2)
myfriend asked me a good question :
can we divide two matrices to each other
// in math , we havenot learned but maybe someone knows where we find the answer
Are there any Windows IDEs that support both Ruby and Python?
I'm talking about the type of IDE that has syntax suggestions (auto-completion feature).
I've tried Netbeans but it only seems to support Ruby (maybe there's a way to add Python support?)
I want to write extensions for Mercurial. What are good resources such as tutorials, guides, API reference or maybe even a existing extension that is well commented and easy to lean from the source.
So far, I have only found the short MercurialApi and WritingExtensions wiki pages.
Hi there,
I need to make a program that writes some data to an excel spreadsheet. Something basic along the lines of First name, last name, phone number, e-mail per row with each category in its own column.
I don't even know where to start. If someone could tell me which assemblies to reference and maybe point me to a website or a book that covers writing/reading data from an excel spreadsheet via a c# program that would be great.
Many thanks.