I want to be able to edit and delete resources myself, but not allow users of the application to do so.
Is there an easy way of doing this in Rails?
An incomplete solution would be just to remove the "delete" and "edit" buttons from the index view, but that doesn't disable their ability to do so via direct HTTP requests.
Running Rails 2.2.2 and ruby 1.8.7
Hi,
In the Android application I am building, I want to be able to communicate with a local server developed in Django. (Basically a login page and a home page populated with posts and images from users) So do I need to use XML Parsers for the parsing the response from a Django server or is it possible for the server to respond with strings which can be directly used? Also what about images?
Regards,
Primal
Hi Guys,
I'm really new to apache mod_rewrite module. I have a page called http://abc in my company intranet. I want users to be redirected to http://abc.somecompanyname.com whenever they type http://abc to the URL bar. Could someone please provide and example or point me in the right direction.
I figure this should be quite an easy question to answer. Thanks everyone for you inputs.
-Mark
Hi all,
I have a database which keeps track of interaction between two different teams (represented in the admin interface by two different groups). For some fields, i have a foreignkey to Users database, and i would like to limit the dropdown people to only the specific groups.
If anyone have any suggestions, it would be much appreciated!
Jason
Hello world!
I have an .exe application written in vb.net. When I make shortcuts to the application, say on desktop (or anywhere else) and then click on them I want to programatically get the path to that shortcut, ie. C:/Users/xxx/Desktop/shortcut.lnk.
I want this so I can store the pairs shortcuts : (program + different cmd args).
I'm making a site, and will be allowing guests to vote/comment. How should I go about storing the user info?
I wouldn't like the info to be cleared if someone deletes the cookie (SO handles guest users via cookies I guess). If someone clears cookies and changes the ip at once, then only should the guest user info should be lost.
Should I use sessions in php for this?
I know some people use ANT to accomplish this, but I don't want to remove HTML comments from the actual jsp, I just want a way to strip them from output unless a users adds a parameter to the url to show the comments for debugging.
How Do I disable the copy paste feature in my webpage. To be precise, I don't want my users to copy any information from my website and use them for personal purposes. The previous question on the same topic doesn't give enough explanation. The onselect and ondrag aren't working. Please help.
I have my customers name in json format i have to use it in a textbox such that it auto completes to give list of users ... Any good Jquery Autocomplete plugin consuming JSON..
I have gone through a similar question of stackoverflow but it didnt help me
http://stackoverflow.com/questions/188442/whats-a-good-ajax-autocomplete-plugin-for-jquery
I receive an email once a week with information on my Fan Page (like how many more users than last update have become my fan, how many posts, etc). Is it possible to get this info via the FB API so I can show this data where I want outside FB and outside my email?
Hi all ,
I'm looking for an open source library that implements the OAuth protocol , I need the server side implementation . Say I have a Social network system , and I want to give my users an OAth abiliy to my API , like facebook.
Do you have any suggestion , sure examples .
Thanks in advance ...
I have an array of checkboxes in a complex dynamic-html form. Whenever a user clicks one checkbox, a fairly expensive query is generated and submitted to a remote server.
I want to delay this submit action depending on the users next action. If the user clicks several checkboxes quickly, all of the first clicks should be discarded, only the last one is processed and eventually submitted after 1 second or so.
maybe this is a common problem but I have never worked with timeouts before.
i have this
SELECT COUNT(1) cnt, a.auther_id
FROM `posts` a
LEFT JOIN users u ON a.auther_id = u.id
GROUP BY a.auther_id
ORDER BY cnt DESC
LIMIT 20
its work fine
bu now i want select from posts which added from 1 day tried to use
WHERE from_unixtime(post_time) >= SUBDATE(NOW(),1)
but its didnot worked
any one have idea
hi, i am creating ( researching possibility of ) a highly customizable python client and would like to allow users to actually edit the code in another language to customize the running of program. ( analogous to browser which itself coded in c/c++ and run another language html/js ). so my question is , is there any programming language implemented in pure python which i can see as a reference ( or use directly ? ) -- i need simple language ( simple statements and ifs can do )
i have this
SELECT COUNT(1) cnt, a.auther_id
FROM `posts` a
LEFT JOIN users u ON a.auther_id = u.id
GROUP BY a.auther_id
ORDER BY cnt DESC
LIMIT 20
its work fine
bu now i want select from posts which added from 1 day tried to use
WHERE from_unixtime(post_time) >= SUBDATE(NOW(),1)
but its didnot worked
any one have idea
I know most of the Users of Stackoverflow would have knowledge about Search Engine Optimization(SEO).. Any tips and tricks about SEO for your fellow web developers ...
We have a Asp.Net Vb.Net application with around 35 webforms.There are some remote users who do not have the functional idea of the webforms.So i was thinking of adding a help file in my project.Is there any special component or javascript ? will it be a good option if i go with form by form or a single help file ?
If a user has signed into their computer and are connected to an intranet, is there a way to grab the users crendtials and authentication them in asp.net? What specific code would do this?
Hi!
In the cookbook there's an automated tool for creating ACOs.
I'm wondering if there's an automated tool for creating AROs.
I got a lot of users and I want them and their groups in the aro table. How do I do it?
Thanks in advance!
I want to run several fastcgi processes with different users and different php.ini . But unfortunately I found information about running one process only.
http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-ubuntu-9.04
There is mod suexec for Apache which allows to do it. Does anyone know something like that for fastcgi php nginx?
So what if I want to make an app where you can take a screen shot within the app itself. How would I do that? So for example the users click a UIButton and it takes a picture of the screen.
Is that possible that MySQL can handle grouping of data according to age bracket?
In my users table, age value is their actual age. I want to group them according to age bracket. For example:
ages below 1 year old as age1, 1-4 yrs as age2, 5-9 yrs. old as age3 and so on.
My site is for listing theatrical productions
(http://theaterOnline.com)
I want to use a drop down list to enable users to filter the listings by location or genre.
The following code refreshes the screen:
$("#cfilter").change(function() {
$('#calendar').fullCalendar('refetchEvents' )
})
but I need to be able to change SRC in the ajax call below:
$.ajax({
url: src,
dataType: 'json',
data: params,
cache: options.cacheParam || false,
success: reportEventsAndPop})
which is a passed parameter from eventSources[1]
TIA for anyone who can help!
We have a requirement to control access to our SaaS based web application based on IP addresses (i.e. We will have to limit access to Company A users only if the request originates from the PCs in their subnet). How do you solve this issue?