text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to check session timeout configured in Jboss application I am using a spring based application with MS SQL server and using hibernate or native sql to fetch data from the database. However one of the problems I am facing is session timeout after around 2 minutes. The session timeout configured for the applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73257788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create grid data in SAS using info from another dataset I need to get a dataset of a uniform grid 20x20 using info from SASHELP.CARS so that x and y variables are obtained as follows:
do y = min(weight) to max(weight) by (min(weight)+max(weight))/20;
do x = min(horsepower) to max(horsepower) by (min(horsepowe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65360598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML to Powershell Hashtable <Test>
<TLC>FWE</TLC>
<Crew3LC>KMU</Crew3LC>
<MyText>Hello World</MyText>
</Test>
Hello there,
above you see me .xml with the name "test.xml". Down below you see my powershell beginnings.
What I want do to is the following, but I don't know where exactly to begin.
I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50859778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I render an image to the browser rather than force it to download? I'm using Azure blob storage to house images and DOMPdf to create PDF files. The issue I'm facing is that DOMPdf will not "Download files" to display them. My current controller, contacts Azure blob storage, grabs the file and spits it out as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74053042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Develop PhoneGap app for old android device I have a simple, but useful app for an old android device I want to develop with Cordova PhoneGap. Going through their tutorial, by default, the current version of cordova requires android level 14 api to build apps, but I've done the following to get the app to build on m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46541855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting data from JSON with React mapping I know this is probably a question that is easily answered, but I cannot figure it out after a few hours. I am trying to map over this JSON but it keeps saying "props.shows.map" is not a function, however the same works for another bit of data. I am trying to get things like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49581141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I debug the vim part of the poshcomplete vim plugin? As I love vim, I found two posts that are interesting in order to use PS with vim:
*
*Help starting vim from PSISE with the file edited in PSISE.
*
*I found this following line:
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("edit with Vim",{$cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32732966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Updating and Resolving Comments in Google Sheet I would like to update/resolve comments on google spreadsheets using a service account. Currently following the GDrive V3 API guide;
The API explorer on the page works well but I am unable to replicate it on Python.
GET and LIST methods work fine but PATCH keeps return... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65677850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: find time shift between two similar waveforms I have to compare two time-vs-voltage waveforms. Because of the peculiarity of the sources of these waveforms, one of them can be a time shifted version of the other.
How can i find whether there is a time shift? and if yes, how much is it.
I am doing this in Python and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4688715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: SCSS + Vue Components I am using <style lang="scss"> inside my single file Vue components. But in every single component using my color variables, I need to import the file, ie: @import "./../../../sass/variables";. I am using Laravel Mix to compile the sass + js.
Is there any way to make the varaible accessible wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47990915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access to the webpage was denied Django template
<span style="float: left; padding-top: 5px;"><a href="/media/{{image.path}}">{{image.name|slice:":25"}}</a></span>
settings.py
MEDIA_ROOT = '/tmp/'
MEDIA_URL = '/media/'
urls.py
(r'^media/(?P<path>.*)$', 'incident.views.media_serve_protected'),
def media_serve_pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18277911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't access parent form's button properties through user control form I have parent form called MainBackground and a user control named LoginUI. LoginUI is docked into the MainBackground.
I need to change enability of a button (InfoButton) located in parent form to "true" when user clicks on the button "Log in" in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49378726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How can I handle some special character being returned as such on my razor page? I have the following razor syntax on my view page that will return a label as the following format: "Recherce d & # 3 9 ; address" but it should be: "Recherce d'address". This is caused by a é in my translation file.
<div class="form-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55957273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LoadLibrary fails with lasterror 0x43 The network name cannot be found My program dynamically loads a number of DLL's using LoadLibrary and (on literally all machines) these load successfully, on one machine some of these DLL's do not get loaded. I added code to trace lasterror and this reports "0x43 The network na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10541328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lengthy Japanese Filenames sent as attachment using javamail are getting corrupted We are sending files with lengthy Japanese filenames ( >30 characters) as attachments with mails.
We are using Javamail to send mails. Before adding the attchment to the mail, the fielnames are being encoded in Shift-JIS using the fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27127303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to fix layout management I'm doing a clone of Minesweeper in Java. Everything was fine, but I wanted to add a counter at the top. And now, some buttons are off the screen. What layouts I have to change to repair it?
Before adding counter:
(https://i.imgur.com/cSKmCGr.jpg)
After adding "counter"
(https://i.imgur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55781063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Presenting a new window/view controller in Swift import UIKit
class StartUp: UIViewController {
var window: UIWindow = UIWindow(frame: UIScreen.mainScreen().bounds)
var window2: UIWindow = UIWindow(frame: UIScreen.mainScreen().bounds)
var window3: UIWindow = UIWindow(frame: UIScreen.mainScreen().bounds)
var window... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30429774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WampServer HTTPS Hello I want to learn more about WampServer an HTTPS.
I have this website.
But if i give the command:
openssl genrsa -des3 -out server.key 1024
it will give me an error called:
he ordinal 3807 could not be located in the dynamic link libary
LIBEAY32.dll
I have Look on my directory:
wamp\bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23263127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 8078 bytes in 8060 B datapage (SQL Server)? It is written everywhere that data in SQL Server is written in pages of 8K (8192 B) each with 8060 bytes for data and the rest is overhead (system info).
Though, the recent article [1] gives code example illustrating, as I understood, that 8078 bytes of data fit into a pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3778721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Walking (tic-toc) clock with js and php Have a script with "walkin" clock on javascript and php (i need server-side time - it's important), but it's stop and don't count until refresh a page. What i'm doing wrong, please help. Thank you.
<?php $Hour = date("H");
$Minute = date("i");
$Second = date("s");
$Day = date(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52249232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with NSMutableArray Why do I get this warning in Xcode 4.3.1?
Thanks.
A: You are allocating an NSArray instead of an NSMutableArray ?
A: Just change
NSMutableArray *array = [[NSArray alloc] initWithObjects:@"About", nil];
With
NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:@"About", nil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9807609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do i deal with this? trying to get the outcome to produce the names of the hostvars #!/usr/bin/env python3
'''
Custom dynamic inventory script for ansible, in python
'''
# Importing modules needed
import os
import sys
import argparse
try:
import json
except ImportError:
import simplejson as json
clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70048064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: error in google map integration i am trying to integrate the google api i have found some codes for that
API Script
<!-- Dependencies: JQuery and GMaps API should be loaded first -->
<script src="js/jquery-2.1.1.min.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<!--... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34286878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: QProcess not emitting its signals when not waitForFinished() In the following code omitting the waitForFinished() makes the QProcess stop emitting its signal. What the heck is wrong with it? Is this a Qt Bug? (5.7). Note this code is run parallel with QtConcurrent run. But this should not change anything, should it?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39036458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Dialog not pulling info from EditText box Hello I am trying to write a small app and when the day is Sunday on the system it is supposed to pull up a dialog box which it is doing just fine. However when I put info in the boxes in the dialog and click submit it is still showing the second dialog for the emptyBox I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18071950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ declaration is incompatible These are the code files for my swapchain, I am using dx11 BTW, so you guys dont get lost on why I'm using d3d device, etc.
//Header
#pragma once
class SwapChain
{
public:
SwapChain();
bool init(HWND hwnd, UINT width, UINT height);
bool release();
~SwapChain();
private... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63329422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to return activity based on timedate mysql 5.7 this is my fiddle https://dbfiddle.uk/?rdbms=mysql_5.7&fiddle=5422fb347abaf2bde082eb522f5be4fb
table data2
+--------------------------------------+-----------------+----------------+----------+
| user_id | event_timestamp | event_name ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63948800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way in Powershell to find ADF slices that completed in last 1 hour for example? Given certain dataset, I want to find out how many of its slices actually became Ready in last 1 hour (or say 2 hours, it's just an example). This gives me idea of cluster health. Because out of dozens of datasets, if no Rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44339545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What pull parser implementation to use and when? I need to use a xml pull parser. I can find stax-api.jar which seems to be already part of com.sun.xml.* and it seems that there is already something stax related implemented.
com.sun.xml unfortunately has no sources in JDK 6, so I can't tell.
Also there are xmlpull... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7691663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: org.joda.DateTime returning wrong month DateTimeFormatter d_t = DateTimeFormat.forPattern("DD-MMM-YYYY HH:mm");
String date = "02-Mar-2003 00:01";
DateTime dateTime = DateTime.parse(date, d_t);
When I am running the code its returning 02-Jan-2003 12:01
A: Your date format string is wrong. Use dd instead of DD for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13025045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to clone div content and append only one at the time? I have form that should allow user to click on the Add Row and create another identical row. This will required new row to give an option to the user to delete that row if created accidentally. Here is my code that doesn't works correct. After I click on add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53288347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Double pointer in the function I am trying to insert strings in the binary search tree.
So what I am to trying is,
parsing strings from a file(contains instruction set) and then inserting in the function
insertOpcodeFromFile().
So this function will execute
(*node) = Node_insert(&node,instruction).
the node will b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43080416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JAR program not allowed to open/save under MacOS Catalina ("the open file operation failed to connect to the open and save panel service") I am having the following problem:
I am using Catalina (10.15.7) on a MacBook and recently I downloaded a JAR executable file (called JKnobMan) but apparently it doesn't have acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65098188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Object reference not set to an instance of an object I don't know why I am getting this error when I deploy my web on server. Is it because the problem with my connection string? Please help me. Thank you!!!
Web.config
<add name="Database1" connectionString="Data Source='170.21.191.85';Initial Catalog='Database1';U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5115272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: null values returning from gson.fromJson I have some values in my object are returning by value null when converting from json to object and some others doesn't,i can't figure out why is that happening
here's my code to convert
OriginalMovie originalMovie = gson.fromJson(jsonString, OriginalMovie.class);
here's my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31341295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ Pass stdcall function name as parameter I am unable to pass stdcall function name "TestFunction" as parameter into ExecuteLocalThread and to use in beginthreadex
unsigned __stdcall TestFunction(void* timerPointer)
{
unsigned result =0;
printf("thread is running\n");
return result;
}
void ExecuteLoca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14256837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Elements in list fading in at unexpected times I am trying to load in separate elements in a list at different times.
The bird top left should be first, followed by the background and then the other elements.
https://imgur.com/a/Z4vKcEv
As you can see in this gif, the elements are fading in at times different than i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51510712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to inject an HttpClient CustomDelegatingHandler in dependency injection I have a custom delegating handler for logging purposes:
public class LoggingDelegatingHandler : DelegatingHandler {
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request, Cancellat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75553512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need more about magento basic I'm new to magento. Need basic knowledge about magento programming, and magento customization.
Struggle to print content inside frontend.
I followed below site to print content but error shows inside layout,where the content displayed.
Can help me what is what in magento
A: You can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30588163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: At what number of columns should you make another table? I had a table that nearly reached 20 columns.
I find each one necessary since it's a "project" table, and the project has columns that indicate stuff such as when it was created, when it was updated, its id, who started it, who finished it, some metadata such... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29380711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to install fonts without copy to font(windows) folder I want to make a windows application where people can buy the fonts License of the yearly or monthly base so need to font installs without copy to font(windows) folder. how to do this?
A: Windows stores list of all fonts in registry: "HKEY_LOCAL_MACHINE\SOFT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61971097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Web Server for Progressive web apps I am a beginner to developing a Progressive Web Apps, as i have used Chrome Web Server initially to host my progressive web application.But i don't know how to host my PWA app on other web server.
Your help will be appreciated!
A: *
*Get a GitHub account, install GitHub softwar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53792673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Loading Class from Path I want to create 'modules' which extend a 'Module' interface, these would be separate jars that get loaded on runtime - essentially adding extra features. I want to have these loaded as the 'Module' object (from the interface).
I've tried the below code, and while my code prints out the Found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58353670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modal is not showing and can't close So I am trying to add the search function and the scrollable table in the bootstrap modal I have. At the moment, I have made 1 modal to work with the functions and it is showing good results.
But then the other modals of the same page does not seem to load when I click the button... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66098529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: viewmodel .prototype .function vs self .function in a viewmodel? Both code blocks below work, in context and seem completely functionally equivalent. I understand js prototypes reasonably well, so I'm not asking about them per se (unless that is the only difference).
Rather, comparing two simple ways to put a method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26198099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Need help making string input return a histogram that counts frequency of letter pairs I need to write a function(s) that takes strings as inputs and outputs a histogram of the frequency of letter pairs, in descending order.
I've managed to write a function that returns single char count, but I can't figure out how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56843656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine the current orientation I would like to determine the current orientation of the device in a WP7 app. I do not want to handle the OrientationChange event, because I need the current orientation when the page is opened.
I've been trying to do it with this piece of code I found in a forum:
((PhoneApplication... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8577760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: F# - Return a value from for .. do I have a (random) set of numbers and I want to decide for any given number, whether the number is a composite one (meaning it can be created by two other numbers in the same given set).
Mathematical definition of my function:
Current code:
let task1 (M : seq<'T>, r : 'T) : bool =
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36816256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Generating first n prime numbers using dynamic programming How can I generate first n prime numbers using dynamic programming ? (Code is not required just the concept would be enough)
A: We can use Memoization technique for generating prime numbers using dynamic programing. You can write a function which accepts th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29025520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Run Once Code: Beyond Boolean? I'm struggling for a pattern here. I have quite a few tasks that need to be run, but only need to be run once if they haven't been run before. Everything right now is handled by if/then, booleans and a hashtable. There are also nested children of the same effect (if/then, boolean) so t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3420708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pass Post (variable) info to a second page I have an HTML order form that collects info and then on submission passes that to a PHP form which sends an email. Then I have the PHP form forwarding to a PHP confirmation page.
*
*I am using the POST method on my HTML form.
*I am forwarding to the PHP confirma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3754707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does "alternate tone or mood" exactly means in tag definition in HTML 5? In the docs(MDN), it is written:"Use the element to mark text that is in an alternate tone or mood, which covers many common situations for italics such as scientific names or words in other languages".
What does "alternate tone or mood"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62921999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to structure a Python package so others can add modules easily I have a component-oriented Python (3.3) project. I have a base Component class. I want others to be able to add modules that contain subclasses of Component just by copying their .py file(s) into some folder, without having to edit anything. Runn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21436315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Phone 8 URI associations and the mail client I have an application that has a registered URI association (my-prefix://) as per http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx however I have noticed a difference between how the emulator works and how a device works.
Within... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19022676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Better way to handle asynchronous log writing public static class LogWriter
{
private static ReaderWriterLockSlim writeLock = new ReaderWriterLockSlim();
public static void WriteExceptionLog(string content)
{
#if DEBUG
MessageBox.Show(content);
#endif
WriteLog(content, Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13024433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing information from a jQuery POST request? I have been trying for 2 weeks to get and parse information from an API of this site:
http://www.imei.info/api/imei/docs/
I'm new to web development (RT C++ developer), I can't seem to get is to work.
my code here:
<!DOCTYPE html>
<html>
<head>
<script src="Script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15988787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: why validate content-type header in REST request The OWASP website suggest to validate the content-type header. But it does not specify the rational for the same. What is the reason that I should validate the content-type header, even though I am not reading or using it?
When POSTing or PUTting new data, the client... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40763181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Include argument in NAnt executable call if property is not null or empty For a build script, part of my process is to deploy files using an in-house executable. We call this with a number of parameters.
On an application I'm working on, it turns out we need to add a parameter. This isn't something that retroactiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47354516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Render props with typescript I am trying to create a render props wrapper component. It is working, but I am getting type errors. Here is my link to a code sandbox as well. link to sandbox
*
*the first error I am getting is children is an expression that is not callable.
*the second error is "hello" has implicitl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72307968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: extension 'GL_ARB_shading_language_420pack' is not supported, how to load this extension in QT? I'm using QT on a mac pro to run a demo of opengl.
But I got a message like this:
:: OpenGL initialized ( 4.1 INTEL-14.7.8 )
QOpenGLShader::compile(Fragment): WARNING: 0:1: extension 'GL_ARB_shading_language_420pack' is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63380964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Average in dataframes with subsets of rows - Python I have a dataframe as the following:
Member Category Total
1001 1 5
1001 2 4
1001 3 9
1003 1 7
1003 2 5
1003 3 2
1005 1 2
1005 3 5
I need to get:
Member Category Total ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47039231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: display different under IE6 and other browers i know IE6 is dead,but in china, there are lots of people still using it. so expect someone can do me a favor about this problem.
this is the page.the even line's background color is not the same length, under IE6, which is shorter
the display under IE6. (http://run.xxm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4487274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flex: Passing object to save back to server freezes application I have a NavigatorContent which is displayed when the user selects an item in a DataGrid.
This NavigatorContent contains a form and an accordion displaying the related objects.
When the user presses the Save button in the NavigatorContent the form and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8984707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to weave AspectJ java project into Spring boot project I have java project named Test which have all aspects in it. I wan to use these aspects in another spring boot project. I am working on a poc to weave aspects in Test project into a spring boot application. What is the efficient way to do so and how it can b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68040124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: group by ratio and seniority list IN SQL I am working on a MYSQL, and I am looking for a solution to show data grouping by ratio.
I have a COURSE table which contain courses id and courses ratio. I have another table, ASK, which contain askers id, and another field course id pointing on COURSE table (ids correspond)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6642130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Iteration of a for loop based on a text file Question: How can I make a for loop iterate over a text or a csv file instead of an array?
Scenario:
fruits = ["apple", "banana", "cherry"]
For instance regarding the code above, instead of the fruits array I want it to be the text or csv file
A: Try this:
filename=["1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68361159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Postgres 13 pg_cron error on RDS that's hard to track down pg_cron jobs all fail with "role of....doesn't provide permission to schedule a job"
I'm working on getting pg_partman and pg_cron set up on RDS, but when my pg_cron jobs run, they return this error:
ERROR: The protected role of rds_super doesn't provide per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69822551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enabling TLS-1.2 on embedded Jetty Currently I am using this code which is enabling TLS 1.2:
ServerConnector httpsConnector = new ServerConnector(server,
new SslConnectionFactory(sslContextFactory, "http/1.1"),
new HttpConnectionFactory(https_config));
httpsConnector.setPort(8443);
httpsConnector.setI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43287071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Liferay Service Builder - Database Persistence i understand that persistence layer is where you store your data, and that not all data is persisted in the same manner -- some use databases, some use XML, some use a remote service.
What then is (as a verb) Database Persistence? I'm studying Liferay Service Builder an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23179360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: primefaces datatable selectionMode multiple not working with mojarra Recently I switched to mojarra from myfaces and noticed that primefaces datatable checkbox multiple row selection is not working.
I have tried the exact sample program available at http://www.primefaces.org/showcase/ui/datatableRowSelectionRadioChe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5569502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOS 11 - Location update not received after adding delegate I have been having trouble with location services in iOS 11 for both "Allow while Use" and "Always Allow". Works without issue in iOS < 11. Followed this thread in trying to fix but still doesn't work. What am I missing? Thank you in advance.
*
*I have U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46616496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Meteor: Count data from collection anyone please i need you help. before this I have asking question but I cannit find this solution. I have create code to count variable in collection. I can get the result when count one by one but not by group. Thats my code, I want to count this but the code not given any resut t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37087209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: new ATMEGA1281 and avrdude I'm experiencing sometimes problems when programming my new ATMEGA1281. It is suposed to be the same as my old one, the only difference I guess is the serial number:
ATMEGA1281 16AU 1104 vs ATMEGA1281 16AU 1304
I'm used to program the ATMEGA1281 with avrdude command, but with the new chip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16733662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: insert data into html table from flat file I have lots of user records similar to the following inside my main index.html page:
<tr>
<td>Angelica Ramos</td>
<td>Chief Executive Officer (CEO)</td>
<td>London</td>
<td>47</td>
<td>2009/10/09</td>
<td>$1,200,000</td>
<td>504</td>
</tr>
This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48363701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Error: is a 'field' but is used like a 'type' c# I have a global variable averagel that I am trying to manipulate in a method. The compiler doesn't have a problem with me setting the value averagel = averagel / (xrestriction * yrestriction); but for some reason it doesn't like it when I try to use it to set another ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11192153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SWT Help button in TrayDialog I have a class that extends TrayDialog and that has a help button. I have set the folowing:
setDialogHelpAvailable(true);
setHelpAvailable(true);
And I can't find how I'm supposed to implement the Help button in the lower left corner. I've tried
@Override
protected void buttonPressed(i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24041022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Allowing user to save contents of html list to text file I'm working on an application (ASP.NET, Webforms) that generates a list of outputs based on a user input. I want to allow the user to save the contents of said list as text file, or possibly as other filetypes such as .csv. What is the best way to approach thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4331634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert InfluxQL to FLUX query in Grafana In Grafana I have a dashboard that uses InfluxDB 1.x as data source, I'm migrating it to use InfluxDB 2.0 data source and Flux querys.
In the Grafana dashboard there is a Variable called "Server" which has the following query defined:
SHOW TAG VALUES ON telegraf WITH KEY = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63480988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Managing a windows cluster from C# I am trying to start/stop a windows based cluster in C#, below is the code I am working with so far...when I get to TakeOffLine function below I get a "Not Found" exception from, System.Management.ManagementStatus.NotFound. Not sure what is exactly not being found? If there is a (a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4867397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Inserting icc color profile into image using Pillow ImageCMS I am trying to insert an ICC color profile into an image. Using code from this post as an example my code looks like this:
from PIL import Image, ImageCms
# Read image
img = Image.open(IMG_PATH)
# Read profile
profile = ImageCms.getOpenProfile(PROFILE_PA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60567455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP voting system check votes I’m working on a PHP voting system and I want to check logged in user voted on posts and display voted if the user have voted. I would like to do it in one single query without using multiple quires.
Posts table
+---------+--------+--------+
| post_id | title | c_id |
+---------+... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38025983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: trouble when running tansorflow project I was trying to run main.py of this project on my m1 macbook and got this output:
Collecting Dataset...
Time elapsed getting Dataset: 25.09 s
Using CullPDB Filtered dataset
Hyper Parameters
Learning Rate: 0.0009
Drop out: 0.38
Batch dim: 64
Number of epochs: 35
Loss: cate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67293426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Optimize MySQL query with subqueries, IF and Joins I've a complex SQL Statemant which needs per call (its for a calender view) 0.35sec. With 50 users and a 2 weeks of calender items, it takes 245sec which is much too long. I tried to optimize the query but at the moment I've no more idea.
I've an index on all relate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16064857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What does "Clear Graphics Context" means? In Xcode 4.3, when you choose some UIView object placed in .xib, you can find out there is an option saying "Clear Graphics Context". What does it means?
A:
When it is checked, iOS will draw the entire area covered by the
object in transparent black before it actually dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10361903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: ISNULL() in LINQ to XML SELECT * FROM CUSTOMERS WHERE RTRIM(ISNULL([SHORTNAME],'')) LIKE '%john%'
I want to write this using Linq,
var persons = from person in xmlDoc.Descendants("Table")
where
person.Element("SHORTNAME").Value.Contains("123")
select new
{
shortName = person.Element("SHORTNAME").Value,
longName... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1519501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java/C: OpenJDK native tanh() implementation wrong? I was digging through some of the Java Math functions native C source code. Especially tanh(), as I was curious to see how they implemented that one.
However, what I found surprised me:
double tanh(double x) {
...
if (ix < 0x40360000) { /* |x|<22 *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41818255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Test that a record is a duplicate of another record in RSpec In my Rails app tested with RSpec, I'm testing a function that calls .dup() on some records and saves the duplicates. How can I test that the newly created records are duplicates of the expected original records?
I doubt there's an assertion for this speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56190618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: comment out lines in /fstab with bash script I need a bash script command to look in /etc/fstab and find the line that contains a mount name "/mymount" and just puts a "#" at the beginning of the line to comment it out.
from this:
/dev/lv_mymount /mymount ext4 defaults 1 2
to this (with a #):
#/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29399790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TortoiseSVN Won't Allow Me To Add Any Files I am trying to add files to an SVN repository using TortoiseSVN 1.8.1. I right click on the files and select TortoiseSVN->Add. I then select all the files in the window that pops up and click OK. Upon clicking OK, another dialog box pops up and all the files appear to be s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18000363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: ExpressionEngine 1.6.9: displaying a weblog at all pages I'm a EE newbie.
I have the code below. the poll weblog displays at search result page, but doesn't display at blog and post details page :/ what am I missing?
display at search result page: www.blabla.com/search/noresults/d8ee432f229715a4adfbe1cc0d21049a/
NO ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3529934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: If just the index.php loads as its generic unparsed self, what exactly is [not] happening? I visited a client's site today, and I'm getting the actual content of their index.php file itself rather than their website. The function of the index.php file says:
This file loads and executes the parser. *
Assuming this i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7555624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding the same value at multiple indexes I created a java program that will search for a value in array but my problem is when I input the same value in a different index, the first index is the only one that will be on output.
Example index 0 = 2, index 1 = 3, index 2 = 2
Output : array 2 is found at index 0 only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27572128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Firebase Authentication error occured I am working on firebase authentication in vuejs using firebaseui method.But i am getting this error
Could not find the FirebaseUI widget element on the page.
Here is my code
var config = {
apiKey: "some api key",
authDomain: "sample-1234.firebaseapp.com",
databaseURL: "https:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51034604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: system.loadlibrary with libname as parameter I want to do a class that receives a libname as a parameter in constructor. Depending on that parameter different objects instanciated of this class have to load different dynamic libraries with a call to system.loadlibrary(libname).
For example, object 1 loads library1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25662282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copy columns from one excel file to another excel file sheet using python I have two excel sheets, I am trying to copy contents from one excel sheet to another using pandas.
First_excel sheet -
Name Class City Date Misc Misc2 Blank Col
AA xxx 12 --
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65150103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use a file from a remote repository into my Terraform file? I have this module to provision an EC2 instance using Terraform
module "EC2" {
source = "../Modules/ec2"
ami = "ami-xxxxxxxxxxxxx"
instance_type = "t2.micro"
userdata_1 = file("C:/Users/My_User/Documents/terraf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66092211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ip camera using ffmpeg drawing on screen I'm using ffmpeg 1.2 to take video from ip camera.I make it draw on the screen, so I wonder if there is some event mechanism to to know if it is time to call av_read_frame?
If I read frame not so frequent as the camera gives frames i get segmentation fault = on some malloc f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22189938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: packing a php self contained executable with my application I am building a mac application using Xojo framework,
the app i am building have to run php as a command line, i could use the php that ships with mac osx
however i need a php with mcrypt extension, and the one built into the osx does not have the mcrypt an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24719408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does std::count return a signed integer? I was really surprised to see that std::count returned a iterator_traits<InputIterator>::difference_type, which in turns refers to a long int on my platform.
Why is that? A negative count elements within a container doesn’t make any sense.
A: It's actually a std::ptrdiff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14811606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you reference 3rd party react components in a Rails app? I'm building an app using the react-rails gem. This means all assets flow through the rails asset pipeline. In order to access 3rd party javascript libraries, I've been taking advantage of rails-assets.org which bundles javascript packages from bower i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39156365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.