Is it possible to test a web app in an android emulator and an iphone emulator?
Is it possible to direct the browser to a url within a mobile emulator?
Hai
I want to create a magento web site, which have left side menus (product category - products). Not in the top. I am wanted to download free template. Does any one help me to get the free template having left side menu. Or any good URL to download this template
Suppose that I have two massive folders in SVN: test and prod. I'm trying to use the following svn command to merge the content from test into prod:
svn merge ./prod@HEAD ./test@HEAD ./prod
However, my SVN repository is huge and this process takes an enormous amount of time. Is there any way that I can make a simpler merge statement which will be more processor friendly? Perhaps a server-URL based merge?
Any insight is appreciated....
I am building a web application, in Java, where i want the whole screenshot of the webpage, if i give the URL of the webpage as input.
The basic idea i have is to capture the display buffer of the rendering component..I have no idea of how to do it..
plz help..
I'm totally rookie as to PHP. I want to write a PHP script in which it can access a remote cgi via http to get some data. I know that PHP is able to fopen any remote URL and fetch file content, but I concern about the result returned by cgi script, not the script itself.
I am using asp.net page methods with jquery..... Here is my code,
$.ajax({
type: "POST",
url: "Default.aspx/GetRecords",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
and asp.net page method is,
[WebMethod]
public static string GetRecords(int currentPage,int pagesize)
{
// my logic here
}
How to pass values for currentPage and pagesize from jquery....
hi,
I want to run my web application in another machine.My problem is that i have already created virtual directory in iis 7.5 and add web application in it. Its running in my machine properly but i am trying it run in another machine through url and add the ip address along port number but its not found the web page.Plz help me .
Hi!,
I have setup svnserve server (1.6.5,plain, without apache) on Fedora.
I start the svnserve with the command
'svnserve -d --foreground --listen-port=3690 -r /usr/local/svn-repos/proj-test'
When user trying to checkout working copy from the local machine with command
'svn checkout svn://127.0.0.1/proj-test' gets following error
svn: URL 'svn://127.0.0.1/proj-test' doesn't exists
but, 'svn checkout svn://localhost/proj-test' works.
I am curious to know why using 127.0.0.1 with svn:// fails?
Thanks.
Banani
I want to change the page, I'm not sure if it is possible with JavaScript, so I tried with HTML, and it failed.
if (text=="home") {'<meta http-equiv="REFRESH" content="1;url=index.php">'; return;}
Any ideas on how to do this?
I would like to create an HTML button that acts like a link. So, when you click the button, it redirects to a page. I would like it to be as accessible as possible. I would also like it so there aren't any extra characters, or params in the URL.
How can I achieve this?
Im trying to display a loading gif before submitting a multipart-form (file upload), this is my code.. but the image is not displaying.. if i remove the submit() it displays, so.. is not a path or syntax problem.
$('#btnSubmit').click(function() {
document.getElementById('loader').innerHTML = "<img src='<?= url::base() ?>themes/img/loading.gif' border='0' />";
$('#uploadform').submit();
});
When I try to create a jquery alert coming from an ajaxy query, I don't get any response. Do you know how to fix it ?
jquery:
$.ajax({
type: "GET",
url: "php/submission.php",
success:function(data){
if(data==1)
{
alert("working");
}
}
});
submission.php:
echo '1';
I have some code like this
function doSomething(){
Jquery.ajax(type: "POST",
url: "HelloWorld",
success: function (msg) {
if(msg.d =="Hello World")
{
return true;
}else
{
return false;
}
}
);
}
i want to know something based on which the return value of the succes function.
Can somebody help?
i have a simple problem: Although i'm using sampleSize properly, my code doesn't even reach the BitmapFactorycode, since DefaultHttpClient is already throwing the exception.
Here is my code:
DefaultHttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(mSongInfo.imageLarge);
HttpResponse response = client.execute(request);
int sampleSize = 1;
while (response.getEntity().getContentLength() / sampleSize
/ sampleSize > 100 * 1024) {
sampleSize *= 2;
}
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = sampleSize;
final Bitmap bitmap = BitmapFactory.decodeStream(response
.getEntity().getContent(), null, options);
And here is the exception:
0 java.lang.OutOfMemoryError: (Heap Size=11463KB, Allocated=7623KB, Bitmap Size=9382KB)
1 at org.apache.http.util.ByteArrayBuffer.<init>(ByteArrayBuffer.java:53)
2 at org.apache.http.impl.io.AbstractSessionInputBuffer.init(AbstractSessionInputBuffer.java:82)
3 at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:98)
4 at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:83)
5 at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:170)
6 at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:106)
7 at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:129)
8 at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:173)
9 at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
10 at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
11 at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
12 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
13 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
14 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
15 at de.goddchen.android.easysongfinder.fragments.SongFragment$1.run(SongFragment.java:79)
16 at java.lang.Thread.run(Thread.java:1027)
As you can see, the code doesn't even reach the part where i check the size (Content-Length) of the image and calculate a proper sample size.
I wasn't aware that simply calling DefaultHttpClient.execute(...) will already load the complete content into the memory.
Am i doing something wrong? What is the right way to first retrieve the content length and then start reading the content from an InputStream?
EDIT
To avoid common answers that show how to load images from a URL: i already know how to do that, i have also posted the code above, so why do you keep referencing tutorials on that? I explicitly was very clear about the problem: Why is HttpClient.execute(...)already fetching the whole content and storing it in memory instead of providing a proper ÌnputStreamto me? Please don't post any beginner tutorials on how to load aBitmap`from a URL...
my website the list expander is not working. I think it might be because I changed the CSS, but I cannot figure out how to make it work.
Sorry the url is [http://hpcommtoolkit.com/Communication%5Ftools.html%5D%5B2%5D not the original.
[2]: http://hpcommtoolkit.com/Communication_tools.html
I am trying to add some security to my computer at home and would like to have a copy of all Yahoo! IMs sent to me. I am using Python 2.6 on Windows.
I would also like to have every URL in Internet Explorer sent to me.
I am new to Selenium and just started to use it. I want to open a new browser session in a different window from my script and do not know how to do it.
I tried using the open command and gave the Firefox Url but it opened in the same window.
Any ideas?
How to configure your WCF service to work as normal TCP server? Is it possible, how (how to disable all that binding specific crap so to keep your service URL like http://example.com:4444/service and be able to wirk vith pure HTTP\TCP streams )
Seems simple but users have no internet access.
The application will be hosted internally on as Intranet site. The application will be able to make webservice calls to the internet.
I tested and tried Mapquest.
However all the other providers seems to assume the users are able to access the internet so their API's are javascript based with src tags pointing to internet URL's
Any ideas?
What will be proper regular expression for git repositories?
example link:
[email protected]:someone/someproject.git
so it will be like
server can be url or ip
Project can contain some other characters than alphanumeric like '-'
I'm not sure what is the role of '/'
any suggestions?
Is there a way to call java method in .xhtml?
I just want to be able to call java.net.URLEncoder.encode() method from xhtml file.
Is it possible to do this?
In jsp it was very easy to do
<% String encodedURL = java.net.URLEncoder.encode(url, type); %
I want to automate actions in firebug JavaScript console.
ie. Is it possible to load a page from url in firefox then after the page is loaded run a js code in console? I have googled for solutions and found one:Running_Automated_Test_Suite with FBTest
is there any other ways to do that? Which one is easier? Some ways w/ windows cmd-line/bash scripts in linux/in mac? Selenium?
I'm trying to download the contents of a web page using PHP.
When I issue the command:
$f = file_get_contents("http://mobile.mybustracker.co.uk/mobile.php?searchMode=2");
It returns a page that reports that the server is down. Yet when I paste the same URL into my browser I get the expected page.
Does anyone have any idea what's causing this? Does file_get_contents transmit any headers that differentiate it from a browser request?
Round two. First was "How do I get all supported CSS properties in WebKit?".
I'm looking for magic CSSkeywords function:
CSSkeywords('float') --> ['left', 'right', 'none']
CSSkeywords('width') --> ['auto']
CSSkeywords('background') --> [
["repeat", "repeat-x", "repeat-y", "no-repeat"],
["scroll", "fixed"],
["top", "center", "bottom", "left"],
/*regexp for color*/,
/*regexp for url*/,
"none"
]