text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
What's the word for someone who consistently replies to positive statements in a contrarian manner?
An example of this would be,
"I like [x]."
And, unprompted, the other party replies,
"I don't like [x], I think [y] about it and that's what makes it bad."
They persist to find reasons to malign or belittle whatever it i... | common-pile/stackexchange_filtered |
sed with multiple expression for in-place argument
I am trying to replace multiple words in a file by using
sed -i #expression1 #expression2
file
Something 123 item1
Something 456 item2
Something 768 item3
Something 353 item4
Output (Desired)
anything 123 stuff1
anything 456 stuff2
anything 768 stuff3
anythin... | common-pile/stackexchange_filtered |
Any problems that may happen if I give my Wi-Fi extender the same SSID (and password) as my router
I recently installed a Netgear EX3700 Wi-Fi extender. After finding a spot to install it, I changed the SSIDs to the one of my router. (Verizon Fios Quantum). No speed or interference problems.
Can you tell me any problem... | common-pile/stackexchange_filtered |
Crash when returning a char array from a function
A freind and I are working together on an ESP32 webserver, and we have hit a wall. My buddie has pretty much given up on it, and I am less skilled than him.
We have the following functions, which compile fine, but cause the ESP32 to crash.
After lots of debugging I am p... | common-pile/stackexchange_filtered |
Function with Enumeration Parameter (and Default value)
I wanted to create an extension method function called toCurrencyString that has one parameter that is actually an integer enumeration of type CurrencyFormatType. The enum and code would be:
enum CurrencyFormatType: Int {
/// Formats a standard currency string... | common-pile/stackexchange_filtered |
Ionic 4 IOS platform Send SMS without opening SMS app
I am using Ionic 4 and l have managed to send an SMS without using the SMS application on ANDROID now i want to implement this on IOS platform and l have done it and it keeps on opening the SMS application.
The reason l want to send SMS in the background is because ... | common-pile/stackexchange_filtered |
MobSF (Mobile-Security-Framework-MobSF) installation problems
I spent last days striving with MobSF (Mobile-Security-Framework-MobSF) installation, which finally fails without reaching the target.
My work laptop is Windows 10 with i5-8250U and 16G memory.
I tried it using
git clone https://github.com/MobSF/Mobile-Secu... | common-pile/stackexchange_filtered |
How do I create a Progress bar using the value of an ID
Before the code below, a user enters the title of a book they read. There is then a total count automatically populated in id="bookcount".
I have a progressbar for the book count, but how can I make it automatically grab the number in bookcount...so the progress b... | common-pile/stackexchange_filtered |
php count grouped values
I have searched around and have found many solutions to my question, but I am still having one problem. I am trying to create a table that will have four images per row. This has been done. I have told the script to group by rewardid and it does that so now duplicate images do not appear (the s... | common-pile/stackexchange_filtered |
Inverting string-based binary number in one line in Python
I want to read two strings on separate lines, each string the same length and containing only 0's and 1's, and determine if the first is the one's complement of the second. How succinctly can this be done in Python3? (Sorry to specify the language, but this is... | common-pile/stackexchange_filtered |
'sort' not working on a populated subcomponent in a Strapi v4 Service
I have working code inside a controller that pulls a populated component from a Singletype Element and sorts the elements of this component by one of its properties.
When i make this same code more flexible and move it to a service instead of the con... | common-pile/stackexchange_filtered |
Property 'sectionsnap' does not exist on type 'JQuery<HTMLElement>'
Am getting issue when i add jquery code in ts file. (already i have include jquery)
Issue:
Property 'sectionsnap' does not exist on type 'JQuery HTMLElement'
jquery:
(function($) {
$.fn.sectionsnap = function( options ) {alert();
var settin... | common-pile/stackexchange_filtered |
columns in expandable listview
I have used this tutorial to do the expandable list view. http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/.
But i want to make a small change as shown in the below image. I dnt know to implement the items underlined in red. Is it possible to have columns in the e... | common-pile/stackexchange_filtered |
How can I use Spring 3.2.3 JavaConfig to read an environment variable?
I am trying to use Spring 3.2.3 release JavaConfig in my app and I need to read the value of an environment variable.
I have read the JavaConfig 1.0.0.M4 documentation which seems to be exactly what I need but cannot find how to import or resolve th... | common-pile/stackexchange_filtered |
Prolog: making a 4-argument add function
I am trying to code a 4-argument function myadd(A, B, C, D) which holds true when A + B + C = D in prolog.
I am completely new to prolog and had no clue what to do, so what I did was some extention from a similar function but with 3 arguments:
add(0, Y, Y).
add(s(X), Y, s(Z)) :-... | common-pile/stackexchange_filtered |
Randomly Timeout(TimeSpan) doesn't work in Rx
The earlier post seems not very clear, so after some testing, I reopened this post with much more simplified words, hope somebody could help.
My singleton observable was turned from multiple source of I/O events, means they're concurrently raised up in underlying, based on ... | common-pile/stackexchange_filtered |
Syntax problems in Matrix addition and multipication program
i am trying to compile this program where i entered two 3*3 arrays and i am multipyling and adding both of them. However it is giving me some errors at the end due to which its not running. I cant remove these errors and i need help regarding how can i remove... | common-pile/stackexchange_filtered |
Loop through XML Nodes using XmlStringStreamer in PHP
I have an XML file which is something like this:
(fileName : abc.xml)
<Envelope>
<Body>
<SResponse>
<Body>
<SResponseDetails>
<SItem>...</SItem>
<SItem>...</SItem>
<S... | common-pile/stackexchange_filtered |
Popstate not working as expected(needs multiple clicks)
I am trying to learn History Web API, but already have problems at the first hurdle.
I am able to get history.pushState working, but have issues with popstate. It works fine when clicked for the first time after AJAX page load, but if I load that same page again, ... | common-pile/stackexchange_filtered |
VS 2008 web services generating wrong url
Haven't done much web service development so this is probably an easy fix. Created both a mobile device project and web service project. When I add the service to my mobile project the soap document method attribute is wrong. All other info is correct. It generates service/meth... | common-pile/stackexchange_filtered |
How to allow directory program code to only display the differences between directory paths for C# Windows Application?
For this section of the code, I'm comparing each of the directories as entered by the user. Currently, the codes lists all files within each directory. I was looking for a way to list only the files a... | common-pile/stackexchange_filtered |
UIDocumentPickerViewController iOS13 not Working
On my application, i use UIDocumentPickerViewController to allow the user to pick files (import), but starting from iOS 13 that functionality stop working, basically the document picker is open, but the user can't choose a file (taping the file does nothing).
I made a si... | common-pile/stackexchange_filtered |
SSIS Delete and Recreate Destination Table
I was creating a trigger and accidentally ran it on production instead of testing. I have a backup where no information will be lost in this specific table, but I only need to restore this single table.
Using SSIS how can I simply:
Only update a single column to make it mat... | common-pile/stackexchange_filtered |
VirtualBox doesn't restore saved Ubuntu machine state?
I'm running Ubuntu 12.04 inside Virtualbox on Windows XP Prof. Everything works fine. I'm running it at startup, but I have a problem with rebooting.
When I reboot my computer (WinXP) now the state of the virtual Ubuntu 12.04 isn't saved. After the reboot the virtu... | common-pile/stackexchange_filtered |
Is there a Magento debug tool that lets me see database queries displayed in a similar manner to template path hints?
I have some corrupted data, an individual entry, in the database for my Magento installation. Since I can see the corrupted data displaying, I'd like to use a Magento extension to show me the database c... | common-pile/stackexchange_filtered |
unordered_map to have three elements
I am trying to have three elements in an unordered_map. I tried the following code
#include <iostream>
#include <string>
#include <algorithm>
#include <boost/unordered_map.hpp>
typedef boost::unordered_map<int, std::pair<int, int>> mymap;
mymap m;
int main(){
//std::unordered_map... | common-pile/stackexchange_filtered |
Is iOS keychain API thread safe? Getting duplicate item exceptions
I am working on an iOS app where potentially an SDK can send notifications to the app simultaneously in many different threads and try to write some items in the keychain. Before adding an item to the keychain, my code (obviously) checks if the item is ... | common-pile/stackexchange_filtered |
Call one function after another function having a async function in itself
How to call one function a() after another function b() when b() contains a async function c()?
A() {
}
B() {
//do sometihng
c(); //async function
//do something
}
I want to call A() if B() including c() is done executing. But ... | common-pile/stackexchange_filtered |
Docusaurus strips some attributes from inline SVGs; need ID for accessibility
I'm using inline SVGs like this:
Content of icon-checkmark.svg:
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 46 46"><title id="myTitleID">An accessible title</title><path {…} /></svg>
Import & inline:
import Chec... | common-pile/stackexchange_filtered |
Issue with combining multiple separate data points in R
I have X number of spreadsheets with information spreading out over two tabs.
I am looking to combine these into one data frame.
The files have 3 distinct cells on tab 1 (D6, D9, D12) and tab 2 has a grid (D4:G6) that i want to pull out of each spreadsheet into ... | common-pile/stackexchange_filtered |
Proving that $L-\{x\}$ is not connected.
Problem: Let L be a linearly ordered set and give it the order topology. Suppose $x$ is an element of L which is not maximal or minimal. Prove the $L-\{x\}$ is not connected.
So I have to show that there exists some separation of $L-\{x\}$. But isn't $(-\infty,x)\cup (x,\infty)... | common-pile/stackexchange_filtered |
Raspberry Pi 4 does not respond ssh
My setup is a RaspberryPi4 with SSD (Kingston 120GB) as boot drive. It has also a regular HDD connected to it. Both hard drives are connected to a USB dock via 3.0 USB. The dock has also a power supply so no energy problems should arise. Connected via ethernet to router. SSH enabled.... | common-pile/stackexchange_filtered |
SImple solution to Codeigniter image class?
I have some messy code, even i use SimpleImage, i know i can use CodeIgniter image class, but config is little big, can someone post a little elegant and better solution, this is my code for now, i want to get rid of SimpleImage, and image class is initialized in controller.H... | common-pile/stackexchange_filtered |
Hindi unicode text incorrect on Android 4.1
I have a piece of Hindi text:
हाइड्रोजन परआॅक्साइड 3%
(Image of the text in case the quote is rendered incorrectly)
On Android API 16 a character is wrong and a dotted circle is shown instead. This is regardless of the font used. On Android API 26 the text is rendered corr... | common-pile/stackexchange_filtered |
CLLocationManager not very accurate inital updates
This is stated in CLLocationManager class reference:
When requesting high-accuracy location data, the initial event delivered by the location service may not have the accuracy you requested.
This is really affecting my app. How can I make sure that the location fou... | common-pile/stackexchange_filtered |
Cron job to invoke HTTP restful api
I am using J2EE with Jboss server. I am trying to finding a way to invoke sendEmail api in my code every month.
@GET
@Path("/sendEmail")
@Transactional
public String test(){
I want to invoke this test api which can be accessed using web-browser http://localhost:8181/api/calc/sendEm... | common-pile/stackexchange_filtered |
Connect two UIElement with Arc
I have two UIElements(i.e. rectangles) in Canvas and their coordinates. How can I connect them with arc in code behind?
I use google and i could not find anythin useful. I tried to create ArcSegment but without any success. It would be great to have: ArcSegment arc = new ArcSegment(x1, y... | common-pile/stackexchange_filtered |
Varnish and Connection Flood (DoS - DDoS)
I've been playing around with the Varnish cache server and I got my webpage up lightning fast, it gets 97 Points in Google's Pagespeed and 100 @ Pingdom's. I used Varnish (proxies to nginx), NGINX (only locally available, proxies *.php to php-fpm (but I think about moving to Hi... | common-pile/stackexchange_filtered |
Foundation contact form with abide - php is not working
I have tried everything to get this form to work but no luck.
I guess abide is working now but my php is not sending the email. I don't even think that my php is getting called anyway.
my code is below
form code
line 434
<form id="myForm" data-abide action="ma... | common-pile/stackexchange_filtered |
How to preview a cms page in Magento 2 admin panel
Is it possible to preview the CMS page before push live?
I can't preview my page while creating a page on cms page in admin panel Magento 2.
How can I preview?
"View" link should be already there which shows the preview of CMS page from CMS pages grid.
@MohitKumarAr... | common-pile/stackexchange_filtered |
Syntax error for link in nested content_tag :div
I'm new to rails. I'm trying to add a link to a div that is being generated with the content_tag. I'm getting a syntax error but I can't seem to figure out why.
I used this reference
- flash.each do |name, msg|
- if msg.is_a?(String)
= content_tag :div, msg content... | common-pile/stackexchange_filtered |
distinguish - transitive or intransitive
Merriam-webster dictionary says that in:
distinguish X from Y - distinguish is transitive
distinguish between X and Y - distinguish is intransitive
Do you agree? If it's true, what's the difference between the two:
It’s hard to distinguish an apple from a pear.
It’s hard to ... | common-pile/stackexchange_filtered |
Executable file set root suid, but access(path, W_OK) still return -1?
Why executable file set root suid, but access(path, W_OK) still return -1?
Code:
#include <stdio.h>
#include <unistd.h>
int main()
{
printf("privilege => %d\n", access("/usr/local/etc/t.conf", W_OK));
return 0;
}
Test run:
[www@mypy access... | common-pile/stackexchange_filtered |
Header and Footer template in CKEditor
I have implemented CKEditor in my project as per the requirement. I need to covert my html file to word document at the end on user input and my system is creating the document file perfectly. Now my client wants me to implement header and footer functionality same as word in my c... | common-pile/stackexchange_filtered |
Count how many UL Elements there are in a Div with Javascript?
I am dynamically adding UL elements to a DIV element. I would like to be able to count how many UL elements there are inside the DIV so that once all the ULs are removed dynamically I can delete the DIV that they are contained in.
<div id="000">
<ul id="00... | common-pile/stackexchange_filtered |
how to hide Player slider in MPMoviePlayerViewController
I have a video app in that i use MPMovieplayerViewcontroller. In that i want to hide Player Slider.So user can not seek video forward or backward.
and I use
self.videoPlayerViewController.moviePlayer.controlStyle=MPMovieControlStyleEmbedded;
Thanks in advan... | common-pile/stackexchange_filtered |
using IN statement in mysql php queries
Hi guys I hope everyone doing well.
I want to know how can I use IN statement in PHP Mysql query,
I have this example inside DB table where the column name is Model
Model column in mytable
A901:Y921:L102
I want to remove: and use it in PHP SQL queries like
SELECT * FROM mytable ... | common-pile/stackexchange_filtered |
A global version of evil C-w
In vim and evil mode, normal-state C-w prefixes various window-related
commands. For example, C-w l moves focus to the right, and C-w L
moves the currently focused window to the right.
I would like access these commands in buffers that do not play well with
evil mode (such as PDF buffers).... | common-pile/stackexchange_filtered |
How does enable_if works in this case
#include <iostream>
#include <functional>
#include <memory>
using namespace std;
template<typename T = int> std::enable_if_t<!std::is_arithmetic<T>{}, T> nope() {}
int main() {
nope();
}
This is a simple code which does't compile. If one changed this:
int main() {
n... | common-pile/stackexchange_filtered |
How to use propositional logic on a list of values in sml
I am trying to use propositional logic on a list of values. I will have a list of true or false values. I have a logical expression and I am trying to apply it to a list of values. For example, the logical expression T ^ F v T ^ T will be applied to a list of va... | common-pile/stackexchange_filtered |
Ktor: "io.ktor.util.pipeline.ContextDsl" in ktor 2.0
This annotation is documented here but not marked deprecated, however in the migration guide there's no mention of why it was removed, and what should be used instead.
I am totally new to Ktor, and I am supposed to port a 1.6 project to 2 while learning Ktor from scr... | common-pile/stackexchange_filtered |
electron js - serving html
I am trying to serve another html file so that browser can access it from electronjs. this is file directory:
app folder:
- index.js // this is the init file for electron.
- index.html // main interface.
- ip.js // <-- included in index.html, codes for serving the static html to browser.
- pa... | common-pile/stackexchange_filtered |
.htaccess is redirecting to original URL
i have following .htaccess file and i am trying to rewrite URL www.example.com/play/tribe-test instead of www.example.com/love/tribe-world/tribe-test.
Now when i am hitting www.example.com/play/tribe-test its redirecting me to www.example/love/tribe-world/tribe-test which is ori... | common-pile/stackexchange_filtered |
How to sort multi-index pandas data frame using one top level column?
I have a multi-index dataset like this:
mean std
Happiness Score Happiness Score
Region
Australia and New ... | common-pile/stackexchange_filtered |
How to draw several regions using one function returning List of True's and False's?
This is what I want:
RegionPlot[
{
y < x^2,
y < 0.5 + 0.5 x
},
{x, 0, 2},
{y, 0, 4}
]
This code does not work (draws only one region):
rf[x_, y_] := {
y < x^2,
y < 0.5 + 0.5 x
};
RegionPlot[
rf[x, y],
{x, 0, 2},
{y, 0, ... | common-pile/stackexchange_filtered |
DataList - how to get the ClientID for another control other than the one your on?
Have a datalist with several textboxes, a series of "Time1" and "Time2"
So Im trying to attach a javascript onblur event to each one, and pass the client id values to a function, but how to reference the clientid of another control than ... | common-pile/stackexchange_filtered |
Why, although these functions have the same derivative, do they not differ by a constant?
I calculated the derivative of $\arctan\left(\frac{1+x}{1-x}\right)$ to be $\frac{1}{1+x^2}$. This is the same as $(\arctan)'$. Why is there no $c$ that satisfies $\arctan\left(\frac{1+x}{1-x}\right) = \arctan(x) +c$?
Why do you... | common-pile/stackexchange_filtered |
how to take mysql backup using vb.net code
I want to take a backup from mysql workbench using vb.net. I am using MySql Workbench 5.2 CE. and below is my code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'
Process.Start("C:\Progra... | common-pile/stackexchange_filtered |
How to change box-shadow to similar command in css?
I have problem because shadow in my components doesnt work on safari.
I tried to change box-shadow to filter: drop-shadow() but this doesnt work in internet explorer 11.
box-shadow: 0 1px 7px 0 rgba(0, 0, 0, 0.12);
Do you know some similar command that I can swap and... | common-pile/stackexchange_filtered |
Unwanted code being inserted into pages
Some of our ColdFusion sites are having the words "coupon" inserted into their footer with a link to another site. Is there anything I can do to prevent this? Is there any software I can run to help detect any vulnerabilities? It doesn't seem to be SQL injection as the databases ... | common-pile/stackexchange_filtered |
WPF Binding nested objects
I'm very new to WPF and I'm having difficulties binding a request object with nested objects which was derived from a WSDL to a XAML textbox. Programmatically I was able to bind to a textbox but I would like to understand the syntax needed to bind via XAML. Once I have some direction It'll m... | common-pile/stackexchange_filtered |
When an author sells the underlying copyright to a third party, where does the publisher now send the royalties?
A book publishing contract typically starts with an author who owns a copyright and licenses it to a publisher for the term of the copyright. The publisher (or the literary agent) sends royalty checks to the... | common-pile/stackexchange_filtered |
How to read local .json file and display data in Window Phone 7/8?
I have tried couple of different methods, no luck yet. Note:In second if statement, I have entered long json string. However, I dont want to write long json string, instead, I want to read from json file.
private void Pivot_LoadingPivotItem_1(object... | common-pile/stackexchange_filtered |
How to get random value from property from one List?
I have a List of 10,000 entries of type Element:
public class Element
{
public Element()
{
this.Id = Guid.NewGuid();
}
public Guid Id { get; set };
}
And I have another List of 5,000 entries of type Link:
public class Link
{
public Link(... | common-pile/stackexchange_filtered |
How to combine property init and set depending on access modifier?
I want a class/record with protected set and public init access restriction?
To my knowledge this even cannot be done by explicitly implementing a "Set" interface like this:
public interface ISetData<T>
{
T Value { get; set; }
}
... | common-pile/stackexchange_filtered |
Creating word document with photos and descriptions with VBA
I am trying to create a word document report that includes photos with an associated description using Excel VBA. The photo names are in column A and the descriptions are in columns B:I of the excel spreadsheet. The current macro opens the FileDialogFolderP... | common-pile/stackexchange_filtered |
I am trying to implement Pocketsphinx running uClinux, but I keep getting "Phone is missing in acoustic model" errors
I am trying to run Pocketsphinx on a microcontroller running uClinux, I have installed pocketsphinx on the controller, but I keep getting several different errors regarding acoustic models and definitio... | common-pile/stackexchange_filtered |
how to increase the gesture time out time
I have implemented multiple-stroke gestures in my app, but if the pause between strokes is too long it resets the gesture. Is there a way to increase the time allowed between strokes of a single gesture?
You can increase the time between strokes of a single gesture by using th... | common-pile/stackexchange_filtered |
Using scriptlet or EL inside an attribute of a tag (Grails UI Plugin)
I want to trigger the same dialog on different ids in my gsp.
So here is the code:
<div class="yui3-widget-bd">
<g:each in="deployments" status="index" var="workflow">
<% def id = "reloadFile"+index %>
<gui:dialog title="Reload Fi... | common-pile/stackexchange_filtered |
Show that the propositions $\alpha$ and $(Z\rightarrow\alpha) \wedge Z$ are equally satisfiable
I already found that $\alpha \not\equiv (Z\rightarrow \alpha) \wedge Z$ but now I was ask to see if those propositions are equally satisfiable but I don't know how.
Hope someone can help me.
Thank you in advance
I doubt it... | common-pile/stackexchange_filtered |
How to access variables of a referenced class library in a Winforms application
I have a Windows Forms application with a reference for the class library in my Win-forms project.
The win-form has a combo-box and a button.
the class library has a global variable value1,value2 and other code which depending on value1 ex... | common-pile/stackexchange_filtered |
How can I read datamatrix codes using opencv in python?
new python user here. I'm working on a project with a raspberry pi with a picamera to decode Datamatrix codes. I'm trying to recycle some parts of an older project that I did which decodes QR codes and works great but doesn't support datamatrix (pyzbar), but there... | common-pile/stackexchange_filtered |
How many shots would it take to sever a limb?
Modern (or near future, 10-20 years) setting. Mostly regular humans. Regular firearms.
The scene goes like this: the Big Bad Villain of the story fought the Big Good Hero in hand-to-hand combat and won. He got his trusty gun, he stands above the defeated hero, he aims his g... | common-pile/stackexchange_filtered |
Selfadjointness of the differential operator in a singular potential
The free Dirac operator is the differential operator of the following form
$$ T_0 = i \alpha \nabla + \beta,$$
where $\alpha$ and $\beta$ are Hermitian $4 \times 4$ matrices, and $T_0$ is selfadjoint on some domain $D(T_0)$ on infinite-dimensional Hil... | common-pile/stackexchange_filtered |
how to find memory leak in Tcl/Tk?
a Tcl/Tk (8.6.11) program of mine crashes with the following error:
max size for a Tcl value<PHONE_NUMBER> bytes) exceeded
the tcl/tk program does about the following:
open a TCP/IP socket
proc ::application::create_socket {} {
variable my_socket
if {[catch {set my_socket [socket... | common-pile/stackexchange_filtered |
Probability that an outcome is fair
I have a program which has 3 slots, each that are supposed to output 0 or 1 with 50% probability, so [x] [x] [x], where x = 0 or 1
I think then the probability of all 1's would be 1/(2*2*2)= 1/8, or 12.5%.
If I run this program many times and empirically find that this outcome occur... | common-pile/stackexchange_filtered |
How to track state of user preference from page to page
I'm using Javascript to hide the site map on each page of a site (so that it will be visible on browsers with Javascript disabled). I then use a JQuery toggle to allow the user to reveal the Site Map (using a "Site Map" link in the footer of each page).
The Site M... | common-pile/stackexchange_filtered |
refresh the main panel screen in shiny using the action button
I am building a shiny app and I want to refresh the main panel screen. Here is a sample code. I have a submit button to display the data and I have a re-fresh button to clear the screen. I am not so sure how to code the re-fresh button in R and shiny since ... | common-pile/stackexchange_filtered |
Avoid repeating certain html tags while rendering a jquery template
In the following code, users in an array of user objects, which have a name property in them:
$.template("listTemplate", "<ul><li>${name}</li></ul>");
$.tmpl("listTemplate", users).appendTo("#app");
My purpose is to generate a html similar to:
<div id... | common-pile/stackexchange_filtered |
How can I set the background color below (and to the right) of table cells if there are few rows (or colums)?
i have jtable with 5 rows but the size of jtable is more than the jtable containing 10 rows.
when i used table.setBackground(), only 5 rows are colored and rest part is uncolored.
I want to set color in the who... | common-pile/stackexchange_filtered |
Compiling large data structures in Haskell
I have a CSV file with stock trading history, its size is 70 megabytes.
I want to run my program on it, but do not want to wait for 30 seconds every start.
1.
Just translate CSV file into Haskell source file like this:
From | TO
-------------------------... | common-pile/stackexchange_filtered |
How to prove $\lim\limits_{(x,y)\to(0,0)}\frac{{x^3{y^2}}}{{{x^4} + {3y^4}}} = 0$?
To prove that $$\lim\limits_{(x,y)\to(0,0)}\frac{{x^3{y^2}}}{{{x^4} + {3y^4}}} = 0$$
I start with
$$\left| {\frac{{{x^3}{y^2}}}{{{x^4} + 3{y^4}}}} \right| \leqslant \left| {\frac{{{x^3}{y^2}}}{{{x^4}}}} \right| = \left| {\frac{{{y^2}}}{... | common-pile/stackexchange_filtered |
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake Caused by: java.io.EOFException: SSL peer shut down incorrectly
Im trying to read data from a url , my program works fine , it connects and download de data correctly, but only if I run the project from my IDE. The problem is that when ... | common-pile/stackexchange_filtered |
YouTube Data API no longer returns deleted videos in playlists?
I am trying to get list of all my liked videos on YouTube (including deleted) using playlistItems.list method.
Last month (Sep. 2018) I've tried it, response from the server contained exact amount of items, including every video with '[Deleted video]' titl... | common-pile/stackexchange_filtered |
Extract data from flutter
I'm building an app with Flutter and a backend server with a Python Flask server..
The data returned from the backend server is in the following format:
(('helloworld',), ('hello',))
I want to extract helloworld and hello from this data.
However, sometimes there is only one piece of data, some... | common-pile/stackexchange_filtered |
Does rails 3 find_by_x sanitize data?
I have a model with a few basic fields:
title
category
etc.
I have seen documentation that says when you do:
Model.where("category = ?", params[:cat])
the code will be sanitized automatically. If I convert the above to:
Model.find_by_category params[:cat]
will the params also... | common-pile/stackexchange_filtered |
how to change alphabetic order to descending order in drupal 7
I have a accordion menu in left side and the menu list come as alphabet order but i want newest come first. how can i change the sorting of that list.
How you've added accordion to menu?
i have create the menu first named Event and then create the conte... | common-pile/stackexchange_filtered |
How to randomly remove block side in a grid?
Following on from How to control square size in a grid from square area?, I would like to randomly remove block side in a grid. Here my idea:
%% In a first time, I randomly select a white patch in the grid (figure below):
let random-patch one-of patches with [pcolor = white... | common-pile/stackexchange_filtered |
Regex that matches all week day's name in a string
I want to match every week day in a string where all words are comma separated.
Examples:
"mon, thu, fry" should be matched
"mon, tue, sat" should be matched
"" should not be matched
"mon, tue, wed, thu, fri, sat, sun" should be matched
"foo, bar" should not be matched... | common-pile/stackexchange_filtered |
Are All Heading Levels Required in HTML Emails?
I'm working on sending a mass email. The content I was given and the template I have really don't lend themselves to an <h1>. There are a bunch of headings, however, that should be <h2>.
Is this acceptable in an email? If not, what is a method of hiding an <h1> that works... | common-pile/stackexchange_filtered |
how to use d3.data().enter().call()
I'm trying to link a d3 project with an open layers project. What I'm trying to do is to use d3 to find out if a given node exists in my DOM.
If it exists, i use transitions.
If it does not exist, I need to insert the node via the openlayers API. This is required as the nodes are re... | common-pile/stackexchange_filtered |
New tokens to existing language
I am using Monaco editor in our project and I have issue I am not able to overcome.
At our scenario , user can add new words to the editor once he clicks on a button, for example, user has editor with language javascript and he now wants to add new word 'workTest', it should be highlight... | common-pile/stackexchange_filtered |
How to render the function inside addEventListener load in reactjs or nextjs?
const Test = () =>
{
const [ reload , setReload ] = useState('')
useEffect(() => {
console.log("useEffect Reloded");
document.getElementById( "img" )!.addEventListener('load' , () => {
console.log("img loa... | common-pile/stackexchange_filtered |
Concatenate const char to char
I'm trying to generate passwords and copy them to a string. Here is what I want to do:
char generatePassword(int npasswords) {
int i, z;
char c, fullPw[300];
for(z = 0; z < npasswords; z++) {
for (i = 0; i < 3; ++i) {
c = rand() % 23 + 'a';
str... | common-pile/stackexchange_filtered |
If already using the contains selector, why use the starts-with selector
Looking at other SO questions, I've learnt that *= means "contains" and ^= means "starts with". I noticed [class^="icon-"], [class*=" icon-"] {/* CSS Here */} in some third-party CSS code. This strikes me as redundant; I am unclear why [class*="... | common-pile/stackexchange_filtered |
Regular expression for integer with or without commas
I want to create a regular expression for all sorts of numbers i.e whole numbers (+ve and -ve) and decimal numbers (+ve and -ve) with or without commas.
For e.g the regular expression should cover following number formats.
111 1.11 1,111 1,111.01 ... | common-pile/stackexchange_filtered |
Converting internal blu ray drive to external drive
So I have a LG Slim Blu-Ray Combo Drive - SATA CT40N that I'm trying to make work with usb. I have a SATA to usb 3 converter that I plugged into my surface pro 3. Drive seems to get sufficient power as I can open it, put a disk in, and I can hear the disk spinning. Pr... | common-pile/stackexchange_filtered |
i want to compress the file by the deflater but it seems doesn't work
i have to do some precompress before the file upload, and i want to use the deflaterOutputStream to compress the file but it doesn't work, if i have a file about 10MB when i compress it on the outputstream it still 10MB, and i don't know why, and i a... | common-pile/stackexchange_filtered |
typescript: why is a string implicitly having an 'any' type?
const directoryToBeZipped = `${LOCAL_FILE_PATH}/${attachment.Key}`;
const zipFilePath = `${LOCAL_FILE_PATH}/${zippedFileKey}`;
zipTime = await streamZipLocalDirectory(directoryToBeZipped, zipFilePath);
and
/**
* Compress a local directory with all contents... | common-pile/stackexchange_filtered |
How to Attach Events to Table Checkboxes in Material Design Lite
When you create a MDL table, one of the options is to apply the class 'mdl-data-table--selectable'. When MDL renders the table an extra column is inserted to the left of your specified columns which contains checkboxes which allow you to select specific r... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.