text
stringlengths
70
452k
dataset
stringclasses
2 values
All files in my PC are stuck on "read only", even as the only admin Windows 7, 32-bit: There is 1 user account in this PC, and that is my account. What I do is, I right click to a folder and uncheck the read only option, apply, close. After when I reopen the folder's properties I see that it is restored and file is st...
common-pile/stackexchange_filtered
C++ Delimiter for newline and again for : Say I have a textfile "Employees.txt" with Employee name and ID. Like so: John:d4250 Sarah:s5355 Alan:r4350 If I have a very very basic Employee class which has a constructor for Name and ID and I wish to read from this textfile and insert them into a vector Am I best to use s...
common-pile/stackexchange_filtered
I married my wife without my parent/guardian's permission; is it valid? My mother refuses marriage with a girl (my cousin's sister in law). She says the girl's status is not same as me, and she lives in a village, that means my family is only concern to the social status. However, we got married in front of quazi and ...
common-pile/stackexchange_filtered
IntelliJ - fix alt+shift+space I'm using intellij and I have this issue: every time I hit Control+shift+space to autocomplete a windows's contextual menu pops out at the top-left corner (and also the autocomplete is triggered). Is there a way to cahenge either the intellij or windows's menu shortcut? The picture of the...
common-pile/stackexchange_filtered
Escaping Expressions: Backslashes I have a Codefragment that works for every escape except \ the problem i have is that split removes all \ public static String esc = "\\"; public static String[] saveSplit(String str, String regex) { String[] test = str.split(regex); ArrayList<String> list = n...
common-pile/stackexchange_filtered
Ruby code crashes with a ExceptionNoMethodError undefined method for nil:NilClass I know very little about Ruby, but inherited a Ruby app that has recently started to have an issue. There's a Resque based job which runs periodically, and has been running fine for months and until now it suddenly stopped working. I veri...
common-pile/stackexchange_filtered
Angular 2 - Cancel Service Call I have a menu with category tabs and the following function on click. this._customerservice.GetCustomersByFilter(this.FilterOptions) //Get Customers by Page Number and CategoryId .subscribe(res => { if (this.customersArray.paginatedCustomers.length != 0) { ...
common-pile/stackexchange_filtered
How to replace repetitive string value with values in a list? I'm trying to create simple Python program for below example. Sentence = "Person A has ? baloon, Person B has ? baloon Person C has ? baloon" There can be n number of balloons in this sentence. Color = ["Black", "Blue", "Red", "Green"] There can be n numbe...
common-pile/stackexchange_filtered
Error: DateTimeZone::__construct: Unknown or bad timezone (7200) I'm getting error "Error: DateTimeZone::__construct: Unknown or bad timezone (7200)" when opening CiviCRM on my Drupal6 site. Refreshing the page clears the error. The error occurred after I upgraded to D6.38 and Civi4.7.11. My timezone is Africa/Johannes...
common-pile/stackexchange_filtered
Coplanar conducting sheets at different potentials There is an exercise in Zangwill (7.23 Contact Potential) shown below, it is not very clear in the diagram, but $\rho$ is normal to $z$. The aim is to compute the potential in space, you are suggested to argue that the potential is univariate in $\phi$ by symmetry argu...
common-pile/stackexchange_filtered
FFmpeg cannot write file to /dev/shm: Permission Denied Issue: I have an FFmpeg command that I've been running for months now to stream video into the /dev/shm directory. It had been working fine until relatively recently (e.g. within a week), now it throws a permission issue. The command: ffmpeg -threads 2 -video_size...
common-pile/stackexchange_filtered
Load a KML in Google Maps API with proper rendering of colored disc placemarks I am using this piece of code to load a KML file in GoogleMapsAPI: <script> function googleMapInitialize() { var myOptions = { center: new google.maps.LatLng(-34.397, 150.644), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP ...
common-pile/stackexchange_filtered
wp pagenavi not working with category id Can someone let me know i am using wp pagenavi wordpress plugin http://renegadehealth.com/blog/?cat=6708 When i click on the next button at the bottom the following link comes:- http://renegadehealth.com/blog/blog/index.php?cat=6708&paged=2 an extra "blog/blog/" is being added ...
common-pile/stackexchange_filtered
How to timeout ADB connect <ip> I'm making automation bash script that will go over range of IP's and try to connect over ADB. If I try: adb connect <not android device> the command will hang for 30 seconds until it say "failed to connect to '<IP_ADDRESS>:5555': Operation timed out". How I can make ADB connect to try...
common-pile/stackexchange_filtered
how to bind piece of javascript after ajax update Possible Duplicate: How to bind a function to Element loaded via Ajax in my application I want to populate an info panel onmouseover of some cell and highlight the cell so that the user can see which cell. I used the following js and css, which worked well for cells ...
common-pile/stackexchange_filtered
Why does code render in code block? I want to display HTML in a webpage. I've wrapped in a code block but the last two lines still execute/render. What am I doing wrong? <pre><code> div {background: brown;} div.bluebg {background: blue;} <div>default brown background</div> <div class="base">blue background</div> </co...
common-pile/stackexchange_filtered
Wave file modification using java I am currently trying to write a program in which i have to process a .wav file, i need to process the data in the wave file. My main aim is to extract the data from currently existing file, create a new file with appropriate wave headers, and then write the information/data in the new...
common-pile/stackexchange_filtered
Server running MS SQL getting login request from another server every minute I have a Windows Server 2016 virtual machine running IIS 10 and MS SQL Server 2016. Every minute I'm getting a "Login failed for user" message in the event log. Sometimes 3 times per minute. The user that is specified is the name of another se...
common-pile/stackexchange_filtered
Combining form textfield values using php implode I have 3 text fields and I want to pass the values after combining them using a hyphen. <input type="text" name="val[]" /> <input type="text" name="val[]" /> <input type="text" name="val[]" /> Preferably help me with php implode option. How do i retrieve it after submi...
common-pile/stackexchange_filtered
Delete only incoming call in Call Logs in android Is it possible to delete only incoming calls from the call log list? If so how? I am able to delete all of them easily but not sure how to delete only incoming calls? Can somebody help me out with this? Thanks! In CallLog provider database, android.provider.CallLog.Cal...
common-pile/stackexchange_filtered
I want to get Count the clicks on an item of RecyclerView I have a recyclerview,this recycler have 5 item[a,b,c,d,e].Suppose 10 user clicked this item[b].how can i get count = 10 and i want to store this count data in firebase database.(I am not using firebase recyclerview) My another question is i have 5 list,i want t...
common-pile/stackexchange_filtered
Converting ArrayList to HashMap, however, selecting choice objects with different variable classes within ArrayList This is a project I am working on for my intro to java class. My professor has already laid out the base code, and the point of the project is to work with HashMaps and ArrayLists in combination with ari...
common-pile/stackexchange_filtered
Why the input function is not work in the spyder (Python3.9)? Why the input function is not work in the spyder (Python3.9)? #The code I typed while True: s = input('Enter something : ') if s == 'quit': break print('Length of the string is', len(s)) print('Done') #The console output runfile('C:/User...
common-pile/stackexchange_filtered
What is a default generic app in CentOS 7 to monitor UPS battery over USB? I installed an UPS battery that is not a well known brand, but it has an USB; Other generic UPS monitoring apps on windows can find it and read battery level and other data even without manually installing a driver for it. In CentOS 7, what is t...
common-pile/stackexchange_filtered
svn.remote.RemoteClient.info: FileNotFoundError: [WinError 2] The system cannot find the file specified I am trying to connect SVN remote client and get the latest committed revision with following python codes in Windows: r = svn.remote.RemoteClient(svnPath) revNum = str(r.info().get("commit#revision")) I am getting ...
common-pile/stackexchange_filtered
Is it required to mark class as final to make it immutable? The concept of immutability in java says's that class needs to be marked final to make it immutable. My question is if we do not mark a class as final then it can be subclassed but still it will be the object of sub-class that will be mutable and not the base...
common-pile/stackexchange_filtered
A_n in L^2(R) convergence study I want to study in $\mathcal{H}=L^2(\mathbb{R})$ the convergence of $A_nf(x)=\int_\mathbb{R}e^{-n(x-y)^2}f(y)dy$ Solving.... It's easy to see that $A_n\to A=0$ pointwise, now i want to show strong convergence with $||(A_n-A)f||^2\to 0$ using monotone convergence theorem $||(A_n-A)f||^2=|...
common-pile/stackexchange_filtered
two versions of g++(4.4 and 4.7) exist in centos6.5 ,how to use g++4.7 I will learn c++11 so I installed g++4.7, when I use g++ --version,it shows version of 4.4. But when I use find / -name g++ ,it shows /opt/centos/devtoolset-1.1/root/usr/bin/g++ /usr/bin/g++ and the first version is 4.7,the second version is 4.4,how...
common-pile/stackexchange_filtered
How to determine whether site is secure from common user's point of view? What should be done (or at least declared) so end-users, visitors will start trusting your website? Some thoughts: secured login (via https) privacy policy (hidden email and other private information) strong password check custom error page with...
common-pile/stackexchange_filtered
Traditional Open Source Java Application I've been using Java for my "home projects" for a while and now there's a need to make some of my projects available through the repositories like github or Google Code. As long as I'm the only developer for the project and as long as I always work in Eclipse, there are absolute...
common-pile/stackexchange_filtered
implementing transaction scope While implementing transaction scope in mvc application. is it better to create a transaction manager while calling the wcf service. or is it better to have the transactionscope within the business object? I'd personally go for separation of concerns. Business object has nothing to do w...
common-pile/stackexchange_filtered
When should a task be executed asynchronously vs on the main thread? I understand that all changes to the views should be on the main thread, but at what level of complexity should I start to consider using dispatch_async? Should it be used for: - number crunching (like computing a complex probability) - saving to some...
common-pile/stackexchange_filtered
How can I better clean headphones that sit inside the ear? I have a pair of headphones that I use regularly, including while I'm working out. They're the kind of headphones that sit inside the ear (earbuds), so inevitably they'll get kind of gross after a couple uses. They have the removable rubber tips on them, but I ...
common-pile/stackexchange_filtered
Why would they show the Hunger Games live? It appears from the movie (never read the book) that the Hunger Games are shown "live". That there is no delay in the broadcast. It appears to be shown live as the audience is shown watching scenes that the Gamemakers and the Capitol would never want them to see. For example, ...
common-pile/stackexchange_filtered
Engineering notation with Haskell Is there a existing Haskell function which provide an engineering notation formatting (as String)? If not, I read that printf can be extended by adding an instance to PrintfArg. Do you believe this is a good solution ? By engineering notation, I mean an exponent notation whose exponen...
common-pile/stackexchange_filtered
Error creating bean with name 'webMvcRequestHandlerProvider' I'm new on Spring "things" I use this version: spring-boot-starter-parent 1.5.3-RELEASE And I have this dependencies on the pom.xml io.springfox springfox-swagger2 2.8.0 io.springfox springfox-swagger-ui 2.8.0 And I think this generated the error below,...
common-pile/stackexchange_filtered
Examples of usage of JSF Are their any good websites (characterized by high usage), that use JSF for their back-end? I have just started working with the basics of the framework. If I see some websites using JSF, may be I will be able to better appreciate the use of the technology. Also could you mention the benefits o...
common-pile/stackexchange_filtered
pass parameters containing white space on command line I would like to pass a parameter containing white space. For example: C:\temp>exiftool.exe -"Region Person Display Name" temp.jpg Can someone please give me direction here? The obvious does not appear to work. Your parameter with spaces is getting passed fine f...
common-pile/stackexchange_filtered
loopback cloudant connector connection pooling I am using loopback's Cloudant connector through my Node.js code. https://docs.strongloop.com/display/public/LB/Cloudant+connector Do i need to take care of connection pooling (programatically or through configurations) ? Or is it being taken care by default ? Can anybody...
common-pile/stackexchange_filtered
PageSpeed and CDN images I currently have a site that services images located on AWS S3 via AWS Cloudfront. I'm not looking to install PageSpeed and I want to take advantage of the image optimization and lazy loading (out of page view) that PageSpeed offers. My question is: Do I need to move the images from S3 onto the...
common-pile/stackexchange_filtered
How to completely uninstall and remove Ubuntu from PC I tried to install Ubuntu using the download and instructions from: https://ubuntu.com/download/desktop#how-to-install I downloaded ubuntu-24.04-desktop-amd64.iso and then it created the folder: Drive (F:) Ubuntu 24.04 LTS I downloaded balenaEtcher to create a boota...
common-pile/stackexchange_filtered
Dep confuses the projects in vendor to that in GOPATH I have projectA which imports packages from projectB. Both are existing in the GOPATH. I use dep for dependency management and projectB is added as a dependency in the Gopkg.toml of the projectA. If I clear this projectB from the vendor directory of projectA or if I...
common-pile/stackexchange_filtered
Control Order of SQL Scripts in Install Shield How do you control the order to run SQL scripts in Install Shield 2008? I moved the one I want to run first on the script list, but it seems to not be running. When using a InstallScript installer, they are processed in the order their respective components are processed....
common-pile/stackexchange_filtered
Wordpress: "Warning: Illegal string offset" in multiple places Hopefully, you guys can help me here. What's going on with these issues in my WordPress install, see the errors and referenced code block. Errors: Warning: Illegal string offset 'domain' in /home/customer/www/xxxxxxxx.xxx/public_html/wp-includes/l10n.php o...
common-pile/stackexchange_filtered
NodeJS exec can't find MachineGuid from registry using powershell cmdlet I am trying to obtain the MachineGuid through NodeJS using child_process.exec with cmdlet Get-ItemPropertyValue const command = "Get-ItemPropertyValue -Path 'HKLM:\\Software\\Microsoft\\Cryptography' -Name MachineGuid" const options = { shell: 'po...
common-pile/stackexchange_filtered
Llama_index issue behind HTTP request I'm having an issue using Llama_Index to use an index previously generated for custom content ChatGPT queries. I generated the index with the following code: from llama_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper, Serv...
common-pile/stackexchange_filtered
Cannot delete phantom table using `bq` or BigQuery UI I'm trying to remove a table from a dataset using bq without success: BigQuery error in rm operation: Not found: Table carbon-web-...:AS_....Orders_01Jun2014_31May2015_3704438_01 The table is listed whenever I run bq ls AS_.... I'm seeing similar behavior when I tr...
common-pile/stackexchange_filtered
How to I include extra bars in grouped bar charts in ChartJS? So, currently, I have a bar chart in ChartJS, which uses the database to make price comparisons between different companies for differently-sized items (all items are the same, only the size is different). The database looked like this: id, company, price_f...
common-pile/stackexchange_filtered
What is the Scriptural evidence for the Protestant view that the AntiChrist will be Jewish? In Eschatology, there is a lot of speculation about the identity of the AC, and if he's active on the world stage now, [in other words, a well known leader but just not having revealed his true identity yet] There is also a comm...
common-pile/stackexchange_filtered
Join multiple videos with moviepy. I.e. join the videos one after another, NOT merge those video together As suggested, concatenate_videoclips joins the videos, but I want a different way. It looks like concatenate_videoclips merges 2 videos together so that they are played simultaneously. What I want from moviepy is t...
common-pile/stackexchange_filtered
AWS Terraform most_recent filtering on different ACM certificate statues is not supported Have recently started getting Error: most_recent filtering on different ACM certificate statues is not supported while deploying AWS terraform that previously deployed. No changes have been made and I can't find much on this erro...
common-pile/stackexchange_filtered
How to unfold a dictionary of dictionaries into a pandas DataFrame for larger dictionaries? Consider the following dictionary of dictionaries in python3.x dict1 = {4: {4:25, 5:39, 3:42}, 5:{24:94, 252:49, 25:4, 55:923}} I would like to unfold this into a pandas DataFrame. There appear to be two options: df1 = pd.DataF...
common-pile/stackexchange_filtered
use io_service::post (boost) when deadline_timer is waiting I have a problem while using deadline_timer and io_service::post as below: #include "boost/asio.hpp" #include "boost/thread.hpp" int main() { boost::asio::io_service io_service; boost::asio::deadline_timer timer1(io_service); boost::asio::deadline...
common-pile/stackexchange_filtered
How to get records from last Month (not last 30 days) in mysql query I am having a part in MySQL query where I need to select the records for the last month but not the last 30 days For example, if the current month is Jan, then I need to have the records of last month which will be Dec, but again it should show the re...
common-pile/stackexchange_filtered
Disable move of cursor during auto-complete selection I need to disable the movement of the cursor during auto-complete selection. I have a contentEditable div as the search bar for friends. when I type any letters an auto-complete suggestions appear underneath the search bar. During a selection of the auto-complete su...
common-pile/stackexchange_filtered
Slick group by count Let's say I have organizations, each organization has different groups, and users subscribe to groups. case class OrganizationEntity(id: Option[Int], name: String) case class GroupEntity(id: Option[Int], organizationId: Int, name: String) case class GroupUserEntity(groupId: Int, userId: Int) I need...
common-pile/stackexchange_filtered
How do I break down the math symbols in this equation $$\frac{n}{\phi(n)}=\frac{n}{n\prod_{p|n}\left(1-\frac{1}{p}\right)}=\frac{1}{\prod_{p|n}\left(1-\frac{1}{p}\right)}$$ How do I learn to understand these equations by myself as I can't seem to find the mathematical notation descriptions online? The $\phi(n)$ refe...
common-pile/stackexchange_filtered
PySpark Issues streaming from Kafka I was trying to connect to the kafka(0.9.0) stream through PySpark for one of my applications. Facing following issue: Steps taken Started kafka using following commands bin/zookeeper-server-start.sh config/zookeeper.properties bin/kafka-server-start.sh config/server.properties Us...
common-pile/stackexchange_filtered
TVöD rank for an engineer in Germany I am a French citizen currently employed by an Institute part of the Helmholtz association. I had been looking forward to starting this position for a while and was a bit in a rush when signing my contract (not ideal I know). I overlooked an important point that I fear is too late t...
common-pile/stackexchange_filtered
Code First Migration on Production I am working with EF Code First Migration and before I push to the production, I created the InitialCreate file from scratch and then set the AutomaticMigrationsEnabled flag to 'False'. Then inside my web.config file, I defined my Db Initialization strategy to 'MigrateDatabaseToLates...
common-pile/stackexchange_filtered
How to get this simple histogram? I want to create this: But I've come up with this one: I've searched the internet first but the histograms they were plotting were so much complicated. \begin{tikzpicture} \begin{axis}[ symbolic x coords={$0$, $1$, $2$}, xtick=data] \addplot[ybar,fill=blue] coordinates { ($0$, 0...
common-pile/stackexchange_filtered
How to construct a Map using with object properties as key using java stream and toMap or flatMap I have list of objects and need to create a Map have key is combination of two of the properties in that object. How to achieve it in Java 8. public class PersonDTOFun { /** * @param args */ public stati...
common-pile/stackexchange_filtered
Wrap automatically inserted TextBoxes with HTML in ASP.NET I want to generate TextBoxes in my ASP.NET webpage. It works fine foreach (var Field in db.A_Settings) { TextBox t = new TextBox(); t.ID = Field.ID.ToString(); t.CssClass = "smallinput"; t.Text = Field.Text; Label...
common-pile/stackexchange_filtered
Macro : Generate dynamic check boxes for VBA form Is there any way to create checkboxes in a vba form for cell headers ? That is all the column header name should be the checkboxes . For example .. One Two Three Four 1 2 3 4 1 2 3 4 1 2 3 4 In the vba form it should be contain One Tw...
common-pile/stackexchange_filtered
What's the meaning of rocks in that context? — Met him what? he asked. — Here, she said. What does that mean? He leaned downward and read near her polished thumbnail. — Metempsychosis? — Yes. Who’s he when he’s at home? — Metempsychosis, he said, frowning. It’s Greek:from the Greek. That means the transmigration of so...
common-pile/stackexchange_filtered
What escrow system does the official Bitcoin bounty progam use? There is a list of bounties on the wiki here: https://en.bitcoin.it/wiki/Active_Bounties How are the BTC pledges collated and eventually paid? I assume there is some kind of escrow system but I can't find out anything about it. Usually they're a multisig ...
common-pile/stackexchange_filtered
Use firebase tokens to query an API in a client I used firebase authentication to secure my ASP.NET CORE api. I actually store the users in the database my API uses. Note that in my database the google identifiers are the uids generated by the firebase authentication and that the classic identifiers (login + password) ...
common-pile/stackexchange_filtered
Add numbers without carrying Lets say I have two numbers, Number 1: 1646 Number 2: 2089 You see adding them left to right without the carry on adds up to 3625 how would I do this in python? I'm not sure but I need it to add 9+6 which is 15 but not to carry on the 1 when it adds 8+4 is there any way to add like this i...
common-pile/stackexchange_filtered
does dbe.forum module exist in django Is this module deprecated? What is the replacement for it, if so? Django Version: 1.6 Python Version: 2.7.6 The following is stack trace: Traceback: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 101. resolver_m...
common-pile/stackexchange_filtered
Seeking help to find the exact value of $ \int_{0}^{\frac{\pi}{2}} \frac{x}{\sin ^{2n} x+\cos ^{2n} x} d x $ using substitutions? Latest Edit The closed form for $$I_n= \frac{\pi}{4} \int_{0}^{\frac{\pi}{2}} \frac{d x}{\sin ^{2n} x+\cos ^{2n} x} $$ is $$ \boxed{I_{n}=\frac{\pi^2}{8 n} \sum_{k=0}^{n-1}\left(\begin{array...
common-pile/stackexchange_filtered
How to find the most frequently repeated number from the command line, in an array? I need to take single digit integers from the command line and put them into an array, and then find the most frequent integer. Sometimes this program seems to work, and other times, it doesn't. public class MostFrequent { public st...
common-pile/stackexchange_filtered
IIS 8.5 URL ReWrite I have an asp.net application hosted on two servers. Server 1 : http(s)://server1.domain.com Server 2 : http://server2.domain.com Now i have to write URL Rewrite rule so that all the "HTTP" requests coming to server1 should be redirected to server2 but all the "HTTPS" requests coming to server1 shou...
common-pile/stackexchange_filtered
Trying to put Array of URL's into a range of cells in Google Sheets I can see I have 28 entries in an Array of URLs (resultURLs), and when I try to setValues in a range with the same number of entries, I get the message "Cannot convert Array to Object[][]. I am setting an array of 28 entries to 28 rows and 1 column in ...
common-pile/stackexchange_filtered
How to create a personal wiki+blog on github using org-mode? I Love org-mode! I tried to create my personal pages using org-export-html. Org-mode can export latex-math using mathjax very well, and many many other feathers. I love that! I want a tidy and beautiful personal site integrated with wiki and blogs hosting on ...
common-pile/stackexchange_filtered
Jenkins install plugins offline Installed Jenkins on a Linux server and want to install some plugins manually. I want to install Blue Ocean and Artifactory. For both plugins I downloaded the hpi file and tried to install it, but I get a lot of dependency errors. Do I now have to install those dependencies manually a...
common-pile/stackexchange_filtered
Getting unexpected results while using ode45 I am trying to solve a system of differential equations by writing code in Matlab. I am posting on this forum, hoping that someone might be able to help me in some way. I have a system of 10 coupled differential equations. It is a vector-host epidemic model, which captures t...
common-pile/stackexchange_filtered
Is the static gauge pressure of a free jet always atmospheric? Let's say I have a free jet of air leaving a pipe into the atmosphere. I know that the static gauge pressure at the pipe exit is equal to the atmospheric. But what about the static gauge pressure 10 meters away if the air is still traveling as a free jet? I...
common-pile/stackexchange_filtered
UWP when many GirdViews(one row enabled) nested in ListView, ListView's performance is very bad I'm designing a page like NetFlix home page. It has many(20+) GirdViews(one row enabled) nested in an outer ListView. All items are uncertained, so they must be generated at run time. So I designed like belows: Xaml: <Page.R...
common-pile/stackexchange_filtered
'AND' vs '&&' as operator I have a codebase where developers decided to use AND and OR instead of && and ||. I know that there is a difference in operators' precedence (&& goes before and), but with the given framework (PrestaShop to be precise) it is clearly not a reason. Which version are you using? Is and more reada...
common-pile/stackexchange_filtered
Generate match lists from two dimensional map I have a two-dimensional map that describes the links between two types of variables, which looks something like this: df = data.frame(matrix(vector(), 4, 4)) rownames(df) <- c("x1", "x2", "x3", "x4") colnames(df) <- c("y1", "y2", "y3", "y4") df["x1","y3"] <- 1 df["x2","y2"...
common-pile/stackexchange_filtered
invalidate() not resulting in a call to onDraw() When I call invalidate() rapidly (such as on response to a touch event), at some point onDraw() stops getting called. Here's some simple code that reproduces the problem: public class TestView extends View { public TestView(Context context) { super(context); } publ...
common-pile/stackexchange_filtered
Mysqldump without password in crontab I try to backup my database with mysqldump and cronjobs. Well, I added the following command to the crontab of user root: */30 * * * * mysqldump -u root -pVERYSECUREPASSWORD --all-databases > /var/www/cloud/dump_komplett.sql &> /dev/null This works fine so far, but the problem is ...
common-pile/stackexchange_filtered
Selenium IJavaScriptExecutor isn't working For whatever reason IJavaScriptExecutor doesn't seem to be working in Selenium, for me at least. Potentially changes have been made to the library and I'm referencing incorrectly? But I have no syntax errors. code is - IJavaScriptExecutor js = (IJavaScriptExecutor)driver; js...
common-pile/stackexchange_filtered
Bitwise operations in Java give different value with similar code? Short question. I am quite new to doing bit/bytewise operations in Java, but I noticed something strange. The code below gives as output: 2 0 code: String[] nodes = new String[3]; boolean in; int index = 0; int hash = "hi".hashCode(); in = (nodes[(in...
common-pile/stackexchange_filtered
Compute $\int_{\gamma} z\, dz$ for any smooth path $\gamma$ which begins at $z_0$ and ends at $w_0$ Compute the complex line integral$$\int\limits_{\gamma} z\, \mathrm{d}z$$ for any smooth path $\gamma$ which begins at $z_0$ and ends at $w_0$. Confused as to how I am supposed to go about parametrizing any smooth path...
common-pile/stackexchange_filtered
Behaviour of Laplace transform as $s \to \infty$ I have shown that if $f$ is a continuous function with scaling symmetry given by $f(mt)=m^kf(t)$ for any $m>0$, than $(\mathcal{Lf})(s) = m^{-k-1}(\mathcal{Lf})(\frac{s}{m})$. For this $f$, what can be said about $\int_{0}^{\infty}f(t)\,dt$ and what is the behaviour of $...
common-pile/stackexchange_filtered
Ansible returns 'AnibleUnicode' instead of JSON, unable to filter I'm unable to filter the following output with json_query, even though it works on a jmespath validator website. Let me explain in detail with the code. type_debug returns AnsibleUnicode for members value, so when I tried to use json_query to filter outp...
common-pile/stackexchange_filtered
Some confuse in spectral sequence and its calculate We have the Leray's theorem: Let $\pi:E\longrightarrow B$ be a fiber bundle with fiber $F$ over a simply connected base space $B$. Assume that in every dimension $n$, $H^{\ast}(F)$ is of finite rank and free. Then there exist a spectral sequence $\left\{(E_r,d_r)\righ...
common-pile/stackexchange_filtered
How to set the default style to a React Component The React component is great because it lets us define our own tags, which can be more powerful than the original ones. Currently I am only using the React component to define the HTML structure, and setting the className of each tag to let the style sheet modify its ap...
common-pile/stackexchange_filtered
How to say 一〇年 in a sentence I see this structure a lot: まるで一〇年以上....... What does the 一〇 mean and how do I pronounce it? Is it いちまる? Sometimes you find 〇 being used together with kanji numerals (一, 二, 三, ...) to signify "zero". In horizontal writing it is more common to express numbers using Arabic numerals (0, 1, ...
common-pile/stackexchange_filtered
Converting an int to String in Python my_url = "https://swgoh.gg/db/missions/lightside/?stage=M0{}" for i in range(1,10): my_url = my_url.format(i) print(my_url) print(i) The variable i increments properly, but my_url always end ins stage=M01. Any help on fixing this to increment with i? typo: use for i i...
common-pile/stackexchange_filtered
Ionic Swipe Left does not work with item-icon-right Ionic Swipe Left does not work with item-icon-right Plunker showing the behavior I'm running into some confusing behavior. With an ion-list and ion-items, I'm setting attributes to enable swiping. <ion-list can-swipe="true"> <ion-item ng-repeat="element in ctrl....
common-pile/stackexchange_filtered
Is there a way to condition-define the code for Delphi 11.2 specifically instead of 11.x? I know I can use {$IFDEF VER350} to detect Delphi 11.x. What can I use to detect 11.2 specifically? For instance, if 11.1 or 11.3 versions do not have an issue, but 11.2 does. The duplicate question shows the additional constants...
common-pile/stackexchange_filtered
If a relation is euclidean, is it necessarily asymmetric? $R$ is relation on set $A$, that is $R\subseteq A \times A $. $R$ is euclidean if $(\forall x,y,z\in A)(xRy\land xRz \Rightarrow yRz)$. $R$ is asymmetric if $(\forall x,y\in A)(xRy\Rightarrow \lnot(yRx)).$ For example, if R euclidean relation on A, and $(1,2)\in...
common-pile/stackexchange_filtered
Group by unique value with data.table I have a data.table with more than 130 000 rows. I wanted to group two cols : dates and progress by a variable id and put the values in a vector so I used aggregate(). df_agr <- aggregate(cbind(progress, dates) ~ id, data = df_test, FUN = c) However it takes around 52 seconds to a...
common-pile/stackexchange_filtered
How to recursively delete self referencing class C++ I have been scouring forums trying to understand how to recursively free all my memory from heap but the process is not completing. The Game class is like a tree object, map[2][8][8] is the data on it. Game class represents a chess board and *moves[64] is an array of...
common-pile/stackexchange_filtered
Bibtex php preg_match_all I have a text file with a Bibtex export. The text file has a number of entries following the pattern below. @article{ls_leimeister, added-at = {2013-01-18T11:14:11.000+0100}, author = {Wegener, R. and Leimeister, J. M.}, biburl = {http://www.bibsonomy.org/bibtex/27bb26b4b4858439f81aa0ec7...
common-pile/stackexchange_filtered
Ensure javascript badge / widget html is not changed One of my clients wants to distribute a javascript widget that people can put on their websites. However he wants to ensure that the backlink is left intact (for SEO purposes and part of the price of using the widget). So the javascript he's going to distribute might...
common-pile/stackexchange_filtered
How to compile an Android app with aapt2 without using any build tools? I'm trying to compile an Android application I just created in Kotlin on Android Studio, without using Gradle or any other build tools. My intention is to speed up compiling applications without having to use Android Studio or install build tools l...
common-pile/stackexchange_filtered
Inequality involving three functions I have the follwing inequality, which I am not sure if it is correct or not. $$\int_{0}^{h} \int_{0}^{h} \max(u,v) f(u) f(v) du dv \geq \int_{0}^{h} \int_{0}^{h} \min(u,v) du dv \int_{0}^{h}\int_{0}^{h} f(u)f(v) du dv, $$ where $f$ is an $L^2$ function , $f$ is the a.e derivative o...
common-pile/stackexchange_filtered