Posts

Showing posts from February, 2015

sql - Big Mysql Query (Join counts in the result and modify a string) -

I'm new to mysql so please forgive my knowledge level here, and hesitate to direct me in a better direction. Do not My Table: Server: / p> | Server id (int) | Article ID (Int.) | Location ID (int) | | 1 | 46 | 55 | | 2 | 11 | 81 | 3 | 81 46 | | 4 | 55 | 11 | | 5 | 81 99 | | 5 | 11 | 52 | Article: | Paragraph (int) | Name (varchar) | Type | | 46 | Domain | 0 | | 81 Root-server | 1 | | 55 | Making | 2 | | 11 | Root-server2 1 | Location: | Location id (int) | Location (varchar) | | 46 | 1-5-15-2. | 81 1-5-14-2. | 55 | 2-25-1- 9. | 11 | 21-2-5-8. | 99 | 17-2-5-8. | 52 | 1-8-5-8 || Result: | Place (integer) | Name (varchar) | Count | | 1 | Root-server | 1 | | 1 | Root-server2 2 | | 17 | Root-server | 1 | The first number of space in the location space table is the block (1-5-15-2 -> 1, 1-8-5-8 -> 1, 21-2-5-8 -> 21, 17-2-5-8 -> 17). Counting is the same number of all servers with the same name and first place block. Do anyone think that t

c# - Hatching 2D polygon -

Looking at the 2D polygon made of a set of points, I want to punch through the polygon. By heching I mean almost equally spaces, almost all 45 degrees. I have trouble in thinking in a way to do this work, although it will not be very slow, Does anyone have any ideas about this , How to reach it, or any existing technology that can work? Thank you. You can use FillPolygon and a HatchBrush like this: < Code> protected overdrides zero onpaint (paint event erg e) {base.OnPaint (e); // Use a statement on the brush to make sure it is disposed (Vir B1 = New Hatchbrush (Hatchstyle, Ford DeGonal, Color .rade)) {PointF [] Issue = Deficitator PointpointApoligen (); E.Graphics.FillPolygon (B1, Issue); }}

ibeacon - ESTbeaconMangerDelegate not calling functions in swift -

all, I have added to the header file and SDK estimated beacon inside Swift Has added But when I run this simple code, the function is not called a rangeback. any idea ? View category Controller: UIViewController, ESTBeaconManagerDelegate {Beacon Manager: ESTBeaconManager = ESTBeaconManager (override) func viewDidLoad () {super.viewDidLoad () // Set Beacon Manager Representative BeaconManager.delegate = self var beaconRegion : ESTBeaconRegion = ESTBeaconRegion (proximity Uuaidi: Ansuuaiaidi (UUIDString: "B9407F30-F5F8-466E-AFF9-25556B57FE6D"), identifier: "Icy Marshmol") Beacon manager. Prarnbrng Beacons Inaregeshn (Biconaregian)} Ovrkraid Funk said Kiasmimoriarning () {super DID receiving Memory Warning () // can be renovated dispose of any resources} Fenk Beacon Manager (Manager: Astibicon manager, Darenj Bicona [East Beacon ] Rijnian: Istibiicon Rigian) {println (found "in the range" (Darenj Beacon seat) ");} Make sure you estimatecloudm

Rails 4 Update Data Through View Page -

I currently have a watch page named "user" in my watch page, I am displaying a table in which The features removed from the user table include the first names, last names, last logins, administrators, etc. ... In the admin field, this user shows correct or incorrect from the table. What I want to do is to create a drop down, which shows the user's current value to the administrator (true or false), and then be able to change this feature from the watch page. Currently, I have to use the console on the server to manually approve or cancel the administrator's privileges to give the value of the user a true or false value. Needless to say, it is inconvenient. I am still quite new to the rail and using scaffolds till this point, I am not sure how to complete it, and any advice will be greatly appreciated! User schema: create_table "users", force: true do | T | "", Null: false t.string "encrypted_password", default: "", nu

python - Flask-Restless order_by related model -

I have these two models (defined by flask-SQLLame): class bank Account (Db.Model): id = db.Column (db.Integer, primary_key = true) customer_id = db.Column (db.Integer, db.ForeignKey ('customer.id')) created_at = db. Column (db.DateTime) class customer (db.model): id = db.Column (db.Integer, primary_key = true) name = db.Column (db.String (128), index = true) < / Pre> I have no problem using the flask-rastless API EndPan for the bank account with the following query parameters: http://mywebsite.com/api / Bank_account? Q = {"order_by": [{"However, I would like to order these results (bank account) by the name of the customer - and the customer is that" customer "is a related model, There is no such area in the form of customer_name in the T model. Is there any easy way to work in this sequence? In some known Python ORM, this will be achieved using "double underscore" Something like: http://mywebsite.com/api/bank_account?q=

tfs - Release Management sets builds to Retain Indefinitely -

We are using Microsoft's release management tool to automate the deployment of our solutions to our various dev servers. This tool is ideal for us because it can make a more complex deployment that runs multiple servers. In this sense, it is working fine and everything is deployed properly. A small problem is that after a release management, a build is automatically deployed, then it sets the "lock indefinitely" which sets the lock icon. Since we are continuously deploying, we maintain a large number of builds and the definition of build definition overrides. That's why I have to go from time to time and have to highlight all the previous builds and have to cancel the indefinite period. Because we are not deploying the last deity with the release management (we are unfortunately not allowed), we need to maintain all of these deities. Is there a way to change release management, so that it does not set to retain indefinitely? Update: Since it is currently

c# - XAML StackPanel inner items size problems -

itemprop = "text"> I have this XAML code: StackPanel orientation = "horizontal" margin = "0" & ​​gt; & Lt; ScrollViewer VerticalScrollBarVisibility = "Auto" & gt; & Lt; StackPanel x: name = "Miniaturas" orientation = "vertical" MinWidth = "100" width = "auto" Grid.Column = "0" height = "auto" ScrollViewer.CanContentScroll = "this is true" & gt; & Lt; / StackPanel & gt; & Lt; / ScrollViewer & gt; & Lt; Grid margin = "1" & gt; & Lt; WindowsFormsHost x: name = "VistaPrevia" width = "auto" /> & Lt; / Grid & gt; & Lt; / StackPanel & gt; What I am trying to do is to simulate two columns. Why? Because WindowsFormsHost can not be deposited in ColumnDefinition it throws this error: Value type "WindowsFormHost" not added to a dictionary Usually I do this with

java - Determining whether string complies with ANTLR4 grammar -

How can I test a string against my grammar to see if it is valid (i.e., an error Is not found, and there is no error) recovery is necessary)? I also tried, but I still get the message Line 1: 2 token recognition error: 'x' / p> < P> On the console so I have a way to ensure that the results of all errors are exceptions, or there is a way to validate the input that does not rely on exceptions. Edit: what you are seeing is a laser error, the parser is not the error of your laser Due to the failure to match an input letter by adding the following as the last rule, you must update Lexer unenforceable to make sure. This will give the parser (reporting, recovery, etc.) to handle wrong characters. ERR_CHAR:. ; In addition to this, you need to perform the general steps below that apply to configuring parser for simple string recognition. You two things to work properly for this: First of all, disable the default error reporting mechanism. parser.r

java - Updating GUI thread from another thread -

इस सवाल का पहले से ही एक उत्तर है: < / P> 1 उत्तर मैं थोड़ा भ्रमित हूँ जावा में बहु थ्रेडिंग के साथ, मेरे पास एक GUI है जिसके लिए मैंने एक थ्रेड बनाया है और एक अन्य प्रोजेक्ट जो एक सर्वर के रूप में कार्य करता है और अन्य डेटा स्रोतों से डेटा प्राप्त करने के लिए उपयोग किया जाता है जो अलग थ्रेड पर है सर्वर का थ्रेड GUI थ्रेड पर एक दृश्य में एक विधि को कॉल करता है और एक स्थिति अपडेट करता है, हालांकि जीयूआई अद्यतन नहीं करता है। मैं इस वास्तुकला को सही ढंग से कैसे सेटअप कर सकता हूं ये है कि मेरे पास क्या है: सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {// कनेक्शन रननाबल r2 = नया रननाबल () {@Override सार्वजनिक शून्य चला () {App.connectToServer () ; }}; // मुख्य विंडो लॉन्च करें रननाबल आर 1 = नया रननाबल () {@ ओवरराइड पब्लिक वायड रन () {// इंस्टाल थीम वेबलुक एंडफील इन्स्टॉल (); // मुख्य विंडो बूटवंडो शुरू करता है myMainWindow = नया बूटविंडो (); }}; थ्रेड thr1 = नया थ्रेड (r1); सूत्र थ्रेड = नया थ्रेड (आर 2); thr1.start (); thr2.start (); } // सर्वर कनेक्शन निजी स्थिर

Jquery Countdown - how to make this code work? [Edited] -

I was looking for an easy jquery countdown code, and found a fixed website that was using the following code : var endtime = new date ("10/08/2014 01:00 pm"); $ ('# Time'). Countdown ({serverSync: function () {new date ("10/08/2014 08:33 am");}, till: endtime, layout: '{hn} {hl}, {mn} {ml}, {SI} {SL} ', NXPREE: reloaded page, XPRecipitate:' it's and s'!); HTML: Time remaining: & lt; Span id = "time" class = "hasCountdown" & gt; & Lt; / Span & gt; But it does not work on it, so I think some things are missing, as I did not take the code from the tutorial but straightened it from that website. How to do this work? (Or any such form if it can be extended) / P> In that website, the actual HTML was showing this code that was switching: & lt; Span id = "time" class = "hasCountdown" & gt; 4 hours, 0 minutes, 57 seconds & lt; / Span & gt; Personally,

dom tree vs. xslt processor tree - what is the difference? -

Since DOM is represented by a tree of XML and XSLT processors, using the paste structure as their input, I think What was the difference between the structure of DOM and tree of an XSLT processor? And how can XSLT processor like Saxon be implemented on SX? Does this mean that it generates input tree structure from SAX reports? Is not it a bit cumbersome? Why do some things that do not already provide a tree structure? Since DOM is a tree representing XML, When you can use DOM with XML, then DOM is often represented by a tree of HTML and XSLT processors use the tree structure as their input, < / P> When I use saxon on the command line, then I get it a file. It is a sequence of bytes, the tree is not something to change this sequence into a tree. I was wondering what is the difference between structure of DOM and XSLT processor tree? List all the differences will be very long, but some major topics: they have a public interface, trees used by the XSLT proc

sql - Display the records that were updated C# -

I have a simple update statement that updates the location where it is a fixed location. I am currently making a small desktop app where I press a button, it will be updated and then display updated records. How can I return the ID of those records which were updated and then those records were shown in C # SqlCommand CMD = New SQL Commands ("Delete Setset Location = 'LA' where deals in deal (deals where deals with location = 'LA') and locationid = 'NY'" Who) ; Int: Rows Affected = cmd.ExecuteNonQuery (); It only tells me that the number of records was not updated which did not update the ID, so I can query them to display. help? For example if 3 records were updated with ID: 1102, 1105, 111 then their number based on ID should be displayed. However, I'm sure how can I do this. How do I loop through updated results? I use one and DataReader : < Pre> string sql = @ "update c set c.location = 'LA' Output INSER

html - 960px container but full width header/footer up/under the full screen bg image -

Image
I am using a Drupal website and Vegas full screen BG. I want to receive the following: But I have a problem with the footer: I It should always appear beneath the background image (so you have to scroll down to see the footer) Now it's coming to the background image. Besides, I like the main menu and footer for the full width and as the container Do not want 960px. But I can not get these 2 containers to 'break out' I have now: #footer {status: full; Bottom: 0; Width: 100%; Height: 100px; Background color: # 202020; } # Primary-menu bar {status: Completed; Width: 100%; Height: 60px; Padding: 0; Margin: 0; Background color: RGBA (255, 255, 255,0.70); Padding-top: 10px; } Normally it does something like this, but I'm struggling to get this right ... Any advice or solution? You have not displayed any HTML HTML If the footer itself appears only when you scroll down, then you should have any type of cover for both your header and your content element.

node.js - MongoDB RegExp inconsistency -

यहां टेस्ट केस है: db.test.insert ({name: "john "}); Db.test.insert ({name: "donny"}); Db.test.insert ({name: "lenny"}); db.test.find ({name: {$ regex: / ^ ((?! एनएन) [\ s \ S]) * $ /}}); // काम ठीक है, केवल जॉन db.test.find लौटाता है ({name: {$ regex: new RegExp ("/ ^ ((?! nn) [\ s \ s]) * $ /")}}); // कुछ भी रिटर्न नहीं देता रिजक्स को उन वस्तुओं को वापस करना माना जाता है जो कि "एनएन" को कंटैसिंग नहीं कर रहे हैं, लेकिन यह RegExp ऑब्जेक्ट का उपयोग करते समय काम नहीं करता है। इसमें शामिल न करें new RegExp का उपयोग करते समय अग्रणी और पीछे वाले / वर्ण। उनको केवल जावास्क्रिप्ट में शाब्दिक अंकन के साथ प्रयोग किया जाता है आपको अपने बैकस्लैश स्ट्रिंग में से बचने की भी आवश्यकता है। db.test.find ({name: {$ regex: new RegExp ("^ ((?! nn) [\\ s \ \ एस]) * $ ")}});

"eglSurfaceAttrib not implemented" when running android apps on android studio emulator -

This is my first post. I've downloaded Android studio recently and have trouble with some emulators every time I run an application (even though I tried to run the initial HelloWall app after the "Create New Project" wizard Ho) I get the following error message in lockback: 10-08 11: 36: 53,600 850-850 / app. Shellogan w / egl_mulation ?? The Egglifffus attributable is not applicable It works fine in the emulator, but this black text appears in the lockcat and I have to understand what is going on, if this is a problem, and if so, So how do I fix this? Thanks in advance for any feedback. Mike Just for those people who have such a problem I thought Was that I should post my final solution. Unfortunately after trying all about, I ended up reinstalling a full Windows. I do not know what was the problem but if he solved it, do not even leave the new ones!

excel - VBA Lookup value, return all unique values associated with the lookup value (in userform textbox) -

Image
What I'm trying to do is use VBA to get the boundaries of Vlookup, and create a userform Which is a customer number. I have a column full of duplicate value (customer number), then there are unique values ​​(customer events) in the column next to it. Here is a small part of my table: 123 calls made to Costman Cost cost 123 calls 345 complaints 345 345 received refund accepted I created a user that allows our employees to search through column A, and gives what happens in column B. I did it with vLookup, but everyone knows the limitations of VLcup, because it will only return the first value in B which will run it. Order Search for me to display five customer event hits at the top for my user textbox Needed: Ultimately it can be run through SQL tables that I do not have access to write, so changing data is not an option. My code: x = cnum.Value textbox1.Value = Application.WorksheetFunction.VLookup (X, Range ("A2: B 5 "), 2, Incorrect) You can us

How to deal with file names which contain spaces in Ruby(In Git Bash) -

I have a problem with running some GIT commands, where there are white spaces in the file names with Ruby, like : aaa = "xxxxxxx / xxxx / bom \ explosion.txt" git update-index --assume-unchanged - # {aaa} ` Or aaa = "xxxxxxx / xxxx / bom explosion.txt". Shelvescape GIT Update-Index - Asymmetric - # {AAA} ` I have either tried to avoid the above and it is run in the GIT bash. , But none of them works with the error message: Fatal: The 'xxxxxxx / xxxx / bom' index Someone has some Have ideas? You can ignore a great extent if you specify parameters individually, then concerns Avoid: System ("git", "update-index", "--assume-unchanged", "-", aaa) It passes without arguments straight to the debate, without explanation. This is the most reliable way to pass them correctly.

ios - How to connect to an online database from my iPhone app? -

I want to create a very simple app that connects to a database and receives some questions and answers for a quiz is. What is the easiest way to do this? Is the way to go is parse or is it possible that a SQLite 3 database should be used, which is hosted online? I want to keep it as simple as possible. The easiest way would be to create a second API in any server-side language such as PHP and your online database Use this after saying, this will mean that you will need to host it somewhere online. The best option is to use the traditional database if you do not want to spend on hosting on a server and write server-side scripts will be used to parse, in which the options to save data in offline mode are your In the app and after that you can sync it with the online database. About Online being sqlite3, this will not be a suitable option. I suggest that you go to parse it is easy to learn.

java - JDBC Connection error to mysql Access Denied for user @ -

I have already checked other stack overflow and web links: MySQL is a Linux Is the server Linux uslx600 2.6.32-358.14.1.el6.x86_64 # 1 SMP Mon Its IP is 1.2.3.4 < / Code> I can connect it to my laptop using MySQL Workbench. I can not attach the image due to stack overflow policy, but the dialog is as follows: Connection Method: TCP / IP Hostname: & lt; Server's host, hence 1.2.3.4 & gt; Port: 3306 & lt; This is the same port mentioned for JDBC connection & gt; Username: bug default schema: bug within that mysql I have [select user], current_user ()] , me User () I am trying to connect to a Linux server where MySQL is database. The following works, the user is the user himself, i.e. no "@%" or nothing: conn = DriverManager.getConnection ( "Jdbc: mysql: // localhost: 3306 / worm", user, password); The following also works: conn = DriverManager.getConnection ("jdbc: mysql: //127.0.0.1: 3306 / bug"

python - Selection of text in QTextBrowser -

I have QTextBrowser and when I select a part of the text, I need a status Selection and the end of the beginning. I do this with MousePressEvent and mouseReleaseEvent and it works, but the highlight selection (dark blue) is not visible. Why? So I can not see what I have chosen. I tried with the signal selectionChanged but the problem is that whenever I select I select the text and when I release the mouse and the end of the selection. Any suggestions? Thank you! Edit: I like this work: class MyBrowser (QTextBrowser): def __init __ (self, parent = none , textableAnnotate = none): Super (MyBrowser, self) .__ init __ (parent) self.textableAnnotate = textableAnnotate self.mousepress = 0 Self.mouserelease = 0 def mousePressEvent (self, mouseEvent): self.mousepress = self.cursorForPosition (MouseEvent.pos ()) Status () DEF mouseReleaseEvent (auto, mouseewent): self.mouseRelease = self.cursorForPosition (mouseEvent.pos ()). Status () I need the status of the click

xaml - How can i change wpf listview selected Item style same as selected item in windows 8 store application? -

I want to change the listview of the selected item style in wpf as shown in my Windows 8 Store app, Can be used for reference. Purple border and tick marks in the top right corner. More than likely, you will need to modify the actual control template for the list view.

html - How can I detect if an element had it's css changed by jquery? -

First of all, tell me what I'm trying to do. I have a line from poetry and need to click on the word "stressed". When you click on a word, jQuery does bold. I have a submit button and I should do something if you have the correct word bold, when the button is clicked. I have detected that there is a focus on the item, or if the item has been clicked but nothing is working. $ ("# w4"). (IEng.et ('click'), function () {$ (this). Data ('clicked', true);}); $ ('# W1'). (IEng.et ('click'), function () {$ (this) .Css ("font-weight", "bold"); $ ('# w2') CSS ("font-weight", "normal" $ ('# W3'); $ ('font-weight', 'normal'); $ ('# w4'). CSS ("font-weight", "normal"); $ ('# w5 '). CSS ("font-weight", "normal");}); $ ('# W2') (IEng.et ('click'), function () {$ (this) .Css ("font-weight&quo

java - How to deal with GlazedLists's PluggableList requirement for shared publisher and lock -

I have just started using the glazed list in a Java project, which uses large-scale beansbending (MVVM pattern) Does. PluggableList allows me to bind a source list into a table, and then change the source list on the runtime. To do this, each source list must share the same list event publisher and read-light lock, since the pluggable list needs to share a lock and public with its source. I can make it a static publisher and lock it in my class which is the owner of potential source lists, using the static values, to make the list using the class as a pluggable list, as shown in the pseudo code Is: public class ModelClass {last fixed EventList list = new BasicEventList (); Last Fixed ListEventPublisher LISTEVENTPUBLISHER = LIST.getPublisher (); Last Fixed ReadWriteLock READWRITELOCK = LIST.getReadWriteLock (); Final EventList sourceList = New Basic Item List (LISTEVENTPUBLISHER, READWRITELOCK); } Public class UiControllerClass {Final PluggableList pluggableList = new plug-in l

php - enable user to start form the last saved page -

I have 5 pages with a PHP form and I give users the possibility to start filling the form with my last saved Page you would like (Data should be saved in Db per page and if for any reason the user could not complete all the pages, he would be able to re-fill all the pages again). This is the stage I am trying to: Save user data per page, so that when he clicks on the "Save and Continue" button at the end of the page, Then all data will be saved in DB (this part is fine, I have already taken this step) When the user enters successfully, Check whether the user has already entered some data (each page I have some mandatory questions, so I check whether they are empty in DB, for example: "q6" field is required in page 1 and if this field (column q6) in db is not empty " "This means that the user has already responded to the first page and should be able to start from the second page. Then I will check another mandatory field in the next page such a

c# - Returning Struct from Class -

Image
So I'm trying to call a function in another class called DMLB. If I have to return a list of strokes, then how can I get it back to my main form? For example: Structure: Public structure folder {Public at FID; The name of the public string; Public int type; Public Ink Total Messages; } Class Members Fall: Public list & lt; Folder & gt; GetFolders (of the string session) Class members call from the main CC: List Error: This error says that my list of structure folders defined in my main.cs can not be changed from the class to the configuration folder list. How can I make this conversion? To be fully qualified to include either folder namespace Type in, or in the aliases to use the aliases, for each of the names that contain two folders type, and use the nickname in your code.

c# - Converters, sending a String and returning a int -

I have this converter that returns the number of the width of textbox according to the number of characters (Value value, type target type, object parameter, cultureinfo culture) {string}: {valueConversion (typef (string), typef (int)) public class textdown: g = (string) value; Return g.Length * 10; } Public Object Convertback (type object type, type target type, object parameter, cultureinfo culture) {return tap; In the definition of a grid in the column, I tried to use this converter, but received an error in which the IVALueConverter does not support converting with TypeConverter string. I know that control: textbox hailer. Label is a string: & lt; Column Definition Width = "{TemplateBinding Controls: TextboxHelper.Label, Converter = ToWidth}" /> Why did this happen and what is the solution? I just change this line: & lt; Column Definition Width = "{TemplateBinding Controls: TextboxHelper.Label, Converter = ToWidth}" /> to

haskell - What is the general case of QuickCheck's promote function? -

QuickCheck's to promote function, such as with a structure for a fun physician What is the term work of the form: Promote :: (a -> fb) - & gt; F (A -> B) (This is the inverse of the flip $ FMAP (flip ($)): F (A -> B) - & Gt; (A -> FB) ). Are there any factors with any operator other than (->> r and id )? (I'm sure there should be). Googling 'quickcheck promotion' only triggers QuickCheck documentation, which does not promote in any general context AFAICS ; No result is produced as a result of 'Quick check boost' for search. So far I have a < f = identification to promote in both F and G then the pair-thrower HT = (Feet , GT also does If there is to promote in both F and G then HT = F (GT) also does If there is a booster in in the F, and any type of forfformer HT = GT - & gt; Very useful, unless you only need suppliers. Now, using these four constructs, we can find ma

java - NetBeans - How to show all Swing components in a JFrame? -

I am creating a swing GUI with NetBeans, using the builtin form maker, which works quite well. However, if I accidentally put a wrong panel on a form, then I have no way to remove it, or choose it again. Similarly, if I want a button to open a new window, say, a file selector, I do not know how to add that file selector to the form, but it does not appear until then As long as the button was not pressed. Does anyone have any experience with NetBeans Swing Form Builder? It seems like a normal thing to do, but I do not think how to do it. Am I missing something? A Netbeans user! Yes, the bottom left corner should have a Navigator window. There it displays all the components of the form. I'm not even sure what you mean by a file selector, but to open a new window, i.e. another geform, you create another form class. Then you form and visit that form. To say that you have a form main program and helpMenu main program Public key programs () {InitComponents ();

php - Use fork instead of the original repository -

On several occasions, I have made a fork from some repositories to fix the bug or add new features as a contribution In this case, when I do the developers behind the PR's master repository, sometimes it takes days to merge and test that all are well and in most of the time I am able to change these changes or at the time when I am Performing while performing. This is the case for SpBowerBundle , which make everything fork and fix some things. I have done PR but I can not wait for the developer to test and merge. The only solution is to point out composer.json for the work I did, but not how. This is the same and I have made it. Also here is my composer.json content: {"name": "new project", "license": "mit", "type": "project "" "": "New project", "autoload": {"psr-4": {"": "src /"}}, "requirement": {"php": "& gt; =

c# - Customizing Properties -

I am creating some custom controls that are obtained from base custom controls that contain the following properties: public color border collar {receive BorderColor; } Set {if (! FollowsScheme) BorderColor = value; }} Public colors [] FillColors {Back {FillColors; } Set {if (! FollowsScheme) FillColors = value; }} Public Child FoloseShemem {Receive; Set; } I am attempting to do this if the user is false for set-up phalosacci, then only they can edit the border collar and fillers properties if they are true, if they are true Can not edit properties, in that code you can see what I tried to do and thought it would work, but when I create a solution and add control to a form, then visual studio Micro crashes. How should I do this? I would explain better, if Folsheme is set to true, then on the OnPent method the code will attract control on the basis of the border and fill collars, which are filled with a stable range. If the colors for the subject are set to false, then the m

sql - Executing different queries depending on case statement -

I have a column called 'caller', which contains several values ​​i when the value of this column is 'major' , Then I want to execute the following: choose * from students *; And when there is something else, I want to execute: Choose from students differently; I used the case statement in the past to return a value. How can they be made to return a complete query? Alternatively, how can this problem be addressed without any problem? Any help is appreciated. I was giving a try on this. Basically, it gives you all the results for the Major and then adds other results. Select students where the solution = 'Major' UNION's selection body * Where the students will get the solution & lt; & Gt; 'Major'

I am trying to search my java multidimensional array from top left to bottom right going in a vertical pattern. What is wrong with the code I have? -

I want to find my multi-dimensional array that has a 6x8 grid from top to bottom in vertical pattern for one word, But I can not understand what is wrong in my code Can someone tell me what I am doing? public static string search topobotom (four [] [] board, string word) {char [] letters = word.toCharArray (); For (int i = 0; i & lt; = board [i]. Length; i ++) {for (int j = 0; j & lt; = board.length; j ++) {boolean found = true ; (Int k = 0; k & lt; letters.length; k ++) {if ((i + k> board [j]. Length) [[letters [k]! = Board [j] [I + k])) {found = false; break; }} If (found) {return "string" + word + "row =" + + "col =" + j; }}} Return "string" + word + "did not get"; } if ((i + k> board [j] Length] [(letter [of]! = Board [j] [i + of]) << code> If i + k is equal to board [ J]. Since the index goes from 0 to .length - 1 instead of & gt; & gt; = . For the same reason, and ; re

java - Woodstox Stax2 XML W3C Schema validation - unique constraint issue -

I am trying to improve the XML validation performance against the XSD schema, in particular the unique restrictions of XSD In relation, and decided to try to do I follow a great deal that I can convert XMLValidationSchema.SCHEMA_ID_DTD to XMLValidationSchema.SCHEMA_ID_W3C_SCHEMA . Problems with the problem I am however, the Woodstock Verifier also receives an XML valid, even if XML violates a unique barrier. Switching to your "Junk" The statutory constraint violation is detected properly. Also, I can confirm that Woodstock legalization does something, because, I can say 'invalid XML', for example, for example, I have a negative number where a positive XSD It is expected - XML ​​is required. It may be that the devices I am using so far are okay with regard to checking the specificity on ineligible elements, while not Woodstock? This is the only idea that comes to my mind ... In addition to this, anyone in the situation of confirming that Woodstock Xerces

postgresql - wso2 client-checkin restore -

I am using the WSO2 rule registry v 4.6.0 and I want to migrate the structure to the H2 backed test instance Trying Postgres supported production frequency (different VM for web server and database) using client checkin. I have successfully tested the registry with the example of H2, but I am struggling to check it in the interpersonal system. I took part in the test example ./http: // localhost with checkin-client.sh: 9443 / registry -u admin -p admin -f / To create a dump I executed on the production system ./checkin-client.sh ci https : // arc-gov: 9443 / registry -u administrator -p admin -f /../registry.dump and obtain the following error below. (And yes, I know that password is the same, when I'll change it to work!). Here the URL belongs to the WSO2 web server, which is not a postgrade database. Any help would be greatly appreciated. Error in Restoring Path - Make sure that the registry is up and running or username, password is correct! And check th

linux - Lazy loading procedure -

I would like to know how this works properly, let's say we have the following code snippet: < Pre> 0000000000400400 & lt; Printf @ plt-0x10>: 400400: FF35 02 C20 00 Pushak 0x200c02 (% RIP) # 601008 & lt; _GLOBAL_OFFSET_TABLE_ + 0x8 & gt; 400406: FF 25 04 C 20 00 jmpq * 0x200c04 (% RIP) # 601010 & lt; _GLOBAL_OFFSET_TABLE_ + 0x10 & gt; 40040c: 0f 1f 40 00 NOPL 0x0 (% racks) 0000000000400410 & lt; Printf @ plt>: 400410: FF 25 02 C 20 00 jmpq * 0x200c02 (% RIP) # 601018 & lt; _GLOBAL_OFFSET_TABLE_ + 0x18 & gt; 400416: 68 00 00 Pushak $ 0x0 40041b: E 9 EFFFFF JFP 400400 & lt; _init + 0x20 & gt; .... 40053b: E8DFF FF FF Caller 400410 & lt; Printf @ plt & gt; First of all the printf stub (printf @ plt) is called, then the address is located at 0x601018 (within the got) to jump to that address We say that for the first time called printf: we find that the value will be 0x400416, which says the next instruction, okay?

c++ - Trying to sum two compile time tuple integer sequences -

If you are keeping track of the history of my question, then I will end up in a nightmare for a one-dimensional analysis library Updating Macro and learning C ++ 11, variadic templates, and meta programming and functional programming paradigms. For my life, this stuff is still magic. Nevertheless, I have topless of exponential constant that define physical units. template & lt; int ... I & gt; Make_dimension = std :: tuple & lt; Using the std :: ratio, & lt; I & gt; ... & gt ;; Scalar_dimension = make_adimension & lt; Using 0, 0, 0, 0, 0, 0, 0>; Length_admination = making_desk using & lt; 1, 0, 0, 0, 0, 0, 0>; Using time_evolution = counter; 0, 0, 1, 0, 0, 0, 0>; This is the library (part) that models SI units. You can only multiply in contrast to units, you can add units and scalar as addition to it. These libraries are in Dindi, causing them to compile time errors if you combine units inappropriately in it & gt; There are 400 u

python - Unable to filter values in a DataFrame. NaN's in the output -

मेरे पास निम्न एक-स्तंभ DataFrame , df : < / p> टाइमस्टैम्प मान 2014-10-06 18: 00: 37.400000-04: 00 0.000000 2014-10-06 18: 00: 39.600000-04: 00 0.000000 2014-10-06 18:00: 41.800000-04: 00 2.683493 2014-10-06 18: 00: 44-04: 00 1.199321 जब मैं df [df> 0] करता हूं : टाइमस्टैम्प वैल्यू 2014-10-06 18: 00: 37.400000-04: 00 नैन 2014-10-06 18: 00: 39.600000-04: 00 नैन 2014-10-06 18: 00: 41.800000-04: 00 2.683493 2014-10-06 18: 00: 44-04: 00 1.1 99 321 जबकि मुझे केवल यह अपेक्षा की जाती थी: < कोड> टाइमस्टैंप मान 2014-10-06 18: 00: 41.800000-04: 00 2.683493 2014-10-06 18: 00: 44-04: 00 1.1 99 321 क्या यह अपेक्षित है? मुझे पता है कि मैं इस आउटपुट पर dropna () आवेदन कर सकता हूं, लेकिन क्या इससे पहले ही ऐसा मान नहीं है जिसे मैं पूछता हूं? (यह आम तौर पर dropna पर कॉल करने वाले डेटाफ्रेम पर काम करता है) एसएस [एसएस ['वैल्यू']> 0] को आप जिस आउटपुट की तलाश कर रहे हैं, उसका उत्पादन करना चाहिए। पता नहीं क्यों लेकिन बिना एनएएन के आउटपुट को आपको

caching - GridGain cache data compression factor (how to find out ?) -

I want to see how much efficient data storage is with Gridgen's cache. To wit. If I load 1TB data in the cache then does it take 1TB space? Most data is being repeated, some fields are the same, that is Browser = "chrome" for example, so I hope to see how Gridgen uses this recurrence I have looked around and found it but it does not really give solid figures, but it Indicates that the less is coming, because it notes that there is a 'lack of compression' - but I have to see that it means that the data of X TB went into XTB of RAM and I have to understand that I Do it Area I can see (probably Ggvisor?) The goal: Look at the cluster and see that I have Wi GB available RAM. Load the data in the cache via grid data loader. Look at the cluster and see that I have Y available GB. Compression can be calculated through X: (Y - Y ') Thanks external ability objects, primitive types or strings, , Then the format will be quite compact. You can also try to

r - Use Factor Vector to Lookup Value in Data Frame -

I have a vector & gt; Head (GBMPD) [1] Full oval completed completed I also have a data frame & gt; Head (gbmPredProb) compilation complete dead less 1 0,04535981 0,8639282 0,07698963 0,01372232 2 0,19031127 0,6680874 0,11708416 0,02451713 3 025004446 0,6789679 0,04827067 0,02271702 4, 09625138 07877128 0,09906595 0,01696983 5,115696875 0,7617585 0,04441733 0,03685539 6,14157307 0,7690410 0,06057754 0,02880836 I'm in gbmPredProb To view values, you want to create a vector by using the levels in gbmPred: 0.8639282 0.1170841 0.6789679 0.7877128 0.7617585 0.02880836 How to do this in any R? Appreciate the help. Edit *** Sorry copy and paste error. The first value is the second value in the .86 matches. The 11 matches DAD is to obtain the value (compressed, etc.) through the value of the loop through value (GPMFED), then GBMPDPRB data frame with the same name as the value of the column with the index of the vector. So, the first value is complete. View

Running Test file from exercism C# -

I'm having trouble running a test file. I can not see what I should do differently. This is the first Practice Project for C # I think I have solved the problem, but I have not got a Test file to run successfully in Microsoft Visual Studio. The goal is to create a function to determine that the year is a leap year. I want to use the class year in this file below, in my project it is class 1c The name given is the year with the file: using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; System usage threading. Task; Namespace Exercises {Public Class Year {Public Bull Isleip (Int. Word) (if (Year% 4 == 0) If (Year% 100 == 0) If (Year% 400 == 0) is true; Second false return; And the truth come back; Second false return;}}} The test file is down when I try to run it, then I have the 'current' reference for each test function given below The 'name' year does not exist. Using NUnit.Framework; Exercise Experiment; STEPEC

javascript - Unexpected behavoiur of define of requirejs -

This code is working define (['jquery', 'underscore ',' Backbone '], function ($, _, backbone, home_typeplate) {var Homeview = backbone view.extension ({render: function} {warning (' ABCD ');}}); homeview;};); This code is not working define (['jquery', 'underscore', 'backbone', 'text! Module / home / Home_teletlet.html '], function ($, _, backbone, home_tyleplatform) {var Homeview = Backbone view.extension ({render: function} {alert (' ABCD ');}}); Return homeview;}); webroot / modules / home / home_template.html Like my directory structure, what could be the problem? Thanks The problem can occur in two possible places: 1) The error in the path (you can check in firebug or any other tool in the network tab, check 404 errors) This template or some other scripts can actually be placed in the wrong folder. 2) Error in template syntax - In case of underscore, make sure your template is

c++ - SCons not finding "stdafx.hpp" when using nested directories -

I have a C ++ project, and I use Visual Studio Solutions to in SCons I'm transitioning for build, so Linux users can also make their code. This is my first opportunity in SCONS, and it is working very well with simple projects, but for this project my The nearest nested directory structure is: main / sub 1 / *. CPP all 2 / *. CPP all 3 / *. CPP file 1.cpp file2.cpp and I have the following SConstruct file: env = environment () env ['PCHSTOP'] = 'stdafx.hpp' env ['pcH'] = NV.pch ('STDAPXPPP') [0] NVprogram ('Program', ['File 1 CPP', 'File 2 CPP', 'All 1 / file1 cpp ',' all 2 /file1.cpp ',' sub3 / file1.cpp ']) running from the command line scons the following error Causes: Fatal error C1083: File can not be included: 'stdafx.hpp': No such file or no The directory is not Obviously, this is an MSVC error but it should be resolved with the scan, I am not sure how to ...

python - Handling SIGINT (ctrl+c) in script but not interpreter? -

I am working on a project which touches many long-running workers in the form of procedures. Child labor To capture and clean SIGNT based on its research - this is considered to be a best practice, and works as expected when the script ends. I am actively developing this project, which means that I am regularly testing the transformation in interpreter when I am working in an interpreter, then I am currently writing written text To clean, press CTRL + C and get a new signal. Unfortunately, if any subprocess is in progress, then I do this, SIGINT is sent to that worker, due to which it can be terminated. Is there no solution to this problem "Never hit CTR + C in your interpreter"? On debugging One option is to set one variable (eg environment variable, command line option).

regex - Powershell Find String Between Characters and Replace -

Powershell स्क्रिप्ट में, हैशटेबल में व्यक्तिगत जानकारी है I इस हैशटेबल का उपयोग करना {प्रथम = "जेम्स", अंतिम = "ब्राउन", फोन = "12345" ...} , मैं टेम्प्लेट टेक्स्ट फ़ाइल में स्ट्रिंग्स को बदलना चाहता हूं। प्रत्येक स्ट्रिंग के लिए @key @ स्वरूप, मैं इस स्ट्रिंग को मान से बदलना चाहता हूं जो कि हैशटेबल में कुंजी के अनुरूप होता है यहां एक नमूना इनपुट और आउटपुट है: input.txt मेरा पहला नाम @ पहले @ और अंतिम नाम @ अंतिम @ है मुझे @ फोन @ पर कॉल करें> आउटपुट.txt मेरा पहला नाम जेम्स है और अंतिम नाम ब्राउन है I मुझे 12345 पर कॉल करें क्या आप मुझे सलाह दे सकते हैं "@" के बीच की "कुंजी" स्ट्रिंग कैसे लौटाए, ताकि मैं स्ट्रिंग प्रतिस्थापन फ़ंक्शन के लिए उनका मान पा सकूं? इस समस्या के लिए कोई अन्य विचार का स्वागत किया है आप यह शुद्ध regex के साथ कर सकते हैं, लेकिन पठनीयता के लिए, मैं इसे जितना अधिक करना चाहता हूं regex से कोड: $ tmpl = 'मेरा पहला नाम @ पहले @ है और अंतिम नाम @ अंतिम @ है $ @ = $ $ = $ {@ $

linux - Using find to exclude a directory and tar up everything else in a directory -

मैं एक निर्देशिका में निम्नलिखित है: dir1 dir2 file1 File2 मैं dir1 को छोड़कर सब कुछ छोड़ना चाहता हूं जब मैं करता हूँ: find -पैथ '* dir1 *' -prune -o-print- मुझे आउटपुट में डीर 1 (अपेक्षित) नहीं दिख रहा लेकिन जब मैं करता हूँ: < / P> ढूंढें -पथ '* dir1 *' -prune -o -exec tar -czvf documents.tgz '{}' \ + मैं देख रहा हूँ कि dir1 भी documents.tgz में tarred हो जाता है। क्यों? "post-text" itemprop = "text"> यदि "खोज" का उपयोग करना अनिवार्य आवश्यकता नहीं है, तो मान लें कि "main_dir" मूल निर्देशिका नाम के रूप में है । tar --exclude = main_dir / dir1-cvzf tarred_file.gz मुख्य_दिर /

python - How to encode Chinese character as 'gbk' in json, to format a url request parameter String? -

I want to dump a diction as a Jason string in which some Chinese characters are included, and its Along with the url request parameter to be formatted. / P> Here's my Pyro code: import httplib import simplejson json import urllib d = {"key": "æ¸ ?? æμ ·", "num ": 1} jsonStr = json.dumps (d, encoding = 'GBK') url_encode = urllib.quote_plus (jsonStr) conn = httplib.HTTPConnection (" localhost ", port = 8885) conn.request (" GET "," / " ? Json = "+ Url_encode) res = conn.getresponse () What do I expect from the request string: get /? Json =% 7b% 22num% 22% 3A + 1% 2C +% 22key% 22% 3A +% 22% C9% CF% BA% A3% 22% 7D -------- ---- | V "% C 9% CF% BA% A3" represent "游? Æμ" in the format of 'GBK' in the URL. But what I found is: get ? Json =% 7B% 22num% 22% 3A + 1% 2C +% 22key% 22% 3A +% 22% 5Cu6d93% 5Cu5a43% 5Cu6363% 22% 7D --------------- --------- | V% 5Cu6d93% 5Cu

javascript - AngularJS ng-route how to make http request on resolve -

I have a simple template with input and an anchor link, which will load another template by pressing it. I want to bring this second template information through http request. I am using redirect ng-root on the template of the results by search template and by path / search / title by default: I have the resolution to request the results before loading the template () I am trying to use () The problem I am experiencing is that when I add a resolution, the controller initially stops (I think it will load after that Promise came back Land). This means that variables like search URLs are not started and the $ root parameters are empty when I print them on the controller search function. How should I do this? I am also not sure about the correct syntax for resolution. Is the first search a field variable? Resolution: {search: searchController.search} For the lazy people checking on the planker, here's the relevant code: Routing .config (['$ routeProvider'

css - Unable to set style for html in the actual style sheet -

I am trying to use the new CSS3 functionality to create a background of your page for the scales with the browser window I am This style works fine when I include it directly in my HTML doctor, but it is ugly and hidden in my workspace, whatever I want to do. I have tried to include it in my stylesheet, but it does not just appear; the other elements of the CSS sheet work fine Can anyone tell me that I What is wrong? Relevant HTML & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en-US" class = "no-js" style = "background: url (property / placeholder_one.jpg) No repeat center center fixed; - webkit-background-size: cover; -o-background - Size: Cover; Background-Size: Cover; "& Gt; & Lt; Head class & gt; & Lt ;! ASAP for change - & gt; & Lt; Title & gt; #### & lt; / Title & gt; & Lt; Link rel = "icon" href = "property / logo_1.co.uk" & gt; & Lt; Meta name = "auth

Google App Engine Java not receiving email -

मैंने यहाँ पर ट्यूटोरियल का पालन किया: इसलिए मैंने सभी इनबाउंड-सेवाओं एक हेन्डलर सर्वलेट (auth बाध्यता के साथ) को सेट अप करें ने जांच की कि सब कुछ स्थानीय स्तर पर काम करता है: http: // localhost: 8888 / _ah / admin / inboundmail लेकिन जब मैं तैनात करते हैं, तो मैं अपने होस्ट को ईमेल नहीं भेज सकता। यह क्यों है? नोट: मैं एक अलग संस्करण ( myname-dot-appengineproject ) पर तैनात कर रहा हूं, इसलिए मेरे सभी ईमेल इस प्रकार हैं: something @ myname -डॉट-appengineproject.appspotmail.com लेकिन इससे कोई फर्क नहीं पड़ेगा, है ना? (क्या मुझे डिफ़ॉल्ट vrsion पर तैनात करना है?) मेरे पास बिलिंग सक्षम है (क्या मुझे कुछ अतिरिक्त सेटिंग्स चालू करना पड़ता है? मुझे उन सेटिंग्स को नहीं मिल रहा है जो इंगित करता है कि ईमेल पर भेजा जाता है या नहीं।) ओह वाह जो मंद हो गया था सेवा घोषणा वास्तव में ऐपेंजिन-वेब। Xml , NOT web.xml & lt; इनबाउंड-सेवाओं & gt; में है। & LT; सेवा & gt; मेल & lt; / सेवा & gt; & Lt; / भीतर का सेवाओं & gt; निश्चित रूप स

Regex for string validation -

I need a regex to confirm the string, which is NBTAAA-PREM_001 and NBTAAA_001 NBTAAA can be part number or alpha or alphanumeric, optionally defined string -PREM (hyphen PREM) , Then underscore the _ after three alphanumeric characters. For this "NBTAAA_001", regex is required without 'PREM' (hyphen PREM). I have written the code: public static zero main (string [] args) {list & lt; String & gt; Input = new arrelist & lt; String & gt; (); Input.add ("NBTAAA-PRIM_001"); input.add ("NBTAAA_001"); For (string SSN: input) {// string SSN = "NBTAAA-PRIM_001"; If (ssn.indexOf ("-")! = -1) {int PRIMbeginIndex = ssn.indexOf ("-") + 1; Int PRIMEndIndex = PRIMbeginIndex + 4; String D = ssn.substring (PRIMbeginIndex, PRIMEndIndex); If (d.equalsIgnoreCase ("PRIM") {if (ssn.matches ("^ ([A-Za-z0- 9] + (? =. *? \ BPRIM \ b) + _ [A-za-z 0 -9] {3}) $ ")) {System.out.println (&quo