web

How to remove HTML comments from pages before deployment ?

Hi All, At the time of development we tend to put lot of comments in the HTML pages or may be comment out some stuff as per customization request of end user. When dealing with hundreds of pages how to ensure that all commented text is removed before final deployment. Cause packaging pages with comment for everyone else to see ,is I assu...

How to reduce file size using PHP and JPEGs

I am using a the standard PHP functions imagecopytruecolor and imagejpeg to rescale and produce uploaded images from a standard HTML form. The images appear at the correct size however the image filesize is quite high (e.g. 540px * 350px = 250kb) When compared to Photoshop's Save for Web using JPEG high quality settings the same files ...

Adding controls to render tree in ascx

Hello all. I have a user control class like this: ///MyUserControl.ascx.cs ///....... public partial class MyUserControl : UserControl { //.... public List<HyperLink> Items { get { return _Items; } } public string RenderControl(WebControl control) { StringBuilder sb = new StringBuilder(); usin...

Display an RTSP video stream in a web page

I have an ip camera which provides a live rtsp video stream. I can use VLC media player to view the feed by providing it with the url: rtsp://cameraipaddress. But I need to display the feed on a web page. The camera provider supplied an active x control which I got working, but it is really buggy and causes the browser to frequently hang...

mod_rewrite rule

I am new to mod_rewrite and have been using a generator but it doesn't work. This is an example of what I am trying to achieve. The original URL: http://subdomain.domain.com/company.php?test=TES001 The rewritten URL: http://subdomain.domain.com/company/AAA001 Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule company/...

how to create a c# app to listen for xmls and reply in xml

Hi, I know that you can create web services in .net and have them run on iis. I'd like to make something that doesn't rely on iis as the webserver I'm using runs apache. The eventual app should listen for incoming xml documents and repy in the form of an xml document, the client application will be running Javascript and sending xmls v...

Is that right if I treat web service in this way?

The web service is the main logic of a program. The web service is the back-end, and other programs / UI is the front-end. The communication between back-end and front-end is communicated via XML. ...

tools,plugins or api's for monitoring java web applications

hi all, I have developed a web application in java,i want to monitor the web application.I have used jconsole, but it monitors only java application.I heard about jmon could u tel me how to use jmon or any other tools or plugins are there for monitoring web applications.All your views are appreciated. ...

How to get the last current or visited Web URL in Windows?

I'm writing a Windows app. where you can create "links", it is easy to link files or folder (just use the standard dialogs for open files or browse folders), but for linking a Web URL I don't know how to get (from a Windows function or registry key) the current or last visited page. Maybe something like the recently used files, but refe...

How do I interact with MATLAB from Python?

A friend asked me about creating a small web interface that accepts some inputs, sends them to MATLAB for number crunching and outputs the results. I'm a Python/Django developer by trade, so I can handle the web interface, but I am clueless when it comes to MATLAB. Specifically: I'd really like to avoid hosting this on a Windows server...

How do I access my own website hosted in my machine?

Forgive me if this is a stupid question. I am running XAMPP (lite) for developing my website. I can access it through http://localhost/mysite I wanted to view it on another computer (just for testing purposes), so I went to whatismyip.com, got my ip address, and tried to access the site from another computer using http://xxx.xxx.xxx.xx...

What's the best way (to avoid modifying repeated code) to build multilingual web pages.

What's the best way (to avoid modifying repeated code) to building multilingual web pages? I know how to build a multilingual web page without having to modify CSS and Javascript files. But I can't think of a neat solution for HTML and Php files. Because if I have HTML or Php files for each language, I would have to modify each one if, f...

System.Web.Extensions 3.5.0.0 with .NET 3.0

Is it possible to use System.Web.Extensions 3.5 without upgrading to .NET 3.5? We are using .NET 3.0 and have been asked to upgrade from web extensions 1.0 to 3.5. ...

Fastest way to download from web

Hi All I would like your opinions on what the best/fastest way to download files from a webserver would be? I have used WebClient. but most of the time it downloads slower than my web broswer... WebClient c = new WebClient(); using(c) { c.DownloadFile("http://blahblah.com/somefile.html", "righthere.html"); } ...

How does twitter live-update your timeline?

Hello guys, Thanks for reading. We are developing a web app. and we're finding out how to live-update some counters and info in the client side, without use scheduled-Json-Updates (yes, timeouts works... but there should be another way ; ) So I was looking at Twitter... they live-update our timeline don't they? I cannot see the timel...

Python: How to make multiple HTTP POST queries in one moment?

How to make multiple HTTP POST queries in one moment using Python? Using an external library with an example can be a good solution. ...

Run a java application in a web browser

Hello, I am relatively new to java and have a java application consisting of a couple of packages and a number of classes. I want to be able to run this application in a web browser. How do i go about doing this? ...

What mutex/locking/waiting mechanism to use when writing a Chat application with Tornado Web Framework

We're implementing a Chat server using Tornado. The premise is simple, a user makes open an HTTP ajax connection to the Tornado server, and the Tornado server answers only when a new message appears in the chat-room. Whenever the connection closes, regardless if a new message came in or an error/timeout occurred, the client reopens the ...

Expression Web 3.0 SuperPreview on a .Net MVC 1.0 Web site

Hi All, We are trying to use Web Expression 3.0 feature SuperPreview to make our site consistent across multiple browsers. Our's is a MVC 1.0 application. Has anyone tried to use SuperPreview on that ? Your advise will be very helpful. ...

Android and JSP - Working with objects

Hello everybody. I'm a student trying to dive into the world of "complex web-enabled applications" for Android. I had good tries making Android applications that call php functions, have JSON or XML responses and results, serialize objects and so on... It really can work for simple projects, IMHO. For projects that require an increased...