On Linux, the readlink utility accepts an option -f that follows additional links. This doesn't seem to work on Mac and possibly BSD based systems. What would the equivalent be?
Here's some debug information:
$ which readlink; readlink -f
/usr/bin/readlink
readlink: illegal option -f
usage: readlink [-n] [file ...]
Hi all!
(Objective C)
Just using simple AudioServicesPlaySystemSoundID and its counterparts, but I can't find in the documentation if there is already a way to find the length of an audio file.
I know there is AudioServicesGetPropertyInfo, but that seems to return a byte-buffer - do audio files embed their length in themselves and I can just extract it with this?
Or is there perhaps a formula based on bit-rate * fileSize to convert to length-of-time?
mIL3S
www.milkdrinkingcow.com
My manager has asked me to assess what changes would be required to add multicast support to a socket-based TCP/IP networking program that is part of a trading system.
As far as I can tell, from the perspective of a Java program, it doesn't seem to matter too much whether the program is unicast or multicast.
Doesn't the Java networking API make all of this transparent? By this I mean, wouldn't the change be a simple one of simply adding additional destinations for the outgoing connections?
This website is based on wordpress, I wonder which plugin/theme are they using to customize wordpress into a gallery/download site.
Many thanks for your help!
Based the article (http://blogs.msdn.com/brada/archive/2009/03/17/mix09-building-amazing-business-applications-with-silverlight-3.aspx) I've tried to start-up the RIA services.
At the moment there are 2 blockers:
1. On the client side I don't have "
Could anybody help to resolve problems?
Thank you.
P.S. I have VS2008, SP1, Silverlight, RIA Services installed.
Hi!
I am currently working with a codeigniter PHP based application and have come to the point where it's about to go off with multiple languages.
Is codeigniters own language class the most effective way to handle languages?
Is there any specific language-tools/libraries that are commonly used in PHP apps?
Thanks!
I'm working on a web app where users can upload images which are associated with their account. I'm trying to figure out the best way to store these images in the filesystem taking into account organization and security. I'm using a JavaScript-based file uploader which has to save the images within the web root, but I'm wondering if it would be better to move the images above the web root for better security? Any thoughts on the matter would be appreciated.
I am in the process of creating a knowledgebase website for my office and I find bootstrap pretty awesome. Now, people at work, which may not be HTML savvy, will be creating new articles and then posting them to this knowledge base.
Is there something you can recommend that would allow such type of user to create a document on somthing similar to Microsoft Word but web based and then publish?
Or do I have to write it from scratch?
Thanks for any help.
I have an external javascript file that relies on the presence of another file.
How can I, using JavaScript (or jQuery) automatically include this file if it is not already included (I can test based on the presence of a known function in this external file)
THanks
hi,
i have an string like this
string strdate =@"5/2/2006";
which is in a form of month/day/year
i need to display it in a form of like this 02-05-2006
how do i format the data like this
if the value is like this 12/28/2005
it should be displayed like this 28-12-2010
i know we should be splitting the data based on that we should do it.
i am not getting the syntax how to do it .
any help would be great
Hi!
I am currently working with a codeigniter PHP based application and have come to the point where it's about to go off with multiple languages.
Is codeigniters own language class the most effective way to handle languages?
Is there any specific language-tools/libraries that are commonly used in PHP apps?
Thanks!
I am wanting to redirect a page on click, and then load specified content into on of those pages div.
How do I go about doing this?
For example:
<div id="redirect">Click here to go to new page</div>
When the new page loads, there will be a div with id = content that needs to have content automatically loaded based on data sent from the redirect id on the previous page.
I never use unitests in my apps . I know that exists many technologies for testing .NET based application. (For example NUnit). Which of this tools more comfortable and more understandable to use. Please can you show the good articles where can I find information about unitests and understand key situation where I must use them?
When using repository based persistence in a .net application, which collection type should normally be used?
IList, IEnumerable?
For example, the FindAll() method.
A friend is wanting me to help her convert her flash based website to html. She has an embedded textbox with a scrollbar that is using a flower instead of a normal scrollbar.
Avoiding the obvious question of why a user would want a non-standard element to do this task, is it possible to do this without flash?
Will dynamic binding happen with the object on stack?
For example
f() is a virtual function in both Base and Derived
int main(){
Derived d1;
Based *b= new Derived();
d1.f();
b->f();
}
Hello guys, anyone know how to get the age based on a date(birthdate)
im thinking of something like this
string age = DateTime.Now.GetAccurateAge();
and the output will be some thing like 20Years 5Months 20Days
How do I do something like the following
SELECT ADDDATE(t_invoice.last_bill_date, INTERVAL t_invoice.interval t_invoice.interval_unit)
FROM t_invoice
...where the column t_invoice.last_bill_date is a date, t_invoice.interval is an integer and t_invoice.interval_unit is a string.
Basically, I want to determine a person's next bill date based on his desired billing frequency. Is there a better way to achieve this?
Hi All
I was wondering if there's a way to detect the response codes on a website using C#? Since C# .NET has HTTP-based methods, I'm assuming that it can be done?
Thank you
In JavaScript I'd like to take an object and pass a parameter to it and based on the parameter hve a method that will pass settings to the parameter:
functionName( parameter , settings );
Or
functionName( parameter ).methodName( settings );
What i want to do is set the background of a row based on some criteria, but the datagrid will be fairly large so i don't want to have to loop over all the rows again. The rows get created me doing something like "myDataGridView.DataSource = MyDataSource, so the only way i can think to edit rows is by using an event.
there is a row*s* added event, but that gives me a list of rows that i'd have to iterate over.
Thanks in advance for any help.
Hi, I'm wondering how I can sort mysql data based on the number of entries.
I'm doing this so I can have a page of the top purchases, so it would have to retrieve all the product_id's from a table, and then sort them by the most times one shows up, limiting it to 10 or something.
Thanks!
I have a bunch of input text boxes that have the attribute ORIGINAL set to their initial value, so that when the user changes the textbox value, jQuery can highlight items that have changed (by comparing the text box's current value to the ORIGINAL attribute's value)
What Im trying to do now is provide the user with a button that they can click to revert all text boxes back to their original values based on the value of the ORIGINAL attribute of each text box.
Example
$('input[type=text]').val($(this).attr('original'));
The above doesnt work and I dont understand why.