I have a session variable and it is set default time of 20 minutes... Is it possible to see the running time of that session variable (ie) say 14 min 35 sec..
I am new to scala and I am finding the need to convert a boolean value to an integer. I know i can use something like if (x) 0 else 1 but I would like to know if there is a preferred method, or something built into the framework (ie toInt())
Hello,
Just a quick one..
I am unsure how to prevent a prefix,
for example if I am in domain.com/admin/orders or domain.com/user/order which are admin_ and user_ actions and the navigation menu contains links to pages displays (controller pages action display, **) when they are clicked on they are automatically prefixed by the current prefix.
How can I set in the router file to redirect wildcards prefixes (ie. /pages/)?
I have two arrays
$data1 = array()
$data1 = array( '10','22','30')
and also another array carries
$data2 = array()
$data2 = array( '2','11','3');
I need to divide these two arrays(ie,$data1/$data2) and store value to $data3[].
I need to get it as follows
$data3[] = array('5','2','10')
If someone knows of an easy way to do this would be of great help.
Thanks
I need a virtual server for web development, it'll host Apache+Postgres+Ruby+something else.
What's the most effective software to run such a server? (ie with least virtualization overhead)
Is there a way to run Linux as as service?
I use VirtualBox at the moment, but it's inconvenient in some ways, such as it needs an emulator window open which also captures keyboard input when alttabbed into.
(Also, coLinux hangs at boot on my machine, so it's probably not an option)
I have an XML document here that is served with a corresponding XSL file. The transformation is left to be executed client-side, without JavaScript.
This works fine in IE (shock horror), but in Google Chrome, just displays the document's text nodes.
I know that it is possible to do client-side XSL in Chrome, as I have seen examples of it, but I am yet to be able to replicate this success myself
What am I doing wrong?
So yeah, like I said, I've spent a few hours trying to fix this bug in the footer that add's an extra 20-30px on to the bottom of the page in IE6 and 7. I've currently set all bottom margins to 0 so as to find what's causing it, I then scoured ie developer tools but came up empty.
Here's the homepage design hosted on my web design playground - Link
Can anyone see the remedy?
Hi!
I have issue
$('#myimg').animate({
border: '10px solid #ffffff'
},'fast',function(){
alert('callback');
});
Working with: FF 3.6.3, Chrome 5.0.375.55, Opera 10.53
Not working with: 8.0.7600.16385
Issue, no callback ;)
With animation for example "width", callback works also in IE, bug is with border.
I read some tutorials on how to read data from a database.properties file- which basically stored key-value pairs.
What i want to know is, in which folder should I place this file? Is it in the root (ie "src") or within a package... And how do I access this file, if it is placed in "src"- my code will be within a package (and the package's directory will be under src)- so how do I access the properties file, which is in "src", from a class within a package?
I am writing a Pylons-based download gateway. The gateway's client will address files by ID:
/file_gw/download/1
Internally, the file itself is accessed via HTTP from an internal file server:
http://internal-srv/path/to/file_1.content
The files may be quite large, so I want to stream the content. I store metadata about the file in a StoredFile model object:
class StoredFile(Base):
id = Column(Integer, primary_key=True)
name = Column(String)
size = Column(Integer)
content_type = Column(String)
url = Column(String)
Given this, what's the best (ie: most architecturally-sound, performant, et al) way to write my file_gw controller?
I am trying to capture a screenshot of two versions of a website (one that's standards complaint and one that is not).
I would use broswershots.org, but only one of the websites has a public url.
Now I've already got full-length screenshots for IE and FF, but what can I do to get a full-length screenshot in Opera, Chrome and Safari?
hi,
I've some issues with IE 7, could you please tell me how to avoid my content to shift down when I move the mouse over Contact (under the title)
http://www.lancelmaat.nl/drupal/index.php?q=allwork
thanks
How is it possible to allow a user to create a webpage containing some html, based on their entries in a form? ie. I would want them to be able to input a name and when the button is clicked, a webpage called that name would be created. I imagine that this must be possible in php, but what functions/code would I be using?
Thank you!
Hi,
I wanna do some local developer tests of IIS 7 but I don't have Windows Vista, 7 or 2008 server - I currently run XP SP3.
I have Virtual PC installed so I can use Microsoft's IE compatibility images - are there any time-limited images that I can use with Virtual PC so I can check out IIS 7?
The IIS 7 "Try it" link points to this page. But the VHS is for Windows Server platforms only I think and I don't want an ISO?
Any advice?
my application have many drag and drop features. and while dragging i want that cursor changes to some grab.cur. ie and firefox are working fine in this. but in chrome it always changes the cursor to text cursor. I m stuck badly please help.
Is it possible to move files from a network location that requires credentials to another network location that also requires credentials without mapping any drive. (ie: Without any use of P/Invoke)
Example:
FileInfo fi = new FileInfo(@"\\SomeComputer\SomeDrive\SomeFolder\someFile.txt");
fi.MoveTo(@"\\AnotherComputer\AnotherDrive\AnotherFolder\AnotherFile.txt");
This works fine if the source and destination network drives are already mapped but if they are not It doesn't.
Title says it all. I know this can be done in IE by creating an ActiveX object, but how do I do it in FF. The navigator.plugins['Adobe Acrobat'] object lets me know if it's installed or not, but it doesn't contain the version number. Any ideas?
drag and drop file attachment to browser, how do they do it?
It seems gmail just starting this feature, and it doesn't require you to install any plugin etc.
it works in both firefox and chrome but not IE.
If I have a look at my cookievalue .ASPXANONYMOUS it is a string ie
WZnX-rXHygEkAAAAOTFhZjE5YTctZmEzZi00MTMwLWEwNTAtYjYwMzI0N2M0NTY4gQUsRlThiJWAjBgmBnpeIba7eGo1
The value Request.AnonymousID is a Guid.
How do you get from ASPXANONYMOUS to AnonymousID ?
I need this to debug some issues I have with FormsAuthentication.
in some of the websites i have, when adding to favorite with IE button the name of the favorite that is auto filled in by the page title is sometimes not getting the name and insted it gets the url where the "/" is replaced by "-" and ":" is removed
what is the problem?
the websites are hebrew or english, encoding is utf-8 or windows-1255...
Hello,
I am looking for any kind information that shows the difference between Facebook and Twitter APIs. (IE what you can retrieve via API, privacy difference etc) for my graduation thesis as a starting point.
I will be grateful if you point out any source of information.
Filters like
img {filter:flipV;}
I'm guessing are pretty old, I just was asked by a colleague why they weren't working for him in FF. I assume they were an IE only thing that died out a while back?