Posts

pydev - auto-generation of python file info(author, create date etc.) -

I am using Pyyx in EQUIPE when there is a new .p file, then generated information like below (author, Date etc.): "" "Created on October 10, 13:50:18 2014 @ Author: XXXX" "" How to Format Can change? Window-preferences- PyDev-Editor-Templates- Change your blank template

php - SUM of grouped COUNT which only calaculate max value and display count of max -

मेरे पास 6 फ़ील्ड के साथ एक टेबल है: पार्टीनाम राज्य निर्वाचन क्षेत्र candidatename जिला वोट भाजपा महाराष्ट्र नागपुर-पूर्व नितिन गडकरी नागपुर 1200 एएपी महाराष्ट्र नागपुर-पूर्व अरविंद केजरीवाल नागपुर 750 भाजपा महाराष्ट्र नागपुर-पश्चिमी विकी नागपुर 4800 एएपी महाराष्ट्र नागपुर-पश्चिम लकी नागपुर 3500 भाजपा महाराष्ट्र नागपुर-उत्तर राकेश नागपुर 100 एएपी महाराष्ट्र नागपुर-उत्तर रावण नागपुर 1500 मैं समूह पार्टीनाम, 'गिनती' के साथ निर्वाचन क्षेत्र और एक पंक्ति 'एसएम' चाहता हूं, लेकिन यह प्रत्येक निर्वाचन क्षेत्र से केवल अधिकतम मान की गणना करता है और फिर गणना और पंक्ति राशि। नीचे तालिका के लिए मेरा अपेक्षित आउटपुट पार्टी का नाम गणना करें 2 एएपी 1 bcoz बीजेपी नगपुर-पूर्व और नागपुर पश्चिम की ओर जाता है। इसलिए यह गिनती 2 प्रदर्शित करता है और नागपुर से उत्तर की ओर जाता है - उत्तर तो यह केवल 1 गिनती दिखाता है। > प्लज़ मुझे प्रश्न पूछते हैं ...... & lt;? Php $ state = $ r owdst [ 'राज्य']; $ Sqlst = "चुनें MAX (वोट) एएस वोट, निर्वाचन क...

asp.net - Object oriented design pattern for create more objects in a class(c#) -

I am new to OOP, I had a data storage class which needs to store temporary data, which requires application for calculation in the future, to allot different values ​​in this class and to return more than one return class Items need, according to my knowledge there is OOP pattern, which I can use for this kind of problem which increases the applicability again if I Please be experts in this field to find the best patterns to help my problem. Thank you! A possible solution is to use this. You can apply participants like this example: Defines the interface for component (librarian) objects that can dynamically add responsibilities to them. . Concrete blanket (book, video) defines an object with which additional responsibilities can be attached. The decorator refers to a component object and defines the interface that corresponds to the component's interface. The ConcertDecorator (Lending) connects the responsibilities to the component.

html - How do I grey out and show a loading GIF in the centre of a table -

I have a whole & lt; Table & gt; How does a loading image show in between? I have run some AJAX calls and are not able to enter the table and Ajax references are overlayed with a gray background with a loading GIF in the center when loading. This should work! Here, I betrayed with AJAX, it's not difficult. I have copied an AJAX call with my timeout function. By keeping in mind the other things, you can make that parent div a height Or width because my table is very low because it looks nonsensical from outside. Status: Relative is required because it allows the .page-loader to fill that space. You can clearly play with it. HTML: & lt; Div style = "position: relative" & gt; & Lt; Div class = "page-loader" & gt; & Lt; Img src = "/ content / loader.gif" style = "status: full; margin: auto; top: 0; left: 0; right: 0; bottom: 0;" Width = "100" alt = "Loading" & gt...

android - Place Button below ListView to fill all available space but Button should have min Height -

Image
How to move the button below the ListView to follow the next conditions: ListView The list available below is ListView content is too large if the bottom button should be scrolled down to ListV and ListView I believe it's impossible to do such a layout using XML layout Is obtained. You can try it dynamically. Create a test application with themes just like a proof-concept: & lt; Style name = "Aaptim" Original = "Android: Theme.Holo.Light.Actionbar. Fullscreen" & gt; Create Activity Layout activity_main.xml like this: Android: Android: Android: Android: Android: layout_width = "match_perrent" Android: layout_heck = "match_perrent" Android: layout_language parentbottom = "true" Android: text = "button" /> & Lt; / RelativeLayout & gt; And in this activity it works: the expansion of the public class MainActivity Activity (Private Button mButton; Private List View mList...

php - testing database results to set a checkbox as checked -

If a data appears in my database, then I have a checked attribute output on my checkbox Want to do / P> I tried to do in_array () , but it did not work due to values ​​(see database) I do not know how I will output them Well PHP Code: $ general_list = ""; ($ Line ['f_general'] == 'bar,') {$ general_list. = "& Lt; label class = \" bg-danger \ "& gt; & lt; input type = \" radio \ "name = \" normal [] \ "value = \" bar, \ "checked = \" Checked \ "/> bar & lt; / label & gt;"; } And {$ general_list. = "& Lt; labeled & gt; input type = \" radio \ "name = \" normal [] \ "value = \" bar, \ "/> bar, & lt; / label & gt; ; " ; } If ($ line ['f_general'] == 'restaurant,') {$ general_list = "& Lt; labeled> input type = \" radio \ "name = \" normal [] \ "value = \"...

javascript - jQuery-Mobile pagecontainerbeforechange does not fire -

I'm working on a single-page-application from jQuery-Mobile to pagecontainerbeforechange event Because I need to see if the class in my site-wrapper is " show-nav ". For this class in the site-wrapper, the site-menu is opened and the content moves 350px to the left. So if the user now clicks on the register, and before opening the site-menu, my register page is transferred and there is no possibility of getting it back because there is no site menu on the register page. First of all I tried to use the pagecontainerload event until I saw it disliked it. Then I changed it to page container loadbrush conversion event, but I can not work it. I want to check this page " .show-nav class" is id # registration Then, the user is on the main site, he Clicks "Register" and should replace " .show-nav " before the page. The function has already been set to remove the square, but I do not know how to call it correctly. function toggl...