0
votes
1answer
31 views

Hadoop Mapreduce: Is it possible to write mapper output to separate output files(not intermediate ones) without setting number of reducers to zero?

I need to anonymize GBs of data consisting of thousands of files. Doing this normally takes forever; hence, I plan to use an already installed pseudo-distributed Hadoop cluster on our server. ...
0
votes
2answers
32 views

How do I call a C Function from a Python File?

I am creating a GUI using Jython. I want to program my logic in C. How could I can call a C Function from my Python Code. Sorry if this a newbie question, but I have never worked with linking files ...
3
votes
4answers
77 views

how to define a class variable referring to an object of same class in python [duplicate]

Below is java code. I need to know the equivalent code in python: class A { public static A obj = new A(); }
2
votes
3answers
69 views

What exactly happens when there is an exception [closed]

This may be a very simple question,but just want to understand what exactly happens when there is an exception ,Is there a memory leak while doing operations in the memory or what is it.This is not ...
0
votes
1answer
21 views

Unix base64 encoding mismatch

I've been seeing some discrepancies in the base64 encoding in many utils from the unix util for ex: in java and python if I encode b I get Yg== but in unix I get Ygo= I need to use b64 from unix in ...
0
votes
1answer
46 views

Escape sequences vs predefined character classes (aka special regex characters) when encapsulated by double quotes

Perl, like Java and Python, has \s, the special regex character that matches whitespace, in addition to other special characters. In Perl, the following would not be valid: my $sentence = "The ...
0
votes
1answer
27 views

Can anyone recommend a library with which I can login to a web form, and than execute a javascript function to upload a file?

I need to be able to fill out a login form, submit the login information. And then it should upload a file. The catch is that I need to be able to do this at least 100 times concurrently. I've tried ...
-7
votes
0answers
101 views

Programming with a MacBook Pro [closed]

Is there any cheat sheet providing shortcuts for symbols used with different programming languages (e.g. ~, \, |, braces, etc.). MacBook Pro keyboard is beautiful, but clearly not functional at all.
0
votes
0answers
25 views

Unable to import .jar in python script using jython

I have created a single class (Calculator.java) with static functions (Add and Subtract) in 'calc.pkg' package. I am trying to refer these in a python script with the statement 'from calc.pkg import ...
0
votes
1answer
30 views

Trouble with Jython GUI

I am having a problem with my Jython GUI. I need to make the text field appear. I believe I am running into a problem with the Layout, but I am unsure about how to create a new FlowLayout in Jython. ...
0
votes
1answer
29 views

Can a hashed password using BCrypt in Java be recognised by Python?

I'm planning to hash user passwords using bcrypt, and to store these hashed passwords in a database. The server that handles user account creation, and inserts the hashed password to the database is ...
0
votes
2answers
24 views

Interpretation of Java or Ruby neccessary with every access?

JavaScript on the server can be interpreted to mashine code using Google's V8 Javascript Engine. But PHP and Ruby and Python and Java all have to run through an interpreter every time they're accessed ...
-2
votes
3answers
60 views

Sort and list all occurrences in a string array [duplicate]

I'm doing some coding exercise and come across this question on sorting a string array, and list all the occurrences of each unique string in the array. I've been trying to find out if I can do it ...
0
votes
0answers
36 views

Python Convolution equivalent in Java? - Java - Python

I am implementing a Weighted Moving Average algorithm with the help of convolution. It is quite easy in Python using the convolution function provided by numpy. The codes are as follows: # Method 2 ...
-6
votes
0answers
48 views

Python to Java partyguest [closed]

Hi I would like to converte that Python Code to Java Coud someone help me with a converting and a few comments: You are at a party with n people. One party guests start a rumor about another party ...

1 2 3 4 5 130
15 30 50 per page