Posts

Showing posts from August, 2014

postgresql - Creation of TEMPORARY TABLE in Slave Data Base -

I have a two data base server of PostgreSQL master and The second salve server which is only in the reading bar, I have written some functions, which make the temporary table within a function. Now my question is that slave slave is possible to run all those functions in the server. If this is possible then how is it possible? Thanks in advance. All such connections are strictly read only; Even temp tables can be written If you want a replication to support the typing operation, then you have something similar to the trigger-based replicas, like Slanny or Bacardo Want to

Sample Extjs5 App for Unit testing with Jasmine and Karma-runner -

I am new to excarges 5 and am trying to run jasmine unit test cases with a karma-runner. Although I am fully able to apply Ext4.2 but this process is not working for Extras 5. I've goggle it but no useful link was found if someone is already code executed for the ex 5 app please share. Any help is highly appreciated. Thanksgiving This is the trick that requires the necessary exogues classes before to properly load. Make sure that you include the following in your karma.conf.js // We need to add an element with the 'App loading indicator' because [app.js] .launch ( ) Is expecting it and tries to remove it / Karma normally starts testing after all the files specified in 'Karma' normally. loaded up. // We only want to start after the application of Bootstrap of Sna Touch / EXJSE // 1. We override the temporary '__carm __loaded' function / 2. When the extension is created we can load the '__carm __loaded' function manually in kernel...

unity3d - How to modify RectTransform properties in script [Unity 4.6 beta] -

Image
विभिन्न कोडों की कोशिश की, डॉक्स पर देखा और चारों ओर खोज की, लेकिन नहीं कर सकता जवाब ढूंढें ... उदाहरण के लिए। मेरे पास एक छवि है और मैं रनटाइम के दौरान चौड़ाई और ऊंचाई बदलना चाहता हूं। सार्वजनिक गेम ऑब्जेक्ट छवि 4; Image4.GetComponent & lt; RectTransform & gt; ()। Rect.Set (0,0,100, 300); जो काम नहीं करता है और image4.GetComponent ()। Rect.y केवल प्राप्त किया जाता है, तो रनटाइम पर बदला नहीं जा सकता। मैंने भी कोशिश की है: image4.transform.localScale.y = 15; जो या तो काम नहीं करता है। रनटाइम पर आकार बदलने का सही तरीका क्या है? आप मुझे या तो जेएस या सी # में एक उदाहरण दे सकते हैं, कोई फर्क नहीं पड़ता। एक दिन शोध मुझे एक विस्तार मिला जो हमें नए यूआई सिस्टम से निपटने में मदद कर सकता है। यदि आप चाहें तो इस विस्तार में सुधार कर सकते हैं। सार्वजनिक स्थिर वर्ग RectTransformExtensions {सार्वजनिक स्थिर शून्य SetDefaultScale (यह RectTransform trans) {trans.localScale = नया वेक्टर 3 (1, 1, 1); } सार्वजनिक स्थिर शून्य SetPivotAndAnchors (यह RectTransform ट्रा...

r - Dimple change axis title -

I am hosting a graph with RCHHT on the website and want to change the title of X-axis. I'm using it: d1 $ setTemplate (afterScript = "& lt; script> myChart.draw () myChart.axes [0] .titleShape.text ('x- Axis title ') myChart .xes [1] .titleShape.text (' y-axis title ') myChart.svg.append (' text ') .attr (' x ', 40) .attr (' y ', 20) Style ('text-size', '100%') However, this does not seem to work. Now the names of the variables are shown on the website as Axis Labels. But when I run full slot in Rustidio, this axis title is changed The question is: How can I fix this? Thank you in advance. AD I have solved this today. The exact problem that I do not know, however, I tried to run this script in R which works fine But since the graph has been hosted on any page, I have put the script between the HTML code which is more logical in my opinion and this work The literacy. AD

gwt - Create custom widget and allow nested sub-elements in UiBinder -

I want to create a custom widget that allows the UIB to specify its nested sub-element in inder like Dockpanel may be south , answer , etc. I looked at the source code of DockPanel but found a solution. & lt; My: LeftRightToolbar & gt; & Lt; Left & gt; & Lt; Six buttons / & gt; & Lt; / Left & gt; & Lt; True & gt; & Lt; Six buttons / & gt; & Lt; / True & gt; & Lt; / Mary: LeftRightToolbar & gt; My custom & lt; Left & gt; and & lt; Right> can have multiple sub-nodes update: code>? Code if I add more than one widget does not compile. First of all - and lieutenant; Left & gt; and & lt; True & gt; should be in the same namespace as the LeftRightToolbar , so it and & lt; My: right> . Secondly, you need to annotate two methods in LeftRightToolbar with comment: @iChild (tagname = "left") Add Zero (widget widget) {left.add (widget); } @IiChild (...

sql - JdbcPagingItemReader with multiple select query -

मैं एक जटिल प्रश्न के साथ एक JdbcPagingItemReader लिखना चाहूंगा जैसे: xxx का चयन करें Yyy से जहां a = b और c = (yyy से max (f) का चयन करें, जहां a = b) ... पैरामीटर के साथ। यहाँ मैं कैसे मेरी क्वेरी लिखी: & lt; बीन वर्ग = "org.springframework.batch.item.database.support.SqlPagingQueryProviderFactoryBean" & gt; & Lt; संपत्ति नाम = "डेटा स्रोत" रिफ = "डेटा स्रोत" / & gt; & Lt; संपत्ति नाम = "चयन करें" मूल्य = "चयन ओह्रफ़्नम" / & gt; & Lt; प्रॉपर्टी नाम = "सेक्लोज़" मान = "से ऑर्डरहार्ड_ऑल" / & gt; & Lt; प्रॉपर्टी नाम = "whereClause" value = "WHERE ग्राहक_आईडी =: CUSTOMER_ID और ohentdate = (SELECT MAX (ohentdate) से orderhdr_all WHERE customer_id =: CUSTOMER_ID)" / & gt; & Lt; प्रॉपर्टी नाम = "सॉर्ट कि" वैल्यू = "ओह्रफ़्नम" / & gt; & Lt; / सेम ​​& gt; लेकिन यह निम्न त्रुटि बढ़ाता है: java.sql.SQLException: ...

c# - How can I show a messagebox or loadingbox while doing a loop? (Code may be blocked and after 25 seconds continue) -

I already have this but it does not work ... I have to check whether a little more than PLC . If it is still high then I need to wait 5 seconds and check it again. Now I am trying to find something so that there are some visual feedback for the user. I want to 'wait ...' in a text box, after waiting for the score to rise for 5 seconds. I tried a lot of things but it does not seem to work. Most of the time this GUI is hanging without updating 25 seconds and then it is continuing ...: // Check in advance whether the PLC bit, which says that there is still an order active, // is still set if this is the case, we wait a few seconds Var bitorder = main POGet Value (jbmis.IO_GET_INPUT, "Boxman Installed"); Int counter = 1; String loading point = ""; Loadtimer.Tick + = TimerTit; Loadtimer.Interval = (int) TimeSpain Foamseconds (5). Total EmilisCand; Loadtimer.Start (); Loadtimer.Enabled = true; // stopwatch SW = new stopwatch (); While (Bitterar! = 0 & a...

django - NameError while using Q object in a model method -

वर्ग ब्लॉगलिस्ट (मॉडल। मॉडल): शीर्षक = मॉडल। धरफिल्ड (max_length = 100) def get_first_article_image (स्वयं) : If self.bloglist_articles.exists (): bloglist = self.bloglist_articles.filter (Q (image_link! = '') | Q (image_file! = '') ## & lt; --- त्रुटि रेखा) .order_by ('- Id ') [: 1] .get () अगर bloglist.image_file: return' /'.join([settings.MEDIA_URL, bloglist.image_file.name]) अगर bloglist.image_link: return bloglist.image_link वापस कोई भी वर्ग BlogArticle (मॉडल (मॉडल = "", रिक्त = सच) image_link = models.CharField (max_length = 2000, रिक्त = सच) image_embed = models.CharField (max_length = 2000, रिक्त = सत्य) अगर मैं टेम्प्लेट में कॉल करता हूं & lt; a href = "{{bloglist_obj.get_first_article_image}}" & gt; {{bloglist.title}} & lt; / a & gt; मुझे मिल रहा है नाम पर त्रुटि / वैश्विक नाम 'image_link' परिभाषित नहीं है मैं क्या कर रहा हूँ गलत? क्यू ऑब्जेक्ट्स के लिए सिंटैक्स बिल्कुल फि...

c++ - how to convert map into set -

I have found some issues trying to change my map to a set, Chinson "object found: std :: map & lt; Std :: string, Artiste * & gt; M_interpretes; Here's how I add my * artist to my map: Zero Chanson :: addArtiste (artist * ) Throw (ExceptionArtiste, ExceptionLangueIncompatible) {if (a = zero!) {If (get-langue () to a => this-> getLangue ()) {m_interpretes.insert (pair , Artist *> (To do one & gt; union no (), a)); // m_interpretes [a-> gt; Union ()] = a; } And (exceptions are incompatible) (one, this); }}} Set & lt; Artiste * & gt; Chanson :: getArtistes () const {// set & lt; Artiste * & gt; Machin; Return Set & lt; Artiste * & gt; (M_interpretes.begin (), m_interpretes.end ()); } I encountered this error due to this function: Error C2664: 'std :: pair & lt; _Ty1, _Ty2> std :: set & lt; _Kty> :: Insert (Artist & amp): Impossible De Convert LE Paramester 1D Constitute :: Pair & lt; _...

jquery - Abort Interval when states finished Javascript -

I am trying to terminate my interval when all the states received from the requests are in the state called "success" i interval It has been shut down correctly but it seems that they have been discontinued very soon, I am not a Javascript expert, so there is a problem with my code, if anyone is looking at the $ request received and "Success calculation Is there a synchronization problem between "? var tid = setInterval (update_status, 2000); Function update_status () {var task_table = $ ("# task_table"); Var Task_table_roose = $ (Task_table) .find ('tr'); Var work_table_ length = Task_table_rov.label; Var id_table = []; Var state_ counter = 0; // Find the ID of the view table and stock them for id_table (var i = 0; i & lt; function_ table_rows.length; i ++) {id_table.push (task_table_rows [i] .id); } // Request and update the term for the job (var i = 1; i & lt; id_table.length; i ++) {state_counter = change_state (i, task_ table_ro...

jquery - Expanding div width -

O people, I have a small problem. I have an ID whose ID ' #content ' and the other with an ID of '# Chat' . I used jQuery to make Chat and Divide slides up and down on a command by clicking on a link, but now when I chat is down, I want to increase the Content Devices by 90%. Here's the CSS: #chat {width: 20%; Height: 84.5%; Background color: # 000; Limit: 1 px solid #fff; float right; Correct: 0; Bottom: 0; Margin top: 0; Status: fixed; Z-index: 3; } # Content {width: 70%; Height: 600px; Background color: #fff; Bottom: 0; Margin Top: 20px; Swim left; Margin-left: 5%; } And here's jQuery: $ (document) .ready (function () {$ ('# chat'). Hide (); $ ('. Chatgroup'). Click (function () {$ ('# chat'). Toggle ('Slide');});}); You can add a class to the chat panel to determine whether it has been opened. $ ('chatchoggle'). ($ ('(Chat)'. ($ ('' Chat ''). Hcl ("opened")) {$ (...

jquery - grabbing Reddit data via javascript -

I came to this post, which is a lot that I want to do: I modified JSField which has been read ( NSFW ): $ GetJSON ("http: //www.reddit.com / r / pics / .json? Jsonp =?", Function (data) {$ .each (data.data.children, function (i, item) {console.log ($ ('. Score.likes') .html (item);});}); My goal is to collect the total amount of upturn on a given page. When you run it and see the console, the objects are returning, but not the actual number. I thought that the number of votes will return only by calling HTM on selector but apparently wrong. Any better way to do this? you console.log (item) to see returned data By using we can see that item.data.score returns a post score. $ GetJSON ("http://www.reddit.com/r/pics/.json?jsonp=?", Function (data) {$ .each (DataData children, jobs (i, items) {console.log (item. Data); $ ('& lt; div / & gt;', {text: 'post' is a digit of '+ item.data.permalink +' + item is...

Ruby on Rails and gmap location -

"itemprop =" text "> I can come here to ask you some information or to help me to try what I want to do. Here is what I have to realize: I have a website and on that I have some places in the database (latex and longitude saved). I allow users to click on a button, display the map with a marker on their actual status, and other markers that they represent places from the database. I find some tools like that. With this I can show user status but I do not know how can I display the position of locations in my database. If you have any ideas or examples. Thank you. (Ps: Sorry for my English) I have created a similar app with Spring and Java What to do placemark make JS objects and pass them on Google Maps API. You can also pass the map size to determine the scope of the map back to the user. To set nearby locations, simply create some Ruby / Rail code to limit the distance of locations from user location. Obtain user location Decide who plac...

apache - URL rewrite fails after adding line to htaccess -

I have surrounded a small problem with my .htaccess and I can not fix it RewriteEngine # Force on SSL revocconde% {REQUEST_URI}! ^ / (Application | users) / revert rules ^ 5 / (.**) (/.) Html $ / ~ end / index.php?id=5& Page = $ 1 & Title = $ 2 Rev. Revenue ^ (. *) / (. *) Html $ / ~ ond / index.php? Id = $ 1 & titel = $ 2 The above example works outright with a URL: www.domain.com/123/title Html However, I want to add another rule: RewriteRule ^ (. *) $ /~ond/index.php? ID = $ 1 [L] When I add snippets to the bottom of my HTX, this will return the internal server error 500. The URLs used: www.domain.com/This_Is_a_Test What am I doing wrong? This should be a very small problem. Thank you. This is generating 500 server error due to infinite looping only non-files, non-directory requests To allow RewriteCond to stop it, stop: RewriteCond at RewriteEngine% {REQUEST_URI}! ^ /? (Application | users) / revert rules ^ 5 / (.***) Html $ / ~ /ondexindex.php...

spring integration - stored-proc-outbound-gateway parameter and results handling -

I need to implement an Oracle stored procedure based on the incoming message, some are shown below. There is such a method in the incoming message that returns to the parameters but I do not get any way to tie it together. & lt; Int-jdbc: stored-proc-outbound-gateway id = "dbPollar" data-source = "someDtaSource" request-channel = "triggerChannel" reply-channel = "logjet" stored-procedure-name = "some package. Gt; & Lt; Int-jdbc: sql-parameter-definition name = "row" direction = "in" type = "ROWID" /> & Lt; Int-jdbc: sql-parameter-definition name = "error" direction = "OUT" type = "NVARCHAR" /> & Lt; Int-jdbc: sql-parameter-definition name = "desks" direction = "OIT" type = "NVHAR" /> & Lt; Int-jdbc: Returning-name = "referee" line-mapper = "rowmapper" /> & Lt; / Integer-JDBC: stored-proc-out...

xml - Sum of number with XSL Transformation -

I want to calculate the balance of the customer's balance. This is my XML code: & lt; Bank & gt; & Lt; Accounts & gt; & Lt; Deposit Accounts & gt; & Lt; Deposit Account ID = "d1" interesse = "0.03" & gt; & Lt; Balance & gt; 2500 and lt; / Balance & gt; & Lt; / Deposit-account & gt; & Lt; Deposit Account ID = "d2" interesse = "0.03" & gt; & Lt; Balance & gt; 15,075 & lt; / Balance & gt; & Lt; / Deposit-account & gt; & Lt; / Deposit accounts & gt; & Lt; Bank accounts & gt; & Lt; Bank Account Id = "C1" & gt; & Lt; Balance & gt; 4025 & lt; / Balance & gt; & Lt; / Bank account & gt; & Lt; Bank Account Id = "C2" & gt; & Lt; Balance & gt; -125 & lt; / Balance & gt; & Lt; / Bank account & gt; & Lt; Bank-Account ID = "C3" & gt; & Lt; Balance...

c# - NullReferenceException on object initialized with FormatterServices.GetUninitializedObject -

I'm joking a DbContext, and in my tests, I want to make sure institutions will be marked for extinction. As I have marked each object in my laughing context, I track each unit with a static dictionary: public DbEntityEntry > FormatterServices.GetUninitializedObject (typef (DbEntityEntry & lt; T & gt;)); Var state = existence [unit]; Entry. State = state; Return entry; } Public Zero SetEntityState (Object unit, System.Data.EntityState state) {entityStates.Add (unit, state); Entry (unit) .set = position; } Private Stable Dictionary & lt; Object, Entitestate & gt; Unit Location = New Dictionary & lt; Object, Entitestate & gt; (); I did not get instantiated with DBTTinTree Activator.CreateInstance () , so I have instantiated with FormatterServices .GetUninitializedObject () . The problem is this line: entry.State = state; In trying to assign results of this property: NullReferenceException: object reference is not set to an instance o...

ios - How to check if a character is supported by a font -

I am working on an app with a text field. The text written in this field will be printed and I have an issue with some characters like Emoji, Chinese characters ... because the fonts do not provide these letters. That's the reason I want to get everyone (font is downloaded so I can deal directly with the file or with a UIFont object). provided character by a font I have about that is heard CTFontGetGlyphsForCharacters but I'm not sure this function is what I want and I can not do it Here is my code:. Ktfntrf Fontref = Ktfontkreatavitnme ((Kfstryngrefa) Fontkfontoname, Fontkpointsize, null); NSString * characters = @ "🐯"; // Emoji character NSUInteger count = letters.length; CGGlyph Glyph [Calculation]; If (CTFontGetGlyphsForCharacters (fontRef, (constant unichar *) [characters cStringUsingEncoding: NSUTF8StringEncoding], glyph count) == false) NSLog (@ "CTFontGetGlyphsForCharacters failed."); here CTFontGetGlyphsForCharacters return fal...

How to display an alert from server script in Siebel? -

We have a Siebel 7.8 application, and there is a requirement to show a message when the user record meeting saves some conditions Something like this: function BusComp_WriteRecord () {if (conditions) {TheApplication (). RaiseErrorText ("Very Important Message"); }} The problem is that I can not use RaiseErrorText because it prevents further event execution. This leaves me with alert or SWEAlert (unless there is no other option that I do not know). Both are supported in the browser script, and there is no browser version of the BusComp_WriteRecord event. This means that I must keep my beliefs in the server script event, and any By the way, invite a browser script function that shows the message. Server script (in business component): function BusComp_WriteRecord () {if (conditions ) {TheApplication (). SetProfileAttr ("MyMessage", "Very Important Message"); Browser script (in an applet that always loads before BC): function appl...

python - Pymongo: Bulk update with $setOnInsert error -

I am trying to update the bulk, while at the same time maintaining the position of a particular area. In my code I am either making a document or adding 'stuff' to the list. For data in D: '' 'push': {'content': 'something'}, ' '' 'Set': '' '$ setOnInsert': {'status': 0}, '$ inc': {'seq': 1}}) bulkop.execute () However, when I try this I get an error error: pymongo.errors.BulkWriteError: Batch Ops errors occurred This works fine without $ setOnInsert: {'status' : 0} Extra, but I need to make sure the state is not updating.

dagger error: Duplicate bindings for java.lang.String -

I'm new to the knife and I'm studding small app for Android. I am trying to use retrofit for REST requests at http and https for two servers (dev and prod). @ dagger.Module (override = true, library = true, full = false) public class DebugApiModule {private static final String SRV = "dev.mysrv: I debug flavor where the module Is .com "; Private static final string HTTP = "http: //"; Private static final string HTTPS = "https: //"; Public Fixed Last String API_URL = HTTP + SRV; Public Static Last String API_URL_SECURE = HTTPS + SRV; Provide @Provides @ Sittington @ API String (AP) {return API_URL; } @Provides @Singleton @ApiSecureEnter APIApric () {Return API_URL_SECURE; }} Here I ordered two wire'm annotations used to separate, but I get the error: error (23, 50) error: binding java.lang.String duplicate override module (s) - can not override an override: com.myapp.common.api.DebugApiModule.provideApi () com.myapp.common.api.DebugA...

android - Web page won't fully load in blackberry device -

I have an asp.net application when I try to load some web pages on different devices, Different results are available. In Blackberry Q10, it only loads content that fits in the screen size. I can not scroll down and the page does not move. It works perfectly with the iPhone 5s and Chrome browsers. Can anyone tell me how similar designs for all devices are the same design? Thank you. this & lt; Forms & gt; Tag I removed it and loaded the page fully.

Keep Excel from converting dates when opening/saving CSV -

Is there a way to set a default date format in Excel in four digit years? Our process achieves the CSV files generated by external processes (like SAS, SPSS) and reads in another application. It is sometimes necessary to open, edit and save a CSV, for example to remove the column of sensitive data, correct the outdoors. The challenge is that Excel custom dates read in CSV (e.g. 8/23/2013 ), converts them into dates and displays them with two digit years So when you save it, the dates are stored as two digits, thus facing the Y2K problem itself. I know that it is not possible to stop recognizing dates in Excel (at least by specifying the format for each column using text import wizard from file or audio without changing CSV). But may it be possible to get your default date format to use four digits? Select current select "Preferences" Select "Edit" Li> Select Select Select From the Windows Start menu, click on the control panel ...

java - Select all beans where member variable condition is true -

मैं सभी व्यक्ति ऑब्जेक्ट मुद्रित करना चाहूंगा जहां isFoo == true । PersonServlet व्यक्ति @Entity सार्वजनिक वर्ग के व्यक्ति के लिए हालांकि मुझे नीचे कोड पूरा करने का तरीका नहीं है सीरियलज़ेबल {@Id @GeneratedValue निजी लांग आईडी; लागू करता है; निजी बूलियन फू; निजी बूलियन फूबार; सार्वजनिक व्यक्ति () {} सार्वजनिक व्यक्ति (बूलियन फू, बूलियन फूबर) {this.foo = foo; This.fooBar = fooBar; } सार्वजनिक लांग आईआईडी () {रिटर्न आईडी; } सार्वजनिक शून्य सेट आईडी (लांग आईडी) {this.id = id; } सार्वजनिक बूलियन getFoo () {रिटर्न foo; } सार्वजनिक शून्य सेटएफू (बूलियन एफू) {this.foo = foo; } सार्वजनिक बूलियन getFooBar () {वापसी fooBar; } सार्वजनिक शून्य सेटफूबार (बूलियन फूबर) {this.fooBar = fooBar; }} PersonServlet सार्वजनिक शून्य printAllFoo () {EntityManagerFactory ईएमएफ = (EntityManagerFactory) getServletContext ()। GetAttribute ( " ईएमएफ "); EntityManager em = emf.createEntityManager (); CriteriaBuilder cb = em.getCriteriaBuilder (); CriteriaQuery q = cb.createQuery (व्...

python - Fail to fetch the 'next' parameter in query-string using Tornado's self.get_argument() method? -

As far as I've learned, storm is a "next" The query string parameter, which automatically represents the source URL, causes redirection. Therefore, I am trying to make it post () to . Login handler like this: square login handler (tornado.web.RequestHandler): def find (auto): pass #some code def post (self): [...] #some code here: Confirm User Identification # If the verification is sent back to itself .set_secure_cookie ("username", user name) # The user is returned back to the page, then see himself. Self.redirect ("next", "/")) But redirection does not work well. It always redirects the user back to the URL " / ". It seems that no "Next" argument has been found, and get_argument () method always returns the default URL " / ". To prove my suspicion, I tried to log out of self.request.arguments using Python's logging mechanism and end Confirmed in: There is no "next"...

query and order last rows with sqlite in android CursorLoader -

How do I order the last lines in a cursor loader with a query? The problem is that I order (in order ordered by the timestamp) in descending order to get the last 20 rows but that means that the lines start with the oldest, then I want to put the rows in the cursor ascending order, ie. to select * (Timestamp DESC limit 20 by message order selection) * Timestamp ASC by command: I like the subquery I found some solutions on the Internet using P> but I do not think how can I pass such a subquiry to the cursorloader constructor. Is there any solution to this problem or do I need to implement the query in my ContentProvider This is my code: @Override Public Loader & lt; Cursor & gt; OnCreateLoader (integer id, bundle args) {CursorLoader loader = new CursorLoader (getActivity), DataProvider.CONTENT_URI_MESSAGES, Null, DataProvider.COL_CHATID + "=?", New String [] {chat_id}, DataProvider.COL_TIMESTAMP + "DESC limit 20 "); Return loader; } @Overri...

convert user input date to mysql in codeigniter -

Iam में नया codeigniter । मैंने प्रारूप को dd-mm-yyyy से mysql प्रारूप yyyy-mm-dd के साथ एक उपयोगकर्ता इनपुट तिथि बदलने की कोशिश की। लेकिन मुझे यहां सिर्फ फ़ंक्शन मिलें I क्या इसे करने का कोई तरीका है? कृपया मदद करे। अग्रिम धन्यवाद .. पीएचपी ऐसा कर सकते हैं, आपको कोडिगइनेटर सहायक की जरूरत नहीं है प्रतिधारा तिथि ('वाईएम-डी', स्ट्रॉटोमैन ('18 -10-2014'));

c# - Why doesn't this Linq query bring back distinct (unique) results? -

Image
मेरे पास निम्न प्रश्न हैं: सूची & lt; मीटिंग & gt; बैठकों = (एम से crdb.tl_cr_Meetings में शामिल होने के m.MeetingID पर crdb.tl_cr_Participants में पी p.MeetingID जहां p.TimeOut == बातिल नया बैठक {MeetingID = m.MeetingID, MeetingName = m.MeetingName, HostUserName = मी चयन बराबर होती है। HostUsername, BlueJeansMeetingID = m.tl_cr_BlueJeansAccount.MeetingID, StartTime = एम। स्टार्टटाइम, प्रतिभागियों = (पीआर में crdb.tl_cr_Participants में जहां pa.MeetingID == एम.मीटिंगिंग का चयन करें pa.tl_cr_BlueJeansAccount.DisplayName) .ओलिस्ट ()})। )।सूची बनाने के लिए(); और मैं इसे अद्वितीय बैठकों की सूची वापस लाने के लिए चाहता हूं किसी कारण से इसे वापस लाता है हर भागीदार के लिए एक प्रवेश, भले ही डेटा समान होता है: मैं एक समूह कहीं याद आ रही है संपादित करें बैठक वर्ग वर्तमान में बहुत ही बुनियादी है: सार्वजनिक वर्ग मीटिंग {सार्वजनिक पूर्ण मीटिंगआईड {प्राप्त; सेट; } सार्वजनिक स्ट्रिंग मीटिंगनाम {get; सेट; } सार्वजनिक स्ट्रिंग HostUserName {get; सेट; } सार्वजनिक डेटटाइम स्ट...

android - Button below listView in DialogFragment -

Image
I am trying to list a list code containing the list in the list and a button below that list view. The button should always appear, this means that you can scroll through the ListView but the button always looks. The dialog should also adjust its height, which means that if there are only a few elements (1 or 2 elements) in the list view, DialogFragment should not fill the entire height of the screen ... This is my code: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" & gt; & Lt; LinearLayout android: orientation = "vertical" android: padding = "@ Dimen / fragment_default_padding" Android: Layout_width = "Match_parent" Android: Layout_height = "Wrap_content '& Gt; & Lt; imageView Android: la...

java - Selenium - Web Driver Wait -

is that I usually write to find an element with name = "email" WebElement emailInput = (New WebDriverWait (Driver, 10)). Unless (required conditions .resenceOfElementLocated (by .name ("email"))); What if any element of the board body has been seen below WebElement modalBody = enrollForm.findElement (by .className ("modal-body")) ; Now, if I wanted to get a specific weblet in any other web analytics sort ... WebElement a = driver.findElement (By.id ( here b is an element within a / code>. There are many other divisions -> ChocolatesMicigial I have to do this, but with WebDriverWait I have Thread.sleep but this one There is a very bad method. Here is what I have tried (but I have a Mother was trying to slow down a web element that does not make any sense). WebElement emailInput = (New WebDriverWait (modalBody, 10)) Unless (required Conditions PresenceOfElementLocated (.name ("email")); How to get any...

node.js - Handle response using transfer-encoding: gzip,chunked -

After I am trying to handle the response using the transfer-encoding. Gzip, chunked You run the code given below (like node server.js ), you should get "foobar" in your console but this process is hanging is. var requires HTTP = ('http'); Var request = requirement ('request'); Var requires ZLib = ('zlib'); Var server = http.createServer (); Server.on ('request', function (req, res) {res.setHeader ('transfer-encoding', 'gzip, chunked'); ZLib.gzip ('foo', function (error, buffer) {res.write (Buffer); ZLib.gzip ('bar', function (error, buffer 2) {res.write (buffer2); res.end ();});});}); Server.listen (3001); ({Gzip: true, url: 'http: // localhost: 3001'}, function (error, feedback, body) {if (error) console.error (error); console.log (body);}); I checked the code with curl localhost: 3001 and it is responding to "phobor" as expected, so can handle the node. Transfer-encoding: gzi...

jquery - reusing snap.svg loaded svg into different elements -

I am trying to load an SVG using snap. Svg and add many SVG elements on one page. I can only work on loading this one instance, but when I add it to several elements it fails. s1 = snap ('# step1'); S2 = Snap ('# step2'); S3 = Snap ('# Step3'); Snap.load ('img / steps.svg', function (l) {s1.append (l); s2.append (l); s3.append (l);}); There is a JSfield snap.load ('https://rawgit.com/VengadoraVG/moving-to-gnulinux/master/img/tux.svg', function (l) {var g = l.select ("g") ; S1.append (g.clone ()); s2.append (g.clone ()); s3.append (g.clone ());}); In your bedel you are loading an SVG (Tecus SVG) in SVG Elements (# Step1, # Step2, # Step3). Simply select the first g and clone it every time you want to add it.

Sqrt function needs optimization advice -

I have a function set, which can calculate the square root of a number. I want a suggestion about optimization advice or speed, or improvement of this code. I code is given below: Unsigned characters AcountDigits (int v) {unsigned RR = (V & gt; = 1000000000)? 9: (V> = 100000000)? 8: (V> = 10000000)? 7: (V> = 1000000)? 6: (V> = 100000)? 5: (V> = 10000)? 4: (V> = 1000)? 3: (V> = 100)? 2: (V> = 10)? 1: 0; Returns R + 1; Unsigned int ASqrt_LastDeduction (unsigned int x, unsigned int y) {unsigned int result = 10 * y; If (x = 0; i--) {wgrp [i] = whole% 100; Absolute / = 100; } For (i = 0; i & lt; = (ddgcn / 2); i ++) {DGRP [i] = decim% 100; Decim / = 100; Unsigned int lastDeduction = 0; Unsigned four deductible = 0; Unsigned int balance = 0; Unsigned int y = 0; Unsigned integer tempInt = wgrp [0]; Unsigned int wRoot = 0; For (i = 0; i & lt; = (wdgcn / 2); i ++) {final deduction = escort_last deduction (tempInt, y); Deduction = (final deduction + 1-...

Conditional sign up with rails 4 -

I have a small problem with my application. Instead of giving my visitors the option of signing, it is redirecting everyone who immediately visits my application to sign in or unable to navigate to other tabs Are there. For further explanation in my application.html.erb file, I have the following code: if user_signed_in? & Gt%; & Lt; Strong> & Lt;% = current_user.email% & gt; & Lt; / Strong> Logged in as. & Lt; Br> & Lt; Br> & Lt;% = link_to 'Edit Profile', edit_user_registration_path ,: class = & gt; 'Nevar-link'% & gt; | & Lt;% = link_to "logout", destroy_user_session_path, method :: delete, class = & gt; 'Nevar-link'% & gt; & Lt;% else% & gt; & Lt;% = link_to "Sign up", new_user_registration_path,: class = & gt; 'Nevar-link'% & gt; | & Lt;% = link_to "Login", new_user_session_path ,: class = & gt; 'Nevar-link'% ...

visual studio 2012 - Data Tools Database Project: Automatically Create Nice Folder Structure -

When I import a DACCPAC in the VAS SSDT project, it creates a very good folder structure for me: my All schemas are defined under a folder named "Security" and then each schema has its own name folder, which contains folders named "Tables", "Collected Process", etc. However, if I right-click on the project name and select Add> Table, the new table has just been added to the project's root. It does not look right at all. Is there any way to get VS to respect the file structure I created when importing a DACCPAC? I have found that the best way to deal with this is to VS. Side changes are not making, but rather to make SQL Server-side changes. After making changes in DB in question, I compare a schema against the actual DB on SQL Server, and VS Project. When I update against the difference, then maintains good structure.

android - AsyncTask, Fragments, Views, and Backstacks -

I am using this method for a while. Here is a very useful example of an asyncask + progress indicator: new asyncTask & lt; Zero, zero, zero> () {WeakReference & lt; MyFragment & gt; Weak paragraphs = new week reference & lt; MyFragment & gt; (MyFragment.this); @ OverEride Protected Zero at PreExecute () {piece slice = weakFragment.get (); If (piece! = Null) fragment.getView () FindViewById (RID.progress) .setVisibility (see .Visual); } @ Override protected document doInBackground (zero ... parameter) {fragment piece = weakfragment.gate (); If (fragment == zero) return zero; // something ...} @Override protected void onPostExecute () {piece slice = weakFragment.get (); If (piece! = Null) fragment.getView () FindViewById (RID. Progress) .setVisibility (see GONE); }}. Execute (); It works well with orientation changes, but I have found that this piece is non-empty and fragmented. GetView () when I'm snapped, when I pop the piece from the backstack, it ...

javascript - What is `_.unDefined`? -

what exactly is _ Undefined? Is it built in the part of JS or jQuery? This is a difficult thing for Google. This is not part of JavaScript, it comes from a library such as a trash:

html - facebook like button overlaps other links on IOS -

In any way execution of buttons like FB starts overlapping buttons that are on the right site of the button. It works entirely on windows, but the link next to the button on any mobile device that is not clickable. Here's the link: Thanks for any indication. Use this CSS style: #fx_header * { Width: 79px! Important; }

python - Gettiing Cython up and running on OS X -

I think there has been an error in setting up the Sithon on OS X, although I did not get the error during installation. Download Cyhthon and transfer the tarball to my home folder Open the turboch and python setup.py install / code> libc.stdlib cimport rand, from RAND_MAX Especially I can see that neither import libc.stdlib and Neither does cimport work on their own What am I trying to do, using the random number generator is the following. I am feeling that I am just leaving something very clear which can be more with the normal installation of python module and nothing can do with Cython However, it does not work when trying in Python: from libc. Specially I can see that neither import libc.stdlib nor simport Work on your own. That's because they do not work in Python code, they only work in Sithon code. In the Cython, there are some different ways to create programs or extensions and make them ( pyximport , which is necessary on the ...

Read parameters from .dat file into C++? -

There are a lot of resources online about how to get input / output from text files in C ++, but I ' For example, I have a file that is a group of standards Reads like: NbProducts = 10; NB Plates = 3; NBiption = 6; MaxPosition = 3; Demand = [6907,14342,36857,40961,61129,69578,72905,91977,93969 97336]; How do I drag it as a variable in the C ++ program? Thank you very much for helping in advance. Here's a way to do this: Open a file Read the row Divide that row on "=" Your parameter is the first result of the partition, and the price is the second result. Repeat for each line. You may need to strip the surrounding white location after splitting. You will need to parse the value after reading it, especially for your array. An alternative will store your data in something like JSON or XML and will use the current parser to read it.

ubuntu - lxc-clone: unrecognized option '--dir' -

मैं क्लोनिंग करते समय rootfs dir को बदलने की कोशिश करता हूं: lxc-clone -o foo -n bar --dir / lxc / bar लेकिन मुझे यह त्रुटि मिली: lxc- क्लोन: अपरिचित विकल्प '--dir' फिर मैं "-बी" विकल्प और "एलवीएम" मान का उपयोग करने के लिए एक एलवी में रूटfs सेट करने का प्रयास करता हूं: lxc-clone -o foo -n bar -बी lvm - vgname lxc-vg और मुझे यह त्रुटि मिलती है: त्रुटि: vgname समर्थित नहीं उपयोग: lxc-clone [-s] [-बी बैकिंगस्टोर] [-एल आकार [इकाई]] [-के] [-एम] [-एच] [-पी एलएक्ससीपीथ] [-पी न्यूक्लेक्सपैथ] आरईजीआर- नया: प्रतिलिपि के बजाय स्नैपशॉट: बी निर्दिष्ट करें पाक की दुकान। डिफ़ॉल्ट मूल के समान है विकल्प में एफ़्स, बीटीएफएफएस, एलवीएम, ओवरलेक्स, डीआईआर और लूप-एल: ब्लॉक-डेब समर्थित बैकिंगस्टोर के लिए, निर्दिष्ट आकार का उपयोग करें * निर्दिष्ट इकाई डिफ़ॉल्ट आकार स्रोत ब्लॉकएव्यू का आकार है, डिफ़ॉल्ट यूनिट MB -K है: नाम रखें - कंटेनर का नाम बदलना नहीं है -एम: मैकड्र रखें - यादृच्छिक नया मैक एड्रेस का चयन न करें- p: कस्टम lxcpath से कंटेनर मूल का उपयोग करें...

java - WSS Handshake instantly canceled after HandshakeCompletedEvent -

I am trying to code a WSS server in Java: string stringname = "Keystore"; String path = "c: \\ user \\ black \\ desktop \\" + certificate name + ".jks"; Four [] passphrase = "123456". Kocharaire (); Mainstream Keystore = Keystore.Testinstance (Keystore.GetFileType ()); KeyStore.load (new FileInputStream (path), passphrase); KeyManagerFactory kmf = KeyManagerFactory.getInstance ("SunX509"); Kmf.init (keystore, passphrase); SSLContext ctx = SSLContext.getInstance ("TLS"); Ctx.init (km f.jetkey manager (), faucet, faucet); SSLServerSocketFactory sslserversocketfactory = ctx.getServerSocketFactory (); ServerSocket = (SSLServerSocket) sslserversocketfactory.createServerSocket (Port); ServerSocket.setEnabledProtocols (new string [] {"TLSv1", "TLSv1.1", "TLSv1.2", "SSLv3"}); ClientSocket = (SSLSocket) serverSocket.accept (); ClientSocket.addHandshakeCompletedListener (New Handshake Compile...

c - gcc stack memory allocation -

I am confused with the memory layout assignment which says we are: int flag = 0; Four array [10]; In the memory stack, the array is located above the flag. (gdb) x / x array: 0xbffff4bc (gdb) x / x flag: 0xbffff4cc However, we say that we reverse the lines Given: four arrays [10]; Int flag = 0; Still the assignment of memory is the same (gdb) x / x array: 0xbffff4bc (gdb) x / x flag: 0xbffff4cc How did the assignment not change? In the second option the flag should not be above the array in the heap? So why is the allocated memory for the array above the integer in the stack event, am I compiling with the -fno-stack-protector flag? Is this true or not? I am running my code under GCC 4.7.2. Debian Edit I have received a position of only one problem, however, while reading the first answer, it says in the comments that when If compile with -fno-stack-protector , then the problem should be resolved (orderly allocate memory in order of declaration). It ...

c++ - Shifting elements in array by N elements -

I have an array where each 'element' is made up of 4 consecutive values. After the update, I take the array to the end of the 4 values ​​and at the beginning I put 4 new values. Shift: int m = 4; For (int i = _vsize - 1; i + 1 - m! = 0; i -) {_varray [i] = std :: move (_varray [i - m]) for; } Insertion: memcpy (& amp; _varray [0], glm :: value_ptr (new_element), 4 * size (float)); Where new_element is of type glm :: vec4 which contains 4 new values. Any suggestions on how to improve it? (I'm just transferring from one element, but to say the flexibility to be able to loop is to say 8 times, without putting any loop in it) Thank you. / P> You can try to copy a range of values ​​from another category into the same container Since limitations are and you are copying right you can not use the regular std :: copy but instead of std :: copy_backward Should use. int m = 4; // It is a respected std :: copy_backward (& amp; _varray...

java - Automatic color fill? -

Image
There are a few stark issues. Suppose we have only black colored png icon (more than hundred) but they can contain more than one unrelated element like: What I have to achieve is to create all the colors of the graphics and the automatically color (fill the black content) and the remaining parameter is unchanged ( Format / Ridge Leave) as well. Is there a library or attitude that should be applied to this task? Thanks This is a small process that can: / P> public static zero main (string [] args) {final string indicator = "c: \\ picture"; Final String Output = "C: \\ Picture \" out "; Last Interval Color = 0x00ff0000; File Directory = New File (DirectX); File [] Files = Directory. Catalog Files (); if (Files == Faucet) {Return ;} (File file: files) {string extension; int extensionIndex = file.getName (). LastIndexOf ('.'); If (extension index> gt; 0) {extension = file.getName (). Substrings ( ExtensionEndX + 1);} Other {exte...

java - how can I set one of the user imputed answers to be the one the action is applied to? -

Okay sorry that this is really a dumb question (I'm really new to Java) How can I set user-charged savings or if checking out one of the other statements, if I want to deposit 500 for checking or saving, and I save input but how do I tell Java, which they have chosen , So that he can deposit or withdraw Spun like? package javaapplication3; Import java.util.Scanner public class transfer {public static zero main (string [] args) {int checking = 1000; Int Savings = 1000; Int zodiac = 0; Scanner = new scanner (System.in); System.out.println ("Check Balance:" + Checking); System.out.println ("Balance of Savings:" + Savings); System.out.println ("What is the amount you want to deposit, transfer, or withdraw from:"); Zodiac = in.nextInt (); If (amount & lt; 0) {System.out.println ("Sorry you can not do this, please only input positive quantities"); } Else {System.out.println (amount); } System.out.println ("Which account will you use...

notepad++ - NPP.EXEC and perl --> save output? -

I am using Notepad ++ under Windows 7. I used the npp.exec plugin for pell applications, and it works fine with the following code: SET OUTFILE = C: \ 00_Data \ output.txt cmd / cc: \ Perl64 \ bin \ perl.exe C: \ 00_Data \ Scripts8 \ gra.pl dt "$ (FULL_CURRENT_PATH)" & gt; $ (OUTFILE) NPP_OPEN $ (OUTFILE) My update of Notepad ++ for version 6.6.9 starts the Perl script, the results console is all OK), but the defined output file Is created and is opened, but empty, i.e., the results are not saved. Does anyone have an idea what is going wrong? You can use it Run Type C: \ strawberry \ perl \ bin \ perl.exe "$ ( Assign a shortcut. Console close very fast With this method, add [system ("pause");] in your perl file to show "print any key to continue" in the console.] / Div>

google apps script - Cannot execute sendEmail from trigger function -

I want to see that this is possible, I have developed a Google Form, where there is a date picker spreadsheet output, I see if the user is under 18 or not. If the user is under 18, then I want to trigger an email. I got a share of email, but only when I execute the code from within the Google Script window. (I still need the trigger to work, it gives me you do not have permission to call sendmail ) but I can not run any problem from within the Google Script environment I know how I will calculate the date, IE getTheYear () - getCurrentYear () , and wrap it within an IF second block, which includes the email execution script. Here's my attempt I do not think I'm away function ageChecker () {var sheet = SpreadsheetApp.getActiveSheet ( ); Var valtest = sheet.getRange ("I2"). GetValue (); Var cell = sheet.getActiveCell (); Var msg = "warning student is less than 18 x" var ui = SpreadsheetApp.getUi (); // Get real cell value // var response = ui.al...

Back button in an Activity without recreate previous Activity (Android) -

Image
I have a master activity that is menu (A). Activity A has 6 pieces. One of them is a gallery of pictures (Figure 1). When you touch a picture, you go to the image description activity (B) (Figure 2). I add the tag "parent name" to Activity B in AndroidManifest.xml. So is the parent activity of activity B A. The problem is: When you are in Activity B and you press the button above (Figure 2) the activity is manufactured and it shows the first piece of activity A (no gallery piece). When you come back to the previous activity, I want to do the same thing as the Instragram application. It seems that the Instagram app does not recreate past activity. The expected behavior is similar to the behavior of the back button (Figure 3). How can I get this behavior? Thank you Picture 1. Picture Details Activity Figure 2 . Image description activity figure 3 Back button I have solved my problem easily. android: launchMode = "singleTop" had to be added. I...

Fail2ban add more info to email notificationd -

I want to add 2 failed login entries related to the notification emails already received for any event. Does anyone know how this can be done? It depends on what you want - you can find the appropriate action.d Version will override the .conf Segment .conf by copying the version .conf version to .local For example, I've personally modified my sendmail-whois.conf code (which I used to use Main post Action is - you can send it in the same way, for example if you use it for example) sendmail-whois.local which I used to say ' to: ' The server was then edited to include server hostnames on the line. You can send the command to the email sent with your output, as long as you follow the correct syntax and fully qualify the path of the relevant command - for example, you will see that sendmail-whois in the action configuration is the line within the actionban segment; ` / usr / bin / whois & lt; Ip & gt; Note, as I mentioned above - inc...

ios - NSPredicate ANY with multiple columns -

I have 2 tables, person and social There are multiple societies in person; Usernames and services in Social I am trying to write a bill on the person table which will match with the appropriate username and service from the social table. The statement below is incorrect Please let me know whether to use the same syntax or if there is a better way to get it. [AddObject predicts: [NSPredicate predicateWithFormat: @ "Anyone (Social usernames =% @ and socials.service =% @)", @ "Username", @ " Service "]]; This is a special use case for SUBQUERY: [NSPredicate predicateWithFormat: @ "SUBQUERY (social, $ s, $ s.username =% @ AND $ s.service =% @). @ Calculation> 0", @ "user name", @ "Service"]

ios - How do I connect the search bar with the uiwebview in Xcode 6 using Swift? -

Image
I'm new to coding with swift and I need help: how do I add search bar to my web view When I type a search, does it appear in Google? My code is up to now: Import UIKit Class ViewController: UIViewController {@Iboutlet var Webview: UIWebView! Request override func viewDidLoad () {url = NSURL (string: "http://google.com") • Request = NSURLRequest (URL: url) webView.loadRequest (request)} Override funk done rescue memorivation ( } {Super.didReceiveMemoryWarning () / any resources that can be reproduced. } Here's a very basic example: write it in textField: Import UIKit Import WebKit Class ViewController: UIViewController, UITextFieldDelegate {@IBOutlet WEB webview: UIWebView! @Iboutlet weak var textfield: UITextField! @IBAction func Go (Sender: AnyObject) {var text = textField.text var url = NSURL (string: text) var req = NSURLRequest (URL: url!) Self.webView! .loadRequest (req)} override function viewDidLoad () {Super.viewDidLoad () self.textField.dele...

How to use autocomplete and TagInput together in jquery -

I want to use auto-complete and tag input without Jason but a JSP file that calls my database How can i do this This is my code: HTML - & lt; Input id = "tag" type = "text" class = "tag" value = "" /> & Lt; Script & gt; $ ('# Tags') tagsInput ({width: 'auto'}). $ ('# Tag') keyboard (function () {$ ("# tag"). AutoComplete ("getdata.htm"); My code does not mention in the getdata.js file.

how to convert base64 string image to blob in android? -

I have a base 64 string image. I want to convert it to blob type and save it to the database .. I have string base64Image = "iVBORw0KGgoAAAANSUhEUgAAAGAAAACgCAYAAADzcGmMAAAACSV ..."; This is what I have tried. byte [] byteImage = org.apache.commons.codec.binary.Base64.decodeBase64 (befImage. GetBytes ()); Json.put ("during_unloading_photo", byte image); Where JSON is the name of my JSONObject and during_unloading_photo column which is the Blob type. To save Blob in

c# - Convert bitmaps to one multipage TIFF image in .NET 2.0 -

How can I convert bitmap to a new image of TIFF format, by adding all the bitmaps as frames in this new one TIFF image? Using .NET 2.0. Start with the first bitmap, put it in an image object Bitmap bitmap = (bitmap) Image.FromFile (file); Save bitmap as a TIFF to memory MemoryStream byteStream = new MemoryStream (); Bitmap Save (bytestream, image format.tf); Keep tiff in any other image object image quarrel = image. FormStore (bistream) Prepare encoders: ImageCodecInfo encoderInfo = GetEncoderInfo ("Image / Tiff"); Encoder parameter encoderprom = new encoder parameter (2); EncoderParam parameter = new encoder parameter (encoder.compression, (long) encoderAvalueCompressressCICCT4); Encoder Params Paragraph [0] = parameter; Parameter = new encoder parameter (encoder. Sevflag, (long) encoder value multiform); Encoder param Paragraph [1] = parameter; Save to file: tiff.Save (sOutFilePath, encoderInfo, encoderParams); For later pages, prepa...

r - Scientific notation in knitr: How to improve typography -

Image
It has always been one of the great features of knit, which is intelligent globular, so you avoid many sprintf Can be / round / paste 0 location. A customer has complained that I had given the decimal wrongly, I found that forgetting $ $ for those numbers is very dangerous that can be printed in scientific notation. But the same customer complained that my appearance looks like ugly using scientific notation because mathematics like latex does not match main font. After the comment of yihui on the closed issue , $$ are required. Does anyone have an intelligent solution for this? Currently, I'm formatting everything with Sprintf like old days. --- Production: html_document: theme: cosmo --- I use the Cosmo theme as it clearly shows the typographic problem more. `` (R) option (points = 2) mean = c (2.31310 9 34, 1.23456e-7) stud = c (0.31310 9 34, 6.54321 e-7) `` number of offset expression ("numeral") With the standard deviation of `r std [1]` `r means [1...

ios - Swift Animate Background not working from a collection view cell -

I have this code to change the background of the collection view cell, but for some reason, this is not working . UIView.animateWithDuration (2, animation: {() -> zero in self.backgroundColor = UIColor.blackColor ()}) Can you please help me? "post-text" itemprop = "text"> property backgroundcolor is not an animation for the cell, I guess. Which is exactly what you want to mix from one color to another to set the color of a resolution backgroundView and its alpha is animate . You can also add your own ideas to the background as well and to make the change, you can enliven their alpha in opposite directions. Still another solution is to drop and layer the layer at the Layer layer and the back color. UIView.animateWithDuration (2, animation: {() -> self in the layer .background color = UIColor.blackColor (). CGColor})