text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Exlude a directory in .htaccess with RedirectMatch for Wordpress I change my Wordpress permalink structure from %year%/%months%/ to %postname%
So i create this mod alias rules in .htaccess but i have a problem:
RedirectMatch 301 /\d{4}/\d{2}/([^/]+)(/?)(.*)$ http://domainname.com/$1
The rules also redirect the imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20006351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Diagrammr package to make a flow DiagrammeR I am trying to make a flow to show my experimental design. I have something that works, but I would like to add another layer at the bottom-which adds a question box to each group, which should be big enough to read. An example of what I have is image 1 hoping for is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71520514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to turning back the situation when button clicked again in Qt? Basically I created QListWidget and QPushButton and I want to list current item in the widget when I clicked the button.Until here it is fine. What I want is after clicking that button again, I want to see previous situation(old item!) of that item. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65550441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fetch the link that is outside the href tag? private static final Pattern ptninhref =Pattern.compile(
"(?:.*\\<[aA][^\\>]*(?i)href(?-i)=\\\"[^\\\"]*)([^\\\"]*)");
public static List<String> captureValuesinhref(String largeText){
Matcher mtchinhref = ptninhref.matcher(largeText);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29792306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: SQL - group by with two colums agregation problem My today's problem is that I have a table that has rows like that:
ID NAME NUMBER IDN
1 dsad 500600 12
1 dsad 600700 13
2 kkkk 111222 56
2 kkkk 333232 57
in one ID example 1 i have 2 identical names 2 different numbers and different IDN.
What i want is to extrac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4803231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: onSuccessListner after image crop permission I am getting image cropping like this:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52799456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF download multiple files with progress in popup Hy,
I am trying to make a popup indicating the progress of the download of several files. I'm not used to working with await/async and think I'm probably making a big mistake in this case.
The goal is to follow the progress of the file download one by one, I don't w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68739724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a subgrid on one Form and pass its values to a look up in another form Hi i am a completely new to crm2011 and I'm really stuck on with this -
I have created a Candidate form with FirstName, LastName and a look up that will display his college details.
I have also created a Form named College with fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19675330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find the oldest file (recursively) in a directory I'm writing a Python backup script and I need to find the oldest file in a directory (and its sub-directories). I also need to filter it down to *.avi files only.
The script will always be running on a Linux machine. Is there some way to do it in Python or would runn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/837606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to use local variables when calling show on an object i.e. @object.this_#{variable}? Is there any way to pass a variable through to an instance in a show partial? Basically I'm creating a service that follows CRUD and want to be able to iterate an instanced variable. I can create it by passing a partial like so:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43416954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Button in Material UI is transparent when loading Every time I start a new project with Material UI, I have the same problem with buttons ignoring their primary color. For a second when loading, the background color is clearly visible, but after that the button is transparent.
I have installed all the necessary pack... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75202373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parse a json file and add the strings to a URL How do I parse a json output get the list from data only and then add the output into say google.com/confidetial and the other strings in the list.
so my json out put i will name it "text"
text = {"success":true,"code":200,"data":["Confidential","L1","Secret","Secret123... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17678209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL simultaneously transforming foreign key? (MySQL 5.5) I have a table with a natural key and another with a foreign key constaint to it:
create table A
(
id varchar(255) not null primary key
...
)
create table B
(
a_id varchar(255) not null
...
foreign key (a_id) references A (id)
)
I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12927339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Commenting Out in XML Is the first set of comment out code below an issue for xml to process since it is put inside of the tag?
<!--Define name="default election policy">
<Policy name="DefaultToWaive"/>
</Define-->
<!--
<Define name="default election policy">
<Policy name="Defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31253850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery .prop() returns undefined, while .attr() works as expected for data-* I am simply trying to get a couple of properties from two elements. Getting the property value from the input element works as expected. The problem is with getting the property data-detail property from the button element. It returns undef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36663690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Optional Parameters: "empty" vs "not provided" Is there a way to differentiate between an empty value and one that is not mentioned at all?
For example, I'd like to the client to be able to update a Profile and only affect values which are specified in the request... EVEN empty/null ones.
so given a profile with nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22003933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Hide header Tabbed Navigation Page Xamarin/FreshMvvm I'm struggling with hiding the header of my TabbedNavigation Page.
public class NavigationContainerNames
{
public const string AuthenticationContainer = "AuthenticationContainer";
public const string MainContainer = "MainContainer";
}
public partial c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56266448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where dependencies and services should register when using Web API and Azure Function under same solution in Clean Architecture I am working on an ASP.NET Core 6.0 Web API solution that is implemented based on Clean Architecture. Further down application using Entity Framework Core 7 in the infrastructure layer. My ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72394391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filter object or array I would like to list all the Ids and roles in a given json but where there is only a single role, rather than an array of 1 it provides it as an object, so if I run "[]?" I get the error Cannot index string with string "Name".
Extract (example.json):
{
"Person": [
{
"Roles": {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57748823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting an analytics custom metric server side I'm using the GTM data layer to populate data through the enhanced ecommerce interface of Analytics. The goal is to provide detailed cost data so I can build a dashboard that shows profitability for my business. It's working great on a transaction basis and I am uploa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34387501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call a deriving class operator()? I want create an expression structure, to calculate value (by calling operator().
expr - base expression class, it should work like result = expression(100500).
const_value - struct returns constant value.
argument - returns it's argument (== function id).
e_add, prod, sub, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50328197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deleting everything after a pattern in Unix I have a string replenishment_category string,Date string, I want to delete everything starting with Date (including it), also the comma before it if it is present.
I have the string to be replaced stored in a variable:
PARTITION_COLUMN='Date'
I tried sed to replace every... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50584292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What is the security flaw in this authentification process over unsecure HTTP? First question here :)
I've been reading many questions about how to secure login on sites without https. They are all very interesting and most answers boil down to "Use SSL if you care about security!". I agree with this, yet I also won... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42000143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: unable to compile Maven project after switching to ADT I've switched from Eclipse Indigo to ADT (version 22.3.0)
I compile a project using Maven through command line:
mvn clean install android:deploy android:run
The project compiled fine on my older system and I haven't changed it at all. Now when I import it to AD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20859029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java HttpURLConnection only works on certain sites package internet;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
public class internet {
public static void main(String[] args) {
try {
URL url = new UR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32124955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: HTML/JS) To display timestamp list of video (capture video image at specific timestamp) I am working on html/javascript.
I want make thumbnail image list of specific timestamp in uploaded video.
I found a following code, which captures current image of video.
function captureVideo(video) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74858203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving data set using jQuery.data() I set some data to a div on the first click using jQuery.data().On the second click, when I try to retrieve it, it gives me 'undefined'. Any idea where I am wrong?
Please see jsFiddle
<div class="player forward playerposition">
<input type="button" class="addplayer addfor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25841219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why an entry of pure virtual function in virtual table is required My understanding regarding virtual table is , whenever compiler find virtual function in a class it creates a virtual table for the class and all the function pointer for virtual function will be placed in that table.
But when it comes to pure virtu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31307723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom button field in blackberry I am using a custom ButtonField in my application. I have used the code from the "Blackberry Custom Button Field" blog post on Coderholic to create a custom button in my app.
Now I want to set the editable property to false for this custom button.
How do I do the equivalent of butt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7697187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get/set value of the ACF field by ACF JavaScript API, in a custom block, on the post editing page I made a custom gutenberg block using the AdvancedCustomFields PRO plugin. This block has a gallery field. I need to make a button that fills the gallery field with certain photos. I render button using a new custom fie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70347817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cronjob is not working for laravel (linux server) I've tested the cronjob in local which is working fine. But it is not working in server. Any help is appreciated. Thanks in advance.
"sudo systemctl status cron" command gives following outputs:
cron.service - Regular background program processing daemon
Loaded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73063779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to resize image to fit full screen when resized to a smaller screen and whitespace issue So far,I've got the images to stack on top of each other in block elements and arranged a paragraph next to it as description. What I want it to be like is that when I resize the screen to a smaller screen, the images shr... | {
"language": "la",
"url": "https://stackoverflow.com/questions/49254614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What is the best approach to centralzing error messages in an application? All throughout an application wherever error messages (or other user messages) are used I typically hard-code a string. Obviosly this can be really bad (especially when you may have to come back and localize an app). What is the best approach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disabling some code completely in standard c++? Trying to understand what the best way to disable code parts currently is with all the fancy features we have in C++ nowadays.
My test implementations are as follows.
1) Using static if (c++17 and newer):
inline constexpr bool LogEnabled = false; // this would come fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59437654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selecting Table TD without TR I have a html Table like this:
<table>
<tr onClick="someFunc();">
<td>Foo</td>
<td><button onClick="anotherFunc();">Bar</button></td>
</tr>
</table>
and Javascript:
function somefunc(){
alert("Foo");
}
function anotherfunc(){
alert("Bar");
}
The problem is when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29651854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I pass data from one component to another for edit form? Currently, I have a modal material dialog window that asks the user to input a number and then hit search. On search, it fetches data from api call and gets back a response object. I want to use the response object to populate a new page (edit form).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49548623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I use a VM Argument or Environment Variable? I have a piece of Java code using Apache Spark to join two dataframes with a conditional that relies on a VM argument -DearlyData=TRUE for an inner join, and -DearlyData=FALSE for a leftanti join depending on whether the VM argument is set to TRUE or FALSE (Technic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46184047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Docker + ReactJS + Webpack Hot-reload + Django Webpack hotreload creates a static asset/bundle that usually is picked up by Django's collectstatic command. Since I have this setup dockerized, I'm looking for advice on how to get the hotreload working on a docker host. Specifically, when I change some code in the Rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35385070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Value cannot be null. Parameter name: username. Starting .net application When I start the application from Visual Studio 2010 the following error shows up:
Value cannot be null.\r\nParameter name: username
I can see this error in Global.asax.cs in the parameter sender of this method:
void Application_Error(o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13643275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scraping a specific tweet's data from Twitter in R R data analysts,
I tried to scrape all retweeters' user names (i.e. screen_names) from a specific tweet, but 'get_retweeters' function in 'rtweet' package does not seem to be able to do so. How can I scape all the screen_names (i.e. twitter accounts) of the people w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66463788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Highcharts stock data grouping not working properly without groupPixelWidth I cannot get Highchart stock to properly group my data according to my units with a line chart (xAxis type is 'datetime'). Here's my settings:
series: {
dataGrouping: {
enabled: true,
forced: true,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61910469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swift - Get array item with an IndexSet I have my Contact object:
struct Contact: Codable, Identifiable {
var id: Int = 0
var name: String
var lastName: String
var phoneNumber: String
}
And in my view I have a list of contacts that will be fetched from a server.
List {
ForEach(viewModel.contacts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61347408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is the Unicode code point value equal to the UTF-16BE representation for every character? I saved some strings in Microsoft Agenda in Unicode big endian format (UTF-16BE). When I open it with the shell command xxd to see the binary value, write it down, and get the value of the Unicode code point by ord() to get the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22865167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Uppercase Lowercase SAMBA file creation Is there anyway, using C# .Net 2 framewort to create two files differing in Uppercase/Lowercase in a case-sensitive SAMBA drive?
For example:
myFile.txt
MyFile.txt
This is the SAMBA configuration:
smb.conf
case sensitive = yes
preserve case = yes
short preserve case = yes
Tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8160933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configuring same ports with different protocols in Azure Container Instance I am trying to set up pi-hole in Azure Container Instance. Here is the link to the docker-compose file of pi-hole.
Following the YAML reference for the Azure Container Instance, I am trying to convert this docker-compose file.
Here is the Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61053139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Invalid rectstyle object I am following a Tutorial and cannot seem to find what I am doing wrong. I tried it multiple times while changing the value of the rect to no avail.
import pygame
width = 500
height = 500
win = pygame.display.set_mode((width, height))
pygame.display.set_caption("Client")
clientNumber = 0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73059323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to attach a few entities to context? Here is code:
public void CreateNewAttempt(QuizAttemptDto attemptModel)
{
var attempt = Mapper.Map<QuizAttemptDto, QuizAttempt>(attemptModel);
_context.Set<Student>().Attach(attempt.Student);
_context.Set<Quiz>().Attach(attempt.Quiz);
_context.Attempts.A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51876282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C array of structs initialization issues when using macros Why is adsafe_tags[1] is not getting properly initialized?
// local string (via static)
#define SSTRL(varname, val) \
static const char varname[] = val
#define SSTRLEN(var) \
(sizeof(var) - 1)
struct scs_data_tag
{
uint16_t key_size;
uint16... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21552551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error with await operator There is problem with my code. How can I solve this problem? This problem in await operator.
public MyModel()
{
HttpClient client = new HttpClient();
HttpResponseMessage response = await client.GetAsync("https://api.vkontakte.ru/method/video.get?uid=219171498&access_to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18205810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Image clicked from Camera inside android app is blurred and has square pattern all over it I am developing an app that uses phone camera to click pictures. On a few phones the camera images captured has square pattern as shown in the picture. I was earlier using the default Camera intent for opening the camera. Now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32937360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Roomle Model Falls Through Floor If Model Has Glass Like Material A few of our furniture models have acrylic legs, which for some reason makes the model "fall" through the floor. If for example it's an acrylic bench with a fabric cushion on top, the model falls through 'till it reaches the bottom of the cushion.
Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69544174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# WinForms - Button on Form2, to hide Form1 So I have 2 Forms:
*
*Form1
*Form2
There is a button on Form2, that I'd like to have hide Form1 when clicked.
Button Click from Button in Form2
var mainFrm = new Form1();
mainFrm.Hide();
This does nothing. I'm obviously missing something, but can't seem to figure i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37420027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to convert .rda to .pmml and use it in Python I've got myself a neural network model in .rda format that is already trained, and I'm not sure how to convert it to .pmml so that I can use it as a predictive engine in Python. Once this is done, which libraries should I install to allow the pmml file to be used in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45387069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selecting specific rows based on conditions in MySQL 5.6 Following is a small snapshot of data from which I need to extract information.
ID FREQ LTD SD LWD DPD
_______________________________________________________
1021 Weekly 2016-05-27 2016-05-23 2016-05-31 0
1021 Weekly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48619030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot set checkbox to checked using jquery I have the following javascript function. A the top of the function, I am able to detect if a checkbox is checked using $(elem).is(':checked'). Later in the function I want to wire up an onclick event in a modal window such that it will checkmark the elem's checkbox, but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16409153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento - Importing Products in csv file - empty columns I am currently adding all my products into a csv file ready to import into my store. To get the template i exported my existing products and am using that csv as the template which contains every single column.
I have a lot of empty columns such as...
custom_d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23898204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create index using openquery How do I create an index on a table that exist in a remote SQL Server database using the openquery syntax?
A: You can't on your side. The index must be added to a local object only. You can't use an indexed view either.
You can ask the other party to add an index for you to their table.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1109476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sftp (paramiko) put method not working (FileNotFoundError: [Errno 2] No such file) but sometimes the file is uploaded anyway I have a strange behaviour when trying to upload a file into an sftp by using paramiko.
myHostname = "xxx"
port = 22
myUsername = "yyy"
myPassword = "zzz"
try:
t = paramiko.Transport((myHost... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75017523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get index of marked text in Edittext, Android studio kotlin
I'm trying to get the start and end index for the marked text in my editText in android studio.
A: Get selectionStart and selectionEnd:
val startIndex = editText.selectionStart
val endIndex = editText.selectionEnd
A: You need to make use of this class S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54381318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Beginner - Springboot weather program I'm learning Java and SpringBoot. Trying to make a web app to check the weather. I'm using API from https://openweathermap.org/api.
I do not know how to retrieve data from API (JSON). Could someone tell me something?
public String connectAndResponse(String url) throws IOExce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46003140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Moving Elements to a New Line on Browser Resize I'm looking for a solution that will dynamically move elements depending on the size of the browser.
Example:
I will use "X" as example of an element
If one user is viewing on a resolution similar to a mac, they will see
X X X X X X - The maximum amount of LIs / DIVs
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16105849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python Pillow not working on raspbian I installed Pillow 3.3.0 using easy_install (pip install results in the same behavior). After succesfull installation I get an "illegal instruction" error when I import the Image class.
The output of the installation:
root@rasp01:/data/server# easy_install Pillow
Searching for P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38777429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Several controls bound (two way) on a same field in Silverlight 4 I have an issue with several controls bound on a same field. Let me explain with a simple example :
I have an instance of this class in my datacontext :
class X { string myVar; }
myVar is a composed variable, for instance contains things like "42;bar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4670082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: in IE9 uploadFile is not working 1 Add the file input box
<input type="file" id="uploadFile" ng-model="upFile" onchange="angular.element(this).scope().setFile(this)" />
2 Create the setFile method in the controller
$scope.setFile = function (element) {
$scope.uploadedFile = element.files[0];
}
as above,I use t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16321791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change A5 to A4 format on runtime I created a A5 report in ireport and use in java application.
I change A5 to A4 format on runtime and View Page but when print Page output be A5 format.
following code:
JasperDesign _des = JRXmlLoader.load("report1.jrxml");
_des.setPageHeight(842);
_des.setP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13859926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding tool tips to dojo DataGrid items I would like to add a tooltip with some extra data to each row in a dojox.grid.DataGrid. I have tried to create an onCellMouseOver-handler, but I can't get the data item data out of the event object I'm getting.
What is the best way to add a tooltip to a DataGrid-row?
A: In ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2410962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Highcharts / HighStock issue, series disappearing on dynamic update I have this high stocks area chart, consuming a JSON api. Each n seconds, the chart recalls the API for the delta in points.
After a few minutes, the left hand side series disappears, however, if you mouse over it, the labels still appear. Happens ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31280558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create basic php page not working I'm trying to create new page in PHP(new_page.php), successful created page will be insert into database (create_page.php), but now it is not working, not sure which steps i am missing, any helps are appreciate. Below is my code & screenshots:
Mysql table:
http://i60.tinypic.com/2h3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24625731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How to count the number of occurrences in one array from the values of a second array in PHP? I have 2 arrays in PHP that look something like this:
$rows = array(11,12,14,14,11,13,12,11);
$cols = array(1,2,1,2,2,2,1,1);
I need to combine these arrays in a way that tells how many of each $cols value is in each $rows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4268234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the last N lines from an unlimited Popen.stdout object I'm trying to get the last N lines from an unlimited Popen.stdout object at the current time. And by unlimited I mean unlimited/many log entries which are getting written to stdout.
I tried Popen.stdout.readline() limited by time, but this just produc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14924316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stopping/Starting a remote Windows service and waiting for it to open/close The top answer to this question tells me how to stop/start a remote service. Great.
Now, all I need is to wait for the actual stop/start to complete. So, what I'm looking for is a dos command to:
*
*Start a service, should return only aft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1405372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Facebook SDK project with Errors After following these steps: http://developers.facebook.com/docs/mobile/android/build/
I find that everything goes well, but when I create the new Facebook SDK project (Step 3), which I add from here: https://github.com/facebook/facebook-android-sdk
The project is full of errors in E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9677418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installation for SQLAlchemy Doesn't link to Flask I am trying to install SQLAlchemy on a Windows 8 64 bit machine for Python 2.7
When I run the setup.py file that comes with the download from the SQLAlchemy site, a .egg file called 'SQLAlchemy-1.0.0-py2.7.egg' is placed in C:\Python27\Lib\site-packages.
But when I t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29722895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Casting a generic class I have a class of the following type:
class OptionViewModel<T: SelectableOption>: ViewModel
At some other point I need to be able to do something like the following:
func configure(viewModel: ViewModel) {
guard let model = model as? OptionViewModel else { return }
}
I don't care at this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68242201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return first XElement in node with greatest number of fields LINQ gurus, I have a quick one.
Say I have the following XML document:
<?xml version="1.0" encoding="utf-8"?>
<xamDataPresenter version="12.1.20121.1010" formatVersion="1.6">
<fieldLayouts>
<fieldLayout key="ems:airportsType" >
<fields>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21415877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActiveAdmin giving timeout error in Heroku When I try to access ActiveAdmin in local in my rails app, it loads way to slowly, and when pushing to heroku and trying to access my admin panel, it will give Application Error.
In my logs, I have:
2014-07-09T11:27:13.175216+00:00 heroku[router]: at=error code=H12 desc="Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24653099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to create service reference for wsdl file I have wsdl file and xsd files at my local machine. I want to add service reference in project. I don't have web service I only have wsdl file.
I'm getting the following error:
The document was understood, but it could not be processed.
- The WSDL document contains ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28828511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What regex expression can replace every other word? Given the following sentence: Crazy Fredrick bought many very exquisite opal jewels., what regex expression would allow me to filter out every other word? I am doing my replace like this:
"Crazy Fredrick bought many very exquisite opal jewels.".replace(/regex goes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21579641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why am I getting a CSRF 403 from OAuth2 Proxy when running on GKE but not locally? I have a simple setup that is using OAuth2 Proxy to handle authentication. It works fine locally using minikube but when I try to use GKE when the oauth callback happens I get a 403 status and the the following message...
Login Faile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71353947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Centering images horizontally in container div when height is set to 100% Sorry if this has been answered - I've tried virtually all the tips I've already come across so far on centering images without any luck. This image just refuses to center horizontally!
JSFiddle here
HTML: (Note: images are note mine, just tak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21034319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: i want to formate date using jquery or javascript I just want to know how can i format date in java script.
I have date string is.
2015-04-21T09:31:04+05:00
I need to convert this 21 April, 2015
Can any one help me ?
Thanks
A: Use JavaScript Date object.
var date = new Date("2015-04-21T09:31:04+05:00");
var mont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29791137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deserialize/Parse JSON in Java I am searching a good and dynamic way to parse JSON in Java.
I've seen things such as:
List<String> list = new ArrayList<String>();
JSONArray array = obj.getJSONArray("test");
for(int i = 0 ; i < array.length() ; i++){
list.add(array.getJSONObject(i).getString("testKey"));
}
But t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43830111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the proper way to write assert statements in javascript in development that is meant to be easily stripped away in production? There are functions and methods in my javascript code base that need to have assert statements to check for invalid arguments passed in. But these assertion statements should be stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73256625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: multiple instances of the same sound on iOS i'm making a bubble popping game and hit a bit of a snag :/
i have a sound (pop.mp3), this sound needs to play EVERY time one of the bubbles are tapped
all the bubbles are buttons that call the same method (-(IBACTION)bubblePop)
i initialised an AVAudioPlayer in the Viewdi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19610439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Entity framework - Return to list error? I got the problem - return to list from the entity framework. I need to return as a object. Here is my code:
Public Function GetHardwareDetail() As List(Of HardwareDetailApp)
Dim idList As New List(Of String)
Dim Data = (From p In DB.TT_HARDWARE Select New Har... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22291410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asp.Net MVC and Strategy pattern I have an MVC application that uses Entity Framework. I am using a repository, unit of work and unity as dependency injection.
The problem I have is that I have different authentication types, and each type I want a different class, so I decided to use the Strategy pattern
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30492226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Using reflection throws error in EF Core 3 We formerly used reflection to create linq queries, e.g. for the GetById method:
private IQueryable<T> GetQueryById(TKey id)
{
var query = _dbset; //DbSet<T>
var keyNames = _context.Model
.FindRuntimeEntityType(typeof(T))
.FindPrimaryKey()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64050904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: App crashes when doing httpclient.execute in AsyncTask i'm having problems with httpclient. I debugged the app and it crashes when calling execute function. Here's the code:
public class MyAsyncTask extends AsyncTask<String, String, String> {
GridView mGridView;
Activity mContex;
public MyAsyncTask(Activit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42631137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what option controls numeric brace expansion in zsh? I'm getting a really weird bug on one of my zsh installations. I can do this:
for k in {1..6}; do echo $k; done
# 1
# 2
# 3
# 4
# 5
# 6
but I can't step through it:
for k in {1..6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20731088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: overlapping floats: z-index doesn't work I'm trying to write a horizontal navigation bar with simple drop down menus (again horz). The main menu displays fine. To hide the submenus when not hovering, I did
ul#submenu {
visibility: hidden;
display: inline;
position: absolute;
top: 10pt;left: 0;
}
ul#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5373797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change viewport of 2D image? I'm developing a mobile app for money recognition. Now I'm trying to build the database for this app.
The next step is generate some image from an original image in different view. Here is the example:
Original:
View 1:
As you can see in above image, the view 1 image is view of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34315187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I save a byte[] returned from a WCF call? In the code behind of my web page, I call a WCF service. The service returns a byte[] representing a file. In the code behind I have the following line that captures the bytes.
byte[] bytes = client.GeneratePDFBytes(crObj);
The question is, now what do I do with it? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7474618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deserializing DbGeometry with Newtonsoft.Json I'm building a SPA using Angular,Breeze and Web API 2 following the approach as outlined by John Papa in his latest PluralSight course.
Everything works well and I can pull information, update, insert, delete back to the server. However I'm using Spatial Types, and when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20926102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why does QtCreator not show the 'Applications' section on Mac? The lists of templates differ. For example when I load the tutorial "Creating a Qt Widget Based Application", it shows the following screenshot.
"Applications" is clearly a visible section of templates available on the left.
I've just downloaded Qt Crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19227761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compare across multiple columns containing list value in Python Pandas? I have the following sample data
ID VAR1 VAR2 VAR3 DATE
1 NaN [Timestamp('2012-08-03'), 'M'] [Tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67453798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encrypting with AES Why can I encrypt only 16 characters of text?
Works:
string plainText = "1234567890123456";
Doesn't work:
string plainText = "12345678901234561";
Doesn't work:
string plainText = "123456789012345";
Code:
string plainText = "1234567890123456";
byte[] plainTextBytes = Encoding.UTF8.GetBytes(pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2663862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get the observations for chi2 test We have a collection of Data that we can draw a histogram with the specified distribution curve on and get the centers of bins, using:
[counts,centers]=hist(Data,14)
h=histfit(Data,14,'normal')
we can get the 100 point XData and YData of the drawn curve, using:
h(2).XData
h(2).YDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35916980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PowerShell sends empty JSON payload I am calling GraphAPI to update keycredentials for a service principal. I create the JSON payload through combining data from a GET call and a custom JSON object.
I have a variable that is not empty, but when I make an API call I get an "empty payload" error. Why is my $body varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74115081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: combining jackson objectmapper and stream parsing I have an android application, where parsing a json block takes around 250ms. It contains an array, and I only really need the first 6-7 values available immediatly. And I really need to speed up getting to those pieces of the data.
I have a data structure that essen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15688951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Get file from google drive I want to get file from drive use this code but not working.Some code given below -
public class PinFileActivity extends BaseDemoActivity {
private static final int REQUEST_CODE_OPENER = NEXT_AVAILABLE_REQUEST_CODE;
private static final String TAG = "PinFileActivit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44673053",
"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.