text
stringlengths
70
452k
dataset
stringclasses
2 values
Should a Product Owner (PO) be part of the Engineering team or Product team? Our start-up is currently build this way: Engineering Team which contains the following resources: Director of Engineering Mobile, front-end and back-end developers Quality Assurance Infrastructure engineer Product Owner (PO) Product Team:...
common-pile/stackexchange_filtered
Pythonic way of splitting loop over list in two parts with one iterator I am processing a text file with an irregular structure that consists of a header and of data in different sections. What I aim to do is walk through a list and jump to the next section once a certain character is encountered. I made a simple examp...
common-pile/stackexchange_filtered
Constructing a warped image given optical flow gradients I have gradients for optical flow in the x and y direction, and I am wondering how to transform an image according to those gradients: The arrow points to the direction of the gradient calculated What would be the best way to construct the image for a given tim...
common-pile/stackexchange_filtered
Letter "E" Stopped Working - Linux Mint Can't login to my Linux Min 19 Cinnamon Laptop because I singular key stopped working! Any ideas around this? Plug in a keyboard. @Wildcard I'm literally on vacation in the middle of nowhere and didn't bring one ughh lol Login and change the keyboard layout. (But how to login...
common-pile/stackexchange_filtered
How to use "q" Query parameter in Bitbucket REST API? So I am aware of the fact that you can get the files in a repository by using https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug} API. The API also supports the q parameter where you can query the resulting json object based on various fields in it....
common-pile/stackexchange_filtered
How do I derive Pauli's exclusion principle with path integrals? I am trying to prove Pauli's exclusion principle using path integrals. My starting point is the configuration space $\mathcal{C}$ for two indistinguishable particles in 3D: $$ \mathcal{C} = \{ \{x_1,x_2\}:x_i \in \mathbb{R}^3,x_1 \neq x_2 \} $$ The fundam...
common-pile/stackexchange_filtered
How to use Caret to tell which line it is in from JTextPane? (Java) Problem: I have CaretListener and DocumentListener listening on a JTextPane. I need an algorithm that is able to tell which line is the caret at in a JTextPane, here's an illustrative example: Result: 3rd line Result: 2nd line Result: 4th line and i...
common-pile/stackexchange_filtered
Feature-selection and prediction from sklearn.feature_selection import RFECV from sklearn.metrics import accuracy_score from sklearn.model_selection import cross_val_predict, KFold from sklearn.preprocessing import StandardScaler from sklearn.ensemble import RandomForestClassifier from sklearn.pipeline import Pipeline ...
common-pile/stackexchange_filtered
How to pass test configuration parameters to 'Call to Test' in HP ALM When you create test steps with parameters in test instance you can set up several test configurations (to run the same test with different set of parameters). Test instance with params (and sets of params) could be used in another test instance as ...
common-pile/stackexchange_filtered
How to identify L2 devices in a Wide Area Network? This is sample of a traceroute to google.com: TraceRoute from Network-Tools.com to <IP_ADDRESS> [google.com] Hop (ms) (ms) (ms) IP Address Host name 1 0 0 0 <IP_ADDRESS> - 2 Timed out Timed out Timed out ...
common-pile/stackexchange_filtered
Adding the :hover pseudoclass Is there any way to programmatically have D3 add a ":hover" to a selection? If not, how can I do this using straight JavaScript? Did you look in the D3 docs? What have you tried? etc. etc. You have enough rep to know better. Possible duplicate of How do I simulate a mouseover in pure Ja...
common-pile/stackexchange_filtered
Strong_parameters not working With Ruby 1.9.3, Rails 3.2.13, Strong_parameters 0.2.1: I have followed every indication in tutorials and railscasts, but I can not get strong_parameters working. It should be something really simple, but I can not see where is the error. config/initializers/strong_parameters.rb: ActiveRec...
common-pile/stackexchange_filtered
Graph similarity measure with unknown node correspondence How to measure the similarity between two graphs G1 and G2 with equal or unequal number of nodes where, the correspondence between the nodes of the graphs are unknown. For example, node A of G1 has moved to the middle of G2. Is there any similarity measure algor...
common-pile/stackexchange_filtered
Decrypting a JWE token using JOSE with A256GCM I'm curious about this and wanted to see if anyone understands it. I am encoding a payload using the jose-jwt nuget in .NET: Jose.JWT.Encode( payload, keyBytes, JweAlgorithm.A256GCMKW, JweEncryption.A256GCM, extraHeaders: extraHeaders) and this ret...
common-pile/stackexchange_filtered
What would be an "earnest description" on the difference between language and grammar? I came to this website searching 'difference between language and grammar' and found this question “What is the difference between grammar and usage?” I thought on what was said there and came to realize the word 'usage' is given its...
common-pile/stackexchange_filtered
jQuery datatable if data length greater than certain length I once used PHP to print my datatables. When I got to a particular column that had a string greater than 17 characters, I would use the following to print ellipses after the 17th character: if(strlen($row[tli]) > 17){echo "<td><a href='#'>".substr(row['number...
common-pile/stackexchange_filtered
App Signed by custom Certificates giving error code: 0x800B010A I made a CA (imported into CurrentUser/Root) and used it to make signing certificate (imported into CurrentUser/TrustedPeople). It says "This certificate is OK." and it signs my certificate fine but it get "This app package’s publisher certificate could no...
common-pile/stackexchange_filtered
AttributeError when rewriting code so it works in Python 3.4 I am trying to alter the code below so that it works in Python 3.4. However, I get the Error AttributeError: 'int' object has no attribute 'replace' in the line line.replace(",", "\t"). I am trying to understand how to rewrite this part of the code. import o...
common-pile/stackexchange_filtered
Infinite dimensional smooth projective geometry Are there two infinite dimensional (Banach or Hilbert) manifolds $(P,L)$ which satisfy the axioms of a smooth projective geometry desribed in this page: Smooth Projectove Geometry If X and Y are two non-isomorphic Banach spaces would their projectivizations P(X) and P(Y...
common-pile/stackexchange_filtered
Can't click json file with python selenium webdriver in firefox I try to gather the json files of the french lobby register for a research project, I can't click the field with my selenium webdriver. that's the location of the button I tried to click both the text or the button itself, but I got an error back, weirdly ...
common-pile/stackexchange_filtered
jquery(elem).parents('form') returns unexpected nodes IE 6 & 8 <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <form><input type="submit"/></form> <form><input type="submit"/></form> <form><input type="submit"/></form> <script type="text/javascript"> $('input:submit').clic...
common-pile/stackexchange_filtered
Set Color of UIActivityIndicatorView of a UIRefreshControl? Is there a way to set the color of the activity indicator (probably UIActivityIndicatorView) of a UIRefreshControl? I was able to set the color of the 'rubber' and the indicator: [_refreshControl setTintColor:[UIColor colorWithRed:0.0f/255.0f green:55.0f/255.0...
common-pile/stackexchange_filtered
Rails - Querying Noticed Notification with the params id I have searched through the related questions for example this one and the solutions marked there doesn't work for me. So here is my problem: I want to get a list of notifications that are for a specific recipient, and the notifications have to be made on comment...
common-pile/stackexchange_filtered
Lotus Domino mail routing and separation Mail Separation – Goal is to allow mail separation between different OUs while minimizing the number of servers required. a) Users of the same OU can email back and forth. b) Member of different OUs cannot receive emails from other OUs c) When User sends mail from each sub OU...
common-pile/stackexchange_filtered
Using the distributivity law for propositional logic I know how to use the standard rule $$p\vee (q\wedge r)\equiv (p\vee q)\wedge (p\vee r)$$ but what if I have a two by two statement like: $$(p\vee q)\wedge (r\vee s)$$ ... I'm guessing that it follows a similar rule to the FOIL method in algebra? I took a shot in the...
common-pile/stackexchange_filtered
difference between an adjective phrase and an adverbial phrase In a web-site, I happen upon a sentence I can’t understand grammatically. Famished from the journey, John decided to hunker down with his horse. They mark that a front part is an adjective phrase. I think this phrase can be changed into the following Bec...
common-pile/stackexchange_filtered
React dropdown with options from Firebase realtime db (Formik + materialUI) I'm having trouble with the dropdown that maps through the data I fetch from the Firebase realtime db and assigns selected value to the Formik form in order to save it to another object in the database. I have restaurants object with pushId key...
common-pile/stackexchange_filtered
Why else statement is executing although if statement is true? import java.util.Scanner; class candidate { public String name; public int count; public candidate(String name) { super(); this.name = name; } } public class DayScholar { public static void main(String[] args) { ...
common-pile/stackexchange_filtered
C#/Visual Studio trying to change the content of random array and getting 'Object reference not set to an instance of an object.' error I am trying to make a tic tac toe game where the user inputs the dimensions and then a board is created with buttons. When a button is clicked, it is disabled and the text inside chang...
common-pile/stackexchange_filtered
Observer never called I have two functions override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) NSNotificationCenter.defaultCenter().addObserverForName("personalDataDidLoad", object: self, queue: NSOperationQueue.mainQueue()) {_ in print("Received notification") ...
common-pile/stackexchange_filtered
sql to find certain ids and fillins I'm needing to pull 3 rows from a table for a featured section on my site. I first retrieve a list of 3 items that are sold the most from an orders table. Then I need to check to see if there are any left. If so, pull their details from the inventory table. The problem is, I always n...
common-pile/stackexchange_filtered
JSON Path to extract first element from the search result I'm new to JSON Path. Note: I have already checked over some questions on SO, it's not helping me with my issue. I have an example JSON given below : { "phoneNumbers": [ { "type": "iPhone", "number": "0123-4567-8888" }...
common-pile/stackexchange_filtered
Multi-nested ui-views Here's my config: $stateProvider. state('frontPage', { url: '/', templateUrl: 'index.html', controller: 'MainCtrl', onEnter: function() { console.log('frontPage'); } }). state('frontPage.interestGame', { url: 'interest', templateUrl: 'interest-game/index.htm...
common-pile/stackexchange_filtered
CSS only: Replace all characters in <p> with the same character I have a <p class="hidden"></p> with some text in it. I want to replace all characters in the paragraph with the same character, e.g. a question mark. Note that this is not a viable solution since it requires to specify aprioristically the length of the ne...
common-pile/stackexchange_filtered
1 Jayaraman: The path integral for this gauge system keeps giving me extra terms I didn't expect. 2 Blanchard: What kind of terms? Are they just regularization artifacts? 3 Jayaraman: No, they persist even after I clean up the calculation. When I examine the asymptotic behavior of the gauge field at the boundary, som...
sci-datasets/scilogues
Vertical IconTabBar in SAPUI5 I am programming a SAPUI5 application and I would like achieve a vertical menu seemed IconTabBar. IconTabBar only allows me horizontal configuration. Can I simulate that behavior with another components? I was trying to create a "different" IconTabBar that only has one IconTabFilter as an ...
common-pile/stackexchange_filtered
Icons in system tray panel have changed size in 18.04 I'm not sure what I did, but the size of the icons and clock in the system tray panel have changed and they are huge. Adjusting screen edge and height does not help.
common-pile/stackexchange_filtered
waiting for a/the good sale price Have you bought that fashion coat yet? - Not yet. I’m waiting for a good sale price. Have you bought that fashion coat yet? - Not yet. I’m waiting for the good sale price. Which article is appropriate here if we are waiting for an occasion when that coat will be sold at a lower price...
common-pile/stackexchange_filtered
Error: operand size mismatch for `vpsubw` The vpsubw AVX2 instruction is being used normally (the number of operands and the width of operands are not problematic), but the following error still occurs: Error: operand size mismatch for vpsubw If all the instructions about vpsubw in the code are commented out, the err...
common-pile/stackexchange_filtered
Translate simple Jquery to VanillaJS I have this: $('#night > li').appendTo('#day'); The code moves all <li> elements of <ul id="night"> to the end of <ul id="day">. Please, how can I translate this into VanillaJS? I mean, how do I rewrite the code so I do not need Jquery? Have this so far: document.getElementById('nig...
common-pile/stackexchange_filtered
How to stop people from closing as off-topic when asking how to do something Recently most questions that have been most useful to me (mostly regarding javascript) have been closed as off-topic for "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topi...
common-pile/stackexchange_filtered
Time spent to sort $10^7$ records with insertion sort I am stuck with my revision for the upcoming test. The question asks" An implementation of insertion sort spent 1 second to sort a list of ${10^6}$ records. How many seconds it will spend to sort ${10^7}$ records? By using $\frac{T(x)}{T(1)}$ = $\frac{10^7}{10^6}$ I...
common-pile/stackexchange_filtered
Borel sets in Cramer's book I have two following quiestions. On the page 13 (Mathematical methods of statistic) the set R of all rational points x = p/q belonging to the half-open interval (0,1] is considered. It's claimed that every point of [0,1] is a limiting point of R. And the limiting point z is called a limiti...
common-pile/stackexchange_filtered
BigQuery table schema types not being translated correctly in apache beam There is a bug in the python Apache Beam SDK for BigQuery currently which translates BQ TIMESTAMP incorrectly to BQ DATETIME. This seems to have been fixed, but I have a feeling it may be in a pre-release not the latest stable release (2.49.0). T...
common-pile/stackexchange_filtered
How do you set the add guake to the list of alternative terminals on Kubuntu 22.04? I've recently installed Kubuntu 22.04 and am trying to set guake as the default terminal emulator. I can't seem to find any instructions on how to do it with KDE. You can set guake as an alternative terminal in Kubuntu 22.04 by wrappin...
common-pile/stackexchange_filtered
json_serialize(...) is returning null even when the input is not null I have a query like this: select json_serialize(data) from mytable Where data is a column that contains JSON but I get a null returned from json_serialize. Is this a bug? By default, json_serialize returns VARCHAR2(4000). See: https://docs.oracle...
common-pile/stackexchange_filtered
Forwarding Old URL with trailing slash I was using the Divi builder with WordPress for quite some time to build my site. I outgrew it and switched to Webflow so that custom code would be easier to achieve. I have gotten the site live, but there is a major problem... Divi Builder created URL's that looked like this http...
common-pile/stackexchange_filtered
Is it possible to hide a tab from a group of users in Team Foundation Server 2010? I have a tab (Internal Development Review) on one of my work item forms that I would not like to show to all users: Is it possible to hide this from a specific user group (or conversely, to grant it to another group)? I cannot find a wa...
common-pile/stackexchange_filtered
Negative feedback from block diagram to circuit components I can read and understand the block diagrams which show the internal amplifier and the feedback network and I can read and understand the schematics of several single-BJT amplifier circuits, but I have a very difficult time going back-and-forth between the two....
common-pile/stackexchange_filtered
+- 5V differential ADC in the market? I want to integrate an analog signal with +- 5v differential output with my rasberry pi 4b. I have 3 inputs. I am quite new to ADCs and drowning in information instead of finding a solution. Can someone point me in the right direction? Have you tried at mouser.com and other vendor...
common-pile/stackexchange_filtered
How to select unique values only in one field in an Access query I have looked several places on how to have a single distinct column while displaying other related data to the unique field. All of the examples I have seen only involve a single table and a handful of fields which isn't applicable to my situation (see c...
common-pile/stackexchange_filtered
Confusing julia behavior. @everywhere macro changes the scope of local variables to global I just encountered a very confusing julia behavior. I always thought that variables defined inside a function remain local to that function. But in the following example, the scope changes. I define a simple function as below usi...
common-pile/stackexchange_filtered
Add values to loop in corresponding order Hey so I want to add the information that is retrieved from my parser in this case the InfoLoop() to a variable with all the attributes. movie_list = jp_movies, maxx # these values in movie_list include tokens ei(107290) that the parser takes and # it then grabs al...
common-pile/stackexchange_filtered
How to find and replace json with shell variables using jq? I have read properties with jq from a json object and have stored them to variables. I want to now read these variables and essentially find and replace a word inside the string with a global shell variable. I've set my json ID's from my JSON file # Set Json...
common-pile/stackexchange_filtered
How a String can be modified if String is not final In String class, I see all instance variables are private. I see methods to operate on String. If final keyword is not there in String class, all other code remains as is, and we sub-class the String class, since variables are private they are not accessible outside t...
common-pile/stackexchange_filtered
Prove the following $e^{iAx} = \cos (x)I + i \sin (x) A$ the question says as following, Let x be a real number and A a matrix such that $A^2 = I$. Show that the $e^{iAx} = \cos (x)I + i \sin (x) A$. my problem is that I don't know how to deal with this equation using matrix form, I know how to deal with such a quest...
common-pile/stackexchange_filtered
Multi-coloured circular div using background colours? I'm trying to create a multi-coloured circle in CSS to simulate a wheel of fortune, I've tried using linear gradients but it just applies strips of colour running vertically through the circular div rather than being coloured areas as if you were cutting up a pizza ...
common-pile/stackexchange_filtered
Does firebase store user's name and email when using FCM for push messages? I'm trying to understand how much data is stored on Firebase when we use FCM to send a push notification. I know we need to have a registered unique device ID on firebase to ensure that device gets a notification. I want to know in specific if ...
common-pile/stackexchange_filtered
How to select values where another value is an array? I'm trying to select values where another POST values are an array, I do not know what is wrong with my query giving me this error. I'm trying to know what courses are just added to table. I have five inputs in the form. Notice: Trying to get property of non-object ...
common-pile/stackexchange_filtered
Is it possible to add a diagonal line or slashbox to a very simple template of a table? I have a very simple template of a table I would like to add a slashbox at the top left corner (entry|item), similar to this post LaTeX table cell with a diagonal line and 2 sub cells However, I have tried to add their code on top ...
common-pile/stackexchange_filtered
Google Cloud permissions I have a hosted server on Google Cloud Platform (GCP), and I am trying to overwrite some files. I was able to make a connection through WinSCP, and I'm able to find the directory of the files I need to overwrite, however, all files are read-only. How can I manage the permissions to give mysel...
common-pile/stackexchange_filtered
Any resource explaining how to get a volume charge density from a surface charge density? Where (book, lecture notes) could one find a clear explanation (better if examples are provided) about how to find the volume charge density in a point given the surface charge density there? I beg your pardon if I haven't bee...
common-pile/stackexchange_filtered
java.util.Function source code wildcard boundary usage understanding Trying to understand the source code of java.util.Function Have attempted to create my own version of this class, on comparing my version with source code, found one difference - unable to understand the reason behind usage of a generic type boundary...
common-pile/stackexchange_filtered
Calling a powershell function using a .bat file I would like to know how to call a powershell function using a .Bat file. I have this simple function: (Script.ps1) function testfunction { Write-Log "Calling from Bat file" } and I would like to call the function testfunction within the .Bat File. powershell .\Script.ps...
common-pile/stackexchange_filtered
App Project - Displaying Data Please see attached. I need to represent this data within an App. My thoughts are just to keep it as a list - with pretty icons. The user will be doing nothing with this data, it is just for reference. I did consider putting this info into boxes, but the boxes may look clickable and also ...
common-pile/stackexchange_filtered
After upgrading to Xcode 6.3, on launch I now get the error: "The Bonjour service could not be resolved." After upgrading to Xcode 6.3, I now get an alert panel with the error: The Bonjour service could not be resolved. The server may be temporarily unavailable. Contact your system administrator. How can I fix this? T...
common-pile/stackexchange_filtered
How to get a JSON object from a file and map it to a Java class using Apache Camel routes? I have created a RequestRoute which extends RouteBuilder: @Component public class RequestRoute extends RouteBuilder { @Override public void configure() throws Exception { from("file:input?noop=true").to(User.class); } And i...
common-pile/stackexchange_filtered
How can I read faster from Kafka I created a new Kafka server (I created 1 broker with 1 partition) and I succeeded to produce and consume from this server using java code, but Im not satisfied from the amount of events that I'm reading per second as a consumer. I have already played with the following consumer setting...
common-pile/stackexchange_filtered
An example in Yet Another Haskell Tutorial I am new to Haskell. In Yet Another Haskell Tutorial, page Type Basics, I find this example: count2 bTest list = foldr (\x cnt -> if bTest x then cnt+1 else cnt) 0 list but I think that the lambda function \x cnt -> if bTest x then cnt+1 else cnt is not a pure function, give...
common-pile/stackexchange_filtered
Certificate extension value contains 2 extra bytes (\u0004\u0002) octet encoding for testing purposes my unittest generates a test certificate with custom extensions using BouncyCastle for .NET core. Generate function static internal class CertificateGenerator { public static X509Certificate2 GenerateCertificate(st...
common-pile/stackexchange_filtered
Printing figures with thin hulls / double outer layers In Blender etc. many 3D models are composed of objects with double hulls. For instance, an arm might not just a hollow cylinder with a single outer surface but is often "moulded" out of a torus and thus has 2 surface layers like any real world object would have. If...
common-pile/stackexchange_filtered
How do I break this infinite loop Im trying to create a menu. The idea is to make the script loop back to the main menu when the number two is selected. It loops back but when i select number 1 it just keeps looping. How do i fix this. import os import sys def mainmenu(): print """ this is a test menu """ mainm...
common-pile/stackexchange_filtered
What exactly is CTF and how can I as programmer prepare for a CTF with beginner-friendly people? I reached out to an old friend of mine who was a terrific programmer back in my school days and he invited me to attend one of the CTF events with his university group. This group seems very beginner friendly and open to ev...
common-pile/stackexchange_filtered
Can't install csv module I am a mac user and today I tried installing csv today and here is command pip install csv.But unfortunately it returned the following error Could not find a version that satisfies the requirement csv (from versions: ) No matching distribution found for csv I have Python version 2.7.13 and I h...
common-pile/stackexchange_filtered
Begin writing a PKCS token on java card I want to start implementing pkcs on java card. I have searched a lot but I couldn't find where to begin. I know that a standard token should support PKCS#11 functionalities and probably PKCS#15. should I read those two standards and just do my best to implement them on my card? ...
common-pile/stackexchange_filtered
How do I get the most out of a Science officer in Star Trek Online? I created a science officer, and I got to Lieutenant Commander, but I spent all my upgrades on weapons and ships. I think I'm doing it wrong. What should I be trying to focus on with a science officer? What role should I be playing in combat in singl...
common-pile/stackexchange_filtered
Is there a way to wrap an entire javascript so it only runs on a specific HTML ID? I have inherited a third party Javascript - it's about 7000 lines when de-minified - that I need to use to open and close a panel of content when a link is clicked. It works fine when I import the HTML and js file to a content module in ...
common-pile/stackexchange_filtered
com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.whatsappclone.User I am not able to retrieve data from Firebase it always crashes saying: com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.w...
common-pile/stackexchange_filtered
Define a pointer with an arbitrary span If I have a large array where the data streams are interleaved in some complex fashion, can I define a pointer p such that p + 1 is some arbitrary offset b bytes. For example lets say I have 1,000,000 ints, 4 bytes each. int* p_int = my_int_array; This gives me *(p_int+1) == my_...
common-pile/stackexchange_filtered
MsTeams chatbot, OnTeamsCardActionInvokeAsync method is being hit twice Learning about chatbot for MsTeams, I am facing an issue with : WebApp DialogBot.cs class, method OnTeamsCardActionInvokeAsync It is being called twice sometimes and I can reproduce the behavior when debugging. Not only this method but in general o...
common-pile/stackexchange_filtered
Completion Handler to trigger collectionView Reload once Images are downloaded - Xcode [SWIFT] I'm using a code I got off here to download some images and present them in a collection view. Heres the code: func downloadImage (url: URL, completion: () -> Void){ let session = URLSession(configuration: .default) l...
common-pile/stackexchange_filtered
How do i stop/cancel the segue when UIAlertView triggered I got a button that leads to a tableViewController. I created UIAlertView that gets triggered when the resultArray is null, which also means there is nothing to show on tableView but when user clicks ok, nothing changes and it goes to empty tableView. How can I ...
common-pile/stackexchange_filtered
Given $P(A|B), P(A|B^c)$ and $P(B|A)$ how do I find $P(A)$ and $P(B)$ For reference sake: $P(A|B) = 1/3$, $P(A|B^c) = 2/3$ $P(B|A) = 1/2$ Now, I know $P(A∩B) = P(A|B)*P(B)$ and that $P(A|B^c) = P(A∩B^c)/P(B^c)$ But where to go next I do not know. I think I need to find either $P(A∩B)$ or $P(A∩B^c)$ which I would be a...
common-pile/stackexchange_filtered
Minimum time lock in java I'm looking for a way to limit access to a method in java to no more than once every X seconds. Here's my situation : I want to run this code in parallel with multiple threads : private MyService service; public void run() { // Send request to remote service InputStream response = serv...
common-pile/stackexchange_filtered
Creating a new Java project I am able to create a default project in PDE just like mentioned here. However I want to know how to create a Java project. How can I do that? As a minimum you need to add the Java project nature to the project you create. Use something like: private void addNatureToProject(IProject proj, S...
common-pile/stackexchange_filtered
Reading text-file until EOF using fgets in C what is the correct way to read a text file until EOF using fgets in C? Now I have this (simplified): char line[100 + 1]; while (fgets(line, sizeof(line), tsin) != NULL) { // tsin is FILE* input ... //doing stuff with line } Specifically I'm wondering if there should be ...
common-pile/stackexchange_filtered
What's the fastest and most memory efficient BZip2 decompression tool to use in Java Currently using the Apache Commons Compress package which uses about 60% of the overall heap and takes around 6 minutes to decompress about 500 files each 4-5Mb when decompressing BZip2 files. My main problem is I can't find anything t...
common-pile/stackexchange_filtered
preventDefault doesn't work I have a problem with preventDefault function. It doesn't work. Here is my JS file: (function() { var app = { initialize : function () { this.setUpListeners(); }, setUpListeners: function () { $('form').on('submit', app.submitForm); ...
common-pile/stackexchange_filtered
Random Quote in java Problem Statement: Create a class diagram and Java code for the following system and scenario, taking into account the possibility of future extensions. "The system is a command line utility that prints a short 'quote of the day' on the user's terminal when run. To begin with the quote is ...
common-pile/stackexchange_filtered
Fresh install Arch Linux freeze I've installed Arch Linux using linux kernel (non lts version), with amd-ucode (pacman -S amd-ucode). The screen is totally frozen. I can't CTRL + ALT + F1, 2, 3 .. , RCTRL + F1, 2. What can I do? Have you tried logging in? I assume that fails too? What happens if you just type your us...
common-pile/stackexchange_filtered
Query Optimisation: SUMIF and CASE WHEN I am writing a query to pull the number of rewarded ads. To do so, I have to sum "rewarded_ad" events from event_name. Then, I am cleaning up null values in a second statement. So currently, my query includes a subquery. However, is there a way to do this without utilising a subq...
common-pile/stackexchange_filtered
Override home and back button is case a boolean is true I was wondering if I can override the action of the back and home button is some cases. Normally these buttons should just react like they always do, but in a case some setting is true I want to override the buttons and let them call my own methods. I´m using thes...
common-pile/stackexchange_filtered
setting $ENV{variable} when calling python I'm new to Python and would like reproduce a convenience I used when working in Perl. When calling a Perl script I usually set some $ENV variables (like VERBOSE, DEVELOP and DEBUG). Inside the called script I recover their values using my $verbose=$ENV{VERBOSE}; my $develop=$...
common-pile/stackexchange_filtered
ES6 pass function as parameter example I don't know JS/ES6 well enough to describe my question in code. So most of this question is conceptually and in pseudo code. Say I have a Contractor class like this: class Contractor { constructor(jobFn) { // save jobFn; } dailyRoutine() { // let result = DriveToWo...
common-pile/stackexchange_filtered
How to correctly rotate and move a 3D perspective camera in LibGDX I have been trying on and off now for a few weeks to correctly handle object and camera rotation in LibGDX. I have the below move and yrotate methods in a custom class for my objects, 'this' being a ModelInstance: public void move(float i) { // TODO...
common-pile/stackexchange_filtered
Which part of the CheckedTextView was clicked? A checkedTextView shows a text box and a checkbox. Is it possible for code to determine if only the checkbox part was clicked? If so, the code could respond differently the user clicking the checkbox or the text view. I think you can't know which part has been clicked, j...
common-pile/stackexchange_filtered
Postgres JOIN on timestamp fails Trying to do a simple FULL OUTER JOIN on a timestamp and it is outputing the full cartesian product instead of matching identical dates. What is wrong here? SQL Fiddle with example data CREATE TABLE A ( id INT, time TIMESTAMP ); CREATE TABLE B ( id INT, time TIMESTAMP...
common-pile/stackexchange_filtered
Java Regex text between complex characters I'm trying to pull the text out of a string with the help of regex, but I haven't used it much before and I can't figure out the format for the Pattern.compile. I want to cut out the weight (9 ounces) from the following string: <li><b>Shipping Weight:</b> 9 ounces (<a href="ht...
common-pile/stackexchange_filtered
Python argparse and sys.argv I am making a script which automatically download and rename albums from bandcamp purchases to my server. For now i am passing sys.argv to the script like python script.py Artistname Albumname Year DownloadLink Genre then in the script i set variables like artist = sys.argv[1] album = sy...
common-pile/stackexchange_filtered
How do I deal with non-English *links*? My question revolves around answers posted in English referencing sources in another language. After looking at How do I deal with non-English content? and How to deal with non-English posts I can find no reference to links in this case. For example Lucas has posted a good answer...
common-pile/stackexchange_filtered