Hello,
is there a way of getting the position (CGPoint) of the cursor in an UITextView (preferable relative to its content). I don’t mean the location as an NSRange. I need something around:
- (CGPoint)cursorPosition;
Thanks, Raphael
I have simple python script, 'first.py':
#first.py
def firstFunctionEver() :
print "hello"
firstFunctionEver()
I want to call this script using : python first.py and have it call the firstFunctionEver(). But, the script is ugly -- what function can I put the call to firstFunctionEver() in and have it run when the script is loaded?
Hello when ever i try to to post information on facebook wall in android getting api is under construction but same api is working in iphone. i am using fbrocket..
Hello,
I am using Classic asp and SQL Server 2005.
This is code that works (Provided by another member of Stack Overflow):
sqlStr = "USE "&databaseNameRecordSet.Fields.Item("name")&";SELECT permission_name FROM fn_my_permissions(null, 'database')"
This code checks what permissions I have on a given database - the problem being - if I dont have permission it throws an error and doesn't continue to draw the rest of my page.
Anyone got any ideas on remedying this?
Many Thanks,
Joel
Hello all,
I have two elements on the same page that are using the same stylesheet: Jquery Tabs and Jquery Slider.
I cannot redefine classes of slider since change of css will affect both elements.
Tabs using these classes:
ui-tabs ui-widget ui-widget-content ui-corner-all
And these are used in Slider:
ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all
How can I modify slider css without modifying one for tabs?
Thanks
Hello,
I'm searching for a simple,free component for creating archives with the capability of adding files to an already existing archive.Compressions is not a matter as much as performance so even "store" will be useful.
Please help me find one.
Hello ,
I would like to query from SQL Server 2000 Database.I have got two tables. They are Purchase and PurchaseDetails. I would like to get product records with Last Purchase ID but I can't query with the following statements.So please help me.
SELECT TOP 100 PERCENT dbo.Purchase.PurchaseID AS LastOfPurchaseID, dbo.PurchaseDetails.ProductID,
MAX(dbo.Purchase.PurchaseDate) AS LastOfPurchaseDate
FROM dbo.Purchase INNER JOIN
dbo.PurchaseDetails ON dbo.Purchase.PurchaseID = dbo.PurchaseDetails.PurchaseID
GROUP BY dbo.PurchaseDetails.ProductID, dbo.Purchase.PurchaseDate,dbo.Purchase.PurchaseID
ORDER BY MAX(dbo.Purchase.PurchaseDate) DESC
Hello,
i want to bind two exe files into one exe file, and when executed it should only create 1 process.
For example you can try to bind windows calc.exe and notepad.exe to binded.exe and when executed it should just see binded.exe in process list and both calc.exe and notepad.exe should start.
Hi,
I am passing the email address as part of the url,
for ex. http://example.com/hello/[email protected]
but, when being passed to the application controller it is changed to " user%40hotmail.com ".
I can't seem to understand this special character escaping; confusion.
please help me explain the problem here, and also what can I do to fix it.
I am using python's "webapp" web application framework.
Hello all
I'm trying to add to my program that locates the person in GPS but sets a value to
the State that person is in so example: GPS Locates person from his/her iphone then returns the state they are in so say its California then the state variable gets set to California as a string would someone have an example any help is appreciated thanks!
Hello,
I'm the only one among my people who navigate in .NET water, the rest is in the Java world. So, I'd like to have some common points to talk with them. What are the equivalent concepts in Java for: (by concept, I mean the purpose of such technology)
Visual Studio
IIS
Linq
Development server that ships with VS (I don't know the name)
NHibernate, Subsonic, ...
ASP.NET WebForm (Is there any equivalent in Java with drag and drop)
ASP.NET MVC
etc.(Please, add some other concepts if they are important to know)
Thanks for helping
Hello all,
i'm trying to HyperLink images in richtextbox. all i want to know is how to get the index of the selected image or text to be able to insert the hidden text after the selected image as richtextbox.Insert() method requires the index to start inserting from.
thanks
Hello, I'm developing an AI sandbox and I would like to calculate what every living entity can see.
The rule is to simply hide what's behind the edges of the shapes from the point of view of the entity. The image clarifies everything:
I need it either as an input to the artificial intelligence either graphically, to show it for a specific entity while it moves..
Any cool ideas?
Hello
What are sources of latency in process of sending/receiving tcp/udp packets in linux 2.6 ?
I want to know a latency sources in "ping-pong" latency tests.
There are some rather good papers of ethernet latency, but they cover only latency sources in the wire and switch (and rather cursory, only for specific switch).
What steps of processing does follow a packet?
Papers with deep latency analysis of usual ping (icmp) will be useful too.
I rely on community :)
Hello,
I am new to regex and am trying to extract from a database a list of URLs that match xyz.asp? followed by any eight digit RequestID numbers. I can't figure out what is wrong with my expression: /abcd/..asp\?\w+=.?[0-9]*?
Example:
http://domain.com/abcd/xyz.asp?RequestID=20100401
Do I have it wrong with 1) not starting/ending with ^$ 2) escaping the dot 3) escaping the question mark 4) matching the equals sign 5) or something else?
Thank you
Hello,
When creating every instance of Window object I should bind close button of each window to closing this window. But how should I identify windows? Should I create unique id for each Window instance or maybe another way? What is the best way to create such identifiers, maybe some kind of singleton object with id parameter which should be incremented each time when window is created?
Thank you.
hello all
im making switch to the new Graph API , and i try to replace all the rest api with the new Graph api
reading the docs i saw i have some kind of real time function ( im not sure its related to getting the user
notifications ) that suppose to return me callback .
but im my case i like to invoke simple http command and get the user notification like ( like the old notification api's )
how can i do it now ?
Thanks
Hello,
I have installed repo and git on my PC. I am trying to get the latest Android source by using the following commands:
repo init -u git://android.git.kernel.org/platform/manifest.git
The command succeeds but I am not able to see .repo directory created.
repo sync
This command also succeeds and the program shows the details of objects being received. However I am not able to see anything downloaded to my PC.
Any help will be appreciated.
Hello,
I have a stored procedure in which i want to create a user defined function - Split (splits a string separated with delimiters and returns the strings in a table), make use of the function and finally drop the function.
My question is that whether i can create a user defined function inside a stored procedure and drop it finally?
Thank you.
Regards
NLV
Hello All,
I am facing ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken) error when I am using IE for form submit but it works fine wih FF and Chrome.
Please help me .
Thanks
MJ
Hello! I am working on a MUD client written in Clojure. Right now, I need two different threads. One which receives input from the user and sends it out to the MUD (via a simple Socket), and one that reads and displays output from the MUD, to the user.
Should I just use Java Threads, or is there some Clojure-specific feature I should be turning to?