Posts

Showing posts from January, 2012

mysql - mysqli extension is missing debian -

im डेबियन पर mysql-sever स्थापित करने का प्रयास करें (WD mycloud live) मैंने सब कुछ कोशिश की है I गूगल पर पाया, लेकिन कोई सफलता /etc/php5/conf.d/mysqli.ini न मौजूद है स्थापित के लिए मैं apt-get -f mysql सर्वर mysql-ग्राहक mysql इस्तेमाल किया अब तक मेरे पास mysql चल रहा है PHP संस्करण 5.4.11-1 लिनक्स डब्लूडएमएमक्लाउड 3.2.26 # 1 एसएमपी शुक्र दिसंबर 27 13:50:41 पीएसटी 2013 armv7l अतिरिक्त .ini फ़ाइलों पार्स /etc/php5/apache2/conf.d/10-pdo.ini, /etc/php5/apache2/conf.d/20-apc.ini, / etc / PHP5 / apache2 / conf.d / 20-curl.ini, /etc/php5/apache2/conf.d/20-pdo_sqlite.ini, /etc/php5/apache2/conf.d/20-sqlite3.ini, / आदि /php5/apache2/conf.d/include_path.ini mysql - संस्करण - & gt; 14.14 distrib 5.5.35 ver mysql, डेबियन-linux-जीएनयू (armv71) के लिए ReadLine 6.2 का उपयोग कर मैं वहाँ Webmin स्थापित मैं अपने mysql सर्वर जानकारी देख सकते हैं, मैं वहाँ है पथ आदेश mysqlshow को mysql आदेश को / usr / bin / mysqladmin पथ - / usr / bin / mysql पथ आदेश mysqldump के लिए - / usr / b...

cakephp - How can I fetch rows using numeric values as condition? -

There is a colum alphanumeric values ​​in my database table. I want to get only rows of numeric values ​​in this column. $ this-> Mymodel- & gt; Find ('all', 'position' => array ('mymodel .field') => gt; ???)); If you are using MySQL, you can use it. $ this-> Mymodel- & gt; Search ('all', 'conditions' => (array' Mymodel.field REGEXP '^ [0-9] + $ "'));

hyperlink - Ruby on Rails: Create record from link -

How do I issue a create order from a link? I have an if / else statement that displays editing or making, but I have not found the correct method of recording. I had this, but then I have to refresh the page to get this function, which I can not have: & amp; Lt;% If FollowUwyk Where (subject_id: sub. Point_id). First! = ZERO% & gt; & Lt;% = link_to "edit", follow_up3_week_path ([FollowUp3Week.where (subject_id: sub.subject_id). First])% & gt; & lt;% else% & gt; & Lt;% = FollowUp3Week.create (subject_id: sub.subject_id)%> & Lt;% end% & gt; And I'm trying this, but there is no luck yet (where topics are the link to the current page): Whatever suggestions, or references I should read, be greatly appreciated I really want to 'create' the link to generate a 'edit' link. Thank you for your time. You call a controller You will only be able to create a record, so what you want to do in your case,...

Eloquent JavaScript 2nd Edition recursion exercise solution -

I tried to solve the recurring practice of online book: Here's the question: We have seen that% (the remaining operator) can be used to test whether this number is used to check a number or weird using% 2 or not that it is divisible There is a positive way from two to the fact that a (positive, complete) number is too odd: There is also zero. One is strange. li> For any other number, its tolerance is similar to N-2. Define a recurring function according to this description. Function should accept a number parameter and return a boolean. Check it at 50 and 75. See how it behaves at 1. Why do I do this? Can you think of a way to fix it? Here's what I have tried and this works: function isEven (number) {if (number == 0) {back true; } And {return (-member% 2 == 0)? right wrong; } Returns also (number-2); } Console.log (isEven (-1)); But, this seems a wrong answer because I understand that the author wants me to use 2. I am thinking that this is the...

php - jquery AJAX function issue -

I am trying to run a function that executes a spinner while loading a PHP script And refreshes a PHP file that counts the number of rows inserted to show the progress of the script. This is what I have done so far: The progression () function starts yet, even if the button is not pushed even after the interval has ended, I believe that I should tie it with the spinner function But I am not completely sure how to do this work. Edit: Here is the HTML that displays buttons and divisions: & lt; div id = "stage" & gt; Click to import new data into the Assetata table & lt; P & gt; & Lt; div id = "spinner" & gt; & Lt; Img src = "/ images / spinner.gif" alt = "Loading ..." & gt; & Lt; / Div & gt; & Lt; Div id = "content" & gt; & Lt; / Div & gt; & Lt; P & gt; & Lt; Input type = "button" id = "driver" value = "load data" onClick = ...

ios - Storing functions in an array and applying them to an array of numbers -

I have prototyped an algorithm in Python of my iOS game, and I would have to rewrite the ObjC actually, my There is a board of 16 numbers, and I should loop three numbers through each number and the four functions I am using (add, subtract, multiply, exponentiate). 1 + 2 + 3, 2 * 3-4, 3 ^ 4-5, 9-4 ^ 3, etc., but without the operation (first operation is always done first). Would I like this to be an overview of how this can be implemented in objective C, in particular, what is the equivalent of an array of work in Objective-C? Is it an easy way to implement it with selectors? What is the best structure to use for loops with numbers? Array of NSInteger s, int s, NSArray / NSMutableArray of NSNumbers ? Random import as random = 0 maximum = 9 max_target = 20 max_to_calculate = 100 drt multiplication (x, y): return x * y def exponent (x, y): return x * Y def plus (x, y): return x + y def subtract (x, y): return x - y function_array = [multiply, exponate, add, subtract] b...

PHP query to search multiple tables in MySQL database? -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मैंने एक के माध्यम से पढ़ा है इन प्रतिक्रियाओं में से कुछ और मुझे यकीन नहीं है कि मैं इस बारे में कैसे जाना है, यह समझता हूं। मैं पूरी तरह से इस के लिए नया हूँ, और थोड़ा खो दिया महसूस अभी, मेरे पास एक PHP क्वेरी है जो एक टेबल से डाटा का उपयोग करती है I मेरे पास एक डेटाबेस है जो प्रतिदिन एक नई तालिका उत्पन्न करता है मुझे सभी तालिकाओं में मूल्यों के लिए डेटाबेस को निरंतर खोज करने में सक्षम होना चाहिए। इस समय मेरा कोड है: & lt;? Php $ dbc = mysql_connect (' स्थानीय होस्ट ',' जड़ ',' abcde '); अगर (! $ डीबीसी) (मर ('कनेक्टेड नहीं:'। Mysql_error ()); } $ Db_selected = mysql_select_db ('game_database', $ dbc); अगर (! $ Db_selected) {मर ("कनेक्ट नहीं कर सकते:"। Mysql_error ()); } $ Query = "चयन करें * से 03-31-14` जहां खेल = 'कुलों का संघर्ष'"; $ परिणाम = mysql_query ($ क्वेरी); यदि (! $ query) {die ("कनेक्ट नहीं कर सकते:" .mysql_error ()); } जबकि ($ r...

Rails view isn't passing the data to the controller -

If the mailer is the way to work I have tried to call the console problem is that content variable appears empty is. So when I contact the mailer with console [heroco] Calling contact_mail so it works. I'm not sure why controller I also Find out about def contact_email email and passing content email = params [: email] content = params [: content] ContactMailer.contact_email (email, content) Deliver redirect_to contact_path, notice: "Message Sent" and Show & lt;% = form_tag (contact_email_path) & gt; & Lt; div class = "form-group" & gt; & Lt;% = label_tag 'Email', 'Email'% & gt; & Lt;% = text_field_tag ​​'email', zero, category: 'form-control', placeholder: 'your email address'% & gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; & Lt;% = label_tag 'content', 'content'% & gt; & Lt;% = text_area_tag 'conten...

jquery - fancyBox popup showing up under another element -

I have used the FancyBox plugin to load a Vimeo movie in a popup, but popup should be used in some parts of HTML The page has been blocked by. Live link :: This is when you click on the slider image below the yellow strip. I tried things like Jade-index but it does not seem to work, I think it is very easy but I do not think so. from your style .css file (line 278): # masthead {z-index: 99988; } This Z index is rendering your headers at the 999 88th level, which is trying to render upward above (at the 8010th level [line 180 of jquery.fancybox.css]]). Set it to 1 instead of (or something smaller): # masthead {z-index: 1; } And the video is no longer covered.

Python reading and translating binary field of MS Access -

I have an MS Access (.mdb) file. This DB has a field in Object type (checked with LibreOffice Base). I had read that the area where the connection string: db = pyodbc.connect ( 'driver = {Microsoft Access Driver (* .mdb)}; Dibikyu = c: / Test.amdibi ;) After connecting, I took the first row ( object type ) to check for IID =; PWD =; '). There are: (Baytarei (B '\ x9bp \ xb8 \ xbe \ xb4 \ xc0 \ xd0 \ x11 \ x83y \ x08 \ x00 \ t \ xb9 \ x96 \ xcc \ x01 \ x00 \ Ksl6 \ Ks00 \ Ks00 \ Ks00a \ Ks00l \ Ks00g \ Ks00o \ Ks00r \ Ks00i \ Ks00t \ Ks00h \ Ks00m \ Ks00i \ Ks00c \ Ks00 \ Ks00C \ Ks00o \ Ks00l \ Ks00o \ Ks00r \ Ks00 \ Ks00r \ Ks00a \ Ks00m \ Ks00p \ X00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x92 \ xc4 \ xe9 ~ # \ xd1 \ xd0 \ x11 \ x83 \ x83 \ x08 \ x00 \ t \ xB9 \ x96 \ xcc \ x01 \ x00 \ x01 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00Y @ \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ks00 \ Ksl9 = \ Ks0...

php - using custom fonts in HTML format in wordpress -

I have followed a tutorial (see the link below) on how to upload fonts for WordPress. I have taken all the steps including uploading FTP, changing header.php, including font stylesheets etc., as given in the link below: Some added header.php (I believe I change everything in a right way): & lt; link rel = "stylesheet ???? href =" & lt; php bloginfo ('template_directory'); ? 1) Do I have to confuse phase 11-12. I just tried to call my font in one page, but it was not working ?? | I do not know what should be kept in the main style sheet for my WordPress theme ?? | 2) I'm not sure I was calling the font correctly Whatever you can provide me, it will be extremely helpful. You must register your styles in your functions.php file. ('aileron', get_template_directory_uri (). '/ aileron / stylesheet.css', array (), '1.0', 'all'); wp_enqueue_style ('alloron'); Which browsers are you using to see y...

java - Updating a JTable from query -

Currently I have derbydb and a UI on which jettbell is. Now I also have a bunch of classes, but people with whom I need help are SensorDBConnection and myUI myUI where my JTable is, And what I want to do is update my JTable with my query which is located on my SensorDBConnection from my SensorDBConnection A snippet that works because this system. Is happening DefaultTableModel model; // Confused model = new DefaultTableModel (); // Confused jTable1 = new JTable (model); // Confused Model AddColumn ("TIME"); model.addColumn ("SENSORID"); Model.addColumn ("floating"); Model.addColumn ("we"); Model.addColumn ("light"); Model.addColumn ("voltage"); While (results.next ()) {time = results.getInt (1); Id = results.getInt (2); Temp = results.getInt (3); We = results. GetInt (4); Light = results.getInt (5); Voltage = results.getInt (6); model.addRow (new object [] {time, id, floating, we, light, voltage}); Sensor ...

Bootstrap 3 extra large (xl) columns -

In the short build of bootstrap someone can tell me how to add the size of the fifth device, the extra large ( Col-xl - # ) You can create another short file (for example For bootstrapxl.less), which contains the following code and compile that file: @import "bootstrap.less"; // XLarge screen @ screen-xlg: 1600px; @Screen-XLG-Min: @Screen-XLG; @stream-xlg-hughdesktop: @ screen-xlg-min; // Therefore, the media queries do not overlap if necessary, provide the maximum @ screen-LG-Max: (@ screen-XLG-min-1); // == Container size // large screen / wide desktop @ container-x-large-desktop: ((1540 px + @ grid-drain-width)); @ Container-xlg: @ container-excel-desktop; // Set the width of the container width // // container, and override it for the defined navbar in the media queries. . Container {@ media (minimum-width: @ screen-XLG-min) {width: @ container-xlg; }} .make-grid-xlgcolumns () {// General style for all sizes of grid columns, width 1-12 .col (@ index) when (@ ...

matlab - Block a KeyPressFcn while waiting mouse action -

मेरा प्रोग्राम एक प्रश्न / उत्तर कार्य है: - सहभागी को स्पेस (कीबोर्ड) बार पर प्रेस करना होगा एक दो-बटन (माउस) पर प्रेस के बाद एक साउंड-पार्टिसिपेंट खेलने के लिए आवश्यक है- साझेदार को ध्वनि बजाने के लिए स्पेस बार पर प्रेस करना होगा ... समस्या यह है, मैं केवल एक को अनुमति देना चाहता हूं स्पेस बार पर दबाएं, क्योंकि उपयोगकर्ता अंतरिक्ष में कई बार प्रेस कर सकता है और ध्वनि एक्स बार चला सकता है। माउस की प्रतिक्रिया का इंतजार करते समय आंकड़ा 1_केपप्रेस को अवरुद्ध कैसे करें, और जब हमारे पास माउस प्रतिक्रिया होती है, तो क्या हम फ़ंक्शन को पुनः सक्रिय करते हैं? फ़ंक्शन आंकड़ा 1_केपप्रेस (एच ऑब्जेक्ट, इवेंटडेटा, हैंडल) इवेंटडेटा स्विच करें.के मामले 'स्पेस' %% प्रोसेसिंग एक्स टास्क% बजना 1000 एमएस ध्वनि (वाई, एफएस); ग्विडाटा (एचओबैक्ट, हैंडल); %% // सहेजते हैंडल डेटा अन्यथा disp ('error'); एंड एंड फ़ंक्शन pushbutton1_Callback (एच ऑब्जेक्ट, इवेंटडेटा, हैंडल)% प्रोसेसिंग टास्क ग्विडाटा (एचओबीजेक्ट, हैंडल); %% // संभालता है डेटा अंत समारोह pushbutton2_Callback (hObject, ev...

java - jsr303 validation on a getMethod that throws an exception -

मेरे पास निम्न विधि है सार्वजनिक वर्ग चालान {सार्वजनिक स्ट्रिंग मुद्रा = "USD" ; @ नॉन सार्वजनिक सार्वजनिक बिगडीकिल getTotal () {यदि ("USD" .equals (this.currency)) नए अवैध आर्गमेंट अपवाद फेंक (); दूसरा नया बिगडीकैम ("1.00") लौटा; }} कोड जब मैं चलाता है, तो वह ठीक है, एक अवैध अवैध आक्षेप () फेंकता है। हालांकि, जब मैं एक सत्यापन परीक्षण चलाता हूं, तो जांचकर्ता क्रैश करता है और मान्यकरण अपवाद फेंकता है मैं जारी रखने के लिए परीक्षण करना चाहूंगा और सत्यापन की परीक्षा में असफल होने के कारण अपवाद फेंकने वाली विधि की रिपोर्ट करूँगा। जैसा कि यह खड़ा है, कोई भी तरीका जो एक अपवाद फेंकता है, वह सत्यापन जांचकर्ता को क्रैश करता है। सत्यापन जांचकर्ता मान्यकर्ता सत्यापनकर्ता = मान्यकरण .buildDefaultValidatorFactory ()। GetValidator (); सेट करें & lt; ConstraintViolation & LT; चालान & gt; & gt; उल्लंघन = सत्यापनकर्ता। वैधता (यह); और फेंक देता है: javax.validation.ValidationException: org.hibernate.validator.util.ReflectionHelper.getVal...

javascript - angular.js template variables to bootbox dialog? -

I'm trying to figure this out for 10 hours like this. Time to ask for help! I get a value to an angular. Trying to pass in the bootbox for a nice looking confirmation signal from the Js template variable. Let's say I have the following (brief for clarity): & lt; Script & gt; $ (Document) .on ("click", ".confirm", (function (e) {e.preventDefault (); bootbox.confirm ("this {{item.name}} needs to be value", function (Confirmation) {console.log ("confirmation:" + confirmation);});})); & Lt; / Script & gt; which is executed as follows: & lt; ul class = "list-group" & gt; & Lt; Li ng-repeat = "item in item" & gt; & Lt; a href = "" class = "confirm" & gt; & Lt; span class = "glyphicon glyphicon-fire red" & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; When the user clicks...

batch file - Variable Substring Assistance -

यह मेरी फ़ाइल का एक स्निपेट है: सेट checkVal = 0: check forStart कॉल सेट चेकसब = %% _ इनपुट: ~% चेकवॉल%, 1 %% अगर / i% चेकस्यूब% ईक्व (गॉरे कोष्ठक के बारे में जांचें कि अगर / i% चेकशुब% EQU 'गोटो नोपर सेट / एक चेक वैल =% चेकवाल% + 1 गोटो चेक फॉरस्टार्ट: कोर्पेरिसिस चेक सेट / ए चेक वैल =% चेक वैल% + 1 सेट _स्टार्टप्रार =% चेकवाल%: चेकफ़ोर्ड कॉल सेट चेकस्यूब = %% _ इनपुट: ~% चेकवॉल%, 1 %% अगर / i% चेकस्यूब% ईक्व) गोटो एंडपेन्टिसिस अगर / i% चेकस्यूब% ईक्व (गोटो कोष्ठक की जाँच करें / एक चेक वैल =% चेकवाल% + 1 गोटो चेकफ़ोल्ड अंत: एंडपेन्टियसिस सेट / ए _ेंडपार =% चेकवाल% -% _टार्टप्रार% कॉल सेट पैराकॉन्टेंट्स = %% _ इनपुट =: ~% _स्टार्टप्रार%,% _ अंत पीअर %% प्रतिध्वनि पैरेन्थीसिस:% ParContents%: noPar pause> gtc: ~ 1,4 या उन पंक्तियों के साथ, उन संख्याओं या अक्षरों के बजाय, जिन्हें मूल से अलग किया जाना चाहिए Al input। किसी भी और सभी मदद के लिए धन्यवाद। अगर आपको इसकी आवश्यकता है, तो वह पूरी फाइल है: यदि आप set val =% var: ~ 1,4% जैसे कुछ करने का प्रयास करते हैं त...

JavaFX: How can I best place a Label centered in a Shape? -

Image
Assume that I have a size on the screen for example: circle circle = New circle (x, y, radius); Circle.setFill (Color.YELLOW); . Root.getChildren () (cycle) add; I would like to create a label "over" in the circle, as if the label is centered in the circle, the forest size is maximum to fit inside the circle, etc. I can see how this can be accomplished through binding, but it seems unnecessarily complex that if the condition / size of these things never change during the runtime. Thank you in advance for your help! I am very new to JavaFX and have no experience in programming in the first place, so I apologize if I should find out through my research. Use the text located above the shape to automatically center. import javafx.application.Application ; Import javafx.geometry.Insets; Import javafx.scene *; Import javafx.scene.layout.StackPane; Import javafx.scene.paint.color; Import javafx.scene.shape.Circle; Import javafx.scene.text. *; Import javafx.s...

AngularJS: multiple edit forms routing? -

I have the entry of each request with Request_Type_Id, which maps to a feeder list (which develops as an application It is possible). For example, we have (ID, request type) 1 - sales information, 2 - technical support, 3 - can be order information, and of course, each has unique fields, so editing forms are very different. By clicking on the name, I want to open these different editing forms right away. For routing, I have this: $ routeProvider When ('/ editrequest /: Req_id /: id', {controller: 'editRequestController', templateUrl: '/App/Views/editRequest.html'}). Otherwise ({redirectTo: '/'}); Because I & lt; A href = "# / edit / {{req.request_Id}} / {{req. Id}}" & gt; {{Req.title}} & lt; / A & gt; I am still trying to learn AngularJS and wondering if the best way to go from here is to choose the correct editing form on app / views / edit request.html For ng- showing This would mean that there will be at l...

three.js - Camera zoom in Intel XDK -

I'm building a simple mobile application using Intel XDK and 3G. The problem is, I do not know that the second object is being clicked after zooming the object (sorry for my bad english) One way to zoom in a three JS object is with the jQuery plugin. Here is an example. Based on this example. I have added the following attributes in the two dashed boxes This allows you to zoom in to each box twice incremented with one click / touch and zoom out with one click / touch. Even after you pinched to zoom, I commented on the following tag. & lt ;! - & lt; Meta name = "viewport" content = "width = device-width, user-scalable = no, minimum-scale = 1.0, maximum-level = 1.0" & gt; - & gt;

ios - How to deal with unarchiver with this situation..? -

I am creating a simple program that can store my object and it can be uninvited after launch. I have a list.m where the temporary array is stored under the name Favorites list ; it gets in the file through the archive . (Zero) loadList {self.favouritesList - inside the list, I would like the ordinary object favouriteItem then, the problem would be with this code Is said = [[NSKeyedUnarchiver unarchiveObjectWithFile: self.fileName] mutableCopy]; If (self.favouritesList == zero) self.favouritesList = [[NSMutableArray alloc] init]; } The exception is that I have found this [NSKeyedUnarchiver initForReadingWithData:]: is out of the collection (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30 ) ' I know that I am incompatible with file which is empty (in fact it is copied from file to bundle, which is also empty). So, how can I avoid it when I still want my app loaded to load the data from the file. When I use the code as the following - (zero) loadData {self.U...

emacs evil mode ctrl-[ irritating delay switching to normal mode -

emacs in evil mode ctrl- [puts you in normal mode but about 5 There is a 5-second troubled delay. For example, if I am in insert mode and want to move up 2 lines, I'll do ctrl-[kk] but this does not work because I press Kashmir very quickly, the emacs stay in the insert mode. How can I make Transcision instantaneous mode? please check out: Due to delays due to tmux and Set-A escape-time 0 had fixed the problem.

ios - How can I use a Category to add properties to NSObject, and all subclasses of NSObject -

इस सवाल का पहले से ही एक उत्तर है: 6 उत्तर 1 उत्तर मैं कुछ समय के लिए Google पर इसे खोज रहा हूं और कुछ भी नहीं आया हूं। मैं एक लाइब्रेरी का निर्माण कर रहा हूं, और यह लाइब्रेरी बहुत आसान और अधिक सहज होगी यदि मैं कस्टम गुणों को एप्पल के पूर्व निर्मित ऑब्जेक्ट्स, आईई से जोड़ दूं। NSString, UIImage, आदि। यदि गुणों को जोड़ना संभव नहीं है, तो अगला सर्वश्रेष्ठ क्या है? मैंने स्टैक ओवरफ्लो पर ऐसी ही चीज़ें देखी हैं, लेकिन उन सभी कस्टम वर्ड्स के लिए श्रेणियां हैं। धन्यवाद अग्रिम! आप संबंधित वस्तुओं चाहते हैं आप केवल श्रेणी का उपयोग करते हुए मौजूदा कक्षाओं में गुण जोड़ नहीं सकते हैं।

c# - Problems with inherit while adding custom user control -

I downloaded this custom timer user control from And added content to the "Custom Control" folder under my project instructions to edit your projects' Root namespace, to modify the inheritance line in the aspx page of the user control. This is usually the name of your VB.NET project. I did this and the error "It can be inaccessible because of its security level" My namespace for my other pages is "JobRequestWeb" and I have given it the value of all the other pages as "JobRequestWeb." Name) ", so I think there might be a dispute with my namespace and project name? & lt;% @ Control language = "vb" AutoEventWireup = "false" codebahind = "timexender.cax.Web" inheritance = "JobQuickWebWeb Time Timebox"% & gt; That part of the code is contradictory part. Import System Import Systems Web. UI importing system Web.UI.WebControls Import System.CommentModel Importing Sy...

java - Grouping a ArrayList<HashMap> according to a value, and adding another value with respect to the sorted key -

मेरे पास एक ArrayList & gt; & gt; जो कुछ प्रमुख मूल्य प्रविष्टियां रखता है जैसे: - अर्रेलिस्ट & lt; हैशमैप & lt; स्ट्रिंग, स्ट्रिंग & gt; & gt; एमएलआईआईएस = नए अर्रेइस्ट & लेफ्टिनेंट; हैशमैप & lt; स्ट्रिंग, स्ट्रिंग & gt; & gt; (); HashMap & LT; स्ट्रिंग, स्ट्रिंग & gt; नक्शा = नया हैशमैप & lt; स्ट्रिंग, स्ट्रिंग & gt; (); map.put ("NewId", newId); Map.put ("शीर्षक", शीर्षक); Map.put ("विवरण", वर्णन); mList.add (नक्शा); माईलिस्ट myList = नया मैलिस्ट (एमएलआईएसटी); ItemsAdapter = नया आलसी एडाप्टर (myContext, myList); newList.setAdapter (itemsAdapter); "नई आयडी" कई प्रविष्टियों के समान हो सकती है। इसके अलावा मेरे पास रंगों का एक सरणी है: - स्ट्रिंग [] रंग = नया स्ट्रिंग [] {"# 1 एफ 1 ए 17", "# 62934 डी", "# एफ 9 बी 0 एफ", "# 7959 बीसी", "# 74 बी 8 डीई", "# ई65641", "# 7 सीसीसी 8 बीबी", "# डी 7 सीई 5 डी...

php - Advice Build Web Sites using ISO-8859-1 or UTF-8 -

I have to make a decision about making a Web site in Spanish, and many databases have many examples and examples Special characters such as â € ±, when I show the data in the scene, then it is "Infoso ?? ¡t tika, Producea?  ³ n, Organizaci?  ³ n, dca?  ± ador web, ma ?? Todos "e.t.c. In this way, I am using JSP & amp; Servlets, MySQL, phpMyAdmin are under Fedora 20 and that I have added it to the html file: And in Apache, I change the default charset: # AdWare Charges UTF-8 AddDefaultCharset ISO-885 9-1 But in the browser, the data continues to look like this: "Informo ?? a technica, producci ?? ANN, Analysta de Organizio ?? a MNA? A tudos", so I do not know what to do, And I'm searching all day to complete the websites using UTF-8, but every day If you do not want to change the characteristics and special characters, any advice guys? Encoding errors that appear in your text (e.g., one ?? one Instead of á ) indicates that your ap...

ElasticSearch - creating JDBC river -

I am working on a PHP project, using MYSQL to store data. I want to use Elastic Search Search Engine to search for setting up ES on my Mac OS. I know that I should make JDBC river but I do not know how any body can help me? Thank you. Steps to install 1) Download and install Elasticsearch 2) Installing flexible accesskey from the installation directory bin / elasticsearch start install river-jdbc Plugin for Flexible Detector version. You can get the JDBC River Plugin for your version from If you are using iLatics Search version 1.0.0, then your installation command ./bin / plugin --install will be river-jdbc --url http://bit.ly/1gIk4jW 4) Now download MySQL JDBC driver. The current version is 5.1.30 You can copy copy jar in elasticsearch / plugins / river-jdbc direcory 6) Now from your installation directory Restart elasticsearch bin / elsaticsearch -f 7) Configure command commands with your elastic search index jbdc river. curl -XPUT '...

android - Using Listview in a scroll view -

In my app I scrolled inside the scrollview layout (the root layout). When I did this, I found a solution code for it childlistview.setOnTouchListener (New ListView.OnTouchListener () {@ Override Public Boolean On-Touch (see We, Motion Event Event) { / TODO auto-generated method stub int Action = event.getAction (); switch (action) {case MotionEvent.ACTION_DOWN: v.getParent (). RequestDisallowInterceptTouchEvent (true); break; Case MotionEvent.ACTION_UP: v.getParent ( ). RequestDisallowInterceptTouchEvent (false); break;} V.onTouchEvent (event); return back;}}); The solution to this problem. But I can not understand this code Can anyone help? In your case, scrollview is original, while ListView is her child. So, in the normal case when you try to scroll, ScrollView will stop the event and scroll to ScrollView . It will not reach within ListView because it is already handlled by parent ScrollView . However, when you set TouchListener override the child lis...

Modify Local Security Policy using Powershell -

I use Windows Server 2012. I can: In the Administrative Tools folder, double click the Local Security Policy icon, expand the account policies and click on the password policy Double click in the right pane Password must meet compliance requirements and it must be set to disabled. Click OK to save changes to your policy. How can I program it using PowerShell? According to Kayasax there is no absolute power to do this; must wrap. secedit / export / cfg c: \ secpol.cfg (gc C: \ secpol.cfg) .replace ("PasswordComplexity = 1", "PasswordComplexity = 0"). Out-File C: \ secpol.cfg secedit / configure / db c: \ windows \ security \ local.sdb / cfg c: \ secpol.cfg / area security rm -force c: \ secpol.cfg -confirm: $ false

asp.net - teamcity dynamically add or change parameter in build step -

I am trying to build / test a set of branches within a main folder to use teamcity So, I set up a main folder to set up a configurable configuration which includes several branches of the same project, once with a new commitment to those branches, the teamcyt to generate some parameters In the first build phase a .b At file call, then the branch URL whose new commitment is made, then only compile the unit test in that branch. My problem is that I do not know how to pass that BRT file by passing that BRT file next to the next, in the command line runner, by using the following statement, in this configuration parameter Have to set up. TeamCity [Set Pirator name = 'Subpath' value = 'getsubpath.bat% otherparameter%'] Unfortunately there is no error in this code and the new parameter name 'Subpath' Is not set. Is it wrong to use this 'setParameter' statement? Or this command line is not available in the runner. Anyone can give example ## TeamCity [Se...

php - Sending http request in oxwall -

I am working on the Andwal plugin. I am stuck in a problem I need to know how to send http request for URL. For example: 1) In Joomla CMS, we send a request in this way, $ http = new jhtpp ($ option, $ transport); $ Response = $ http- & gt; Post ($ url, $ data); 2) In the Drupal $ options = array ('method' = & gt; 'POST', 'data' = & gt; $ data , 'Timeout' => 15, 'header' => array ('content-type' = & gt; 'app / jsn'),); $ Result = Dopple_ http_request ($ url, $ option); I want to know, what is the oxyal way of doing this work, please help me or give me an indication of which library to see. If I am unable to find a solution then it is OK to use a custom php code request. Will this affect plugin performance? I do not think exactly what you want. You will use custom PHP code for this.

javascript/jquery: focus() not working -

I want to focus on a special ID (in roundcube) by a keyboard shortcut. Html is ... div I tried the following: // strag + tab, nachchenbereich zoo commen ... and if (event.keyCode = = 9 & amp; amp; amp; and event.ctrlKey) {Warning ("Taste Errant"); //document.getElementById("messagetoolbar ") focus () .; . // $ ("# messagetoolbar") focus (); Settimesout (function ($ ('#MessageSutBarBar'). Focus (); Alert ("Zeit");}, 3000);} ... First Alert and Second Alert Edit: I think I should describe it better: I want to mark the first row / roundcube Email in Email-Inbox Inbox has a table with a T-tag ... when I have your solution Try, the first line is dotted, but with the entry I can not open the mail and with the other keys I can not mark the first row / mail ... I think that to mark the first line, "one left-horizontal simulation must "...? now I've tried to use jquery. Trigger inbox table html & lt; t...

c# - link button click event not working -

I am working on a project where I am creating a dynamic table. Now on the basis of my status, I am adding cells to the table, but the occurrence of clicking on my link button is not working. I can not find why he is not doing the work, and not seeing any error. The following is my code Public Zero MailCalendar () {tblcalendar.Rows.Clear (); // Start date time for current month = Start ImportoffMonth (Datetime.new Adams (no monthsclose)); DateTimeEnd = EndDateMonth (Datetime.now Automomoths (not Monthly)); Start String = Getting Started Dioufvik Toasting (); Int startdayno = Convert toInt32 (startdate.DayOfWeek); String and Day = Enddate. Diap wake Toasting (); // like Saturday is 6, with Monday on 1, and ends, 7 in xdaydays = Sunday with convert To INT 32 (Ended Dieoff Week); // Date expiration date for preview month = (expiration date) (date time.Nobeddomains (not monthly)); // DateTime startdatenext = StartDateOfMonth (DateTime.Now.AddMonths (1)) for next month; Datetime dtsta...

Selenium 2.41.0 webdriver working with Java robot -

I have just upgraded from Selenium 2.37.1 to 2.40.0 and came into a problem. I am using Selenium Webdriver to run a test in a project. One page is using a plupload which opens an uploader window, which I was automating in my Selenium with a Java robot. Since upgrading to 2.40.0, however, when it goes to Plupload, the WebDrive is hanging until the upload window closes manually and the robot will start its command It was not an issue with 2.37.1. Has anybody come in the same problem and is fine? Is there any other way to handle Upload Window with WebDrive? Thank you. You can do this by using the following types of code: Type 1: Using sendkey WebElement upload = driver.findElement (by .id ("upload")); Upload.sendKeys ("Path of your file"); Type 2: Use of Java robot class WebElement upload = driver.findElement (By.id ("upload")); Upload.click (); Setclipboard data ("Path of your file"); Robot robot = new robot (); Robot....

android speech-to-text - get the first word of a recording -

I am creating a reminder app, and I want to add an option for the user so that he is calling himself a reminder For example, on Friday, the average user will call himself "Friday-John's Birthday Party" for a friend's birthday party, for example, "day - event" (this is more than that, but it is enough for now). I would like to recognize the first word (or two words) of the recording, and to save it as a proposal on the name of the reminder, there is a possibility to use Android voice recognition? Thank you in advance Android Speech-to-Text API (Like "Friday John's birthday party"). How you parse this string (such as to get a structure containing details of day names and descriptions) is up to you and should be done after speech recognition. Does not provide a natural language parsing / understanding functionality through the Android API.

javascript - How to disable div tag in asp button click -

Click on the button div tag is disabled but after page load is re-enabled. How to stay locked after clicking on the button after page load & lt; Script language = "javascript" type = "text / javascript" & gt; Function togglidable () {$ (document) .ready (function () {document.getElementById ('flip'). Style.display = "none"; document.getElementById ('flip1'). Style.display = "none ";}); } & Lt; / Script & gt; You changed the display in the customer code but VisualState control is not updated You can keep hidden state in hidden field and hidden field to show any server side div Can also remove the document to show or hide it. Toggledisable () HTML & lt; Input type = "hidden" runat = "server" id = "hdnflip" /> & Lt; Input type = "hidden" runat = "server" id = "hdnflip1" /> JavaScript function togglidable () ...

asp.net - VB.NET Web Application project encrypting dll files -

I'm compiling a web application project which is coming up well now let me know one. There is a need to give advice to encrypt DLL files which contain the contents of the Epicode folder. Just as I know well how easy it is. To reverse the Dll and use a third party tool to get the code. Any advice would be greatly appreciated because I'm a newbie area. Thank you The following links have a list of obfuscators. NET. Explosion is the process of renaming this meta-data in an assembly so that it is no longer useful for hackers, but to use it To execute the desired operation, the machine does not modify the actual instructions or does not mask them by observation by the hacker. Hope this helps

android - how can hide a preference from the screen -

I have a class setting PreferenceActivity tool enhances OnSharedPreferenceChangeListener . I am loading preferences from the XML file but in some cases I need to hide the preferences screen completely based on my app status. I want to remove that preference completely from the screen. Is this possible? I only need to hide settings_account and everything else & Lt; PreferenceScreen Android: title = "@ string / account_1" Android: key = "account" & gt; & Lt; EditTextPreference Android: key = "username" android: title = "@ string / settings_username" android: singleLine = "true" /> Android: password = "true" android: singleLine = "true" /> & Lt; / PreferenceScreen & gt; & Lt; PreferenceScreen Android: Title = "@ String / Account 2" Android: key = "account1" & gt; & Lt; EditTextPreference Android: key = "username1" android: title = "@ s...

Send PHP Email via CRON JOB in CENTOS 6.5 -

"postprint" itemprop = "text"> I am relatively new to CentOS, I use a lot PHP (mail) but using cron jobs Have tried to send an email in no results. Can I test it with the LAMP environment in the local? !! I succeeded in establishing a cron job, but still I'm not sure where I was wrong. After the At the local level you can do the following to test your email output: If assumed 'user' User / & lt; Your username & gt; / Sites : $ mkdir smtp_out & amp; Amp; CD CD smtp_out $ wget https://gist.github.com/Mulkave/5840448/raw/28d1bc680de0ff8f4be2ed8d57784691f3e74342/smtp-catcher.php -O smtp_catcher.php $ sudo chmod + x smtp_catcher.php In your php.ini configuration: sendmail_path = sudo -u & lt; your_username & gt; Try to open the Apple Mail Client email with /users/<your_username>/Sites/smtp_out/smtp_catcher.php script smtp_catcher.php Stay on, this is the line Open the #FLL file (using Apple Mail) exec...

c# - Access to the path is denied after Assembly.Loadfile -

I create the web file app (.exe) and upload file (.exe) to get the assembly version ), But after the assembly. Because of the file error, I can not remove the file. Please explain to me this problem. Protected Zero Upload BT_ Click (Object Sender, EventArgs e) {if (FileUpload1.HasFile) {try {/ ** file to TMP ** / Save string file name = FileUpload1.PostedFile .FileName; If (Directory.Exists (Server.MapPath ("~ / FilesUploaded / tmp")) (FileUpload1.PostedFile.SaveAs (Server.MapPath ("~ / FilesUploaded / tmp /" + filename));} Else {Directory. CreateDirectory (Server.MapPath ("~ / FilesUploaded / tmp"); FileUpload1.PostedFile.SaveAs (Server.MapPath ("~ / FilesUploaded / tmp /" + file name));} ** ** Get the assembly version ** / Assembly Access = assembly.loadfile (server.mappath ("~ / FilesUploaded / tmp /" + file name)); string version = ultra.GETName () .Version.ToString (); DirectoryInfo di = new DirectoryInfo (Server. MapPath (...

clojure - Datomic enum as key in map -

I have a dynamic database that includes the following enum {: db / id #db / id [: db pert / db]: db / identity: demographics / gender: db / value type: db Type / Ref: DB / Cardinality: DB Cordillality / A: DB / Doctor "One Person's Gender Enam Reference": Db.install / _attribute: db.part / db} ;; : Demographics / gender values ​​values ​​{: db / id # db / id [: db.part / user]: db / ident: demographics.gender / male} {: db / id # db / id [: db perts / user] : DB / ID: Demographic Gender / Female} {: DB / ID # DB / ID [: DB PART / User]: DB / ID: Demographic Generator / Other} is now called That I do: (d / entity db ...) and get a lazy map that has a unit and its properties, above Up enum included. Now I want to get the string representation of the enum value which I get in response to my query. My idea was to do this: (def ^: private gender map {demographic generator / male "male": demographic female / female "female": demographic ge...

javascript - Dynamically loading a database based on user text input -

I have an autocomplete widget that needs to return options from the database of the object. By doing so, once the user selects an item, the widget chooses another hidden textfield from the particular object that they chose. - It has been used on all projects and previous projects Although this special database is very large (44k + objects, many of the files are valid and have taken too long to load in practice) so we have Tried various ways to isolate the first letter of the object label has been the best. As a result, I am trying to create a function that tracks user input in textfield and returns the first letter, then AJAX is then used for a file named that. He said that I have not been fortunate enough to try to track user input at this level and it generally shows that some keystrokes for it to work everything when I Am I trying to fulfill on the first keystroke: Does anyone have any advice in better way of going about this purpose? Or why does the process not work dir...

Modify search form in wordpress -

I am new to WordPress. I've modified the search form in WordPress. & lt; Form class = "form-inline" role = "form" method = "get" class = "search-form" action = "& lt ;? php echo home_url ('/');? & Gt;" & gt; & Lt; div class = "form-group" & gt; & Lt; Input type = "search" class = "form-control" placeholder = "type your search" value = "" name = "query" /> & Lt; / Div & gt; & Lt; Button type = "submit" class = "btn btn-default" & gt; Search & lt; / Button & gt; & Lt; / Form & gt; In this form I have modified the attribute of the search name name = 's' to name = 'query'. But after that search is not working Do I have to type anything in function.php to get a query string. Try this code, I hope this will help you to work out, Add it to the fuctions...

javascript - Difference between RequireJS and CommonJS -

I was wondering what the difference between these snippets is. var $ = require ('jQuery'); Var _ = is required ('underscore'); Var backbone = Required ('backbone'); (['Jquery', 'underscore', 'backbone'], function ($, _, backbone) {/ code> and // code -content "itemprop =" text "> most Consider the snippet first, which is in common JS style: var $ = required ('jquery'); var _ = is required ('underscore'); Var backbone = Required ('backbone'); These calls are synchronous calls: When the requirement returns, it returns the module you requested. CommonJS Required There is a proposal to support asynchronous forms of requirement , but as far as I have not progressed beyond the resolution level, the code is Node.js to Is required.Aynic which has been deleted, is one that applies it though. This package looks like using AMD style modules. Now, Consider the second sni...

c# - Set properties of filter in DirectShow.NET -

How can I set the properties of a direct show filter in C #? For example, I want to set a webcam resolution or crop filter clips. Filters usually have their "personal interface" Interfaces, such as setting it and / or changing its runtime behavior is not a universal interface because the filters are different You usually know in advance which filter you are working with, so you can change the QueryInterface his interface of interest and then desired In the manner set it. Some specific tasks such as selecting the capture format (video resolution) are well-known universal approaches, e.g.

PHP loop - add days to date -

I have the following code, though this works to add a date (between days) to a date (startup) Until I reach the end date, I will repeat it. How can i do this $ startDate = "2009-10-11"; $ EndDate = "2010-01-20"; Between $ days = 10; Function addDayswithdate ($ date, $ day) {$ date = strtotime ("+". $ Day. "Day", stratetime ($ date)); Return date ("Y-M-D", $ date); } $ Date = addDayswithdate ($ startDate, $ daysBetween); You can use the following function; & lt ;; Php $ startDate = "2009-10-11"; $ EndDate = "2010-01-20"; Between $ days = 10; $ FinalResult = array (); Function addDayswithdate ($ date, $ day, $ endDate, and $ last result) {$ tempDate = strtotime ($ date); $ TempDate + = 3600 * 24 * $ day; If ($ tempDate & lt; strtotime ($ endDate)) {$ finalResult [] = Date ("Y-M-D", $ tempDate); AddDayswithdate (date ("Y-M-D", $ tempDate), $ day, $ endDate, $ finalResult); } A...

java - Suppressing the "Picked up _JAVA_OPTIONS" message -

I'm using _JAVA_OPTIONS to set some default for Java on RHEL, it works fine, but now Every time I start Java, I get the following message selected _JAVA_OPTIONS: -foo-bar -baz Is it possible Keep options but press display of this message. By looking at the related source code (), there is no way to control the output of this message . I could say that the only thing is that it is printed on stderr . Therefore, you can wrap your code from stderr to / dev / null redirect (if there was no one that you did on stderr Had given attention). Or write a java wrapper script filtering this message. Or submit a feature request for the openjdk project, however it does not solve your immediate problem.

http - How to get the total data consumed to render a web page in php -

Image
Displays the size of all download CSS, JS and images in an HTTP request in the browser console bytes. How to get this data php? Any help would be appreciated. If you are requesting external using HTTP (as the element is being checked) you can parse the HTTP content-length header To send the HEAD request instead of the header or GET / POST, the HTTP head will not return the content of the request file, but will only provide header information that can save a lot of resources if you Do not care about the content of the page you are requesting. If you want content, then just send a GET / POST request and always respond that parse the response header. If you are wondering how much PHP is running on your system, you can use that which will show you file size in bytes. If the file is not known, then FALSE will return. int filesize (string $ filename)

authentication - Rails Devise Multiple User Models -

I am using Devise for authentication and is currently a user model. Users in my application will have many employees. I need both users and employees to sign in to the application and look at different things. Users and employees have different features, they share email and password, but employees have many other features. Whether the two models (both users and employees) Can be used with the divis and can be allowed to log in through different log forms? Any advice / much appreciated thanks li Creating rail village employees will help you then supporters current_employee and employee_signed_in? Use

security - Is there a way to reliably delete/wipe a variable (i.e. key/password) in JavaScript? -

Today there is a crypto library for JavaScript and therefore there may be a situation where the password / key / secret / sensitivity A variable in javascript is stored I do not want to take this risk that this sensitive data has been leaked / disclosed and therefore I want to know that javascript is a powerful way to wipe a variable The way, so About the data Awaskript engine will not balance information? For example, I did not want to trust some GC so data could become sluggish. An answer can be an example code which kills / omits a variable and also gives an explanation (and if there are differences on what type of javascript implementation browsers / nodes) it relies on Does that data have been deleted? Otherwise if the job is impossible, then I appreciate the explanation why this is and it also accepts it. Script Variables for the target webpage user Can not be accessed). The goal is to ensure that the memory of the Javascript engine does not contain copies of the shad...