Posts

Showing posts from April, 2015

mysql - How to traverse in the database table using parent id? -

हमारे पास MYSQL तालिका है जिसमें ID, PARENT_ID और अनुबंध शर्तें शामिल हैं: CONTRACTTERM + ----------------- + ------------- + ------ + ----- + ----- ---- + | फील्ड | प्रकार | नल | कुंजी | डिफ़ॉल्ट | + ----------------- + ------------- + ------ + ----- + ---- ----- + | आईडी | बिल्टीन्ट (20) | नहीं | पीआरआई | नल | | PARENT_ID | बिल्टीन्ट (20) | हां | मुल | नल | | FROM_DATE | तिथि | हां | मुल | नल | | TO_DATE | तिथि | हां | मुल | नल | FROM_DATE और TO_DATE को खोजने के लिए parent_id का उपयोग करने की आवश्यकता है जब तक parent_id नल है फिर अंतिम माता पिता FROM_DATE और TO_DATE अनुबंध शर्तों दिखाएं क्या इन तारीखों को एसक्यूएल का उपयोग करना संभव है? एक विकल्प निम्न एसक्यूएल का उपयोग करना है, लेकिन यह तभी काम करता है जब हमें पुनरावृत्तियों की संख्या पता हो: चुनें T1.ID, t4.FROM_DATE, t4.TO_DATE से CONTRACTTERM T1, CONTRACTTERM T2, CONTRACTTERM T3, CONTRACTTERM T4 WHERE T1.ID में (27533, 57665, 58057) और t2.ID = t1.PARENT_ID और t3.ID = t2 .PARENT_ID और t4.ID = t3.PARENT_ID और t4.PARE...

osx - Make for PythonMagick results in infinite loop -

10 We have followed one of the instructions from different pages , Which includes a very useful page here: However, whenever I run create (or sudo make ), it seems that this is a Ends in the loop, continuously repeating the following set lines: libtool: compile: g ++ -DHAVE_CONFIG_H-I-i .. / config -i / opt / local / include- I / opt / local / library / frameworks / Python.framework / versions / 2.7 / include / python2.7 -iI / opt / local / include -DMAGICKCORE_HDRI_ENABLE = 0 -DMAGICKCORE_QUANTUM_DEP TH = 16 -DMAGICKCORE_HDRI_ENABLE = 0 -DMAGICKCORE_HDRI_ENABLE = 0 -DMAGICKCORE_QUANTUM_DEPTH = 16 -i / opt / local / included / imaging-6-g-o2-dbos_python_ENnom_lib -i / system / library / framework / python.framework / version / 2.7 / / python2.7 -mt libpymagick_la-_CompositeOperator.lo -MD -MP -MF .deps / libpymagick_la-_CompositeOperator.Tpo -c _CompositeOperator.cpp -o libpymagick_la-_CompositeOperator.o & includes gt, / dev / null 2 ​​& gt ; & Amp; 1 mv...

c# - Scan string for numbers -

There is a string with my words and numbers. How can I get the final number (number of digits is unknown) and Can you separate it? So far I've used the substring method, but the location of the number in the text, and the length of the number is unknown. Thank you! Here's a simple solution: var number = Regex .Match (input, @ "(* * * \ D | ^) (\ d +)") group [2] .Value. Or a little different solution for a good solution: var number = Regex.Matches (input, @ ".d +" ) Cast & lt; Match & gt; () last price; And here is a solution using a plain old for loop ; No Linq or regex required: int start = 0, end = 0; (Var i = input.Length - 1; i> = 0; i--) {if (char.IsDigit (input [i])) {end = i + 1; Whereas (i> = 0 & four. IiD Digit (input [i])) i--; Start = i + 1; break; }} Var number = input.Substring (start, end-start);

html - Trouble with image gallery on codepen -

I get my first project html & amp; CSS, but there is some problem. I am practicing using Codepean and my gallery was running well but I am trying to add the last line of images and it is all messing up and I do not know why For some reason, when I try to add that chess board it all gets worse. I am still very new so I hope to learn a lot. Thank you. [1]: http://codepen.io/zenturtle/pen/ezDGC Margins are causing issues when you use margins in the position of an element, then you push the elements around it too. Use a solution: Status: Relative and then use Positioning Properties: Above , Below , left , right example: #chess {status: relative; Left: 555px; } Another solution is to use status: absolute . Location Location: Relative on & lt; Div id = "perimeter" & gt; Status: Full on every Example: #chess {status: full; Bottom: 122px; Correct: 230px; } Similarly you are in the position of chess image...

php - Google Fusion Tables API results in Bad Request -

updating I've been using Google Fusion Tables API to retrieve rows from Fusion Table (I rows I'm trying, but am trying to keep it right until I get the connection right). The table is set to be unlisted and downloadable in its list. I have an API key because the request is that when I load it in the browser works fine, but when I execute my code, I receive a wrong request from Google I am using the code given below: Note: I am not using Oauth at this time to prove the request. The documentation states that it is not necessary if you are using GET string and sql statements to manipulate data. The key given below should work from any source, but I have to switch to the server key for security. $ seller list = Dana :: MillModel ('Market / UserProfile') - & gt; GetCollection () - & gt; AddFieldToFilter ('partnerstatus', array ('eq' = & gt; 'vendor')) - & gt; AddFieldToFilter ('wantpartner', array ('eq' = &...

c# - Read .xml File into XmlDocument -

मेरे पास एक टाइल टेम्पलेट है जैसे: & lt; tile & gt; & Lt; दृश्य संस्करण = "2" & gt; & Lt; बाध्यकारी टेम्पलेट = "टाइलस्वायर 150x150Text02" फ़ॉलबैक = "टाइलस्क्वेरटेट02" & gt; & Lt; text id = "1" & gt; पाठ फ़ील्ड 1 (बड़ा पाठ) & lt; / text & gt; & Lt; text id = "2" & gt; टेक्स्ट फ़ील्ड 2 & lt; / text & gt; & Lt; / बाध्यकारी & gt; & Lt; / दृश्य & gt; & Lt; / टाइल & gt; मैं इसे एक XmlDocument में पढ़ सकता / सकती हूं: स्ट्रिंगबइल्डर sb = new StringBuilder ("& lt;? Xml संस्करण = \ "1.0 \" एन्कोडिंग = \ "यूटीएफ -8 \"? & Gt; & lt; टाइल & gt; "); Sb.Append ("& lt; विज़ुअल संस्करण = \" 2 \ "& gt; & lt; बाध्यकारी टेम्पलेट = \" टाइलस्वायर -150x150 टेक्स्ट I4 \ "फ़ॉलबैक = \" टाइलस्क्वेरटीईटी04 \ "& gt; & lt; टेक्स्ट आईडी = \" 1 \ "& gt; टेक्स्ट ...

ember.js - Error message logged when appending view for global loading state -

I am trying to see a default loading. After the information given here: loadingview = amber View. Extension ({templateName: 'global-loading', element id: 'global-loading'}); ApplicationRoute = Ember.Route.extend ({Actions: {loading: function () {var view = this.container.lookup ('view: loading'). Append (); this.router.one ('didTransition', view, 'Destroyed');}}}); The renderer appears to appear but I get an error message in the console. Uncustom Type Error: Property can not get property of 'nickel' It seems that it has to be done specifically with the collind. " Append () "Any ideas what is wrong? Marking it as an answer. It seems that this error was that Chrome Amber Inspector was running when triggered I did not see the error message again after I disabled the extension. I think it was trying to get _debugContainerKey on something that was probably not him.

function - R returning matrix -

I am trying to return a matrix from the function, but why it is unable to understand that it gives an error . rdMatrix & lt; - Function (value = 0) {x & lt; - Get diag (value) & lt; - Function () Return (x) x} Output: & gt; Rdmatrix (5) [, 1] [, 2] [, 3] [, 4] [, 5] [1,] 0 0 [2,] 0 0 0 0 [3,] 0 0 0 0 0 [4,] 0 0 0 1 0 [5,] 0 0 0 1> Receives an error in RdMatrix $ get () rdMatrix $: object type 'closure' is not tabs & gt; post-text "itemprop =" text "> Perhaps you're aiming for: rdMatrix Or maybe you prefer : rdMatrix & lt; - local ({x NULL list (get = function) returns (x), set = function (value = 0) {x

javascript - Node.js streams and data disappearing -

I am playing with the readable and transforming streams, and I can not solve the mystery of missing lines. Consider a text file that has sequential numbers in lines, from 1 to 20000: $ seq 1 20000> File.txt I created a readable stream and a linestream (from a library named byline ) I am: npm installed biointe ; I'm using version 4.1.1): var file = (required ('FS')). CreateReadStream ('file.txt'); Var line = new (required ('bineline'). Linestream) (); Consider the following code: setTimeout (function () {lines.on ('readable', function) (var line; while (null ! == (line = lines. Read ()) {console.log (line);}}};}, 1500); SetTimeout (function () (file.on ('readable', function () {var chunk; while (null! == (chunk = file.read ())) {lines.write (piece);}});} , 1000); Note that this is the first time the 'readable' event file readable stream, which is the lines stream, and only half a second later it c...

javascript - Parse .then method and chaining | Syntax eludes me -

Dear Stack Overflue Community, I am using application craft in the form of the JS Cloud IDE and am integrating the pars' cloud database. I am writing a subscription service and want to check to see if a user has already subscribed before motivating them to authenticate or sign up their use. Being asynchronous call, I pars / promise that before the proceeding I am waiting for the server's response. I have read examples and samples on a parse site (previously added) so far can not wrap my head ... * parse announcement etc. * query Find {{success: work (results) {if (results.length> gt; {app.setValue ("lblOutput", results [0] .attributes.email);} other {app} .setValue ("lblOutput", "no matching.");}}, Error: function (object, error) {console.log (error.message); console.log (object);}}); My attempt at Chenning, recently it: query.find (). Then (function) {if (result) {console log in ("inside!"); Console.log (result);} e...

java - Structuring Class Objects And Defining The Variables -

I am trying to create a framework in a game as a character. Then I want to create 10 different characters and compare their statistics at different levels. I am creating a class named character which looks like this, character of public class {string primary contribution; Double strength; Double Agility; Double Intelligence; Double armor; Double loss multiplayer; full health; Int mind; Int range; Int movement; Integer level; Int Quatrain; Int damage max; Public character () {} / constructor eliminates personal static id random indient (int min, maxm max) {return minute + (int) (monastery. Randum) * (maximum - min + 1)); } Int lossRange = randomInt (damage, damage, max); Double Damage = Damage + Level * Scope; } // class ends Then I am creating each character like this, public class firstcracker {string primary feature = "agility "; Int level = 0; Double strength = 17 + level * 1.9; Double Agility = 26 + Level * 1.9; Double Intelligence = 15 + Level * 1.4; D...

How to start an application automatically after opening a lock Screen in android? -

I want to create an application that will automatically start after the lock screen of Android Mobile. Where can I get more information about the lock screen and the home screen of Android Mobile? Create a broadcast receiver that detects incoming on screen. Does it launch your activity then when the lock screen is dismissed, then your activity will be on top.

ember.js - Get class/type of model -

Is there a way to get a model class or type? For example, if my model was a "todo" and if I want to record that information by myself: todo = this.get ('model'); Is it possible to get it from Todo.class or the content of a controller? I think the model is just a nickname for the content but I may be wrong. I thought it should be an easy way to do this, but after going too much I did not find anything. Thanks in advance for the help. The constructor probably wants what you want, it's located on the object's proto `todo.constructor`

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

Image
The day was struggling with this. I have three series on a chart that looks like this. Note: I am using vanof control. They are being added on the basis of input from the calculation. I am using this code to add value to each series. this.chart1.Series ["green"]. Points. AddY (greenvalue); This.chart1.Series ["totalsaving"] Points.AddY (totalsavingvalue). This.chart1.Series ["blue"] Points.AddY (bluevalue). I have set series properties like this. Both green and totalsaving are set to StackedColumn, the blue chart is set to the column for type. I started then To do is a button that brings the user back to the input field and then I am using this code to clear the series values ​​on the start code. chart 1. Series ["totaling"]. Points. clear (); Chart1.Series ["green"] Points.Clear () .; Chart1.Series ["blue"] Points.Clear () .; The same calculation click above is being calculated for the calculation of th...

c# - how to make Gridview textbox's border color red while validating using jquery or javascript -

I have a gridview with textbox field in a button click to validate the textbox value. If the text box is 0 or 0.00, then the color box of the text box needs to be changed. How to do with jQuery or Javascript Please help me .. Thank you in advance .. Deepti .. HTML input type = 'text' name = 'testtext' & gt; JQuery $ ("input [name = 'testtext'"]. Change (function () {if ( $ (This) .val () == 0) {$ (ele). CSS ('border', '1px # b87574 solid')}}} $ (This). CSS () CSS is used to change elements.

c++ - Maximise the AND -

Looking at an array of non-negative integers: A1, A2, ..., AN Example: Let's have N = 4 and array [i.e. AO and AV] 2 4 8 10]. Answer is 8 Explanation 2 and 4 = 0 2 and 8 = 0 2 and 10 = 2 4 and 8 = 0 4 and 10 = 0 8 and 10 = 8 How to do it N 10 ^ 5 I can have the O (N ^ 2) solution. But its not efficient code: for (int i = 0; i & lt; n; i ++) {for (int j = i + 1 ; J & lt; n; j ++) {if (arr [i] and arr [j]> ans) {ans = arr [i] & amp; Arrival [ja]; Sort arrays in descending order Take the first two numbers. If they are both between two consecutive strengths of 2 (2 ^ Kashmir and 2 ^ (Kashmir + 1), then you can remove all elements with less than 2 ^ k. The remaining elements , Subtract 2 ^ from 2 ^ K. Repeat steps 2 and 3 until the number of elements in the array is 2. Note: If you think That is the only major element is 2 ^ k and between 2 ^ (k + 1) and second largest element is less than 2 ^ k, then you will not remove any element, but on...

asp.net mvc - How to achieve Login authentication without memebership in MVC 4 -

In MVC 4, I've added authentication manually, I mean, no subscription stuff. Take this username and password, justify it against the database. Now, how do I allow a valid (authenticated) user to interact with other controllers because I've added authorized annotations to all other controllers and to limit Only authenticated users should have permission to use other controller's action method. Please guide me how I can get it as a way to subscribe I received? Thanks The only way to write your own custom authorization attribute: public class CustomAuthorizeAttribute: AuthorizeAttribute {entities reference = new entities (); // My organization private readonly string [] approved; Public CustomAuthorizeAttribute (parameter string [] roles) {this.allowedroles = roles; } Secure Override bool AuthorizeCore (HttpContextBase httpContext) {bool authorize = false; (Different roles in the above permissions) {var user = context.Epuser Where (M => M. UserID == GetU...

spring - Defining a key in a property map using @Bean -

XML विन्यास के निम्नलिखित भाग को देखते हुए: & lt; bean id = "jndiTemplate" वर्ग = "org.springframework.jndi.JndiTemplate" & gt; & Lt; संपत्ति नाम = "पर्यावरण" & gt; & LT; नक्शा & gt; & LT; प्रविष्टि & gt; & Lt; key & gt; & lt; util: निरंतर id = "respectTTL" स्थिर-क्षेत्र = "कॉम .... SOLACE_JMS_RESPECT_TIME_TO_LIVE" / & gt; & Lt; / कुंजी & gt; & Lt; ref bean = "booleanfalse" / & gt; & Lt; / प्रविष्टि & gt; & Lt; / नक्शा & gt; & Lt; / संपत्ति & gt; & Lt; / सेम ​​& gt; @ बीन : & lt; कुंजी & gt; & lt; util: constant id का उपयोग करके यह भाग जावा में कैसे परिभाषित किया जाएगा = "RespectTTL" स्थिर-फ़ील्ड = "कॉम .... SOLACE_JMS_RESPECT_TIME_TO_LIVE" / & gt; & Lt; / कुंजी & gt; धन्यवाद यह वाकई स्पष्ट नहीं है कि आप क्यों हैं इस विषय पर कुछ जावा कोड करने में डर: @ बीन सार्वजनि...

windows - Qt 5.3 compilation error (missing dll) -

मैं Qt 5.3.1 में संकलित कर रहा हूं windows 7 के तहत एक छोटा GUI ऐप्स X86 यह त्रुटि के साथ विफल: भाषा संसाधन लोड नहीं किया जा सकता clui.dll उपयोग की गई किट MSVC2012 है ओपनगेल, और ज़ाहिर है, डीएलएल स्थापित है।

asp.net mvc 4 - Error in many-to-many relationship using Fluent API in Entity Framework 6 one model is self referencing -

वर्ग मॉडल स्वयं संदर्भित है सार्वजनिक वर्ग श्रेणी { [कुंजी] सार्वजनिक पूर्णांक श्रेणीआईआईडी {प्राप्त; सेट; } सार्वजनिक स्ट्रिंग नाम {get; सेट; } सार्वजनिक int? ParentID {प्राप्त करें; सेट; } सार्वजनिक श्रेणी कैट {प्राप्त; सेट; } सार्वजनिक आइकलिंग & lt; श्रेणी & gt; श्रेणियाँ {प्राप्त करें; सेट; } सार्वजनिक आइकलेंच & lt; बिज़नेसडिटर & gt; बीडी विवरण {प्राप्त करें; सेट; }} और BusinessDetail जैसा है सार्वजनिक वर्ग BusinessDetail {[Key] सार्वजनिक int आईडी {get; सेट; } [आवश्यक] [प्रदर्शन (नाम = "व्यावसायिक नाम")] सार्वजनिक स्ट्रिंग व्यवसायनाम {get; सेट; } सार्वजनिक स्ट्रिंग पता {get; सेट; } [प्रदर्शन (नाम = "संपर्क")] सार्वजनिक स्ट्रिंग संपर्क डिटेल्स (प्राप्त करें; सेट; } / / सार्वजनिक int classID {get; सेट; } // सार्वजनिक श्रेणी श्रेणी {प्राप्त करें; सेट; } सार्वजनिक int? स्थान आईडी {प्राप्त करें; सेट; } सार्वजनिक स्थान स्थान {प्राप्त करें; सेट; } [प्रदर्शित करें (नाम = "वेबसाइट पता")] सार्वजनिक स्ट्रिंग वेबसाइट_एडरेशन {प्राप्...

python - Faster string assignment using Numpy -

What can be used to assign fast string? I like my string array [['x1-y1', 'x1-y2' ...], ['x2-y2' 'x2- Y2 '...], .....] so on Then, each (i, j) = "x% dy% d"% (I, j) string will this be done in Nampee? "post-text" itemprop = "text"> If your array size is (m, m) rx = np.utter (np. Ons (M,)), N. P. Linspace (1, M, M)) RI = NP. (N. P. Linspace (1, M, M), Np.ones ((m,)) s1 = np.chararray (M, m), itemsize = 1) s1 [:] = '' strarray = s1 + 'x' + np.array (rx, dtype = 'str') + '-' + 'y' + np.array (Ry, dtype = 'str') output will be chararray ([['X1.0-y1.0', 'x2. 0 'y1.0', 'x3.0-y1.0', 'x4.0-y1.0', 'x5.0-y1.0'], ['X1.0-y2.0', ' X2.0-y2.0 ',' x3.0-y2.0 ',' x4.0-y2.0 ',' x5.0-y2..0 '], [' x1.0-y3.0 '] , 'X2.0-y3.0', 'x3.0-y3.0', 'x4.0-y3.0', '...

How to create a help screen like one which comes when we set up an Android Device for the very first time? -

Image
इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मैं के लिए एक ऐप विकसित कर रहा हूँ जो मैं एक ऐसी मदद स्क्रीन बनाने की चाहूंगा जो कि जब हम पहली बार एक एंड्रॉइड डिवाइस सेटअप करते हैं। ऐसा कुछ: दो लाइब्रेरी हैं जो आप इस आशय को प्राप्त करने के लिए उपयोग कर सकते हैं हैं: अपने नमूनों के माध्यम से जाने और उनके संबंधित पृष्ठों पर उन्हें कैसे उपयोग करें, इसके बारे में पढ़ें। अगर आपको अब भी किसी भी मदद की ज़रूरत है, तो मुझे बताएं।

libgdx - Lighting renderable -

Please tell me what I did, the light has been applied to a model, but I am not able to present my environment Has installed, but it does not work. Impact: The cube is using the environment, but not my figure. Generate Public Zero () {Environment = New Environment (); Environmental. Set (new color attribute (color oriental ambient light, 0.4 f, 0.4 f, 0.4 f, 1f)); Environment.add (new directlight (.) Set (1f, 0.8 f, 0.8 f, -1f, -0.8 f, -0.2 f)); Cam = new perspective camera (67, gdx graphics .getWidth (), gdx. Graphics.getHeight ()); Cam.position.set (6f, 0f, 0f); Cam.lookAt (0,0,0); Cam.near = 1f; Cam.far = 300f; CamController = new camera interface controller (cam); Gdx.input.setInputProcessor (camController); Cam.update (); Trap = New Aries (True, 40, 60, Vertx Arti.Position), Vertex Unbreakable Texas (0)); Mesh.setVertices (new float [] {0f, 0f, 1f, 0, 0, 1f, 0f, 0f, 1, 0, 1f, -1f, 0f, 1, 1, 1f, 1f, 0f, 1, 1, 0f, 1f, 0f, 0, 1, 0f, -1f, 0f, 0, 1, -1f, -1f, 0f, 1, 1, -1f, 0f,...

iis 7 - IIS using Entity framework getting error- The underlying provider failed on Open -

I use a website hosted in IIS using the website unit structure I use the connection string- & lt; Add name = "ShiftEntities" connectionString = "metadata = res: //*/ShModel.csdl | res: //*/ShModel.ssdl | Res: //*/ShModel.msl; Provider = System.Data.SqlClient; Provider Connection string = & amp; quot; data source = shift; initial list = alfaultdata; security information continues = true; user id = alfaultdata_admin; password = alfalfaadata3!; Multiple verb = true; application name = unit framework & amp; ; Quot; "Provider Name =" System.Data.EntityClient "/> But I'm getting the error - the underlying provider failed on the open How can I solve it?

c# - Entity framework appending a decimal place to a field of type decimal(10,0) -

Image
I am using the EF database first. I have an area in my database that I know will always be 10 digits long, so naturally I have selected the decimal (10,0) type, when I insert the value into the table I can do any number up to 10 points long, but when I insert an entity with EF 6, it adds 0 decimal and then exits one parameter out of the boundary value. Type the field type decimal Stack.imgur.com/p3vct.png "> And a prudent investigation, here is the SQL Server column: Edit / P> . The error looks like a bug in the EF, but if it is always an integer, is it instead of int decimal? I am thinking both for rational and performance.

jquery - How to make fullpage.js section movement from left to right? -

I am using fullpage.js for my website. When I click on the navigation, the content is moved from the bottom, is there any way to move it right or left? Yes Use a section with multiple slides inside: & Lt; Dic square = "section" & gt; & Lt; Div class = "slide" & gt; Slide 1 & lt; / Div & gt; & Lt; Div class = "slide" & gt; Slide 2 & lt; / Div & gt; & Lt; Div class = "slide" & gt; Slide 3 & lt; / Div & gt; & Lt; / Div & gt; Then create links to your slides using the anchor in the URL. A great example of what you are looking for, just check its source code. / P>

javascript - Flowplayer shows 3 dots in chrome -

I am using a commercial version of the flowplayer, the player works fine in FF and IE, but when I am in Chrome Jumping stream 3 loading white dots, and though the video is ending & Lt; Source src = "video.ogv" type = "video / og" /> & Lt; / Video & gt; & Lt; / Div & gt; & Lt; Script & gt; Flow-Player ({{Playlists: [[MP4: "video .mp4"}, {ogg: "video.ogv"}], SWF: "$ (function () {$ (" // Release Flowplayer.org/5.4.6/commercial/flowplayer.swf ", key: '$ {playerKey}'})}};

php - Zend 2 paginator view script problems -

I am trying to test Zend Paginator for the first time. I follow the prompts given on the official site, but nothing is wrong in my endorsement control. This is the code I think: foreach ($ this-> Paginator as $ line) {echo $ row-> From_name ''. $ Line-> Name ',' & lt; Br> & # 39; & # 39; Echo $ row-> message; (;; Array '(path' = & gt paginator, 'sliding', 'paginator script'; 'inbox / paginator') $ this- & gt; paginationControl;} $ echo this-> Where paginator-script is a route that I have defined in module.config.php: 'view_manager' = & gt; Array ('template_path_stack' = & gt; array ('inbox' = & gt; __DIR__ '/../view'), 'template_map' = & gt; array ('paginator-script' = & gt; __DIR__ '/ When I run the application, the following message appears: WARNING: (C: \ XAMPP \ htdocs \ PROJECTA \ Module \ inbox \ config ...

Relative performance impact of logging in Scala -

I have seen the following logging methods. What is the effect of the performance of each order? Are there any other benefits to using one on one another? Val strValue = "xyz" val intValue = 200 log.debug ("this string" + strValue + "and int" + intValue "). Log string $ strValue and int $ IntValue ") log.debug (" This string will log in% s and int% d ".format (strValue, intValue)) log.debug (" This string will log {} and int {} ", strValue, intValue) The requirements of my current logging are in play and akka projects. I think there is no difference between display effects second and third approach Lkul should be identical. The second one is translated into the third person by the Scala compiler. The second one only provides a good syntax. On being told that the performance of these log statements should not be affected at all. Those log statements are translated into the following, so it automatically follows...

When I add a Typescript Service to AngularJS will it be a singleton? -

इस उदाहरण को देखते हुए: वर्ग AppController {static $ inject = ['configService'] कन्स्ट्रक्टर (सार्वजनिक कॉन्फ़िग: आईसीओनफ़िगसेवायर // आईटी में माता-पिता) {}} क्लास व्यवस्थापकहोमकंट्रोलर {सार्वजनिक ऐप: एप कंट्रोलर; स्थैतिक $ इंजेक्शन = ['configService']; कन्स्ट्रक्टर (सार्वजनिक कॉन्फिग: आईसीओनफ़िगसेवायर / इंजेक्शन में बच्चे) {}} मैं माता-पिता और बच्चे को इंजेक्ट करता हूं क्या कोई मुझे बता सकता है कि क्या उन ConfigServices IConfigService Typecript Class के समान या भिन्न उदाहरण होंगे? यहां सेवाओं के बारे में क्या कहता है: कोणीय सेवाएं निर्भरता इंजेक्शन (डीआई) का उपयोग करके एक साथ वायर्ड हैं। आप अपने ऐप में कोड को संगठित करने और साझा करने के लिए सेवाओं का उपयोग कर सकते हैं। कोणीय सेवाएं हैं: आलस रूप से तत्काल - कोणीय केवल एक सेवा को तत्काल तभी पेश करता है जब उस पर एक अनुप्रयोग घटक निर्भर करता है। Singletons - सेवा पर निर्भर प्रत्येक घटक सेवा कारखाने द्वारा उत्पन्न एकल आवृत्ति का एक संदर्भ मिलता है। (जोर मेरा)

ruby on rails - Object doesn't support #inspect when used with .include -

So I have participated in a glitch error that I do not even know how to debug. I am very new to the railing, so it has kicked my ass well when I use the .includes (school) seen by the student, it gives a blue box error, But when I look at any other model and .includes (school) , the school works just fine. class student & lt; ActiveRecord :: Base has has_many: relationships, foreign_key: "liker_id", dependent :: has_many: matches, foreign_key: "student_1_id", dependent :: deleted belong_to: school belong_to: conference belong_to: would_you_rather belong_to: home city belong_to: year is_to: Major and class school & lt; on the console activatecord :: Affiliate for the base: conference includes: respondent, class: "school", foreign_key: "rival_id" (e.g. For: School) Select SQL generated Select "School". * "School" from "school" "ID" IN (1) error message back NoMethodError: u...

wpf - Conversion Overflow Error in C# -

Image
I'm getting the error that I'm not able to fix I have an area where Only numbers are allowed and maximum 10 digits can be entered Here is the code for digit checking char ch = e.Keychar; If (! Four. ISDigit (CA) & CH! = 8 & CH! = 46) {E. Handle = true; } But when I try to get this error popup message Your problem is probably nothing to do with WPF As you are probably using MS SQL, you can see it. It says that the maximum possible value for the integer (int, int32) column is 2,147,483,647, while your value is 9999999999, which is more than 2 billion. You should change the datetime to bigint for columns. Edit: Also, if your data organizations are created manually, then you should be using the type of SQL + code (long) related to SQL bigint Should be used in type. Also about WPF It is possible to handle data validation in code-behind event handling, but the overall drawbacks of WPF's complexity and such approach Due to many prob...

Google analytics inconsistency in revenue stats -

Google Analytics निश्चित रूप से सांख्यिकीय प्रदर्शन में एक समस्या है। मैं दिनांक श्रेणी 14-19 के साथ क्वेरी कर रहा हूँ: और IOS 5.1.1 और 0 से 12 लेनदेन किसी अन्य संस्करण से है जो बहुत अजीब ठीक है, कौन जानता है, शायद कुछ असामान्य उपयोगकर्ता व्यवहार हैं। लेकिन फिर मैं एक ही अनुरोध करता हूं, लेकिन 1 दिन (18 जुलाई ): अब अन्य संस्करणों से दिखाए गए 6 लेन-देन हैं। मुझे लगा है कि मैं अन्य क्वेरीज़ में Google Analytics में इस तरह की असंगतताओं को पूरा कर सकता हूं, जहां मुझे सिर्फ सटीक विसंगतियों का सबूत नहीं मिलता, लेकिन लगता है कि प्रदान की गई जानकारी तार्किक नहीं है। इसका क्या मतलब है, मैं GA द्वारा प्रदान की गई जानकारी पर भरोसा नहीं कर सकता? बस इसे कुछ ... सैंडबॉक्स उपकरण के रूप में उपयोग करें? भ्रमित। शायद असंगतता के कारण होता है जब आपके पास बहुत से विज़िट हैं, तो Google Analytics (निःशुल्क योजना) केवल इसी आँकड़ों को दिखाने के लिए केवल उनमें से एक हिस्सा लेता है। अगर आप अपने पहले कैप्शन को देखते हैं, तो आप ऊपरी में देख सकते हैं एक बॉक्स कह रहा है: "यह रिपोर...

php - javascript is not loading on ssl -

There is a WHMCS installed on my host. I have just added a simple code to rotate our certificate logo and this main page (And non-SSL pages), please take a loot (in the right-hand column of the page): but it does not work in SSL pages Is: EST is in both ways and only the difference is about SSL (HTTPS). I found that the problem is not related to the insecure content on my page ('enamad.ir/trustseal/symbol.aspx') because I removed it but the problem exists. Anybody appreciates appreciated.

php - Laravel 4: get unencrypted cookies -

I know that, Laravel encrypt code before setting, then when it will take back (if changed) back But in my case I have used the javascript of the cookie and get it from Laravel Thanks, Pre>

batch file - run jenkins parallel job and wait from different servers -

I need build and deployment using Jenkins but I have to design for this work flow. Job 1 (primary build from a server). ------ & gt; Job A (Deployed) | ------ & gt; Job B (Deployed) Job 2 (Made from Delta B server). ------ & gt; Job C (Deployed). ------ & gt; Job D (Deployed) Job 3 (This job should be successful on ABCD) As a build in two servers, Job 1 and Job 2 are configured in 2 servers. I have jobs which are JOJ 1 & amp; 2, how can we achieve the job execution of 3. Any thoughts? Or it can be configured like this JOB Main - | | --- & gt; Job 1 (primary build from a server). ------ & gt; Job A (Deployed) | ------ & gt; Job B (Deployed). --- & gt; Job 2 (Made from Delta B server). ------ & gt; Job C (Deployed). ------ & gt; Job de (deployed) | --- & gt; Job-3 (Jobs 1, 2 and Job completion of ABCD) Screen shots will be useful. Thanks in advance. In fact it is an easy way to do without using any specific plugin...

php - Wordpress Advanced Custom Fields within an if statement -

Image
I am trying to use the ACF in separate pay amounts for the Job Listing Board. Example: Choose the box option in ACF for the pay type ("Competitive", per day, per year etc) . It looks like: then I have conditional fields, so if "PA" is selected then it shows the PA field: My question is: How do I have a different selection box of these conditional fields for options. If they are added to a statement so that the correct field is shown based on the supplied content? Example If job_slari was selected as "competitor" then "if" job was selected as "job" then "pay" = job The job was selected in the form = jobs_slary_singular_low = job_slary_sangular Other if job_salary is "job_start" from "pay range" = echo job_range_start "job_range" / This approach should work in my example, the main selector field where you pay per year, competitive , Category, etc., it's called sa...

fastcgi - Perl benchmark between FCGI and PSGI -

What do I know about the FCGI protocol, the first time when the application is called, it loads it in memory, runs it, returns the response to the server, ends the reaction, but the application does not end, If it continues in memory, then the next request will be compiled in the memory copy of the application to process this request. Reading about the PSGI Protocol, it seems that it is going to do the same thing. My question is, my assumption is correct, they are similar to the speed of application for requests per second. Even if they do the same thing, I see that there is a command line option to enable FCG in the plack-up. You are asking to compare between apples and fruits, your question does not understand much . There are various underlying mechanisms that you can use to deploy a web application written in Perl. This is a standalone CGI program It can run under mod_perl It can run under FcGI etc. ... The problem is that for each deployment system you nee...

List of Facebook Users Containing a Particular Name -

I want to use Facebook API to return a list of users that have a specific name: For example, the following http search for the name is Macallum: Returns the desired result, though I want to do this using the API. Is this possible? I take a look at the answer given here: You can use it / search endpoint to search for the name.

javascript - Why is it so hard to ping my own Server? -

मुझे केक फ़ंक्शन का यह टुकड़ा मिला: $। Ajax ({url: Example.html ', डेटाटाइप:' टेक्स्ट ', कैश: गलत, सफलता: फ़ंक्शन () {अलर्ट (' हाँ ');}, त्रुटि: फ़ंक्शन () {अलर्ट (' नहीं ');}}); इस फ़ंक्शन, सिर्फ ठीक है, लेकिन केवल पहली बार के लिए काम करता है) दूसरी बार, फ़ंक्शन क्रोम को निम्न त्रुटि भेजता है: GET नेट :: ERR_FAILED वही स्थिति इस दूसरे जेएस विकल्प के साथ समान रूप से होती है: फ़ंक्शन doesConnectionExist () {var xhr = new XMLHttpRequest (); Var फ़ाइल = "http://www.example.com/Example.html"; Var यादृच्छिक नाम = गणित। (मठ.रेंडम () * 10000); Xhr.open ('HEAD', file + "? Rand =" + randomNum, false); {Xhr.send (); अगर (xhr.status> gt; = 200 & amp; amp; xhr.status & lt; 304) {चेतावनी ('हाँ'); } और {चेतावनी ('नहीं'); }} पकड़ (ई) {चेतावनी ('नहीं'); )} 1) अजाक्स परिदृश्य में मैं सिर्फ कैश का संकेत देता हूं: "झूठी"! 2) जावास्क्रिप्ट परिदृश्य में मैं कैश से बचने के लिए यादृच्छिक...

mysql - How to parse 1,2,3 string to int with PHP -

me 1, int (coma) 2 (int), (coma) .. from a string 1,2,3 and this is a parameter of the function that is selected from where the ID is from the ID ([that string ]); Prepare the statement with PDO . I tried to explode it and then tried to make another variable, but still I should call STRING 1 (anti), (coma) 2 (int), (coma) is not a string because STRING does not work here SELECT * to the table WHERE id ([that string]); You are right, IN ('1,2,3') It is not, as is IN (1,2,3) . So you can not use only one string. If you ensure 100% that there are integers in the string and there is no chance in it, other inputs (for example, if your code string is created with those values ​​are sure to be an integer) , You can simply repeat the list in your query. But I like to use the prepared statement when there is no guarantee that the string only is an integer. You can create a prepared statement in which many parameters count the elements in your list....

java - Investing Calculator -

Hey I have created this code for compound interest during X years but I do not know how to save money Added "X amount of dollars per year is included." So if I make my variable $ 70,000, then this X amount will compound interest for the year, along with the starting amount of investment, "dollar amount every year". Import java.util. *; // It is free to steal your code; honestly Minotaur, public sector investment {public static zero main (string [] args) {scanner input 1 = new scanner (System.in); Double amount; Double Principal; Double rate; System.out.println ("Please enter the principal"); Principal = Input 1 Nxt double (); System.out.println ("Please enter the interest rate in decimal rate"); Rate = input1.nextDouble (); System.out.println ("Enter the number of years of investment"); Scanner input 2 = new scanner (System.in); Int g = input2.nextInt (); (Int Year = 1; Year and LT; = G; Year ++) {Zodiac = Prime * Math (1 + rate,...

wordpress - Woocommerce lightbox shows UTF-8 characters instead of arrows -

I have a problem in my woocommerce lightbox product gallery When they see product images, Instead of the UTF-8 letter (which I believe) I have found that it is incompatible, one minute it will show the arrows, the next will again show the E008 code. I have a screen cap to show what I am saying: I have tried to disable all my plugins, clear the cache etc. But there is nothing to correct the problem. I also have the correct charset specified in the Meta tag This is especially in Firefox, but Chrome sometimes has trouble displaying arrows if any Know what the problem is (it's at my end or is it a browser issue or ..?) I really appreciate any help! Thank you! what's happening prettyPhoto.css (part of the WooCommerce plugin) have a font icon known as WooCommerce . The complete definition of style is below: @ font-face {font-family: "WooCommerce"; Font style: normal; Font-weight: 400; The format ("woff"), url ("". " ../f...

C++ Protobuf implementation in C# -

I created the protoobb file in the C ++ mentioned below. I want to use the same in ProtoBuff-Net. It works fine with normal Protobuf classes, but I can not work it using the extension in "main message" Can someone give me some code examples? Here's my C ++ Proto files are: file - message-title. Proto: Message message header {Required int 32 ID = 1; } File - The main message. Proto: Import "Messageheader.proto"; Message main message {essential message header header = 1; Extensions 100 to 199; } File - MessageBool.proto: Import "Messageheader.proto"; Import "Main Message. Proto"; Message MessageBool {Essential bool succeeded = 1; Alternate String Notification = 2; Expansion of MainMessage {Optional MessageBool Bool = 100; }} File - Message Login. Proto: Import "Messageheader.proto"; Import "Main Message. Proto"; Message message log {required string user name = 1; Required string password = 2; Expand MainMessage {Opt...

ASP.NET MVC unobtrusive jquery localization -

How do I localize error messages without specifying the DataAnnotations for the model? Like in the message "Region XX is required", I want to translate only "field-required" section with jQuery globalization , I [Required (ErrorMessageResourceName = "- --- ")] properties Is it possible to achieve this? Any code samples, tutorial links will be appreciated. You can try the following approach: [Displayed (Name = "first name", resource type = type (resource processing)) [required (error message) resource type = type (resource processing), error message sources = name = "error")] public string first name {get ; Set up;} Then you add the key to your resource file: translate the first name and example with the "first name" error - & Gt; "{0} field is required" This approach can then be applied to all of your properties.

ios - TextField superposed in tableview -

Image
I initially load hidden tableview with some data and show that when I press a button, simulate a drop down menu. In a single view, I have a UIButton , which is pressed, creates another UIButton and UITextField . The problem is that when I reload, then tableview and all textField s and buttons s Is superposed This is what happens: My question is what can I do to keep tableview in front of the view. When you do -addSubview: , view the most views Is added as that are appearing above your newly added textField s your tableView . The Fastest Way Example: To solve your problem, tableview make the most views at the top would to. Example: [YourTableView sethead: NO]; [Self.view LaosVivio Toufrant: yourTableView]; Assume that yourTableView in self.view >

Not enough permission to enter SQL Server Reporting Services -

I know that this question was asked some time back, but none of the answers was helpful. When I http: // and entering credentials - then a message appears that there is not enough permission to enter this user I have ensured that the user is running SQL Server 2008 If there is an administrator during the installation of R2, then I'll make it a dbowner in the report server database in Windows, that user also has administrator rights and I am an administrator in IE Received'm using. What does the problem look like? What should I do to deal with the problem? See site security setting by first site setting in the upper right corner Link and then select Security on the left to make sure that they are listed as system users. Check the security settings on the root folder of the Report Manager by using the folder settings link on the toolbar. You have to check permissions on any folders whose security legacy is broken.

tabs inside StickyListHeadersListView's header in android -

I have a problem putting tabs in the top of the sticky list, I need three tabs and I put three text views in the header (In the form of tabs) and clicking on these text views, changed the contents of the list but it is not working. My basic problem is how to handle GetView inside my adapter. I put a switch / case in GetView but it does not work. Try to use, expand groups. It is very easy to work around this library.

c# - Is there an access modifier combination or pattern limiting to the class and its containing class? -

हमें सार्वजनिक , निजी , सुरक्षित , आंतरिक , और संरक्षित आंतरिक नेस्टेड क्लास लिखते समय, मुझे अपने आप को एक जादू संशोधक संयोजन (अप्रत्याशित) या कोडन पैटर्न जो कि मुझे private या संरक्षित देता है, लेकिन जहां युक्त वर्ग का उपयोग भी हो क्या ऐसा कोई चीज है? उदाहरण - वर्ग या इसके कंटेनर वर्ग में केवल एक सार्वजनिक संपत्ति सेट कर सकते हैं: सार्वजनिक वर्ग ContainingClass {सार्वजनिक वर्ग NestedClass {public int फू {प्राप्त; जादू_गोइस_यहाँ सेट; }} शून्य कुछ विधि () {NestedClass अनुमति = नया NestedClass (); अनुमति दें। फू = 42; // & lt; == इसे अनुमति दें, उस वर्ग में}} सार्वजनिक वर्ग असंबंधित {शून्य अन्य विधि () {NestedClass अस्वीकार करें = नया ContainingClass.NestedClass (); अस्वीकार करें। फू = 42; // & lt; == इसे किसी दूसरे वर्ग में न करें}} क्या ऐसा करने का कोई तरीका है? फिर से, शायद एक अभिगम संशोधक के साथ सचमुच नहीं, जब तक कि ऊपर वर्णित पृष्ठ पर कोई जादू संयोजन न रहा हो, लेकिन कुछ पॅटिन मैं इसे वास्तविकता में नहीं प्राप्त करने के लिए उपयोग कर सकता हूं? सार्व...

javascript - bookmarklet: click for random specified links from a host domain -

tl; Dr: A bookmark that opens in a new tab: Thanks for the random link (specified multiple Html-classes) with the specified domain and the code that works with the current login. Brief version of Bushara code: Javascript: (var% 20 site = domain.com function () {window.location.host == Site Without (Window. Open (document.links [Math.floor (document.querySelectorAll ("a.class1, a.class2")]. Href, '_blank')}} (); // Beautified with: http: // Jsbeautifier.org For whom it may be a concern: I searched It is for a while and even the switching services are considered, but though some come or are similar to my special request, E also does not fully represent the request. Execute the script on this particular domain even when a page asked from the domain is not currently open. To obtain information or data, login authentication is required, then read or work with the existing session. Get from a specific domain host, one from all the links to that...

jquery - HTML5 Video not auto playing when using ended function -

I have an HTML5 video background of my website, once played through it, then directs an anchor link This works very well, my only issue once, when I implement the function to direct anchor link, the video auto runs !! The website is based on FullPage.js This code is for my video function: $ (document) .ready (function () {$ ('# Fullpage'). Fullpage ({vertical centered: true, squareclosure: ['#FFF', '#FFF', '#FFF', 'FF', 'FF'], Anchor: ['First Page ',' Second page ',' third page ',' 4 page '' final page '], menu:' # menu ', followed by the rudder: function () {// Video $ ("# myVideo") Play ( ). Load the code in this video ("end", function load () {window.location. Hash = "secondpage"}}}}}})}} & Lt; video autoplay control id = "myvideo"> Cheers You should take a look at the examples available with the background video ...

c# - Open form based on int -

I'm just starting Project Euler and have already participated in my first issue. I have to give a different look for every Euler problem, but I do not know how to open the form What I want to do in a good way, use the variable problem number to open a form. For example, if I have a problem, then number 54 is set and I press a button, it should open Form 54. using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; System usage threading. Task; Using System.Windows.Forms; Namespace WindowsFormsApplication1 {Public Partial Category Form 1: Form {Public Form 1 () {InitializeComponent (); } Private Zero Button 1_Click (Object Sender, EventArgs e) {int problemNumber = int.Parse (numericUpDown1.Text); }}} I know how to open a particular form, for example form2. form2 f2 = new form2 (); F2.Show (); This will open Form 2, but as above, I want to open Form + Problem number. ...

java - Converting minutes since midnight to 24-hour time -

मुझे आधी रात से कुछ मिनट हैं उदाहरण 3 एएम = 180 ( 3 * 60 का उपयोग करके पाया जाता है) के रूप में दर्शाया गया है अब मुझे इसे 24 hour time format hh24: mm = 03:00 हम इस के लिए साधारण तिथि फ़ॉर्मेटर / कैलेंडर कैसे इस्तेमाल कर सकते हैं? मैं गणित का प्रयोग करूंगा, जिससे कि समय सारणी पुस्तकालय को ऐसा करने में कोई आसान नहीं होगा (जैसा कि यह मिली-सेकंड और समय क्षेत्र की उम्मीद है) int mins = 180; स्ट्रिंग हम्म = स्ट्रिंग। प्रारूप ("% 02d:% 02d", मिनट / 60, मिनट% 60); कैलेंडर के साथ बहुत कुछ करने के लिए (जो डेलाइट बचत को संभालना है जो आप कर सकते हैं) int mins = 180; कैलेंडर कैल = कैलेंडर.जस्ट इन्स्टेंस (); Cal.set (कैलेंडर। HOUR_OF_DAY, मिनट / 60); Cal.set (कैलेंडर। मिनट, मिनट% 60); Cal.set (कैलेंडर। SECOND, 0); Cal.set (कैलेंडर। MILLISECOND, 0); सरलडेटफ़ॉर्मैट एसडीएफ = नया सरलडेटफ़ॉर्मेट ("एचएच: मिमी"); स्ट्रिंग hhmm = sdf.format (cal.getTime ()); Println (HHMM); प्रिंट 03:00 हालांकि उस दिन जब डेलाइट बचत में परिवर्तन हो सकता है, आप...

html - How to build <input> setting value attribute with php code -

I'm not sure how my question is, so I can do even with success Trying (simplified code) I want the end result on the page: I have a function to make it but the value is rendering as a string instead of the attribute code ... and I end up in the form of a string value. I do not understand why how do I call the function: $ newItem = SetItemInputTag ("color", $ itemcount, " function: function SetItemInputTag ($ TagId, $ ItemCount, $ TagValue, $ disabled) {$ InputTag = "& lt; Input type = 'text' class = 'form-control' id = ''. $ Tag id "'name =' inputname" $ ​​itemcount "" disabled value = '". $ TagValue "'& gt;"; Return $ INputTag; } I appreciate any help that I can get! I think you need to use it a lot. $ newItem = SetItemInputTag ("color", $ itemcount, $ input name 7, wrong); instead of this row $ newItem = SetItemInputTag ("Co...

ruby - How can I check if my subject raises an exception? -

I am currently creating an object in the topic and it needs to be checked whether it Generate an exception The following code shows what I am trying to achieve: Describe MyClass 'Get started' topic {MyClass.new} This { Is_expected.not_to raise_error (some :: error)} end of end I think I'm going wrong about this. Update P> My problem was twice the first, this syntax Does not work: this {is_expected.not_to_your_error} hope using this Block, however (as told by Jimmy Quadra): It does not raise an error 'expect {subject} .not_to raise_error end I am not very familiar with RSPC to tell you why this is why it is. Second, because, using raise_error is possible with a specific error class. Therefore, it is invalid: hope {topic}. For more information, see If I understand correctly, then you are trying to test that an exception is caused by instantly transforming a class You will do the same: Describes MyClass "Ins...

javascript - When I add new style with jQuery will it overwrite css? -

मान लें कि मेरे पास यह jQuery कोड है $ ('head')। '& Lt; शैली & gt; शरीर, html {मार्जिन: 0! महत्वपूर्ण;} .. और भी ... & lt; / style & gt;'); क्या यह वर्तमान सीएसएस को ओवरराइट करेगा (ध्यान दें ! महत्वपूर्ण ) मैंने अपने ब्राउज़र में इसे परीक्षण किया है और यह अपेक्षा के अनुरूप काम कर रहा है और मौजूदा सीएसएस को ओवरराइट कर रहा है। मैं मूल रूप से क्या चाहता हूं। CSS फ़ाइल के बिना कुछ सीएसएस जोड़ना है। चूंकि आपने एक सीधा शैली टैग लागू किया है, यह किसी भी सीएसएस पर अधिलेखित होगा। महत्वपूर्ण हमेशा किसी भी वर्ग पर लिखता है, और आमतौर पर बुरा व्यवहार माना जाता है। क्लास क्यों नहीं जोड़ें?

java - According to Eclipse, why is the standard jar file extension ".jar;*.zip"? -

Image
I tried exporting a runner jar and eclipse said: At the end of the ".jar" extension the standard extension is ".jar; * .zip". You can choose to use the standard extension instead. [.jar use * * zip] & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; [Cancel] & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; [Use .jaggar] (See screenshot below.) Is there some kind of misunderstanding in my part? Because ".jar; * .zip" does not really speak like a file extension for me, why would it be (eclipse Luna 4.4.0) I do not like it (a standard Java program). Just to be clear, this works more everything to me, but why is the warning? I submitted a bug report.

uitableview - UITextField in custom UITableViewCell - keyboard not dismiss -

I have custom UITableViewCell with UITextField The problem is that I can not dismiss that keyboard. In my TVC I have the UITextFieldDelegate and the ViewDidLoad method applies to me: customCell.textField.delegate = self; And of course: - (zero) touches: touches the (NSASE *) event: (UIEvent *) event { CustomCell.textField resignFirstResponder]; } - (BOOL) textFieldShouldReturn: (UITextField *) TextField {[customCell.textField resignFirstResponder]; } no return; } I tried to apply this code in my CustomTableViewCell class. You have already set a representative of the textfield - (BOOL) textFieldShouldReturn: (UITextField *) textField; takes a textField , so you did not need to rest the cell to use it because it is being passed to the representative so use it directly. - (BOOL) textFieldShouldReturn: (UITextField *) textField {[textField resignFirstResponder]; based on what you are trying to do;

sql - MySQL retrieving an int written to a timestamp field -

I am working with imported data which contained an integer that was accidentally mapped and type timestamp Was written in the column. I'm trying to get the original int from the timestamp field. If I try to return the timetable without any invalid, then I think that the integers that appear in the form of YYYYMMDDHHMMSS form. It seems that the original integer now Lost in the table due to a conversion while typing. Is there a way to get back the original integer after changing the timestamp?