text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Bug : SwipeRefreshLayout view doesn't get removed from Fragment container My application contains a drawer with two Fragments. Each Fragment contains a layout with SwipeRefreshLayout view.
If I replace Fragment in container when SwipeRefreshLayout is refreshing, the view of the fragment gets stuck in the FrameLayout... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33867546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: wrong p-value when calculating by stats.ttest_ind I have tried to calculate the p-value of two pandas series- Ref_for_avg and CNOGA_for_avg. I also calculated the mean and std of both series. The mean and std calculations are correct, however for some reason the, p-value which is calculated on the same 2 series is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44949568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to test a controller in Node.js using Chai, Sinon, Mocha I've been learning how to write better unit tests. I am working on a project where controllers follow the style of 'MyController' shown below. Basically an 'async' function that 'awaits' on many external calls and returns a status with the results. I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63896281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Some weird transformation to pandas dataframe My dataframe:
df = pd.DataFrame({'a':['A', 'B'], 'b':[{5:1, 11:2}, {5:3}]})
Expected output (Each Key will be transformed to 'n' keys. Example row 1, key =5 (with value =2) get transformed to 5, 6. This change also need to reflect on 'a' column)
df_expected = pd.DataFra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74212442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/xxxxx LibGDX Android I'm making a Android game with LibGDX and I want to use the Google Play Game Services API but I can't get it working.
Here's what happens when I try to login:
06-12 20:08:47.745: E/Volley(4046): [253] tk.a: Unexpected r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24191311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get value of checked radio? HTML:
<div id="chips">
<label>
<input type="radio" name="pet_chipped" class="chipped" value="Yes" id="chipyes" checked> Yes</label>
<label>
<input type="radio" name="pet_chipped" class="chipped" value="No" id="chipno"> No</label>
</div>
jQuery:
$("input[nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43384574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IIFE Syntax best practice This is from MDN web docs
(function () {
//statements
})();
But i've seen this usage down below too
(function() {
//statements
}());
It seems both works. But which is best practice and why is there such difference? First one seems more appropriate imo
| {
"language": "en",
"url": "https://stackoverflow.com/questions/62314925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running Bat file from Excel VBA I have the following VBA code which works:
Sub TfrSec()
Dim argh As Double
argh = Shell("C:\Users\Avishen\Desktop\Transfer Rates File.bat", vbNormalFocus)
End Sub
I want to change Avishen so that it picks up automatically the current user which is login on windows.
Thanks for helping... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68342944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL: What is the most performant way of storing a whole year (365 elements) in MySQL? Within a project, I have to store the daily availability of different meeting rooms. So let's suppose around 1.000.000 meeting rooms, where each meeting room is in a city, and a city could have hundreds of meeting rooms.
I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44949803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python Hyperlinks function I'm trying to create a function in python which reads an html and then takes out only the hyperlink and the theme of the hyperlink..The html page is specific and the function is only for this page..So as i'm a really amateur in python learning i thought something like this..
def fun("stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26436961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IOException error when creating a socket in java I am working on a chat client and I have created a registration Jframe where a user gets to register.
when registering, it is supposed to connect to server so that server can check if the userid already exists or not.
when I am creating a new socket it keeps giving me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27215079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deploy asp.net to iis i try to publish my asp.net application to iis (v10.0), i get error in logs when running the application, maybe there is a problem with the database connection, but when I run my application on visual studio code 2022 there is no problem,
the logs info is, :
info: Microsoft.Hosting.Lifetime[0]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71478668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python script won't run at startup ubuntu I try to run my python scrip at startup but it doesn't work.
Here is my python script(doesn't work):
#!/usr/bin/env python
import paho.mqtt.publish as publish
from datetime import datetime
t = str(datetime.now())
print t
with open("/home/james/mqtt/log.txt", "a+") as f:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43580182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CKEditor inside jQuery Dialog, how do I build it? So, I'm working with CKEditor and jQuery, trying to build a pop-out editor.
Below is what I have coded so far, and I can't seem to get it working the way I want it to.
Basically, click the 'Edit' link, dialog box pops up, with the content to edit loaded into the CKEd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2434540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .redirect() from mounted middleware with relative destination fails I want to restrict a certain subtree only to authenticated users. The basic setup is as follows (fat removed):
app.use(express.bodyParser())
.use(express.cookieParser('MY SECRET'))
.use(express.cookieSession())
.use('/admin', isAuthenticatedHandl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21104154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to print asterisk triangles side-by-side in python? I am trying to print 4 star triangle side-by-side using nested for-loops in python. I included the code I am using now that prints the triangles vertically, but I do not know how to print them horizontally.
n = 0
print ("Pattern A")
for x in range (0,11):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60748012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: setTimeout("window.close()", 100) not working in Firefox I am a learner on HTML, PHP, Javascript.
I am currently working on a barcode scanning system. The steps are simple, scan in an order number, the system(form) will then generate another sequence number and print it out along with the scanned order number ri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30208714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: reading and deleting lines in python I am trying to read all the lines in a specific file, and it prints the number of the line as an index.
What I am trying to do is to delete the line by inputting the number of the line by the user.
As far as it is now, it prints all the lines with the number of that line, but whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47891517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Make two divs share one scrollbar Here is my code:
<div class="mycontent">
<div class="textarea" id="ingId" style="position:relative;">
<div id="idComm" style="position: absolute; z-index: 100; width: 450px; height: 151px; right: 18px; top: 1px;">
</div>
</div>
</div>
How to make them share... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11644179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Formatting input value and restrictions for user (JavaScript) How I could create an <input type="text" /> with following restrictions for the User and formatting extensions, namely using JavaScript or jQuery?
*
*The User can use only numeric chars. Nothing else.
*The User can't delete the dot. Never. Is it possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22432888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Is it necessary to create 151 connections to the server when displaying 150 images in a RecyclerView, stored in Firebase Storage's 'Images' folder? Suppose you have 150 images stored in the images folder within your Firebase Storage. Each image should have a title, which will be inserted during the uploading process... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75344799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to store the large amount data in windows phone 8.1? in android for storing data we are using array list,hash map...etc.
in windows how we save the large amount of data? what about collections in windows phone development. Please any one explain me how to store the data in windows phone 8.1 development.
A: Here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31202806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Standard ml function in datatype problem I have to create a function about peano numbers defined as the following datatype:
datatype 'a peano = P of ('a -> 'a) * 'a -> 'a
val zero = P(fn (f, x) => x)
The function that I have to implement finds the succesive peano number of the peano parameter P(p). This is what I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2207154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VS Code Node.js - Run and Debug opens automatically when encountering a break point whenever I debug Node.JS in VS Code and a breakpoint is encountered, the "Run and Debug" window open automatically (as if I pressed Ctrl+Shift+D). It is very annoying, how can I disable it?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/72916763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iframe won't show up unless domain has www I have a site with an iframe. The iframe shows up if the address url is www.mysite.com, but not if I use mysite.com. The iframe location is www.mysite.com/thepage.html
The JS error I get is.
Load denied by X-Frame-Options: the site page does not permit
cross-origin fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24093761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to store value of pointer in a recursive function? Let say now I would like to write a function that search a certain node in a linked list recursively. When I successfully reached the targeted node, this function will return the ID and another information of it by reference, where its ID will be stored by struc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67554745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Powershell: Unquoting arguments when invoking an external command Consider the following cmd.exe batch script:
testpar.cmd
@echo [%1] [%2]
If we call it it in Powershell, these results are rather obvious:
PS> .\testpar.cmd arg1 arg2
[arg1] [arg2]
PS> .\testpar.cmd "arg1 arg2"
["arg1 arg2"] []
But,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26357587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: split(regexp_replace ) Like Function In Presto : 331 Is there any way to split values based on consecutive 0's in presto.Minimum 6 digits should be there in first split, if digit count is less than 6 than need to consider some 0's as digit then split if digit count is >= 6 then just need to split in 2 groups.
below... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71586778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why global variable inside jQuery each() function is breaking up my rollover effect? I'm trying to accomplish a rollover effect through jQuery in which when I hover over a black & white image, it gets replaced by the colored one & when I move out of the image, the original B&W image appears again. The code I'm using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35361846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sqlite3 autoincrement - am I missing something? I want to create unique order numbers for each day. So ideally, in PostgreSQL for instance, I could create a sequence and read it back for these unique numbers, because the readback both gets me the new number and is atomic. Then at close of day, I'd reset the sequence... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18320422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would be a globally accepted regular expression to match e-mail addresses I have seen many examples, with many 'no, you missed something' comments. What is the right way to match an e-mail address?
For Sanity sake, only fully-qualified domain names, no @localhost allowed. (or, both ways)
Subdomains must be all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: CSS-only masonry layout I need to implement a masonry layout. However, for a number of reasons I don't want to use JavaScript to do it.
Parameters:
*
*All elements have the same width
*Elements have a height that cannot be calculated server side (an image plus various amounts of text)
*I can live with a fixed n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44377343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "223"
} |
Q: How can I get translateZ to work in svg groups? I have created a svg image animation. I am trying to make some nice effects with mouseover. I want to move the svg depending on mouse position. The rotate part works fine so far. But I also want to move the <g> inside the svg in z-axis (popout) so they comes out in "di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67191234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entity Framework Core, one-to-many relationship, collection always empty I'm trying to do a simple one to many relationship in a InMemory database that is built up in runtime by http requests. I'm new to Entity Framework Core, so I'm unsure if the is a proper way of working with it.
ValuesController.cs
[Route("api/[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56824959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically generated hash keys are not displaying correctly when using render json in controller render json: is not displaying my hash key correctly and I am not sure exactly why. I will post the controller code and the view output below.
merger = {}
stops = OpsHeader.joins(
ops_stop_rec: :driver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67025688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Breaking the loop after checking the result from observable in angular I would like to break the loop after checking the condition from the return of observable. When the status is False, I want to exit the loop. I have the below code:
var response = Observable<responseService>;
var i;
for (i =0; i < lin.length; i++... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62446705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setup PhpStorm's to reformat code based on phpcs (codesniffer-rules from Squizlabs) I've taken over a code base, where most of the code is following the codesniffer settings from squizlabs/PHP_CodeSniffer.
How do I setup PhpStorm to automatically reformat the code upon saving files; so I always follow those standard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74274142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create Multi-pages in PDF file created with JSPDF from a html page I have a html page containing many text in tables. I'm using jspdf version 1.5 and higher and html2canvas libraries for creating a pdf when clicking on a button "generate the pdf".
The pdf is correctly generated.
Here is my code:
<!DOCTYPE htm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63556566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check of two list have colliding element? Is there a way to check if one list collides with another? ex:
bool hit=false;
foreach(var s in list2)
{
if (list1.Contains(s))
{
hit = true;
break;
}
}
if (!hit)
{
A: .NET has a number of set operatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3682729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: load image to JPanel not working For two days I was trying to load an image into JPanel from a file. I couldn't!
I used JLabel and Icon and it's loaded okay, but I need to load the image to a JPanel directly, is that impossible?
Because almost I saw many and many related problems like this and many people recommend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29430901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker deployment workflow of new application release without loosing database state? I have an app called A that uses MongoDB for state. My plan is to use Docker and perhaps create one container for the app and one for MongoDB and then link A with MongoDB (possibly using fig). From what I understand I ought to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27685171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nuxt generate command create an empty html My application works with "npm run dev" command, but when i try to build for production with "npm run generate" in .nuxt/dist folder i have index.html with this content:
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44428771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Weird behaviour working on a skip list using void pointers void insertSkipList(SkipList* list, void* I){
Node* new_node=createNode(I, randomLevel(list->max_level));
if (new_node->size > list->max_level)
Node* actual_node=list->head;
unsigned int k;
for (k = list->max_level;k>=1;k--){ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73346065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adjusting X-Axis Labels for Dates ChartJS I have the following piece of js:
var canvas_link = document.getElementById("chart1").getContext("2d");
var myChart = new Chart(canvas_link, {
type: 'bar',
data: {
labels: xvalues,
datasets: [{
label: area_option,
data: dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65450854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BeautifulSoup, ignore tags and get al the text inside I want to get all the text inside every <p> tag which belongs to news1
import requests
from bs4 import BeautifulSoup
r1 = requests.get("http://www.metalinjection.net/shocking-revelations/machine-heads-robb-flynn-addresses-controversial-photo-from-his-past-in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45754993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Request location updates from BOOT_COMPLETED Receiver? I need to get location updates form onReceive method. When the the onReceive() called the GPS start for 2-3 second and gone, why??
HOW to fix it?? i want to get location updates. help please.
NOTE: onReceive method is called when restarting my phone
The java cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21338140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check 'selected' of an item in JCheckBoxTree after pressing the button I have a customised JCheckBoxTree which its code is taken from this source.
So I want to have access to the status of each CheckBox of this tree. For example, I want to set an item of the tree as 'SELECTED' by pressing a button. I think I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28889024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sum of particular column with month and year wise I have following data in my table :
uniqueId d_date amount
1 2018-02-01 100.25
2 2019-03-01 456.5
3 2018-02-01 455
4 2019-05-01 200.48
5 2018-06-01 100
6 2019-07-01 200
7 2018-12... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61096631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AVAudioPlayer not working. Error Domain=NSOSStatusErrorDomain Code=1954115647 "(null)" in swift2 I am downloading artwork, title and audio data file from server and able to display in table cell.
On click of play button in table cell, saving audio data into local file and then trying to play from documents file path... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35593059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ddply and summing over values in a data.frame as part of the function I have a data.frame that looks similar to this:
Y date value1 value2
a 2013-01-01 28.857326 9.0206351
a 2013-01-02 13.675526 5.7823725
a 2013-01-03 20.115434 9.3267285
a 2013-01-04 -4.255547 0.9174301
a 2013-01-05 20.898522 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18793249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to solve the issue with preloader and session storage in jQuery? I have a problem with the pre-loader. I was trying to set it up as once per session. It works first time, but when you refresh the website the pre-loader does not stop at all and it is impossible to see the content of the website until the moment I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45140918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Swift/AppleTV4: How to connect AVPlayer function to AVPlayerViewController? Here is a rudimentary playMe function calling AVPlayer, playing a MP3, MP4 or Wav via Swift with AppleTV. How do I combine this with the AVPlayerViewController - i.e., how do I make the playMe("video", "mp4") play inside an AVPlayerViewContr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34525804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sorting doesnt work for resources in resourceTimeGridPlugin fullcalender Resources list is sorted when provided to full calender component but it gets randomly sorted automatically.
A: Could it be you are using more or less random ids for your resources? It seems that by default resources are being sorted by id. Ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67291668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why closing event not working after resuming wpf application from system tray? My problem is, I am hiding my app in system tray when close event is fired,
User can resume it by double clicking on notify icon. Close event only works for the first time in my wpf app.
private void SparkWindow_Closing(object sender,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34920266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I code my Nunit tests to run from command line? I am writing some C# tests with Nunit and would like to write a Main method to be able to run them from a command line.
After googling a lot I saw a few old posts with the following code, however it seems that Nunit.core was deprecated, therefore I cannot use it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68028707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Apache Camel XML-to-JSON I have simple XML file and need to convert it to JSON using camel-xmljson JAR. I have started camel context using:
Main main = new Main();
main.addRouteBuilder(new ConvertXmlToJson());
main.enableHangupSupport();
main.run();
And my configure method looks like:
@Override
public void configur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25060938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VB.NET: determining the datatype of a field in query resultset? I have numeric data that I am getting from a database. They are all numeric, but they are a mix of int, money and real.
Using VB.NET, how can you programmatically determine the datatype of a field in a resultset?
A: Assuming this table:
CREATE TABLE T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2186532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Software Product Lines (SPL) for Domain Specific Languages (DSL) Does it make sense to focus on Domain Specifics Languages (DSL) development following a Software Product Line approach?
Does anyone know any other approach to create and maintain several related Domain Specifics Languages at the same time? Note that t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3753417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Entity Framework save big image I am creating a field :
public Byte[] Image { get; set; }
This will create a fields called Image with data type varbinary and length is 4000.
When I save a record, it will fail to save because the image is hugh to save in varbinary(4000).
How do I make it to image datattype or bigger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11757154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ignoring the first column of the kmeans cluster input data
INPUT DATA
(key,datapoints)
A,1,2,0,1,2,1,2,1
B,2,2,3,1,1,1,1,0
C,3,1,2,3,4,5,0,1
D,1,2,0,1,2,5,0,1
....
I have the input data in the above format. I want to perform Kmeans cluserting of the above data ignoring the first column and would like to identify wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39631023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Uneven line-height in TextFlow control? I've switched from the regular TextField to the new TextLayout framework, thus using the new TextFlow control. Everything is great except that lines for some reason don't snap horizontally to pixels. Meaning, the line-height varies due to rounding and the selection rectangle b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7462891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Write a for loop in a function to get a matrix I need to put delta.vec and sigma.vec values through my required.replicates function and store them in my practice1 matrix.
But I get NULL.
sigma.vec <- c(2,4,6,8,10,12)
delta.vec <- c(1,2,5,8,10)
practice1 <- matrix(0, nrow=length(delta.vec), ncol=length(sigma.vec))
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44604762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python K-means fails to fit data when over 100 samples I am very new to sklearn (and python in general) but needs to work on some project involving clustering of over 10k samples. Using the following code with the test dataset of less than 100 samples with k = 4, the clustering went as expected. However, when I star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45779257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Pricing initialization in SOline dac I am looking for the best possibility to initialize the tarifs.
using the fielddefaulting event, the amount stays at 0
protected void SOLine_CuryUnitPrice_FieldDefaulting(PXCache cache, PXFieldDefaultingEventArgs e)
{
var row = (SOLine)e.Row;
SOOrder order = (SOOrder) Base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74349692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the last four weeks including current week using an sql query I want to fetch last 4 weeks results including this week. so let say i have a stat table which is full of stats of last month April, now its 4 May... when I write this query:
I want to fetch unique visitors:
SELECT COUNT(distinct ip ) AS uni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10448742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Days function working in Jaspersoft Studio but not with JasperReports library I have few reports which are using the built-in function DAYS(DATE1, DATE2) to calculate number of days between two dates.
My expression is (DAYS(new SimpleDateFormat("dd/MM/yyyy").parse($F{DATE_DEBUT_ABSENCE}),new SimpleDateFormat("dd/MM/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46641506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EnumDropDownListFor using Reflection throwing "Return type 'System.Object' is not supported." I'm trying to build out a settings page using reflection. Some options are enums, but the standard @Html.EditorFor() gives a text box rather than a dropdown on these properties. I have an approach sort-of working using @Htm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28725764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: style attribute of XSSFWorkbook cell of Apache POI show compilation errors I use Apache poi to generate excel data which can be accessed outside the app. I have a problem with creating style. Some methods of the style properties keeps showing error when I added the expected values.
XSSFWorkbook wb = new XSSFWor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55968289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: Two actvities as launchers I'm developing locker application. I created service and receiver to hide default android locker. But for few days I have problem with settings activity. I'm looking for a solution, how to make two activites as launchers. I want to make something like that:
Locker activity is only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20496088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get case sensitive column names from MySQL query using funcool/clojure.jdbc When retrieving items from a MySQL table using funcool/clojure.jdbc, all the column names are lower case, even though the table has been created with mixed case column names. I have found various answers that indicate double quoting,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53015972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Neo4j Return all Nodes and Relationships where Sender sent more than 10 emails I am working with email data in neo4j. I would like to find all relationships and nodes where the emails failed to be delivered and the recipient list was over 10 recipients.
Below returns just the Senders that sent these emails:
MATCH (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58310918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Local path doesn't exist...and apk file is not generating When i run application on my connected device, after selecting an device it shows unexpected error,local path doesn't exist.
A: In build.gradle check if gradle is updated to latest.
buildscript {
repositories {
mavenCentral()
}
dependenci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35501692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GPU vs CPU memory usage in RAPIDS I understand that GPU and CPU have their own RAM, but what I dont understand is why the same dataframe, when loaded in pandas vs RAPIDS cuDF, have drastically different memory usage. Can somebody explain?
A: As noted in Josh Friedlander's comment, in cuDF the object data type is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73772464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Repetition in data constructor I can define a binary tree data structure:
data Tree a = Leaf | Node a (Tree a) (Tree a)
Now I want to create a tree such that each Node has 10 sub-trees. I could so so by writing out 10 (Tree a)s, but is there a more consise way? I'm thinking type families might help here but I'm not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39870813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: EVP AES Encryption on PSP I am trying to make a MMORPG for PSP and I will be encrypting al data sent over the network in some form. I have chosen AES for this.
I have this code:
int encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key, unsigned char *iv, unsigned char *ciphertext){
int len;
int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26352051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Java, I can't add code after the return statement in a method I'm new at Java, I'm learning about methods with a return statement.
My IDE says:
This method must return a result of type boolean
However my method returns only boolean values. How to fix that ?
public class Test {
public static void main(String[] a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52628784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Write a function that reads line by line from the console and prints the number of characters for each line loaded Write a function that reads line by line from the console and prints the number of characters for each line loaded, The maximum length of the line being read should be 20 characters.
I have someting tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61370288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Most efficient way to strip comments from a string javascript I am looking for an efficient way to strip HTML comments from a string representation of HTML:
<div>
<!-- remove this -->
<ul>
<!-- and this -->
<li></li>
<li></li>
</ul>
</div>
I do not want to convert the string to actual nodes, the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17793077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Asynchronous Add/Update save method not updating I am building a .NET page for a project that adds a new City and State for a new user or updates the City and state if their ID is already in the database. Everything is working fine except for the fact that if a past user clicks submit to update their information, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34969979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Networked Aframe - Screen Sharing Bug While developing a multi-user VR room with networked-aframe, i run into a bug with the screen sharing option simmilar to the one in the file: /examples/basic-multi-streams.html
I've tried different approaches and tests but couldn't get that one fixed.
The networked-aframe repo:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70309606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: groupby count same values in two columns in pandas? I have the following Pandas dataframe:
name1 name2
A B
A A
A C
A A
B B
B A
I want to add a column named new which counts name1 OR name2 keeping the merged columns (distinct values in both name1 and name2). Hence, the expected ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59546513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Character stuck underneath world So I've been able to use bullet physics to bind a rigid body to a cube and have it fall while being rendering, but when I tried to "attach" a rigid body to the player it got the player stuck underneath the world, unable to move.
I was originally going use kinematic bodies but after ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22133164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Outline not working properly on Firefox I am trying to put some custom outline in order to reach some web accessibility suggestions. But I can't make with Firefox.
This is how it looks on Chrome:
And that icon is actually an anchor.
On Firefox, it is only outlining the whole document, like this:
On Firefox it is o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45157366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to retrieve GCP Stackdriver human readable logs? GCP stackdriver logging api provides the log messages in json format. But in the console, under "Home", under the "Activity" tab, it provides the logs in human readable format
[email protected] has retrieved data from BigQuery table bq_table_name
Is there a way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56573686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check if the .sig file is correct ? I issued the following commands to create a signature for a file (linux kernel) :
*
*openssl req -newkey rsa -keyout codesign.key -out codesign.req
*openssl ca -config ca.cnf -extensions codesigning -in codesign.req -out codesign.crt
*openssl cms -sign -binary -noattr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36442594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DIH in SOLR based on primary key of a table currently am using DIH for pulling data from MSSQL server to SOLR. Where in am using dataimporter.last_index_time to pull the records which are into database only after last_index_time. So i was exploring if there are any other option for DIH to use instead of using last_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43060493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating test payment gateway with react and stripe Hey i am working on payment gateway on my website maded with react so i am using stripe js (for test) i have wraped my payment component in Elements in app.js
const promise = loadStripe("my stipe publishable key")
<Route path='/payment'>
<Header/>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64399872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to seprate alphanumeric string into number and alphabets For example string is JD85DS8796
There are 4 text views and I want to set each text view like:
In 1st text-view JD, in 2nd text-view 85, in 3rd text-view DS, in 4th text-view 8796.
A: First of all, yes there is a crazy regex you can give to String.split:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20492788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Table '[database-name].sessions' doesn't exist - using express-session Here is some sample code that outlines my issue. I'm trying to get express-session / connect-session-sequelize to work for a website with login functionalities.
However, when I try to call my POST request, I get the following error:
I can only a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69549436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Axios: Network Error and not sending request I am trying to send a get request with auth headers to api from Vue using axios.
When I try to send it, it gives me a Network Error with no info about it. I have also check network tab and the request is not sending at all.
Before I checked the url using postman and https... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48226030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to find the first incident of any signature in a list/array within an email? I want to give credit to an agent, if they're the one that sent the message, but only if their signature is at the top of the email.
Here is what I have. The search order is off. The code searches for one name at a time, and clear throu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64883724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SignalR - How to declaratively disable transport protocol on server Is it possible to declaratively disable some transport protocol like ForeverFrame in SignalR on the server side? I don't want to change any code but would like to do it in some config file...
I found how to do it code but as mentioned this is not a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40263141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Connecting DB with my Firefox OS app using JS I'm developing an app for Firefox OS and I need to retrieve/sent data from/to my DB. I also need to use this data in my logic implementation which is in JS.
I've been told that I cannot implement PHP in Firefox OS, so is there any other way to retrieve the data and use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28718049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google sheets -- format rows x color if column A is x/y/z value I have a google sheet and it looks something like this.
# | quant | percent
1 | 10 | 10%
2 | 5 | 5%
3 | 10 | 10%
...
22| 3 | 3%
Etc
What I want to do is for EACH row, paint columns A/B/C the same color as column A. Column A should be: G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52104584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mapping the Rules & Metrics in Sonarqube I am trying to find out a way of mapping between Rules in SonarQube (Declared on Different Languages) and given lists of Metrics (Complexity, maintainability, Reliability, etc). Is there any way to find such categorization in Sonarqube!
A: Short Answer : There are no such ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39071718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get attrs value in customview kotlin class when format="reference" I have created one CustomView class where I want to get drawable dynamically. So for that have created attrs.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="CustomView">
<attr name="myImage" format="refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71483453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate value not in mysql table I have used following query that use to generate random value not in mysql table.
SELECT FLOOR( RAND()*1000 + 50 ) AS temp FROM tempcode WHERE 'temp' NOT IN ( SELECT code FROM tempcode ) LIMIT 1
but when I reduce the value to RAND()*4 for checking purpose using dummy data that not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29225032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: setState not updating React component state I have below in component's constructor:
constructor(props){
super(props);
this.state={
post: {},
deleteModal: false
}
}
I am updating the state as below in componentDidmount:
componentDidMount(){
fetch('https://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67904320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Netbeans to use pom.xml (Maven) instead of build.gradle (Gradle) Our team has a Netbeans 11.0 project that (at the root level) contains both a pom.xml file and a build.gradle file. When opening the project within Netbeans it assumes it is a Gradle project and treats it as such. However the default should be to open ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58205734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using PHP sessions causes page to expire from cache when returning from another site I have a form in which the first button posts back to the form; the second button posts to a form at another website; the third button posts to another form at my website.
I am trying to pass a variable from form1.php to form2.php u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32799309",
"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.