Posts

Showing posts from June, 2014

javascript - How to change format between currency and percent in Google Charts? -

Image
I created a chart in the Google Charts. I have a category filter, where I have filters in different years and so on I can do it, and I also have a filter which I can choose which data to compare, but for my question now: How can I make a selected filter that chooses between currency and percentage? As you can see, I have a column filter (selection) at the top, I need "Format filter" which changes vAxis from percentage and currency. Example of work Here is my code: google.setOnLoad callback (draws) Chart); Function drawChart () {var data = google.visualization.arrayToDataTable ([['Date', 'A', 'B', 'C', 'D', 'E'], ['2012 Population', 100, 126] , '' 2012 '', 152, 254, 242, 168, 136], '' 2012 '', 300, 232, 234, 195, 343], ['April 2012', 450, 242, 325, 121, 126], ['Major 2012', 600, 224, 234, 151, 124], 'June 2012, 750, 121, 867, 152, 235],' 2012 Julie ',...

mysql - Multiple conditions in SQL joins -

How does the specification of several conditions in SQL ? To specify several conditions in SQL below is correct, I know A key = bee is different from this OR Pre> at (a.kk = bk where condom 1 and / or con2. Etc) I think your first option is correct. You can use more than one circumstance such as: ON (A key = B and / or COD 1 and / or CD2 ... etc). For second, WHERE should come after the nuclear block (involved in using all the join clauses) Again, it will filter the data after it's inserted. Just close the first bracket, then it will also work. Like: ON (A key = BK) WHERE cond1 and / or cond2 ..ETC All the above options can be used depending on your requirement .

ios - Persistent allocation of Heap Memory NSTimer -

Image
I got a problem with my sample project, I just create a scheduled timer that "animate" a label And then, when I reach the result that I want, I invalidate the timer and I set each other, at the moment as "clock" This is the code that I use // // ViewController.m // // // #import "ViewController.h" ANIMATION_DURATION 1 // View Interface @ Interface Controller () {int contatore; NSString * hour; NSString * minutes; NSString * Second; } @end @ Implementation View Controller - (zero) viewDidoadload {[Super Viewedload]; // Setup an additional after loading the view, usually from a nib Contatore = 0; [Starttime animation]; } - (zero) did risiv memorialisation [[super davidimmemi warning]; // Any resource settlement which can be reproduced. } - (Zero) Starttime animation {NSTIMER * AnimationTimer = [Estimator Scheduled Timer with Time: Animator Target: Self Selector: @Sillector (Timeout :) User Inc.: Zero Repeats: Yes]; } - (zero) timeout: (NSTimer *) time...

php - dynamic dropdown is populated ONLY if I click on it -

मेरे पास एक टेक्स्ट बॉक्स है (ऑटो-पूर्ण) जहां उपयोगकर्ता एक अभिनेता / अभिनेत्री का नाम दर्ज कर सकते हैं जो ठीक काम करता है। जैसे ही उपयोगकर्ता टेक्स्ट बॉक्स में एक नाम डालने के लिए, एक गतिशील ड्रॉपडाउन उस अभिनेता की फिल्मों की सूची दिखाने में पॉपुलेट होना चाहिए। समस्या: जब उपयोगकर्ता टेक्स्ट बॉक्स में कोई नाम डालें, एक खाली ड्रॉपडाउन पॉपुलेटेड हो जाता है, लेकिन अगर उपयोगकर्ता पृष्ठ में ड्रॉपडाउन या कहीं पर क्लिक करता है, तो फिल्मों की सूची दिखायी जाती है ड्रॉपडाउन में! एक और मुद्दा यह है कि अगर उपयोगकर्ता प्रेस पाठ बॉक्स के अंदर प्रवेश करता है (उसके बाद वह नाम डाला जाता है), तो टेक्स्ट बॉक्स साफ़ हो जाएगा !! कोई मुझे कृपया मुझे अपने कोड में क्या समस्या है, यह जान सकता है? यहां कोड है: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; link type = "text / css" href = "res / jquery-ui.css" rel = "स्टाइलशीट" / & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "res / jquery.min.js" & gt; &...

regex - List unique positions from list combined with associated string -

I need to list the unique numerical positions from a file, and then let the exclusive Indels after every position. If there are more than one different indices, then I want to list each status / indel on different lines. I am the best solution to collect, but I have no luck. Is there a module-free way? Please tell me if my description does not understand. FILE1 data: 7065_8 # 10 99269 T 7065_8 # 10 126,477 -c 7065_8 # 10 413,711 + T 7065_8 # 10 586,681 single 7065_8 # 10 820,739 + T 7065_8 # 10 927,l02 + T 7065_8 # 10 942 973 + T 7065_8 # 10 L,075,448 + G 7065_8 # 11 99,269 tax 7065_8 # 11 126 477 income tax 7065_8 # 11 4l3,7ll + T 7065_8 # 11 470,2ll + G 7065_8 # 10 927,l02 7065_8 -a # 10 942,973 + T intermediate result: 99269 (-T-T) 416,411 (-T-T) 413,711 (+ t + t) 586 681 (-A ) 820 739 (+ t) 927 102 (+ T-A) 942 973 (+ t + t) 1,075,448 (+ g) 470 211 (+ G) The final output: 99269 (-T) 126,477 (SI) 126 477 (-T) 413,711 (+ T) 586,681 (single) 820,739 (+ T) 927...

Jni object growing memory in java loop -

When creating a JNI object in the Java loop, the memory continues to grow in Java. Example: class net {original zero hello (); Public static zero main (string [] args) {while (true) {// jni object play net = new net (); // This loop is mounting in memory}} Static {System.loadLibrary ('Hello')}} JNIEXPORT void JNICALL Java_Nat_hello (JNIEnv *, jobject) {// nothing code ........... ... .........} pass loop one The new net object that requires memory since the loop is always running and there is no break-in situation, so the memory actually increases rapidly.

php - I try upload the user comment into my db. After I click submit, everything looks fine but I look in my db, there are no record. -

I tried a tutorial from some websites. I try to upload a user comment in my DB. After submitting, everything looks fine but I see in my DB, there is no record This php code is $ dbhost = 'localhost: 8090'; $ Dbuser = 'root'; $ Dbpass = 'Password'; $ Conn = mysql_connect ($ dbhost, $ dbuser, $ dbpass); If ($ _POST) {$ con = mysql_connect ("localhost", "root", "password"); } If (! $ Conn) {dead ('could not get DB');} mysql_select_db ("doctor", $ conn.); $ Ticket_user_fname = $ _POST ['fname']; $ Ticket_user_lname = $ _POST ['lname']; $ Ticket_email = $ _ POST ['email']; $ Ticket_hp = $ _ POST ['contact_number']; $ Ticket_content = $ _POST ['Content']; $ Ticket_category = $ _POST ['category']; Include VALUES ('ticket_id', 'ticket_time', '' 'ticket_id', 'ticket_id', ' Ticket_user_fname ',' ticket_email ',...

python - String assignment in a list in a 'for' loop -

I have a list ['1', '2', '3', '4'] and I want to convert it to: ['1.0', '2.0', '3.0', '4.0'] . In the code below, why does the second attempt work and not the first? & gt; & Gt; & Gt; List = ['1', '2', '3', '4'] >> gt; & Gt; For element in the list: ... element = element + '.0' ... & gt; & Gt; & Gt; Print (list) ['1', '2', '3', '4']> gt; & Gt; & Gt; For element in element (lane (list)): ... list [element] = list [element] + '.0' ... ... gt; & Gt; & Gt; Print (list) ['1.0', '2.0', '3.0', '4.0'] element is the local variable and only the current element of the list is specified. In the second case list [element] is assigned to indicate the current indicator of the element list in the list.

c# - Insert empty value from datagridview -

I am trying to insert the empty amount from the dotgrid view when the cell is left empty, this is what I I am: using (var reference = new employee attitudes) {EMPLOYEE emp = new EMPLOYEE (); Foreach (DataGridViewRow line in dgvLoadTable.Rows) {If (row.Cells [0] .Value! = Null) {emp.EMP_ID = int.Parse (row.Cells [0] .Value.ToString ()); Emp.DEPARTMENT = row.Cells [2]. Value is DBNull? String Empty: line. Seals [2] Value Toasting (); // Also tried: emp.DEPARTMENT = Row Seals [2] Value is DBNull? DBNull.Value.ToString (): row.Cells [2] .Value.ToString (); Context.EMPLOYEE.AddObject (EMP); Context.SaveChanges (); }}} but it is not working, when I try to include zero value, it throws it "the object is not set for the example of reference object "Exception what am I doing wrong here?

javascript - How to check with PHP if a user likes my Facebook Page or not -

Hi, I want to show the content after clicking on the Like button on the user if he likes it, There will be no need to repeat again Thanks It is no longer possible to get the position of choice in any page tab Now it is not allowed to encourage the page You can assign a user to user_likes Can authorize with permission, but you will not approve it for gating, so there is no option The main point is second only if it is not allowed to show content only Land when the user likes your page. People should like something because they actually do this, not because they are compelled.

html - Adding Video Tag in iframe -

I have an iframe in the developer in which I want to add video. I have correctly added a URL path to the video but the video is not found on the screen, neither I am getting any error on the browser console. Here's the whole HTML. & lt; Div style = "position: relative, width: 100%; height: 0; padding-bottom: 56.25%;" & Gt; & Lt; Iframe width = "420" height = "315" frameborder = "0" acceptable screen style = "position: full; top: 0; left: 0; width: 100%; height: 100%;" & Gt; & Lt; Video ID = 'Video-player' autoplay preload = 'Metadata' control & gt; & Lt; Source src = "video / Sapno.MP4" type = "video / mp34" & gt; & Lt; / Video & gt; & Lt; / Iframe & gt; & Lt; / Div & gt; Please help me display videos on my website .. Thanks .. You do not need to use an iframe here, if you remove the iframe, this will work, if you need iframe f...

How to round up the time to next hour in QT? -

यह कोड है: startdate-> setDateTime (QDateTime :: currentDateTime )); FinishDate- & gt; सेटडेट टाइम (QDateTime :: currentDateTime ()); FinishDate- & gt; सेटडेट टाइम (startdate- & gt; डेटटाइम)। AddSec (3600)); उदाहरण के लिए अब समय 13:34 है मुझे प्रारंभिक समय की आवश्यकता है 14:00 तक पूर्ण होने के साथ-साथ 15 मिनट तक का समय: 00 किसी को भी यह कैसे करना है पर कोई विचार है? कृपया एक उदाहरण भी प्रदान कर सकते हैं? धन्यवाद: डी मान लें कि आप हमेशा हाल की तिथियों पर काम करेंगे (1 9 70 से पुराने कभी नहीं) आप इसका इस्तेमाल कर सकते हैं Unixtime और सरल गणित कहा जाता है, इस तरह: uint unixtime = QDateTime :: currentDateTime ()। ToTime_t (); // वर्तमान यूनिक्स समय यूआईटी राउंडहौर = यूनिसेटाइम + (3600 - अप्रत्यक्ष% 3600); // इसे एक घंटे तक QDateTime शुरू; QDateTime hourLater; start.setTime_t (roundHour); // सेट समय-समय पर गोल समय घंटे के लिए सेट करें Later.SsetTime_t (roundHour + 3600); // निर्धारित समय से एक घंटे बाद startDate- & gt; सेटडेट समय (प्रारंभ); finishDat...

Error when creating a Caesar Cipher Program in Java -

I am trying to create a program that changes 'one' to 'e' to 'd' , 'B', etc. I've written some code and received this error message: Error: Define the main method as the main method found in class EC1: public static void (String [] Args) or a JavaFX application class. Javafx.application.Application Here is my code: public class EC1 {private string alphabet = "Abcdefghijklmnopqrstuvwxyzabc"; Public string encrypt () {scanner scan2 = new scanner (System.in); System.out.println ("Enter your message"); String pop = scan2 Tosting (); Int key = 3; String code = ""; For (int i = 0; i & lt; poop.length (); i ++) {int a = ALPHABET.indexOf (poop.charAt (i)); Int keyVal = (key + A)% 26; Replace four VAL = this.ALPHABET.charAt (keyVal); Code + = replaceVal; } return code; }} After JVM searches for the main () system to start execution . If the control starts from there, then you need to add the ma...

javascript - Adding a value to x axis labeling in d3.js -

Let me mark the x axis of my chart with the date and build number. How can I get it? Here is a code of my code: The data is structured like this: var data = arrData map (function (d) { Return {Date: Parsadet (D [0]), Build NB: D [1], Failure: D [2], all: D [3]};});

c++ - Difference between this. and this-> -

What is the difference between the . and it-> ? If yes, please elaborate the differences? One will be compiled, one will not be. This is an indicator, and you . Can not apply to an indicator.

html - Twig Set array value based on key -

I found similar questions like this here, but the answers from there do not help me. > pre & lt; & Lt; TR & gt; & Lt; Th & gt; Permission & lt; / Th & gt; {% For role in roles}% th & gt; {{Role}} & lt; / Th & gt; {% Endfor%} & lt; / Tr & gt; {% Permission is allowed in%} {% if allowed. PermissionName! = CurrPerm%} {% if currPerm! = ''%} & Lt; Tr & gt; & Lt; Td class = "current-permission" & gt; {{CurrPerm}} & lt; / Td> %} For perm in {Permerray%} & lt; Td> {{Perm}} & lt; / Td> {% Endfor%} & lt; / Tr & gt; {% Endif%} {% set currPerm = permission.PermissionName%} {% set permArray = default%} {% endif%} {% set permArray [permission.RoleId] = '& amp; check;' %} {% Endfor%} & lt; Tr & gt; & Lt; TD & gt; {{CurrPerm}} & lt; / TD & gt; %} For perm in {Permerray%} & lt; Td> {{Perm}} & lt; / Td> {% Endfor%} & lt; / Tr & ...

dependencies - NuGet Dependency Hell -

I have a small question that is related to our own Nugget Server and Nuggets packages, which we are motivating for it We have a number of projects and an optimized TFS manufacturing process that is automatically moving the NuGet package onto our newgate server - so far it is working very well. We are currently asking that this is a good solution: Our main project is using dependency injection to solve dependencies so we have a project structure: Interface (.dl) DataLayer (.dl) Localization (.dl) Infrastructure (.dl) Application (.xa) In my opinion I would like to divide things into smaller resolutions Simple and easy to use: Interface (only one project: interface definitions) Compontents (three projects: with datelare, localization and basic features) Application (only one project: XE only) This leads us to the problem that if an interface is changing, then we need to update the NewJet-packet version The interface inside the project of each component, in o...

aem - CQ5 modify event fired on page delete -

I am trying to use the CQ5 workflow to control my resources (especially the page). I want to start various scripts at different events (add / delete / modify) I have registered a launcher on every event. When I delete a page, delete both and modify events that are removed and so both scripts run. Thanks for any advice delete a page, actually delete A version of the page is created before going, which means that it will actually fire a pagemodification event as VERSION_CREATED . You can confirm this by using the following sample event handler which will only log the pageadfication. @Component @Service @Property (name = "event.topics", value = PageEvent.EVENT_TOPIC) The public class MyPageEventHandler implies EventHandler {Private Final Logger Log = LoggerFactory.getLogger (this. GetClass () .GetName ()); @ Override Public Wide Handel Event (Event Event) {PageEvent pgEvent = PageEvent.fromEvent (event); Iterator & LT; PageModification & gt; Modification...

Chrome extension: message from popup.js to content.js -

मेरे क्रोम एक्सटेंशन में, मैं popup.js से content.js । यह पॉपअप में एक घटना के आधार पर होने की आवश्यकता है, इसलिए इसे सामग्री या पृष्ठभूमि से संदेश पर ट्रिगर नहीं किया जा सकता है। मैं यह परीक्षण करने के लिए सिर्फ निम्नलिखित कोड का उपयोग कर रहा हूं कि संदेश पारित किया जा रहा है या नहीं। में popup.js : chrome.tabs.query ({active: true, currentWindow: true}, फ़ंक्शन (टैब) { Chrome.tabs.sendMessage (टैब [0] .id, {ग्रीटिंग: "हैलो"}, फ़ंक्शन (प्रतिक्रिया) {चेतावनी (प्रतिक्रिया। फ़ेयरवेल);});}); में content.js : chrome.runtime.onMessage.addListener (फ़ंक्शन (अनुरोध, प्रेषक, प्रेषण भेजें) { चेतावनी (प्रेषक.कैब? "कंटेंट स्क्रिप्ट से:" + sender.tab.url: "एक्सटेंशन से"); अगर (request.greeting == "हैलो") भेजेंसेस्पॉन्स ({विदाई: "अलविदा"});} ); ; समस्या यह है कि संदेश केवल तब ही दिया जा रहा है जब मैं एक नया टैब खोलता हूं, तब नहीं जब मैं एक सक्रिय टैब में हूं। यह विचार है कि उपयोगकर्ता पॉपअप में एक सेटिंग चुनने में सक्षम है...

R: subset dataframe based on column entry in multiple rows -

I have a format that contains information about several genes: chr gene area 1 100 110-bit Axon 1 120 130-bit intron 1 500 550 ball upstream, downstream 1 590 600 ball intron, upstream 1 900 9 80 dead promoter, upstream I would like to start in the field column " I used to reduce the data to remove any lines containing genes with "Exxon" or "Promoter" I was using: field & lt; - subset (table, area == "intron" | field == "downstream" | field == "upstream" | field == "downstream, upstream") though it gives me Is: chr start end gene area 1 120 130 bit intron 1 500 550 ball upstream, downstream 1 590 600 ball instrumron, upstream What do I need : After the GR field starts, the CRR starts 500 500 ball upstream, downstream 1 590 600 ball int Try it grepl : df [! Grepl ("Exon | Promoter", df $ area), #################################################### Grepl ("Exon | Promoter...

java - Create multiple beans from one method in @Configuration class -

I'm Spring for DI and I'm using No XML. Based on configuration (for example, an XML / Property File), I am looking to create a specific type of beans (the exact number is determined by the configuration) so that in my context So that they could be autowired in the classroom. @confuturation By autowire: @Autowired Public MyClass (list type) I @configuration . Then I can do something like this: @configeration public microformation class {@ etowair public videconfig (application contact reference) {// register stuff here} } ... but this "feeling" is not correct ... What is the "spring" way of achieving this? Edit: Imagine this code, where To and Ty are only empty class definitions. @config configuration public group S {@ Bean public collection & lt; Ty & gt; TyList () {New Array List & lt; Ty & gt; () {{This.add (new Ty ()); // May be a number of times instances }}; } @ Bean to public (collections & lt; ...

How can i create a CSR (Certificate signing Request ) file in a Linux Ubuntu 13? -

I am trying to create a CSR file in an Ubuntu 13. How can I do this from the command line? I know how to do this with the Mac OS in the keys, but in fact I do not have one. I try this in the Mac OS: Keychain Access drop down menu, Keychain Access> Certification Assistant> Request a certificate from a certificate authority. In the certificate information window, enter the following information: In the user email address field, enter your email address in the Common Name field, create a name for your private key (e.g., John doe dev key) . The CA email address field must be left blank. In the "Request" group, select the "Saved disc" option. To complete the CSR Generation process click Continue during the key mill reach. You have the command openssl req , here are the instructions: This is a bit of a process, but it will boil down for something: openssl req -new -key server.key -out server .csr

php - Regex with the following conditions -

I am trying to understand how regex works by matching a regex to the following conditions: The string must start with one or more alphanumeric characters. The string should be followed by the '@' sign After the string 'asa' immediately after the string '@' string in a string Or more of 0 and / or 1 string must be followed other string after string I'm around Phase 4 and now I'm stuck, collecting one or more special characters and / or numbers, no letters 'abc' was thinking that E person may offer some tips: $ pattern = "/ ^ [a-zA-Z0- 9 @] + @ + [Asaa] + [01] /"; $ Theme = "abcB123Ccac @ asa01"; Echo preg_match ($ pattern, $ theme)? 'Match': 'no match'; You can try regex below. ^ [azza-j 0-9] + asa [01] + @ [^ azza-jade] + ac $ The code will be, $ pattern = "~ ^ [a-za-z0-9] + @ asa [01] + @ [^ a-za-z] + abc $ ~"; $ Theme = "abcB123Ccac @ asa01"; Echo p...

javascript - Json check if certain element has been received -

I have an AJAX call for one of my services that manipulate some databases. The question I am asking for is an easy way to see if I get a certain element in my JSN. For example, I'm receiving {message: "some data message"}, but if there is an error, I want to send back {error: "my error message"}. Is there an easy way to see if an error has been sent? I think the argument is like this (it does not work) $ Post ("database.json", {id: id, info: info}) .done (function) {if (data.error) {alert (data.error);} else {alert (data.message); } You can see it with (Data.hasOwnProperty ("error") {alert (data.error);} else {alert (Data.message);}

java - How to generate .classpath using mvn eclipse:eclipse for multiple pom.xml files? -

I have a Java project with a parent pom.xml and say, 3 children with a pom.xml Module all in In the case of a palm, I usually use the MVN eclipse: to get the Eclipse .classpath file, which I can use in Eclipse to solve Classpath. Please give me such a one in the case of several PEMs. Explain an easy way to get a classpath file. Note: I tried to run Eclipse MVN in any way: Eclipse in individual modules and later manually a. Classpath integrated the file, whatever worked. thank you in advanced. !! If you select "Import", eclipse does not create such files -> "Maven Project"? I do;) Also, to import the subproduct, you need to click on the main / pam project and choose "Import" -> "Current Maven Projects". They will also be visible in Eclipse.

Yeoman MeanJS Generator Showing Bootstrap 2 Buttons -

Image
I just tried to use the first time and I'm wondering why bootstrap buttons are moving in bootstrap 2 . My dependence says that I have installed bootstrap 3 with the project. String JavaScript with MongoDB, Express, AngularJS, and Node.js "~ 1.2", "angular-socks": "~ 1.2", "angular-resource": "~ 1.2", "angular-resource": "~ 1.2", "angular-resource" Bootstrap "": "~ 0.11.0", "angular-ui-utils": "~ 0.1.1", "angular-u-router": "~ 0.2.10"}}} The code uses standard sections of the bootstrap ... one class = "BTN BTN-Primary BTN-LG"> Learn More & lt; / a & Gt; And yet, it looks like this ... Also see:

How to stream an image from Python to C++ using Apache Thrift -

How do I stream files using Apache Thrift? I have searched a lot about the thrift and did not find any well documented documents about it. Why did Facebook open this project without docs? The way I would recommend it is to set up your service to distribute data of chunks For more information, visit: GetChunk (1: string processing, 2: IOF offset, 3: IOS size)} / Code> It is a good idea to limit either size to some sensible values ​​(should be checked on server side), or size logic and everything Distribute a fixed, predefined pieces of pieces so that they can dismiss customers by asking for larger data blocks at large. Note that the whole process needs to follow the bridge model, no built-in push feature. However, you can still push, you need to run a thrift server on the client side and pass the required connection information. Although it will not work in all scenarios (especially transports), it is a fully functioning solution, where this is possible.

javascript - Sharing variable scope with jsdom and jquery in Node -

So, I was writing a simple page scraper with jsdom and jquery, and ran into a problem I'm not sure How to solve that Here is some code that works (URL changes): var jsdom = need ("jsdom"); Var FS = Requirement ('FS'); Var jquery = fs.readFileSync (".js / jquery-min.js"). ToString (); // Product has two pages, here page 1 jsdom.env ({url: 'http://exampleshoppingpage.com', src: [jquery], done: function (error, window) {var $ = window. $; $ ('.product .product .title a'). Each (function () {console.log ($ (this) .text ());});}}); // page2jsdom.env ({url: 'http://exampleshoppingpage.com?page=2', src: [jquery], done: do the exact thing for function (error, window) {var $ = window $. ($ .products list .Product .title a '). Each (function () {console.log ($ (this) .text ());});}}); But what I really want to do, all these products should be obtained and they need to sort them before printing. Here's what I've tried...

html form - rails, provide visual feedback on a password, yet keeping it secure -

I have a password stored in the database The user should be able to set a new one. I have also used to store an entry-encrypted gem as an encrypted text (symmetric because I need to connect it to other services and not just to enter), but it's another The story is there. When I show the form, The default behavior of Ruby Headers is not sending back passwords in the browser for obvious security reasons. Here's the code: & lt;% = f.input: app_password ,: as = & gt; : Password% & gt; This behavior can be fine, yet some issues arise. If the user saves the form with an empty password, the password will be deleted. I should check the password-saving password, but in some applications the password is acceptable and I can stop this possibility from doing so. This does not provide user feedback on the fact that he or she has compiled the password field It does not play very well with assumptions Here are my options for getting the most possible possi...

java - Box2d with AndEngine exception creating fixture -

I am using AndEngine with Box2D extension, and when my game loads its map, sometimes it crashes (Yes, only sometimes. It looks so random for me) and it looks like detection: # 00 pc 0040180 / data /app-lib/com.sergio Game-2 / libandenginephysicsbox2dextension.so (B2Body :: CreateFixture (b2FixtureDef const *) + 8) # 01 pc 0000c408 /data/app-lib/com.sergio.game-2/libandenginephysicsbox2dextension.so (Java_com_badlogic_gdx_physics_box2d_Body_jniCreateFixture__JJFFFZSSS + 112) # 02 pc 0001dbcc / system / lib / libdvm (dvmPlatfor MInvoke + 112) # 03 PC 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod (unsigned int constant *, JValue *, method constant *, thread *) + 398) # 04 pc 00,000,214 / dev / ashmem / dalvik-jit- Code-cache (deleted) This will not tell me what's actually crashing, and I do not know where it's on. I make the body and fixtures as always: FixtureDef wallfixture = PhysicsFactory.createFixtureDef (0, 0, 0.2f); Wallfight.filter Community = CATEGORY_WALL;...

Multiple HSMs through PKCS#11 -

I have multiple SAFNET HSMs that I want to connect them all with one customer at any one time. I know that it can not be done through PKCS # 11 because PKASS # 11 has the same HSM concept at one time with multiple slots. So, it is possible to connect to many HSMs at any one time? Yes, the support of the Safant HSM model is called some high availability mode. This app is called HSM Group Instead of allowing a virtual HSM view

vba - Outlook 2013 Userform with block Error when not "Popped Out" -

I have a set of macros that have worked out in Outlook 2003, 2007 and 2010. In fact, it still works in 2013 except for a special case. Whenever you try to send an email - the macro key brings a dialogue box to tag the subject line with the word. The problem is, if I have just started Outlook, and I get a new email or answer - the default in Outlook 2013 is to bring it to the pre-reading pane instead of a new window. If I can not hit "pop out" and try to send me, then my macro crashes with this error: "run-time error '91' object variable or block Variable is not set " I first tried to check the loading of the form - but it seems like any call to my user, even userform.show generates this error is. Strangely, if I remember my first "pop out" email, till I open Outlook / I open it again, everything goes fine even if I " Pop out "does not have other email It is only on the very first one which is this. Here is the beginning of m...

r - How to create a string from row values in a dataframe ignoring NAs -

यह मेरा डेटाफ़्रेम है: x1 & lt; -c ("a", " सी ("बी", "डी", "एच") - सी ("बी", "सी", "जी", "के") x3 और एलटी; - c ("बी", "डी", "एच" , एनए) x4 और एलटी; - c ("ए", "ई", "आई", एनए) डीएफ & एलटी; - डेटा.फ्रेम (एक्स 1, एक्स 2, एक्स 3, एक्स 4, स्ट्रिंग्सएएफएक्टर्स = एफ) डीएफ x 1 एक्स 2 एक्स 3 एक्स 4 1 एबा 2 सीसीडी 3 एफजी 4 जेके & लेफ्टिनेंट; एनए & gt; & LT; एनए & gt; का उपयोग करना लागू करें (डीएफ, 1, पेस्ट, पतन = "_") मुझे आपके समर्थन के लिए बहुत बहुत धन्यवाद। रामी अपने कोड का उपयोग, लागू करें (डीएफ, 1, फ़ंक्शन (x) पेस्ट (na.omit (x), पतन =" _ ")) # [1] "a_b_b_a" "c_c_d_e" "f_g_h_i" "j_k" एक और विकल्प होगा df [is.na (df)] & Lt; - '' gsub ("^ _ + | _ + $ _" _ "_" _ $ $ "," ", do.call (पेस्ट, स...

Using REGEX with Java to parse a single line -

I'm growing up through Arijiiaks issues, I am surprised at the proposed solutions by the people. Ways to use Rigaks I would never have imagined the amazing work people I think that there are many blocks that look like a file: STID = KATL STNM = 722,190 t = 141101/2000 slat = 33.62 Slon = - 84.35 SELV = 269.0 STIM = 35 show = 12.05 LIFT = 13.39 SWET = 144.43 KINX = 3.80 LCLP = 857.43 PWAT = 9.38 Totl = 36.21 Cape = 0.00 LCLT = 270.62 Scenes = 0.00 EQLV = -9999 .00 LFCT = -9999 .00 BRCH = 0.00 PRES TMPC TMWC DWPC thte DRCT SKNT Omeg CFRL HGHT 981,70 8,14 4,27 -0,68 293,47 325,20 19,41 0,10,00 289,15 and I need only pars out: STID = KATL STNM = 722190 time = 141101/2000 I have included Arijiiaks the demo I am for your reference, I use it: STID = [AZ] {4} STNM = [0-9] * TIME = [0-9] * / [0- 9] STID * = * [AZ] {4} * STNM * = [0-9] * * time * = * [0- 9] * / [0-9] * thanks to @anubhava

xcode - iOS: UITextView set height equal to content height -

I have a UITextview with disabled scrolling and I want to set the height of the UIFTviewview to match the content of the content the wanted. I have tried several ways in which no result is found. This is my code for the layout of UITextView: - (zero) viewDidleWatchSubview view {// the name of the UITIKE is Job Dexcryation Job Viewer. CrawlAnited = No; [Job descript size tofitt]; [Job Descript LayoutEiff Undeaded]; } I have also removed this code in viewDidAppear: method. Can anyone post code for this problem using iOS 7.0 and later solutions using automatic layout? Did you try it? I added a button, with the code flowing in its methodology, I can see that the height has been changed to text height. CGSize size = [self.textView systemLayoutSizeFittingSize: self.textView.contentSize]; Cgtff frame = self .text. Scene.fr; Frame.ize.height = size.height; Self.textView.frame = frames; Edit I added a lower position to the supervised obstacle and set it as the property of...

vb.net - Mark Overridden member as obselete -

Say I have such a class structure: public class student people The Overridi Function SayHello () String and Function Enge Class Public Class Undergraduate Inherits Student and Lieutenant; Obsolete ("marked as expelled 04/11/14"., True)> _ Lok Override Function is a example of Sohlo () string and function and class as if undergraduate call SayHello I would like to call the student version of the method I thought it would be receiving by applying ObseleteAttribute , though it is not. Do I have to comment or remove the overriding undergraduate.sahello method? obsolete entry is not the reason for the compiler to ignore the presence of the method . The compiler still compiles the method in the assembly, so if it is called successfully, the version of undergraduate will still be called. The attribute is only the metadata that describes the compiler method embedded in the assembly. This feature will ideally call consumers by speaking, but it can not st...

Use of reference in C++ -

I am writing code to solve the "recovery binary search tree" problem. Tree node * first; Tree node * second; Zero recovery (tree node * root) {inOrder (root); Int temporarily = first-> Val First- gt; Val = sec-> Val Second-> Val = Temporary; Return; } Zero in order (tree_node * root) {if (root!) Returns; Inorder (root-> left); If (! Ex) {east = root; } And (if (pre-> gtc-> gtc-> root-> val) {if (before!) First = pre; second = root;} pre = root;} in order (root-> right) ;}}; It works fine and past all tests and then I was thinking that the three pointers outside the function should not be defined, then I wrote something like this Class solution {public: zero recovery (TreeNode * root) {TreeNode * pre; tree node * first; tree node * second; inorder (root, pre, first, sec ); Inert Temporary = First-> Val = First- gt; Val = sec-> Val; Second-> Val = Temporary; Return;} Zero Inorder (TreeNode * Root, TreeNode * and Pre, ...

asp.net - How to encrypt sensitive web.config appSettings -

I know that I can encrypt sections of my web.config to protect sensitive data. I know that the machine is used to action / encrypt / decrypt. I know that I am hosting in a web form so that my machine should be sticky . But I think I remember this point. If I keep the machine in web.config, and I place the encrypted section in web.config, then how is it safe? Surely this is the best? My scenario: We are building web applications that are hosted in the cloud, they are developed and managed internally. The reason for the need to preserve the sensitive key is that we have settings that allow the use of third party tools (such as ESP, cloud storage, etc.). In the web .release.config conversion they are publicly visible, developers are free to connect with product services, open an element of risk. If you can fill the gap in your logic, then it will be good. But what I am really about is the best practice suggestion for solving my problem. I will add more information to...

javascript - Run Grunt Watch without blocking the terminal? -

I have a content file running grants and then there is a clock again on the console when there are some changes. The problem is that it blocks the terminal. I am running this as a Visual Studio Post Build Action, which means that the program never launches. Is there a way to run it, does not block it from? This looks like my waffle file: module Exports = function (grunt) {grunt.initConfig ({pkg: grunt.file.readJSON ('package.json'), concat: {JS: {src: ['public / app / ** / * .js'], Dest: 'public / app / app.js'}, css: {src: ['public / app / * * / * .css'], dest: 'public / app / app.css'}}, concurrently: { Watch: ['clock']}, see: {files: ['public / app / ** / * .js',' public / app / ** / * .css', '! Public / app / app.js ','! Public / app / app.css'], work: ['concat']}}); Required ('load grunting-actions') (grunting); Grunt.registerTask ('default', ['concat', ...

sql server - SET NOCOUNT ON Still returns a "nn row(s) affected" message -

I have a simple stored procedure that only selects data from some tables and only 1 input is the way I have installed my stored procedure, it is as follows: Processing DBO.prog_en (@Input) Set the next on start (Go to selection statement here) Finally catch End cache and Despite the addition of SET NOCOUNT, when I archive I call this procedure, even when I get the message "NAN line (s) affected". I tried to change the location of SET NOCOUNT, but it does not help with anything. The second thing that I saw is the return of my stored procedure: WARNING: Null value ends with an overall or other SET operation Message Is this warning set off at the signal stop? Syntax for Your process is incorrect. It should be: CREATE PROCEDURE dbo.Proc_Name @ input AS BEGIN ... bracket parameters are invalid around and you need keywords AS. I will correct it and make sure that your prop is actually compiling. Warning means that you are collecting an empty column...

websocket - How to limit Autobahn python subscriptions on a per session basis -

I am using autobahnpithon on the server side and autobanges in the browser with twists and turns (vamps). Is there a straightforward way to allow / restrict membership on a per session basis? For example, a customer should not be able to subscribe to topics related to other users. When I'm not using crossbar.io, I finally tried to use the Python code shown in the 'Examples' section An RPC call on this page was first authorized by a customer Is used to give. Of course, I am using my authorization logic. Once this Authority is successful, I want to give clients' exclusive privileges only to subscribe to related topics related to this client, like 'com.example.user_id' my problem This is that if auth passes, however, I have not found any way to limit membership requests in the AdSense session where the authorization occurs. Which client can I authorize to subscribe to 'com.example.user_b' with user_id = user_a? You can authorize your own router b...

c# - Disable or redirect keyboard input made to spawned subprocesses -

I have a calculator that comes with Windows. I wrote a C # application to launch it. Public Partial Sections Form 1: Form {Public Form 1 () {InitializeComponent (); } Private Zero Button 1_Click (Object Sender, EventArgs e) {Process Proc = New Process (); Proc.StartInfo.FileName = "Calc"; Proc.Start (); }} I am interested in whether I can suppress main input in subprances. For example, in the calculator you can kill the number keys to enter the input. Is it possible to do my keys through my application? Or, is it possible to force all input to go through the calculator first through your application? For example, suppose I want to make it so that the calculator is nothing by pressing number 5, the calculator was launched using my application. Yes, you can redirect to the standard input stream, which allows the user to log in directly to the console window To Your program can write process to send input to Process.StandardInput (which is TextWriter ). C...

javascript - Filtering array of JSON data using multiple controls -

I used bootstrap and jquery to create a small mobile app that pulls an array of objects from the URL And one of them tables now I have around 5 controls (button groups and dropdowns) that I want to use to filter JSON data. My question is that should I use AJAX? When any control changes, I have a filter without refreshing any page. It has been for many years when I used Ajax (back when I developed into .NET) but I know that it has been built in jquery. This is my jazzery function that makes my table object: $ (document) .ready (function () {var url = "http: //json.url/"; $ .getJSON (Url, function (json) {var tr; for (var i = 0; i & lt; json.length; i ++) {// Each table row tr = $ ('& lt; tr data-id =' '+ Json [I]. + "Class =" tap "& gt;'); tr.append (" & lt; td> "+" & lt; span & gt; "+ json [i]. Part_number + "& lt; / span & gt;" + "& lt; br>" + json [i] .ime...

regex - Cannot delete non-space whitespace character in excel -

Whenever I bring data into Excel through any method (import, paste, ...) Sometimes the following issues are encountered. There is an extra space in front of the text at the beginning of the room. Now I have normal procedures to handle this matter: trim (cell number) and if it is not a space character = TRIM (SUBSTITUTE (cell number, CHAR (160), CHAR (32)) but this time both do not work. I try the other option CHAR Of And in the beginning the character is just plain weird. When I go to the beginning of the cell and try to remove it, then I have to delete the key twice to remove a place! But when I go to the first letter in the cell and instead the backspace is killed, I need to press it only once. What else can I do to eliminate this strange non-space whitepress? If the cell A1 contains non-visible junk characters, Em> identify before you can delete them. Select some cells and enter: = IFERROR (code (MID ($ A $ 1, ROWS ($ 1: 1), 1)), "" ) ...

jquery - Registering ng-click in Angular after external data is loaded into datagrid -

I am working on creating an app in fingers, and one of the main components is a datagrid. I am using jquery-easyui datagrid which is embedded with a backend script. The problem I am facing is that once the data grid is loaded, I will be able to click on the matching headers and get a warning needed. I am loading the datagrid in an angle director's link object. I have tried two approaches that the data is adding a "ng-click" attribute after loading, and the second is using the 'click' function. None of them ever triggers any event, the element is added to the element, but nothing happens on the click I have the $ compile ($ ('. Class')) ($ radius); is used after adding the attribute, but there is still nothing I'm actually trying to learn kangaroo, and any feedback is appreciated. I apply the changes mentioned in the answer given to Vojensto, but the ng-click attribute is still not firing. It has been said here that simple-datagrid looks like ...

java - Object created in main doesnt perform in other classess -

I need help I stuck with this. This is a class restaurant, I want to use my objects wtr1, wtr2, wtr3 which is a waiter class. I started them in my main. Public category restaurant player {Private Final Vendors wtr1, wtr2, wtr3; Public restaurant (waiters wt1, wait wt2, waiters wt3) {super;) This.wtr1 = WT1; This.wtr2 = wt2; This.wtr3 = wt3; Calculate Public Float Salary () {employee employee = new employee (); Float wtrsal1 = 0; Float wtrsal2 = 0; Float wtrsal3 = 0; Float cell = 0; Switch (wtr1.wExp) {case "low": wtrsal1 = emp.salarywaiter [0]; break; Case "Medium": wtrsal1 = emp.salarywaiter [1]; break; Case "High": wtrsal1 = emp.salarywaiter [2]; break; } Switch (wtr2.wExp) {case "less": wtrsal2 = emp.salarywaiter [0]; break; Case "medium": wtrsal2 = emp.salarywaiter [1]; break; The case "high": wtrsal2 = emp.salarywaiter [2]; break; } Switch (wtr3.wExp) {case "less": wtrsal3 = emp.salarywaiter [0]; break;...

c# - Databinding to a ListView inside a HubSection -

I am getting search results from the Bing API and each article is added to the list and no results appear in XHTML but HubSection is. private list & lt; NewsAds & gt; BNews = New List & amp; Lt; NewsAds & gt; (); Where the news article is defined: public class news article: INotifyPropertyChanged {Private string description; Public Event Threaded ChangedEventHandler Property changed; Public string description 1 {get {return details; } Set {description = value; }} Private string links; Public string link 1 {get {return link; } Set {link = value; }} Private string title; Public String Title 1 {Get {Return Title; } Set {title = value; NotifyProperyChanged ("title"); }} Public Zero NotifyProperyChanged (string propertyName) {If (PropertyChanged! = Tap) {PropertyChanged (New, PropertyChangedEventArgs (propertyName)); }} And here XAML is showing my HubSection and My bindings. & lt; HubSection DataContext = "{Binding BNs}" name = ...

visual c++ - Comparing double error C++ -

Recently, while comparing a double in a statement, I could collide in a problem. I was trying to compete in the number of whole numbers in the double, being initial, I'm not sure what went wrong in my code. This is my code: #include & lt; Iostream & gt; using namespace std; Int main () {int x = 0; Double double double int to double; // long double = 10; // Input Double // Loop while initializing (in & gt; 0) {x = in; // Convert from Double to Integer Out = (X / In); // Out (test if the whole number, return 1) test for // 1 //////////////// (out = = 1) {cout & lt; & Lt; "[Whole number]"; } //////////////// Test & COAT & lt; & Lt; "In:" & lt; & Lt; In & lt; & Lt; "," ;; Cout & lt; & Lt; "X:" & lt; & Lt; X & lt; & Lt; "," ;; Cout & lt; & Lt; "Out:" & lt; & Lt; Out & lt; & Lt; Endl; In-> 0.1 =; // Loop to eliminate (fina...

c# - How to bind DependencyProperty without using MVVM -

Well, I am doing a small project and I came to know that it was not necessary to implement the complete MVVM. I am trying to tie some properties behind the code, but can not manage it to work. The use of dot dependency properties and the code behind it is binding. I tried to follow these links and questions: But they MVVM related or at least I can not adapt code in my case. The illustration should be very simple. MainWindow.xaml & lt; Label name = "_lblCurrentPath" style = "{StaticResource CustomPathLabel}" tooltip = "{Binding CurrentPath}" content = "{binding currentpath, mode = twofold, updated SourceTrigger = property changes}" /> MainWindow.xaml.cs Public main window () {InitializeComponent (); SetBindings (); } #region Properties public static read-only dependency property current page authenticity = dependency Registrar ("current", typef (string), typef (menwindows), new property matadata ...

ios - How to implement custom UIView which is scrollable/zoomable? -

I want to create a "timeline" view. I'm comfortable with the GraphicsContext drawing API and I'm using it in the drawRect: method. This is for one more user) To create a sub-class UIScrollView or b) to make it viewable / scrollable / zoomable, to embed my custom True / idiomatic way. See UIScrollView in stockboard inside stockboard? How can I contact my "desired limit" in the scrolling machinery, depending on the one I use? And how can I know about my drawing code about the current scale / scroll, so I can attract properly. (I've done google for this, and no recent and simple dishes have been found for this) subclass or do not embed a UIScrollView as a view controller's outlet. UIScrollView is available from UIView so that you can treat it as a normal UIView outlet of your view controller, Can scroll.

python - Funny behaviour of my recursive function -

t = 8 स्ट्रिंग = "1 2 3 4 3 3 2 1" string.replace ("", " ") स्ट्रिंग 2 = [स्ट्रिंग में एक्स के लिए एक्स] प्रिंट स्ट्रिंग 2 श्रेणी में एन (टी -1): string2.remove ('') प्रिंट स्ट्रिंग 2 def रिमूवर (सीए): newca = [] प्रिंट लेन (सीए) अगर लैन ( Ca) == 1: वापस जाने के लिए: मैं के लिए ca में: newca.append (int (i) - int (min (ca)) x के लिए newca में: if x == 0: newca.remove (0) प्रिंट न्यूका रिटर्न रिमूवर (न्यूका) प्रिंट (रिमूवर (स्ट्रिंग 2)) यह एक ऐसा प्रोग्राम माना जाता है जो संख्याओं की सूची में लेता है, और उस सूची में प्रत्येक नंबर के लिए इसे से घटा देता है, मिनट (सूची) यह पहले कुछ पुनरावृत्तियों के लिए ठीक काम करता है लेकिन अंत की ओर नहीं। मैंने मदद के लिए यहां और वहां प्रिंट स्टेटमेंट जोड़ दिए हैं। संपादित करें: t = 8 स्ट्रिंग = "1 2 3 4 3 3 2 1 "string = string.replace (" "," ") स्ट्रिंग 2 = [स्ट्रिंग में एक्स के लिए x] प्रिंट लेन (स्ट्रिंग 2) डीईएफ़ रिमूवर (सीए): न्यूका = [] अगर लैन (सीए) == 1: रिटर्न (...

python - matplotlib tick labels not working -

Image
मेरे दो डेटा सेट हैं: वाई = [0.8, 0.9, 0.5, 0.4 ... 0.6] एक्स = [16,17,18,19 ... .. 216] plt.plot (वाई) plt.xticks (एनपी। रेंज (न्यूनतम (एक्स), अधिकतम (एक्स) +1, 10)) जो देता है: मैं इसे साजिश करने की कोशिश कर रहा था, लेकिन चूंकि एक्स अक्ष पर 200 अंक हैं मैं एक्स-टिक्स को केवल हर 10 में दिखाना चाहता था। लेकिन अब एक्स अक्ष की शुरुआत के बजाय 16 पर पहले लेबल के साथ 0 से शुरू होता है, हालांकि यह 16 के अनुरूप नहीं है। मैं 16 पर शुरू होने वाले एक्स को कैसे साजिश कर सकता हूँ, 16 से शुरू होने वाले प्रत्येक 10 अंक को 216 तक हर 10 जैसे 16/26/36/46 ... धन्यवाद यह वास्तव में बोझिल / इस सामग्री के लिए pyplot इंटरफ़ेस का उपयोग करने के लिए भ्रमित है मैं एक अक्ष ऑब्जेक्ट के साथ सीधे संपर्क करेंगे: आयात के रूप में एनएमपी आयात करें matplotlib.ticker mticker आयात के रूप में matplotlib.pyplot plt% matplotlib इनलाइन अंजीर, ax = plt.subplots (figsize = (8 , 3)) xtickslocs = np.arange (16, 217, चरण = 10) # ax.plot (x_data, y_data, ...) ax.xaxis.set_major_locator (mticker.FixedL...

Redirect php output (cli) opens many file handles -

I have a long running php script that is running on the command line: php myscript.php 2> Myscript.err.out & gt; Myscript.out & amp; This opens several (system-level) file handles for some reasone - like lsof | Grep myscript.out | WC-L is growing up to kill the border. Of course, no limit can be increased (through the ulimit ), but I really need to find this reason that in fact only one file handle will be open for that file (Increasing the Ie can only delay the problem) As I have not trimmed at least for example - here are some features: Open files The following two actions are strongly related to the number: Temporary files ( tempnam Store these temporary files in MongoDB System: SMP Debian 3.14.15-2 Is there any idea? (Or some things that I can try?) After a lot more trys, Could drill down: curl_setopt ($ ch, CURLOPT_FILE, fopen ('php: // stdout', 'w')); It was done in a loop (as curl example was reused - see) S...

java - Removing Objects (Account) from an ArrayList -

सार्वजनिक बूलियन निकास खाता (स्ट्रिंग अकाउंट नंबर) {int index = 0; बूलीयन पाया = झूठा; जबकि (सूचकांक & lt; accounts.size () & amp; amp;!) (यदि (accounts.get (सूचकांक) .getAccountNumber ()। बराबर (accountNumber)) {found = true; accounts.remove (AccountNumber); } और सूचकांक ++; } अगर (पाया == सच) {वापसी सच; } और झूठी वापसी; } जब मैं एक सही खाता नंबर दर्ज करता हूँ तो यह सत्य रिटर्न देता है, हालांकि यह ऐरेएलआईस्ट से खाते को नहीं निकालता है, कोई भी मदद की सराहना की जाएगी :) वहां हैं। एक सूचकांक लेता है, और दूसरा वस्तु खुद को हटाने के लिए ले जाता है। लेकिन आपने खाता संख्या प्रदान की है, सूचकांक या खाता ही नहीं। अकाउंट नंबर सूची में नहीं है, अकाउंट है, इसलिए अकाउंट नंबर नहीं हटाया गया है। आपके पास इंडेक्स है, अकाउंट नंबर के बजाय इसे आपूर्ति। accounts.remove (सूचकांक);

windows - Hook to Win32 API event to get notified when Desktop fully loads -

When a user logs in and visualizes the scenario without switching out to any other user. Then switch back while switching back (because we have never signed out), Windows will first show a black desktop, then flick some window (especially with 2 monitors), then finally, whatever we left off , Arranged everything in that situation. This playful and rearrangement takes some time (about 1 second). What would be the most effective way to get information about the complete loading of the desktop? I need this because I want to call my specific function when the desktop is fully loaded. One option is to hook up to WM_PAINT , but I use Spy ++ and I get 12 WM_PAINT events on the desktop, So anyone is aware of any other way? Here is a sample code that I have tested and it has actually worked with fast user switching in Windows 8.1: while (true) {HRESULT hr = DwmFlush (); If (hr == s_ok) {std :: cout & lt; & Lt; "True" & lt; & Lt; Std :: endl; } And {s...

c# - Getting last item in tree hierarchy -

I have a menu which supports many levels of hierarchy. I have a function to get the last item in the tree Created and its ID is returned I need this ID, so I can hide the down arrow on the management page. While this works, I spent 2 days trying to find a LINQ way to do the same thing. So my questions are: - Is it possible to do this completely in LINQ mode? - If so, how? My model for Menu Itam looks like this: Public partial class menuItem {Public MenuItem () {this.ChildMenuItems = new HashSet & lt; MenuItem & gt; (); } Public Entity ID {Receipt; Set; } Public INITIMIP ID {Receipt; Set; } Public int MenuId {get; Set; } Public String DisplayText {get; Set; } Public string controller {get; Set; } Public string action {get; Set; } Public taps qualified & lt; Int & gt; Parent menu item {receive; Set; } Public ANT rank {receive; Set; } Public Virtual MenuItemType MenuItemType {get; Set; } Public Virtual Menu Menu {Received; Set; } Public virtual iconging & ...