I need help for installing gradle. I am using Windows 7. What i did is: I downloaded and unzipped gradle to C:\java\tools\gradle I created a user variable GRADLE_HOME pointing to : C:\java\tools\gradle Then i appended GRADLE_HOME to Path variable like this ...;%GRADLE_HOME%\bin; Finally i tryied gradle -v in cmd but it can't find it. I also appended the full path C:\java\tools\gradle\bin to Path variable but it not working neither. I don't understand what is wrong.
In ORACLE PL/SQL DEVELOPER, am I able to do the following as I could easily do in SQL Server? DECLARE @EmpIDVar INT SET @EmpIDVar = 1234 SELECT * FROM Employees WHERE EmployeeID = @EmpIDVar This seems like such a simple thing and yet it seems impossible to do in Oracle! I know about using & in front of variables that will prompt me to enter their values but why can't I just do something like the above?
Pylint generates this error for subclasses of an abstract class, even when those subclasses are not themselves instantiated and the methods are overridden in the concrete subclasses. Why does Pylint think my abstract subclasses are intended to be concrete? How can I shut up this warning without getting out the hammer and disabling it altogether in the rc file?
Naively, conditionally executed instructions seem like a great idea to me. As I read more about ARM (and ARM-like) instruction sets (Thumb2, Unicore, AArch64) I find that they all lack the bits for conditional execution. Why is conditional execution missing from each of these? Was conditional execution a mistake at the time, or have subsequent changes made it an expensive waste of instruction bits?
I'm working with Face Recognition project and I would like to know what is the difference between EigenFaceRecognizer and EigenObjectRecognizer and which is better to use.
I realize there are a few threads regarding this issue. However, I am new to this, and some of the solutions I found did not work for me. I have an iPhone app that should support all orientations except in one view. This view I would like to lock in portrait only. I tried this code, but it still goes to landscape mode when I flip the phone... what am I doing wrong? - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); } - (BOOL)shouldAutorotate { return NO; } - (NSUInteger)supportedInterfac
I'm working on Euler problem #3: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? here is my Perl code just try to get all the factors first but it got segmentation fault, my Perl age is just about 2 month, could not figure out why. Segmentation fault 11 when I run it. #!/usr/bin/perl use warnings; use strict; my $number = 600851475143; my @factors = grep {$number % $_ == 0} (1..$number); print @factors; Run it again with sudo, no more segmentation fault but nothing printed out.
Scope: I have an app that I am starting to build that has the "subscriber/publisher" situation on its core. For those who don't know, the idea behind this schema is that: Someone creates a "Topic" Endpoints subscribe to a "Topic" Any message published to a certain "Topic" is pushed to the subscribers of said "Topic" Considerations: I am going to use Xamarin.IOS and Xamarin.Android as the framework to build this mobile app (so that it can be crossplatform from the begining). RabbitMQ: The RabbitMQ service is built on top of the AMQP pattern which solves my entire problem of modeling the "Topic/
I have compiled and installed python2.6 on my system with python2.7 installed as well. Unfortunately, I did not do it correctly and now my default python is 2.6. When I enter which python && /usr/bin/env python -V I am given /usr/local/bin/python Python 2.6.9 How can I change this? I checked my $PATH variable, but anything relevant to python is not there. The desired version is /usr/bin/python
I don't have any clue how to solve this. I reinstalled the Xcode Commandline tools which were missing previously - but the problem still persists. Compass and CodeKit do not work as expected. Any idea what to do? Marcs-Mac-mini:~ marc$ gem update --system Error loading RubyGems plugin "/Users/marc/.rvm/gems/ruby-2.1.0@global/gems/executable-hooks-1.3.1/lib/rubygems_plugin.rb": ERROR: Failed to build gem native extension. /usr/local/Cellar/ruby/2.1.0/bin/ruby extconf.rb /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/usr/local/Cellar/ruby
I'm conducting automation testing using Selenium Webdriver. This code is for TestNG dataprovider. I am taking data from Excel sheet to data and it's working fine. When I'm debugging the code, I'm getting TestData as testGoogle1(String search1, String Search2). For 1st iteration it is Search1 = Webdriver, Search2 = Qtp, and so on. What I want is that it should directly return the array of values something like testGoogle1(String search[]) so that in the @Test itself I can add my function iterate all the rows and columns and test them. Can anyone please show me how to write it? Test Data sheet H
I'm not sure anyone will know the answer to this question, unless you are responsible for writing the Jave API, but when the Java API says "equals", does it always mean that a.equals(b) evaluates to true, or sometime does it mean a == b is true? I have recently extended a class and wondered if I needed to override a method depending on where or not it used == or .equals. Specifically, I extended javafx.beans.binding.ObjectExpression and was curious about the .isEqualTo(Object other) method. I checked the source (here) and found that this method uses .equals for comparison. I'm curious if I can
Im trying to make some VBA form and to calculate some simple values but I dont understand why VBA dosen't recognize Sin() and Cos() functions. For example: I wrote int() and VBA transformed it into Int(), but it doesn't do the same with sin and cos. Moreover, after I'm trying to compile my code Private Sub btn_exit_Click() Unload laborator_2 End Sub Private Sub btn_start_Click() today.Caption = Date rnb_val.Caption = Int(Rnd * 90 + 1) sqrt_val.Caption = Sqr(rnb_val.Caption) si_val.Caption = sin(rnb_val.Caption * 3.14159 / 180) co_val.Caption = rnb_val.Caption * 3.1459 / 180 End Sub I got this
I'm using a macOS X 10.8.4 64 bit. I want to build some C/C++ programs on my Mac, and then show them to some people who use Windows. I can successfully compile it into an exe, using g++ test.cpp -o test.exe But when run in my PC, that exe file raises this error: This version of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program. Note: My PC is also 64 bits
I'm using a mac OS X 10.8.4 64 bit. I want to build some C/C++ programs on my mac, and then show them to some people who use windows. I can successfully compile it into an exe, using g++ test.cpp -o test.exe on the terminal But when run in my PC, that exe file raises this error: "This verison of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) verion of the program." Note: My PC is also 64 bits
I am trying to write a script that could be used to import data from a sheet in excel into my QTP Data table. Below is the script . But even though the script runs successfully, I cannot seem to get the data pop up in the data table. Any help is greatly appreciated. datatable.Import Sheet "C:\Documents and settings\Administrator\Desktop\Book1.xlsx",Sheet1,Action1
How can I do debug/inspect element of APK webview. I have tried the remote debugging instructions from the docs, but it is helpful only for chrome not for APKs.
I'm looking into the feasibility of adding NaN/Infinity support to a pre-existing scientific application that uses JSONRPC for client/server interactions. Many JSON libs do handle (optionally in some cases) NaNs and Infs, for example: Python json reads and writes Java Jackson reads but writes strings instead of barewords Java GSON reads and writes Javascript can read I'm aware that NaN and Infinity are not supported in the JSON spec, and am aware of the related questions. However, AFAICT the question of whether there's some way of coercing the native JS JSON.stringify() method to emit NaN/Infi
I have run into an issue. Whenever I run my test class it is showing the following error: Testsuite: com.lo.test.selenium.AssignCampaignTestCase Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 46.991 sec ------------- Standard Error ----------------- org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: Xlib: extension "RANDR" missing on display ":99". *** LOG addons.manager: Application has been upgraded *** LOG addons.xpi: startup *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on
I want to upload a video file using PHP and show the progress of the upload via an Progress Bar. But this is more difficult like i thought and i tried to put the pieces ive found together but unfortunately i didnt found a working piece of code that has the needed php, ajax and html code all together, so ive tried to put different pieces together. My Code functions nearly completely. The only thing is, that the current process of the file upload, which i've got in percent, is loaded by my javascript only AFTER the process has ended, and not from the beginning. Here is my PHP Code: function file
My question is related to that one: git-new-workdir: Commit in working tree A causes bogus changes in tree B. I use git-new-workdir to have multiple working directories from the same Git repository. Usually, I have work on different branches in each working directory, but it may happen that I commit in branch from a given working directory, while another working directory is a checkout of the same branch. When that happens, the second working directory gets staged changes that are the reverse of the commit I just did. Now comes my question... How can one discard staged changes, without discard
Assuming program logic changes a button tag based on something random - but using the UI thread. Is the Button Tag value reliable to use in a click event? i.e. Will it be the same value as-at the time of the event handler as it was at the time of the click? If not, what is the best method to pass an event specific parameter into a button click event that will be safe? Update Added an example as requested. (Remember this is just theoretical). Windows.Forms.Timer timer = new Timer(); timer.Interval = 1; timer.Tick += new EventHandler(timer_tick); timer.Start(); void timer_tick(object sender, Eve
So I am making a tic tac toe game with user friendly GUI interface. I have almost completed the game but there seems to be a problem with my checkWin function. Up to this point, everything was working just fine until I added the checkWin function and the parameters associated it with it. Before I implemented the checkWin function, you would press a button, it would be marked X and then there would be an automated computer move that would place an O randomly on the board where there isn't an X. Code is posted below. When I run the code, and you press a button, the applet just freezes and you ca
Is it possible to remove legend elements corresponding to certain factor levels? In my example, I wish to remove legend entries for the grey factor levels (1-5), and only keep the levels "Best", "Suggested", and "Worst". I have tried a number of hacks already, but most of them have either removed the grey coloring of the bars (in groups of 25 each) or only left me with the bars that I colored red, yellow, and green. # ggplot2 barplot <- ggplot(training_results.barplot, mapping=aes(x=name, fill=factor(a))) # filling based on a column ##mapping=aes(x=name, fill=factor(a)) barplot <- barplot + ge
i have problem in crystall report, Here is my code following many reference site in google, // {@reset} //place in group header whileprintingrecords; global numbervar Sum_Cumm_Sum:=0; // {@increment} //place in section detail whileprintingrecords; global numbervar Sum_Cumm_Sum:=Sum_Cumm_Sum+{@getIP}; // {@display} //place in group footer whileprintingrecords; global numbervar Sum_Cumm_Sum; Where getIP is Formula, {#sumKN}/{#sumSKS} and code in it is running total field with reset on change group, {#sumKN} is running total field for field KN {#sumSKS} = is running total field for field SKS ====
I have code similar to the following: #include <boost/optional.hpp> ::boost::optional<int> getitem(); int go(int nr) { boost::optional<int> a = getitem(); boost::optional<int> b; if (nr > 0) b = nr; if (a != b) return 1; return 0; } When compiling with GCC 4.7.2 with Boost 1.53, using the following command: g++ -c -O2 -Wall -DNDEBUG The following warning is issued: 13:3: warning: ‘((void)& b +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized] Apparently, the root problem lies with GCC. See GCC Bugzilla Does anyone know a workaround?
I am trying to delete a named Worksheet from an .xlsm file. I followed the example posted here but it is not working for me. When I open the .xlsm file to check whether the Worksheet has been deleted, it is still there. Here is my code: $file2 = 'c:\file.xlsm' # destination's fullpath $xl = new-object -c excel.application $xl.displayAlerts = $false # don't prompt the user $wb2 = $xl.workbooks.open($file2) # open target $sh2_wb2 = $wb2.sheets | where {$_.name -eq "myWorksheet"} $sh2_wb2.delete() #Delete original sheet in template $wb2.close($true) # close and save destination workbook $xl.quit(
What are the purposes of/when are logic gates, multiplexers, and decoders used at the machine level? For example, I would guess that logic gates are probably used at the machine level when a programmer uses an if statement in a high level language. But what about multiplexers and decoders? What kinds of statements or programming concepts can you make in a language like Java that would translate to a multiplexer or decoder at the machine level? If you just put a multiplexer down in front of me and give me some inputs I can tell you what the output will be, I understand the concept as a complete
I would like to have a scoped variable in Spring. In Guice it is very simple: @Singleton class MyBean { @Inject @Named("session-scoped") private Provider<Integer> someString; void doSomething() { // returns a random number for a current session. // Each user session should generate new number, // but one session should keep the same number. Integer n1 = someString.get(); Integer n2 = someString.get(); assert n1 == n2; } } ... class MyModule extends AbstractModule { @Override protected void configure() { ... } @Provides @SessionScoped @Named("session-scoped") Integer someString() { return new R