jQuery is great especially its plugin but I do not like to add a lot of script tags in my html. Is there something similar to dojo.require? So I can manage those plugins easier and cleaner.
When I run python ./manage.py sql grading my django site comes up with:
Error: App with label grading could not be found. Are you sure you INSTALLED_APPS setting is correct?
I have the app grading with __init__.py and everything, and my INSTALLED APPS is:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'teachline.courses',
'teachline.grading',
)
Why isn't this working?
Hi,
In the "syslog" for a MapReduce job flow step, I see the following:
Job Counters
Launched reduce tasks=4
Launched map tasks=39
Does the number of launched map tasks include failed tasks?
I am using NLineInputFormat class as input format to manage the number of map tasks.
However, I get slightly different numbers for exact same input occasionally, or depending on the number of instances (10, 15, and 20).
Can anyone tell me why I am seeing different number of tasks launched?
Hi all,
I cannot manage to get a working regular expression (for use in ASP.NEt Validataor) for the following criteria:
- I want all chars from A-Z a-z 0-9
- I don't want the Enter key
I have the expression: [\w\s,.-/]*[^\n]
but that don't works.
Please give-me a hint, Thanks.
I am currently developing a module for Apache 2/2.2 and need to perform some cleanup before the main Apache process terminates (not the child processes).
I have searched extensively without finding any guidelines on which hook to use. Can anyone help point me in the right direction?
I'm looking for a Python IDE that can help me easily locate and manage and use the libraries on my system (Ubuntu). Specifically Twisted.
Code completion is important including the symbols I import.
(I've so far had a look at PyDev as well as OpenKomodo, but while both offer code completion for default Python concepts, I wasn't able to get either to import Twisted into my project and was thus getting reference errors.)
Usual disclaimer: I don't like EMACS or vi, please, nothing regarding those.
i am using eclipse with android plugin and sdk, but i can not create a virtual device due to there is no target, and when I execute this:
$ ./android list targets
Available Android targets:
what should i do?
and..............
when i try to install the available packages in eclipse avd manage it comes to:
Downloading SDK Platform Android 2.0 API5, revision1
SSL peer shutdown incorrectly....
Hi,
I want to integrate the dhtmlxScheduler calender with the codeigniter framework. but i am not sure how to connect with the model instead of the db directly and also, how to manage the interaction between the controller, the model and interface
thanks,
I"m looking for a term here.
in messaging systems you send a request, and it processes and sends a response.
if that same request is sent it should return the same response, (but not necessarily process the details)
This would be like submitting financial details twice.
If I have a process that receives signals from other processes, is there a way for me to somehow tell which process (if any) sent a signal?
strace lets me trace which signals a process has received, but doesn't allow me to trace who issued them.
For business software we usually document the business flow and functional and non functional specs as SRS, Use cases or user stories. One of the critical requirements is UI design which may get prototyped.
How do people in the real world document and manage requirements for embedded software for automobile systems ? How are they different from the business applications in terms of requirements management ?
Thanks,
Chak.
Is there a way to PHP make asynchronous http calls? I don't care about the response, I just want to do something like file_get_contents(), but not wait on the request to finish before executing the rest of my code. This would be super useful for setting off "events" of a sort in my application, or triggering long processes.
Any ideas?
I need to write a script that will recreate my opt folder if it gets deleted when I remove a package from it. Here's a link to my previous post: dpkg remove to stop processes
Now, the issue I'm running into could be better described here: http://lists.debian.org/debian-devel/2006/03/msg00242.html
I was thinking of just adding a postrem script which checks if an opt directory exists, and if not, creates one. My experience with shell scripts is pretty limited though..
Hi! I was trying to split an arithmetic expression (eg "1+2+10+15") on the plus signs. However, I didn't manage to write the appropriate regular expression. I thought this would work:
expression.split("\\+");
but it doesn't. Do you know the correct solution?
How can I send trace messages to the console (like print) when I'm running my Django app under manage.py runserver, but have those messages sent to a log file when I'm running the app under Apache?
I reviewed Django logging and although I was impressed with its flexibility and configurability for advanced uses, I'm still stumped with how to handle my simple use-case.
My apologies for not being able to find the answer elsewhere-- this is a newbie question I know.
I am processing large amounts of data in iterations, each and iteration processes around 10-50 000 records. Because of such large number of records, I am inserting them into a global temporary table first, and then process it. Usually, each iteration takes 5-10 seconds.
Would it be wise to truncate the global temporary table after each iteration so that each iteration can start off with an empty table? There are around 5000 iterations.
I can't figure out how to properly show the printer preference dialog of a given printer so that the user can change the printer settings.
Most of the examples that I can find online manage to show the dialog but any changes the user might make are lost which makes it useless.
Example:
http://www.codeproject.com/KB/system/PrinterPropertiesWindow.aspx
(I tried to change the code as suggested by BartJoy but that didn't fix it)
Does anyone know how to do this properly?
INFORMIX-SE 7.2:
I would like to dedicate a hard disk, exclusively for my dbname.dbs directory which holds all the .dat and .idx files, and create a ramdisk for my /tmp temporary files in order to improve performance. I would also like to strip down the OS from any unecessary files and processes to minimize overhead for my dedicated application. Is this a good idea and are there any roadmaps for accomplishing this?
I am trying to make 3 rows of 4 buttons each that will take up the entire width of the screen. I have tried Linear Layout but have trouble adding a second row and from what I have read nesting Linear Layouts is bad practice. I tried to use relative layout several times but I cannot manage to get the buttons to fill the width of the screen because it ignores layout_weight, I then tried nesting linear layout in relative layout but layout_weight is still ignored.
What is the best way to accomplish this?
<% foreach (var i in (IEnumerable)ViewData["Group"])
{ %
" / <%= i.vcr_GroupName %
<% foreach (var ik in (IEnumerable)ViewData["Feature"])
{ %
" / <%= ik.vcr_FeaturesName %
<% } %
<% } %
I have created this now the thing is that when I click on any parent with parentid=0 .all its child should automatically be clicked with parentid 0 but not viceversa.How would I do it in jquery? (Like i CLICK ON SOME FEATURE Manage User its child Add user ,edit and delete user should be clicked automatically ) but if i click on add user nothing should happened
I am aware of this question, but it is a bit old now, and some of the answers seem outdated.
Question: please write one answer per GUI you have used, including pros and cons (for example, as far as I can tell, with git gui, you can't manage the stash).
I would like to use Python's tempfile module to create a temporary file that I will use for communication between processes (use of pipes is awkward).
The documentation I've linked to above shows two functions that almost do what I want:
tempfile.NamedTemporaryFile # For creating named tempfiles
tempfile.SpooledTemporaryFile # For creating tempfiles in memory
but actually I want a tempfile that is both named AND in memory. Any ideas?
I have an ActiveRecord::Base class which needs to have a field that is automatically generated when a new instance is made. How should I go about doing this? By defining an initialize function?
class Thing < ActiveRecord::Base
# 'special' (integer) needs to be set to lowest unused number (above 0)
# considering that random rows will be removed via other processes
end
This is as far as I've got! Any ideas?
The site I work with on a day-to-day basis has its share of shortcomings and we often make design decisions to "get us by right now" with the intention of fixing those up later.
I've found that making the time to actually go back and fix them, let alone remembering what the full list of to-do items is can be challenging at best.
Can you recommend any tools, resources or tricks that help you effectively manage your technical debt?
Hi,
I wanna create a Mashup. In this on the user will have a Text Filed that he/she can write the web link. After that the mashup will send the link to tagthe.net and list the results. How can I manage the codes.
Source of API: http://www.tagthe.net/fordevelopers
Thanks