Posts

iphone - Initialize UIPickerView -

I want to create a UIPickerView with the easiest way possible, because whatever I know is enough to help me Okay, what I believe is that I'm trying to get a UISegmented that will end up making the UIPickerView but I would like to create a UIPickerView which is when I break into an animated control Segment is selected, and also the sequence of an array It is believed to be used in which there is a red green color color OK, what do I believe that I am trying to get a UIEfEDad created by UIPorkarview , But I want to create a UIPickerView that shows when I select a segment in the fractured animated animated, and the review is considered to use an array in which the red green C color blue color For your UISegmentedControl, you need to register target-action methods For example: [fragmented control tag] {auto action: @selector (updatedcakeer) control events: UI ControlAventWalls]; Within UpdatePicker, set a variable that corresponds to whatever you want in your picker...

Is it possible to insert data in MySQL from a SQL Server trigger? -

A fun question for Friday afternoon, no? As a question, is it possible to write a SQL Server trigger that incorporates data into a MySQL table? Edit: Yes, I address is basically a dumb idea and that should apply and so on. But is a legacy classic ASP application that we are converting into MySQL; And as long as we do not get rid of the ASP bit, we really want to be able to rebuke the MySQL system without touching the ASP code. Just mentioning it for the dragons causes it to crash. Thanks everyone! In order to write data to a separate database from SQL Server, you first need to be on a SQL server Linked server instance must be created which points to the appropriate credentials / permissions along with other DB (MySQL in this example).

Objective-C Array Iteration Speed -

I am working on an application, I have an NSMutableArray which stores 20 or so sprites through me Need to repeat faster and efficiently than it is for my purposes the speed is not optimum ... I am getting two values ​​from every phantom because it repeats through it, is it more efficient to repeat through the array (Fast), then the CRPP An array of the CRPant says? Or instead of CGPIT, create a custom square for the sole purpose of handling only two integer values. Either way, what is the speed influenced by the type of objects or values ​​stored in the array? T thinks that you should be worried about the speed of walking on only 20 items.

multithreading - How to kill deadlocked threads in Java? -

I want to kill those threads that are stuck in the deadlock situation. First of all, we can use the findDeadlockedThreads () method of ThreadMXBean class in java.lang.management . Then, I want to kill thread with thread id, and thus I have two related questions: (1) How to get a thread control from thread id? (2) How can I kill the blocked thread? I think the invoking interrupt () method will give an exception to the thread and kill the thread. From the root thread group, you may have a thread class. After that you can match thread ID to your ID. After saying this, it is very dangerous due to the ability to leave objects in an inconsistent state. I do not believe that in the middle, the method will create a thread to free the person who is stuck in waiting on the sync lock, so (preventing evil) methods Also see: ""

.net - Stored procedure performance randomly plummets; trivial ALTER fixes it. Why? -

I have some stored procedures in SQL Server 2005 that I have seen, it will take quite a long time to complete suddenly My ASP.NET MVC app is running in the IIS 6 web form of four servers, the expected execution time is less than one second; Unexpected irregular execution time is 25-45 seconds The problem does not always look right. However, if I change the stored procedure (even if I can not change anything in the process, except that it is possible to modify the SSMS space created by the script command), the time of completion is expected Returns at the closing time. IIS and SQL Server are running on separate boxes, both run Windows Server 2003 R2 Enterprise Edition. SQL Server Standard Edition is the Dual Xin E5450 3GHz CPU and 4 GB RAM in all machines. SQL Server can be accessed on Gigabit Ethernet using its TCP / IP protocol (Not sure what the physical medium). The problem exists from all web servers in the web form, when I call the process in a query window in SSMS on my...

PHP Zend Route Config.ini - similar patterns -

I am using a configuration file to route my requests to my application. I have the following entries: route.dial.product = "deal /: id / *" routes. Deal.defaults.controller = "deal" routes .deal.defaults.action = "index" routes. Deal.reqs.id = "\ d +" routes. Deal.route = "deal / purchase /: id / *" routes .deal.defaults.controller = "deal" routes .deal.defaults Deal.reqs.id = "\ d +" The behavior here is what I see: mysite.com/deal/75 - This deal details 75 (will display with mysite equivalent) Com / deal /? Id = 75; Control = deal, action = index) mysite.com/deal/buy/75 - deal 75 or buy (controller = deal, action = purchase) - Mysite.com/deal/buy?id=75 Equivalent to I can only do one thing, and not the other which is specified in the config before, it will be the one who will work. Can someone tell me what I am doing wrong here? Any help is greatly appreciated. thanks, oz the other ...

c# - WinForms Different DPI Layouts -

Controls and designers created through any form and visual studio to develop themselves on the basis of existing DPI / font size The ability to do a part of my UI of Windows is the tab control full of dynamic pages and labels / inputs prepared on the basis of user selection. When these are made, they use hard coded shapes that look right for 96 dpi. Is there an automatic path in the net to take these generated controls, for designer-generated control? I would like to avoid control scaling myself because this is the old code which does not keep up easily. Okay, this tab is technically easy to repeat the control collection and the scaling factor By multiplying points and size properties. But when you start accounting for dock and anchor properties, then it becomes very difficult. The simplest method so far is that Form Class Scaling Machinery will work for you. You will need to add control to the before tab pages that run the load event. Do this in the constructor. To ...