Posts

Showing posts from March, 2015

c# - DataGrid cell edit Mode=TwoWay -

मेरे पास DataGrid जैसा नीचे दिया गया है & lt; DataGrid आइटमस्सोर्स = "{बाध्यकारी टेम्पलेट्स}" चुने हुए इटैम = "{बाइनिंग चुने हुए टेम्प्लेट, मोड = टूवे, अपडेटससोर्सट्रिगर = प्रॉपर्टी चेंंकित}" कैन्यूर्सरोर्ट कॉलम = "फॉल्स" & gt; & LT; DataGrid.Columns & gt; & Lt; DataGridTextColumn हेडर = "टेम्प्लेट" बाइंडिंग = "{बाध्यकारी पथ =।, मोड = दोवे, अपडेटसॉर्सट्रिगर = संपत्ति बदलते}" चौड़ाई = "*" / & gt; & LT; /DataGrid.Columns> & Lt; / डेटा ग्रिड & gt; प्रश्न में दो प्रॉपर्टी नीचे दी गई हैं निजी ऑब्ज़र्वबल कलेक्शन & lt; string & gt; _templates; सार्वजनिक पर्यवेक्षण कलेक्शन & lt; स्ट्रिंग & gt; टेम्पलेट {प्राप्त करें {रिटर्न _ टेम्पलेट्स; } सेट {यदि (_templates == मान) रिटर्न; _templates = value; RaisePropertyChanged ( "टेम्पलेट्स"); }} निजी स्ट्रिंग चुने गए चुने गए; सार्वजनिक स्ट्रिंग चयनितमेटलेट {प्राप्त करें {लौटें चुने गए चुने गए टेम्पलेट; } सेट {if (_s...

html - Fuelux, how to fix the width of a repeater column -

Is it possible to fix the width of a specific fuel UX repeater column? I'm trying to do this by using the css-nth selector: . Thread TAR thumbnail: nth-of-type (8), .tableable TBT TD: NT-OF-Type (8) {background: red; Width: 10px; Max-width: 10px; } The code above is correct in the above section, because the background of the 8th column is red, but only & lt; TD & gt; but not & lt; TH & gt; , and even then the width does not vary. How do I set a fixed width column? Thanks a lot for your help. Edit I sorted it in another way, just a container device min-width , so that it The column where the div div can fit into width and in fact it spreads all the columns. Not in the right way, but at least this works because I think the size of the column is set using JS and why it works just with CSS properties. Thanks anyway!

angularjs - Unable to navigate to a state -

I have defined an editing status / edit and when I click on Editing D1, it will not be root & lt; A ng-href = "# / Example / Edit" & gt; Translation D1 & lt; / A & gt; JS routerApp.config (function ($ state provider, $ urlRouterProvider) {$ urlRouterProvider.otherwise ('/ home'); $ stateProvider State ('home', {url: '/ home', templateUrl: 'instance-view.html', administrator: 'instanceListController'}) .state ('instance', {url: '/ instance', abstract: true, Template: '& lt; ui-view / & gt;'}) .state ('instance.detail', {url: '/: id', templateUrl: 'data-view.html', Controller: 'specDataListController'} ) .state ('Instance.edit', {url: '/ edit', templateUrl: 'edit-table.html', Controller: 'editInstanceController'}); }); Plnkr: As noted by the router, editing as an id And will never hit / edit. By using a n...

debian - how to get debain package unpacked first before debconf prompt is shown? -

I am working on a Debian packaging source to install some files on the user machine. The common argument that is being used by debconf / config script and postinst script, therefore, I put a common argument in a separate file and it is / usr / share / pkg-name /. / P / as part of the package. Now when I install the package using DPKG, everything works fine. The first package is unpacked and the file containing the normal code base is placed on that path. After the debconf / config script the file is read and then the user gets the signal accordingly. When I put a file in APT repo, then when I install it using apt-get, the same process is reversed. Package is not unpacked, instead a debug prompt is shown and the config script is unable to find the script with the normal code base. I want to know why there is a difference in the establishment process? Is there a way to get the same sequence when installing via app-to-a? All three files are shell scripts. Is there a better way...

python - Activation for pybrain LSTM layer is zero -

I created an LSTM network to regress a sequence of data. When I try to get the activation of the hidden layer (which is the LSTM layer), then it gives zero. The network has only one hidden layer, one input and one output layer. I try to get a hidden layer value with the following snippet. Print Net.Activate (Data) Print Net ['' ''. Output buffer [net ['' '' offset] print net ['hidden']. Output buffer [net ['hidden']. Offset] Any ideas why? Below is a more complete code snippet RopewayIn = RopewayOverallData [: - 1 ,:] RopewayOut = RopewayOverallData [1:,:] ds.newSequence (range) to I (noDataFrames) : DS .appendLinked ([RopewayIn [i, 0], RopewayIn [i, 1], RopewayIn [i, 2], RopewayIn [I, 3], RopewayIn [I, 4], RopewayIn [I, 5], RopewayIn [I, 6], RopewayIn [I, 7], RopewayIn [I, 8], RopewayIn [I, 9]], [RopewayOut [i, 0], RopewayOut [i, 1], RopewayOut [i, 2], RopewayOut [i, 3], RopewayOut [I, 4], RopewayOut [I-5], RopewayOut [I, ...

animation - How to animate player according to accelerometer in SpriteKit -

I am creating a jumper game like megazump I left the player can use the following code and tries to animate the rotation animation (not zRotation) have: // handle Akseloromitr L & R if (_x Acceleration & lt; - kAccelerationDeadZone & amp; (_currentPlayerHeading == Player Hedingap || _currentPlayerHeading == Player Hadingaprait)) {_currentPlayerHeading = PlayerHeadingUpLeft; [_player run action: _player animation header left]; } Else if (_x Acceleration & gt; Kesielarayrjdon & amp; amp; (_currentPlayerHeading == Player Hadingap || _currentPlayerHeading == Pleyrhadingapftft)) {_currentPlayerHeading = PlayerHeadingUpRight; [_player run action: _player animation head up wright]; } where each left and right animation is made from 3-4 frame problem is that it accelerometer changes will not easily react and I found that Megajmp like game animation It is extremely smooth as the reactions of each accelerometer change frame by frame (although the animation is also m...

javascript - Some kind of _ref usage in coffeescript? -

Consider the following situation: You do not have direct access to the array of AOs, for example .length Where the array [1, 2,3] is required to type again to reach its length, compiled in: var x, y, _i, _len, _ref; _ref = [1, 2, 3]; For (y = _i = 0, _len = _ref.length; _i & lt; _len; y = ++ _ i) {x = _ref [y]; Console.log (x, y, [1, 2, 3]. Length); } Where we see the variable _ref is defined. _ref As far as I am using a coffee script in relation to 'm': for x, in y [ 1,2,3] console.log x, y, _ref.length works fine, and compile without problems I can see I think this approach can give issues to the following situation: x / y [1,2,3,4,5,6] issued x for x, y [1,2] , 3] console.log x, y, _ref.length where _ref is the first array in the second loop [1,2,3,4 , 5,6] , and array [1,2,3] is set to unused variables _ref1 So, are there some ways to solve this problem well ( [1,2,3] In addition to defining a variable for ?) to reference ...

java - How to return an error HTML (Input Validation) -

I am currently developing a web site (part of university assignment) I have some For example: var x = document.getElementById ("age") for example: ). Var y = document.getElementById ("Agreement"). Checked; Var z = document.getElementById ("sex") value; If (x! = True & y! = True & amp; z == faucet) {response.sendRedirect ("Register.jsp"); } I think some kind of error message will appear over the form so that the user can tell that he has created an error within the form. (For example, if they do not enter their gender or do not agree with any of the checkboxes). It has also been mentioned, I would be specific to the error to be a bit more specific to the verification code. Form: & lt; H3 & gt; Register as a user & lt; / H3 & gt; & Lt; Form method = "POST" action = "register" & gt; & Lt; Ul & gt; & Lt; Li & gt; First name: & lt; Input type = "text" ...

haxelib - Whats the meaning of '+' symbol in Jenkins log? -

I am trying to compile an OB using HXLB. When I manually do all the work of CMD manually in windows, but when I use "executable windows batch command" in the configuration with Jenkins, the result is: & Gt; HuxLib run hxcpp Build.xml + No more details, and not logged, instructions only and outside 1. What does '+' symbol mean? Is there a hkslab problem? Jenkins? This is the shell command in one of my logs: [...] $ / bin / sh -xe /tmp/hudson4228279081525071028.sh + git submodule foreach git checkout master ... + git submodule foreach git pull -rebase ... [...] $ / bin / sh - Xe /tmp/hudson362703066220469941.sh + git add -u [...] $ / bin / sh -xe /tmp/commandInterpreterCondition1891071927593818802.sh + git commit -m ...

java - No components visible in visual editor of Vaadin -

Image
Did you know that I can not see why the components in the visual editor Vadin thing is that if I go there If I drudrood, then I can put the components in layout. They are not visible only jre , solution You should install 7u71

c# - ASP and TypeScript issue: input value changed with jQuery not caught using binding -

मेरे दृष्टिकोण में मुझे विशेषता Trefwoord है: सार्वजनिक ट्रैफिक: नॉकआउट ऑब्सर्व्वेज; .ts फ़ाइल "ट्रफ़्फ़ोर्ड" में एक क्लास में: this.trefwoord (), cshtml फ़ाइल पर बाध्यकारी निम्न है: & lt; div & gt; & Lt; input type = "text" id = "trefwoord" डेटा-बाइंड = "टेक्स्ट: ट्रैफोबॉर्ड" / & gt; & Lt; / div & gt; जब मैं कीबोर्ड के साथ टेक्स्टबॉक्स के मान को बदलता हूं और खोज बटन (पोस्ट पेज) को दबाता हूं और एक ब्रेकपॉइंट सेट करता हूं, ट्रेफोबॉर्ड का मान व्यू मॉडेल पैरामीटर के अंदर होता है। लेकिन जब मैं jQuery के साथ बदलता हूं: $ ("# trefwoord")। Val ('value'); तब jQuery द्वारा सेट मान भेजना या यहां तक ​​कि देखा नहीं जा रहा है। क्या कोई मेरी मदद कर सकता है मैं आमतौर पर वस्तुओं के माध्यम से वस्तुओं को अद्यतन करता हूं - यह कारण होता है स्वचालित रूप से अपडेट करने के लिए UI (यह वह है जो मैं नॉकआउट का उपयोग कर रहा हूं)। उदाहरण के लिए ... myModel.trefwoord ('value'); यह देखते हुए कि th...

android - Worklight Foundation V6.2.0 – Flexible application Development -

After reading the Warklett Foundation document on Flexible Application Development () I have come to this section: Easily combine web and basic components in your application In IBM ® Vertical® Foundation V6.2.0, it is easy to mix web and basic components in your app to allow you to create a hybrid application with any composition with web and basic capabilities. The following enhancements support more flexibility in hybrid app development. The architecture of hybrid applications (iOS and Android) now allows you to easily access the original code when the application starts. Before the Vertical Framework is launched, you can add code at the beginning of the application lifecycle, and when there is complete control to start the workflow framework, which is capable of starting it in the background. This flexibility allows you to add a custom splash screen, for example, or to control the default splash screen behavior, and launch an app with a resident screen. In addi...

c++ - What are the advantages of using QGraphicsWebView over QWebView? -

If this question is based on a false impression then apologies. I'm new to both WebKit and QT I'm trying to use QGraphicsWebView instead of a simple QWebView object to justify the circumstances. I think it is more complicated to apply compared to each other What's used in the use of the QGraphicsView class uses fliexibility? And why does QT-Creator's default HTML5 application template use QGraphicsWebView instead of QWebView? For example, if I want to implement scrolling and zooming driven by mouse gesture or implement custom scrolling implementation, then do I need QGraphicsWebView, or will a simple QWebView be enough? with QT docs: Graphics view to QGraphicsWebView class , then QGraphicsWebView can be used as QGraphicsItem QGraphicsScene .

php - Convert Mysql date with JavaScript to euro format -

I am trying to convert a MySQL date to a Euro date with Javascript. But no success is my code: var t = "2014-03-29 13:12:01" .split (/ [-:] /); // Apply each element in the date function var d = new date (t [0], t [1] -1, t [2], t [3], t [4], t [5]); Warning (d); I get the result of something like this: Sat Mar 29 2014 23:24:28 Is there any way to set it? The way to do something like 31.12.2014 with javascript? I can not use a server-side language such as PHP If you do not take care of the options for Safari users. var t = new date ("2014-03-29 13:12:01"); T.toLocaleString ('fr'); // ⇒ "29/3/2014 13:12:01" T. Tolocelstrings ('ru'); // ⇒ "29.3.2014 13:12:01" Hope it helps.

MATLAB no longer supports user-defined MEX configuration? -

I have upgraded my MATLAB to 2014b (OS X 10.10), and some older MEX C / C ++ code Have tried to test. As always, I run Max-Setup from the command window, and I hope to provide an opportunity to overwrite the options file "meshopt.sh". But now, it seems that MATLAB has made some changes and I do not have permission to change the MEX configuration, it only says: Max has given Xcode To select a different language, select one of the following: mex -setup C ++ mex -setup FORTRAN So, is it true that the old ways of modifying "mexopts.sh" are no longer possible? It seems that the following command works: mex -setup my_mexopts.sh However, there is some warning information, > Basics for Heritage Max Compatibility is provided; It will be removed in the future version of MATLAB . Besides, everything looks fine, except I have received some warning at compile time, due to the compiler version (GCC 4.9.1) my current system (OS X 10.10) GCC...

visual studio 2010 - Why won't new project templates install correctly? -

Image
I have just installed Visual Studio 2010 (as well as SP1) yet for some reason I installed ASP I am unable to Net MVC 4 or Silverlight 5 SDK templates properly year with Visual Basic module type icon as shown below Single template can see .png "> My problem comes when someone is trying to load a project from another PC, or even trying to create a new project It looks like this template can not be found: To my project type GUIDs seem right related to a WebAPI / C # application: & lt; ProjectTypeGuids & gt; {349c5851-65df-11da-9384-00065b846f21} {fae04ec0-301f-11d3-bf4b-00c04f79efbc} & lt; / ProjectTypeGuids & gt; I also face the same problem with Silverlight 5 SDK, even then I do not even get the option to make Silverlight App - only the following templates are available: Silverlight 3D Library I do this, So anyone would appreciate any idea what was going wrong! Thank you! After I was able to fix this completely by uninstalling Vi...

Conditional in PHP -

इस सवाल का पहले से ही एक उत्तर है: 6 उत्तर जब मैं अनुपालन कोड चलाऊँगा PHP में यदि ('हाँ' == 0) 'एक' गूंज; Else गूंज 'बी'; आउटपुट एक है। मुझे क्या हुआ समझ में नहीं आ रहा है? और मैं php कोड को सी स्रोत कोड में परिवर्तित कर सकता हूं कि क्या वास्तविक हो रहा है? PHP है एक गतिशील रूप से टाइप की गई भाषा, और == एक ढीली तुलना ऑपरेटर है, जिसका अर्थ है कि यह सबसे पहले उसे एक प्रकार, int की तुलना में मूल्य डालेगा बात, और फिर उनकी तुलना; स्ट्रिंग को बायीं भाग से संख्यात्मक ले कर, पूर्णांक में डाली जा रही है, इसलिए 1abc को 1 को डाले जाते हैं। उस तर्क से हाँ को 0 में डालें, और 0 == 0 पैदावार true से।

html - Position of text in resonsive design -

Image
I hope this is a very simple question for you people. I have a responsive layout with background, centered in the center without the specified width attribute. Now I would like to make a partition which is right inside the background image. Like this: # Reply to Jasper Senorst This problem is .. It runs outside of the div HTML => & lt; Div class = "view_banner" style = "background: url ({$ header.headerimg}) center 0 no-repeat;" & Gt; {If $ header.copyright} & lt; Div class = "copyright" & gt; Cortez Cree Europe & lt; / Div & gt; {/ If} & lt; / Div & gt; CSS => .view_banner {status: relative; Width: 100%; Height: 476 px;} Copyright (Position: Absolute; Right: 0; Below: 0; Font-Size: 16px; Color: Black;} Add relative position of the div with the background image. pre-class = "snippet-code-css lang-css toppint-override"> #image_with_bg {place: relative; width: 200px; ...

linux - Could not find module FindOpenCV.cmake -

I'm connected to a virtual linux machine where I do not have any rights ... I cadenv opencv (very good .... someone else has done all the work for me). Now I'm trying to run a simple code to show an image #include Image_Path & gt; \ n"); Return -1; } Mat image; Image = imed (RGR [1], 1); If (! Image.data) {printf ("no image data"); Return -1; } Named Windoo ("Display Image", CV_Windu_Autos IJEG); Imshow ("display image", image); WaitKey (0); Return 0; } ANC compile it with cmake cmake_minimum_required (version 2.8) Project (DisplayImage) find_package (OpenCV required) add_executable (DisplayImage DisplayImage.cpp) target_link_libraries ( DisplayImage $ {OpenCV_LIBS}) when I cm will bring I get CMake error CMakeLists.txt: 3 (find_package): module FindOpenCV.cmake or can not find a configuration file for the package OpenCV Could Adjust CMACE_MODULE_PATH to open OpenCV_DIR find FindOpenCV.cmake or adjusted in the dire...

javascript - Chrome Browser: Negative scroll on the top -

I tried this trick to stop negative scrolling on Chrome html {overflow : Hidden;} Body {Overflow: Auto;} I already have it: html, body {height: 100%; } But scroll through a document and scroll the window object with 0. How can I stop negative scroll without affecting the document and the window object? I also tried it $ (window) .on ('scroll', function (e) {if ($ (this) .scrollTop () & lt ; 0) {e .preventDefault (); e.stopPropagation ();}}); You must also add: height : 100%; Width: 100%; to the body & amp; html

Setting the correct encoding when piping stdout in Python -

When python pipes the output of a program, the Python interpreter is confused with encoding Does not set. It means: # - * - coding: UTF-8 - * - print and "åäö" will work fine when running By the form, but failed with: Unicode encoding error: 'ASCI' can not encode '\ xa0' in the codec character 0: not in the serial number (128) When a pipe is used in sequence. What is the best way to do this while piping? Can I tell it to use the shell / file system / whatever it is using? The suggestion I have seen so far is to modify your site directly, or to harass default encoding by using this hack: # - * - Coding: Is UTF-8 piping a better way of working?

c++11 - Lambdas in C++ giving a Function to a other Function -

I'm trying to call template & lt; Typename FUNC & gt; Int execute (FNC) {int a {5}; Int b {8}; Return FUNC (A, B); } From the following line: std :: cout & lt; & Lt; Execute ([] (int a, int b) {back a + b;}) & lt; & Lt; Std :: endl; with the following error: error C2661: 'main :: and lt; Lambda_5994edd6ba73caf12c83e036d510d0d8 & gt; :: & lt; Lambda_5994edd6ba73caf12c83e036d510d0d8 & gt; ' Ken überladene Funktion akzeptiert 2 logic So the question is what am I doing wrong? The error is German but it basically says that the function does not take 2 parameters which should be done explicitly No, it is not how you should call that function. You have not specified the name of the argument. Whatever you tried to do, use the type as a function. The correct template function is: template & lt; Typename FUNC & gt; Int executable (FUNC f) {int a {5}; Int b {8}; Return F (A, B); }

css - No margin-bottom on bootstrap button? -

Image
I am using the button element in a bootstrap template. I was thinking that this is normal behavior in bootstrap: When there are not enough space to show all buttons on a button, or when the window is resized , Then some buttons are shown on the second row and it's okay but it's not like the margins down. I can add it: .btn {margin-bottom: 5px; But I find it strange that it is not controlled by bootstrap. Maybe I am doing something wrong? Source : & lt; Button type = "button" class = "btn btn-primary btn_plus_infos" data-toggle = "collapse" data-target = "# plus_infos" & gt; Plus De Infos & lt; / Button & gt; & Lt; Button type = "button" class = "btn btn-primary btn_plus_infos" data-toggle = "collapse" data-target = "# plus_infos" & gt; Plus De Infos & lt; / Button & gt; & Lt; Button type = "button" class = "btn btn-primary...

java - Eclipse ADK: Errors in Main Activity and Rec -

I followed the instructions for Android bootcamps YouTube series (3. Hello World) as close as possible, but I I have run across Slof problems: issue 1: Aveedi Manager Ilipas will not recognize my phone (Samsung Galaxy S 5) for debugging / running apps I it Does not appear at AVD at all. I have downloaded the necessary driver for my computer to communicate with the phone I have enabled the developer mode with me I have enabled debugging on USB I have eclipsed and restarted my phone The phone is new, weak and just runs fine My computer is my Recognizes the phone and gives the correct name, can extract the files, etc. Issue 2: Running A S I tried to restrain the adid manager by clicking, "run" to select just "my phone" However, after the choice to run as "Android Application", I get an error Found: Errors occurred during build. The project builder XXX '' Android pre-compiler 'running errors I have new software ( He...

javascript - Website Graphics Smooth Transitions -

I am quite new to PHP, but I have a project on which I am working and I doubt Regarding a specific aspect of web development My website has a great need, it should be very user-friendly, and there's a lot of information in this graph that will be displayed in the graph (pie chart, column / row). My question is about aesthetics: Is it possible to apply a smooth transition about graphics like a Microsoft Office 2013? If you used MS Office 2013, the flow of the one thing I saw was the flow, and when I change the values ​​in a graph, I want to implement that feature in my website. Of course, I think there is a lot of functionality in the functionality, but if I can have both, it would be good. This is my phishing question and I have searched for this topic, but I have not found any useful tip anyway, if you are giving me some pointers on this topic (basically if it really Is possible or not), so I really appreciate it. Cheers PHP is a server-side language related to s...

sorting - Why is my matrix row group sort not working in SSRS -

I have a matrix where the rows are being pulled with DB and they are showing as follows: serious high informative lower middle I have to show them like this: serious high middle low informative Currently, I am going to row group properties, and I am sorting and entering the following expression. = IIF (value! Risk value = "critical", 1, iiF (field! Risk value = "high", 2, iif (field! Risk value = "medium" , 3, iiF (field! Risk; value = "low", 4, 5))) When I generate a report, then now only 1 row is just " Important "row = iif (field! Risk.) value =" important "," 1 ", IIF (field! Risk. Value =" high "," 2 " , IIF (field! Risk value = "medium", "3", IIF (f) Value! Risk: value = "low", "4", iiF (field! Risk value = "informative", "5", "")))))))) all lines again But in the wrong sequence is not being don...

How to store file input into a hash table in Java? -

I am trying to store data from an input file in a hash in Java, but I do not know That's how to do that. The data will look something like this: Apple orange bananas Then each letter in apple hash table Then every character in orange will be in a different hash table. I want to be able to compare letters in apple and orange. How can I do this? It has so far to me. if (args.length == 0) {return; } BufferedReader br; Try {br = new BufferedReader (new FileReader ("input.txt")); } Hold (FileNotFoundException fnfe) {System.out.println ("File not found"); Return; } MyHashTable mht = New MyHashTable (); {String line; While (breadline (!! = Null) {mht.insert (line); }} Hold (IOException ioe) {System.out.println (ioe); Return; } You can read by using stringbuffers and then just open the apple vene and banana set can do. You need to write code to compare each letter. You can use comparable or comparator by using the collection class

filter - Android Broadcastreceiver unregister needed when registered in manifest? -

So this is mainly the question, when I register a Broadcastreceiver dynamically, Then it is not necessary to register on onDestroy but when the BroadcastSaver is registered inside the manifest, do we need to unregister it? You should be careful while adding broadcast receiver because unnecessary broadcast receiver battery Remove from power. If you add a broadcast receiver to the Android Manifest file , it is implied that you want to handle a particular purpose in the broadcast receiver and do not ignore You can use PackageManager to enable / disable BroadcastReceiver as declared in the manifest Broadcast Recipient only enabled Will be removed only. For more information One way to enable and disable the broadcast receiver is to be added to the manifest file. View this post

html - <head title="hello world"></head> not working -

This is my code for the print title on the browser's tab. Why the Hello World title is not displayed on the tab bar of the browser? When I & lt; Head & gt; & Lt; Title & gt; Hello World & lt; / Title & gt; ; / Head & gt; This works, but why not? & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Head title = "hello world" & gt; & Lt; / Head & gt; & Lt; Body & gt; Sampling test & lt; / Body & gt; & Lt; / Html & gt; Provides consulting information about the title attribute element is. This document is completely different from the title, which is for the title element. This does not work because they are not just equal.

java - Problems assigning variable to the return of a function -

I'm searching online for a solution to this problem, but one can not get it with Java I am beginning to begin, so I do not understand many errors and that is why I was not able to correct myself. However, I am trying to allocate a value for the variable and then add the int value from the variable to the second, I am getting errors when compiling: "This is not a statement" and a There is an error that I am missing a semicolon, which I suspect is that if I fix the statement it will be cleaned. Here's an error, just you need it: hw8_ex2_jm2rv.java:61: Error: ';' Expected Sum sumOfGames + = value; ^ Hw8_ex2_jm2rv.java:61: Error: not a statement int sumOfGames + = value; ^ 2 Errors This is my code: Public Fixed In One Game () {int trueValue = 1; Int falseValue = 0; Intel Total = sumTwoDice (); If ((total == 7) || (total == 11)) {//System.out.println(trueValue + "" + total); Return true (trueValue); } And if ((total == 2) || (total == 3) ...

Java Main Method Called -

How can I and other methods in Java call the main method? Please explain using the code given below: public class arraysAndmethods {public zero print (double [] arr) {int x = public arraysAndMethods.main (int [] studGrades); // For other methods in main Mehthod // Pass ARR / int one = main (args []); For (Int i = 0; I & lt; StudGrid.Linght; I ++) system. Out.print (studgaredes [i] + ""); } // printArray method end / public static zero main (string rule []) {java.util.Scanner input = new java.util.Scanner (System.in); // Input Scanner System.out.println ("What is the class size?"); Int n = input.nextInt (); Double studded [] = new double [n]; For (Int I = 0; i & lt; studGrades.length; i ++) {System.out.println ("What is student's grade #" + (i + 1)); Standard Gradient [i] = Input NXD double (); } // End of loop} // After the end of the main method // edit the end of the // class : I have thought out and left the debate Is I going to u...

Subtracting references in perl -

I am trying to reduce the two sets of data that are in very array I have given them the general array shown below I would like to subtract @x = (1, 2, 3); @ X2 = (2, 3, 4); My @Delta = Map {my $ diff = $ _; Map {$ $ diff - $ _} @ x2} @ x; To get: 1-2 1-3 1-4 2-2 2-3 2-4 > etc. I am currently using this: my $ i = 0; My $ j = 0; My $ prot_x_var; My $ lipid_x_var; # The calculation of the row in the file containing the data in this section is $ # The amount of data is the array of data ($ $ Count = 0; $ count = l = $ # data; ++ $ count) {# This is a specific string So the $ protein is not important, but to define the string ($ data [$ count] = ~ m / \ s + $ protein \ s + /) {++ $ i; $ I added $ i to get specific string $ prot_x_var = $ protein_xyz_coords-> gt; [0] - & gt; [$ I] - & gt; {'X'}; # Flips through all the data points # Print "$ prot_x_var \ n"; } # $ POPS and $ POPC are being used only to find a string if ($ data [$ count] = ~ m /...

php - In mysql, how can I select the numeric portion of a field? -

मेरे पास एक मुक्त फॉर्म फोन नंबर युक्त तालिका है (जैसे '123-456-7890', '(987) 654- 3210 ', या' 123.456.7890 ') और मैं उन्हें एक संख्यात्मक स्ट्रिंग के साथ खोज रहा हूं- जैसे,' 123456 '। अभी, मुझे प्रतिस्थापित करने का एक स्थान (प्रतिस्थापित करना है प्रतिस्थापन (गैर-संख्यात्मक वर्णों को बाहर निकालने के लिए विज्ञापन न्यसम फ़ंक्शंस बदलें। फिर खोज के लिए 'पसंद' का उपयोग करें। किसी को भी किसी आधार पर फ़ील्ड से केवल कुछ वर्णों का चयन करने के लिए सरल तरीके से पता है प्रकार, स्थिति नहीं है? आप Mygeq में regex का उपयोग कर सकते हैं - SELECT * FROM `table` जहां WHERE` फोन` REGEXP '^ [12345]' यहां एक काम है।

c++ - does memcmp work for non-flat struct? -

संरचना फ्लैट {int a1; इंट ए 2; } // एक पदानुक्रमित स्ट्रक्चर जिसमें एक स्ट्रक्चर एट्रिब्यूट स्ट्रक्चर वाला गैरफाइट {फ्लैट बी 1; इंट बी 2; } फ्लैट एफ 1, एफ 2; मेरे कंपाइलर में यह काम करता है, अर्थ f1.a1 == f2.a1, f1 मेम्कम्प (& amp; एफ 1, & amp; एफ 2, आकार F1) A2 == f2.a2 & lt; => memcmp (f1, f2) == 0; नॉनफ़्लैट एन 1, एन 2; Memcmp (& amp; n1, & amp; n2, sizeof n1) // क्या यह पैडिंग को देखते हुए गैर-फ्लैट स्ट्रैक्ट्स के लिए भी काम करता है? मुझे लगता है कि इसे गैर-फ्लाट स्ट्रेंक्ट्स के लिए भी काम करना चाहिए। हालांकि, मेरे कंपाइलर में, गैर-फ्लैट स्ट्रैक्ट्स के लिए, ऐसा लगता है कि सदस्य विशेषताएँ समान हैं, memcmp का परिणाम इंगित करता है कि वे अलग हैं। सी लायब्रेरी फ़ंक्शन मेमोरी स्थानों की बाइट-बाय-बाइट तुलना करता है। जैसा कि @ एमएमटर्स ने सही ढंग से बताया है, इस तुलना में किसी भी और सभी पैडिंग बाइट्स शामिल होंगे। यह आपकी परवाह नहीं करता कि क्या आपके फ्लैट फ्लैट या फ्लैट के किसी भी परिभाषा के लिए फ्लैट या गैर-फ्लैट हैं संरचना के बारे में कुछ भी ...

angularjs - Dynamic Tabs for ng-class -

I'm trying to change the active status of the dynamically created tab, depending on which value Selected, it will determine which view I will see and change the $ location. I can not get the status of the dynamically-generated tab to change this code I need some guidance on what I am doing wrong thanks to my code snippet HTML & lt; Ul id = "tabBarList" & gt; & Lt; Li ng-class = "{active: isActive ('/ list')}" ng-model = "all" & gt; & Lt; A href = "# / list" id = "newRequest" & gt; All requests & lt; / A & gt; & Lt; / Li & gt; & Lt; Li ng-class = "{active: isActive ()}" ng-click = "getDetails (tabs.name, post.status)" ng-repeat = "tab in tab" "gt; & lt; a href =" " Id = "idNumber" & gt; # {{tabs.name}} & lt; / a & gt; & lt; a href = "id =" exitTab "ng-click =" Selection tab (tab n...

webforms - validateRequest=true and requestValidationMode="4.0" lets html through -

I have a web form website on IIS7 and .NET 4.5.1 and I want Microsoft's request recognition. The web.config default value for Valid.request and requestValidationMode is considered "true" and "4.0" respectively and this should be what I want (I have tried to specify them). & lt; Confirm valid pages = "true" & gt; & Lt; HttpRuntime requestValidationMode = "4.0" /> For some reason, when I am trying to submit an HTML tag (tried & lt; script> and & lt; a>) in a form, I hope The potentially dangerous request error, but the tag is saved in the database. Why did it go through? I just take the text value of the text box and send it to my DB, but I hope there will be an error to stop it from happening. When I tried the setting: & lt; HttpRuntime requestValidationMode = "2.0" /> The error was the same, but this time, the tag did not end in the database, which I want. I would like to und...

c - printf unexplained behavior -

Recently I started learning C by myself, so this is a little new question It is possible. I have compiled the following commands: #include & lt; Stdio.h & gt; Int main () {int arr [5] = {0}; Int arr2 [5] = {0}; Printf ("% d \ n", arrival [5]); // output here: 2130567168 printf ("% d \ n", AR2 [5]); // output here: 0 return 0; } Can anyone explain the reason for a different output? You are assessing the data that is outside the declared range of your index's index range, Declared as arr [5] , goes from 0 ... 4, but you want to reach AR [5], which is neither defined nor allocated In this way you get random answers based on the value of memory "cell", which you want to use, in this case 0 and the second number.

java - Finding the right place and storing in LinkedList -

I am trying to store stars in a linked list. I do not have permission to pre-sort, but find the place and pass the string in the linked list. When I pass strings through the text file, the string does not go past the second position. The appie zebra cat in my input file When it reaches the app, it does not go through any statement It is considered to be the last second position and print 5, but Do not do this. Prefix / ** * String and arranges them in order * @ Param NewString * / Public Zero Store (string nuestring) {Linkediston current = head; Println (newString); // If there is no element in the list (if present == empty) {System.out.println ("1"); MakeNode (newString); } // If only 1 element in the list and if (current .getNext () == tap) {System.out.println ("2"); If (newString.compareTo (current.GateName)) You have a problem with the insert. I updated it. Insert public zeros (string later, string name) {if (head == null) {head = new LinkedLis...

javascript - Dim background after iframe youtube video starts playing -

Hello :) Just like I want to reduce the background of my (WordPress) site as you start the YouTube video. & lt; Iframe frameborder = "0" width = "660" height = "371" allowfullscreen = "src =" https: /www.youtube.com/embed/CMm6tDavSXg?feature=oembed"> ; / Div & gt; .div_popup_overlay {display: none; Status: fixed; Top: 0; Left: 0; Width: 100%; Height: 100%; Background color: # 333; Opacity: .7; Z-index: 3000; } and then trigger it with jQuery $ ("#YOUTUBEVIDEO") Click (function () {$ (". Div_popup_overlay") in fade ();}); // More on some online $ (". Div_popup_overlay") FadeIn (); So now I can not understand how to use YouTube API without properly embedding the video without the API First of all, give your IFrame an ID, so that the API can search it. After this, make sure that you enable the parameters in the src attribute, which include the Zippia and set it to 1 ...

php - Entities that are able to return own url -

I realized that such questions have been asked and answered, but bear with me because I am satisfactory in that reply Not found, I still do not see how to solve my problem I understand that "you should not do this" is fine, but did anyone help me understand this (in complete) simple task? Can do? I have many organizations (I use that word for free, these principles are not, they are simply scratching data models that load data from external APIs). I have to get some of these organizations a getUrl () function, so that wherever I have encountered them, I can just call $ entity-getUrl () and use it to have a proper and consistent url. Initially, I was creating these URL paths by hand, but then felt, "I should use the URL defined in the routing configuration to generate this. Then they are constantly site-wide Will guarantee ". That's why I search on these answers and I say that "your organizations should know nothing but other organizations" and ...

hadoop - How to do I run encrypted distcp from hdfs to s3? -

I want to copy the data of s3 from my hop cluster (on the premise). I can unencry it, I can also put s3cmd with client side encryption. How do I dispose with client side encryption? Recent Hadop versions should be shipped using client-side encryption just fine. In order to be safe and not to fall prey to the characteristics of its establishment, I will ensure a safe transfer by putting a bucket policy just like a place, refusing non-secure transfer. {"statement": ["action": "s3: *", "effect": "deny", "principal": "*", "resource": "arn: ("Aws: SecureTransport": false}}}}}

validation - How do I correctly Implement an event on successful form Submission using Google Tag Manager and Sitecore's Web Forms for Marketers? -

I am trying to track successful form presentation using an event in Google Analytics via Google Tag Manager . When users submit forms, my current setup is successfully tracked, however, this incident also fires when the form submission is invalid and does not submit (i.e. the user has not filled out all the necessary fields, on the submit button Click to try to validate the form, but comes back with the user instead of submitting errors) to my listener Number feature Czech validation, which should prevent theoretically firing the tag, if form submission is restricted, it is not clear error. The form has been created in question with Sitakr's web form in the market. My colleagues have faced the same unresolved issues with their WFFM forms. This is specifically used for gate content so that only those users can access content resources filling up the form. So for example if I go to www.mydomain.com/resource, then I will be directed at www.mydomain.com/form, where I fill my al...

excel - adding wildcard to look up formula? -

Look at the function I'm using the following formula as part of a multi-result. Many of these threads have been posted in one row below each other, so if I write Catering on the sheet 1 in cell K22 then my formula Matching word appears in column, produces name in sheet 2 on b and column a . In the formula to duplicate this lookup some times to get other values ​​from other columns. Similar matching results For example, on my sheet 2 my columns look like: Name of the location Place number Amy Hotel London 1 Dave Hotel Manchester 2 Mike Catering Birmingham 3 I have to use wild cards around my cell K22 in this formula to show that if I describe the type of hotel I Is like; I.e. hotels, hotels ... etc ... get results? ... I know that this index match can be used, but can I use them with the following code? At the moment it is an array formula, but I do not get any results when I try to do it like this. Tanks = IF (ISERROR (Index $ 7 = "*" & Sheet1 ...

mysql - mysqli error when updating query php mysqli targeting specific id -

I $ GET_ [id]; I'm trying to target a specific ID from the URL using . This works to get the ID but when I click submit button to update it, then I get 2 errors notice: undefined index: id and Fatal error: member function fetch_assoc () Call in the non-object that refers to the first 2 lines of code Query ("Select * from player WHERE id = $ _GET [id]"); $ Person = $ result- & gt; Fetch_assoc (); ? & Gt; If (isset ($ _ POST ['submit'])) {$ db- & gt; Query ("UPDATE player-bio SET 'Player-ID' = '$ _ POST [Player-ID]', 'Date-Created' = NOW () WHERE id = $ _POST [ID]"); Header ('location: test_input.php'); } & Lt; Form action = "& lt ;? php echo $ _SERVER ['PHP_SELF'] ;? & gt;" Method = "post" & gt; Player ID: & lt; Input type = "text" name = "PlayerID" value = "& lt ;? php echo $ person ['PlayerID'] ;? & gt;" ...

php - Laravel Input::has always returning true -

I know this is probably something simple, but I do not know where I went wrong. Basically I have 2 static php arrays: $ array1 = array ('Apple', 'Orange'); $ Array2 = array ('purple', 'green', 'yellow'); Forex Currency ($ 2 as $ arr2) {foreach ($ arr1 $ arr1) {if (Input :: is ($ arr2. $ Arr1)) {array_push ($ testArray, $ arr1); }}} The output of $ testArray shows that the input: the number of inputs is output twice, so if I select all the possible inputs (Which is 5), then each of them has to output 10 values ​​twice. It has made me believe that the input :: has evaluated the correct every time, even if it can not be as long as I can tell. Any help is appreciated! PHP thinks $ arr2 $ Arr1 is a concatenation: if (input :: is ($ arr2. $ Arr1)) {array_push ($ testArray, $ arr1); } Try using it in your point notation: if (input :: is ("{$ Arr2} {$ Arr1} ")) {array_push ($ testArray, $ arr1); }

android - Switching appcompat & buildtools to v21, aapt.exe has stopped working -

I'm trying to switch my project from API20 to API21. When the gradle files use AppCompat-v7 com.android.support:appcompat-v7:21.0.0 and buildToolsVersion "21.0.0" A window error dialog popup is saying aapt.exe has stopped working . Download the latest build tools 21.1.1 and this will work

Java import sub-sub directory -

मेरी निर्देशिका संरचना इस प्रकार दिखती है: फ़ोल्डर └───subfolder └── ─subsubfolder मैं एक मुख्य जावा में फ़ोल्डर और main.java वर्ग के अंदर subsubfolder का उपयोग करता है । यहां मैंने यह कैसे किया है: आयात सबफ़ोल्डर। *; आयात उपफ़ोल्डर subsubfolder। *; हालांकि, जब मैं javac Main.java $ javac -g मेन.जावा मुख्य निष्पादित करता हूं, तो मुझे निम्नलिखित संदेश मिला। .java: 23: त्रुटि: नोड नोड रूट = नए नोड () को एक्सेस नहीं कर सकता; ^ खराब क्लास फ़ाइल: ./subfolder/subsubfolder/Node.class क्लास फ़ाइल में गलत वर्ग है: subsubfolder.Node कृपया निकालें या सुनिश्चित करें कि यह क्लासपाथ की सही उपनिर्देशिका में प्रकट होता है। 1 त्रुटि क्या मेरी क्लास फ़ाइल आयात करने का तरीका गलत है? यह पैकेज सबफोल्डर नोड के पैकेज घोषणा कहना चाहिए पैकेज सबफ़ोल्डर subsubfolder; स्पष्टता के लिए एक उदाहरण प्रदान करना: फ़ोल्डर / आपका स्रोत रूट (आमतौर पर 'src' कहा जाता है) फ़ोल्डर / मेन.जावा वर्ग मुख्य {... } (कोई पैकेज घोषणा नहीं) फ़ोल्डर / सबफ़ोल्डर फ़ोल्डर / सब...

cluster analysis - visjs.org library trouble -

I just reached my new job and my boss told me that I work with Graffas for the visjs.org library To do. / P> I have to work with "19_scale_free_graph_clustering" example I groups in which> = 10 nodes have to be changed. This library is very rare, there are so many announcements in the code, yet I can not understand it. I can only change the color of all the nodes but this is not a problem, I have to change the groups having = 10 nodes in my cluster. Can anyone understand me? Please help me Yet I can not do it in 4 days, can anyone help me? Here's a snippet of code, I do not know what I'm doing in the right part. This library has 30,000 lines of code with so many announcements, it is a small part of a network where I am working. (nodeId in this.nodes) {if (this.nodes.hasOwnProperty (nodeId)) {var node = this nodes [nodeId]; If (node. Cluster size & gt; 1) {//node.label = "[" .concat (string (node ​​cluster size), "]"); More than ...

Proper syntax? PHP - mysqli_real_escape_string and sanitize function -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब मैंने खोजा और बहुत से देखा से पहले मैंने पूछा मैंने इसे दागोन पर देखा था, हालांकि इसने स्वच्छता समारोह का उल्लेख नहीं किया। जैसा कि मैंने कहा था कि मैं एक PHP विशेषज्ञ नहीं हूं, और मुझे नहीं पता था कि यह वाक्यविन्यास में कोई फर्क पड़ेगा। डुप्लिकेट के लिए क्षमा करें। मैं एक PHP विशेषज्ञ नहीं हूं, एक भी बार-बार उपयोगकर्ता नहीं, लेकिन मैं एक क्लाइंट के लिए कुछ PHP कोड को सही करने की कोशिश कर रहा हूं। मैंने यह कोड नहीं लिखा था, मैं बस त्रुटियों को हल करने की कोशिश कर रहा हूं। क्या कोई मुझे सही दिशा में इंगित कर सकता है? त्रुटि कोड - PHP चेतावनी: mysqli_real_escape_string () 2 / PHP कोड - समारोह sanitize ($ var) {mysqli_real_escape_string (str_replace ("` "," "\` ", $ Var)); } दो तर्कों की आवश्यकता है जैसा कि PHP प्रलेखन और त्रुटि समझाया पहला तर्क डेटाबेस कनेक्शन को ले जाने वाले चर होने चाहिए - दूसरा तर्क स्ट्रिंग होना चाहिए जिसे आप सिनिरेटेड करना चाहते हैं - नोटिस कैसे मैंने स्ट्रिंग को कह...

How to use SQL Server 2005 Pivot based on lookup table -

The table [status] has the following data: id position 1 payment payment 2 pending 3 Payment 4 cancellation 5 error ========================================= === The data structure has the following structure: id week number status ID 1 1 2 3 2 3 1 3 4 2 1 5 2 2 2 2 2 2 7 2 3 Search for a pivot weeks # payment payments pending cancelation canceled 1 1 1 1 0 weeks 2 1 2 1 0 A pivot can look like this : SELECT * FROM (SELECT 'Week' + CST (D. W.C.number A.S. Verma (2)) [WEEK #], S. Status FRI Datatable D Inner Join S.S. D. Status ID = S.ID) in case of receiving (for position) (PEVOT) ([payment payment], [pending], [paid], [canceled]) - [error] if If necessary, add to [Private] If you expect to change the number of items in the status table, Titles to generate might want to consider using a dynamic axis. Something like this: announcement @ sql AS nVARCHAR (maximum) DECLARE @ cols as nVARCHAR (max) SELECT @cols = ISNULL (@cols + ',', ...

Python: How to pass an object into another class's parameter? -

I'm new to Python and I was trying to create a class that uses another object function Does, but I'm not sure how to do it. Any help is appreciated thanks! So this is a difficult example of what I want to do class dog: def bark (self): print ( "Hello") square DogHouse: Def __init __ (Self, Dog): Self. = = Dog def bark2 (self): ??? I want within Doghaus be able to call the bark of a dog, but I'm not sure how to do it correctly To do so. What you are talking about is that I will give you a course in a university or a course However, I have taken a quick example to do this so that I think you want to do it: class A (object): def __init __ (self): print ( "Hello world") is a new word (a word, a few words): print (some_word.swapcase ()) @staticmethod def newer_print (some_word): Q Nt (some_word.lower ()) class B (object): def __init __ (self): print ("world") to make the object of class a # and then the method temp = A () t...

sql - Postgres LEFT JOIN with SUM, missing records -

I am trying to get some sort of records in a related table. I'm using a left join. So I have a query that is not quite right and the returning to the right result is the highest performance cost in the query of the right results. ID wants to use the first approach, if I can correct the results (see) make the table people (id serial, name varchar not null); Table domestication (id serial, not vancar faucet name, type varchar no redundant, live boolean faucet default false, do not tap person_id integer); Include people (name) values ​​('Chad'), ('Buck'); Living in animals (name, living, compassionate, person_id) values ​​('dog', true, 'dog', 1), ('dog master flash', true, 'dog', 1), ('catio' True, 'cat', 1), ('lucky', false, 'cat', 2); My goal is to withdraw a table with all the people and calculate the varieties of animals that they have: | ID | ALIVE_DOGS_COUNT | ALIVE_CATS_COUNT | | ----...

php - json api controller for woocommerce category images -

I try to use json api to get some woocommerce data. Regularly with the WP Jason API, I can use the custom post type 'product' to get the most from my postcard, but I also need category data, such as names and special category pictures. For this I had to write a simple controller around the 'get_terms' package ('product_cat'). I'm sure that it lacks my php oop knowledge where I fail to add the key (image), value (image_url) As far as I am adding the final image pair details to my JSON, but I really want to find these details between all the other key values, as an image value for each category object. Here's my Controller: $ product_categories); }} Here is the result: How do I add these image data to each productcags array or / or how to do it differently Standard JSON Like API methods, 'get_category_index' I honestly do not have any clue that it should use other than regaining the category index. It is also with the controller on w...