Sometimes an issue can't be resolved until someone else does something, or until some event occurs. Is there an add-on for trac that adds a field for these situations?
I have a model called "Activity" in my django app. in the admin interface, it appears on the screen as "Activitys". how can I override the label on the admin page to make it "Activities" instead?
I see in the archives how to do this for a field, but not for a model itself. thanks!
I have a table with entries which has a DATE field. Each entry has a distinct date.
I'd like to select all the entries from the last month. How?
I tried SELECT * FROM registries WHERE reg_date = DATE_FORMAT(MAX(reg_date), "%m") without success
thx
I'm looking to make a Contact/Query form, wherein the end user can send an email to the webmaster. The form has a 'textarea' field, which captures long strings from the user, if I use AJAX to submit the form using GET method, my params tend to break if their is a special character, specifically '&' in the textarea's string..
I'm stuck please help!
Using the autocomplete field for a cck nodereference always displays the node id as a cryptic bracketed extension:
Page Title [nid:23]
I understand that this ensures that selections are unique in case nodes have the same title, but obviously this is a nasty thing to expose to the user.
Has anyone had any success in removing these brackets, or adding a different unique identifier?
I keep getting StackOverFlowException whenever I instantiate an instance of A class. I know it has got something to do with the fact that A.b field is of type derived from class A. But why would that cause an exception?
static void Main(string[] args)
{
A a = new A(); // exception
}
class A
{
private B b = new B();
}
class B:A {}
thank you
I will admit that I am new to the tech/dev field. It seems to become a trend that every time I have to work with pdfs a part of me dies.
Why is this format as ubiquitous as it seems to be?
Is it just non-tech people that prefer pdfs?
Hi,
I have a textbox in a gridview and a table "purchaseoreders". Now when the itemcode(field of the table) is given in the textbox, the others details have to bind.
Ideas..??
Please help.
Thank You
Pravi.
I want to let a user pass a custom text field, App.CustomTextField, in a Ember component using block form. However, that App.CustomTextField needs access to the component to manipulate its properties. How can I pass the component to the textfield using block form? I would like to pass the component as a property to App.CustomTextField, but how do I access the component's scope?
{{#blog-post}}
{{view App.CustomTextField component=?}}
{{/blog-post}}
Okay so I've been typing some HTML code for a technology class that I need to satisfy for my Education major. This is what i have for my background:
body {
background-image:url('islandbeach.jpg');
background-repeat:repeat;
background-position:center;
background-attachment:fixed;
background-size:cover;
}
Now, I want to make my background transparent or faded so I can see the text and the other image that I have. The background is too colorful to be able to see the words without having to squint. Are there any HTML codes that can do this for me? I am not a pro at this stuff, I've just been following everything my professor has told me to do so please explain stuff in baby steps if you do have an answer. Thank you so so much!
I'm storing a string in a CCK field.
The problem is getting it back out. I have a node-node_type.tpl.php and ask it
$node->content['field_custom_map_data']['#value']
That returns html, three nested div's and uses HTML entities, I want the pure text, as entered.
What is the Drupal 5 way to fix this?
My Windows application GUI is accepting some required application configuration fields from the user. I need to store them of course, but I wanna hide these fields from the user.
I cannot use database to store these configs.
I want to avoid using app.config either. (No app.config encryption)
Any suggestions, Where and in which format i should store fields. (Field example is: Accepting database User credentials, Task Schedule info etc.)
I'm trying to create a query and need to join against something that I can define values in without creating a table.
I'll attempt to describe what I'm trying to do:
table1 is joined on field a with table2 (titles for FK in table 1)
- Table1 has values outside of what exists in table2
- I want to add an additional 'table' to be unioned with table2 and then joined with table 1
Thanks
I have a .swf which loads an external .swf:
this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
var my_listener:Object = new Object();
my_listener.onLoadComplete = function(target_mc:MovieClip) {
target_mc._x = 50;
target_mc._y = 50;
addChild(my_loader);
var blocker = my_loader.content.test
blocker._visible = false;
}
my_listener.onLoadProgress = function(target_mc:MovieClip) {
trace(target_mc.getBytesLoaded() + " out of " + target_mc.getBytesTotal());
}
var my_loader:MovieClipLoader = new MovieClipLoader();
my_loader.addListener(my_listener);
my_loader.loadClip("child_as2.swf", container_mc);
I want to acces the external swf and make the movieclip with instance name test visible = false; but it won't work.
I have tried a lot of codes and right now it throws me this error:
Scene=Escena 1, layer=Capa 1, frame=1, Line 9 There is no property with the name 'content'.
Any idea?
If you have a better code i will thank you so much.
i would like to force the textbox to immediately change the text to UCASE as soon as the user moves away from the field. is this possible?
the important thing is that this text will be used in a SQL query to update a table.
recently, while reading former's code in my current project, I encounter the problems below:
while implementing the Queue, my former wrote codes like this:
while(uq->pHead)
{
char *tmp = uq->pHead;
uq->pHead = *(char **)tmp;
//...
}
the uq-pHead has definition like:
typedef struct {
char* pHead;
//...
} Queue;
Well, I'm quite confused about the usage that "uq->pHead = *(char**)tmp" , could anyone explain it to me in detail?
if we assume that *(uq-pHead) = 32(i.e. ' ') , *(char**)tmp would translate this into pointer-form, but...how could it make sense?
Thanks a lot.
Possible Duplicate:
Best Java obfuscator ?
Well, I'm planning on releasing a Jar into the world but would prefer if the code was not readably available to anyone with a Java Decompiler as I want to control access to the program with usernames / auth codes etc.
After some Googling I haven't found any software to do this for me, so I was wondering what steps to take from here; if anyone can point me at any software or information on methodologies of obfuscation I would be grateful.
Cheers again Stack Overflow.
I have to create a library with links to existing files. The files is on the FileChange server. I don't know how to create a custom content type, without the file field. Is it possible at all?
P.S. Sorry for my poor English
I'm using the smartif tag from this snippet (I'm holding on with regards to upgrading to 1.2) in my template for a certain boolean field like so:
{% if payment.extends_membership == "True" %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% endif %}
But whatever the value of extends_membership I get only No as the output. What could be the problem?
Hello i need to implement in Html/javascript (or php is possible) a script who works like twitter, when the user writes text in a field a label change showing the caracters left.
Can you help me with a simple and easy script example?
Hello,
I have a field in my db called "user" which is unique.
I would like to remove the "unique" option so I can have couple of users with the same nickname.
Which sql statement should I execute to perform this action ?
Thanks
Everything is working good on local but when i try same codes in production, i get 500 (Internal Server Error) error.
entries.controller
def set_spam
@entry = Entry.find(params[:entry_id])
@entry.spam = params[:what] == "spam" ? true : false
@entry.save
respond_to do |format|
format.js
end
end
application.js
$(".entry-actions .spams img").click(function () {
$.post("/set-spam", { entry_id: $(this).attr("entry_id"), what: $(this).attr("class") } );
return false;
});
view
<div class="spams">
<img title="spam" class="spam" src="/images/pixel.gif" entry_id="<%= entry.id %>" />
</div>
route
post "/set-spam" => "entries#set_spam"
Say you have a user table and an order table which references user (user has_many orders) and contains an item count field.
How could you efficiently ask "how many uses ordered how many items?"
That is, to generate something along the lines of:
Number of users | sum of items
-------------------------------
5 users | 1 item
4 users | 5 items
1 user | 7 items
Thanks in advance.
(This question is specific to SQLite3, but it may be common to all SQL I don't know.)
This doesn't seem to work. Is it because the column names don't match? (If they match, it works.) If this is true, how can I select from a different field in the source table?
INSERT INTO [ImagePoint] (ImageID, PointID, X, Y)
SELECT Image2ID, PointID, X, Y
FROM Point