i wonder if ruby on rails have bundles, the ones similar in django?
kind of a plugin that contains css, js, images, ruby code and everything for one feature.
thanks
i have a tree menu that i need to open on specific branch.
1. on click on an A element i open the all next UL.
now i want to close all other UL exept the ones that are parents of the A element.
i want to write a function that will get an argument that is a A ID and will open the menu in the right place.
example of my code
By default, parent_id = 0. I want to select all records with parent_id = 0 and only the last ones with parent_id 0.
I tried this, but it didn't work:
SELECT * FROM `articles`
IF `parent_id` > 0 THEN
GROUP BY `parent_id`
HAVING COUNT(`parent_id`) >= 1
END;
ORDER BY `time` DESC
What could be the solution?
I have been exploring the possibilities of Microsoft Silverlight and how it runs in web browsers. I just wonder if Silverlight requires the .NET framework? Meaning that Mac or Linux users cannot run Silverlight. I will be making the application using the .NET framework 3.5. Will this application run in any web browser, or just major ones like Internet Explorer, Firefox, or Safari?
What kind of frameworks / libraries are used to develop cross (console)-platform games, like ones that get released on Xbox 360 / PlayStation 3 at the same time? Or similarly, Xbox Live / PlayStation Network / WiiWare all at once?
Surely such things are not freeware, but just... what are they in the first place?
i have a table named news with 3 fields i.e (id, news, time) and i have a setInterval after every 3mints to fetch news from google or any news site ....
now i want to fetch only new rows inserted after every 5 minutes...with jquery $.ajax()...how can i do that...
do i reload the whole table or there is a way to fetch only the new ones...
I mostly use Eclipse but have mentionned Netbeans on my cv. Are there any good concise and up-to-date tutorials apart from the official ones that could bring me up to speed on how to use the IDE efficiently (shortcuts, debugging, views ...)? This excludes programming tutorials as I don't really need them unless there's a special manipulation involved.
I want to make sure all of my flatpages have the "www" subdomain and redirect to it if they don't. I've looked at some middlewares that redirect to www, but 1. they usually redirect all urls to www and 2. the ones I've found don't work with flatpages.
I don't want all of my site urls to redirect to include the www subdomian, just the flatpages.
Anyone know how I should go about doing this?
Thanks
I am looking for a good Tree data structure class. I have come across this package, but since I am relatively new to Python (not programming), I dont know if there are any better ones out there.
I'd like to hear from the Pythonistas on here - do you have a favorite tree script that you regularly use and would recommend?
How to avoid reloading of "large" movie files but keep them in cache. Keeping a movie in a cycle, where a large 50MB - 300MB movie file is displayed from time to time.
Currently my program stores smaller movie files, but the large ones is reloaded every time.
To find a solution on this is better than to degrade the movie to a worse frame rate and quality.
I have a list of 100,000 domains and I need to identify which ones are blocked by IE for phishing, malware, etc. Are there any applications that interact with IE or solutions that can help me solve this problem?
I've gotten in the habit of using a general catch statement and I handle those exceptions in a general manner. Is this bad practice? If so, how do I know which specific exceptions could be thrown and which ones do I catch?
Hi,
I'm implementing a program which gets text from various sites and checks which ones are most relevant to a query. The problem is that when I have breakpoints in my code it works perfectly well but without it, the program just freezes. Is this a memory issue? What can I do to solve this please?
THanks
I am working on a legacy C app which uses makefiles. I am more comfortable (and more productive) working from within an IDE, so I am looking for an IDE that can import the makefile and create a project.
Incidentally, these are hand written makefiles (not complicated ones like those generated by Autoconf). I am using Code::Blocks at the moment, but it seems it is unable to import makefiles ...
The ones they use with grouped table view.
I'm using a table view that links to another view that has text on it. To make it look less 'plain' I wanted to add that striped background and then put something like a white 'text box' on that.
Do they allow it to be used?
I'm trying to log URLs that access broken images, using an HTTP module to catch those images when accessed.
How do you retrieve the URL where that image sits on? is there a way to do it the other way round too? That is, loop through images served in a URL and decide which ones are broken.
This is all in ASP.NET with C#.
I have put together a Skin for OpenHome but have since ran across AHome code for their IPhone theme and was wondering that if I included for AHome their Dock_Bg or widget_drawer among other things which is not on OpenHome that the Launcher for the respective screen replacement would just call the items it uses.I want to keep the mb as low as I can but reach more handsets.I can just make seperate ones but see many that include even Freshface as well as OpenHome and AHome.
A lot of tech interviews asks these "kinds" of questions, so I thought I'd make a list for myself and others:
(1) Linked Lists
(2) Strings
(3) Trees
(4) Bitwise Manips
(6) Recursion (I hate these ones, I can never get these, any tips?)
How would you use Matlab to do the following? I've got fuzzy square images about the same size and then inside the fuzzy square there's smaller fuzzy squares, and I want to clean up the larger squares - not the smaller ones - so that they are no longer blurred. It looks like I'd have to make some type of morphological mask, but I'm not sure how in this case.
Do the really really really really really really really big games (I mean the REALLY big ones, that cost billions to develop) also use Open GL? Or are there some proprietary technologies out there, which can scare Open GL's pants off?
I have one number that has something related to the currentdate :
634101448539930000
634101448627430000 (this information was took 9 seconds later than the first one)
I have many codes like this and I need to know what those number means. It's something related to the current time, because the new information has always a bigger number than the older ones.
Please if anybody could help me, thanks
Hi
How would I write a selector that would look through say a div of textboxes and find which ones have a value in the textbox(so length would be greater than zero).
Can I do this all in one selector or do I have to get all textboxes then loop through them?
The ones they use with grouped table view.
I'm using a table view that links to another view that has text on it , to make it look less 'plain' I wanted to add that striped background and then put somthinkg like a white 'text box' on that.
Do they allow it to be used?
Ok so I have about six of these calendars on page, so thats around 180 td items (1 for each date):
each td has an id that is equal to that day's timestamp.
the dates I want are the red ones (class of .booked).
So i need the fastest way to 'serialize' the ids for td.booked items, any ideas?
I've set up a basic html/php submission form where people can register for our event, but need a way to replace the submission form webpage with one that reads something like "We have reached our registration limit" when we reach a certain number of submitted forms. Our database is MySQL (if that makes a difference) I've looked around on the web but people either say to count the entries by hand, or the ones that do have an automated system use CMS like drupal or joomla. Is it possible to setup an automated script that will do this?