Is there a way to use JSP to create a file tail like Linux's "tail -f" and cache the results? That is, can I read the last X items, cache, and then read again if I get a request that exceeds some timeout?
I'm building a program, and I'm quite confident using Objective-C, but I don't know how to programmatically download a file from the web and copy it on the hard drive.
I started with :
NSString url = @"http://spiritofpolo.com/images/logo.png";
NSData* data = [NSData dataWithContentsOfURL:[NSURL URLWithString:url]];
But then I don't know what to do with the data... that sucks, no ;)
Can somebody help?
We are looking at upgrading to MapXtreme2008 from MapX4.5/Vertical Mapper3 with the 60 days trial version. We are not able to import Ascii/Grid file with MapXtreme. We have try posting on the MapXtreme forum, but no answer so far. Thanks.
http://en.wikipedia.org/wiki/ESRI_grid
i have a problem which is that i want to extract information about FAT(file allocation table) in C# but the restriction is i cannot use System.IO
so How i get drive types?cluster information e.t.c
hi all,
is it possible to write database methods in properties file, like some database queries and can be accessed using servlets which may reduce the code?
please any body help
I had a problem highlighting text in a pdf file embedded in webbrowser control and highlighting text using PDFLibNet.pdfwrapper so i'm shifting to another process where i'll just convert the pdf to html so i can manipulate the source code to highlight text.
How can i convert pdf files to html files? Is there a better way?
Thanks,
Jepe
When trying to import scala.Option in a javafx script, I get the following javafxc error:
bad class file: scala/Option$$anonfun$orNull$1.class(scala:Option$$anonfun$orNull$1.class)
undeclared type variable: A1
Please remove or make sure it appears in the correct subdirectory of the classpath.
import scala.Option;
^
I am using Scala 2.8.0-RC1, Javafxc 1.2.3_b36, JVM 1.6.0_18-b07, OS Ubuntu 9.10. The same code was working in Scala 2.7.7 .
I'm getting an error in a JBOSS application:
Static Method [addHeader] not found on JavaBean [class com.ppnet.webservice.WebserviceHeaderWriter]
I have checked the WebserviceHeaderWriter.jar that gets deployed into JBOSS and checked it in eclipse. It looks as if it should have this method on it.
I think that the JBoss application might be loading a different version of the WebserviceHeaderWriter.jar without this method on it, is there a way to check the location of the file that is getting loaded?
For an example of what I'm looking for, hit the Home button while you're composing a message in the Gmail app. A little message will pop up at the bottom of the screen for a moment that says "Message saved as Draft."
I can't figure out how to display one of those messages myself, and I'm not sure what to call it so I can't do a search for it.
The executable file of c++ will contain linkers, modules and others, i would like to look into its contents,
i'm using linux, how can i view contents of a.out?
which command should use to browse a.out, text editors wont show the contents......
configparser raises an exception if one parses a simple .properties (key/value) file wich lacks section headers; other than rolling out code myself, is there some module that allows me to do this?
I was trying to upload a 34 MB file onto the blob but it is prompting me some error
XML Parsing Error: no element found
Location: http://127.0.0.1:83/Default.aspx
Line Number 1, Column 1:
What should I do....How to solve it
I know this is simple thing, but i was not aware.
I used println in gsp file and expected to print output in console. But this is showing on page.
<% for(int i =0; i < threads.size();i++) {
println i
} %
thanks.
How can I convert the below example to use an external file instead of the embedded lazy text quasi quotes?
{-# LANGUAGE QuasiQuotes, OverloadedStrings #-}
import Text.Shakespeare.Text
import qualified Data.Text.Lazy.IO as TLIO
import Data.Text (Text)
import Control.Monad (forM_)
data Item = Item
{ itemName :: Text
, itemQty :: Int
}
items :: [Item]
items =
[ Item "apples" 5
, Item "bananas" 10
]
main :: IO ()
main = forM_ items $ \item -> TLIO.putStrLn
[lt|You have #{show $ itemQty item} #{itemName item}.|]
This is from the yesod online book.
sudo gem install ruby-mbox
then I run this
require "rubygems"
require "ruby-mbox"
mbox = Mbox.new("Inbox")
and I get this
$ ruby mbox_read.rb
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- ruby-mbox (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from mbox_read.rb:2
gem server says this
ruby-mbox 0.0.2 [rdoc] [www]
A simple library to read mbox files.
Executables are mbox-daemon, mbox-do.
Thanks in advance
hello all
i am using upload files to server in my application, it works fine , i want other users could download these file ,but i get error
i created a upload folder in public folder and i upload my files in upload folder
now when i create a link (<a href="http://mytest/public/1.jpg">download image</a>) to these files
i get error "The requested URL /public/upload/1.jpg was not found on this server."
how should i use routing for download these files?
someone may help please
thanks
With the current issues with Network Solutions sites being hacked, I'm in need of a tool (preferably freeware) that I can install into my site and it will email me the second a file change/update occurs.
Any recommendations welcome :)
This site is on a shared server hosting package.
I have an ASP.NET project which has already some custom fields in it's web.config file. I've added in it three more fields and used them in my changes, and it's working great.
But where it needs to be used, there aren't these thre fields in the web.config (this was expected, I've just added by hand for tests and developing).
How do I check the existance of fields in web.config, and in case of not finding it, how do I add it permanently to the web.config ?
Thank you
I have 2 dimensional table in file, which look like this:
11, 12, 13, 14, 15
21, 22, 23, 24, 25
I want it to be imported in 2 dimensional array. I wrote this code:
INTEGER :: SMALL(10)
DO I = 1, 3
READ(UNIT=10, FMT='(5I4)') SMALL
WRITE(UNIT=*, FMT='(6X,5I4)') SMALL
ENDDO
But it imports everything in one dimensional array.
Hi,
Is it possible to do a content search(for a line or a word) in a file using command prompt.?
If so can we search a directory as well.? i.e it should search all the files in the directory for a specific word or phrase.
Thanks.
I am having a hard time to find out which font is used by the Win 7 File Explorer in the tree view on the left hand side. Better, of course, would be if I can programmatically find out which the right font is (C#).
I searched the Windows 7 design guidelines but this particular scenario is not listed (at least I couldn't find it).
So anyone good with fonts?
I have in my url patterns,
urlpatterns += patterns('',
(r'^(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/home/tipu/Dropbox/dev/workspace/search/images'})
In my template when I do
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style.css" />
It serves the css just fine. But the file logo.png, that's in the same directory as style.css, doesn't show when I do this:
<img src = "{{ MEDIA_URL }}logo.png" id = "logo" />
Any idea why?
When i export WebProject (Struts Portlet) as war from RAD 7.5 it creates war, but that war file does not have my Class files. ie. Action Classes, Actionforms, validations, etc. none of the .java files class added in war. what is the issue. urgent