Hi,
A while a go I saw a good post on SO about a user who wanted to create a site using a point system similar to SO, but I havn't been able to find it since.
Can anyone direct me to a good article or post about creating point driven sites/forums?
Ok so here is the situation. Been pulling my hair out on this one.
I'm a noob at this. Only been using rails for about 6 weeks. I'm using the standard setup package, and my code leverages prototype helpers heavily. Like I said, noob ;)
So I'm trying to put in some jQuery effects, like PrettyPhoto. But what happens is that when the page is first loaded, PrettyPhoto works great. However, once someone uses a Prototype helper, like a link created with link_to_remote, Prettyphoto stops working.
I've tried jRails, all of the fixes proposed on the JQuery site to stop conflicts...
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
...even done some crazy things likes renaming all of the $ in prototype.js to $$$ to no avail. Either the prototype helpers break, or jQuery breaks.
Seems nothing I do can get these to work together.
Any ideas?
Here is part of my application.html.erb
<%= javascript_include_tag 'application' %>
<%= javascript_include_tag 'tooltip' %>
<%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'jquery-ui' %>
<%= javascript_include_tag "jquery.prettyPhoto" %>
<%= javascript_include_tag 'prototype' %>
<%= javascript_include_tag 'scriptalicious' %>
</head>
<body>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(
function() {
jQuery("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
If I put prototype before jquery, the prototype helpers don't work
If I put the noconflict clause in, neither works.
Thanks in advance!
Chris
BTW: when I try this, from the jQuery site:
<script>
jQuery.noConflict();
// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
jQuery("div").hide();
});
// Use Prototype with $(...), etc.
$('someid').hide();
</script>
my page disappears!
I've gone to Team--Connect and tried to enter the details for the TFS on the CddePlex site:
https://tfs05.codeplex.com
Then it asks for the user name and password - which I assume is something like
[email protected] + my codeplex password.
But is doesn't let me sign in?
What assumption is making an ass of me?
Hi,
Anyone know how to best implement a multilingual static site using webby?
I would put content for the multiple languages in content/{lang}/{page}.txt for starters, any ideas on the rest?
I've never used webby.
Thanks, Max.
I sometimes use the following site to look at browser and OS trends http://gs.statcounter.com/. It got me thinking about how the iPad is going to be classified, as a mobile platform or a desktop platform, or is it going to spark a new category. Since it runs iPhone OS, it could be considered a mobile device, but I have a hard time with that because of the screen size.
What should iPad be classified as: Mobile, Desktop, or Other (Try to come up with a good name for Other)?
One of my applications in my Django project require each request/visitor to that instance to have their own thread. This might sound confusing, so I'll describe what I'm looking to accomplish in a case based scenario, with steps:
User visits application
Thread starts
Until the thread finishes, that user's server instance hangs
Once the thread completes, a response is delivered to the user
Other visitors to the site should not be affected by any other users using the application
How can I accomplish something like this? If possible, I'd like to find a lightweight solution.
My website www.edesimusic.net and www.juraatmedia.com is infected with JS:Illredir-S [Trj] malware. My site keep on getting infected with some redirects or js scripts or iframe script, after cleaning them I change my passwords and it comes again after few days.
Can anyone tell me how to protect my websites properly and how to remove this virus JS:Illredir-S [Trj] ? I am not getting any information about this virus and which file on my server is infected with it.
Please help me!
Hi,
I'm using EasyPHP (my OS = Windows XP) and I've wroten an little php-script that should update my database every hour while server is up.
I could include the script into the index.php but then it would only be executed when there is activity on the site.
How can I configure EasyPHP or Cygwin to execute my cron job ?
thx
Does anyone have a no JavaScript way to make HTML radio buttons belonging to the same "group" have different "name" attributes?
While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal.
Hi, I'm trying to use libsox into another program of mine, but I can't seem to compile libsox with MinGW or find any places with working binaries. I downloaded the source from the official site http://sox.sourceforge.net/ but I don't know which files to include in the project to compile it. I can't compile it with all the files included in the 'src' directory and I think I only need to compile the functions listed here: http://sox.sourceforge.net/libsox.html but I can't seem to find it. Can anyone help?
Using Morph Labs' Appspace to deploy a site means no automated way to redirect 'myapp.com' to 'www.myapp.com' (and no access to .htacess).
Is there an in-rails way to do this? Would I need a plugin like subdomain-fu?
More specifically, I'm trying to do something like:
'myapp.com' = 'www.myapp.com'
'myapp.com/session/new' = 'www.myapp.com/session/new'
Basically, I always want the 'www' subdomain prepended on every request (because the SSL cert specifically has a common name of 'www.myapp.com').
I'm developing a website with JRuby on Rails because I need some Java functionality server-side. I figure to deploy it, I will need to use a hosting service that supports JSP. Am I right and is that all I need? Or is there something else I will need to deploy my site? How would I go about doing this?
I've decided to take the suggestion from Robert Harvey on this site and build an application using ASP.Net MVC.
When I went to Bing for a brief overview, I saw there was an MVC2.
What is the difference and should I care?
I've built a Base Controller that all of my Controllers inherit from, and I've got it setup so that it checks the browser type and returns the appropriate MasterPageFile on the fly.
I'm wondering if this is an efficient way to do this or if I should optimize it another way.
Public Class BaseController : Inherits System.Web.Mvc.Controller
Protected Overrides Function View(ByVal viewName As String, ByVal masterName As String, ByVal model As Object) As System.Web.Mvc.ViewResult
If Request.Browser.IsMobileDevice Then
Return MyBase.View(viewName, "Mobile", model)
Else
Return MyBase.View(viewName, "Site", model)
End If
End Function
End Class
http://site.com/page&character
This URL will return the following error:
A potentially dangerous Request.Path value was detected from the client (&).
I'm already put this in web.config:
<system.web>
<httpRuntime requestValidationMode="2.0" />
<pages validateRequest="false">
...
How can I fix this error?
My users upload Word 2007 documents to our site and I'd like to load them into a rich edit control of some kind so the users can make modifications/ comment, etc.
What mechanisms are available to:
load the Word document via ASP.NET, and
parse/format/display the document in a rich editing control?
Also, what kinds of rich editing controls are best to use in this circumstance?
I've been googling for a while now, I found some not complete tutorials how to install CC 7.1.1 like this one : https://publib.boulder.ibm.com/infocenter/cchelp/v7r1m0/index.jsp?topic=/com.ibm.rational.clearcase.cc_ms_install.doc/topics/t_install_ccrc_eclipse.htm
Which update site do I add in eclipse to install 7.1.1 ? I need this particular version because it is only one supported in windows 7
Hi,
I have an .NET 1.1 web app and I am upgrading to ASP.NET MVC 1.0 app in IIS6.
How do I put up a under construction page so uses see it?
And secondly how can I install the new site and test under
this scenario of having an under construction page??
Malcolm
Hi,
I am trying to do a Physics problem in python. I need to install visual python because I get the error that it can't find the visual library when I type import visual from *
The documentation on the Visual Python site is totally useless.
I have gone into synaptic package manger and installed python-visual. But I still get the same error.
Can someone please help?
Thanks,
Glen
I have a web application using windows authentication. I also want to authenticate non-domain users against AD. Can I have domain members can enter site directly, and non-members enter their domain username and password.
How can I do this?
I have been trying to get my site, when a visitor goes to .co.uk to be automatically redirected to .com. As well as if they go to domain.com to be taken to www.domain.com
I have the code below in my httpd.conf, it appears to be working with domain.com to www.domain.com but not domain.co.uk or www.domain.co.uk to www.domain.com
RewriteEngine on
RewriteBase /
RewriteCond %{http_host} ^domain.com [NC,OR]
RewriteCond %{http_host} ^domain.co.uk [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,NC]
I'll get right to the point.
This is what a browser request looks like
GET /index.html HTTP/1.1
This is what winHTTP does
GET http://site.com/index.html HTTP/1.1
Is there any I can get the winHTTP request to be the same format as the regular one?
I'm using VC++ 2008 if it makes any difference
I am working on a site http://tapasya.co.in where i just impemented mootools slideshow.
But I noticed that menubar that i was using stopped working, it was supposed to drop horizontaly but it is not being displayed now. I have used jquery for it. Please see the source of the web page. What can be the problem ? Mootools conflicting with javascript or some other problem