Looking to run through something very similar to (http://www.emcro.com/blog/2009/01/facebook-infinite-session-keys-no-more/) but using javascript instead. Any ideas on how to accomplish this?
Does a meta refresh tag require a full url?
I have code that looks like this, which seems to work just fine, but when I load it in lynx text browser, it says this is bad HTML. It seems to suggest that the full URL is required (http://mydomain.com/blah.htm).
on my rails(2.3.5) app(currently 50-70rpm, maximum response time around 0.7s), uploading even 700k file(using paperclip plugin) locks up the server for web requests for everyone for 2 minutes! (other apps on same server work normally)
does anyone have a clue why that might be happening? i am using some mysql transactions which lock the database also if that might be an issue
i read http://www.therailsway.com/2009/4/23/uploading-files
but it couldn't be locking server for 2 minutes for a small file, could it?!
hello i am a student and i am doing my senior project it is about developing an application in j2me for scanning a barcode and extract the number of the barcode in a message to be send.
please i search the net but i cant found something usefull i am new at j2me if someone could help me with sourch code and how to create it i will be very thankfull my email is samira.3000@yahoo.com
thanks in advanced
Hi all
I have a URL such as http://www.domain.com/index.php?p=register. I want to redirect that to use HTTPS (SSL) with .htaccess, but only on this, and a couple of other pages (the login page, etc), but not the entire site. The URLs don't point to directories, but are used to dynamically include different files.
Can someone give me a pointer or an example of how to get a single page redirect to HTTPS please?
Thanks,
James
This jQuery lets you constrain drag movement so it occurs only on the axis specified:
$("#draggable2").draggable({ axis: 'x' });
See: http://jqueryui.com/demos/draggable/#constrain-movement
This is not legal jQuery but I wish it were:
$("#Container").resizable({ minHeight: 150, containment: {axis:'y' } });
Is it possible to prevent the user from making #Container wider while allowing her to make it taller?
Thanks
When i run a JMS related application, i am encountering the following exception error.
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
We are using Sun Application Server 9.1
Any idea what are we missing?
I already tried adding the following but result still the same
Properties env = new Properties();
env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
Context ctx = new InitialContext(env);
want to rewrite urls like site.com/software to wp-content/themes/dir/software.php and something is not working.. Here's what I have:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^software wp-content/themes/dir/software.php [L]
Thanks!
Hi,
I am trying to merge 2 commits into 1. So I follow this:
http://www.gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
I did
$ git rebase --interactive HEAD~2
It opens an editor
I change 'pick' to 'squash'
Save the editor
But i get 'Cannot 'squash' without a previous commit'
so what can I do to recover?
When I do ' git rebase --interactive HEAD~2
Interactive rebase already started'
When I do '$ git rebase --continue
Cannot 'squash' without a previous commit'
Thank you.
I have website http://waycoolblog.com . but i cannot access through its ip address
http://74.220.219.56/
why is this happening. ?
My main question is whether this is a common thing. in my app am trying to the resolve the sitename myself and trying to connect with the ipaddress instead of sitename.
I want to makesure this that works properly.
Thanks.
I have done urlencode of the variable before passing to the url
http://abc.com/Restaurants?aliasF%26B
but when i try to print like
in the page
$alias = rawurldecode($_GET['alias']);
echo $alias;
it prints only F.how to solve this??
<form enctype="multipart/form-data" method="post" action="mailto:sachin@ifline.com" accept-charset="UTF-8">
Is there a problem if mails are sent this way .. i wanna avoid using PHP codes..
Is there an easy way to display a messagebox in VB.Net with custom button captions? I came across this, in the SO archives, but it's for managed C++
http://stackoverflow.com/questions/77293/what-is-an-easy-way-to-create-a-messagebox-with-custom-button-text-in-managed-c
In continuation off of this question, what are the PHP statements I need to accomplish this:
curl -is -F 'J:A-login=BTDT::Action::Login' -F 'J:A:F-address-login=EMAILADDRESS' -F 'J:A:F-password-login=PASSWORD' http://hiveminder.com/splash | grep -o 'JIFTY_SID_HIVEMINDER=[0-9a-f]\+'
The flags and fields are still mysterious, and I've not the time presently to swim through docs to figure out how this translates. I do at least understand the | grep ... portion, though.
i have text such as
http://pastebin.com/H8zTbG54
we can say this text is set of rules splitted by "OR" at the end of lines
i need to put set of lines(rules) into buckets (bash array members) but i have character limit for each array member which is 1024
so each array member should contain set of rules but character count for each array member can not exceed 1024
can anybody help me to do that
solaris 10
hello,
today i wrote a windows service which needs to send regular http requests to a server.
the problem is that the service runs under the "SYSTEM" account as local service and as such a type of service it isn't allowed to access the network.. for installing the service i use this class:
http://dl.dropbox.com/u/152585/ServiceInstaller.cs
is there a way to send http requests in a .net c# windows service and get the http response? thanks. :)
When I try to pull down a database while at work I get the following error:
:>heroku db:pull
Auto-detected local database: sqlite://db/development.sqlite3
Bad credentials given for http://heroku:[hidden]@taps.heroku.com
Note that when I am at home I am able to run this command just fine. I wanted to know if you have any suggestions for common reasons I would get this error.
http://stackoverflow.com/questions/1564566/using-jquery-to-add-or-remove-form-elements/
when i click the add link the information in the existing input field disappears.
How do i tell it to retain this information.
For example, I need to make the following Client C - Server S conversation and get XIMSS.nonce node value:
C:GET /ximsslogin/ HTTP/1.1
Host: myserver.com
Content-Type: text/xml
Content-Length: 42
<XIMSS><listFeatures id="list" /><XIMSS>
S:HTTP/1.1 200 OK
Content-Length: 231
Connection: keep-alive
Content-Type: text/xml;charset=utf-8
Server: CommuniGatePro/5.3
<XIMSS><nonce>2C3E575E5498CE63574D40F18D00C873</nonce><language>german</language><response id="s"/></XIMSS>
Hello all
I am having a problem using $html-link helper in my view. Consider this snippet...
/views/nodes/packages.ctp
<li><?php echo $html->link( "Package 1", array( "packages", "package1" ) )?></li>
Now when I click on the link, the address in address bar appears like
http://www.server.com/nodes/packages/packages/package1
Why is this happening? I haven't changed anything in my default routing configuration file.
Regards
Vikram
I have setup a Bash menu script that also requires user input.
These inputs are wrote (appended to) a text file named var.txt like so:
input[0]='192.0.0.1'
input[1]='username'
input[2]='example.com'
input[3]='/home/newuser'
Now what I am trying to accomplish is to be able to read from var.txt from a script kinda like this:
useradd var.txt/${input[1]}
now I know that wont work just using it for an example.
Thanks in Advance,
Joe
What are correctly content-types for this documents ?
I need to write a simple crawler, that only fetches this kind of files.
Nowadays http://somedomain.com/index.html can serve for example an JPEG file due to mod_rewrite, so I need to check the content-type from the response header and compare it with a list of allowed content-types.
From where I can get such list ?
If I want to get a user that has the email address of 'me@example.com', how do I pass that as a parameter in linq?
ie.:
var a = from u in Users
where u.Email = @email
Select u;
So this would be used in my method:
public static GetuserByEmail(string email)
Do I just pass in the variable or?
When I go to these examples using Firefox 3.6.3 and click the code examples it doesn't work:
http://msdn.microsoft.com/en-us/library/1whwt1k7.aspx
I want confirmation that this is a Firefox compatibility problem, suspect my firewall.f
I'm working on a VB6 app that will do some very simple communication with a web server (passing value and getting back an anwer. Low bandwith and infrequent use).
Someone suggested using WCF or Web Services. I'm wondering what the advantages are vs. just posting to an ASPX page like:
Myserver.com/Functions.ASP?FunctionName=GetValue?UserName=BubbGump
and returning some simple, easy to parse text, like one value per line.