Hi How can I define and use in my phtml file custom tag block like this:
for example this tag create the list of all entries and show the title of them?
I have: http://windows.github.com/
My current project has around 20k files, around 150MB (and not speaking about how slow it is and I cannot do a thing now) it doesn't even let me commit! I get this error: Commit failed: Failed to create a new commit.
That seems that nobody is having.
I've already deleted the folder and cloned again, no escape. What to do?
If I choose to open shell, all this * crashes!
Hi ,
There is a Messages.resx file under App_GlobalResources in my solution. Everytime i create a string and give a value to the string
internal static string Alert_EnterUserName {
get {
return ResourceManager.GetString("Alert_EnterUserName", resourceCulture);
}
}
is created automatically.
Can anybody guide me how to use this string in a function which is present in a seperate .js file?
Thanks in advance
I using php's str_replace function to replace some text. Example below.
str_replace("{x+{\$v}}", "{x-{\$v}}", $this->introtext);
str_replace('{x+{\$v}}', '{x-{\$v}}', $this->introtext);
In first case it replace text, but in second case it is not doing so. What is difference between two?
Hey
I have a data layer which is returning lists of classes containing data. I want to display this data in my form in WPF. The data is just properties on the class such as Class.ID, Class.Name, Class.Description (for the sake of example)
How can i create a custom control or template an existing control so that it can be given one of these classes and display its data in a data-bound fashion.
Thanks :)
This is probably a very common question, but I was unable to find an answer myself;
All my list elements call the function setQuery like this
onClick="admin_stats.setQuery(this);"
rather than [hardcode] add this to every list element, is there a way to simply have it run when a list element is clicked?
I'm not very familiar with jQuery Live or binding/unbinding, but I think they would play a role here?
Before I reinvent a rather square-looking wheel I thought I might ask =)
I want to create a near 100% load on a Linux machine. It's quad core system and I want all cores going full speed. Ideally, the CPU load would last a designated amount of time and then stop. I'm hoping there's some trick in bash. I'm thinking some sort of infinite loop.
Hi All, I'm running into a similar problem as this:
link text
I've done the fix as in the answer but now I end up with an error a couple lines later:
$$([overlay = (new Element("div", {id: "mbOverlay"})).addEvent("click", close), center = new Element("div", {id: "mbCenter"})]).setStyle is not a function [Break on this error] ]).setStyle("display", "none")
It's on this page:
link text
When you click on 'showreel' it should pop up into the media box, but instead it just goes to a new page.
Any help would be much appreciated. Thanks!
Hi,
I am not getting "user type" for below function: (using Domino.dll in C#)
_NotesRegister.RegisterNewUser(pLastn,pIdfile,pServer,pFirstn,pMiddle,pCertpw,pLocation,pComment, pMaildbpath,pForward,pUserpw,pAltName,pAltLang,Usertype);
Regards,
Preeti
i want to create a messagebox which will be automatically close without users input. i tried reading couple of java tutorials. its a timer class. but i couldnt find the code examples.
can someone please help me to do it. a small code example would be great
Hello,
I think everyone has experience working with a code like the following:
void fun(Type1&);
void fun(Type2&);
vector<Type1> vec;
for_each(vec.begin(), vec.end(), fun);
Of course that won't compile, because it's not clear which function to be passed. And what's your commonly-used solution to the problem?
hi,
I need to call a function with some javascript everytime my View is updated (I enabled ajax option, there is not page refresh).
How can I make it ? I'm inspecting php code in Views to find it, but I cannot find it.
thanks
I somewhere heard that the .NET Framework was built around specific pattern, which they tried to uphold as much as possible.
var rsa = new RSACryptoServiceProvider(); // Create
rsa.ImportParameters(GetParameters()); // Set
byte[] encrypted = rsa.Encrypt(data, true); // Execute
// Destroyed by garbage-collector
Are there any variants of this? What are the general pros and cons?
i am developing a module in joomla . all things goes fine except
Fatal error: Call to a member function get()
getting this error when i m using $username = $parem-get('username')
but if i m using $username = 'foo'; all things goes fine
Thanks
That's pretty much it. I need to allocate memory and pass it to a function that takes a void *. I'd like to use a shared_ptr but I don't know how to do it.
I want to create 2 bits per pixel GIF files in VC environment from a TIFF file.
Is there any free library or maybe source that could help me?
Or how can I do it myself?
i have the following two class which convert object into xml string
should i do something like
class Person
{
public string GetXml()
{
//return a xml string
}
}
or it is better to create another class which accept the person as a parameter
and convert it into XML something like
class PersonSerializer
{
public string Serialize(Person person)
{
// return a xml string
}
}
Thanks
What's the simplest way to create and write to a file in Java?
I know this is a very basic question, but the web is full of different answers for different versions of Java and it would be nice to have an answer here on StackOverflow.
Lets say i wrote helper for TStringList
TslHelper = class helper for TStringList
function DoSth: boolean;
end;
Then ive included this helper (unit in which helper is defined) in unit i want to use it.
During debugging i hit Ctrl+F7 and i want to evaluate:
someStringList.DoSth
I cant get it to work. Is it possible?
Regards
import
com.google.appengine.api.labs.taskqueue.Queue;
import
com.google.appengine.api.labs.taskqueue.QueueFactory;
import static
com.google.appengine.api.labs.taskqueue.TaskOptions.Builder.*;
// ...
Queue queue = QueueFactory.getDefaultQueue();
queue.add(url("/worker").param("key",
key))
in the code example given on the google task queue documentation page i can't understand the url("/worker") function they are calling in the queues.add() invocation .
I have very large images (jpg) and i want to write a csharp program to loop through the files and reduce the size of each image by 75%.
I tried this:
Image thumbNail = image.GetThumbnailImage(800, 600, null, new IntPtr());
but the file size is still very large.
Is there anyway to create thumbnails and have the filesize be much smaller?
I have a page that has a tab set. Each of the tabs is loaded by the jQuery .load() function.
I want to display a loading animation that disappears when all of the ajax requests are finished. However, document.ready() has only provided me with limited success.
How can I ensure that all ajax requests are completed before executing the code to hide the loading animation?
Thanks!
How can I create a dynamic form using jquery. For example if I have to repeat a block of html like
<div><div>Name: <input type="text" id="name"></div><div>Address: <input type="text" id="address"></div></div> for 3 times and show them one by one and also how can I fetch the value of this dynamic form value.
I have a table created long ago in postgreSQL. Now i want to look at the sql statement used to create it but cannot figure it out.
Also when i do the \dS+ tablename it says table not found, but \dt+ tablename is working fine. The \dS+ lists all the table names owned by the root postgres user and doesn't show up tables that i created with my user account.
Any help is greatly appreciated.
Thanks