text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Converting data to panel format using forloops vba-excel My data set looks like:
AUS, UK, USA, GERMANY, FRANCE, MEXICO, DATE
R1, R1, R1, R1 , R1 , R1 , 1
R2, R2, R2, R2 , R2 , R2 , 2
...
And so on. I want to convert it so that it looks like
COUNTRY, RETURNS, DATE,
AUS, R1, 1
AU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37478043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass parameter to calling form? Here is the code with Form with Singleton pattern.
private Form1(int number = -1)
{
test_number = number;
InitializeComponent();
}
private static Form1 _Instance;
public static Form1 Instance
{
get
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23684496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to modify Webform field type in Drupal 7 We are working on Drupal 7 and we need to modify the "webform field type" of an existing webform. But we are unable to do that. We have also tried by deleting the existing field "form key" and tried creating a new field with the same "form key" but the data of the exis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51177228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues Overloading CTOR's in Scala Im having an issue over loading the constructors in Scala. Each time I try to pass a value for the over loaded CTOR I get the error
Example:
var client : Client = Client(*variable type List[String]()*);
Unspecified value parameter clientList.
My goal is to have an objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9999911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want an extensive table (left->right) but with the first column fixed I am creating a "gant chart" style table, so it means that it has to have the first column fixed, and it can be a very long table , from left to right.
I have tried to :
1. use simple HTML;
2. use DIVs and CSS;
3. use TH and CSS;
no good result... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58247898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: snimpy.snmp.SNMPNoSuchObject: No such object was found I'm having an exception raised, but I don't get why
snimpy.snmp.SNMPNoSuchObject: No such object was found
Code
from snimpy import manager as snimpy
def snmp(hostname, oids, mibs):
logger.debug(hostname)
logger.debug(oids)
logger.debug(mibs)
fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39831446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Force docker compose to pull latest image for a container I've a system running on docker, my system has an specific test environment which might need to update the image version several times on a day...
So every time a new version need to be placed, i need to open the compose.yml file, look the container and edit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73429215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any way to save variable and its values during debugging in intellij? I am struggling with an error. I cannot find it. Is there a way to compare the debugging results before and after a change in intellij. Other solutions will be also welcomed.
I am explaining my scenario here.
I am debugging a class and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35272024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: C | Pointer | Segmentation fault I have this code:
My problem is that, whenever I call this function ma_init(); I get a segmentation fault on footer->status = FREE; I would appreciate it if somebody points me into the right direction here cause after some googling for some hours, I can't seem to figure this out.
Ed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45151144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Firebase Realtime Database data is loaded too late I get my data in the table on Firebase Realtime Database. However, when there is a lot of data, it takes minutes to load. Like 5-6 minutes for 500 data.
How can I solve this?
Thanks, best regards.
private void initCustomAdapter() {
mPeriodsReference.addCh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66187572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you permanently add to an array in Javascript? Forgive me, I'm very new to programming in general, especially Javascript. I've basically got an array as shown simplified below.
var recipes = [
{ "recipeName":"Recipe1" , "ingredient1":"Recipe1Ingredient1" , "ingredient2":"Recipe1Ingredient2" , "ingredient3":"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21144565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Importing multiple files named sequentially in Python I have about 50 Python files in a directory, all named in a sequential order, for example: myfile1, myfile2.....myfile50. Now, I want to import the contents of these files inside another Python file. This is what I tried:
i = 0
while i < 51:
file_name = 'myfi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33062168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get log by using logog in DLL API's in C++ How to write log inside DLL API?
In my program I am using two threads with one main thread. I am initializing:
LOGOG_INITIALIZE();
logog::LogFile errFile("log.txt");
Into my main thread and using INFO, ERR in main thread other two threads. My main thread is using C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12275437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: knitr hook to separate 000's, but not for years I define a hook at the top of my rnw to separate '000s with commas:
knit_hooks$set(inline = function(x) {
prettyNum(x, big.mark=",")
})
However, there are some numbers that I don't want to format like this, such as years. Is there a better way to write the h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26382512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Sprites don't stop dragging on MOUSE_UP I have Sprites that I want to have move around when I click and hold them and stop when I release them. I have methods that add Event listeners to the Sprites:
public function layOutEventListeners():void
{
var addSpriteEventListener:Function =
function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5148872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: generated structure and memory links in python I'm generating data structure with function. And when I try fill it with few nested loops I have problem with memory link: result last loop set all previous.
If I use hand-writed structure which absolutely similar to function-generated it work good.
def data_fill(data,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54143629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing a log file to count how many error and info entries a particular user has utilizing Python 3 I have the task of taking/parsing a log entry and having to first check if a regex pattern matches the INFO or ERROR message formats. Upon a successful match, add one to the corresponding value in the per_user dictio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62579890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I change a const value when a button is clicked? Can somebody help me replace the console.log lines with something that will help me change the player.choice value based on which button is clicked?
const player = {
currentChoice: null
}
const computer = {
currentChoice: null
}
const choices = ["Lapis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63910299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Html To Doc(Word) Or RTF Format What would the best possible way to convert a html page (with css, tables, images etc.) to be converted to word or rtf format. I already know about adding the
content-type = application/word
header and that's not an option because we need the images embedded in the document so that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1026281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: understanding WinDbg output I have a Winform application (C#) which imports some functions from dll.
Sometimes when running the application i get the following exception:
System.AccessViolationException: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
I cat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/759365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Nodejs - getting client socket to try again after 5 sec time out Just starting out in node.js programming and writing a tcp socket client.
I want the client to connect to a server. If the server is not available (i.e. server does not exist at a agreed port), i want the client to timeout and reconnect after the timeo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19981040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Modal is working in Firefox but not in Chrome Modal is working in Firefox but not in Chrome, I added the code below.
*
*The following is my app.js :
$('.test').on('click', function (event) {
event.preventDefault();
$('#join-req').modal();
});
*HTML :
<a href="#" class="test">Join to my Group... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57000362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change values of a timedelta column based on the previous row Let it be the following Python Panda Dataframe:
code
visit_time
flag
other
counter
0
NaT
True
X
3
0
1 days 03:00:12
False
Y
1
0
NaT
False
X
3
0
0 days 05:00:00
True
X
2
1
NaT
False
Z
3
1
NaT
True
X
3
1
1 days 03:00:12
False
Y
1
2
NaT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72403450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP - Link to local file How can I link to a local file in PHP?
I've tried all of these, but nothing works to prompt a file-download.
According to: http://php.net/manual/en/wrappers.file.php
I can add: file:///
But my editor doesn't like that when I also add the \ to designate the folder-structure, and the page th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36492373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery save clicked state after refresh I created function that change a view. Add some new classes if option was clicked. But I want to save state of clicked option and after refresh of page It should display option clicked before refresh. I implemented jQuery option $.cookie but it looks like it doesn't work. I on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45751572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't LinkedHashSet have addFirst method? As the documentation of LinkedHashSet states, it is
Hash table and linked list implementation of the Set interface, with
predictable iteration order. This implementation differs from HashSet
in that it maintains a doubly-linked list running through all of its
en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53877927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I fix this Apache server situation? I've been working on a huge upgrade of several websites for several months. It includes upgrading to PDO database connections and modifying Apache so that people who arrive on links pointing to mysite/World/New_York will be redirected to mysite/world/new-york.
Unfortunatel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23039221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing the CSS class of a child element on parent hover My Html:
<div class="parent">
<span class= "child"></span>
</div>
I want to change the CSS of the child span tag when I hover over the parent element and revert the child's CSS on mouseout over parent. How can I do this with CSS & HTML?
A: .parent:hover .c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20920677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error while running statsmodels in colab "estimate_tweedie_power() missing 1 required positional argument: 'mu'" Modeling Tweedie distribution in statsmodels in Google Colab, but I'm getting an error while trying to use estimate_tweedie_power function. Here is the code from my notebook.
#Training model
tweedie_model... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61276846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scrapinghub Deploy Failed I am trying to deploy a project to scrapinghub and here's the error I am getting
slackclient 1.3.2 has requirement websocket-client<0.55.0,>=0.35, but you have websocket-client 0.57.0.
Warning: Pip checks failed, please fix the conflicts.
WARNING: There're some errors when doing pip-check:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61822730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Laravel Generate Basic Auth I am using Basic Auth ( Auth::onceBasic() ) in Laravel.
How can I generate the Token shown after 'BASIC' which is sent in the header which is automatically generated by PostMan.
I believe I need to send that token back to the user so he can login next time with that token in the header?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58291728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActionBar tab background with xml Is it possibile to create a Holo-like ActionBar tab background only with xml drawables? If yes, how? If no, what's the limitation?
Browsing the Android source code I found that the tab background is defined with a selector drawable in tab_indicator_holo.xml:
<selector xmlns:android... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11653642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Time Complexity of Straight Forward Dijkstra's Algorithm I am having a hard time seeing the O(mn) bound for the straightforward implementation Dijkstra's algorithm (without a heap). In my implementation and others I have found the main loop iterates n-1 times (for each vertex that is not source, n-1), then in each i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59462121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL/PHP mass update multiple records with one query using CROSS JOIN on same table I have a PHP script that runs ever 60 seconds. It queries an external database to check if any records have been updated.
It's basically a booking system that requires manual approval or rejection of booking requests.
The system is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40248319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web App after restoring iPhone 4 backup on iPhone SE has the iPhone 4 size I am moving from iPhone 4 to iPhone SE.
I have a web app on my iPhone 4 that was added to the home screen.
After restoring iPhone 4 backup on the iPhone SE I see this Web App but its size is constrained to the size of the iPhone 4 screen whil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37933848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php for loop and keep history generating a new array with all the values inside $Xn = count($where = array(1, 2, 3, 4, 5, ... , $n))/3;
where $n is multiple of 3 objects!!!
for($i = 1; $i <= ($Xn); $i++) {
$field[$Xn-$i] = $where[(3*$i)-3];
$operator[$Xn-$i] = $where[(3*$i)-2];
$val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36723957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to improve my delete statement in oracle? If I have a 3(inst, acct and recordno) columns as part of primary key and I knew only values of first 2,and my table has multiple indexes and every index has first 2 columns (inst and acct) and third one is something different.
Now questions.
*
*if I have the delete q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53817382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Webhook Subscription for AzureAd groups and Users not working I have created a webhook subscription for Users and Groups by making a POST call to https://graph.microsoft.com/v1.0/subscriptions with the following as payload:
{
"changeType": "updated,deleted",
"notificationUrl": "https://a0317384.ngrok.io",
"res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56736435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Launch and write to terminal in Qt I am coding in linux using Qt. I understand that with popen or QProcess I can launch terminal from my program, but how do I write into to it? I google around people are suggesting fork() and pipe().
My purpose is to do an ICMP ping with the terminal, and stop when ping successfull... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4629185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Calendar Application I need some help with jQuery Calendar application. The specific calendar I'm looking for can be found at the following addresses.. I will be glad if anyone knows and would be kind to provide me the name of the calendar that was used in the links below.
Calendar Example 1
Calendar Example ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12232473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: slick plugin is not working for dynamically created content but works well for static content <div id="id1" class="scroll-footer">
<dynamically created div1></div>
<dynamically created div2></div>
<dynamically created div3></div>
<dynamically created div4></div>
</div>
$(document).ready(function(){
$('.scro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38843771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: File system access from Safari (IOS) For Windows/Linux based browsers I can use Java plugin to access filesystem. As IOS does not support Java, is there any alternative way to get it done?
A: No, you can't. File cannot be uploaded or even downloaded in iOS safari. In iCab you can upload by <input type = 'file'> but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12284108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: System.NotSupportedException: 'The entity or complex type 'Model' cannot be constructed in a LINQ to Entities query.' I want to release data to crystal report through code below. I get an error as image.
ReportDocument rd = new ReportDocument();
rd.Load(Path.Combine(Server.MapPath("~/Reports"), "vis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65077249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to transition just for transform rotate I have an HTML element that must rotate in a hover event. look at the code. I don't want transition for translateX. I just want transition for rotate. what should I do??
.cog {
margin-top: 250px;
cursor: pointer;
transition: transform 0.5s ease-in-out;
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56928329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Easy XML serialization with custom conversion of node values? How can i deserialize and cast the following xml file?
I want Valid element be casted to bool property and Time object be casted in DateTime property
<Foo>
<Valid>True</Valid>
<Time>19/02/2012 00:25:50</Time>
</Foo>
And not with reflection please... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9344444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to copy assets with vue-cli-service build command? Below is the content of my app src directory. How can I copy files located in src/assets/others to dist/others folder with vue-cli-service build command? Btw. my project was created with vue create command.
src/
├── App.vue
├── assets
| ├── ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60304092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .load and .unload external page inside a div I'm using this jQuery function to load an external page inside a div on click.
$(document).on("click", ".more", function() {
$("#wait").load("www.google.com")
}),
$(document).on("click",".more",function(){
$("#wait").empty()
})
#wait{
width:80vw;
height:80vh;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40564923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: insert responsive gmail html signature My html signature in browser is quite good with following design:
[ ] name
[img] company
[ ] email
but when I copy to gmail signature, it seems to be broken! the image stands in wrong position!
[ ]
[img]
[ ]
name
company
email
please help me to resolve this problem!
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30817313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: retrieving information from related tables with Zend Framework and Doctrine 1.2 After working hard in my ZF/Doctrine integration I'm having a problem "translating" my previous Zend_Db work into Doctrine. I used generate-models-db to create the models and I did got to access some properties form the view but only tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6216504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python get/set value of dict of dicts by key in variable I have dict of dicts in Python, it can be deep, not just 2 levels.
data = {
0: {
1: {
2: "Yes"
},
3: {
4: "No"
}
},
}
I need to get and set the data, but the key is dynamic and is stored in list
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52347116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: percentage count for pandas df grouped by multiple columns I have two pandas df. The data is grouped by month, category, product. It also has a spend column. I need to calculate the percentage of spend column. Below is the sample of df_raw:
spend_sum
category month pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63581624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does each IntentService get its own background thread? Apparently, all AsyncTasks share one thread:
Starting with HONEYCOMB, tasks are executed on a single thread to avoid common application errors caused by parallel execution.
An IntentService gets one thread and handles each Intent in turn:
All requests are han... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23701156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create deep copy of List I read a lot of articles where people describes how to create a deep copy of list. But it requires a lot of code or work with memory streams. Is there any other easier way to create independent copy of List of class objects?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/20095209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making subject for a matrix formula in Sympy I am new to sympy. I am working with sympy matrices. Is anybody knows about making a matrix as subject from a matrix equation?
for examble if the equation is like following A+2B=C, here A,B and C are matrices. I want to make subject as B. So that the final answer must be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41078758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dict Update method only adds last value I have the following code (link here)
I have looked at similar posts and examples online but have not been able to understand / resolve the issue on why .update only adds the last value to the dictionary
import json
def main():
jsonData = {'CompanyId': '320193', 'CashCash... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75175999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: C++ Segmentation Fault Confusing {CLOSED} I know that Seg Sault is caused by accessing data that isn't yours, but I don't see why this small bit of code to assign values to and print a 9X9 2d array returns Seg Fault. Please help!
The code looks like this:
using namespace std;
#include <iostream>;
#include <string>;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34349582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-7"
} |
Q: Vulkan Dynamic Buffer With Different Texture Per Object I am currently using a dynamic buffer to store the uniforms of multiple objects and update them individually without changing the shader. The problem is that when i am adding a VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER to my descriptor the render is this (I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50205777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: overflow-y scroll and overflow hidden issue in pop-up window I have a problem, and I cant find solution for that..
I have pop-up window, positioning fixed and 100% height and width.
I want to set overflow-y: scroll to block .item-details, if there be much content - user can scroll, but only that block .item-details... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25002123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adjusting height and width of div and its contents I am trying to adjust the height and width of an HTML parent Div without changing the child div styles. Is there any option to adjust the div dimensions?
Example Scenario:
I have a tree that I am planning to use as a common code to create multiple trees. One small o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60910728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Git pull the last push that was done I have made many changes to my source files and would just like to pull the last push that was done. I would like it to delete any new files, and revert modified files to the last version. I basically want to just revert to how the origin master last was.
Is there a way to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10057000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is the UITextField placeholder text decreasing in size? I have a peculiar problem in Interface Builder with placeholder text. Some of the placeholder text is smaller than the rest and I can't find a reason why. When I duplicate a UITextfield with full-sized placeholder text it changes instantly to a smaller font... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28290564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: pattern matching, tuples and multiplication in Python What is be best way to reduce this series of tuples
('x', 0.29, 'a')
('x', 0.04, 'a')
('x', 0.03, 'b')
('x', 0.02, 'b')
('x', 0.01, 'b')
('x', 0.20, 'c')
('x', 0.20, 'c')
('x', 0.10, 'c')
into:
('x', 0.29 * 0.04 , 'a')
('x', 0.03 * 0.02 * 0.01, 'b')
('x', 0.20 *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11004838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python: Add values to dictionary Let say we have an array of positive integers and some integer x/
Each element in the array represents a missions and it's difficulty level and we want to find the minimum number of days to complete all the missions.
The difference between the difficult level of any two mission perfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73227081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How can I natively launch an external app from within Xamarin.Forms? As the question title suggests, I'm looking for a way to launch an external app from within a Xamarin.Forms app. For example, my app has a list of addresses, and when the user taps on one of them, the built-in map app for the current platform would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34643604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use the new AndroidX Media2? I am using Media App Architecture as a guide for building a music player app. But it uses the classes from support media-compat / Androidx Media.
But now AndroidX Media2 is available in stable channels and I don't see any word of it. What is it?
*
*is AndroidX Media2 supposed to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65224178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Toggle class with expand/collapse all multiple accordions I am having trouble with a jquery script I am trying to write. It looks right to me but not quite there yet. Can someone please help me understand why this isn't working?
jQuery('.expand').click(function(){
jQuery('.expandnav').find('div.menu-body').show(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12434805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using profile and boot method within confint option, with glmer model I am using glmer with a logit link for a gaussian error model.
When I try obtaining the confidence intervals, using either profile or the boot method with the confint option, I obtain an error for use of profile likelihood, and with bootstrapping... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37466771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to offer a chooser to get content for multiple mime types? I want to have one button in my app that lets the user pick images or any other files from the apps on the device. Here's the code in my activity for letting the user pick files from apps such as Dropbox and Drive:
private static int RESULT_GET_CONTE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19017172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Running batch jobs in Pivotal Cloud foundary We have a requirement to migrate mainframe batch jobs to PCF cloud but as 3R's of security Rotate, Repave and Repair it might be possible that in the instance where batch job is running as spring batch that instance can be repaved/repair and our running jobs got terminate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73137226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use flavors to set different endpoints to my app? I've an app and I want to have an English version too (It's only in Spanish now). I've already created all the strings and resources, and I want to use them and set different endpoints to my app whether it's the english version or the spanish one. How can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37059346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setf variable to computing time? I want to set variable to computing time like this
(setf a (time (+ 1 1)))
but instead of time I get this
Break 1 [7]> a
2
How can I set a to computing time?
A: Use GET-INTERNAL-RUN-TIME (or GET-INTERNAL-REAL-TIME):
(setf a
(let ((start (get-internal-run-time)))
(+ 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19112016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Query parameters for root component in Angular IO I have a very simple Angular 4+ application that fetches data from API and displays the data. I believe this should be possible by using just the root component:{path: 'main', component: MainComponent}
and QueryParams like ?id=1.
I am able to fetch the query param, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47265602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make Discord-Bot to reply same message for any command I want my bot to reply the same message for no matter whatever command it receives. I know how to reply to commands when they are knows but here I want to reply a particular string irrespective of the command.
I tried:
[Command("")]
public async Task gg()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50813554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Three.js support OES_texture_float? I want to render position or depth to a floating texture.
I use
vsnTexture = new THREE.WebGLRenderTarget(window.innerWidth, window.innerHeight,
{ minFilter: THREE.NearestFilter, magFilter: THREE.NearestFilter, format: THREE.RGBAFormat ,type:THREE.FloatType });
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24126042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: UITableView scrollToRow breaks UIView.animate() in UITableViewCell I want to create a chat-like view, and in order to simulate a message being written, I have added a dot-bubble cell, with the dot's alphas animating from 0 to 1.
I have added this animation in the custom cell's layoutSubviews() method.
However, I am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53965618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set current date to a fixed value in hsqldb? For my unit tests I need to freeze the current date. Otherwise the unit tests that work today will break next week.
Is there a way to freeze the current date (or sysdate) in HSQLDB?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/38154486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Restrict Multiple Items in Json I am creating a JSON schema in which a field is a array field and can have two custom types. Now i want that this field can have one custom type with max item as 1 and another as 0 to n.
"field-1": {
"type": "array",
"system-generated": true,
"anyOf": [{
"item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50830226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to deal with large data in Apriori algorithm? I would like to analyze customer data from my e-shop using association rules. These are steps that I took:
First: My dataframe raw_data has three columns ["id_customer","id_product","product_quantity"] and it contains 700,000 rows.
Second: I reorder my dataframe and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69521918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to use two @* in an xpath selector to select an element? I have an HTML element I would like to select that looks like this:
<button data-button-id="close" class="modal__cross modal__cross-web"></button>
Now clearly I can use this XPath selector:
//button[(contains(@data-button-id,'close')) and (cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72410786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pass arguement to custom permision class in django I have a custom permission class that extends the rest framework base permission. I am trying to pass an argument allowed_groups that will be a list of all the groups that have access to the particular view.
This is my current custom permission implementation.
class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73384214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you track down JavaScript's "Unexpected token" errors when you get an irrelevant line number? I've looked through a few questions about JavaScript reporting an unexpected token without giving a helpful line number (line 1 at localhost/index.html is "<!DOCTYPE html>"):
Uncaught SyntaxError: Unexpected token u ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30511714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Connection of VB.NET to SQL server I had a project running perfectly i.e. entering values in database linked by code. But in the other project I am implementing it shows values correctly submitted, gives no error while running but values are not entered in database.
Private Sub frmAddresume_Load(ByVal sender As Syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28470108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add ImageView's with swipe option IMAGE. How can I achive effect shown in image. Im working on browser and for choosing current active tab I want to build something similarlike this. User will be able to swipe view right or left and if user click on view there will be zooming animation to fit the screen.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42602038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why a jquery datepicker change days for months? I'm working on MVC project, and using the jquery datepicker I have problems in the post.
I use a partial view which contains the text box and the jquery function. Like this:
@model Nullable<System.DateTime>
<div class="row-fluid input-append">
@if (Model.HasValue ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19279831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Read or Fetch all the column headers in a excel sheet I wanted to just read all the column headers of my excel sheet.
public class Reader_2 {
public static final String SAMPLE_XLSX_FILE_PATH = "C:/Users/kqxk171/Documents/Records Management
Application/9.2_initial_test_report.xlsx";
public static voi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53928960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing a dataframe column with index I have dataframe with A,B,C as its columns. I have set an index on it using
df.set_index('A')
Now I want to filter rows using a condition statement like
df[df.loc['A'] == '10001']
This gives me the following error:
KeyError: 'the label [A] is not in the [index]'
How do I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46182117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What exception to throw - "Wrong Scenario" (Java) This is a silly question - but it bugs me.
From the existing (library) Java exceptions, which should I throw in the following.
I have a method that is used in the wrong scenario (it's basic assumption doesn't hold).
This method has no arguments - so I tend to skip th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20339167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how can I use fs in react with electron? I want use react+webpack+electron to build a desktop app.How can I inject fs module into react so that I can use it to read native files?
I have a component such as:
class Some extends Component {
render() {
return <div>{this.props.content}</div>
}
}
export default So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35428639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: cshtml Razor Error messages, Conditional Formatting I'm having a strange issue with my CSHTML files this morning. One moment everything is working fine... then next moment, everything is still working, but all my code highlighting for anything with @ infront of it has gone.
The project still compiles and runs fine, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20745908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cufon glyphs support I have a problem with cufon and a few Turkish glyphs. This is the context:
I used the @font-face property to embed the custom font (Delicious-Roman) on a website. The client didn't like the fact that the font was the last one to load on each page (common issue with font-face) so I switched to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11208149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fade in/out transition between pages I've written the following to create a fade in/out transition between pages. On my local setup, the page loads in smoothly, but there's no exit animation whatsoever on beforeunload, which is obviously pretty jarring.
I've created a quick demo of what I'm currently using on JSFid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43599022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS: Show an element only when you hover over it The following hides the element, but I cannot recover when I hover over it.
I've checked devtools to see that it is indeed rendered on the screen, I just can't see the contents of the div.
How do I make it so the div is visible only on hover?
.visible-on-hover {
vis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66756374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my oAuth signature need "%26" at the end? I am working with imgur's API and need to set up oAuth authentication. It's going pretty smoothly but I ran into a snag...
I couldn't get the oAuth request_token endpoint to give me a success message, so I contacted the imgur devs and they gave me a critical piece o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10529368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ES6 / JS: Regex for replacing delve with conditional chaining How to replace delve with conditional chaining in a vs code project?
e.g.
delve(seo,'meta')
delve(item, "image.data.attributes.alternativeText")
desired result
seo?.meta
item?.image.data.attributes.alternativeText
Is it possible using find/replace in Vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72189196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How could 32bit kernel read efivars from 64bit UEFI? I'm booting a GRUB EFI application compiled to x86_64-efi, on a x86_64 firwmare in UEFI only mode.
This GRUB app launches a 32bit Linux v3.18.48, with CONFIG_EFIVAR_FS=y and CONFIG_EFI_VARS=y.
Now I want to read some efivars, but I cannot even mount the efivarfs:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46610442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rendering dinamically GenericHtmlControl/Literal merged with an Asp.net Control My Environment is: ASP.NET 4.62 / C# / Boostrap 4 framework
My application renders bootstrap 4 menu from database query.
I've a div in aspx page
<div id="myNav" runat="server"></div>
and i add code behind as
myNav.InnerHtml = mystr.ToS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71218068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: image.Save lossless quality, in XP, pixelated on Windows7? So I've come across a rather odd situation.
I'm using the following to Save a PNG (lossless) image,
public static void SaveJpeg(string path, Image image, int quality)
{
if ((quality < 0) || (quality > 100))
{
string error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7287279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set the selectedIndex property and selectedItems is empty I have an wpf application that use the MVVM with a datagrid. I set the selectedIndex property in the viewModel, but the SelectedItems property is empty. Shouldn't it have the selected the selected item?
A: Not necessarily.
One way of doing this is to set Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13805839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Decimal.MinValue costs more than you expect Recently during profiling session one method caught my eye, which in profiler's decompiled version looked like this:
public static double dec2f(Decimal value)
{
if (value == new Decimal(-1, -1, -1, true, (byte) 0))
return double.MinValue;
try
{
re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43447716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I use a base class method to enable a variety of ui controls in .net? I need to write a delegate for a worker thread that will handle a wide variety of form controls (buttons, textbox, list...) enable method. I'm thinking they must all be derived from a base class that handles the enable property, but I'm not fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1584027",
"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.