text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
How Do i Secure My KML files for a rails application?
I would want to keep my KML files to be secure or password protected. I am keeping them on a public server, and i dont want them to be accessible to anyone.
I am using geoxml3, so any lock applied to the folder would not be a problem, because in this case google has... | common-pile/stackexchange_filtered |
Elasticsearch boost fields that are matched in their entirety
Let's say there's a field with 2 records, values are:
r1: "HELLO MISTER"
r2: "HELLO MISTER PAUL"
If I were to query "HELLO MISTER" is there any way to boost a document based on the percentage of the field that matches? I know it already scores it higher by d... | common-pile/stackexchange_filtered |
different kinds of cells in the same column
I need to render a datagrid with different kinds of cells in the same column. For example, I have a datagrid with a column "name" and a column "value". Depending on the "type" of my record, I would have different cells in the column "value" like a combobox or a simple textfie... | common-pile/stackexchange_filtered |
Base system changed
Im using 16.04 with gnome and I used katoolin to install some programs. Well after a reboot when I tried to install pidgin every shows up as if I was using kali. Is there a way to make ubuntu my base system again? Or is there some thing else causing this problem.
Since Kali is not supported on this... | common-pile/stackexchange_filtered |
dynamic allocating memory for char array
having some understanding issues with the next block of code.
#include<iostream>
using namespace std;
int main() {
char *str = "hi";
char *p = new char[strlen(str) + 1];
for (int i = 0; *(str + i); i++)
*(p + i) = *(str + i);
cout << p << endl;
return... | common-pile/stackexchange_filtered |
Extract data using HTMLParser
<tr>
<td style="color: #0000FF;text-align: center"><p>Sam<br/>John<br/></p></td>
</tr>
I am using the python HTMLParser module to extract the values Sam and John from the below html snippet, but the handle_data function is capturing only Sam and not John.
How I can get both Sam and John... | common-pile/stackexchange_filtered |
Mysql remote connection address
I'm connecting to a mysql remote address. Though I get an error that the port has to be specified but I already have it here?
Connection con = (Connection)DriverManager.getConnection("jdbc:mysql://http://<IP_ADDRESS>:3306","username","password");
What error are you getting exactly?
D... | common-pile/stackexchange_filtered |
How to encode categorical data when 1+ categories are more relevant than others?
Suppose to have a questionnaire that asks 2 questions:
"What is your top 3 favorite food?"
"What drink do you like?"
I need to find association between the 1st answer given and the 2nd.
The first question however is ordered: a person say... | common-pile/stackexchange_filtered |
Why we use GPIO for embedded systems?
I'm using an F2802x microcontroller and I saw in Embedded Coder in Simulink that I have Digital output block. When I use this block, how does it work?
There seems to be a mismatch between the header and body. Also the way its beibg asked is incredibly broad. Please fix the ques... | common-pile/stackexchange_filtered |
In differential equations, why is ln|x|+c = ln(cx)
So, let's say I get the expression $ln|x|+c, c \in R$. My reasoning is that I can do the following:
let $c_1 = e^c$, then $c_1 > 0$
$ln|x|+c, c \in R$ becomes:
$ln(c_1|x|), c_1 >0$
How I can justify removing the absolute value?
What makes you think you could remove th... | common-pile/stackexchange_filtered |
How do I format a Number field in KeystoneJS?
Its the property 'referenceId' that I would like to format. Heres my model code:
var keystone = require('keystone'),
Types = keystone.Field.Types;
var Stock = new keystone.List('Stock', {
map: { name: 'adminDisplayTitle' },
autocreate: true
});
Stock.add({
... | common-pile/stackexchange_filtered |
Is there a way to navigate to a custom list view that I created using list views in salesforce on click of a button using lwc?
I have created a list view in a custom object. I want to navigate to this list view with the click of a custom button or action on another related object.
eg: I have custom objects A and B rela... | common-pile/stackexchange_filtered |
r-ggplot2 divide legend into 2 colums: geom_sf
I'm trying to separate a legend into two distinct groups.
The available answer :
ggplot2: Divide Legend into Two Columns, Each with Its Own Title
seemed to be the right one but doesn't work with the geom_sf....
Here is a reproducible example:
nc <- sf::st_read(system.file(... | common-pile/stackexchange_filtered |
How does Lightroom compare to Photomatix for HDR images?
Which is a stronger software solution for producing high quality HDR images: Lightroom CC or Photomatix?
In terms of image quality, customization, and workflow how do these wares perform for HDR photos?
I believe Photomatix is the preferred tool of HDR pros but ... | common-pile/stackexchange_filtered |
loading dependent jars using <applet> or <object> tag
I am here with a peculiar problem while loading applets.
My applet is dependent on 2 jar files, so I am using "cache-archive" and "archive" param tags to point to jars.
Say my applet is embedded in a.jar and is dependent on dep1.jar(size in KB only) & dep2.jar(size ... | common-pile/stackexchange_filtered |
Apple pay payment button in iOS 8.4
I have implemented Apple Pay with Target 8.4 and above versions.
When the device has ApplePay capability but it is not configured, we have to open Wallet app and initiates the process of adding cart.
When I implement the code for iOS 8.4, the PKPaymentButton is not displayed.
It's... | common-pile/stackexchange_filtered |
How much will this person be worth in $n$ months?
Problem:
A person has a net worth of $0$. In their first month they increase their net worth be $100$. In the second month they increase their net worth by $200$. In the third month they increase their net worth by $300$. Hence after three months their net worth will be... | common-pile/stackexchange_filtered |
How do I print a specific value from a JSON response?
I am trying to use forvo.com's API.
I ran this in the console:
response = HTTParty.get('http://apifree.forvo.com/key/XXXXXXXXXXXXXXX/format/json/action/standard-pronunciation/word/%E4%BD%A0%E5%A5%BD/language/zh')
This is the response:
{
"items" => [
[0]... | common-pile/stackexchange_filtered |
destroy session on browser or tab close
there are lot questions similar to this question and many answers too. But all the answers are saying similar thing. Hence please help me with this.
Problem : When user closes tab or browser then i want to destroy session.
solutions tried : I have tried following in jquery.
- on... | common-pile/stackexchange_filtered |
Gradle not properly resolving versions when downloading an artifact
I'm trying to pull down a dependency from my local artifactory instance. The dependency is another project (org.myproject) that i own and has several spring boot dependencies.
Here is the gradle failure:
FAILURE: Build failed with an exception
* What... | common-pile/stackexchange_filtered |
Transpose beta coefficients of selected variable from linear models (same specification, diff dataframe) into one column along with se and stars
The last time a similar question was asked it was partially answered.
Similar to the example from the earlier question, here is the code
library(stargazer)
stargazer(attitude)... | common-pile/stackexchange_filtered |
Linq left-joining like tables
I have 2 datatables of identical structure, and I need to find all records that appear on the first, but not on the second. What makes it more complicated is that the matching needs to be on 3 columns instead of one.
Background - I'm writing a replication process where rows of data arrive ... | common-pile/stackexchange_filtered |
Typescript: Function find for array is working but if I check if it's returning a value with an if statement, it doesn't work
I have this code:
class Cart {
private currentCart: item[];
constructor(private pService: ProductService) {
this.currentCart = [];
}
add(product) {
if (this.currentCart.find((... | common-pile/stackexchange_filtered |
What if a subscriber to an Observable needs to trigger OnNext()?
I have an Observable that is keeping track of a state, kind of like a state machine.
I have a subscriber to the Observable that detects when things are in a particular state, and it needs to push things into a new state, effectively calling OnNext() on th... | common-pile/stackexchange_filtered |
Show Crop Tool on Imageview Android
I want to show the cropper tool on an imageview to allow me to crop the image and set the cropped image as the new src of the imageview.
Let me explain properly, the image src is gotten from a file path or a gallery uri. No lifecycle method is used here. Suppose I have an imageview ... | common-pile/stackexchange_filtered |
Custom configuration of Spark partition discovery
I understand that Spark supports partition discovery, where directories names follow fixed pattern of column_name=column_value. Example from the linked webpage:
path -> to -> table -> gender=male -> country=US -> data.parquet
I would like to use this functionality, bu... | common-pile/stackexchange_filtered |
fltk cmake ubuntu link error
I am trying to compile a simple FLTK program but it always brings a link error. When I build with this command, it works
g++ -I/usr/local/include \
-I/usr/include/freetype2 \
-D_LARGEFILE_SOURCE \
-D_LARGEFILE64_SOURCE \
-D_THREAD_SAFE \
-D_REENTRANT \
-o 'ex01' './... | common-pile/stackexchange_filtered |
Refining ggplot R code so annotated rectangle appears behind plot points
Using the following data, I am trying to create a graph for a presentation:
name = c("Phil", "Ian", "Leslie", "Darla", "Silvia", "Ron", "Emily", "Jack")
score = c(73.8, 73.5, 70.3, 68.9, 65.3, 61.4, 55.2, 54.3)
tx = c(0,0,1,0,0,0,0,0)
test1 <- dat... | common-pile/stackexchange_filtered |
jQuery Ajax Post to WCF returning "Bad Request"
I can't seem to quite get this.
I have a WCF service like this;
[OperationContract]
[WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped, Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
bool Test();
Then the impl... | common-pile/stackexchange_filtered |
UIPickerView content flowing unexpectedly
I am using UIDatePicker and UIPickerView in my app. But both the controls are showing weird behaviour. When I scroll the content in the picker, it flows outside the picker and does not scroll as it is supposed to. My implementation is as below.
sexArray = @[@"Male", @"Female"];... | common-pile/stackexchange_filtered |
Python- When I move items in one list to anther list, some items are missing
When I move items from list "X" to anther list "A", but some items are missing.
Here is my code.
X=list(range(2,11))
print(X)
A=list()
for x in X:
A.append(x)
X.remove(x)
print("A is ", A)
print("X is ", X)
I expec... | common-pile/stackexchange_filtered |
iOS 9 - App Transport Security wont load XML files
I am upgrading my app to iOS9. To Support ATS i had shifted all my urls to https.
But ATS is throwing below error on XML files. The JSON files located at the same location have no problem.
App Transport Security has blocked a cleartext HTTP (http://) resource load sin... | common-pile/stackexchange_filtered |
Smarty and future proof code
I am trying to be a more conforming civicrm coder.
Smarty used by civicrm for pages (and forms?)
I have never used Smarty.. Is it going to be part of civicrm going forward? And are there any tips for writing good future proof smarty?
Going forward, much of the Civi UI will be written in... | common-pile/stackexchange_filtered |
How is the Density Altitude performance penalty split between propeller and engine?
Let's say we have a Cessna 150 with a Continental O-240.
How is the density altitude performance hit split between the engine air intake and the propeller ability to "grab" the air.
Let's say I was able to put a engine on it that would... | common-pile/stackexchange_filtered |
How to "developer reject" an app in iTunesConnect after the Sep 2014 changes
I uploaded a binary but before submitting it for review I realized that the Product Name in the Build Settings wasn't correct. I fixed the issue and tried to upload the binary again, but ran into the version 1.x already exists issue while doin... | common-pile/stackexchange_filtered |
OpenLayers 3 Examples - EPSG:4326 example does not operate
I am trying to use OpenLayers 3 Examples. But recently EPSG:4326 example does not operate. Why?
The url inside layers(TileWms) doesn't work anymore.So try with another Url
or get the service(url) from geoserver.
| common-pile/stackexchange_filtered |
three.js skybox assigned to camera
I'm trying to make skybox assigned to player camera.
When camera moves(also skybox moves with it), texture get stretched.
How to get rid of this?
Code:
var textureCube = THREE.ImageUtils.loadTextureCube( urls );
textureCube.format = THREE.RGBFormat;
var shader = THREE.ShaderUtils.lib[... | common-pile/stackexchange_filtered |
Why I am getting error from windows deployment toolkit?
I am using oracle Virtual Box 7.1.4
I have windows server 2022 that is part of the domain and it is having Microsoft Deployment Toolkit and Windows Deployment Services. I have followed a tutorial online and everything is fine until I created a new oracle VM to loa... | common-pile/stackexchange_filtered |
Integrating Docker-Machine with Amazon EC2
I am reading this article which shows me how I can configure my docker VM on top of amazon ec2
https://docs.docker.com/machine/drivers/aws/
I got to the step
docker-machine create --driver amazonec2 aws01
but now I get an error
Error with pre-create check: "unable to find a su... | common-pile/stackexchange_filtered |
Request with Post title
I have a post & request.
I need when user on post page click on button "Add request" and filled out the form with his name and phone number, with this two params I had a post title or post ID on requests#index page
How I can do this?
http://rostbiz.herokuapp.com/posts/1 when user on this page... | common-pile/stackexchange_filtered |
iOS secure communication with paired BLE device
I would like to develop an iOS app that works with a medical device which is paired to the iPhone using BLE (Bluetooth Low Energy).
My concern is that paired devices are available to all apps on an iOS device. How can I secure communication so only my app can communicate... | common-pile/stackexchange_filtered |
How to pass nothing (empty value) to date time data type in RDL
How can I give empty value to date time data type in RDL. I am trying out the following but I am getting 01/01/00 to those row which doesn't have any data.
=iif(Fields!D_date.Value is nothing,Nothing,Fields!D_date.Value)
Even if I use
=iif(Fields!D_... | common-pile/stackexchange_filtered |
Python: TimeDelta how to show only minutes and seconds
I have the following code:
if (len(circles[0, :])) == 5:
start = time.time()
if (len(circles[0, :])) == 1:
end = time.time()
print(str(timedelta(seconds=end-start)))
This is the output:
0:01:03.681325
And this is the ... | common-pile/stackexchange_filtered |
How can I use open type font in Sharepoint 2010?
Can I use open type font in Sharepoint 2010 ?
Is Open Type font compatible?
Thanks in Advance
This question isn't much to do with SharePoint, and more generally a CSS question.
Have a look at this:
http://www.smashingmagazine.com/2011/03/02/the-font-face-rule-revisited-... | common-pile/stackexchange_filtered |
Return from override method from the base method. Unity
I have a virtual method in my base class that gets overwritten in an inherited class.
I want to be able to exit both the base virtual method and the overriding method from within the base virtual method.
Using a bool to achieve this does not feel programmatically... | common-pile/stackexchange_filtered |
i18n dynamic interpolation arguments
Let's say that I have a field witch consist of multiple parts separated by a semicolon (;). For example, this would look like the following:
'range_numeric; 10; 100'
'length_numeric; 5'
The first part will be the key to the translation and any subsequent parts will be interpolation... | common-pile/stackexchange_filtered |
Java compatibility compilation mode
I'm faced with the following conundrum. I'm currently deploying a Java 8 application on both 32bit and 64bit Windows machines.
Since Java 8 is reaching it's EoL I'm starting to face the very difficult issue on what to do next.
Since Oracle will not be providing 32bit versions of th... | common-pile/stackexchange_filtered |
Docker Centos7+haproxy1.8 on port 80
I am building a docker haproxy 1.8 custom image on top of centos 7. I want to open port 80 for the front end but whenever IO start the container, it complains about "cannot bind socket on port 80", however it can bind on 8080 and other which are not is use as usual. I believe it has... | common-pile/stackexchange_filtered |
Recover File Libreoffice
So, here's my case: I do have a Writer file, in this Libreoffice Writer file, I copied a few tables from Libreoffice Calc(I actually did this for 6 hours) and pasted on Writer. When I went to see my file, there was a lot of tables that weren't there anymore. I do believe this happened after I r... | common-pile/stackexchange_filtered |
How to get title of youtube video from the id of the video for our android app?
I have been developing a simple app for practicing.
The app includes fetching of youtube videos. I am using this https://github.com/PierfrancescoSoffritti/android-youtube-player (using this for editing the Youtube Player View, as youtube ... | common-pile/stackexchange_filtered |
specify moment at which to change value after converting (tri)annual-subject to month-subject observations (Stata)
My goal is to convert a subject-triannual data set to one with subject-month observations, and specify the month at which one string variable (named "strvar" below) should change value, according to the va... | common-pile/stackexchange_filtered |
How to fix the npm install node-pre-gyp ERR error
When I run yarn install I get the following error, I've deleted the node_modules and yarn.lock files and tried again but no luck, seems to be something with gRPC looking at the error message.
Not sure what to do... Any suggestions?
><EMAIL_ADDRESS>install /Users/myname... | common-pile/stackexchange_filtered |
Difference between 'way back then' and 'way back when'
Can anyone here please tell me the difference between 'way back then' and 'way back when' ?
Thanks,
Vivek
Both informal phrases are used as a phrase of time comparison.
The usage differs though.
Way back then:
"Ah, those good ol' days. The 1960s. Sigh. Way back t... | common-pile/stackexchange_filtered |
Symfony+Ajax+WebShop product details
I am starting to make webshop in Symfony and I am making details page using bootstrap modal. How can I make a request and then return the modal with product details after query to database using doctrine in controller?
send the data using $.ajax to the server 2. process the sent d... | common-pile/stackexchange_filtered |
QGIS 3x GDAL raster to vector (polygonize) option doesn't work
I want to convert my Geotiff map into the shapefile.
For this purpose, I used the GDAL->Raster Conversion -> Polygonize option.
I have the status "Processing algorithm" for nearly 2 hours!
I found the similar problem here:
Long Time for conversion raster f... | common-pile/stackexchange_filtered |
How to keep translated pages related to the original in Google Analytics
How do I keep translated pages related to the original page in GA and get consolidated analytics data for a page?
For example, the original page slug looks like this: /type/blog/database-management-software/
The translated page slug looks like thi... | common-pile/stackexchange_filtered |
which class check valid http request in spring
i currently facing a problem. I want to kick out a user A when they are on their session. I tried by cleared user A's session, but this didnt work because my application runs in multiple nodes.
My solution now is creating a filter ( which i put position = "LAST") to catch... | common-pile/stackexchange_filtered |
How to export an interactive image created in R in PDF?
I would like to know a way to create the interactive image in R and convert it to PDF so that from the PDF I can manipulate it, that is, it remains interactive. I created an interactive image in R but when I save it it becomes static, I tried to make it in RMarkdo... | common-pile/stackexchange_filtered |
Top-down hamburger menu / is it a cool experience regarding my application?
I own an application managing some meetings (conceptual example).
Of course, my website is responsive so that it's fully usable on mobile devices.
Before showing some screenshots of my navigation menu, some people (family, friends, since it's ... | common-pile/stackexchange_filtered |
ts-node not reading typeRoots
I have the typeRoots set up like this:
"typeRoots": [
"src/types/*.d.ts"
]
And express.d.ts inside that folder:
declare global {
namespace Express {
interface Request {
user?: any;
}
}
}
My editor (WebStorm) picks this up and does not show req.user as an error, but wh... | common-pile/stackexchange_filtered |
How do I download txt web content using perl
I am trying to download data from this data page. I have tried a number of scripts I googled. On the data page I have to select the countries I want, one at a time. The one script which gets close to what I want is:
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;... | common-pile/stackexchange_filtered |
Why I could compile .NET Core 2.1 app with 2.2 and 3.1 having installed?
My app is targeting
<TargetFramework>netcoreapp2.1</TargetFramework>
and dotnet --list-sdks returns those:
2.2.401 [C:\Program Files\dotnet\sdk]
3.1.100 [C:\Program Files\dotnet\sdk]
why I could perform dotnet publish --configuration Release -r ... | common-pile/stackexchange_filtered |
ReSharper Unit Test Runner fails in Visual Studio 2015
I've recently updated my development environment and stared getting this message:
MissingMethodException: Method not found: 'Void
Miscrosoft.VisualStudio.TestPlatform.Client.OutOfProcTestPlatform..ctor
(Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServ... | common-pile/stackexchange_filtered |
Getting distance in django with out a geoDjango backend (PostGIS, etc...)
I don't want to go through the pain of installing PostGIS so can I get places ordered by distance from an origin using django.contrib.gis?
models.py
from django.contrib.gis.geos import Point
class Place(models.Model):
name = models.CharField... | common-pile/stackexchange_filtered |
How to create a loop using a button?
I have a group of merged cells with a number.
When a user clicks a button I want the number to increment by 1. On click again, increment by 1, then click again, decrease by 2 back to the original number.
Sub OnClickLetterSent()
If Worksheets("Lettersent").Range.Value = 802 Then
... | common-pile/stackexchange_filtered |
What kind of a circuitry do I need to combine two power inputs of different voltages?
I have a 250Wh battery bank in my car that I charge via a 100w solar panel or a 12v car charger. The problem is there is only one charging port (a barrel connector) on the battery and I need to constantly swap the input between the so... | common-pile/stackexchange_filtered |
how to enable Microsoft docs popup in visual studio 2019 like java docs in NetBeans
I was wondering if there is a way to enable Microsoft docs as popup in visual studio 2019 when I type code like java docs in NetBeans?
| common-pile/stackexchange_filtered |
Trapezoidal Integration of nonlinear inductance
I have modeled the nonlinear inductor with Modelica, but the circuit can not be solved by trapezoidal integration, It is appreciated someone can help me to solve the circuit.
model NonlinearInductor
import Modelica.SIunits.MagneticFlux;
extends Modelica.Electrical.Ana... | common-pile/stackexchange_filtered |
Simple SPQuery issue
I cant get this simple SPQuery working. It does not return any items. Although my document library has 5 items with Modified date as 22/08/2013 12:46
Please help me, where I am getting it wrong ?
string SPquery = @"<Where><Geq><FieldRef Name='Modified'/><Value Type='DateTime'>22/08/2013</Value></Ge... | common-pile/stackexchange_filtered |
Windows 8 Right-click (context) menu hang
Recently I reintalled Windows 8. All software that I installed on fresh OS is up to date and Windows 8 compatible.
When I try to open context menu explorer was crashing. I used CCleaner to fix registry errors and after fixing it seems explorer doesn't crash again but when I op... | common-pile/stackexchange_filtered |
Enrich RxJS observable result array with data from another request
Considering the following simplified data structure:
Teacher
{
id: number,
name: string
students?: Student[] // filled with an inner second request
}
Student
{
name: string
}
TeachersResult (response of the first api request with no students i... | common-pile/stackexchange_filtered |
Help with finding the number of terms in a geometric sum
I'm currently stuck on a problem involving a geometric sum, and I was hoping to get some assistance with it. Here's the problem:
A geometric sum is equal to 215. The first term is 5, and the last term is 320. I need to find the number of terms in the sum.
Here's ... | common-pile/stackexchange_filtered |
how do i change flask-admin's locale?
I wanner change the locale, like:
locale='zh_CN'
not admin's application's locale, I need change flask-admin's locale code.
Try add parameter
?lang=zh_CN
to the end of the url request.
If that work, you may add
set $args $args&lang=zh_CN;
to your nginx conf file.
| common-pile/stackexchange_filtered |
How to bind grid view data based on the dropdown list selected value
I have one drop down list to select student name.when i select a student name in the drop down list, grid view has to show details of selected name.
This is my coding for this but it didn't display anything.
SqlConnection con = new SqlConnection(Conf... | common-pile/stackexchange_filtered |
Can someone redirect me to relevant mathematics?
These are two paragraphs from Chapter 3 of Principle of Quantum Mechanics by P.A.M. Dirac. I need to know what the relevant mathematics its referring specifically, I have some idea not proper enough though. So if someone can direct me to relevant mathematics, that woul... | common-pile/stackexchange_filtered |
Error when installing Eclipse on Linux Mint
I just followed the Eclipse websites links to download the latest version for Debian, and after running from the terminal
$ ./eclipse-inst
It goes through the installation process but returns
JVM terminated. Exit code=1
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
-Dosgi.requi... | common-pile/stackexchange_filtered |
Is it possible to tell Windows not to lower the volume of the Skype for Business 2016 client when a call is detected?
Whenever I either receive an incoming call or make an outgoing call through the Skype for Business 2016 Windows desktop client, I've noticed that no matter whether I answer or reject the call, Windows l... | common-pile/stackexchange_filtered |
Sort Values of Multiple Columns Per-Row and Update Columns Accordingly?
I'm trying to replace a function in VBA that goes row-by-row and grabs the values of 3 columns in a table, sorts them in ascending order, and places them in the correct column. Here's an example of what the table looks like before and after:
Before... | common-pile/stackexchange_filtered |
create table but first finding the last column
I have a project where I pull excel data into my spreadsheet with copy and paste. I then have to create charts for each category which varies anywhere from two columns to 25 columns. In creating the charts I make a "Table" of the data. Because the number of columns can vas... | common-pile/stackexchange_filtered |
Reguar Expression to fetch single line and multi line from python
Input Data
I am not Myc wooo0
Myc wooo1
Myc wooo3
+ rt ...4
do not consider me5
Myc wooo6
+ rt ....7
+ rt ....8
do not consider me9
+ rt ....10
+ rt ....11
Myc wooo12
I have the above input data, need to fetch line with following conditions -
line must... | common-pile/stackexchange_filtered |
redirect a domain using htaccess permenantly
I am having a site with two domains pointing to the same site.
Lets say domain1.com & domain2.com
I want to do a permanent redirect of the domain1.com to domain2.com, so that anyone who visit the site from domain1 even if Google crawler, it should be redirected to the domai... | common-pile/stackexchange_filtered |
WCF service encapsulated in a DLL will not work if the service is not referenced in the application
I have a dll that referenced a WCF service (the service is encapsulated into it).
I have a C# application that use the dll, therefore the service is transparent to the application developer.
However, if the application i... | common-pile/stackexchange_filtered |
How to fetch the scaling configuration of the secondary monitor?
I am trying to retrieve the scaling factor of the secondary display in order to scale the fonts of a windows application based on the monitor's scaling configuration. However, the current code that I have written fetches the scaling configs of the primary... | common-pile/stackexchange_filtered |
Write cache on local Windows 10 machine for asynchronous transfer to NAS?
I have an application that generates a stream of data as a single file. The amount of generated data is variable, but in average wouldn't nearly saturate my network or NAS speeds. However, there can be peaks for a few seconds that totally go abov... | common-pile/stackexchange_filtered |
React/NextJS: Dynamic Routing: TypeError: Cannot read property 'query' of null --> Warning: Did not expect server HTML to contain a <div> in <div>
I'm have a NextJS application which I've just done two things on. 1) I've upgraded to the latest version of NextJS (9.0.1), and 2) I've copied files (package.json, pages/, c... | common-pile/stackexchange_filtered |
Definition of polynomial solutions over polynomial field $F[x]$
I'm studying abstract algebra and ran into the problem of solving equations where solutions are polynomials.
The problem is as follows: Given B a member of a polynomial field $F[x]$, having coefficients in field $F$. Find all the possible polynomials X in ... | common-pile/stackexchange_filtered |
How to run batch file using IronPython
I have newly started working with IronPython. I have a batch file with some commands.
This file needs to be executed from IronPython. Can it be accomplished?
I was trying to add .net reference but couldn't create object for class Process. Is the approach correct?
import clr
... | common-pile/stackexchange_filtered |
How can I force mod_rewrite to send user info component of a URI?
A colleague recommended I repost this from StackOverflow to ServerFault:
This has been driving me crazy. I have a web application that's being served via Apache Web Server. The database server that backs the application is Apache CouchDB, which exposes a... | common-pile/stackexchange_filtered |
Cannot run SQLite.net PCL in ASP.NET MVC
I am getting my feet wet with Frank A. Krueger's SQLite.net PCL. I am attempting to use it as the common data layer for an Android app as well as an ASP.NET MVC web application. I have had some success with Android use, but in trying to use it for the web app I get the followi... | common-pile/stackexchange_filtered |
MVP in windows forms
I want to implement MVPO pattern in my windows forms application. As you know there is 1:1 means there is one presenter for one view.
So basicly we can have:
public class MainPresenter
{
IMainView _mainView;
public MainPresenter(IMainView mainView)
{
_myView = myV... | common-pile/stackexchange_filtered |
Prevent Python From Creating New Variable?
I'm working on something in python where I need to use a global variable that is changed by a function. However, when I try to change the value inside the function, python instead creates a new local variable instead of accessing the global one.
For example, if I had the follo... | common-pile/stackexchange_filtered |
&__get() issues, again. Major frustration is afoot
Alrighty, I'm getting quite frustrated, namely because I thought I had this issue solved, or had accomplished this successfully before.
Quick preliminary:
PHP 5.3.6.
Error reporting cranked to 11. (-1 actually; future safe, all errors/notices)
I have a class, it aggr... | common-pile/stackexchange_filtered |
monetdb, group by
Working in MonetDB, I have an 'entrytime' column that contains a time value. I have:
select "minute"(entrytime) as unitTime, period
from schema1.zones
where date1 >= eDate and date1 <= xDate and id=256
group by unitTime, period
But I want to group the results on a 15 minute boundary, a... | common-pile/stackexchange_filtered |
It says I need to add "," in C#, Where do I put it?
I tried to make a FizzBuzz code in C# but the error code it gives me is that I'm missing a " , " somewhere but I can't find where to place it
Also I know there are other underlying programs in the code I just need this fixed so I can compile and fix them
using System;... | common-pile/stackexchange_filtered |
What is a better name for the tag [typo]?
The tag typo has the following tag wiki:
Some questions later turn out to be based on wrong source. Often, these questions turn out not to be real questions, and ideally should be removed, but that does not necessarily happen. This tag is for marking such questions.
and I thi... | common-pile/stackexchange_filtered |
Gaussian Measures, Bogachev, Theorem 2.4.7
In the proof of Theorem 2.4.7 of the book "Gaussian Measures" of V. Bogachev, the author goes from $\gamma(L-h) = 1$ to $h\in L$. I do not know why, could someone explain it to me ? I think that $\gamma(L-h) = 1$ implies $L=L-h$ but I have no idea why.
Thanks in advance.
In t... | common-pile/stackexchange_filtered |
awk query for sequential replace a pattern
I found the below awk command to sequentially replace a particular line in a file, but i would like to know how this works.
Input:-
DS: 1
DS: 1
DS: 1
DS: 1
DS: 1
DS: 1
DS: 1
output:-
DS: 1
DS: 2
DS: 3
DS: 1
DS: 2
DS: 3
DS: 1
DS: 2
DS: 3
Awk Command:-
awk '$1 ~ /DS:/ {$NF=((... | common-pile/stackexchange_filtered |
Age() function not working with time.Time
Trying to use age() function from postgresql with DateOfBirth
type Person struct {
ID int
DOB time.Time
}
query := `SELECT id, AGE(dateofbirth) from person WHERE id = $1`
But got an error
Unsupported Scan, storing driver.Value type []uint8 into type *time.Time
The age()... | common-pile/stackexchange_filtered |
transitionTo LoadingRoute in EmberJS?
Is it possible to trigger the loading route on a controller action?
for example:
App.PostsController = Ember.ArrayController.extend(
actions:
new:
# transitionTo loading
$.post(...).then (response) ->
# deactivate loading
)
I would like to avoid add... | common-pile/stackexchange_filtered |
Editing order email?
I created a new product attribute and I want to display it in order email. How can I do that?
I found the code in here:
app/design/frontend/base/template/email/order/items/order/default.phtml
I try to add this line but it didn't work
<th align="center" bgcolor="#EAEAEA" style="font-size:13px; p... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.