I have the unicode for that char, how do I display it?
0x023D2A
textField.text = ???;
i have have the name of the character.
can I reference it by name?
Hi
I am creating a stored procedure to which i want to pass as variable a comma delimited list of Ids
I want to use the Ids into a select statement
something like
Create Procedure up_TEST
@Ids VARCHAR(MAX)
AS
SELECT * FROM ATable a
WHERE a.Id IN(@Ids)
Obviously i get the error that @Ids is a varchar and not an INT but how can i convert the comma delimited list
I am using SQL Server 2008
Thanks
Which is the quickest way to view the value of a NSCFString variable in debugger window?
As for NSString, the string value is automatically displayed in the window or you move your mouse over it. But for a NSCFString, I tried same but cannot find the internal string.
Hello!
I want to make a loop on a variable that can be altered inside of the loop.
first_var.sort.each do |first_id, first_value|
second_var.sort.each do |second_id, second_value_value|
difference = first_value - second_value
if difference >= 0
second_var.delete(second_id)
else
second_var[second_id] += first_value
if second_var[second_id] == 0
second_var.delete(second_id)
end
first_var.delete(first_id)
end
end
end
How do I do this, because this doesn't work?
Our office is running two different versions of MS Office (2007 and 2010). Is there a way for me to integrate Outlook into a C# project and have it work for both versions of Outlook? I have added a reference to Microsoft Outlook 14.0 Object Library, but for users of Outlook 2007, do they require version 12.0 or will the newer version work?
In C, it is considered bad practice to call strlen like this:
for ( i = 0; strlen ( str ) != foo; i++ )
{
// stuff
}
The reason, of course, is that it is inefficient since it "counts" the characters in a string multiple times.
However, in Python, I see code like this quite often:
for i in range ( 0, len ( list ) ):
# stuff
Is this bad practice? Should I store the result of len() in a variable and use that?
I have an outer div that is 800px wide. I have an inner div that could be anywhere from 200 to 600px wide.
I know how to center the inner div within the outer one if I set the inner one to have a specific width, but how do I center it since its a variable width?
Is there a way to set the div to only be the width of the elements inside of it, rather than having it expand to fill its containing div?
Hello - I have an image that is currently stored in variable of type "File"..
File img = ...;
What is the easiest way to display this image onto the screen so I can verify it is working correct?
Thanks!
hi, i saw this post today: http://stackoverflow.com/questions/112796/how-to-view-contents-of-nsdictionary-variable-in-xcode-debugger. i need to see the contents of a dictonary but i only know the "key"...is there a way i can spit out the details like a print_r in php? po gives me the object, but i would like to go deeper
po 0x2027c0
NSCFDictionary
I just came back to C++ Builder after 5 or more years away. I seem to remember a nice tool where I could drag its pointer over the GUI of my running application and get lots of info about what was pointed at - handle, size, text, parent, children, etc
IIRC, if the exe include debug info I could also get the actual variable name as used in the source.
Does anyone know what program I am talking about? Thanks
Hi,
In ASP.NET if I declare a variable (or object) static (or if I make a singleton) I can have it persist across multiple sessions of multiple users (it it registered in a server scope) so that I don't have to initialize it at every request.
Is there such a feature in PHP? Thanks
Hello everyone,
I have variable length character and want to store in SQL Server (2005) database. I want to learn some best practices about how to choose TEXT SQL type or choose VARCHAR SQL type, pros and cons in performance/footprint/function.
thanks in advance,
George
How can I display a squared sign in unicode (I checked the Unicode reference and it is not there)?
Also, is it possible to use unicode to display a fraction, for example 3/4 would look as it should with the horizontal vinculum?
Is ResultSet Thread safe?
My question arises because in this i have used a different statement for each query i have delsared a ResultSet as an local variable but it gives me a error of Operation not allowed after ResultSet is closed. But my statements are working as i'm using the statements in insert and delete query.I have commented the ResultSet part and have not got the error !!
The source code of my program can be referd to , in my earlier Question .
hi, i've created a php pagination system, but i want to hide the _GET variable in the address bar.
atm mine looks like this http://address.com/images.php?page=1
but i've seen a few site that have http://address.com/images/1/.
just wondering how they go about this? can anyone point me in the right direction, cheers
Hi,
What does address operator mean.
say in the method below.
what should be passed in the method as parameter value of integer or the address of an integer variable.
void func1(int&)// method declaration
void func1(int& inNumber)//method definition
{
//some code
}
I've got a Windows Service that runs BackgroundWorker's, and I'm wondering if I'm doing the right thing when I stop my Windows Service.
Is it enough to:
Let the BackgroundWorker1_DoWork method complete (I have a while loop in it now, doing some tasks)
Set the variable that holds the reference to the BackgroundWorker, to null
Is there some kind of Dispose() method I need to call (In the same way the Timer class has Timer.Dispose();)?
I'm building a web app that integrates with Google Drive, and am wondering if there was a way to list, search or delete files.
I see from https://developers.google.com/drive/v1/reference/files#resource that there are 4 operations. If there are no list and search capabilities then the onus is on the app to handle the management.
Is there another API I should be using? Are those features in the works?
How can I get the relative path of the folders in my project (using code)?
I created new folder in my project and I want its relative path so no matter where is the app the path will be correct.
Maybe this can be useful:
I trying to do it not inside any function just inside the class and I want to init with it a final variable. the app is android and the class is "extends Activity"
thanks
This is my function:
(defun MyFunction(input)
(let ((NEWNUM (find input num)))
(if (find input num) //if this
(setq num NEWNUM) (FUNCT2) //then execute both of these
(list 'not found)))) //else output this
So after the if statment I want to be able to execute (setq num NEWNUM) and (FUNCT2). One to set a new variable and then the other to call a function. Any ideas on how to do this?
how can I get user_version into an expression (for SELECT or WHERE) ?
I would also appreciate any clue to how to save ANY global variable in SQLite.
Does anyone know of such an extension (dll) ?
BTW: I know that PRAGMA user_version; gives me the right answer, but I cannot use that inside a WHERE-clause !
Is is bad practice to pass the Context to a constructor and save it as a private variable for internal use? The other option is to pass the Context as a parameter to methods that need it.
Which is the better option?
I have a feeling that passing to the constructor might result in memory leaks accidentally.
Someone recently asked a question about the Ghost Design Pattern - I have not seen this before.
What is the Ghost Design Pattern and how is it implemented? I can only find snippets on the web in reference to it.