Posts

Showing posts from June, 2010

c# - MVC 5 Razor handling view when validation fails -

मेरे पास एक WebGrid के साथ एक MVC रायर लेआउट है। @ एचटीएमएल। वैधतासुंदर () & lt; div & gt; @ मॉडेल सूची & lt; DelsDTO & gt; @ {Var ग्रिड = नया वेबग्रिड (मॉडल, डिफ़ॉल्ट सॉर्ट: "नाम"); } @ ग्रीड.गेटएचटीएमएल (हेडर स्टाइल: "वेबग्रीड-हैडर", कॉलम: ग्रिड। कॉलम (ग्रिड। कॉलम (हैडर: "चुनें", प्रारूप: @ & lt; text & gt; & lt; इनपुट नाम = "चेक किए गए डेल यूनिट" प्रकार = "चेकबॉक्स" ग्रिड ("नाम", शैली: "नामकॉलन"), ग्रिड, "ग्रिड", "ग्रिड", "ग्रिड।" स्तंभ ("सीट", हैडर: "सी दर", शैली: "span1", प्रारूप: (वस्तु) = & gt; (आइटम.कैरेट == शून्य)? स्ट्रिंग.एप्टीः स्ट्रिंग.फ़ॉर्मेट ("{0: 0.00} ", @ Item.CRATE)))) & lt; td & gt; & lt; इनपुट प्रकार =" सबमिट करें "नाम =" सेव चेंज "मान =" परिवर्तन सहेजें "/ & gt; & lt; / td & gt; } & Lt; / div & gt; एक सबमिट बटन का उपयोग करक

c++ - Using STL list container, a linked list as an attribute needed to be initialised? -

I am confused that when using a STL list as a feature in a class, do we link to Need to start the list constructor, and how can we release the memory system using the destructor? I understand that STL is a desctrutor in the list that automatically removes the linked list. However, my instructor asked us to include the destroyer for the class. So I'm finding out how to deal with the list feature? So I have a column class, which has a linked list of four which is its property. So far I have: class column {private: list & lt; Char & gt; Character; List & lt; Char & gt; :: const_iterator IRR; Public: column () {} ~ column () {} .....}; So do I need to start the characters in the linked list inside the constructor, and do I need to remove the linked list in the district? I know that we normally delete after using the new one. Or can I just leave the content of the constructor and thus the empty destructive? Thanks for your help. You do not need to call C

python - Get date when a word officially entered the English dictionary -

I am trying to track dates when the English dictionary in different words (Oxford, Merriam-Webster, etc. ) I would ideally like to find an API, so that if I sent 'safe' then I would withdraw '2013' as part of the answer, but I think this data Very common or not easy But neither Unc seems to offer data. I am using python and have taken a look here, but no module can be found which will still solve this problem. It seems I just have to gather data that I'm looking for by hand, but before I want to see if someone knows better about knowing about it . This is a basic script to get the words, if a word has many definitions, then it Only one chooses. Import custom url from BeautifulSoup import BeautifulSoup def render_oxford_uri (word): '' 'Submit the appropriate Oxford Request' '' Base_url = "http: //www.oxforddictionaries .com / definition / english / "url = base_url + ("% s? Cue =% s "% (re.sub ("

php - Laravel Auth and Session not working -

When I'm pushing for production, then I'm having trouble with my AUTH and session. It was working on my dev machine I did a simple test on such routes: $ arr = array (); $ Arr ['username'] = 'admin'; $ Arr ['password'] = 'password111'; $ My_var = AUTH :: Attempt ($ arr, true); If ($ my_var) {session :: put ('awful', 'i_have_logged_in'); } # $ V_auth session :: insert ('awesome keys', 'imavsom'); Then I made another way to print it: print session :: get ('awful'); Print Session :: Receive ('Maximum Kisses'); If I comment on the entire atith :: attempt block, my session :: works, but if there are two variables there will not be visible. I have gone after reading a lot on the web and there is no resonance and as you can see in the code, it is not so. It seems that if I use the ath, then this session ends, which remains constant. Please help me! Update: The server has given o

ios - Status bar colour for UIImagePickerController -

Image
इस सवाल का पहले से ही एक उत्तर है: < / P> 25 उत्तर हम नीले नेविगेशन बार रंग का उपयोग करते हैं और सफेद पाठ का रंग: लेकिन जब मैं UIImagePickerController बनाकर स्थिति बार के लिए रंग बदलता है: क्या कोई उपाय हैं? यहां पर उत्तर के आधार पर। मैंने इसे picker.delegate = self के साथ तय किया है; (शून्य) नेविगेशन नियंत्रक: (UINavigationController *) नेविगेशन नियंत्रक दिखाएँशोवियंत्र नियंत्रक: (UIViewController *) दृश्य नियंत्रक एनिमेटेड: (BOOL) एनिमेटेड ([UIApplication]

How to open excel worksheet on aspose cell in existing excel template and write new excel worksheets on existing excel template using asp.net with c# -

How can I open the Axle worksheet as a cell in the existing Excel template and an existing Excel template using asp.net I can write new Excel worksheets. With C # Please give me an example ... Thanks and relation, Parthiban's According to your previous commentary, you can present data from a dataset to an existing workbook You can import using the following code sample in: // Open the current workbook Workbook Workbook = New workbook ("book1.xls"); // Add new worksheet in addition to existing worksheets worksheet worksheet = workbook Worksheet Add ("New Sheet"); // Import data from dataset (dataset worksheet // datatable) dataset table worksheet. Cells.ImportDataTable (DataTable, true, "A1"); // Save the updated workbook workbook. Save ("book1.xls");

c# - oop asp.net classes for sql server queries -

In SQL Server, I have students and department tables I want to get student records from student tables; With the departments of their department data (so I joined them) and show them in an asp.net page In ASP.NET I have ASP.N. Code CodeHighand has created a studio class type to use in the list. The list, like this, takes the type of student class data: list & lt; Students & gt; Lst = new list & lt; Students & gt; (); But let me meet the student with their department datas. . Therefore, I created a custom category in the asp.net side called StudentsandDepartments Now the list takes this class: from the list & lt ; StudentsAndDepartments & gt; Lst = new list & lt; Students and Deptrtments & gt; (); My question; Do I need to create a new custom class for every query? If I create a custom class to use every query, then there are too many classes inside the solution. I think I am doing wrong .. What should I do? Thank you for helping ..

javascript - Displaying events in Fullcalendar jquery? -

Using a function on "Events", I can not display my events, but if I use the string generated from the console I use the console.log of the same return variable, I can display my programs. Why? $ (document) .ready (function () {var date = new date (); var d = date.getDate (); var m = date.getMonth (); var Y = Date.getFullYear (); // page is now ready, initialize calendar ... var calendar = $ ('# calendar'); calendar.full calendars ({// your options and callback here 'theme': wrong, 'Header': {left: 'back, next day', center: 'title', correct: 'month, agenda vik, agenda given', 'weekend': wrong, 'defaultview': 'agenda', axis format: Hh: mm ', timeframe: {// agenda y and ages for agenda 'H: mm {- H: mm}', for all other scenes, // 5: 6:30 // ': H (mm) t' // 7p}, minute time: 8, Undiscovered Time Zone: True, Editable: True, Selection: True, SelectHeather: True: Select: Function (start

Powershell runs all external commands in a new window, omitting output -

According to this topic, my PowerShell environment is executing all external commands in different windows. To run a general test of my team's script, things include: Running a slal for each project Nunit test runners It is quite excited, through a Virtual Virtual Virtual Development Program, whenever a new window / despector appears, it grabs the mouse / keyboard focus from it. This swallows valuable output from mixed steps in our manufacturing process. According to , I checked $ env: PATHEXT, but it is set correctly (this includes .exe, in its items, which is a semicolon-delimited list). I am the only member of the team seeing this behavior, and it appears to be related to some global / roaming profile for my user, because it is still done after my re-image Is the machine Any help will be greatly appreciated and I can provide additional information on request. initiation nuget.exe - nova vendor

java - How is generic information used by the compiler if generic static methods are called? -

I have a question about the general type. I have written my own Iterator type and if I repeat it again If nothing is there, then want to return empty repeaters. The following code works, @Override public iterator & lt; MyType & gt; Iterator () (last Iterator & lt; methype & gt; IARAR = collection. Return calculation & gt; New MiITATOR (): ITER;} However, it does not work , If written in a row like this: @ override public iterator iterator () {return calculation> New MyITter (): collection exempt ();} I get an error and type to solve it: @ override public Iterator & lt; MyType & Gt; iterator () {w} (Iterator & lt; MyType & gt;) (Count> New Miterator: Collection Executioner ());} This artist goes to an arbitrary warning, first There is no warning in the example. When I move the artist from inside, it does not work either: @override public iterator & lt; MyType & gt; Iterator () {Return calculation> New Age

algorithm - selection sort running time confusion -

"Uses sorting sort ~ N 2 / 2 and compares exchanges Length of time to sort an array. "" For example, I have two items in the array. String [] a = {"h", "t"}; Do I think that the selection compares sort 2 2 / 2 = 2, and to sort an array of 2 exchanges length 2? But when I run it: it only compares once. Of course this is common knowledge because only the items to compare are H and T but I am still confused with the statement, is there any mistake in my experiment ? I'm new to this. itemprop = "text"> The choice almost uses n ^ 2/2 comparison and n exchanges. For precise analysis, the selection type uses N-1 + N-2 + N-3 + ... to sort an array of length For 1 comparison. / P> Thus, the total comparison = (N-1) * (N) / 2 = N ^ 2/2 - N / 2, which is equivalent to N ^ 2/2, who has written it. In your example when N2 is, compare = 1 * 2/2 = 1. and the number of exchanges = 1. (N-1)

mysql - How to write SQL to check conditions? -

I have to write a SQL code that will do the following: If there is only one Return the record in which the situation is 'pending' and return. If there are multiple records with 'Pending' status, then the most recent 'created date' Li> if there are no 'pending' records and only 'active' records Choose one with the most recent 'created_date' If there are some 'pending' and some 'approved' records, then priority should be given to the 'pending' record with the most recent date < / Li> I tried the statements of statements, but it is not working well Please help. Since you tagged it both ways: Sql Server: SELECT TOP 1 * from [MyTable] Where in the case of status ('pending', 'active') when the situation = ' Where Pending 'MyTable' is located ('Pending', 'Active') with case 1 = 1 MySQL: SELECT * when position = 'Pending 'Then, 0 or

c# 4.0 - Get value from json in c# -

is the json string given below which is given to me as label Jason string If you have any ideas, then share me .... {"response": {"metinfo" : ["Timestamp": "2014-04-28T11: 55: 00.689 + 0000"}, "View": [{"Type": "Search displayed view tip", "Viewed": 0, "Result": [ Relevance ": 1.0," location ":" "" "dot", "name": "22.32963 73.24493", "display": {"latitude": 22.3296299, "longitude": 73.244923}, "map "" "{{" Latitude ": {" Latitude ": 22.3386231," Longitude ": 73.2352007}," Right below ": {" Latitude ": 22.3206367," Longitude ": 73.2546453}}," Address ": {" Additional Data 1.0, "district": 1.0, "distance": 32.4, "Milanleval": "", " "Location": "

Cannot make a connection to a SQL Server data provider using the Entity Data Model Wizard -

OK, I never got this error before ... requested Net structure data provider It can not be installed. I am just trying to connect to a good old MS SQL server and I get the error mentioned above. The project is a class library with only one property and reference folder. I've added a app.config file for this. Here are my steps for my project: Add new item ADO.Net Entity Data Model EF Designer from Database New Connection ... Data Source: Microsoft SQL Server (Data Provider Then Displays: Net WorkWorld Data / Provider for SQL Server Here Continue on, if I click "Test Connection" without any information on the server, I get a "Test connection successful" I do not know ... Enter the server name Enter the user id and password for the SQL Server authentication When I select the "database name Or enter ", then the database tries to load the list, but it immediately becomes empty. I also try to type in the database name press O

c# - Creating many to many junction table in Entity Framework -

Image
I am trying to add many to many relatives among my two organizations. I need a junction table with an additional area, I know that EF can not do it automatically and I need to make a unit for my junction table. I have the following models Public category suppliers {Public Entry ID (Receive; Set;} Public Virtual Icoding & lt; Supplier User & gt; Userpresses { Public string user {public string id {get; set;} public virtual iconing & lt; provider user & quot;; & quot; Gt; userpress {receive; set;}} For me a junction for a user There is a need to have permission to store stored in it, so I have created the following unit public class supplier user {public string UserId {get; set;} public int supplier ID {received; set;} Public Supplier User Promotion Permission {Receive; Set;} Public Virtual Supplier Supplier {Received; Set;} Public Virtual User User {Received; Set;}} In my OnModelCreating I have also added the following (this is probably where I am

c# - WCF Service Returns Invalid JSON output -

मैंने एक WCF क्लास लाइब्रेरी बनाई है जिसमें SampleJSON (स्ट्रिंग नेम) नामक फ़ंक्शन शामिल है। ऑपरेशन अनुबंध इस तरह है: [ऑपरेशन कॉन्ट्रैक्ट] [वेबइन्वोक (विधि = "प्राप्त", उत्तरस्वरूप = फॉर्मेट = वेबमाज़ प्रारूप। जेसन, यूरीटैप्लेट = "नमूना / {नाम}")] स्ट्रिंग नमूनाजसन (स्ट्रिंग नाम); मैं समारोह SampleJSON () से वैध JSON आउटपुट वापस करने का इरादा है और रिटर्न भाग इस तरह से है: StringBuilder sb = new StringBuilder (); स्ट्रिंगव्राइट SW = नया स्ट्रिंग वाइटर (एसबी); sw.Write ( "{"); Sw.Write ("\" "+" प्रथमनाम "+" \ "" + ":"); Sw.Write ("\" "" नमूना फर्स्टनाम "+" \ "" + ","); Sw.Write ("\" "+" अंतिम नाम "+" \ "" + ":"); Sw.Write ("\" "samplelastname" + "\" "+"} "); sw.Flush (); sw.Close (); वापसी sb.ToString (); और जो आउटपुट मेरी सेवा बनाता है वह ऐसा कुछ

mysql - SQL Error 1452: Cannot add or update child row -

I am trying to add an existing key to a foreign key named OrderSubbl. I've added a new column called Approved, like: Alternate table is not countless by ORDERTBL ADD approved BIGINT; After that, I tried to set it as a foreign key: Add an optional table order. Approved Accepted Foreign Next Key (Accepted) Records Employee Employee (Employee); but I continue Error 1452: hair row can not be added or updated What am i doing Should I set the field as accepted instead of the foreign key? While defining order table order TBL is approved by BIGINT Not countless; then can not be accepted can not be null . The default value will be set which is 0 . Then you apply a foreign key to employee TB . This means that the DB checks that accepted has only those values ​​which are in the employeeby . But that is not the case. The value is 0 . Allow either null to accepted and set the value to the value later or set the correct value before adding the for

php - WP_Query: Modify array -

I have managed to integrate a custom taxonomic plugin that: - employees base What the filter does is select the category. I want to show it to that department first , and then want to show other departments below the department itself (how it is now) . Here's the link: Here's my WordPress Loop: & lt; Div class = "staffwrapper" & gt; & Lt ;? Php $ args = array ('post_type' = & gt; 'cripps_staff', 'posts_per_page' => 300); $ Loop = new WP_Query ($ Args); While ($ loop-> is_pause ()): $ loop-> The_post (); Echo & lt; Div class = "col-md-3 spacetop" & gt; '; Echo '& lt; A href = "'. Get_permalink ().' '& Gt;'; echo '& lt; img src ="'; Echo get_post_meta ($ post-> id, 'image', true); Echo '' & gt; '; Echo & lt; / A & gt; '; Echo & lt; H2 class = "staffname" & gt; '; Echo get_pos

pdf - wkhtmltopdf -> Java HttpServlet only white page -

I try to serve HTML pages as PDF using wkthmltopdf, but only as output Get a white PDF page This is my small snippet inside the doPost method: process process = runtime.gettime (). Exec ("c: \\ Program Files \\ wkhtmltopdf \\ bin \\ wkhtmltopdf .exe http://10.80.2.234/details.jsp?99999 -"); BufferedReader Reader = New BufferedReader (New InputStreamReader (process.getInputStream ())); OutputStream Out = resp.getOutputStream (); Resp.setContentType ("application / PDF"); Int bytes; While ((byte = reader.read ())! = -1) {out.write (bytes); } Reader.close (); Out.close (); Using : \\ Program Files \\ wkhtmltopdf \\ bin \\ wkhtmltopdf.exe http://10.80.2.234/details.jsp?99999 - & gt; Test.pdf from the command line is working fine. Thank you in advance for your help.

c - How do you insert a string within a dynamic target using realloc()? -

I am struggling with memory allocation I wanted to input one string to another and I created two functions Stop working at the same place - realloc These functions are very similar In the first one, I copy around the characters around in a temporary string and when I first try to copy the temporary string that place Is where i am Utian meet. In the second function, I copy the first string (from the given position) to the end of a temporary string, re-assigning the first string (this is where I get the errors) and I get everything from the given position Give it Then I add the second string and temporarily add the string first. Here my code is the first task: // str2 - is a string that I string in the first string (str) // certain position (pos) void ins (char ** str, char * Str2), int pauses {// the first and second strings of int len ​​= strlen (str [0]), len2 = strlen (str2), i, j, l = 0; // Create temporary string characters * s = (char *) malloc ((lane + len2) * sizeof (char

BASH: excluding a directory in "find" command -

I want to leave a directory and use the search command. I have it: GLUE = "$ GLUE -not -wholename * / dir3 / *" and I Find a Find command ( find $ GLUE [...] ) to use a GLUE variable. Unfortunately, instead of -not -iwholename dir3 / file1 dir3 / file2 dir3 / file3 in -not -iwholename * / dir3 / * , click on GLUE Instead of>, i.e., * / dir3 / * changes to the name of the files that meet this condition and, of course, find does not work because of this How do I stop it? Find . -name & lt; Dynamic filename name is not part of the search results & gt; Find / -name & lt; File name & gt; ! -path "./dirt o Excluded / *" I hope nobody will help

malloc and pointers in assembly -

I am trying to implement a linked list in the assembly, so to save me an 'array' (actually In 20 bytes) is the link for 5 possible lists Each 'link' is 5 bytes long (data for pointer 1 - x86 machine). Now I called malloc and created 1 link and first byte (decimal number) Pushed a number into and moved the link indicator in the beginning of the array. . After that I try to call Molok again to create a new link, but the new link created by the link has pushed me completely into the array and I do not know why !!! Here are codes and some input / output examples: section. Rodata LC0: DB "Number is:% i", 10, 0; String LC1: DB "Memory allocation failed !!!", 10, 0; String section. Data section Bss number_stock: rsb 20 link: rsb link_size section. Text Exchange 16 Global Main External Printf Extant MLL Extension Link_Size EQU 5 _start: JMP Main Main:% MacroMemolok 2; Molok macro mf edx,% 1; Edx js fail_exit mov [% 2], eX% endmacha% macro myprint1; Pr

machine learning - multivariate analysis in R -

I have been looking to identify a package which allows for Maltiviatt analysis .. like many dependent variables (I.e., Y1, Y2, Y3, Y4) are fitted to the same set of predictions as well. I know it can be done through the polygon multiple regression with LM function, but neural nets, Svim, methods of ensemble a way through any kind; Or just other methods rddict correlated many dependent variables Just look at Crohn store:

java - BigInteger loop executing infinitely -

जबकि (सही) {if (((d.multiply (e))। Mod (phi1))। बराबर (बिगइंटेजर.ऑन) ब्रेक; d.add (BigInteger.ONE); } मेरे पास मेरे प्रोग्राम में निम्न कोड है, जिसका अर्थ है कि जबकि (सच) {if ((d * e)% phil == 1) ब्रेक; घ ++; } यहां, ई = 17 , phil = 12816 और d = 1 शुरू में। लेकिन लंबे समय तक प्रतीक्षा करने के बाद भी, पाश अभी भी कार्यान्वित हो रहा है। क्या गलती हो सकती है? बिगइंटेगर अपरिवर्तनीय है और उस पर सभी कार्रवाइयां मौजूदा एक को संशोधित करने के बजाय एक नया उदाहरण लौटें इस प्रकार d.add (BigInteger.ONE); d का मान नहीं बदलता। समस्या को ठीक करने के लिए लिखें: d = D.add (BigInteger.ONE);

amazon web services - 'Missing Dependency: /bin/sh' when installing MongoDB in AmazonAWS -

I am trying to follow the guide to install MongoDB in AmazonAWS, but when I run this command: sudo yum install -y mongo-10gen-server I get this message: ubuntu @ ip -10-112-41-241: / Bin $ sudo yum install -y mongo-10gen-server Determination of dependencies to determine the installation process - & gt; Checking transactions --- & gt; Package Mogo-10 Gene-Server. X86_64 0: 2.4.10-Mangaodbi updating - & gt; Processing Dependencies: For the package Mango-10G: Mongo-10gen-server-2.4.10-mongodb_1.x86_64 - & gt; Processing Dependency: For Package / bin / sh: Mongo-10 gen-server-2.4.10-mongodb_1.x86_64 - & gt; Checking transactions --- & gt; Package Mango-10 Gene X86_64 0: 2.4.10-Mangaoding Updating --- & gt; Package Mogo-10 Gene-Server. X86_64 0: 2.4.10-Mangaodbi updating - & gt; Processing Dependency: For Package / bin / sh: Mongo-10 gen-server-2.4.10-mongodb_1.x86_64 - & gt; Processing Dependency: For Package / bin / sh: Mongo-10 gen-server-

android - Assign Text of 2d array of buttons -

I have buttons on Android that I declare like this button grid [] [] = new button [3 ] [3]; Then I find the grid set [0] [0] = (button) VVIBID (RID. Middle Couple) which exists When I try to change the text again I the calling grid [0] [0] by .setText ("U"); I know the accident that I do not have this announcement or array setting because it only crashes when I go into the function which I am using to set text. If the button .setText () is throwing a NullPointerException, then the button will be placed in your layout (R.D. Middle Couple) Your content should not currently be inflated / present in view. Since the button grid [] [] = new button [3] [3]; In fact, you do not make the buttons you use, when you try to set the text, it will throw the NPE (because your searchviobiIID method is returning to zero when trying to set one up goes). Before you reach these, the button must actually be instructed. Example. button grid [] [] = new button [3] [3]; For

javascript - Removing a document from iframes when a button in child is clicked -

So I can not find an answer to this exact question and I am completely stumped. I am loading a page (page 1.aspx) on which there is a form in an iframe. (This page resides on a subdomain, although we are not able to edit the code.) When the form is submitted by someone by clicking on the submit button (ID = "deposit1"), then the page I'm trying to break Iframe and either open a new tab or change the original document. The 'submit1' button does not have the "top" target, and I can not touch the page 1.aspx to add that page. Any ideas will be appreciated.

css - how to convert suit format to ttf or any other format? -

I have a license for antennaçond-Regular.suit font, and I try to convert it to other fonts using the font I'm doing the squirrel web-font generator: But the problem is that when I get the conversion to the website. If I try to select font format, then the file is not clickable, which means that I can not select this font. I have searched the web for another independent antenna with frustration with another format, but I could not find it. And I have already paid for the font package, so I will not pay for it again on any other website. Is there something that I should do with the suit font format? Is there some experiment that I do not know about the suit format? Thank you.

sql - Alter User Password Not Checking Old Password -

Image
I need to make a way to change user's password I have a form that executes the following: / P> CurrentProject.Connection.Execute "ALTER User Tim Password WordPress NewPass OldPass" If the user has a valid account name and old password is correct, then password new password Will be updated with If the user is not a valid account, I get the following error: However, if the user is a valid account and the old password is not then the code does not change the password and it does not generate an error. Why is there no error in saying that old password is wrong? How can I verify that the old password entered by the user is correct?

SASS @each function providing cleaner CSS? -

मेरे पास निम्न SASS @each है: $ Obj-list: 1, 2, 3 .object @each $ obj $ obj-list & amp;: nth-child (# $ obj}) रंग: #fff लेकिन आईआर निम्नलिखित बनाता है: .bject: nth-child (1) {color: #fff} .object: nth-child (2) {color: #fff} .object: nth-child (3) {color: #fff} मैं इसे कैसे क्लीनर सीएसएस बना सकता हूं? .bject: nth-child (1), .bject: nth-child (2), .object: nth-child (3) {color: #fff} इसे यहाँ देखें: एक संभावित समाधान विस्तार करना होगा a। $ Obj-list: 1, 2, 3% ऑब्जेक्ट रंग: # f00 .object @each $ obj $ obj-list & amp; nth-child (# {$ obj}) @extend% object ।

lucene - Solr roll up query -

I have a specific question with SOLR that I can not find any solution for this, I have an index full of products And the scooo is one product, there are several scores and each spawn has 1 product. I want to search based on the original product of only one group of my SKU and return the details of the original product (but not the item details). But, I want the aspect to show the original list of items. Is it possible with SOLR today? And who is this version available on? I think it is possible, my suggestion is to design your original so that the document is only a SKU, Or represents an item. So, your unique ID will be SKU ID, then you need a product ID which is not unique and can have similar values ​​for those SKUs who have the same basic product. You can also generalize the product details in all the documents as well. Therefore, when you return the details of the item, then you also have a description of the yield. The trick here is on the query, using clinging, or there i

After installing Jenkins Role Strategy Plugin - all logins fail -

Text after "div class =" itemprop = "text"> I install Jenkins 1.561, on a 64-bit Windows 7 Professional as a Windows service running a new one Playing with (SP1). I had installed without a problem, enabled security, it is configured to use Jenkins' own user database, and created a few users. Then I installed the Role Strategy Plug-In. With this setting, I was unable to log in as any user. When I disabled the Roll Structurality plugin, my login worked again. Is this a known bug? Or is there something I'm missing, permissions to get to the right publicity? The documentation I was using () asked to set "Security Area" to "Representative Container Servlet". this is wrong? After No, you do not need to change the "security zone", change only "authorization". The document was showing only the default option. You said that you already have your own user database of "Jenkins", then keep it

javascript - Animating a custom carousel with React.js -

I made a carousel with React.js, until I came into the animation problem it was simple. The carousel is classic, it is composed of "slides" of the current slide and small bullet content of small thumbnails to navigate between the slides. The carousel component is data-driven, which means that it has passed its content as a JavaScript array of objects, each slide has a li tag to be ul < / Code>, and just move margin-left to ul from one slide to another. I am thinking that I should use ReactTransitionGroup or ReactCSSTransitionGroup to animate the transition from one code to another. The transition is basically a sliding effect that goes from left to right when moving from one slide to another. I understand that ReactTransitionGroup s API is useful during adding or deleting some content. Here I will not want to add / remove any slides, with the animation I will change the visible. My difficulty is to wrap my head around this, that I developed a st

regex - Javascript - normalize accented greek characters -

I'm trying to apply some kind of generalization in Greek text (use less case, remove accent And replace σ with σ). For example, I would like to become "ἀντίθεσις" (Greek polytechnic) and "αντίθεσις" (modern Greek) "αντιθεσισ" I attended and wrote what character substitution I should do. Greek and Coptic (range: 0370-03 FF) ΆΑά - & gt; Α ΈΕέ - & gt; Ε ΉΗή - & gt; Η ΊΪΙίΐ - & gt; Ι ΌΟό - & gt; Ο ΎΫΥΰϋύ - & gt; Υ ΏΩώ - & gt; Ω Greek Extended (Range: 1F00- 1FFF) ἀἁἂἃἄἅἆἇὰάᾀᾁᾂᾃᾄᾅᾆᾇᾰᾱᾲᾳᾴᾶᾷἈἉἊἋἌἍἎἏᾈᾉᾊᾋᾌᾍᾎᾏᾸᾹᾺΆᾼ - & gt; Α ἐἑἒἓἔἕὲέἘἙἚἛἜἝῈΈ - & gt; Ε ἠἡἢἣἤἥἦἧὴήᾐᾑᾒᾓᾔᾕᾖᾗῂῃῄῆῇἨἩἪἫἬἭἮἯᾘᾙᾚᾛᾜᾝᾞᾟῊΉῌ - & gt; Η ἰἱἲἳἴἵἶἷὶίῐῑῒΐῖῗἸἹἺἻἼἽἾἿῘῙῚΊ - & gt; Ι ὀὁὂὃὄὅὸόὈὉὊὋὌὍῸΌ - & gt; Ο ὐὑὒὓὔὕὖὗὺύῠῡῢΰῦῧὙὛὝὟῨῩῪΎ - & gt; Υ ὠὡὢὣὤὥὦὧὼώᾠᾡᾢᾣᾤᾥᾦᾧῲῳῴῶῷὨὩὪὫὬὭὮὯᾨᾩᾪᾫᾬᾭᾮᾯῺΏῼ - & gt; Ω ῤῥῬ - & gt; Ρ I am thinking that these substitutions are a great way of doing and avoid checking the string characters from letters. 1 try

jquery - Slide not working -

I know that I am a bit novice in coding, especially in jquery but I can not know why I A slide plugin can not be found to work on my website ... I have already tried a plugin, but they all feel unsuccessful ... Here's my code: < / P> Calling Jquery and Slippry Plugin- & lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; JQuery (document) .ready (function () {jQuery ('selector'). Slippry ()}); & Lt; / Script & gt; HTML - & lt; Ul id = "slippry-demo" & gt; & Lt; Li & gt; & Lt; A href = "# slide1" & gt; & Lt; Img src = "picture / 22.png" alt = "Welcome to Slippery!" & Gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# slide2" & gt; & Lt; Img src = "picture / 11.png" alt = "cenas nices!&qu

Weird behavior of GWTP app when hitting "Go Back" and "Go Forward" button of Web Browser? -

I am using GWTP and I found this problem. I have this code in CustPresenter: Private list & lt; String & gt; Data List = New List & lt; String & gt; (); @Ovcorride Public on Bind () {myTextBox.setText ("Test"); DataList.add ("test"); } OK, now when the page opens for the first time, the page shows that the string in the textbox is "text" and; On the page that has the "test" value in the data list, I press the "Go Back" and "Forward Forward" button in the web browser (like Chrome or IE). When click on "Go Back", this will show the previous page due to this. This customer will show the page when clicking "Go ahead" & amp; I still see the string "text" in the text box of the customer page, but there is no "test" value in the data list? What's going on? Is this a bug for GWTP or do I do anything wrong? Note: I am using GWT 2.50 version of last year

javascript - How can I tell an angularjs dropdown to refresh? -

I have a button that shows a dropdown on click, a UI dialogue is generated when clicking on each element of the dropdown . When the UI is opened, the related items are checked in the dropdown. Clicking the element in the dropdown will stop the dialog again, and uncheck it in the list. The dialog can also be closed with the dialog 'X' on the dialog. I need this closing action to uncheck the related element in the dropdown. It is inside my controller: Data grid & lt; Span class = "caret" & gt; & Lt; / Span & gt; & Lt; / Button & gt; & Lt; Ul class = "dropdown-menu" role = "menu" & gt; & Lt; Li & gt; & Lt; A href = "#" ng-click = "shorefitter =! Show rotation; openclosgreat ('pathfinder', showiteficht);" & Gt; & Lt; Span ng-class = "{glyphicon glyphicon-ok icon-OK check-mark": showRouteFeature, 'glyphicon no-icon':! ShowRouteFeature} "&

regex - Unwanted highlighting of pattern in VIM -

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

Elasticsearch - No node available -

I am getting this error for a few hours .. I am using 2.2.0 play and elastic content 0.90.7 I am! Can anyone help me play.api.application $$ anon $ 1: execution exception [[NoNodeAvailableException: no node available]] play.api $ Class.handleError on application (application.scala: 293) ~ [play_2.10-2.2.1.: 2.2.1] at play.api.DefaultApplication.handleError (application.scala: 399) ~ [play_2.10- 2.2.1 .jar: play.core.server.netty.PlayDefaultUpstreamHandler on 2.2.1] $$ anonfun $ 2 $$ anonfun $ applyOrElse $ 3.Apply (PlayDefaultUpstreamHandler.scala: 261) ~ [play_2.10-2.2.1 .jar: 2.2. 1] at play.core.server.netty.PlayDefaultUpstreamHandler $$ $$$$$$$ anonfun $ applyOrElse $ 3.apply (PlayDefaultUpstreamHandler.scala: 261) ~ [play_2.10-2.2.1.jar: 2.2.1 ] On the scale. Option.map (Option.scala: 145) ~ [Scala-library.jar: na] play.core.server.netty.PlayDefaultUpstreamHandler $$ anonfun $ 2.applyOrElse at (PlayDefaultUpstreamHa Ndler.scala: 261) ~ [play_2.10 -2.2.1.jar: 2.2.1] org.el

nginx - HTTP connection pools to share among processes -

Where I work our main web application is served with nginx + uwsgi + Django on the given product box There are 80 running UVSwie worker procedures. Our Django app regularly requests for Amazon S3, but, if each of those 80 workers has to use their own HTTP connection for such requests, then they (relatively few) keep the HTTP. -Alive is not enough to take advantage of Amazon's server, therefore, we often have to pay a rebound penalty after connection with Amazon. What should I do if a proxy service is running on the same box which can "focus" the S3 connection, at least those 80 processes in a small pool of the HTPP connection Will use enough to use, they will be kept alive. The Django app will connect to the proxy, and the proxy will use the pool of their own live connections to forward S3's requests. I see that it is possible to use NGNX as a proxy, but it is not clear to me how it can happen if it can take advantage of the connection of the way it is connected

c++ - OpenGL - Index buffers difficulties -

I have a custom file format that has all the necessary information for 3D mash (exported from 3ds max) Data for top indices and normals is extracted. I pass OpenGL through top data, top index and normal data and I call glDrawElements (GL_TRIANGLES, ...) to call Something looks fine but in general the problem is that there are different indices of normal and because OpenGL can only use an index buffer, it uses index buffer for both the corners and the normal. If you tell me about this problem, I would be really grateful. The important thing to note is that the top / normal data is "not sorted" and therefore I use the glDrawArrays (GL_TRIANGLES, ...) functionality I am unable to present T correctly? Is there any way / algorithm that I can use to sort the data so that the mash is glDrawArrays (GL_TRIANGLES, ..) < Can be prepared correctly with / code>? But if there is also an algorithm, then there is another problem - I have to copy some corner (because

swing - Calling another JFrame in Java -

I am trying to create a menu to create a program. I want to create a window to select the user, if he wants to encrypt or decrypt whenever the button is pressed, another window will pop up to enter the encryption key for it, and then the program will proceed to the other window. Where data is displayed / entered My question is what is considered the best practice when calling "separate" frames? Should I make a square for each frame? I am not always using bad behaviors for efficiency and learning and using incorrectly. Thank you for your reply:) For better UI design, I recommend using jdesktoppane and adding JInternalFrames for different functions. In this way you can create the entire window in a window instead of making jframes and disposing it.

Get sum of multi-dimensional array in PHP -

I need to get the sum of all the numerical values ​​in my array for each named month. Ideally, The format will return. Total = 22 March Total = 'Yoga' Array ( [April] = & gt; Array ([0] => 1 [1] => 2 [2] => 3 [3] => [4] => 3 [5] ] => [6] => 2 [7] => 6 [8] => 3 [9] => 2) [march] => Hey ([0] = & Gt; 3.19198 [1] => 2.52219 [2] => 3.40053 [3] => 2.42639 [4] => 3.92301 [5] => 3.23758 [6] = & 3.22457 [7] = & gt; 2.62855) on each sub-array Apply: $ result = array_map ('array_sum', $ data); Where Tput: array ([April] => 22 [March] => 24.5548)

knockout.js - Resetting dropdown by manual subscription doesn't work depending on what observable was subscribed to -

I searched online and tried to understand this behavior and work hard but I just could not find out that this behavior Why is it possible that I am missing something fundamental here? I would appreciate some hints / resources / answers. Consider this Bela - Why it Resets Product Selection // Whenever the category changes, the product selection Reset self.category.subscribe (function () {self.productName (undefined);}); While this is not it? // Whenever the category changes, reset product selections self.categoryName.subscribe (function () {self.productName (undefined);}); It must be done from the order in which the subscribe event The other is called relative to the computed properties computed and subscribe properties of D are said in the same order when they were viewed There is a change on the property. Here's what is happening in each case, this is the best thing, as I can tell (Kendo has not read the source, so there is some guess): category

iscroll4 - How do I make iScroll5 work when the image is generated from a DB? -

I am using iScroll5 in a phonegap project. On the index page, the user will click on a series of thumbnails generated from a database, then the selected image ID will be written in the locale, the page will change, the image ID will be dragged from the localized stubs and the image will be displayed. This works fine if I directly reference the image (not to DB) in this way (as a test): I can pin / zoom to resize the image for the screen (my app's main function is required), and scroll on the image X and Y axis, then the image Tap on the index page to come back. All this works But if I drag the image out of the database and reference it in the following way, then all other aspects of the page code are the same, do not work pinch / zoom, though The picture is displayed and I can scroll on X and Y: // ... here DB code ... function querySwashwas (tx, result) {var path = results .rows.item.category + "/" + Results.rows.item.subcat + "/" + results.row

Python regex search (frustrated with regex) -

I have the lower string of text; I line needs to parse / print " jil & lt; fwks_future_dated_change_batch.jil | T SCR232425.log " (second line from the bottom) basically . "^ Jill & lt ; .... $ "(followed by the 'Jill' followed by the beginning of the line; by some, then end of the line) I'm matching again and searching again, but I'm unable to collect the required regex. server deployment: the BT Test: MER1-BATCHT3 MER1-BATCHT4 BT for pre-Prod: MER2-BATCHP03 MER2-BATCHP04 AUTOSYS instruction: PVCs aka \\ SCM shares \ Get the file from SCM \ PVCs \ VM \ Projects \ Batch_Apps \ Batch_Apps \ AutoSys \ FutureDatedChangeBatch \ fwks_future_dated_change_batch-TEST.jil test for Autosys log test AUTOSYS unix machine run for fwks_future_dated_change_batch-PROD.jil. /opt/CA/autosys451/autouser/autosys.ksh* Change & lt name fwks_future_dated_change_batch-TEST.jil order autosys Run fwks_future_dated_change_batch.jil Jill FTP Test fwks_futur

ios - Adding some but not all data from new app version’s database to existing database -

I am creating a core data app with previously loaded data using a SQL file. I am able to create preloaded data, insert the SQL file into that project, and there is no problem. When the user first opens the app for the first time, the pre-populated store is copied to the default store. However, I am thinking that in future versions I will continue to add to this database. I want users to download the existing version with the latest DB without first removing user-generated data or user-edits for data in previously-loaded DB. This is not a migration problem because the model is not changed. Basically, when a new version of the app is opened for the first time, then I want to check it out in the pre-populated store of the new object and want to add them to the user's store. Any suggestions are welcome For each object that your preloaded data is, Include in the file where it was added to the first preload of the file. Then Add new data by looking at the previous app ver

mysql - Is it possible to overlap duplicates when engaging in DynamoDB cross region table copying? -

I am trying to install a pipeline to copy a table between two Dynamo DB geographic servers and The way to make incremental copies every two hours between a table on the west coast server of Amazon on the East Coast server. Copying duplicates This work runs every two hours but Amazon Data pipelines Is looking for documents in, if I could find nothing to me overwritten exists already recorded on the table of the west coast. Amazon's interface or default behavior? I'm looking for a way to make sure that the existing record will be overwritten during an incremental copy by inserting the same hash and range key. Uses the Amazon data pipeline hive connector You can view it by looking at the details of your pipeline . I believe the hive connector uses the contents. You will be able to confirm it by looking at your Dynamo DDB Cloudwatch graphs and see the Notification of updates and updated item items latency matrix. In this case, it has been written only on what is alre

sql server - INSERT INTO Compare tables from 2 databases -

I'm looking at 2 tables to compare 2 tables on the same server and put that data in the third table . I thought it would be easy, but I'm not sure how to do it with 2 databases. The code below is not liked by SQL Server. Any help would be great. WaterAccounts (CaseNumberKey, MASTER_ACCOUNT, OWNER_NAME, select MAIL_NAME, ACCT_BALANCE) B.CaseNumberKey, C.MASTER_ACCOUNT, C.OWNER_NAME, C.MAIL_NAME, newCityCollection.PropertyInformation putting C.ACCT_BALANCE B, Where DEM C B.Name = C.SERV_STREET and B.DIRECTION = C.SERV_DIRECTION and B.NUM = C.SERV_STREET_NO If newCityCollection is another database, and contact information in that table, you are missing the schema name. Assuming that the dbo (probably), you can select something to write like shoud: WaterAccounts (CaseNumberKey, MASTER_ACCOUNT, OWNER_NAME, MAIL_NAME, ACCT_BALANCE) on putting B.CaseNumberKey, C.MASTER_ACCOUNT, C.OWNER_NAME, C.MAIL_NAME, B interiors C.ACCT_BALANCE newCityCollection.dbo.PropertyIn

javascript - How can I tell a chrome.app.window to open on a specific screen under Windows? -

मेरे पास Google है समस्या यह है कि मल्टी-स्क्रीन सेटअप में मुझे इस पर कोई नियंत्रण नहीं है मेरी खिड़की खोली गई है (मुख्य स्क्रीन या माध्यमिक स्क्रीन) क्या सीधे (एप्लिकेशन के भीतर से) या अप्रत्यक्ष रूप से (जैसे: विंडोज सेटिंग्स के माध्यम से) मेरे क्रोम- ऐप विंडो? एफवाईआई: मैकोड के तहत मैं खिड़की खोलने पर कम से कम अप्रत्यक्ष रूप से प्रभावित कर सकता हूं, क्योंकि खिड़की हमेशा मुख्य स्क्रीन पर खुली होती है। और MacOS पर आप ओएस सेटिंग्स में मुख्य स्क्रीन सेट कर सकते हैं। लेकिन मुझे नहीं पता है कि मैं खिड़कियों में कहां कर सकता हूं। मुझे पता चला कि विंडो को कैसे प्रभावित किया जाए विंडोज के अंतर्गत एक अप्रत्यक्ष ढंग से निर्माण आप भी कर सकते हैं। क्रोम-ऐप-विंडो की स्क्रीन सेट करने के किसी भी प्रत्यक्ष तरीके से मेरा अप्रत्यक्ष समाधान तुरुप होगा, लेकिन ऐसा लगता नहीं है।

php - .htaccess mod_rewrite error -

Here public_html contains htaccess: # PHP5.4 as the default AddHandler Use App / X-HPD-PPPN PHP Options - Multivoice Option - Index # For security reasons, option type-links can not be overridden. # Option + Follow-up Options + SymLinksIfOwnerMatch RiverEngineReviewCound on% {REQUEST_URI}! API \\ Sending \ .php $ RewriteCond% {REQUEST_FILENAME}! -f Recrimet Rule ^ API /. API / dispatch.fip [L, QSA] rewrite% {REQUEST_FILENAME}! -d Recovery code% {REQUEST_FILENAME} \. Php -f rewrite rule ^ (. *) $ $ 1.php public_html / sites / for security reasons, option type- Links can not be overridden. #Options + FollowSymLinks -MultiViews Options + SymLinksIfOwnerMatch -MultiViews RewriteEngine at RewriteCond% {HTTP_HOST} ([^ /.] +) \ Webznap \ .com $ [NC] RewriteCond% 1 ^.! (Www | FTP | Mail) $ [NC] RevokedContact% {REQUEST_URI}! ^ / Sites [NC] Reerratriel ^ http://webznap.com/sites/%1/ [L] Here HTTPC errorDocument 403 / page / error Error_document 404 / page for public_html / Error

asp.net - How to pass Url.Action in <td> in Ajax Success function -

डेटा: {"कोर्सिड": कोर्सिड, "डेट": कोरसैडिट, "प्लेस": कोर्स प्लेस, "स्टेटस ": स्थिति}, सफलता: कार्य (डेटा) {$ (" # गणना ")। Html (data.length); $ ("# गिनती")। Html ("& lt; span & gt;" + data.length + "& lt; / span & gt;" + "& lt; अवधि & gt;" + status + "& lt; / span & gt;" + "पंजीकरण "+" & Lt; span & gt; "+ coursename +" & lt; / span & gt; "+" & lt; span & gt; "+ coursedate +" & lt; / span & gt; "+" पर "+" & lt; अवधि & gt; "+ कोर्स + +" & lt; / span & gt; "); allcourseresult.html ( ''); $ .each (डेटा, फ़ंक्शन (आईडी, विकल्प) {//allcourseresult.append($(''lt;p></p>'.html.htmloption.fname + option.coname + option.coplace + विकल्प Html ("& lt; td & gt;" + option.coname + "& l