Hi,
Has someone been able to make
http://www.surina.net/soundtouch/
work for iPhone?
Simple Xcode Demo would be helpful.
I'd just like to play a soundeffect with some pitch manipulation.
thx
chris
As already discussed in Rtti data manipulation and consistency in Delphi 2010 a consistency between the original data and rtti values can be reached by accessing members by using a pair of TRttiField and an instance pointer. This would be very easy in case of a simple class with only basic member types (like e.g. integers or strings).
But what if we have structured field types?
Here is an example:
TIntArray = array [0..1] of Integer;
TPointArray = array [0..1] of Point;
TExampleClass = class
private
FPoint : TPoint;
FAnotherClass : TAnotherClass;
FIntArray : TIntArray;
FPointArray : TPointArray;
public
property Point : TPoint read FPoint write FPoint;
//.... and so on
end;
For an easy access of Members I want to buil a tree of member-nodes, which provides an interface for getting and setting values, getting attributes, serializing/deserializing values and so on.
TMemberNode = class
private
FMember : TRttiMember;
FParent : TMemberNode;
FInstance : Pointer;
public
property Value : TValue read GetValue write SetValue; //uses FInstance
end;
So the most important thing is getting/setting the values, which is done - as stated before - by using the GetValue and SetValue functions of TRttiField.
So what is the Instance for FPoint members? Let's say Parent is the Node for TExample class, where the instance is known and the member is a field, then Instance would be:
FInstance := Pointer (Integer (Parent.Instance) + TRttiField (FMember).Offset);
But what if I want to know the Instance for a record property? There is no offset in this case. So is there a better solution to get a pointer to the data?
For the FAnotherClass member, the Instance would be:
FInstance := Parent.Value.AsObject;
So far the solution works, and data manipulation can be done by using rtti or the original types, without losing information.
But things get harder, when working with arrays. Especially the second array of Points. How can I get the instance for the members of points in this case?
I'd like to use iTextSharp for PDF manipulation. I need it to run under medium trust (webserver) and to be free of charge (sice this is a very small project), therefore there is not much competition.
Unfortunately, since I need it for a commercial project, I cannot the AGPL introduced with version 5.0.
Do you know if I may use the 4.x versions using the LGPL? Or is their license automatically updated to the APGL?
Hi all,
I'm doing some endian-sensitive file manipulation on iPhone. Are there standard macros or #defines in that environment that indicate native endianness and offer swapping if necessary? I know I can check in advance and just do the right thing for this particular architecture, but wondering if there are cleaner ways of doing the right thing. (The file format is little endian; if it were big-endian, I'd probably just use the htons/htonl family.)
Thanks.
I'm trying to put together a list of JavaScript UI widget frameworks for consideration in a project. Ideally it would be a library that has a range of ready made ui widgets, no dependencies on dom/js extention/manipulation frameworks like JQuery or Prototype, minimal additional cruft, such as Ajax API's and DOM selectors etc.
Here's what I have so far:
qooxdoo,
ScriptClient
ExtJs
Could anyone suggest any other that are worth a look?
Please do not suggest, JQuery, Prototype, Mootools, Dojo etc, their primary focus is not to provide ui widgets.
How do you compile a resource into the binary in XCode? That way is doesn't show up inside the application bundle as a file and it's not subject to manipulation by a user (whether good-intentioned or bad).
Is this even possible?
I'm particularly interested about this in terms of iPhone apps.
Any help is appreciated!
I am trying to do something very simple in powershell
Reading the contents of a file
Manipulation some string
Saving the modified test back to the file
function Replace {
$file = Get-Content C:\Path\File.cs
$file | foreach {$_ -replace "document.getElementById", "$"} |out-file -filepath C:\Path\File.cs
}
I have tried Set-Content as well.
I always get unautorized exception. I can see the $file has the file content, error is coming while writing the file.
Any help is appreciated.
Ben
I am writing a small windows script in javascript/jscript for finding a match for a regexp with a string that i got by manipulating a file.
The file path can be provided relative or absolute. How to find whether a given path is absolute/relative and convert it to absolute for file manipulation?
I would like to do some stuff in Java that would be clearer if written using concurrent routines, but for which full-on threads are serious overkill. The answer, of course, is the use of coroutines, but there doesn't appear to be any coroutine support in the standard Java libraries and a quick Google on it brings up tantalising hints here or there, but nothing substantial.
Here's what I've found so far:
JSIM has a coroutine class, but it looks pretty heavyweight and conflates, seemingly, with
threads at points. The point of this is to reduce the complexity of full-on threading, not to add to
it. Further I'm not sure that the class can be extracted from the library and used independently.
Xalan has a coroutine set class that does coroutine-like stuff, but again it's dubious if this
can be meaningfully extracted from the overall library. It also looks like it's implemented as a
tightly-controlled form of thread pool, not as actual coroutines.
There's a Google Code project which looks like what I'm after, but if anything it looks more
heavyweight than using threads would be. I'm basically nervous of something that requires software to
dynamically change the JVM bytecode at runtime to do its work. This looks like overkill and like
something that will cause more problems than coroutines would solve. Further it looks like it doesn't
implement the whole coroutine concept. By my glance-over it gives a yield feature that just returns
to the invoker. Proper coroutines allow yields to transfer control to any known coroutine directly.
Basically this library, heavyweight and scary as it is, only gives you support for iterators, not
fully-general coroutines.
The promisingly-named Coroutine for Java fails because it's a platform-specific (obviously using
JNI) solution.
And that's about all I've found.
I know about the native JVM support for coroutines in the Da Vinci Machine and I also know about the JNI continuations trick for doing this. These are not really good solutions for me, however, as I would not necessarily have control over which VM or platform my code would run on. (Indeed any bytecode manipulation system would suffer similar problems -- it would be best were this pure Java if possible. Runtime bytecode manipulation would restrict me from using this on Android, for example.)
So does anybody have any pointers? Is this even possible? If not, will it be possible in Java 7?
Edited to add:
Just to ensure that confusion is contained, this is a related question to my other one, but not the same. This one is looking for an existing implementation in a bid to avoid reinventing the wheel unnecessarily. The other one is a question relating to how one would go about implementing coroutines in Java should this question prove unanswerable. The intent is to keep different questions on different threads.
I have an simple array
array = ["apple", "orange", "lemon"]
array2 = [["apple", "good taste", "red"], ["orange", "bad taste", "orange"], ["lemon" , "no taste", "yellow"]]
how can i convert in to this hash whenever element in array match the first element of each element in array2?
hash = {"apple" => ["apple" ,"good taste", "red"],
"orange" => ["orange", "bad taste", "orange"],
"lemon" => ["lemon" , "no taste", "yellow"] }
I am quite new to ruby, and spend a lot to do this manipulation, but no luck, any help ?
I am new to time manipulation or time arithmetic operations
and am currently developing a navigation system with Web server based information and currently I have this Database that contains a table peek hours whose columns are id, start_time, end_time , edge_id, day_of_the_week, edge_weight
------------------------------------------------------------------------
| Peek Hours |
------------------------------------------------------------------------
| | | | | | |
| id | start_time | end_time | edge_id | day_of_the_week | edge_weight |
| | | | | | |
------------------------------------------------------------------------
I am using PHP as a webservice and so based on the current time i want to get all the records that would fit this equation
start_time< current_time < end_time
Hello,
Q1 - As far as I know, Visual Studio doesn’t use aspnet_compiler.exe when compiling web application projects. And since Web Deployment Projects (WDP) tool is only used for manipulation the output created by aspnet_compiler.exe, I don’t understand how VS 2008 also has an option for using WDP with web application projects?!
Q2 - What is a stock project?
thanx
EDIT:
So I was right about the fact that Visual Studio doesn’t use aspnet_compiler.exe when compiling web application projects?
much appreciated
I'm new to Python 3 and so far it seems like a decent language. I really like the string manipulation methods you can use and they are pretty radical. :)
I'm stuck however in thinking of a project to do with Python. Is there a site similar to Coding4Fun but for Python?
Community Wiki because I think this question is really interesting. :D
Is there any way to know if an object is a const object or regular object, for instance consider the following class
class String
{
String(const char* str);
};
if user create a const object from String then there is no reason to copy the passed native string and that because he will not make any manipulation on it, the only thing he will do is get string size, string search and other functions that will not change the string.
I would like to do some stuff in Java that would be clearer if written using concurrent routines, but for which full-on threads are serious overkill. The answer, of course, is the use of coroutines, but there doesn't appear to be any coroutine support in the standard Java libraries and a quick Google on it brings up tantalising hints here or there, but nothing substantial.
Here's what I've found so far:
JSIM has a coroutine class, but it looks pretty heavyweight and conflates, seemingly, with
threads at points. The point of this is to reduce the complexity of full-on threading, not to add to
it. Further I'm not sure that the class can be extracted from the library and used independently.
Xalan has a coroutine set class that does coroutine-like stuff, but again it's dubious if this
can be meaningfully extracted from the overall library. It also looks like it's implemented as a
tightly-controlled form of thread pool, not as actual coroutines.
There's a Google Code project which looks like what I'm after, but if anything it looks more
heavyweight than using threads would be. I'm basically nervous of something that requires software to
dynamically change the JVM bytecode at runtime to do its work. This looks like overkill and like
something that will cause more problems than coroutines would solve. Further it looks like it doesn't
implement the whole coroutine concept. By my glance-over it gives a yield feature that just returns
to the invoker. Proper coroutines allow yields to transfer control to any known coroutine directly.
Basically this library, heavyweight and scary as it is, only gives you support for iterators, not
fully-general coroutines.
The promisingly-named Coroutine for Java fails because it's a platform-specific (obviously using
JNI) solution.
And that's about all I've found.
I know about the native JVM support for coroutines in the Da Vinci Machine and I also know about the JNI continuations trick for doing this. These are not really good solutions for me, however, as I would not necessarily have control over which VM or platform my code would run on. (Indeed any bytecode manipulation system would suffer similar problems -- it would be best were this pure Java if possible. Runtime bytecode manipulation would restrict me from using this on Android, for example.)
So does anybody have any pointers? Is this even possible? If not, will it be possible in Java 7?
I am trying to send a table in html code to a jsp
using
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>").....
then using response.sendRedirect(jsp name) to send the table to the jsp;
But this is never worked with me and I have a doubt that the printwriter has a specific manipulation with servlet jsp communication.
Any suggestion for a good unicode string library for Delphi 2010? Such thing as class that would contain a collection of independent functions, basically an encapsulation of functions that manipulate strings (ex: Trimlike, Character removal, Positional, Sub-string, Compare, Informational, Case, Replacement, Manipulation functions etc. ).
Thanks
How do you compile a resource into the binary in XCode? That way is doesn't show up inside the application bundle as a file and it's not subject to manipulation by a user (whether good-intentioned or bad).
Is this even possible?
I'm particularly interested about this in terms of iPhone apps.
Any help is appreciated!
Hi,
i am trying to find how can i "detect" width JavaScript if i am ih http or https environment
I am calling ajax request so if i am in https and call http ajax i get 302 Moved Temporarily
I was thinking of get the current window.location.href and do a strinh manipulation
Any suggestion is welcome.
I know that I can use DOMDocument and DOMXPath to manipulate XML files. But, I really love JQuery, and it would be great if there was something more like JQuery in the PHP world that I could use for sever side DOM manipulation.
NOTE: I'm only interested here in how
JQuery Selects and Manipulates the DOM, not all
the other parts of JQuerry (I guess
you can say just the Pop and the Sizzle
parts).
Hello,
I'm about to develop some commercial software that will run on OSX and Linux. The program will be doing some heavy string manipulation, base64 encoding, zlib compression and may require http libraries in the future.
Does anyone have a suggestion?
Many thanks in advance,
Toby.
There is a simple way with php, a simple script or URL manipulation to build a URL for the gravatar image corresponding to an email?
Ex. http://gravatar.com/avatars/[email protected] and this return a jpeg or png image.
If there is no simple way like the example, what is the easiest way you know to resolve a url of the gravatar corresponding to an email?. Thanks
I want to convert a C# style generic type string, like
System.Dictionary<System.String, System.String>
to it's CLR equivalent:
System.Dictionary`1[System.String, System.String]
and back. Is there an easy way to do this, or do I have to resort to string manipulation?
I'm looking for in-depth reference books / guides in PHP, MySQL, and Unix. I'm aware there other other questions pertaining to good books for short references of function names, or detailed beginner guides to these systems. I'm looking for something different. I want a book that I can either use as a quick but in-depth (decent write up, not a pocket reference guide) reference to common functions (JOINS, string manipulation, Regular Expressions, etc) while also providing a detailed inner workings explanation on the system itself.
Hi,
First of all, I am aware my issue is against the philosophy of Android, but I have no choice, this application will run on a embedded car gps and I need to bring an activity to prevent from car accident, for example, when it's happen around the user. I have to put other activity on the back and bring my alert pop up without user manipulation like notification on the front.
Is there a way to bring manually an activity to the front, by resuming it like when you click on the android task switcher?