Posts

Showing posts from June, 2013

string - Check if enum exists in Java -

Is it anyway to check whether a value exists by comparing a given string? I can not find any such work that I can try to use the valueOf method and catch the exception but I'v was taught that catching the runtime exception is not a good practice. Have any ideas? I do not think there is an underlying way without catching it is no exception. You can use something in return: public stable MyEnum asMyEnum (string str) {for (MyEnum me: MyEnum.values ​​()) {if (me.name () EqualsIgnoreCase (str)) me back; } Return tap; } Edit: As John Skeet notes, value () each time it is called when a private backing array Cloning works by. If performance is important, you can call value () only once, cache arrays, and iterate through it. In addition, if your enum has too many values, the map sketch map option is likely to perform better than any other move.

Is there any way to save an image an default.png programmatically on the iphone? -

I am writing an app for the iPhone and I will send an image to it as the default.png for the next blogging. Would like to save Is this possible? It seems that the sandbox does not allow you to overwrite anything in your local file system. No, you can not do this, it is possible to create a symbolic link in your documents folders. Then to rewrite the place that indicates it, but functionality was removed in 3.0. You need a bug with Apple to explain your needs.

plugins - Is it possible to type style sheets in Firebug fast and convenient ? (as in Aptana) -

For example, when I write the first brackets in Aptana, the second appears immediately, then I just need the press, it creates some white space, and I can type more a little feature That saves a lot of time! But this is not so in firebug. So, is it possible to use that feature in firebug? Is there a firebug plugin that allows to do this? Thank you in advance) I web for editing my CSS Developer plugin, while Firebug is good to test one or two things quickly, to remove styles from Firebug and back in your source file always seemed like a pain to me Web Developer Plugin (CSS -> Edit CSS), you can choose from your entire stylesheet Can see that it will be live live by. You can save your changes using the Save button, or copy everything that I do and paste it into my file. I know that this is not a "fancy" IDE, autocomplete or brace- With balance (it's like Notepad), but I can admit it is so good that it is far away to remove the obstruction and see the change ...

iphone - I am (also) having trouble making connections between code and Interface Builder -

I have only one question about this, but there is a better description of the problem. Using Inteface Builder (IB) I am unable to connect a button to the View Controller ("File Owner") in Apple's sample. It is only related to "first responder", yet somehow, the sample has completed it (see image). To keep it the other way, if I sample a movie player, open "Main Wando.xb" in IB and select "Button" and "My Movie View Controller" (see image) Delete the connection between the beaches, I'm unable to recreate that connection . I know that this should be a nasty question, but I would like to be incredibly grateful for anyone who can help me on this. In advance, Open the MyOverlayView and TabBarController This is connected to the IBAction on the view controller for the "Local" tab, to make it again: Open MyOverlayView and TabBarController Right-click on the round button in to bring MyOverlayView ...

jQuery tabs with both Ajax and static div's -

I am posting form data on a page that is using the jQuery tab because you post data to ajax query (With at least one ton of extra work and making it unsafe), I'm loading the active tab as the actual device on the page. & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('# tab'). Tab ({selected: 3});}); & Lt; / Script & gt; & Lt; Div id = "tabs" style = "margin-top: 10px" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "myprofile.php" & gt; My profile & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "mycompany.php" & gt; My company & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "manageusers.php" & gt; Manage users & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#management" & gt...

java - Directed notifyAll() -

If I can do a question. Suppose that my main thread creates 3 threads. These 3 threads wait on a fixed object () Then inform the main thread to notify all the objects. How can I ensure with Thread 2, and only Thread 2, when notifications from Thread 1 and Thread 3 are ignored and come back in the waiting position? In short, how can I direct my notification to a selected thread? If I'm not mistaken, doing so in Java 5 would be very simple. Will create a different situation and the main thread will only satisfy the condition in which thread 2 is waiting. However, how would I solve it in pre5? Cheers, Vic You should keep in mind that threads without any notify without ease. So you always need some kind of condition. The common form of code is: synchronize (lock ob) {while (Condition!) {LockObj.wait (); }} Threads that perform specific actions may be due to performance due to just being awake. Consider this for java.util.concurrent.locks , but note that th...

win32 dll in C# .net -

Can # .net be used to create a win32 dll, if possible, someone should tell me how to To do? AFAIK, writing unmanaged code is not possible C #. You are stuck with C / C ++ You can, however, write COM components in C # that can be called from any Windows application.

MySQL coalesce for some null, not all null -

I have a MySQL query that checks an employee schedule db and (thanks to any previous stackover flow question) Any day that the user is not working as "no work", so if the user is not working on Thursday, the query is filled in that date, although the date does not appear in the original result set (And so I do not fill it in Dta those spaces through the PHP script). The problem now is that if the user is now checking the program for two weeks, it shows "no work" throughout the week if there are no results, then the script "sorry, this No schedule for the week ", so the user does not mistake it to think that he has closed in the week and knows to check back later. So the question is: What is the best query syntax for something like: Choose if calculation (*)> 0 {COALESCE (gooddata, nulldata) as edita etc. From dates between xxx and yyy from the timetable if all these rows are blank or 0). I tried to add a column for a count and tried to s...

ASP.NET MVC with jQuery : catch exception + display error message -

मेरे पास यह कोड है: $ (document) .ready (function () { $ ('। DOFFDelete')। क्लिक करें (फ़ंक्शन () {var id = $ (this) .attr ("id"); $ .post ("/ ग्राहक / दिन ऑफ़लाइन", {customerid: getCustomerId (), doffId: id }, फ़ंक्शन (डेटा) {$ ("# myFormDOFF")। Html (डेटा);});});}); नियंत्रक में, मेरे पास यह है: ग्राहकडयऑफ ग्राहकडायऑफ़; {.....} पकड़ (अपवाद पूर्व) {वापसी देखें ("त्रुटि टेस्ट", पूर्व। मेसेज) का प्रयास करें; } वापसी देखें ("CustomerDetail"); जब कोई अपवाद हुआ, तो मैं "myFormDOFF" में कुछ भी नहीं बदलना चाहता था लेकिन "myFormMessage" में अपवाद संदेश प्रदर्शित करता था। प्रश्न: 1 JQuery कोड में, मैं एक वैध परिणाम और एक अपवाद के बीच अंतर कैसे बना सकता हूं? क्या नियंत्रक "होम" (या किसी अन्य साझा नियंत्रक) और "ShowError" कार्रवाई के लिए सभी नियंत्रकों की त्रुटि को प्रदर्शित करने के बजाय उदाहरण देखें RedirectToAction के बदले वापसी देखें ("ErrorTest", ex.Message); ? ...

java - Is it possible to create a mock object that implements multiple interfaces with EasyMock? -

Is it possible to create a duplicate object that implements several interfaces with eZMock? For example, interface Foo and the interface shutdown ? While creating a duplicate object, you can provide multiple interfaces in Rhino Mox, but the createMock () of EasyMock takes only one type. Is it possible to achieve this with EasyMock, without using the fallback to create an instantaneous interface, which closes both Foo and , and then the joke of that? Physical mock does not support it so that you're stuck with the temporary interface's fallback. In a different form, I smell a bit of a code wiff - a method should actually be treated with 2 different things as an object, Foo and this case In the shutdown interface? It means to me that the method is doing a lot of operations and when I suspect that one of those tasks is "to turn off" is to be closing , then what? Does it not understand much? Is the calling code 'off' required to decid...

php - reverse mysql_real_escape_string -

I have a piece of data which is large and may include quotations and double quotes. I am using mysql_real_escape_string () to securely store it. When I pull it to see it, all quotes are preserved. I tried to use str_replace to get rid of all the codes, but it converts \ r \ n to rn . : ( How can I reverse it, where is the data coming back? Do you use magic quotes? Note: If magic_quotes_gpc is enabled, first apply data to Stripsus (). By using this function on [mysql_real_escape_string] data which The two saved data will be saved twice.

asp.net - ASPNet EMail attachment from SQL BLOB -

We are storing scheduled email notification in SQL Server 2005. Email notifications include 0 - 3 attachments different file types . I have a VB.net Windows service that runs a 'x' number of minutes, populates the dataset with email notifications from the SQL server, creates emails, and sends them through ASPnet emails. Due to adding an attachment to a blob, the time to send e-mail is timed, even if the attachment is only a 15 byte text file. Hardcoding paths directly to the file works fine. I have tried many ways and it can not be found right. Hmm, I did the same thing for each of my attachments I used to call data in a binary column , And a separate column in which the file size is placed in bytes. I wrote something to get from the database (using SQL Commands and SQLDitard classes): attachment = new byte [size]; SqlReader.GetBytes (sqlReader.GetOrdinal ("Attachments"), 0, Attachments, 0, Size); System.IO.MemoryStream s = New System.IO.MemoryStream (...

visual studio 2008 - Chromium Build Fails on Windows -

I'm trying to make chromium for Windows (using Visual Studio 2008 SP1) and it fails with approximately 37 errors here is a selection: error 1 error LNK2005:" wchar_t const * const switches :: kProcessChannelID "(? KProcessChannelID @ switches @@ 3QB_WB) already ipc. defined in lib (ipc_switches.obj) .lib chrome_dll error 2 error LNK2005: "wchar_t const * const switches :: kDebugChildren" (? KDebugChildren @ switches @@ 3QB_WB) already ipc.lib (ipc_switches.obj) in common.lib Defined by chrome_dl l Error 3 error LNK2005: "wchar_t const * Const switches :: Keaipisiuseffo" (? KIPCUseFIFO @ switches @@ 3QB_WB) already ipc.lib (ipc_switches.obj) described common.lib chrome_dll error 4 Fatal Error LNK1169: A C: \ Users \ RCIX \ Src \ chrome \ debug \ chrome.dll 1 chrome_dll These errors are only the only types of errors that are found in above or more multiplied symbols But they do pop up in almost half a dozen projects. What did I do? This me...

.net - Immutable struct with collection -

I am creating an irreversible structure in .Net that has a collection of a different irreversible structure (I have full control over the whole design ) I can make a reference to an readOnlyCollection What is the best way to do this? / code> Is there any other option that has internal structure? readline calling is the only way. Depending on what you need to do with the archive, you can also expose it as IEnumerable instead.

qt - QWidget::find(hwnd) always returning 0 -

I am holding the window handle with the following code: hwnh hwnd = FindWindow (El "quewizette", tap); And it gives a QWidget for an HWND (I've checked with Spy ++, Match Handle). But after that, if I try the following: QWidget * widget = QWidget :: find (hwnd); or QWidget * Widget = QWidget :: find ((wId) hwnd); The widget is always 0. Does anyone know why? Am I using QWidget :: find ()? Thanks, Dave Hull: In debug Compiled, so QtGui4d.dll was loaded instead of QtGui4.dll

c# - Generify classes that reference themselves -

Is there any way to generate these two classes? class tag 1 {public tag 1 guardian {Get; Set;}} class tag 2 {public tag 2 guardian {get; Set}}} So I will: class tag 1: tag {} class tag 2: tag {} does not seem to be, but it is possible that I missed some global. Thanks to John, I ended up with the following solution: class tag 1: tag & lt; T & gt; {Parent T Parent {get; Set;} Public T addNew () {New T (back)} {Mother = (T) it;} // This works}} OK, a little messier than before, and the subclass needs to do a bit more work, but ... Public abstract class SelfRef & lt; T & gt; Where T: Sulfurf & lt; T & gt; {Private Readonly Funk & lt; T & gt; ChildFactory; Public T Parents {Received; Set; } Protected SelfRef (Func & lt; T & gt; childFactory) {this.childFactory = childFactory; } Public T AddNew () {Return Baby Factory (); }} Public Sealed Class Ref1: SelfRef & lt; Ref1 & gt; {Public Ref1 (): Base ((=) => New Re...

.net - Performance counters incrementing improperly? -

Text after " Perhaps there is an error in the beginning, but I'm getting something strange. I have an application in one. I am trying to knit NET display counter. When I incrementBy (value) method on my average performance counter changing RawValue their base area on the basis of price as well as call . I checked the variable name and it seems that everything is correct. Of So as well as when I my base incrementing based counter as the counter increment () call it adds 1 to rawvalue of avgcounter ... Injury Adding humiliation! Have seen such behavior? What is happening and there is some suggestion to fix it? The code I used to type in a merge like I wrote two separate counters to measure. I have an improvised counter for a time elapsed and average counters. dim watch new Stopwatch () timePiece.Start () MergeSort () timePiece.Stop (as) ElapsedCounter.RawValue = timePiece.ElapsedMilliseconds AvgCounter.IncrementBy (timePiece.ElapsedMilliseconds) AvgCounterBase....

functional programming - Continuations in Clojure -

I read somewhere where the rich Hiki said: "I think the continuity is well-organized May be theory, but not in practice " I am not familiar with Closer. 1. Is there continuity in the closure? 2. If not, you do not need continuity? I have seen a very good example especially what is optional? 3. If so, is there any document? When talking continuity, you have to distinguish between those two types: Continuities of first-class - continuous support-support, which is deeply integrated into language (plan or ruby). Closer does not support first-class continuity. Continuity-pass-style (CPS) - CPS is a style of coding and any language that supports anonymous functions will allow this style (also on the closer come into force). Example: - standard double function: - int -> Intel double x = 2 * x - cps-function - we repeat the continuity of the double-cps :: int - & gt; (Int -> Ridge) - & gt; Res doubleCPS x cont = cont (2 * x) ; Call pr...

c++ - What is the Best Practice for Combating the Console Closing Issue? -

After the console program is compiled, the console window closes immediately after running. What is the best practice to open it? I searched Google loads, I'm used to codeballs where you do not have to worry about it, however, I want to mess with Vs. Studio for a while and mess with my VS, my console There are many different ways to keep it open on the intervenes, however, I have read that most of them are bad coding techniques. What is the preferred method everywhere? When I'm using Visual Studio and I do not need debugging I just want it Ctrl + F5 keystroke & ndash; And it prevents the console from being closed.

css - How do margins work with div positioning? -

#content As you can see below, there is a top margin of 280px, because This is the height of the header image of the site, which is placed in the background (image / sky 1.jpg). How do I place a div in the form of holder above the 'margin' of a #content div so that I can change my # navigation , # Title headers divs up from image? Only the # top-float div was above the #content div, but every time I add Lt; Tried to put the div id = "top-float" and above and is in html How should this keep me in this situation? html {background: # 73ADD7 url (images / gradient.gif) repeat-x;} body {padding: 0; Margin: 0; Background: URL (images / sky 1.jpg) no-repeat center top; Color: # 666; Width: 100%; Display: table;} #top-float {padding-left: 2.3am; Padding-right: 2.3 AM; Height: 10 AM;} # Material {Width: 890px; Margin: 280 px auto 0; Background: #FFF; Border: solid 0 px # ccc; Padding: 0px;} #fther {width: 890px; Margin: PX Auto 0; Background: URL (Pi...

sql server 2008 - How do I extend Lookup Transformation Editor in SSIS -

I have created a conversion component, and basically it accepts data from a source, and before saving it a lot Changes information in a database However, I want to map between the source column and the database column, which has been called from my conversion component. I like the mapping in Loopup TransferAction Editor. How do I create an editor that has the same functionality for mapping, so that it can allow a user to draw a line from a source column to the destination column. I am using SQL Server 2008 and VS2008 for this project. I realize that I will need to create a custom UI for this component, instead of the advanced editor which comes by default. Use my wrapper for

In Clojure is an empty list a sequence of infinite nulls? -

I'm learning the concept of sequence and zero in the closor The result of a small experiment was 1: 6 users => (First '()) Zero 1: 7 users => (Rest '()) () 1: 8 users => (First (the rest '())) Zero Does this mean that' () is actually the sequence of NIL? If you want to check that the "rest" of an archive is empty, next Use . User & gt; (Next '(Foo Bar)) (Bar) User & gt; (Next '()) zero user & gt; (Doctor next) ------------------------- clojure.core / next ([coll]) gives a seq of items after the first. Call seq on your logic if there are no other things, return zero. "blank collection / seq and zero to treat as the only thing) last year was removed in favor of lazy scenes. See for a discussion of this change.

sql - MySQL Join Condition -

I'm having trouble in thinking in a way to get into MySQL I'm not sure who's for this job It would be most appropriate to include, so when someone tells it, I will edit the title. Here's the essence of what I am trying to do. I have two tables, call a code , and other sign These are setup as follows, student only the ID field is unique .---- + --------- -------- + ---- ---- + --------. | ID | Name | Parents Mark | + ---- + ----------------- + -------- + -------- + | 1 | Name goes here 1. 0 | 0 | | 2 | Name goes here 2 | 0 | 20 | | 3 | Name goes here 3 | 2 | 45 | 4 | Name goes here 4 | 2 | 50 | | 5 | Name goes here 3 | 1 | 20 | | 6 | Name goes here 1. 0 | 65 | .---- + ----------------- + -------- + --------. symbol the id and the name are unique .---- + ----------------- + --------. | ID | Name | Ranking | + ---- + ----------------- + -------- + | 1 | Name goes here 1. 20 | | 2 | Name goes here 2 | 60 | | 3 | Name goes here 3 | 90 | | 4 | Name goes ...

process - How to stop Lean programming becoming Cowboy Coding? -

My team is gradually going to adopt more and more lightweight methods, from Scrum to Lean / Kanban where the low And the process is less formal. At some point we will be back in cowboy coding; Actually I am afraid that we can already be on the border line. Where is the line between very light tilting and playful process and chaos can be drawn? How do we know how we have crossed the line? As a question, it can also be said, 'What processes can not be safely terminated in Lean's campaign to eliminate waste?' When something is known or managed about the code by only one person in your group , Then you are under the big red shiny "salon" sign, and you're basically pushing the door.

animation - How to make execution pause, sleep, wait for X seconds in R? -

How do you prevent R scripts for seconds or milliseconds for a specified number? In many languages, there is a flax function, but ? Sleep refers to a data set and ? Paused and ? Wait is not present. Its purpose is self-timing for animation, the desired solution works without asking for user input. see support (Sys.sleep) . For example, ? Sys.sleep to testit & lt; - Function (x) {p1 & lt; - proc .time () Sys.sleep (x) proc.time () - p1 # Using CPU should be negligible} · testit (3.7) stem & gt; Tritit (3.7) User System 0.000 0.000 3.704

f# - Value of the last element of a list -

How to obtain the value of the last element of a list? I have seen that List.hd (or.) Returns an item, while List.tl (or .ail) returns a list. Modify the list and find the only way HD? Thank you. Try this function. It uses recursive, although it is optimized for recursion anyway because this tail is recursive. In any case, expecting the entire list to be reversed (using List.rev ) Happens faster. REC final = give function. HD :: [] - & gt; HD | HD :: TL - & gt; Last TL | _ - & gt; Failed "empty list." Powell Minave's answer is definitely worth considering, however, the algorithm you requested may be useful in some rare cases, and the most efficient way to go about the work is.

postgresql - JDBC postgres query with a timeout -

Unfortunately the set time is not implemented for JDBC / postgres Is there a way I can simulate or solve it Can i Functionally I want to execute the query and then want to break if it takes longer than N seconds It looks like what you want. SET statement_timeout to 1000; - For each other & lt; Your_query_ here & gt ;; Reset Statement- Timeout; - reset

jquery - Highlight Text When Clicked -

How can I highlight all the text within a text box when I clicked using jQuery? & lt; Input type = "text" value = & lt; Script & gt; Click $ ("# user") (function () {$ ("# user"). Focus (); $ ("# user"). Select ();}); & Lt; / Script & gt;

How do I list files with edit locks on a network drive using a shell and associated tools? -

How do I list files with edit lock on a network drive using a shell and associated tool? I think the net file must be run on the server, and I want to do it from any box on the drive. "Display all open shared files on the server and lock-id net file Close the share file (disconnect other users and remove file lock) .NET FILE id / CLOSE "/ P> and it was tested on an XP workstation. Works fine, but I'm not sure how the UAC will affect it.

python - How to generate pdf with epydoc? -

I am considering epydoc for a module document. It looks fine for me and when I prepare the HTML document, I am working fine. I want to try to make the duchemation in PDF format. I modified the 'Output' setting in my config file Unfortunately, epydoc fails when generating PDF file error "error: Error reading pstat file: [Error 2] No such file Or directory: 'profile.out' " This generates some tech files. I think I may miss the latex, but I am not very popular with Texx and Latex . More and more I'm working on Windows. What should be the next step to creating a PDF file? Thank you in advance for your help I think you have an existing con The file is used. If you have a closer look, you will see an option pstat: profile.out . This option says file profile. Out will be used to generate a call graph. See: Name of one or more pstat files (Profile # or Hotshot Module generated by) are used to generate these call graphs. Pstat: profile.out ...

c++ - Shared libraries and .h files -

I have some doubts how programs use shared libraries. When I create a shared library with Shared-FPIC Switches) I provide some functions from an external program. Generally I do a dump () to load the library and then DSCIM () said that to link functions related to functions pointers. No .h file is included in this approach. Is there any way to avoid Dulappan ()? Including Dlsym () and just shared library .h? I can guess this may be how the C ++ program uses the code stored in the system's shared library. Ie just stdlib.h and so on. Nick, I think all other answers are actually answering your question, just like You link to the libraries, but the way your question suggests you are a misconception of the difference between header files and libraries, they are not the same. You need both , and they are not doing the same thing. Creating an executable consists of two main steps, the compilation (which changes your source into an intermediate form, including executable ...

In Composite WPF (Prism), can/should multiple modules share a 'toolbar' region? -

I am very new to overall WPF and I am battling the basic architecture of shell. Say I have Shell with three fields - 'OutlookStyleNav', 'Main' and 'Toolbar'. How do I add buttons to the Toolbar area? Will each module add its own buttons to this area? (And if so, how do the buttons of all modules be displayed on at the same time ?) Should the shell detect its command dynamically in its controllers and its base But will the button create? I'm not sure any suggestions? Module in our current project publishes all available toolbars and menu actions and subscribe Toolbar In the event of "action available" events, a representative (which is pressed by the toolbar button), an action statement (= tooltip text), icon etc. is called. This way there is no direct reliance on the shell, neither the module nor the module has dependency on the shell.

python - How do I add items to a gtk.ComboBox created through glade at runtime? -

I am using Glade 3 to create a GtkBuilder file for a PyGTK app on which I am working . This is for management of bandwidth, so I have gtk.ComboBox to select the network interface to track. How do I add a combo box to the string over runtime? This is what I have done so far: self.tracked_interface = builder.get_object ("tracked_interface") self.iface_list_store = gtk.ListStore (gobject.TYPE_STRING) self.iface_list_store.append ([ "Hello,"] self.iface_list_store.append (["world."] Self.tracked_interface.set_model (self.iface_list_store) self.tracked_interface.set_active (0) but combobox Remains empty Cheers. Or you can simply create and insert a combo box using it yourself. After that, you will be able to use gtk shortcuts for text, and text. Combo = gtk.combo_box_new_text () combo.append_text ('hello') combo.append_text combo (.set_active (0) box = builder .get_object ('some box') Box.pack_start (combo, false, false)

javascript - increase text size font in Sharepoint website -

Has anyone applied the 'script, less text size' JavaScript script to the SharePoint web site? I'm trying it using getElementByTagName and getElementByID functions, but they do not do too much and behaving very strangely Looks like - Do not choose the right tag. All instances on the Web really have simple markup and CSS, and this is not the case at the time when SharePoint SharePoint is present. It depends on some things MacCher you are running JavaScript after the dom load, or Using the callback function for the window, as a triggering event from a target or by entering the code at the bottom of the document that will run immediately. How are you implementing an increase in font size? ob ob) .info ("div") in documents (ob ob). {Document.getElementsByTagName ("div") [obj] .style.fontSize = "16px"; } or document.getElementById ("youeElementID"). Style.fontSize = "16px"; For example, I've drum ...

math - Decompose complex matrix transformation into a series of simple transformations? -

I wonder if this is possible (and if this happens) to re-index an indexed M3 matrix conversion In other words: How to calculate the matrix of MCMplex, MScLe, Mrotate, MKKU from MComplex so that the following equation is correct: P> MComplex = MTranslate * MScale * MRotate * MSkew (or other order) In this structure, an arbitrary matrix changes in the structure of the 3 matrix: Orthogonal + diagonal + orthogonal Orthogonal matrix rotation matrix; Diagonal matrix represents skewing with primary axes = scaling. A monkey throws a translation in the wrench, but what you should do is to take the translated part of the matrix so that you have 3x3 matrix on it to run the SVD to give you rotation + skiving, then Add translation part back. In this way you have to translate a rotation + scale + rotation + 4 matrix. It is possible that this is possible in 3 matrix (axes + rotating + scaling with some set of translations), but I'm not sure that ... maybe a QR decomposition (Q =...

Your desktop layout for web development and or programming in general -

I have a MacBook laptop and 21 "monitors, the first and second to my left is in front of me in OS X Leopard I use Safari and IM, IRC etc. on the monitor in the laptop, by using two workspaces, which I constantly switch on (for regular navigation and communication apps like IRC, Adium, Twitter, Skype). Until the screen on the laptop is small and Ptop is located at my place, then I static application runs he does not require much of a difference because they are idle most of the time or show small updates (such as Twitter). Then on the other workspace I am running Firefox on my laptop screen and run some terminal and VIM sessions on the front monitor. I get development and coding on the main screen, so every time I want to see the applicable changes, I refresh by going to my left lamps. I'm pretty happy with this setting, but I'm getting some drawbacks, eg when I want to use firebug in Firefox, I think I'm not comfortable feeling, because the screen My left too is ...

.net - DataContractSerializer, KnownType and inheritance -

I have read many articles about known types and I should consider my example that work should be done. But this is not me getting the following exception on deserialization and I do not understand why: Error in line 1 position 2. Except 'A' from the namespace, "name", "namespace". using the system; Use the system. time. Timeliness; Using System.Xml; Using System.IO; Namespace Console Application 2 [[Detacontrkt] [known type (Taipf (c)) class A {} [Detacontrkt] Class C: A {} class Program {[static void main (String] ARG) {A a = new C () ; String data; Var Serializer = New Data Contrast Cylizer (a.GetType ()); (Var sw = new stringwriter ()) using ({var xw = new XmlTextWriter (sw)) serializer.WriteObject (xw, A); Data = sw.ToString (); } Serializer = New Data Contributorizer (Typef (A)); (Var sr = new string reader (using data)) (var xr = new XmlTextReader (sr)) a = (A) serializer.ReadObject (xr); }}} What am I missing? Change the way you creat...

css - Div "default margins" out of nowhere -

Even after several lines I have written CSS and HTML, CSS-behavior still surprises me Manages - In Bad I was putting a sample site for a friend to show him how to construct his layout, but Firefox 3.0.5 and IE8 # Headers, # Contents and # Footers- Divs Out Nowhere if I switch to IE7 mode Margin disappears. CSS: html, body {background-color: #fff; Margin: 0; Padding: 0; Width: 100%; } #page {background-image: url ('bg_gradiant.png'); Double-repeat: repeat-y; Width: 950px; / * 770px + 2 * 90px; * / Margin: 0 auto; Padding-left: 90px; } # Headers {Width: 770px; Margin: 0; Padding: 0; } #hadder # row 1 {background color: # 9ab3ba; Height: 50px; } #hadder # row2 {background color: # 517279; Height: 50px; } # Content {width: 770px; Background color: # d7e9ed; } #footer {background-color: # 5eb6cc; Width: 770px; Height: 150px; } HTML: & lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Transcription // N http: // www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...

windows - asp.net mvc with ioc --> avoiding constructor soup with BaseController -

I have a base controller that uses I'm using to house my cross cutting concerns for an MVC project . However, this means that 3 dependencies of my controller: public base controller (IUserService u, ITenantDetailsService t, ISiteConfiguration c) this is the side effects that are awash with my constructors standards for each derivative controller: public AccountController (ILocationService locationService, IAccountService accountService, IFormsAuthentication formsAuth, IMembershipService service, IUserService userService , ISiteConfiguration configuration): Base (locationService, userService, Configuration) I To solve the mechanisms I am using IoC (Windsor), so I know that I can remove manufacturer dependencies and it can automatically pass on public properties. Is there any reason to do this except for some dependency masking? Public Account Controller (IAccountService, IFormsAuthentication, IMembershipService) This approach is much more readable and gives ...

algorithm - How to eliminate duplicates from a linked list of unicode characters, without using any extra memory -

"Find a recurring element in a linked list of Unicode characters. If a duplicate of a Unicode character / du is found Repeat that node and adjust the list. This barrier was not to use any extra memory. " My answer: Assume that the surrogate pair is not included in Unicode characters That i am using c # i do not know how you do a du Plicate can search the character until you know the values ​​of the previous node during the list, and additional memory (hash table) will be required to maintain the previous values. Friends, can you think of any solution to this question? This is an interview question on one site, besides it is possible to solve it in O (n) time? Is there an implementation here? Can you respond to it so that I can do better? to remove public static zero (node ​​head) {node current 1 = head; Node current 2; While (current 1! = Null) {current2 = current1; While (current 2! = Null) {if (current 2. next! = Null and current 1. data = current 2. next dat...

osx - Recommendations for a lisp setup on Mac OS X (any dialect)? -

What is your Mac OS X (Intel) based Lisp Setup (a quote), how do you like it, and How painful was it to install? I am looking for a versatile lip that is easy to install, but if you feel strongly about investing more money, or money, then I would like to hear why you believe it. I am currently used to use, which was an air to set up and gives me easy access to things like graphics and sound. I have heard of SBCL with MACX and mud , But it seems to be a real pain to set up, and I'm still not friends with MACACS. I want to see if I am missing anything or not. I will mainly use to enjoy this thing, there will be no business goal. Please recommend only one setup to answer to vote, but do not hesitate to submit multiple answers. / P> which include: Once downloading aquamax, SBCL and SLIEE, you will have a single application bundle, which you can double-click - and can be found in fully-configured general lisp REPL. This is ideal for OS X users, with the least...

.net - App Shutdown C# Windows -

My C # app is still in RAM after applying in the application. Current.Shutdown (); (db (application.Current.Exit + = New ExitEventHandler (Current_Exit) is also used) What to use another Is the statement? The problem occurs on various Windows XP systems and servers. Kind regards, Jeff If you have created some threads, then they are still running, either make sure they are finished before the application closes, or make sure That you want the "IsBackground" property of the thread to be "correct" Please get them killed with the application

asp.net - How to get drop-down list value? -

मेरा पहला प्रश्न यहाँ है ..:) कोड से शुरू करते हैं ... मेरा पृष्ठ & lt; form id = "form1" runat = "server" & gt; & Lt;% का उपयोग (Ajax.BeginForm (नल)) {% & gt; & Lt;% = Html.DropDownList ("DdlScelta", MVC.Models.SelectLists.ConventionIdsSelectList, "इस सूची से चुनें")% & gt; & Lt;% = Ajax.ActionLink ("डेटा दिखाएँ", "सेटडेटा", नया अजाक्स ऑप्शन {UpdateTargetId = "msg"})% & gt; & Lt; span id = "msg" & gt; & lt; / span & gt; & Lt; / प्रपत्र & gt; और यह मेरी नियंत्रक विधि है [AcceptVerbs (HttpVerbs.Post)] सार्वजनिक एक्शनरसेट सेटडेटा (फॉर्मकॉलक्शन फॉर्म 1) {// form1 ["DdlScelta" ]}} मैंने भी [AcceptVerbs (HttpVerbs.Post)] सार्वजनिक एक्शनरसेट सेटडेटा (स्ट्रिंग डीडीएलएससेलटा) {@} जैसे बेहतर तरीके से कोशिश की है { // महत्वपूर्ण कोड नहीं} लेकिन ऐसा करने के लिए कुछ भी नहीं, जैसे ही 2 एक्शन रिजल्ट में से एक को पकड़ा गया है, मेरे...

string - In Python 2.4, how can I strip out characters after ';'? -

Assume that I am parsing a file, which uses ; As a comment character, I do not want to parse the comments. So if I see a line like this: example.com. 600 in MX 8 s1b9.example.net; Hello! Is there a simple / more beautiful way to strip characters other than this: rtr = '' for the line in the file : Trig = false for line four: if not trig and char! = ';': Rtr + = char else: trig = true if rtr [max (rtr)]! = '\ N': rtr + = '\ n' I say that line.split (";") [0] which will give you a string of all the characters, but the first ";" character. If not ";" If the character is present, then it will give you the whole line.

xml - change variable value in xsl -

I have a problem with XSL variables, I know that once the variable is declared, the value of variable counts can be changed is. But I am facing a strange problem and I can not possibly change the XML output, instead it is possible that with XSL only possible. I am using xsl: for each loop on some data for XML There may be three types of extinction data, Type 1, Type 2 and Type 3 If it is Type1, then I would like to process that data I'm saying the template. Inside the template I am displaying a header, I need to print this header for the first time, when I am only experiencing this Type1 data. After this I do not need to display it. I could pass a parameter with a call-template and set / unset to decide if I need to print header text. But as I think, being a formatting language, variable position is not preserved. Can you please provide your valuable suggestions on implementing it (possibly without XML changes)? Edit: The test will work for XML output described ...

.net - Problem with RDPSND.DLL -

I have an application in Visual Basic, which is using the .NET Framework 2.0. This application runs on the thin client using the Windows Terminal Services on the client site. This is a type of off-of-the-box, and when the object is successfully scanned it makes the sound. In a remote desktop, we have enabled sound on the local computer. It is working fine till now, but for the last few days this is a problem. After scanning some lines (never after fixed lines) - the app crashes Checking the event viewer I found the following: The Faulting App Bonus .XA, version 2.0.0.0, Stamp 4A683010, Faulting module RDS & DL, version 5.2.3790.0, stamp 3e8024be, debug? 0, Mistake address 0x000029d5 After this, I tried to run the sound without any application and it worked. How can I fix this problem? Any ideas? PS: After the accident, if we restart the application, it has actually slowed down, it takes approximately 30 seconds to scan a line - where it otherwise takes less than a...

windows - TerminateProcess vs Ctrl+C -

I have a console-mode program that uses SQLite3 to maintain the database file. It takes some time to execute, but it should be secured at any time to cancel it, assuming that the database writes. (This is all under Windows) To kill Ctrl c in the console compared to any of the consoles, Is anyone safe from the point but another program calls terminetproves? I have seen that if TerminateProcess is called then I can get database corruption - I think it is because the program does not get the chance to write. My guess is that Ctrl C is better, because the program indicates and kills the OS rather than terminating it. Note that the program does not actually handle the signal (unless it does not compute); I'm talking about the underlying default mechanism of Win32 executable to handle the Ctrl C signal. To make the question clear / simple that this writing is currently executed: stills (buff, 1024 * 1024, 1, stream); Class = "post-text" itemprop = ...

asp.net mvc - Of all of the ways that Microsoft offers you to write a web page, which one delivers the most value per programming hour? -

I am just disappointed by all the options Microsoft offers to develop a web form. Sharepoint, Infopath without Sharepoint, ASP.NET web form (with separate controls for each runtime), without ASP .NET web form, ASP.NET Framework, Silverlight and WCF. There are several different ways for rendering and separating technologies aside, to pass data from database (dataset, LINQ, SqlDataControls, and many others) and these are only those that can name in a minute or more - I'm sure that in the process of getting out of Microsoft Labs, I have not found some very old technologies (FoxPro has ever got a web front end) or very new stuff. What if I am the best way to transfer ASP.NET web forms and datasets, for data-driven forms now? What have you done with that good value for your programming time? I am trying to work with LINQs to work with institutions and new MVC frameworks, but I do not have enough information about all these new technologies, where it is where the value is. It ...

c# - .NET hosting for demo projects -

I am a Java programmer looking to learn C # and F # specifically to improve my job skills Is in. To this end I am building a website that will have some demo projects. I hope that this website will have to learn C # / F # and NAT framework and then be a complete product to self-advertise and show to potential employers. What I want is a good host. My priorities are cost, stability, and efficiency. I can be ready to pay up to $ 10 / mo, but I really do not want to pay more than $ 5 / mo stability and performance should be fair. I use all commonly used .NET tools (SQLServer, LINQ, C #, F #, VB, MVC, any other stuff I may reasonably require that I do not know yet) needed. Basically I do not know exactly what I want apart from the room for my projects to grow in my expertise. EDIT: Some have expressed concern that I should not pay for the time before my project is ready. However, my hope is to get it in less than a month, so I am not very worried about paying for that time. ...

operators - How do you return 'not uint' in C#? -

I have some code written in VB that reads as follows: back (not (CRC32Result)) I'm trying to convert it to C #, and I have it: return (! (Crc32Result) ); Although I get a compiler error: Compiler Error Message: CS0023: Operator '!' P> / div> What are you trying to do If the bits of crc32result are inverted, then you want a tilde operator. Return (~ crc32Result); context

c++ - How do I take ownership of an abandoned boost::interprocess::interprocess_mutex? -

My scenario: A server and some clients (although not many) can only respond to a customer at a time, at the same time, Therefore, they should be queued for doing this by using a mutex ( boost :: interprocess :: interprocess_mutex ), wrapped in a boost :: interprocess :: scoped_lock . This is, if a client dies unexpectedly (i.e. the district run) while holding the mute, other clients are in trouble because they are waiting on that mute x. . If this is the case, I say for the customer, waiting 20 seconds and does not get the mutex, it goes anyway from the server further and talks I have considered using time waiting Any problem with this approach: 1) It does this every time if it is in a loop, then talking constantly on the server, it has to wait for time to finish all the time. 2) If there are three clients, and one of them dies while catching the mute, then wait for the other two 20 seconds and at the same time will talk to the server - exactly what I am trying to avoid. So, h...

c# - Best practices for serializing objects to a custom string format for use in an output file -

About to apply override of toasting () on a particular business category, to create an Excel friendly format Was written in an output file, which will be picked up later and processed. What is the data given here: 5555555 "LASTN SR, FIRSTN" 5555555555 13956 STREET RD TOWNSVILLE MI 48890 25.88 01-003-06-0934 This is not just a big deal for me to create a format string and override ToString () , but it changes the behavior of ToString () for any object Now, I am studying, and to implement a class, it looks like a way tostring () > Good idea, but I am still I am a bit confused about whether it should be located where all logic and format class to be created. When you need to CSV, tab-delimited or create, what do you do with any other non-XML straight from an object? Here is a normal fashion for creating CSV. A list of items, reflection use: public static string toCsv & l; T & gt; (String separator, INMEMERABLE & lt; T & gt; item list) ...

can Yahoo and Hotmail contacts api be used without leaving the site? -

I'm probably missing something but trying to implement one of the contact retrieval mechanisms offered by Google for yahoo and hotmail . Both API users actually need to go to their site to log in. The documentation is really complex for both. I was hoping someone has done this and can talk to me in a simple way (if any), then the user is allowed to log in directly to my app and then go for me and his contacts (Preferably in the XML but will also do JSON .) I currently have a Perl script that goes and receives Gmail stuff and Working very well I was hoping maybe (maybe wildly optimistic) that there would be useful mechanisms similar to Yahoo and Microsoft. Open Inverters View:. There are Yahoo, Hotmail, and many more :)

grails - Issue with multiple hasMany relationships to the same domain class when using composite id -

I'm getting this exception: org.hibernate.MappingException: the number of columns in the collection foreign key mapping is incorrect : Cell.cellsOrig type: component [locationX, locationY] sorts the class room {integer space x; Integer position y; List cellongrass = [] list cells = [] static hamani = [cells aggregate: cells, cells: cell] static mapping = {id overall ['locationX', 'locationY'] cells include: 'joining cell_gate' cells Qualified: 'room_cells_orig'} static constants = {locationX (fable: incorrect) location Y (faucet: wrong) cells (faucet: wrong) cells (zero: incorrect)}} I think that I am involved in it is wrong, but without joining the room Any access to the cell's instinct or Selorig properties org.hibernate.HibernateException: will clear the index column for collection: Room.cells . How can a suggestion for how to handle inserted IDs like this? If you want to create a class from which many people join a class,...

subprocess - Python Popen difficulties: File not found -

I am trying to use Python to run a program. Subprocesses import Popen Sa_proc = popen (['C: \\ sa \\ sa.exe', '-?']) this short WindowsError: [Error 2] The system can not find the file specified The program is present and I have a full path explorer with Explorer I have tried copying and pasting directly. I have tried other things and found that if I put the xi in the sec folder with the Python script and using './sa.exe' I received so it works. The only thing I can think of is that I am running Python Script (and Python) with a different partition (F :). Any thoughts? As it says, "In Windows: Poppin Class uses CreateProcess () to execute a child program, which runs on a string. If Argus is a sequence, then it will use the list 2cmdline () method in the string It may be converted. "Maybe this method is messing things up, so why not try a simple approach to this: \ Sa.exe -? ') If it still fails, then: Or the os.environ [ '...

C# determine a Nullable property DateTime type when using reflection -

I have a question about determining the worthless property type of an object. ObjectA A Property DateTime? CreateDate; When I am repeating through properties like the following properties, how can I check that an asset is a tapable date time type? Thanks foreach (ObjectIn.GetType) in PropertyInfo pi. GetProperties ()) {// compare here} pi.PropertyType == type (date time?)

mysql - Database design -- NULL or a max value to indicate this date value? -

So I'm working on a schedule app that uses a MySQL DB. One of the modules for this site is for managers to track slowness, overtime, and absence. The current site is a mess. This is just what the manager has entered in the major data, but this manager does not comply with previously known data (like the employee is expected to come / go) or the need to use any standard format. Some managers enter 30 minutes (30 minutes late meaning) while others can enter 8:30 (which means they were due to 8:00 o'clock), etc. My version will be limited to the manager's staff, then select the change in the question, and they will be able to basically enter two values: the time actually arrived, the time was actually dropped. As such, when the report runs and the Timesheets are verified, it is only a case of math, to see if they were late / initial / overtime but I have participated in a difficult place: Most First, if someone calls in sick (or not just shown), then I would have been ...

Ruby on Rails - how to render as xml models with has_many associations -

Has_many 'Association with sub_tests is thus in the show method for the list. response_to do | Format | Format.html # show.html.erb format.xml {Render: xml = & gt; @ltest} end Although it provides the ltest object, subtitles related to ltest do not render. How can I do this? & lt; Ltest & gt; .... & lt; Sub_test & gt; ... & lt; / Sub_test & gt; & Lt; Sub_test & gt; ... & lt; / Sub_test & gt; & Lt; / Ltest & gt; I tried to present it using a sequence like this: But it creates two xml documents instead of subtitests with one instead of one ltests Embedded in Any suggestions on how I can do this? You do not have to use builder or ARB for this. You can get whatever you want in the controller (at least I run the train 2.3.4). Like: format.xml {render: xml = & gt; @ Ltest.to_xml (: included = & gt;: sub_tests)}

javascript - Determine whether an array contains a value -

इस सवाल का पहले से ही एक उत्तर है: 35 उत्तर मुझे यह निर्धारित करने की आवश्यकता है कि क्या मान एक सरणी में मौजूद है। मैं निम्नलिखित फ़ंक्शन का उपयोग कर रहा हूं: Array.prototype.contains = function (obj) {var i = this.length; जबकि (i--) {if (यह [i] == obj) {वापस सत्य; } } विवरण झूठा है; } उपर्युक्त फ़ंक्शन हमेशा झूठी देता है। सरणी मान और फ़ंक्शन कॉल निम्नानुसार है: arrValues ​​= [ "सैम", "ग्रेट", "नमूना", "उच्च"] चेतावनी (arrValues.contains ("सैम")); var में = समारोह (सुई) {// प्रति कल्पना, नाएन की पहचान करने का तरीका यह है कि यह अपने आप के बराबर नहीं है var findNaN = सुई! == सुई; Var indexOf; यदि (! FindNaN & amp; amp; amp; amp; amp; प्रकार; Array.prototype.indexOf === 'फ़ंक्शन') {indexOf = Array.prototype.indexOf; } और {indexOf = फ़ंक्शन (सुई) {var I = -1, अनुक्रमणिका = -1; के लिए (i = 0; i & lt; this.length; i ++) {var आइटम = यह [i]; अगर ((FindNaN & amp; आइटम! == आइटम) || आइ...

Is there any difference between DateTime in c# and DateTime in SQL server? -

क्या SQL सर्वर में दिनांक # समय और दिनांक समय के बीच कोई अंतर है? दिनांक समय मान प्रकार 12:00:00 मध्यरात्रि, 1 जनवरी, 0001 एननो डोमिनि (आम युग) 11:59:59 अपराह्न, 31 दिसंबर, 99 99 एडी (सीई) से लेकर मूल्यों के साथ दिनांक और समय का प्रतिनिधित्व करता है। ) समय मान 100-नैनोसेकंड इकाइयों में टिक्सेस नामित होते हैं, और ग्रेगोरियन कैलेंडर कैलेंडा में 12:00 मध्यरात्रि, 1 जनवरी 0001 एडी (सीई) से एक विशेष तारीख टिके की संख्या है तिथि सीमा: 1 जनवरी, 1753, 31 दिसंबर, 99 99 के माध्यम से सटीकता: .000, .003 की वृद्धि करने के लिए गोल, या .007 सेकंड

get link in google map info box -

How to "Send to a Friend", "Print Map", and "Get Directions" link in the marker different links How to get the information box related to that marker. Is there an API to get this type of link? ?? Thanks in advance. There is nothing clear in the Google Maps API that will show maps.google.com InfoWindow, The functionality must be built on its own. For the functionality you've specified, you can do the following: Send to Friend - The user has something to email to your site URL at the specified email address. Server side code? Print map - a link to a cut-down page that displays an image (for equal space). There will be a better and more predictable job of printing an image from different browsers, which they expect from Google Maps DIV. Get Directions - You can use the object at the address of Gocoded and display driving directions between those two points (with more instructions on the map).

gwt - Cgi scripts returning data as html/text.. How safe is that? -

When using a post method, it is understandable to return data when a form is submitted. It seems that only html / text can be returned in general ... I use goblins on the client side and it seems that if plain / text is returned then it does not work properly. Question: How safe is the HTML / text to return all text types using? Is it possible that some data could break gwt or formpanel? Besides, how safe is the return of some Jason format? I think it is safe to not return binary data in this way. I have not tried. This depends on the protocol you are using. GWT could use GWT RPC, SOAP, XMLRPC, JSON or almost anything I do not know why it would not be safe to return text / html content types. Do not use eval () in your JavaScript for JSON, unless it is a server that you trust. Javascript JSON parsers are available which are safer and faster than eval (). It is expected that the original JSON parser support will be included in the next ECMAScript standard. To send binar...

Python base 36 encoding -

How can I encode an integer with base 36 in Python and then interpret it again? "If not (number, (int, long)): Increase typeError ('number must be an integer' ) Base36 = '' sign = '' if number & lt; 0: signal = '-' number = - if 0 = lt; number & lt; number (number), i = divmod (number, lane (alphabet) ) Base 36 = alphabet [i] + base 36 return sign + base 36 def base 36 decode (number): return int (number, 36) print base 36 coded (1412823931503067241) print base 36 decode ('AQF8AA0006EH')

java - An idea about developing an agile wall web tool -

I'm thinking of developing a web app to visualize an agile wall. The reason for this is that the project I am working in is in many Distributed teams, so it is very difficult to share information on Teek Walls between the teams. I know that some tools like cumin have the functionality of the playful wall, which I have to do that is a dedicated fire wall web app that may possibly be integrated with those popular project management systems Is this idea wise and interesting for you The P? Please tell me whether you get a better idea about sharing a tight wall in distributed teams. Thanks John I'm not sure the wall of the card is a small screen But how well does it translate. I have seen such a similar implementation () which I was not impressed. One of the drawbacks is that the cards are not unreadable until you click on them. If this is the case, the tools used by most business vendors to get the least benefit to the stories, which you can see in the headline on the ...

c# - Check if a value is in a collection with LINQ -

मेरे पास एक वर्ग "कर्मचारी" है, इसमें "TypeOfWork" का एक IList & gt; सार्वजनिक वर्ग कर्मचारी {सार्वजनिक वर्चुअल आइएलआईटी & lt; टाइपऑफ़वर्कर & gt; TypeOfWorks {प्राप्त करें; सेट; }} सार्वजनिक वर्ग TypeOfWork {सार्वजनिक आभासी ग्राहक ग्राहक {get; सेट; } सार्वजनिक वर्चुअल Guid Id {get; सेट; } सार्वजनिक वर्चुअल स्ट्रिंग Name {get; सेट; } सार्वजनिक वर्चुअल बूल आईएक्टिव {प्राप्त; सेट; }} सहेजने से पहले, मैं यह जानना चाहता हूं कि "टाइपफ्यूड" (एक गिड) पहले से ही "टाइपऑफ़वर्क्स" संग्रह में है। मैंने यह कोशिश की: var res = कर्मचारी में टाइप करें। टाइप ऑफ़वर्क्स जहां p.Id == नया Guid ("11111111-1111-1111-1111-111111111111") चुनें p; और इसे करने की कोशिश की: bool res = employee.TypeOfWorks.Where (f = & gt; f.Id == नया Guid ("11111111-1111 -1111-1111-111111111111 "))। गणना ()! = 0; दृश्य स्टूडियो के "तत्काल विंडो" में लेकिन मुझे त्रुटि मिली: अभिव्यक्ति में दोनों प्रश्नों में क्वेरी अभिव्यक...

animation - UITableView display distorted before setAnimationTransition during view swap -

Greetings! I am trying to borrow visual flip concept from Apple's The Elements sample app. This sample employs a container UIView in which you can see between two sub-views Can swap. The flip is achieved by setting the setAnimationTransition: forView: cache: and each subview. Generally, flip works and I have two scenes (with a UITableView header / footers, and a MKMapView ). However, different (consecutively selected) areas of my table view have been erased (using the background color of the table view), and why not before I have flipped the table view and Understands I can not find anything unusual about the table view in the context of drawing. In the case of sample app, the scene has been drawn from scratch, but I hope it will not work for it! I'm really hoping that this is something simple - maybe a UITableView property setting? Thank you for the appreciation of the clue! Update: When I slow down the animation, I get the information to get upset (th...