How to add marquee behaviour to text of JLabel?
I have tried this
JLabel search = new JLabel("<html><marquee>Search</marquee><html>");
but its not working.
Hello,
I am trying to get information out of my Plone site regarding Users. It is relatively easy to get info out of the portal_catalog. However, user info isn't in the portal_catalog.
Can somebody tell me how to get user info out of the ZODB from my Plone site? Basically, I am looking to get back a list of user ids.
Thanks!
I am at the planning stage of a web application that will be hosted in Azure with ASP.NET for the web site and Silverlight within the site for a rich user experience. Should I use Azure Tables or SQL Azure for storing my application data?
I remember seeing an example of this recently, but for the life of me I can't find the site.
It was a button or something similar that sat in its place near the top of the screen, then when you scroll down it stays on screen.
Now that I think about it, it must have been javascript-powered, but it looked really natural.
Does anyone know of a site with this functionality or information on how to do it?
I'm trying to get zc.buildout to install Gunicorn from source. Using the following configuration:
[gunicorn]
recipe = collective.recipe.distutils
url = http://github.com/benoitc/gunicorn/tarball/master
results in the following error:
SystemError: ('Failed', '"/usr/bin/python" setup.py -q install --install- purelib="/mnt/hgfs/Projects/intranation/parts/site-packages" --install-platlib="/mnt/hgfs/Projects/intranation/parts/site-packages"')
Providing a --install-dir or --prefix doesn't help.
Is there a recipe for zc.buildout that downloads a tarball and installs it via easy_install or similar?
what is the best method to clear text in a text field, when the user clicks on it...
i.e. if the text search field says "search" and when they click it, it clears the value..
thanks
Tried to test .net4rc1 site on test host with win2003. As expected by default server returned error about " targetFramework="4.0" in web.config. But since I switched ASP.NET version to 4.0 and reboot that site just returning 404.
Whats wrong?)
Hi all,
What do you all recommend for iterative development in cakePhp? Create a separate project and port it over once a week? Basically, what's the best way to keep a live site from a working site, and the best way to merge them automatically?
Thanks!
Hi,
Is it possible to set-up IP address restrictions for an IIS site through a Wix installer? I don't see it mentioned in the IIS extension documentation. I want the site to be available to only one specific IP address.
Thanks!
are there times you might want to use multiple controllers in mvc?
eg.
/controllers/foo.php
/controllers/bar.php
or
/controllers/foo/baz1.php
/controllers/foo/baz2.php
/controllers/bar/baz1.php
/controllers/bar/baz2.php
could someone give some examples WHEN i might want to do that and some example controller names.
one occasion i thought about might be when you got a main site (for users) and a admin site (for customers).
all feedbacks and suggestions are appreciated
i making an uploader for 3rd party site, i don't want upload through my host (user upload to host, host upload to 3rd party site), it waste bandwidth so i decided choose flex, but i want know clearly about flex before i tried with it, can it handle http response after upload (redirect header, html response, json ...)
Hello,
I am having issues correcting an encoding type issue on a site. Unfortunately the site is non work safe (gay porn).
For the brave: http://www.alphamalemedia.com/index/news
Ive tried setting the meta content from utf8 to iso-8859-1.
Ive switched tables over to utf8 from latin1_swedish_ci but no luck.
Hi all,
I found a strange cookie problem on safari. If you surf to http://2much.ch you can enter with FF/IE and surf inside the site.
But if you use safari, you can enter only once; you can't surf inside the site. I found that Safari doesn't set the entered cookie, but FF/IE does.
What is wrong here?
Good day!
I have an silverlight site (silverlight navigation application) and I want clients to log in on my site. I want to give them different rights of viewing pages.
A WCF service gives me true or false when I enter a login and a password. Then, if it returns true, I want to remember the logged user. How can I do it? Using cookies or global variable or something else?
Hi all,
I have varying mailto: email address on my site which are now being hit with various harvesters and subsequently I'm being spammed.
Can anyone assist me in creating some PHP code for the following:
<a href="mailto:[email protected]">[email protected]</a>
To prevent the address from being harvested and equally can I use this script on various email address displayed on the site?
Thanks
I am looking at creating a site using ASP.Net MVC which of coarse has a paid membership option and needs to allow recuring payments via Paypal. I am thinking of using Paypals Payflow Link as the site will be fairly small. I am looking for an Open Source example or Framework that I can use with Payflow Link. Are there any good .Net Frameworks that only handle the payment system. The rest of the app will be custom app.
I decided to create this question to have a single source for all things syntactic sugar in Scala. I feel these details are some of the things most frustrating to starting users and are hard to search for since most/all of them are purely symbols and are thus hard to search for without knowing the name of the concept.
TODO:
implicit conversions
_ syntax for anonymous functions
Extractors(Unapply/UnapplySeq)
Other things I'm forgetting
hi , i'm trying to parse some html that is not on my server
$dom = new DOMDocument();
$dom->loadHTMLfile("http://www.some-site.org/page.aspx");
echo $dom->getElementById('his_id')->item(0);
but php returns an error something like ID his_id already defined in http://www.some-site.org/page.aspx, line: 33. I think that is because DOMDocument is dealing with invalid html. So, how can i parse it even though is invalid?
Hi there folks,
I'm researching the prospect of incorporating a blog into my site. Currently, my site is written using the Zend Framework so it's not just a case of using Wordpress and that be the end of it.
I was wondering. Has someone already done what I'm thinking of doing and written a blog infrastructure with comments and so forth using ZF?
Anyone got any suggestions?
Thanks
Steve
Hi, bit new to AS3 so forgive me if this is a bit of a straight forward question.
Ive created an array, and each item in the array is a description of something, about 20 words long, I want to search the array, and return each item that contains a particular word.
All the other tutorials Ive found are based on looping through to search for an exact match.
Thanks!
I'm trying to put comments in when compiling a regex but when using the re.VERBOSE flag I get no matchresult anymore.
(using Python 3.3.0)
Before:
regex = re.compile(r"Duke wann", re.IGNORECASE)
print(regex.search("He is called: Duke WAnn.").group())
Output: Duke WAnn
After:
regex = re.compile(r'''
Duke # First name
Wann #Last Name
''', re.VERBOSE | re.IGNORECASE)
print(regex.search("He is called: Duke WAnn.").group())`
Output:
AttributeError: 'NoneType' object has no attribute 'group'
Is there a way to get around the following?
httperror_seek_wrapper: HTTP Error 403: request disallowed by robots.txt
Is the only way around this to contact the site-owner (barnesandnoble.com).. i'm building a site that would bring them more sales, not sure why they would deny access at a certain depth.
I'm using mechanize and BeautifulSoup on Python2.6.
hoping for a work-around
Background: I have a website that has been built with ASP.NET 2.0 and is on Windows hosting. I now have to rewrite my site in PHP and move it into Linux hosting. I have a lot of incoming links to my site from around the web that point directly into the old .aspx-pages. The site itself is very simple, one dynamic page and five static ones.
I saved the static .aspx pages as .php-pages and rewrote the dynamic page in PHP. The dynamic page is called City.aspx and I have written it in PHP and it is now called City.php.
On my old Windows hosting, I used ASP.NET's URL mapping for friendly URL. For example, incoming URL request for Laajakaista/Ypaja.aspx was mapped into City.aspx?CityID=981.
My goal:
To redirect all human visitors and search engines looking for the old .aspx pages into the new .php pages.
I am thinking that the easiest way to redirect visitors into new pages will be by making a redirect, where all requests for .aspx-files will be redirected into .php filetypes.
So, if someone asks for MYSITE/City.aspx?CityID=5, they will be taken into MYSITE/City.php?CityID=5 instead.
However, I am having a lot of trouble getting this to work.
So far this is what I have found:
rewriterule ^([.]+)\.aspx$ http://www.example.com/$1.php [R=301,L]
However, I think this can not handle the parameters after the filetype and I am also not quite sure what to put on front.
To make things a bit more complicated, at my previous site I used friendly URL's so that I had a huge mapping file with mappings like this:
<add url="~/Laajakaista/Ypaja.aspx" mappedUrl="~/City.aspx?CityID=981" />
<add url="~/Laajakaista/Aetsa.aspx" mappedUrl="~/City.aspx?CityID=988" />
<add url="~/Laajakaista/Ahtari.aspx" mappedUrl="~/City.aspx?CityID=989" />
<add url="~/Laajakaista/Aanekoski.aspx" mappedUrl="~/City.aspx?CityID=992" />
I tried to make a simple redirect like this:
Redirect 301 Laajakaista/Aanekoski.aspx City.php?CityID=992
but was not able to get it to work. I ended up with an internal server error and a 50k .htaccess-file...
Any help is greatly appreciated.
Hello,
as a personal project I am trying to write a wiki with the help of django. I'm a beginner when it comes to web development. I am at the (early) point where I need to decide how to store the wiki sites. I have three approaches in mind and would like to know your suggestion.
Flat files
I considered a flat file approach with a version control system like git or mercurial. Firstly, I would have some example wikis to look at like http://hatta.sheep.art.pl/. Secondly, the vcs would probably deal with editing conflicts and keeping the edit history, so I would not have to reinvent the wheel. And thirdly, I could probably easily clone the wiki repository, so I (or for that matter others) can have an offline copy of the wiki.
On the other hand, as far as I know, I can not use django models with flat files. Then, if I wanted to add fields to a wiki site, like a category, I would need to somehow keep a reference to that flat file in order to associate the fields in the database with the flat file. Besides, I don't know if it is a good idea to have all the wiki sites in one repository. I imagine it is more natural to have kind of like a repository per wiki site resp. file. Last but not least, I'm not sure, but I think using flat files would limit my deploying capabilities because web hosts maybe don't allow creating files (I'm thinking, for example, of Google App Engine)
Storing in a database
By storing the wiki sites in the database I can utilize django models and associate arbitrary fields with the wiki site. I probably would also have an easier life deploying the wiki. But I would not get vcs features like history and conflict resolving per se. I searched for django-extensions to help me and I found django-reversion. However, I do not fully understand if it fit my needs. Does it track model changes like for example if I change the django model file, or does it track the content of the models (which would fit my need). Plus, I do not see if django reversion would help me with edit conflicts.
Storing a vcs repository in a database field
This would be my ideal solution. It would combine the advantages of both previous approaches without the disadvantages. That is; I would have vcs features but I would save the wiki sites in a database. The problem is: I have no idea how feasible that is. I just imagine saving a wiki site/source together with a git/mercurial repository in a database field. Yet, I somehow doubt database fields work like that.
So, I'm open for any other approaches but this is what I came up with. Also, if you're interested, you can find the crappy early test I'm working on here http://github.com/eugenkiss/instantwiki-test
I was trying to create an account in this site which gives you complete functional implementation of the Oracle Applications 11i ( http://vis11510.solutionbeacon.net/OA_HTML/AppsLocalLogin.jsp?requestUrl=APPSHOMEPAGE&cancelUrl=http%3A%2F%2Fvis11510.solutionbeacon.net%3A80%2Foa_servlets%2Foracle.apps.fnd.sso.AppsLogin ) . The site asks me to provide Oracle CSI (Customer Support Identifier) any idea how i can obtain one?