I install a sphinx search engine a couple months ago, as time pass, I don't remember that sphinx version I installed.
how to check my system sphinx version?
Is there a way to check if a template tag exists before using the template tag?
In other words, I would like to be able to do something like this:
{% load my_custom_tags %}
...
{% ifloaded my_custom_tags %}
{% some_custom_tag %}
{% endifloaded %}
Hi,
I want to count the days passed with respect to a given date.
I have a predefined date with me and i want to check the days passed, once the day pass 30 days with respect to the given time i want to get a message.
example given date is25/03/2010 and when my system date reaches 25/04/2010 i have to get a message.
How can i implement it. please give some help
Hi!
What's the best way for me to take url like: http://foobar.com/foo.torrent and check if that really is a torrent, not a html page or something else funny.
Suggestions?
Thank you :)
Hello,
I want to check whether hre 1.6 or higher is installed or not. If installed I want to progress my application. If not installed , I want to install jre-6u17-windows-i586-s.exe after successfully installing jre , my control not returns to inno again. Please send a inno script for that.
best regards
SOumen
Hi,
Does anyone have any sample code in that makes use of the .Net framework that connects to googlemail servers via IMAP SSL to check for new emails?
Thanks
Is there a way to check to see if an Microsoft Office process (i.e. Word, Excel) has hung when using Office Automation? Additionally, if the process is hung, is there a way to terminate it?
hello there,
In my .cs page i want to check some condition and depending on that i will show/hide a div in my .aspx page. Is that possible?
like
if(j==0)
{
div id="hi".visible=false; //something like that
}
I hope u guys understood the problem.
Thank you
I am using jQuery, I want to check existence of an element in my page. I have done following code, but its not working?
if ($("#btext" + i) != null){
//alert($("#btext" + i).text());
$("#btext" + i).text("Branch " + i);
}
Please tell me what will be the right code?
Thanks
I've found many useful Bash commands that can execute OS X behaviors from the command line such as:
screencapture -x -C $FILENAME
Is there such a command that can check if the screen saver is active?
when I write a number to binary file, it won't display. but in case of a character, it does. why? how would you check to see if the file containing character is binary?
Hi ,
I'm having a windows form which contains listview control ,
where listView1.View = View.Details; and listView1.CheckBoxes = true;
then added a column with HeaderName as "FileName".
listView1.Columns.Add("File Name", 200, HorizontalAlignment.Left);
Here I would like to have check box in the Header of listview , ie FileName.
Can anyone help me with this.
Thanks in advance.
andy
What is the easiest way to check if something is a list?
A method doSomething has the parameters a and b. In the method, it will loop through the list a and do something. I'd like a way to make sure a is a list, before looping through - thus avoiding an error or the unfortunate circumstance of passing in a string then getting back each letter.
This question must have been asked before - however my googles failed me. Cheers.
how can i check if a user is logged in in user control with asp.net mvc
usually on a view page i use this
<% if (User.Identity.IsAuthenticated) {%>
//Do something
<% } %>
but i can't get this done on a user control
I am trying to check if md5sum or digest exists on solaris and script is used on different machines.
Here is the function in sh script which is called from a ksh script
getMD5cmd ()
{
PATH="${PATH}:/bin:/usr/bin:/usr/sfw/bin:/usr/local/bin:/usr/sbin/bin"
if type -p md5sum;then
MD5CMD=`type -p md5sum`
elif type -p digest;then
MD5CMD="`type -p digest` -a md5"
fi
echo "HERE ${MD5CMD}"
}
When I run scripts I get
-p not found
md5sum not found
-p not found
digest is /bin/digest
HERE
However, when I type it in a terminal, works as exptected
Any Ideas?
Thanks
Hi guys, I have to get linux distro name from python script. There is dist method in platform module:
import platform
platform.dist()
But it returns
>>> platform.dist()
('', '', '')
Under my Arch Linux. Why? How can I get the name.
p.s. I have to check whether the distro is debian-based.
How do I check to see if a column exists in a SqlDataReader object? In my data access layer, I have create a method that builds the same object for multiple stored procedures calls. One of the stored procedures has an additional column that is not used by the other stored procedures. I want to modified the method to accommodate for every scenario.
My application is written in C#.
Is there a fast/efficiency way to check if a table is empty?
DECLARE @StartEndTimes TABLE
(
id bigint,
StartTime datetime,
EndTime datetime
)
IF @StartEndTimes IS NOT NULL
I want to use mod-rewrite to check for a file in two separate locations: at the requested URL, and at the requested URL within the "public" directory.
Here's what I have so far:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/public/$0 !-f #this line isn't working
RewriteRule ^(.*)$ index.php?$1 [L]
It can correctly determine if the file is there, but it's not correctly determining if the file is at /public/supplied/file/path/file.extension. How do I test for that?
How do you check to see if a file does not exist in SQL Server Integration Services 2005?
Is there a native SSIS component which will just do this for you?
I have this command
h = urllib.urlopen("http://google.com/")
How can I check if it retrieves me some error, internet down or something I don't expect?
For example, something like
if error
print 'ERROR'
Thank you