how do i add default magento contact form to a static block?
{{block type="core/template" name="contactForm" template="contacts/form.phtml"}}
doesn't seem to work.
thanks
I have a consumer thread taking elements from a LinkedBlockingQueue, and I make it sleep manually when it's empty. I use peek() to see if the queue empty because I have to do stuff because sending the thread to sleep, and I do that with queue.wait().
So, when I'm in another thread and add()an element to the queue, does that automatically notify the thread that was wait()ing on the queue?
I am working on photo sharing web site and i want to add functionality which can create my application's whole gallery in to the face book gallaries . Is ther any code whch can be added to do such things .
Please help me out . IF find any link, kindly share in the answer , i hope i am clear anough ?
I'm trying to write a Cocoa app that makes it easier for Android developers on Macs to create Android apps.
When a user presses a button on the app, I want it to add a certain directory to the environmental $PATH variable on the Mac.
Is there another way to do this via Cocoa instead of opening up the .bash_profile file and adding the path manually?
Thanks for any help in advance.
Hi All,
How do I conditionally add the style 'color:red' to the .CurrentDifference if the value happens to be a negative value?
Thanks,
rod.
<div class="sRow">
<div class="sLabel p40">
Difference:
</div>
<%= (!String.IsNullOrEmpty(Model.Amount)?Model.Amount.CurrentDifference.ToString("c"):string.Empty) %>
</div>
Hi, i have a query that returns something like this.
ID | Company| Total_Money | no_items | count_Total_Money_For_Company
-----------------------------------------------------------
1 | A | 1000 | 1 | 2001
2 | A | 1001 | 0 | 2001
3 | B | 1001 | 1 | 5010
4 | B | 1002 | 1 | 5010
5 | B | 1003 | 1 | 5010
6 | B | 1004 | 1 | 5010
7 | B | 1000 | 1 | 5010
How can i add that column with the count for that company?
I have a weird requirement. Is there a way to allow someone the ability to create folders, edit files, add files on a server without using a FTP client. This would ideally be browser based and under one admin sesssion.
After creating a new list in SharePoint, I can add other types of fields, but not lookup fields or person or group fields.
When creating a new column... as soon as I change the column type radio to one of these two types of fields, I get a 403 forbidden error.
Any ideas why that might be happening? Is it a setting in Central Administration or something?
I have a decorated function (simplified version):
class Memoize:
def __init__(self, function):
self.function = function
self.memoized = {}
def __call__(self, *args, **kwds):
hash = args
try:
return self.memoized[hash]
except KeyError:
self.memoized[hash] = self.function(*args)
return self.memoized[hash]
@Memoize
def _DrawPlot(self, options):
do something...
now I want to add this method to a pre-esisting class.
ROOT.TChain.DrawPlot = _DrawPlot
when I call this method:
chain = TChain()
chain.DrawPlot(opts)
I got:
self.memoized[hash] = self.function(*args)
TypeError: _DrawPlot() takes exactly 2 arguments (1 given)
why doesn't it propagate self?
I'm trying to figure out a way to add a binding extension to an endpoint via code, instead of through configuration files. Ideally I want it to simply be an attribute I place on the service method.
So far it seems like the only thing that isn't exposed publicly is the binding extensions.
I'm trying to figure out a way to add a binding extension to an endpoint via code, instead of through configuration files. Ideally I want it to simply be an attribute I place on the service method.
So far it seems like the only thing that isn't exposed publicly is the binding extensions.
I add to my project a PageFunction and I get a dozen of the following error and the project won't compile:
'ResourceDictionary' root element is a generic type and requires a x:Class
attribute to support the x:TypeArguments attribute specified on the root
element tag.
Basically I get an error for each DataTemplate I merge in the ResourceDictionary, has anyone encoutered this problem before?
Note: I use VB.NET 3.5 on VS 2010.
I followed the tutorial
http://www.neoos.ch/news/46-development/54-uikeyboardtypenumberpad-and-the-missing-return-key
to dismiss the number pad,
this tutorial add the button as sub view to the number pad,
my problem is, in the same view i am using the text field to enter text also,so, how to differentiate the number field, and text field. so that i can hide the button view accordingly.
thanks in advance.
i need following algorithm
let say we have 5 //101 and 7 //111 numbers are arbitrary i need to add these numbers using the recursive method and at the same time using bitwise methods
such that result should be
101
+
111
110 0
or 12 can anybody help me?
Hi team,
I am going to develop outlook add in as my final year project. for that as a initial stage i need to develop a button in Outlook page after clicking that button system gets user's particular E-mail address (after clicking button the another window is open ans ask for mail address) and read unread E-mails from .pst file. pls help me to start my project by
- developing particular button on Outlook,
- then opening a particular window after clicking that button and
- reading unread e-mail messages from .pst file.
Thank you
I have a 24 hour time string (ie 16:30) and would like to add x time blocks of 30 mins. For example if x = 4, then 16:30 + 4(30) = 18:30. Is there any easy way to do this with out exploding the string and doing if statements for mins/hours.. etc? Also this is on a php page would it be easier to do this in php then echo it to the javascript?
Thanks for the help!
I am working in a CMS where we use tokens ( which is turned into a user control. Is there a way to add the user control into an attribute value for our template style?
example :
<div class="<$tokenName/$>" /
this currently outputs an encoded user control, which is then not parsed by IIS.
I'm in a situation where I want to add the equivalent of the sql statement
SET QUERY_GOVERNOR_COST_LIMIT
to my query I created with linq to entities.
How would I go about that?
Is it possible to style the option elements of a select list/dropdown beyond background and font? I'm specifically looking to add some padding/margins so the list isn't as cramped.
i want to add a currently displayed string in a textview to the last position in a pre-defined but empty string array. and then i want a button to display the last string in that string array, and if that button is clicked again it will go to the previous string and works its way up the array.
I have a few directories and sub-directories containing files with no file extension. I want to add .jpg to all the files contained within these directories. I have seen bash scripts for changing the file extension but not for just adding one. It also needs to be recursive, can someone help please?
In Oracle, you can write:
update t
set xml = updateXML(xml, '/a/b/text()', 'gaga')
This works only if you already have some text in the <b> element. How to update the document and "add some text" in <b> if the document in the database looks like:
<a>
<b/>
</a>