text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Unit Testing a Java Chat Application I have developed a basic Chat application in Java. It consists of a server and multiple client. The server continually monitors for incoming messages and broadcasts them to all the clients. The client is made up of a Swing GUI with a text area (for messages sent by the server and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2714795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Webkit browsers renders multi-column layout contents wrong I have a two-column layout in a bootstrap modal. There should be a bootstrap dropdown button as the content. Firefox renders it correctly but webkit based browsers fail to display the button correctly. The button does not get hover or click events since its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26044969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Data available for all views in codeigniter I have a variable, contaning data that should be present in the entire site. Instead of passing this data to each view of each controller, I was wondering if there is a way to make this data available for every view in the site.
Pd. Storing this data as a session variable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16171046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Based on todays date, how to get the date of the penultimate working day? I try to figure out, how I can get the penultimate workingday from todays date.
In my query, I would like to add an where clause where a specific date is <= today´s date minus 2 working days.
Like:
SELECT
SalesAmount
,SalesDate
FR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73195169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using iText and C#, create named destinations at exact same page coordinate as each PDF bookmark I can iterate through all the bookmarks in my PDF file and create named destinations but positioned at the top of the same page as each bookmark and not at the same coordinates.
The code below works but how do I set the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71704881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Groovy AST INSTRUCTION_SELECTION phase vs SEMANTIC_ANALYSIS This piece of code works in my visitor in the SEMANTIC_ANALYSIS phase but not in the INSTRUCTION_SELECTION phase. It looks like I am not able to use the constructor call. If I change the constructor instead to Arrays.asList() it seems to compile. Any help i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53879768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extract a portion of a url I am trying to extract a portion of a URL using regex.
An example of my url would be:
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=food
Using php, how could I extract the data in the q variable or the sourceid variable?
A: Don't use a regex for this. Instead, use parse_url() a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11420093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mixing words from wordlist and making new wordlist I am trying to do mixing of words from wordlist and creating newwordlist
this is my wordlist
Nice
have fun
its cool
_
make
quote
backtick
_
jobs
public
over
what i am trying to do is mixing those words and want output like this.
Nice
make
jobs
_
have fun
quote
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53115307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can I run a VBScript script from inside Visual Studio 2008? I'm writing pop-up's for a website (please don't get angry. It's an internal application that shows energy usage for different buildings and the specification is to alert the users every time they log on) and I have a VBScript script that will run at the en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1255058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between User and System Installer of Visual Studio Code Visual Studio code offers User and System Installer but I have not found any description about the differences between these two options.
Could someone please shed a light on this for me?
A:
User setup for Windows
Announced last release, the user s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51832451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: Changing locale not working after `onResume` method? I have an app that is (more or less) translated in other languages. For this I used locale and for saving the language preferred by the user I used SharedPreferences.
Using this I managed to load the prefered language on any/every activity inside the app.
@O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42821852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to improve the binarization of Text document ( Fill missing pixels of alphabets, reduce noise etc) What (and how) can be done (like where exactly to plcae Erosion, Dialiation, Opening, Closing etc) so that the words are not cut / invisible in between (maybe some other binarization technique which works on most o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69003595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieving elements from a data.frame when the addressed column is misspelled I stumbled on some strange behavior of R when working with a data.frame called DS.inp.
In this data.frame I have a column called "DATE_EGFR_CREAT". When I wanted to print the elements of this column in the console to see what data this col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64721585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where is encapsulated the operators between integers? I need to group some operators to be able to call them by index and to do that I need to know where they belong.
When 1 + 1 is executed there is clearly an operator+(int, int) which must belong to a class that has some relation with ints -maybe a template paramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43609500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filtering Pandas Dataframe by the ending of the string I have a data frame called df and in one column 'Properties' I have listed properties of some product. These properties are a single sentence. Some of them have the same ending i.e. stock.
I was trying to do something like:
df.loc[df['Properties'][-6:] == 'stock... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62220132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to control order of replication? I have a huge master CouchDB database and slave read-only CouchDB database, that synchronizes with master database.
Because rate of changes is quick, and channel between servers is slow and unstable, I want to set order/priority to define what documents come first. I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15285520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: component moves to original position when window is resized I have a draggable JPanel that is added into a JFrame with the NetBeans IDE JFrame Form editor. When I run the program and drag the card somewhere other than the original position and resize the JFrame, the JPanel is returned to its original position.
Befor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20940913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MATLAB insert character separated with space from GUI I need to input characters from a GUI but they need to be separated by spaces. Every time a new character is added, it should be appended to the existing array.
For example:
*
*user enters 'a', the content of array is 'a'
*if user enters 'b' next, the content... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16719389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How would I write this as another form of PHP Hey I had a question I can not figure out how to write this code:
<div><?=$rs['username']." ~ ".$rs["webcam_status"]?></div>
When I have my code already set up as only 1 php markup, the code:
<?php
echo"
<!-- header -->
";
include "../../access/$template/header.php"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18687510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Remove all CSS Stylesheets from a page I want to show a page without any css applied. Is it somehow possible to add a jquery switch inside the page to disable all stylesheets?
Reason: I want to show a client the importance of Design by giving him the opportunity to disable the css styles of his site. It is way more ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14629593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: gurobipy.GurobiError: Element 302194 of a double array is Nan or Inf I am trying to solve an ILP that optimises a problem on graphs using Gurobi. Unfortunately, I get the following error when creating the problem:
gurobipy.GurobiError: Element 302194 of a double array is Nan or Inf.
The error is thrown when settin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71586022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Javascript selenium webdriver how to use if statement to check if web element actual exists? I would like to write a loop (if there is another solution even better) where i check if a given element exists. I have select list with huge amounts of options, when i select item various new items appear. They constist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74449675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the IP address of all sites in IIS6 using powershell 1.0? Using Powershell 1.0 under Windows Server 2003 with IIS 6.
I have about 200 sites that I would like to change the IP address for (as listed in the website properties on the "website" tab in the "Web site identification" section "IP address" f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1635882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: AttributeError: 'DataFrame' object has no attribute 'droplevel' in pandas I am getting a strange (to my understanding) message when I try to drop a level from a multi-indexed pandas dataframe.
For a reproducible example:
toy.to_json()
'{"["ISRG","EPS_diluted"]":{"2004-12-31":0.33,"2005-01-28":0.33,"2005-03-31":0.25,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56144794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: built in __dict__ is returning names of attributes with class names as prefix class Enrollment(object):
def __init__(self,enrollmentId=None, enrollmentReference=None):
self.enrollmentId = enrollmentId
self.enrollmentReference = enrollmentReference
@property
def enrollmentId(self):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49081980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Laravel: groupBy to nested json I have an end point the current response is as below, when we query with groupBy() it returns only one row, but how to get an nested json with hidden grouped values.
//controller
public function products()
{
$get_products = Product::groupBy('name')
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48387159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The wiki editor generates a link "Template:Multiple Image" (to a page that does not exist) when I try to use the multiple image template I am editing a wiki and I want to insert multiple images thanks to the {{multiple image}} template. Here is my code:
{{multiple image
| footer = foo
| image1 = foo1.png
| caption1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38570430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Gives me this error in gplus-api using JS Hello i just started learning gplus-api signin using javascript but i came across a error that says this Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').
This is my code i have refe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28092471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I register for WNS in Windows Developer Center I want to know how to enable Windows Notification Services for UWP apps.
A: The steps to enable WNS for your UWP app have changed, but the documentation has not yet been updated.
To enable WNS:
*
*Register for a developer account at developer.microsoft.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45476218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to join/merge two generators output using python I have two generators g1 and g2
for line in g1:
print line[0]
[a, a, a]
[b, b, b]
[c, c, c]
for line1 in g2:
print line1[0]
[1, 1, 1]
[2, 2, 2]
[3, 3, 3]
for line in itertools.chain(g1, g2):
print line[0]
[a, a, a]
[b, b, b]
[c, c, c]
[1, 1, 1]
[2, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8553349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: graphQl - return all in db I'm really new to graphQL
I have a simple graphQL schema here
const graphql = require('graphql');
const _ = require('lodash');
const {
GraphQLObjectType,
GraphQLString,
GraphQLSchema,
GraphQLID
} = graphql
const books = [
{ name: "book 1", genre: "book-1", id: "1" },
{ name: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57737181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enforce order of discord.js slash commands (using rest api) I am creating slash commands (without the slash builder), and when loading the slash commands, the order of which the options can be choosen from can be varied.
I want the user to have to specify the options in a set order, because each option depends on it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75524159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a hash map in java script and send the hash map to java action class I have text boxes like which will have some values and i would like to create a hash map with no duplicates and send that hash map to action class.
<input type="text" name="test1" value="test" />
<input type="text" name="test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32943869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Losing data in dictionary I have 2 lists that I am merging together like this, is there a way to merge without losing data because I have duplicates in the code?
new = dict(zip(sortedPrimes, a))
both sortedPrimes and 'a' are lists with 1062 elements when I use len(). However when I zip them together like this when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44713108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strategies for multithreaded singleton object in Rails I have a compelling use case where notifications happen in realtime at the server level. I would like to push these events out over a websocket using Rails' ActionCable. How Can I reliably maintain a long-lived singleton object to react to and push server-level ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56766811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Illegal instance declaration / Overlapping instances Given class X and Y, what's the most idiomatic approach to creating instances of each other's class? e.g. -
instance (X a) => Y a where ...
instance (Y a) => X a where ...
I'd like to avoid extensions. Also, I am aware that this could cause some nasty infinite r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16161384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why should cocos2d-iphone users avoid using the @2x file extension? Cocos2d-iphone uses the -hd extension for Retina images (and other assets). The cocos2d Retina guide speaks only vaguely of "some incompatibilities" regarding @2x:
Apple uses the ”@2x” suffix, but cocos2d doesn't use that extension
because of som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10960875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Getting required width of an overflowing span in JS <div id="wrapper" style="width:50px; overflow:hidden;">
<span id="innerPart" style="white-space: nowrap; width: auto;">Lorem ipsum...</span>
</div>
Hello interwebs,
I'm trying to get the width the innerPart would require to be fully displayed via JS.
Tried using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25648836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UITableView Transparent BackGround I got this code :
UIViewController *nextQuestionView = [[QuizzQuestionViewController alloc]init];
nextQuestionView.view.backgroundColor=[UIColor colorWithRed:0.44 green:0.44 blue:0.41 alpha:1];
[self.navigationController pushViewController:nextQuestionView animated:YES];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5939582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Correct way to pause a Python program I've been using the input function as a way to pause my scripts:
print("something")
wait = input("Press Enter to continue.")
print("something")
Is there a formal way to do this?
A: I have had a similar question and I was using signal:
import signal
def signal_handler(signal_n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11552320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "214"
} |
Q: Flutter : /opt/..../FETCH_HEAD exists in filesystem Arch While I'm updating and installing some packages on Arch Linux:
sudo pacman -Syu && sudo pacman -S --needed \
webkit2gtk \
base-devel \
curl \
wget \...
I got following error:
error: failed to commit transaction (conflicting files)
flutter: /opt/flutter/.git/F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72149226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run a function in a seperate python thread (Python 3.8.3)
I am using two python threads right now, one that has a while True loop
import threading
def threadOne():
while True:
do(thing)
print('loop ended!')
t1=threading.Thread(threadOne)
t1.start()
And another that checks for a ctrl+r input. When re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63293718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SEO Friendly URLs Rewrite Using Htaccess And Mod_Rewrite I have used below RewriteRule in .htacces file then it is working as /page/NDT:REBGEARPOSGM-8630342
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^page/([A-Za-z0-9\-:]+$)$ page.php?partid=$1
</IfModule>
But I want work as /page/NDT:REBGEARPOSGM-863034... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27501225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Operands could not be broadcast together with shapes data = pd.read_csv('./Book1.csv')
# Read the edgelist of the Wiki Talk network
G = nx.from_pandas_edgelist(data, data.columns[0], data.columns[1])
G = G.subgraph(max(nx.connected_components(G), key=len))
ic_seed_set = np.random.choice(G.nodes(), ic_seed_set_size)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74900584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: reorder x-axis with heatmap in R I am used to using ggplot2, so I have only used fct_inorder() to reorder my axes. It should be Gate 0 - 3 then Full. How do you do this with a base function like heatmap? df and code below. Thank you!
Wizard_heatmap <- structure(list(Response = c("LIZARD", "LIZARD", "LIZARD", "NR",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71579107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to compile xf86drm.h example On this page https://raw.githubusercontent.com/dvdhrm/docs/master/drm-howto/modeset.c someone has published an example on how to properly use the drm api.
I downloaded the source file compiled it with gcc -I/usr/include/drm/ modeset.h -o modeset, marked it as executeable chmod +x ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52806194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set-up a favicon? I am trying to do a very simple preliminary exercise to setting up a website which is creating a favicon.
This is the code I am using:
<!DOCTYPE html >
<html lang="en-US">
<head profile="http://www.w3.org/2005/10/profile">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18301745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Google Sheets SUMIFS where multiple criteria is returning 0 I am struggling to workout the correct Google Sheets formula to achieve the following.
In the sheet Profile below, column Purchased_Classes, I want to SUMIF the Qty in sheet Purchased_Completed, Where the Email matches and Item contains the text "Class"
I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59169310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to properly manage objects when using StreamWriter/Reader with TcpClient? I'm developing software that communicates with external hardware via ethernet (TCP), and I'm experiencing difficulties regarding the object management (StreamWriter/-Reader and TcpClient). There will be frequent/continual communication bet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49176783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Display more than 5 messages in TileUpdater I use in my application ScheduledTileNotifications and push 10 until 20 messages in the TileUpdateManager. But on the metro there are only 5 messages active. What can I do to display more than 5 notifications in the metro-Tile?
string tileXmlString = "<tile>"
+ "<v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13064620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: prevent jsTree from expanding the nodes after you select them programmatically Is there a way to select a node without expanding nodes? Every time I call the method to select a node, it will call the changed.jstree event and expand the nodes. I want to select a node without expanding the nodes.
$('#jstree').jstree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66571352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to paste source code to vim without error format? When I copy a python code, and paste to vim. the indents are all error.
but I paste into emacs or gedit, it is right.
that is difficult to describle, let's see the screenshot.
Notice:the blue and yellow line is just use the "indent guides plugin".
This is the so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9822618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: What's the best way to manage multiple dependent projects in Git or Mercurial? I have a dozen Java projects that depend on each other, and I frequently make changes that cross-cut all of them. However, many of the projects are libraries that could be used independently of each other as well.
Right now I use mercuri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8713521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programmatically determine human readable color (e.g. Red, Green, etc..) of an image I'm trying to come up with a script that will programmatically run through an image and tell me it's primary color(s).
Currently the script gets the RGB value of each pixel. Compares them against predefined rules and attempts to co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7501737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Get Login Token from WebSite via an API im trying to create a LoginActivity in Android.
I use the standard LoginActivity template provided by Android Studio.
What i wana do is give the user a nice LoginActivity, and when the login is successful an Activity with WebView showing the WebSite should be shown.
Now i have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29914863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bootstrap radio button and label in different lines when label is too long For some reason, Bootstrap is placing my label in a different line than the radio button (codepen) when the label is sufficiently large:
Without Bootstrap, the exact same code works as expected, with the label next to the radio button:
* {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45178425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: An HTTP POST, authenticated with the key Android I had to do HTTP POST, authenticated with the key. I had the key with me and also url.
But am getting 400 response code i.e, bad request error.
My code is:
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPassword... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7725053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Optimizing partial computation in Haskell I'm curious how to optimize this code :
fun n = (sum l, f $ f0 l, g $ g0 l)
where l = map h [1..n]
Assuming that f, f0, g, g0, and h are all costly, but the creation and storage of l is extremely expensive.
As written, l is stored until the returned tuple is fully evalua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10266954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Perforce Change List too Big In Perforce, I have created a change list that has over 200,000 files (by doing a rename on a directory). This change list is now too big to submit or revert. When I try, I get an error saying that the operation took too long.
I am now stuck with this change list that has my original d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22975758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android : Get the list of images to download added in the separate folder of Firebase console from a FireBase Storage API I have an list of images with separate folder that is directly uploaded in the Fire-base console. I want to download that images into the app to display it in the grid using an storage API.
I loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47261549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How should I implement a map of string to method in Java? I have a list of XML tags and a method for each of them inside my class, getting that tag as an argument and doing its work. So all the methods get the same input and I want to loop through the list of tags, calling appropriate method each time.
In Python I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2060619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: connecting to cassandra using hector PasswordAuthenticator issue I am using Cassandra 1.2.3 and I made following change in cassandra config to enable user/password -
authenticator: org.apache.cassandra.auth.PasswordAuthenticator
I am able to access the existing keyspace using cassandra-cli.
But having issues with q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18139626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble with Flex error handling The following flex file gives output that does not exit with a nonzero status when it encounters an error, like trying to write to /dev/full:
WS [ \t]+
%option noyywrap
%{
#include <stdio.h>
#include <stdlib.h>
int output(const char *);
%}
newline (\r|\n|\r\n|\n\r)
%%
#[^\r\n]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20448634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In MVP is onClick responsibility of View or Presenter? In the MVP pattern who is responsible to handle clicks on the UI?
E.g. the non-MVP approach would be something like:
counterButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
totalClicks++;
counterTextView.setT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38360478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Convert base 64 string into image return nil in swift let str = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAEsASwDASIAA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65231859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert a div css line to django template line for this particular line? I want to convert a particular template line containing and inline css into django template line which will show the static files too. The template line is
<div class="single-welcome-slides bg-img bg-overlay jarallax" style="background... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63390297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php program works locally but not on server I have this code running locally smoothly. The program only looks for a file and write data on it. When I try to run the same program on a server, it just does nothing...
This is the complete code:
<?php
$myFile = "Current_User.txt";
//$produto = "sapato1";
//$produto ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13904771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Javascript variable scope, how to pass variable values to outer functions? How can I get the variable to be equal to what is defined in the if statement? My first alert evaluates correctly but then loses scope. I need to take action outside of the $.get function.
function emailCheck() {
var emailExists;
var emailEn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28919764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: select items from one table with sum of records matching HAVING in subquery I have a table of cities with, among other things, population, latitude and longitude. I also have a table of airports with various info including latitude and longitude.
A query like this roughly obtains the population of all towns within 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39406920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Charts set default date range I've created a dashboard with the Google Charts API that has a DateRangeFilter and a ComboChart with a data point for every Monday over 3 months. It contains an actual series (which can be null) as a bar graph, and a goal series that always has data associated with it.
Ideally, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34816271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying multiple Text Files on screen in Unity This code successfully reads in one text file and allows it to then be displayed as a GUI Label. I was wondering how I would do this for multiple text files? I wouldn't want them together just as individual Labels, I was thinking possibly Arrays or Lists but I wouldn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32374373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: pd.scatter_matrix not working on pandas version 1.4.2 Here is my code:
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import train_test_split
fruits = pd.read_table('readonly/fruit_data_with_colors.txt')
from matplotlib import cm
X = fruits[['height', 'width', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73299300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facing GCC installation issue while setting up airflow on hadoop cluster I have set up a three nodes Hadoop cluster for dev environment wherein one act as a master
node and other being as a datanodes.
cluster has been set up with below configurations/version:
Operating System: Red Hat Enterprise Linux Server 7.7
py... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60926009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: my VPCis out of ips, how can I connect my EKS cluster to new VPC My VPC is out of IPs and we need more IPs. how Can I connect my EKS cluster to new VPC?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/71039333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Localize "CHOOSE AN ITEM" text on PickerFlyoutBase of ComboBox in WP8.1 How do I localize the PickerFlyoutBase.Title of a ComboBox in the Resources.resw language resource file in WP 8.1?
<ComboBox x:Uid="myUid" PlaceholderText="Some Text" PickerFlyoutBase.Title="Changed Text">
<ComboBoxItem Content="a"/>
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33370258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django buggy template tag - 'NoneType' object has no attribute 'source' Wondering what is causing this? Had me stumped for some time, everything checks out in console when running in pieces
as a side note:
the template is using the same object in other places and displaying values - the object in template is also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1879614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I create a dictionary that indexes the location of certain keys? I have a class that inherits the dict object.
my_subclassed_dict = SubclassedDictionary({
"id": {"value1": 144
"value2": "steve",
"more" {"id": 114}
},
"attributes": "random"
})
On initializ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30488061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python Multiprocessing speed issue I have a nested for loop of the form
while x<lat2[0]:
while y>lat3[1]:
if (is_inside_nepal([x,y])):
print("inside")
else:
print("not")
y = y - (1/150.0)
y = lat2[1]
x = x + (1/150.0)
#here lat2[0] represents a large number... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38147699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: background image doesn't show <div id="home">
<div class="landing-text">
<h1 class="display-2"> One Piece MMO</h1>
<button type="button" class="btn btn-primary btn-lg">Watch Trailer</button>
<button type="button" class="btn btn-primary btn-lg">Download Game</button>
</div>
</div>
#home{
background: url(image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49638017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to upload a file through Apollo Server v4 and graphql-upload? im using Apollo server v4 with expressjs and NEXTJS for my Frontend. What I want is to create a Mutation like uploadFile using upload-graphql to upload a file to my Backend Server.
upload type
export interface Upload {
filename: string;
mimet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75250427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Google Cloud Build keep docker images between steps by default? Does Google Cloud Build keep docker images between build steps by default?
In their docs they say built images are discarded after every step but I've seen examples in which build steps use images produced in previous build ones! so, are built imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71185816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing values with $_SESSION I have a problem while passing a value of an element via $_SESSION
<?php
session_start();
?>
<?php
echo "<table>";
$con = mysql_connect("localhost","root","") or die ("problem");
mysql_query("SET NAMES 'utf8'", $con);
mysql_select_db("dedomena");
$query = mysql_query("SELECT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32921774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Which of the growth rates log(log *n) and log*(log n) is faster? As n gets large, of the two functions log*(log n) and log(log* n) will will be faster?
Here, the log* function is the iterated logarithm, defined here:
I suspect these are the same, just written differently, but is there any difference between them?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19172489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Grouping of images using KMean I want to apply kmeans clustering on the data that i have obtained. Here,I am attaching a link. Please check.
http://arxiv.org/ftp/arxiv/papers/0910/0910.1849.pdf
From the algorithm provided in this link,I have done till 4th point of 3.2 ie of Block Truncation algorithm. I am not knowi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19744278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extract array column by selecting one field of struct-array column in PySpark I have a dataframe df containing a struct-array column properties (array column whose elements are struct fields having keys x and y) and I want to create a new array column by extracting the x values from column properties.
A sampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70262490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MS Word Macros 2003 - 2007 I work in a remote region with limited resources and technical expertise as a Project Manager and a new project I just got handed was the testing of MS Word 2003 macros on a MS Word 2007 platform. The Macros were initially developed by Corel a few years ago when we migrated they migrated t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7585324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: grunt assemble - page.json data not showing in layout template So I know this seems really silly, but I just can't get page data to display in my layout using grunt-assemble. I can get the page data to display in the page.hbs, and that to appear in the layout, but just can't get the page.json to appear in the layou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25395809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Parse and Stringify JSON in PHP 4
Possible Duplicate:
php4 with json data
Is there a library or class that provides parsing (JSON to PHP primitives/arrays) and stringifying (PHP primitives/arrays to JSON) for PHP 4?
A: This also looks like it may be a viable option
http://willshouse.com/2009/06/12/using-json_enc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3486226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: querySelectorAll vs getElementsByClassName When I looping through a nodelist obtained by querySelectorAll and add a new class for each one,it takes much less time(3ms) than which obtained by getElementsByClassName(100ms).Why?
var container = document.getElementById('box-container');
var button = document.getElementB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44320620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding pixel position public static void sample(BufferedImage image) {
int width = image.getWidth();
int height = image.getHeight();
int value[][] = new int[width][height];
int valueR[][] = new int[width][height];
int valueG[][] = new int[width][height];
int valueB[][] = new int[width][heigh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15553122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xcode 10 loses support for Subversion. Is there any free alternative? Relese Notes
So in the release note, Apple says that they have removed support for Subversion but I want to know there is any free alternative to use subversion tool freely.
I already heard about Versions, SmartSVN, and Xversion etc but this tools... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52478825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to limit width of Text in SwiftUI I was trying to make a speech bubble like so:
Text("Hello my name is Johnny Miller and I am new here")
.foregroundColor(.white)
.padding()
.background(.blue)
.cornerRadius(25)
However I thought the speech bubble looked way wider than it needed to be. Therefore I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65651326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Opengl hide parts of the screen (code snippet. I know it's ugly but i wanted to make it work before making it better so please don't pay too much attention to the structure)
I modified slightly the glfw example present in the documentation to have a triangle that rotates when pressing the right arrow key and draws ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42949571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Springboot REST API returning 404 when deployed in Jboss EAP.7.1.0 I have created a simple Springboot REST api, which is working fine when deployed in Tomacat container but returning 404 message when deployed in Jboss EAP 7.1.0. Need help to resolve this problem.
Below are the classes i wrote along with pom.xml and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68325751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to execute an unordered SQL script I have a SQL script but there is an issue with the order of the statements in the script
e.g.
INSERT INTO PERMISSIONS_FOR_ROLE (ROLE_ID, PERMISSION_ID) VALUES (3, 8);
INSERT INTO permissions (id, name) VALUES (8, 'update');
The order of occurrence in the script should have bee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67015606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c# - reading from binary log file that is updated every 6 seconds with 12k of data I have a binary log file with streaming data from a sensor (Int16).
Every 6 seconds, 6000 samples of type Int16 are added, until the sensor is disconnected.
I need to poll this file on regular intervals, continuing from last position ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1170538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Docker and localhost seem not to connect as should So Im new to Docker and wanted to start a docker container with a apache system on it that should just show one simple "hello world" php-file.
I followed a youtube tutorial for that.
Now I could set up the container and I could run the image, I also connected the po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50188086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Kubernetes pod readiness probe failed I have a kubernetes cluster running with minikube in my local. I am trying to train a model with KubeFlow's TFJob operator which implements TensorFlow's distributed training strategies.
The YAML for the TFJob looks like this
apiVersion: kubeflow.org/v1
kind: TFJob
metadata:
na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70529033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Issues with font/text-color in css I keep having issues with the text-color rule in css whereas I'll have a code like this:
#horizontal > ul > li > a:hover {
background-color: rgb(255,101,101);
text-color: black;
And the background color will change, but the text remains blue.
A: The colour property in CSS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37976418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Authenticating gcloud SDK in Cloud Run with user credentials I'm currently working on a project that will automatically set up a new Firebase/Gcloud project. It relies heavily on the Firebase CLI and gcloud SDK with user credentials for several mandatory steps.
I am now trying to move this project to a Docker contai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60968104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.