Posts

Showing posts from July, 2015

@NonNull Annotation not working in Android Studio -

आयात करें android। support.annotation.NonNull; सार्वजनिक @ नॉन रिजल्ट हैंडलफोलवर्ड फॉरवर्ड (@ नॉन परिणाम परिणामस्वरूप, @ नोनल परिणाम पुराने रिज़ल्ट) {वापसी नल; } कोई भी त्रुटि या चेतावनी नहीं देता है? वास्तव में इस के लिए जांच करने के लिए एनोटेशन का मुद्दा नहीं है? यह एंड्रॉइड स्टूडियो 0.8.11 की मेरी प्रतिलिपि में काम करता है निम्न प्रयास करें: यदि आप एंड्रॉइड स्टूडियो का एक पुराने संस्करण चला रहे हैं, तो अपडेट करें। सुनिश्चित करें कि आपका निरीक्षण & gt; लगातार स्थितियाँ & amp; अपवाद निरीक्षण सक्षम है। निरीक्षण & gt; एनोटेशन कॉन्फ़िगर करें , सुनिश्चित करें कि आपकी नल योग्य एनोटेशन सूची में android। support.annotation.Nullable और आपके NotNull annotations सूची में android.support.annotation.NonNull । शामिल है

node.js - Cordova dosen't install on Node 0.11.14 or nightly builds -

I need to install Cordoba. My node version is 0.11.14 I use this version because I KOA . But when I run npm install -g Cordova , I get this error: PS F: \ try \ myApp1 & gt; NPM Install-G Corodova NMP Warne Engine Cordova-JS @ 3.6.4: Wanted: {"node": "~ 0.10.x"} (current: {"node": "0.11.14-night-20140819-east" , "NPM": "1.4.21"}) NPM Warn Engine xmlbuilder@2.2.1: Wanted: {"node": "0.8.x || 0.10.x"} (current: {"node": "0.11 .14 ​​-nightly-20140819-pre "," n pm ":" 1.4.21 "}) C: \ Users \ mohammad \ AppData \ roaming \ npm \ cordova - & gt; C: \ Users \ mohammad \ AppData \ roaming \ npm \ node_modules \ cordova \ bin \ cordova cordova@3.6.3-0.2.13 C: \ Users \ mohammad \ AppData \ roaming \ npm \ node_modules \ cordova one ???? One ???? One ???? q@0.9.7 A '????' Line Underscore@1.4.4 a partnership nopt@2.2.1 (abbrev@1.0.5) a "????" Li

How to transfer a txt data file to my Android app -

I have to move the data file needed for my app. I read many threads on this subject and I understand how it Works. 1. I am using Android Studio 0.8.6. Many threads refer to the Folder property which apparently resides in src / main when I create a new project then the folder does not exist. I manually create one and I put it jpg and txt files. 2. I run the following code: AssetManager am = getAssets (); String [] file = new string [0]; Try {files = am.list ("files;} to hold (IOException e) {e.printStackTrace ();} (I int = 0; I & lt; files.length; i ++) {Toast.makeText ( GetApplicationContext (), "file:" + files [i] + "", toast.LENGTH_SHORT) .show ();} and I received a files.length = 0 1. I I can read files, write and write for long email, but I know where they live and what I want to do. I want to pass the data with the application. Sorry, but I am losing Thank you! The code I used to read files from assets is listed below: public string R

angularjs - How would I share scope between an angular controller and a directive -

I am trying to do something like that. What do I expect to happen that a selected list is displayed and when the option is selected, the word true or false is displayed on it The line of code is: gt; & Lt; / Span & gt; $ watch This part acts as an alert that says hey, the card type has changed! How do I change directive ? .controler ('AddCreditCardChargeCtrl', ['$ scope', function ($ scope) {$ scope.creditCards = [{name: 'MISC' name: 'Mastercard credit' Value: 'VIS', Transaction: 'VIS', Value: 'MSC', 'Visa Debit / DLTA' (name: 'MAESTRO', Value: 'MAE', Transaction: FI: Incorrect}, {Name: 'SWITCH ',': Transaction: Sender: Correct}, {Name: 'MasterCard Debit', Value: 'MCD', Transaction FI: Incorrect} Value: 'SWI', Transaction Eph: Incorrect}, {name: 'Visa Electron' , Value: 'ELC', transaction FI: false}, {name: 'solo'

asp.net mvc - Linq select from list -

I can not understand this, I am not new to the MVC model, but maybe my brain is just tired. Public category categories as a list of public sector (cihCategoryOrgDef) cihCategoryOrgDef public property as the public property category, this name as the string public sub See model (Organization mattresses in the form of IDC guide, as coded) categories = lists. Categories in categories such as category categories = x in categories where x.codId = codId x and sub end class Select CategoriesController When I run it, give me the Class = from x .... line gets an object cast exception 'WhereSelectLi To type 'library.cihCateg oryOrgDef, Library.cihCategoryOrgDef]', type 'library.cihCategoryOrgDef'. I use a single category I'm trying to get That's why I might be an editing page for that specific category. Am I doing all this wrong? Since class is for the alone category , You need to make sure that your LINQ returns a single result i

standards - Yii: default generation of tasks after the creation of a new project -

The projects and work in my application I have, and I want to go (as a simple example) that make a project After, two tasks will be prepared by default and this project will be assigned. Work for all projects is in the beginning, then it is possible to update the job for a single project ... For example: < p> I'm making Project_A - & gt; Building Work 1, Work 2 I'm making Project_B - & gt; Working 1, Work 2 Is this possible? Keep the function Project.php model file: Save the first public function () {// Create two tasks and save them to get the auto-increment key Save the database $ task1 = new task; $ Task1- & gt; Save (); $ Task 2 = new task; $ Task2- & gt; Save (); // $ This refers to the current project / Believe that we have two fields that have ID = $ of functions- to this- & gt; task1 = $ task1- & gt; primary key; $ This- & gt; Task 2 = $ Task 2- & gt; Primer; Return parent: First save (); }

Mysql Partitioning based on time reference -

I am looking to divide a log table that uses bintint to store the Unix timestamp instead of datetime , And I keep mysql only the most recent 30 days of log in a given partition. I know that I can initially split on the basis of existing data, but how can I keep mysql worth 30 days of record in continuous logging? Partition logic does not seem to support the idea. Have I left to prepare a program that restarts the data every week? You can create a schedule for redistribution of data, yes you have to insert one in your table Triggers can also be added and can redistribute in this way. It will be done automatically in any way, I am pretty sure that you will need some code because it will not be done automatically. In the third way there must be a scene and call it. Your table will contain all the data but the view will only return the data that you want to see mobility.

sas - Create graph using PROC GPLOT with forced sorting for time -

I am trying to create a graph in the SAS Enterprise Guide. The data I am plotting is as follows: col1 col2 col3 1 12:00 20 2 13:00 30 3 14:00 15. . . . . . 25 24:00 90 26 01:00 25 27 02:00 45. . . . . 36 11:00 35 I need call 2 on the horizontal axis and col3 on the vertical axis. Col1 is the reference to call 2 (time value). Problem 2 col2 is being sorted if there is a way I can force sorting for col2, I think it will work what it is i have SYMBOL1 INTERPOL = add HEIGHT = 10pt VALUE = any line = 1 WIDTH = 2 cv = _STYLE_; SYMBOL2 INTERPOL = plus height = 10pt VALUE = none LINE = 1 WIDTH = 2 cv = _STYLE_; Legend 1 frame; Axis1 STYLE = 1 WIDTH = 1 MINOR = Any order = 0 to 200 by 10; Axis2 STYLE = 1 WIDTH = 1 ORDER = 0 to 36 to MINOR = (NUMBER = 1); Title; TITLE1 "test_graph"; Foot Note; PROC GPLOT data = input_data; PLOT col2 * col3 / VAXIS = AXIS1 HAXIS = AXA 2 frame LHREFF = 34 Charge = Black HFF = 0 to 36 1 Legend = Legend 1; Run; QUIT; Also I tried to add the

Snookered by abstract - PHP -

I have an abstract class that I'm receiving from inheriting: abstract Class test {Public Function GetTests () {}} And I am convinced that I am using intangible class implementation for most of the time: < Code> class concrete extension test {// no problem} I had to apply a different version of GetTests method recently, and in fact I I wanted to write because it is made in all of my routing: class concrete test {public function GetTests ($ newArgument) {// notice $ newArgument}} However, I get this error message: : Convergent :: Hosting (declared) Announcement :: Test :: GetTests () should be compatible with By completely copying the work from abstract class for this concrete, even if I needed to implement this method differently Yes ... Is there any way to be around this? I understand that I may have: abstract class tests {abstract public function GetTests (); } But this is the reason that I am snooker, because I do not have the ability to modi

json - Override how Data.Aeson handles only one field of my record -

I am making a REST API for university courses: data course = course Examples of JSN course from example ID: may be text, name :: text, deleted :: boom} deriving (show, generic), tojson course I deleted Gone to be optional in the chain JSON structure, but not in my application. I want to set to be incorrect to incorrect , if it is not specified during parsing. I can write a manual example for FromJSON , but I do not want to write it for all areas. I want to declare how removable methods are handled and automatically handle everything in the example. How do I do this? There is no way for my knowledge to adapt the general example, Make a slightly different way: data course = course {courseId :: probably text - do not use 'id', it's already a function, name: text} Derivating (Show, Generic) Data Removable A = Delayable {Deleted: Bull, Item :: A} Deriving (example) example from JSN Cor Example ToJSON Jejesoan A = example of course gt; From JSON (delet

c# - NLog: How do I control the format of a message from a LogEventInfo object? -

I'm new to NLog, and I'm playing with the LogEventInfo object, because I think I want them my application. I created a LogEventInfo object with a plain text string, and then I called Logger.Debug (myEventInfoObject), using a FileAppender set up to write $ {message}. Where I was expecting to see my text string, I saw logger's name, message level, message and sequence ID instead. I found that this is the extended string I get when I get my event infobee. I call toasting (). How can I control when $ {message} comes from a LogEventInfo object? This is my config file: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Nlog xmlns = "http://www.nlog-project.org/schemas/NLog.xsd" xmlns: xsi = "http://www.w3.org/2001/XMLSchema -instance" throwExceptions = "true" & gt; ; & Lt; Goal & gt; & Lt; Target name = "file" xsi: type = "file" layout = "$ {longdate} $ {logger

android - Cordova Security Paches -

We are using Cordova 2.4 for Android. Many CVE weaknesses have been fixed in 3.5.1 and more: CVE-2014-3500 CVE-2014-3501 CVE-2014-3502 Can anyone point me to the Cordoba Patch for these issues? I want to see if I can backup the card to Cordova 2.4. Thanks, Brian This is not a small patch which easily picked up the cherry The vulnerability can be fixed depending on the new function which was added after 2.4. It is actually recommended to upgrade to Cordoba 3.5.1 or later. Unless you are doing something abnormal, actually upgrading to 3.5.1 for backups in 3.5.1 would be easy.

python - How do I add a 'previous chapter' and 'next chapter' link in documentation generated by Sphinx? -

When I look at the documentation, for example, the previous chapters of most pages and the next chapter are links / buttons. I can not know how I can complete this for my project documentation using the document form. Does anyone tell me how it works or has indicated to me a useful resource (though I have already searched a lot)? "post-text" itemprop = "text"> The front and prev variable are mentioned in the template documentation: Next document for navigation. This variable is either incorrect or has a link and title for two attributes. The title contains the HTML markup, for example, to create a link on the next page, you can use this snippet: {% if next%} and See more: You can use them in accordance with CSS in your Spinks template and style accordingly. A complete example can be: & lt; Ul class = "footer_nav" & gt; {% - if prev%} & lt; li class = "back" & gt; Previous topic: & lt; a href = &

null - Why won't Groovy honor my command-line switches? -

मेरे पास निम्न ग्रोवी वर्ग हैं: class MyApp {public static void main (स्ट्रिंग) [] Args) {स्ट्रिंग नाम = System.getProperty ("name") println "मेरा नाम $ {name} है।" }} जब मैं इसे निष्पादन योग्य जार के रूप में संकलित करता हूं और तब इसे चलाता है ( java -jar myapp.jar -Dname = अर्ल ), यहाँ आउटपुट है मुझे मिलता है: मेरा नाम रिक्त है। क्यों नाम नल और नहीं है " अर्ल " जावा निष्पादन योग्य समझता है मुख्य विधि के लिए एक तर्क के रूप में मुख्य वर्ग / जार के बाद आने वाली सभी चीजें java -Dname = अर्ल-जेरा myapp.jar का प्रयास करें। (जब तक जार वसा जार या ग्रूवी जार के मैनिफ़ेस्ट क्लास पथ अंक न हो, आपको इसे भी -cp का उपयोग करना होगा।)

sql - How to use order by and rownum without subselect? -

I need to create a query with a command and rownum but without using any novel, first line of query It is necessary to obtain. In other words, I want to select * (Select Camp 1, ORDERCAMP ordering Tableline Order from OrderCap) where rownum = 1; but use whithout a substrate Is it possible? I have Oracle 11. You can say that this is my complete query: SELECT T1.CAMP_ID, T2.CAMP (SET OT.CAMP FROM other qualified OT WHERE OT.FK_TO_TABLE1 = T1.CAMP_ID ORTER BY OT .ORDERCAMP) TABLE1 T1, TABLE2 T2 WHERE T1.FK_TO_T2 = T2.PK; The subkey provides more than one line, and I can use another subquery such as SELECT T1.CAMP_ID, T2.CAMP (SELECT * FROM (SELECT OTHERTABLE OT OT.CAMP OT.FK_TO_TABLE1 = T1.CAMP_ID by order OT.ORDERCAMP) Where ROWNUM = 1) Table1 T1, Table 2 T2 Where T1.FK_TO_T2 = T2.PK; Because T1.CAMP_ID is an invalid identifier in the third level subkey. I select CAMP 1, ORDERCAMP Hope I have explained myself enough. Your current query (without the

How to read NFC tag data globally inside an Android Application -

I would like to read NFC tag data inside my application. Basically I have different NFC tags associated with different actions that perform inside my application. It's a bad idea to declare me intent filter inside service I do not want to associate it with any activity . Here I appear: & lt; service android: name = "com .yo.helpers.NFCReaderHelper" Android: Enabled = "True" Android: export = "true" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.nfc.action.NDEF_DISCOVERED" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: scheme = "http" /> & Lt; / Intent-Filter & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.nfc.action.NDEF_DISCOVERED" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType =

qt5 - How to get the html source of a page in Qt 5.4 - qwebengine -

Let's try to retrieve the source of a page in the new qwebengine (Qt5.4), but I Line T know what I'm doing wrong: HTML HTML; This- & gt; Page () - & gt; toHtml ([& amp; html] (constant custor and result) {html = result;}); QDebug () & lt; & Lt; html; // is still empty The first step of printf-debugging is to check whether Lambda is sometimes called: {qDebug () & lt; & Lt; "Lambda:" & lt; & Lt; result; Html = results; } . The code looks fine for me. However, make sure that you do not exit toHtml before loadFinished , are emitted. It may fail. Please note that toHtml is operated asynchronously if you call the html contents to toHtml callback If so, then it will not be called yet. I recommend that you get your class which is generated by the callback when HTML is available. Alternatively, whatever you want to do with the HTML code directly in the callback.

php - How secure is my hashing algorithm? -

I am writing a website for personal use (I hope, but do not think anyone will ever come there) , And its development follows the following algorithms: function encrypt password ($ user name, $ password) {$ username = md5 ($ username); $ Password = md5 ($ password); $ Newpass = substr ($ username, 0, 5). $ Password substr ($ username, 5); $ Newpass = MD5 ($ Newpass); Return $ newpass; } Since it's still a type of 'password and you're like' (though in general), I think it would be a better idea to hide the password database In. I have used the simple MD5x1 algorithm (originally: MD5 (pass) and previously) but then people who access the database can easily change the hash. In this way I do not think you want to change this thing. Not so. / p> MD5 is cryptographicly weak. Salt should be random, should not be obtained by known values. One round of palm is trivial to break these days. The solution given above: Use better algorithms, preferably

ajax - How to refresh a table after a successfull Post using $evalAsync -

I need to update my table after a successful post without reloading the page. Works, but I can not get it to work with Post Works // Update job $ scope.updateJob = function (job) {jobFactory.updateJob (jobs). Civet (success callback) .error (errorCallback); Console.log (work); $ Scope.cancelEditJobModal (); $ Scope $ EvalAsync (function () {$ scope.job;}); }; does not work // Job after new job $ scope.submitJob = function () {var data = {Job ID: $ scope. NewItems JobId, JobNumber: $ scope.newItems.JobNumber, JobName: $ scope.newItems.JobName, Job Description: $ scope.newItems.JobDescription,} $ http.post ('/ api / apiJob / PostNewJob', data). Function (data, position, header) {console.log (data); $ scope.cancelNewJobModal (); $ scope. $ EvalAsync (function () {$ scope.data;}}}}}}; < It is not clear what you want to achieve. I see from your code, that you are posting a job to save it. First of all, the server is saving correctly, and What is it (like data in s

Android sslpeerunverifiedexception no peer certificate, JSON SSL -

I across the web and read a lot about most stack overflow .. I still can not get your code works correctly. .I am still getting: Android Sselpirnurupisteddharn not peer certificate this is my code, and if someone can help me if I I would be grateful: Public class increases main activity activity (ArrayList & lt; string & gt; nameArrayList = New Arrelist & lt; String & gt; (); ArrayList & LT; string & gt; Deshareel = new Arresuchi & lt; String & gt; (); string Kbruarel = "https://example.com/grave.json "protected void onCreate (Bundle saved Instansstet) {super.onCreate (SavedInstanceState); setContentView (R.layout.activity_main); new Jason (). execute ();} Class Jason Async Task & lt; zero, zero, String & Sec.> Secure on SecurexXSite () {Super .Print ();} Protected String doInBackground (Zero ... Parameter) {Http Client httpclient = createHttpClient (); Http post httppost = new HTTP post (web url); Try {HttpResponse resp

java - Why instance a new fragment inside a public static class -

Reference: I'm new to Java and Android and going through the online Android guide I am I have two questions: Question 1: Why is there a need to create a new example of the description fragment within the public static class? Question 2: "Create a new example" further declares a new announcement. There are four places in total, where the same name is called "Descriptionfragment". It is very confusing please explain? The public static class explanation extends the Fragment Fragment {/ * Create a new instance of the description fragment, started to show text on 'Index'. * / Public static descriptionfragrage new instance (int index) {detailsfragragef = new statementfragration (); // Supply indicator input bundle arguments as a logic = new bundle (); Args.putInt ("index", index); F.setArguments (args); Return; }} It is called, and in this case you can easily create a new one Without knowing about the internal implementation,

Remove css class of all textbox inside multilevel div in jquery -

I want to remove the specific CSS class of all text boxes inside the 3rd level div. & lt; Div class = "panel-panel-default" id = "pnlChangeLoginInfo" & gt; & Lt; div class = "panel-title" & gt; Change login information & lt; / Div & gt; & Lt; Div class = "panel-body" & gt; & Lt; Div class = "row" & gt; & Amp; Nbsp; & Lt; / Div & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-md-5" & gt; Current password: & lt; / Div & gt; & Lt; Div class = "col-md-7" & gt; & Lt; Input class = "form-control" id = "txtcurpassword" name = "txtcurpassword" type = "password" / & gt; & Lt; Input class = "form-control" id = "hidCurPassword" name = "Contact_Model.Password" type = "hidden" value = "irecadmin01" /> & Lt; / Div

telerik - Radgrid sub-grid data not showing up -

I am trying to add a sub-grid to a grid. Right now I look at the arrow on the left side of the main-grid row, and when I click, I see a sub-grid with all the columns, though it says there is no data for the rows. Debugger I think the data is bound to the server side from the API specified as on-dateetetadata. & lt; Telerik: RadGrid ... OnDetailTableDataBind = "myfunction" ... In this function I am compulsive data: protected minus myfunction (object source , GridDetailTableDataBindEventArgs e) {... e.DetailTableView.DataSource = SubGridData; } The debugger is checked that the value is set in the sub-grid deltable, there are some test data for it. I have another program, so it should be fine, is there something I can see? Why does not the sub-grid's data appear? I was looking for a grid. Datacand (), but it does not seem that the second program is called it for a sub-grid. Did you check whether you have some relational interference between paren

Openshift: memory limit and gear stop -

कमांड oo-cgroup-read memory.failcnt गियर स्टॉप के बाद सकारात्मक नंबर दिखाता है , गियर शुरू । क्या 'गियर स्टॉप' का अर्थ है कि मेमोरी साफ हो जाएगी? मेरे एप्लिकेशन को 84946 से oo-cgroup-read memory.failcnt के साथ दिखाता है। मुझे इसका कारण पता नहीं है क्योंकि स्मृति से पहले पर्याप्त था। उस नंबर को स्वचालित रूप से साफ़ नहीं किया गया है इसे ट्रैक रखें और देखें कि क्या यह आपके एप्लिकेशन के चलते चल रहा है। यह एक अच्छा संकेत है कि आपके आवेदन को एक बड़ा गियर पर चलाने की आवश्यकता है, या आपके पास कुछ प्रकार की स्मृति रिसाव है आपकी एप्लिकेशन आपकी सीमा के ऊपर कितनी मेमोरी पर निर्भर करता है, आपका एप्लिकेशन ओओएम कल्ट (मेमोरी से बाहर) हो सकता है और स्वचालित रूप से किसी भी तरह से पुनरारंभ नहीं हो सकता है, यह कुछ अनुप्रयोग मेमोरी प्रोफाइलिंग करने के लिए एक अच्छा समय है, या देखने के लिए नया अवशेष स्थापित करने का प्रयास आप कितनी मेमोरी का उपयोग कर रहे हैं और जहां यह छिपी हो सकती है।

Using a generative test library in clojure vs build your own using higher order functions -

Closer has many libraries, such as generating testing, or It is possible to use higher command functions such as compose to create random data generators: (defn gen [create-fn content-fn lazy] ( Fn [] (# lower -fn% 1% 2) (for [a lazy] (content-fn))) (def one (gen str # (rand-nth [\ a \ b \ c]) ( Limit 10)) (DEF B (Normal vector # (Rand-At 10) (Range 2)) (B) (Diff C (Gene hash-set B (category (RAND-int10))) () C) This is just an example and modified with data parameters, filters, partial etc. Can be obtained in order to be flexible enough data creation functions. Is there anything that can do this to any productive libraries, by typing some high order tasks, not even in the form of short (or more)? As an aside for the Stackworflow deities: I do not believe this question is subjective. I am not asking for any opinion on which the library is better. I want to know that specific feature (or) (techniques) of any / all data generative libraries separates them from making va

c# - Getting the selected row from dataGridView1 -

The datagrid view on my Wondose form is 1. I have popped the Data Grid view 1 with a list of wires. It all works great but ... I should be able to get the line at which the user has been selected and I can not do that. My code just gives me an error, written below. I have copied the Gridview form to the site. Private Zero Edit Button (Object Sender, EventGurge E) {GridViewRow row = dataGridView1.SelectedRow; // This is what I was using earlier with a list box. If (itemList.SelectedIndex> = 0) {int newInt = itemList.SelectedIndex; Form form = new new item (selected folders, this, item [newiint], windowname. Item report); Form.Show (); }} I tried to do this, but I'm getting the error: "Type or namespace 'Gridviewview' could not be found." My basic question is how do I get to do this work? Assume that you have a Winforms DataGridView you should do this: < / p> Private Zero editing button_kill (object sender, eventarges e) {if (Datagr

ipython vs. python -m IPython -

I recently installed a zip file and an ipyathon from setup.py, but now I can type it "ipython" I'm unable to run "in the terminal (on the Mac) if I type" python2.7 -m IPython "then it works just how any suggestions about" ipython "work again? I had previously installed it through PIP, but it was linked to the wrong version of the dragon. The script is here: / user /<username>/Library/Python/2.7/bin/ipython So what I have done ln -s / users /<username>/Library/Python/2.7/bin/ipython/usr/ local / bin / ipython I searched for it through the "/" directory. (I have OS X 10.11. 6)

crystal reports - summarizing/grouping/associating data -

I am trying to sort this data in person by an experimentable single page report and I have it. New to Crystal Reports I am trying to get a list of patients, their problems and medicines on one page (1 can be many problems and medicines under the patient) Data from three different tables related to the patient. I want to add all the problems together in the group and thus want to add all the medicines to the group together .... Group # 1 Patient: John Do Group # Problem 2: High Blood Pressure Headache Problems: GERD Group # 3 Medicines: Prelose Drugs: Imitrix Medications: Jesteril I'm getting this Group # 1 Patient: John Dow Group # 2 Problems: High Blood Pressure Drugs: Prelose Drugs: Imitrex Drugs: Zinc Problems: Headache Drugs: Prelose Diseases: Imitrex Medicine: Zestril Problems: GERD Drugs: Prelose Diseases: Imitrex Medicine: Zestrel < / Div> It is possible and I think that your requirement is quite clear, you have just given details about your environme

.net - Change name of output dll based on configuration -

It seems that it should be very simple, but for the original library, I have two configurations i a normal .NET 4.0 The configuration is, the second is configured to register for COM interop, and also defines a compilation symbol, so I can work around some COM-related quirks with pre-processor instructions. The problem is that when these are applied, these two DLLs should be in the same folder for the calling application (according to their design, can not do much about it). Works great when compiling each configuration in its related bin / subfolder, which includes both configurations with different strong-name keys, such as GAC, two separate assemblies , Even with the name and version but to put them in the same folder it is necessary to rename one, and that's where this problem is. What would be awesome If I could set the assets of the assembly name in the conditional application tab in Visual Studio, but it seems that this tab is Project-Scod, config- Is not scope

Angularjs app.js $routeProvider -

I have my app Seeing many tutorials and other stack overflow posts for success with the Js $ routeProvider. Here is the link for the project Here is my code for app.js var app = angular.module ('se165PetPinterestWebApp', ['ngAnimate', ' ngCookies', 'NGRUTU']); App.config (['$ routeProvider', function ($ route provider) {$ routeProvider.when ('/ select', {templateUrl: '/views/categorySelection.html', administrator: 'CatSelCtrl'}). Otherwise ({redirectTo : '/'});}]); When I want to navigate to the new page, I know that moving the $ location and manipulating the path using the $ location dependency but not navigating to the new page Does navigating to pages reload js files like my service file? Please thank you in advance. Do you remember to include ng-view instructions in your index? NGVE is an instruction that supplements the $ root service by including the rendered templates of the current route

javascript - changing text font through css for specific text in d3 -

I am using the d3 framework and I am trying to specify the font to the following element using CSS ( I want to use a custom font, this is the reason I am using CSS) var anchorNode = svg.selectAll ("g.anchorNode"). Data (force2.nodes ()). Enter () Append ("svg: g"). Attr ("class", "anchor note"); AnchorNode.append ("svg: cycle"); AnchorNode.append ("svg: text") text ("test") ;. I tried to use text {font: 2px Arial; Pointer-phenomena: none; } But it does not work for this specific text. I'm assuming that this is because the text is added to the node. What will be the correct syntax for accessing text in CSS? Do you have a link to a car or a JSFDL? It seems that by adding a class named your annornode, you may update the CSS font for that category: .anchorNode {font-family: "Times New Roman ", Times, serif; Font-size: 2px; }

angularjs - angular directive not listening to changes in outer scope -

I am currently trying to listen to the instructions for changes in the parent area with a specific variable I am here. For that purpose I came up with the following code which runs the controller for the first time, but variable grid sales in the second part of $ XVI is not changing. Any able to give me an indication that I am doing wrong here? Controller: $ scope.gridCells = []; $ Scope.gridCells.push ({value: '1'}); $ Scope.gridCells.push ({value: '2'}); $ Scope.gridCells.push ({value: '1'}); $ Scope.gridCells.push ({value: '2'}); // This change is not displayed in $ $ timeout (function () {console.log ('push'); $ scope.gridCells.push ({value: '2'}); $ scope.gridCells.push ({ Value: '1'});}, 4000); HTML: & lt; My Directive Cells = Grid Seals & gt; & Lt; / My-directive & gt; Director: Angular Module ('myApp'). Instructions ('myDirective', [function ()) {return {restricted: '

Using jQuery in ios 8 app extension javascript files -

I'm following to remove some content from a page. Is it possible to use jQuery inside my javascript file and if so how? I was able to inject jQuery in the page but was not successful to set the time when I After that the jQuery code can run. Performs domodeendounsted but maybe in a different context than page DOM. MyExtensionJavaScriptClass.prototype = {Run: Functions (Arguments) {var my_awesome_script = document.createElement ("script"); My_awesome_script.setAttribute ("src", "// code.jquery.com/jquery-1.11.0.min.js"); If (my_awesome_script.addEventListener) {my_awesome_script.addEventListener ('Dominied', Onnode Inserted, Incorrect); } Document.head.appendChild (my_awesome_script); Function Onnode Inserted (Event) {// Event Comes Out Undetermined and $ is also Undefined $ (Document) On ('paste', function (e) {warning ('you just pasted!')}); }

scala - Slick: query multiple tables/databases with getting column names -

I have methods in my play app that query database tables with more than one hundred columns. I can not define the case class for each such question, because it will be just ridiculously large and the database will have to change with each change in the table. I am using this approach, where the result of the query looks like this: Map (column name 1 - & gt; column Val1, columnName2 - & gt; ; columnVal2, ...) Example code: Built-in value getListStringResult = GetResult [list [any]] (R => ( 1 to r.numColumns) .map (_ = & gt; r nxtibz) .toList) def GetSomething (): map [string, any] = db.extension {val column = MTable.getTables (none, none , None, none) .list.filter (_name.name == "myTable"). Head.getColumns .list.map (_ column) val results = sql Choose "Meritable 1" from "[" [list]]. FirstOption.map (column zip _ toMap) .get} This is not a problem when the query runs on only one database and a single table. I need to use mult

How to open a new datepicker displaying an old date in Android tablet -

I am working on a C # Android tablet project. If I open a new datePicker, it usually displays the current date. I would like to display a specific date (i.e., 5/9/2010) How can I do the picture in the date of the pop up? I appreciate that anyone can help you. I develop Android in Java. In my case, I use DatePicker.init (year, month, day, date picture.andatechanted listener) DatePicker did not develop Android in C # before it appeared on the screen to start the process, but I think it should be the same method to get started. Or you can find more information on the API website.

angularjs - Trying to get child records from Firebase -

angular-Fire-I seeds tutorial stage and messages and to experiment with hair posts, some bizarre reason I do not see While I try to clearly demonstrate them to the children, but in the console it can see while expanding on the parent node. These messages are displayed correctly in HTML, where I have NG-double, so I know that at least the message was baseless. I thought that cutting off the instruments of an amorphous seed or some children can be put into pieces I returned straight to the firebase I have it: code: ----- var url = fbutil.ref () + "/ message /"; Var ref = new firefighter (url); Var sync = $ firebase (ref) $ AsArray (); Console.log (sync); // It can see me as the appropriate $ firebaseArray object console.log (sync.length); // it shows as 0, although the object above the console.log is length 3 (sink [1]); // displays as unchanged data: ---- message / id1 / text / id2 / text / id2 / post / id3 / text You start falling for the common asynchonisi

python - How can I give a dictionary value multiple keys? -

मान लीजिए मेरे पास निम्न रंगों के शब्दकोश हैं: COLORS = {"green": "\ 033 [32m", "yellow": "\ 033 [33m",} मैं एक कुंजी को एक मूल्य के रूप में कैसे प्रदान कर सकता हूं ताकि कोई भी उपयोगकर्ता इस तरह से कुछ भी लिख सकता है? प्रिंट रंग ["पीला"] प्रिंट रंग ["रंग-पीला"] प्रिंट रंग ["हरे"] प्रिंट रंग ["ग्रीन कॉर्नर"] COLORS = {"green": "\ 033" [32 एम "," पीला ":" 0 0 [33 एम "}, सूची में सी के लिए (रंग): रंग = रंग [सी] रंग ['रंग-' सी] = रंग का रंग [c.upper ()] = रंग का रंग [c.capitalize () + 'रंग'] = रंग नोट : सूची (..) का उपयोग करने के लिए कुंजी की एक प्रति प्राप्त करें: रनटाइम को रोकने के लिए: रिक्रूटमेंट के दौरान शब्द बदलता है ।

objective c - JSON missing Double Quotes iOS -

I'm facing a strange problem. I am parsing JSN data from our server when I have it through my browser , Then this data shows: productCombinationAttributes ": [{" value ":" green "," value ":" 0 "," img_id ":" 1005 "," Name ":" color "," id ":" b_9 "}, {" value ":" blue "," value ":" 0 "," img_id ":" 1005 "," name ":" color " "Id": "b_10"}, {"value": "yellow", "price": "0", "img_id": "1005", "name": "color", "id": "b_14"} , "Value": "", "value": "100", "img_id": "1005", "name": "size", "i "" Value: "", "value": "50", "img_id": "1005",

windows - Can't hg update, "Unlinking directory not permitted"! -

I have an HG repository that is created by cloning an SVN repository using hgsubversion . has gone. When I do 'HG Update - Scan', I get an error: abort: Unlinking directory is not allowed: 'E: \ scratch \ svn_to_hg \ WorkProject_hg \ My Project \ PublishProfiles' . If I specify the amendment, 1487, then the update works fine. If I specify the amendment 1488, then if I get an error, then there should be amendment problem in 1488. It looks like 1488: & gt; For HG Log-V-R 1488 Transitions: 1488: D2292 EEDDB4E User: Smartin @ C8080-914E0410-8527-B5F3B909 523 Date: Wed 07 May, 15:29:46 2014 +0000 Files: My project / publishing file / Shea fs.pubxml I am adding a file to the folder, it is complaining that it can not be deleted. I have 200 revisions since 1488, so I'm not sure what to do here ... I am on Windows 7, using HG 3.1.1 I came with Tortis HG I have updated to the latest hgsubversion , I have also tried to run the command as an administrator

customize kibana histogram -

I have a set of data that I need to display on the keyboard as a hijalan. A set of stars calls A and B locks and keys respectively, where many keys can unlock a lock, so there is a collaboration with it. Each key has different lengths and in the histogram there is a need to show me, for example, the length can be 4keys with 5cm and the length of 2cm with 2cm. How can I change how to calculate the length of the x-axis and the y-axis? Any suggestions provided have been highly appreciated. Histogram timing series are for data, you probably want one.

node.js: is there no way to put HTML into i18n-node JSON translation files? -

The question says all this. If I put HTML directly (directly into a JSON-formatted) in a translation file like this: "test_html": "& lt; a href = 'http: //stackoverflow.com/' Click on & gt; & lt; / a & gt; ", I get this in my HTML: Click & amp; Amp; Lt; A href = & amp; # 39; Http: //stackoverflow.com/& # 39; & Amp; Gt; Here & amp; Lt; / A & amp; Gt; I also tried to combine in my translation file: "test_html_placeholder": "click on% s to% s", < / code> In my HTML with: But similar results are available. The only thing that I can get to work for is this constraint: "test_html_pre": "click", "test_html_link": "here" , "Test_html_post": ".", with: & Lt; / A & gt; & Lt;% = __ ('test_html_post') & gt%; But it is not nearly as cumbersome that it is not nearly worth it, and in

ios - Unable to programmatically "push" viewcontroller using showSegue in IOS8 -

Image
I defined each other with source tableview controller and programmatically for destination controller when clicking on a UITableViewCell is using the following statement: [auto display cigu with identifier: @ "pushdownignation visual controller" sender: sender: self]; However, I think segue does not "push" the destination view controller. On the other hand, if I segue the string [auto show view controller: Destination View Controller] it works. In addition, if I call using the Destination View Controller program, then it works. Can anyone suggest that this is a known problem in iOS 8 or if I am missing something. Do you have a SEZ in your storyboard called pushToDestinationViewController ? You will need to ensure that this Segue is the first choice in the bottom of your storyboard. Or, if you just If you want to push another view controller, you can only [self.navigationController pushViewController: destinationViewController] . / div&g

algorithm - A good heuristic for computationally less intensive yet good K-medoids? -

Can we use the data point in the closure near the mean in the form of a median? Does it always give a medoid that is equivalent to running the distance-distance measures according to the definition of how the diode algorithm works? li> PAM (k-medoids) through random sampling?

ogre - How to enable per pixel shading in Ogre3d -

Image
मैं ओग्रे 3 डी में स्पॉट लाइट के साथ एक विमान को प्रकाश कर रहा हूँ हालांकि, हॉटस्पॉट पर किनारे प्रभाव झगड़े दिखाता है ऐसा लगता है कि विमान पर छायांकन किसी भी प्रक्षेप के बिना हर शीर्ष पर किया जाता है। वायरफ्रेम रेंडरिंग परिणाम नीचे दिखाया गया है: < P> मैं Ogre3D में प्रति-पिक्सेल प्रकाश को कैसे सक्षम कर सकता हूं, जो हॉटस्पॉट की सीमा को सुचारू बना सकता है? मौजूदा ओग्रे संस्करण (2.0 से नीचे) में, दो विकल्प हैं: मैन्युअल रूप से एक सीजी / एचएलएसएल / जीएलएसएल शेडर बनाएं और जमीन के मैदान के लिए सामग्री में इसका इस्तेमाल करें। / P> ओग्रे के आरटीएसएस (रियल-टाइम शेडिंग सिस्टम) का उपयोग करें इसकी संरचना और उपयोग इस में समझाया गया है।

.net - How to achieve polymorphism in C# -

I'm new to C #. I was trying to check how polymorphism can be achieved in C # and I got confused that one method that is getting polymorphism I am using the code given below and the method of output A . class A {public void display () {Console.WriteLine ("A method of"); }} Class B: A {public zero performance () {Console.WriteLine ("Method of B"); }} Square polymorphism {public static zero principal (string [] args) (A = new B. (); One display (); Console.ReadKey (); }} But when I define the following pattern () method then the method of output B is called. class A {Public Virtual Zero Exposure () {Console.WriteLine ("Method of A"); }} Class B: A {public override zero performance () {Console.WriteLine ("Method of B"); }} So how am I achieving polymorphism and what is the difference between the two types and who should be better to overwrite. Any help would be appreciated. Virtual methods provide polymorphism, in that subc

asp.net - Stopping AutoPostBack from going back to the top of the page -

So, like the title states, I want to stop the autopost by sending the user back to the top of the page. I want to know that this is possible. Anyway: I know about AJAX update panels, but it's a lot of trouble. I want to keep things simple. you MaintainScrollPositionOnPostback = "true" under & lt;% @ Page Maintenance ScrollPositionOnPostback = "true" ...% & gt;

jquery - Dynamically created image's onclick() not working -

I am trying to load all the images in a folder in a div (id = "wrap") but this The click function is not working. Why? Below is my code. & lt; Script & gt; $ (Document) .ready (function () {var folder = 'images / print / thumb /' post_data = {'folder': folder}; $ .post ('get_images.php', post_data, function (picture) {for (Var i = 0; i & lt; images.length; i ++) {var Tag = '& lt; img class = "thumb" src = "' + Folder + Picture [i] + '" / "'; $ ("$ (". "); $ (". Thumbs "). Click (function () {warning (this.id);});}); & lt; / script & gt; body; > It loads the image completely, with only the problem click event. Ajax call back inside Try the incident of an error, $ .post ('get_images.php', post_data, function (picture) {for (var i = 0; i & lt; images.length; I ++) {var tag = '& lt; $ (". Thumbs"). $ ("Thumb

jquery - How to use datepicker Dynamically -

I have these input boxes, now how can I use dynamically dynamically < code> & lt; Input type = "text" id = "datepicker" name = "date [0]" & gt; & Lt; Input type = "text" id = "datepicker" name = "date [1]" & gt; & Lt; Input type = "text" id = "datepicker" name = "date [2]" & gt; & Lt; Input type = "text" id = "datepicker" name = "date [3]" & gt; I tried to do something like that, but it does not work only for the first input changes $ ('name =' "date" ) I would not like to dynamically like this code Code> $ ('# datepicker1') datepicker ({}) $ (' # Datepicker2 ') datepicker ({}) .... Is this possible? Thanks for any answers. For this case, you should use a class instead of ID: & lt; Input type = "text" class = "date picture" name = "date

mysql - Selecting data where a column is maximum -

मेरे पास नीचे की तरह एक MySQL तालिका है। ID XYZ 1 1 1 2 2 4 2 2 9 4 3 3 2 3 1 4 2 2 1 4 2 2 2 3 3 1 मैं एक्स का चयन करना चाहता हूं जहां (आईडी = 2 और वाई = 4 और अधिकतम )। मैं यह कोड करता हूं लेकिन समझ नहीं पाया कि अधिकतम फ़ंक्शन कहां से जोड़ता है। $ check_x = mysql_query ("एचडीडब्ल्यूएस से एक्सप्लेक्स एक्स जहां आईडी = '2' और वाई = '4'"); कृपया MySQL के साथ मेरी सहायता करें। वहां पहले से ही सही था अगर आपको अधिकतम ज़ेड के साथ केवल एक एक्स की ज़रूरत होती है Hamdun_Soft से SELECT X जहां आईडी = '2' और वाई = '4' ऑर्डर जेड डीईएससी की सीमा 1 < / अधिकतम कोड के साथ न केवल एक एक्स हो सकता है। Hamdun_Soft से चुनें X जहां आईडी = '2' और वाई = '4' और जेड = (Hamdun_Soft से चुनें MAX (Z) जहां आईडी = '2' और वाई = '4') पी। एस। और मत भूलना कि mysql _ * फ़ंक्शन का फ़ैमिली अब नापसंद हो गया है। आप mysqli _ * या PDO का उपयोग कर सकते हैं।

multithreading - MFC: how to draw opengl from a different thread? -

I am trying to do some open 160 animation in the CWND window with 60 fps. I create a subclass of CW: class COpenGLControl: public CWnd {...} I think if I build-in timer "setTimer ()" I used to set it up and set fire to every 1000/60 ms, able to present all the open orders correctly. However, if I apply my own timer using a different thread, then nothing is prepared. I found a black screen Is there a way to issue open commands from a different thread? Even if you do not intend to issue GL calls from multiple threads You have to keep in mind the rules of ODGL: an OpenCL reference can only be used by one thread at most, at a time. (And, per thread, can be an active GL context at any time). This does not mean that you can not use the same context in many threads, or you can create it in one and use it in another, you can explicitly "assign" the context from one thread to another. Have to do. I do not know if you use some other libraries to deal with the

sql - Getting average per day using the extract and last_day functions -

Here's a quick help, I have a small project here, I have this report with the date of total order Order (this will actually continue with my second question) So what am I doing here SELECT sf.ORDER_QNT, dd.ACTUAL_DATE, dd.MONTH_NUMBER to sales_fact SF, date_dim dd WHERE Dd .date_id = sf.date_id and dd.MONTH_NUMBER = 1; ORDER_QNT ACTUAL_DATE MONTH_NUMBER ------------------------------------------- 1100 05/01 / 13 1 100 05/01/13 1 140 06/01/13 1 110 07/01/13 1 200 08/01/13 1 500 08/01/13 1 230 08/01/13 1 500 08/01 / 13 1 200 08/01/13 1 53 15/01/13 1 53 22/01/13 1 Now, I want to get the average of that month (average per day) Using the Last_day function. SELECT sum (sf.ORDER_QNT) / extract (DAY FROM LAST_DAY (to_date ('05 / 01/13 ',' dd / mm / rr '))) as AVGPERDAY, dd .month_number FROM sales_reference sf, date_dim dd WHERE dd.date_id = sf.date_id and dd.month_number = 1 GROUP dd.month_number; AVGPERDAY MONTH_NUMBER -------------------------- 113.785714 1

php - how pdo_sqlsrv driver convert float type to string? -

I set the column type to float some table and set the length to 53, its value is 38.8 I use the sqlsrv driver query, it's okay, the value to show is 38.8. But, when I use the pdo_sqlsrv driver for a query, its show value is 38.799999999999997, why is this? The decimal number is 38.8 when converted to binary: 100110.1100110011001100110011001100110011001100110011001100110011001100110 ^^^^ is repeated for ever Thus it can not be properly stored in the computer if you have regular numerical format (which has always set the storage size ). It really does not make any difference: because you have only established for 8 decimal, you should get the right value when you leave the rest: ini_set ('Exact', 30); Var_dump (38.8, number-format (38.8, 8)); However, if the strings (11) "38.80000000" float (38.7999999999999 971578290569596) 8 th Decimal is really important to you, you should switch the column type to DECIMAL , which stores internally as a

having an error reading from a file in java -

Need help fixing this error I am trying to print the array length of string country names I am reading from a CVS file and I get the error above. Below is my code: import java.io. *; Import java.util.Scanner; Public class CSVReader {// string countryname; String [] countryname; Int years labels; Int [] number of years; Double Cellular DataTable; Double [] [] tables; Scanner scan; Public CSVReader (string filename) // file notfound exception {set up (filename); } Private zero set up (string filename) // file notfound exception {file file = new file (filename) throws; {String input = ""; Scan = new scanner (file); Scan.nextLine (); While ((input = scan.nextLine ())! = Null {string [] countryname = input.split (","); // int a = integer Parasont (country name [1]); Println (countryNames [0]); //System.out.println(a); } Scan.close (); } Hold (FileNotFoundException e) {System.out.println (e); }} Public string [] getCountryNames () {return countryname; } Below

php - Doctrine2 - error when using @ParamConverter -

I try to retrieve the object with the translated slog, like: 1 - I Custom repository with one method: public function findByTranslatedSlug ($ slug, $ locale) {var_dump ($ _ locale); Exit; $ Qb = $ this- & gt; CreateQueryBuilder ('c') - & gt; Where ('c.slug =: slug') - & gt; Set parameter ($ slug); $ query = $ qb- & gt; GetQuery (); $ Query- & gt; SetHint (\ Doctrine \ ORM \ Query :: HINT_CUSTOM_OUTPUT_WALKER, 'Gedmo \\ translucent \\ query \\ treewalker \\ translator' \ Gedmo \ Translatable \ TranslatableListener :: HINT_TRANSLATABLE_LOCALE, $ locale); Return $ query- & gt; GetOneOrNullResult (); } <- 2 - My job is configured with @ParamConverter like this: (@ / {slug } "@ Template") @ParamConverter (* "content", * class = "StenikContentBundle: content", * option = {* "mapping" = {"_locale": "locale"} , * "Repository_moth" = "FindBytranslatedSlug&

c# - Cannot get response in ajax success -

My AJAX code is down In this I can not get feedback from server side C # code. But there is no problem with my server side code (I have checked it by debugging) From server side I am returning the string to this Ajax. $ .ajax ({type: "post", url: '@ system.Web.configuration.WebConfigurationManager.AppSettings ["BaseURL"]' + "Provider / GetState", Content Type: 'Application / Jason', data: {country ID: country_ID}, success: work (data) {warning (data);}}); Server side code is below public string gatestate (string country ID) {int i = Convert.ToInt32 (country id); Var Description = objUserAccount.SP_Getstate (i) .toList (); If (details calculation & gt; 0) {return "success"; } Other {return "wrong"; }} Add datatype to your AJAX request like this , If the datatype does not match the data received from the server, then the AJAX error will call instead of success $. Ajax ({type: "POST", u