text
stringlengths
70
452k
dataset
stringclasses
2 values
trying to use two column as key to get value from a dict: TypeError: unhashable type: 'Series' This is my dictionary format: dictionary = {tuple:list} with these keys dict_keys([('102304', '15311'), ('102304', '919967')]) I'm trying to populate a column in a DataFrame with this row df['newcol']=dictionary.get( ( [ df...
common-pile/stackexchange_filtered
should I move to the new Delphi XE Starter? I am a Turbo pascal/Borland pascal/Delphi developer, since 1987. I currently only use Delphi for maintaining old tools that I (and some friends of mine) use privately. Unfortunately all my professional codes have already been ported, some even with my direct involvement :) to...
common-pile/stackexchange_filtered
Configure SPI on STM32F4 Discovery I'm not able to get any data out from the MOSI pin, or the CLK pin when measuring with an oscilloscope on the pins. This is my code: #include <stdint.h> #include "stm32f407xx.h" void delay() { int i; for (i = 0; i < 1000000; i++); } int main() { // Enable RCC APB2 clock for S...
common-pile/stackexchange_filtered
How to keep logged in facebook with unity SDK We are trying to keep the same user after closing the application in iOS. We want to keep logged in with the same Facebook user, even if that user has logged out in the Facebook app of the device or another one is logged in. We are using Facebook SDK for Unity 3D. We are tr...
common-pile/stackexchange_filtered
Java and NodeJs in the same project I am working on a project to make rest APIs. I am using NodeJS with express. This project also involves complex graph algorithm to run in the background for which I have decided to code in Java and call this Java file from the nodeJS end. My doubt is that should I stick to code that ...
common-pile/stackexchange_filtered
Hosting MVC Application in Amazon AWS I have already bought a domain with Godaddy and I wish to host that in Amazon AWS. Currently I have Free AWS account and will use that. I have Asp.net MVC application and I will use the Visual Studio AWS kit to publish to Amazon. But when publishing to aws it gives the path as amaz...
common-pile/stackexchange_filtered
change x-axis values in plt.plot() I have the following plot: time characteristic Code is following: pointdat=tracesM[458,20*250:(50)*250] plt.plot(pointdat) plt.show() Where pointdat contains 7500 values (time samples) for a particular point (458 in my case). 7500 is for 30 seconds. So each second should have 250 val...
common-pile/stackexchange_filtered
Matching a result in c# I have the following string background-image: url(&#39;https://s3-eu-west-1.amazonaws.com/files.domain.com/uploads/image/file/168726/carousel_IMG_6455.jpg&#39;) and I just want to get the image URL. My code is: image = image.Replace(@"&#39;", "\""); Match match = Regex.Match(image, @"'([^']*)")...
common-pile/stackexchange_filtered
Get all categories where at least one post has specific tag I'm not sure about the keyword to type to find articles related to my issue. Here is what I'm trying to achieve. Basically, I have several models : Category has_many Activity Country has_many Activity then Activity belongs_to Category Activity belongs_to Count...
common-pile/stackexchange_filtered
Sufficient conditions for the uniqueness of the N-system of nonlinear equations Consider $N$ nonlinear equations for $N$-dimensional vector ${x}$: $F({x})=0$. $F:\mathbb{R}_{++}^{N}\rightarrow \mathbb{R}^{N}$ is continuous and differentiable, and specifically, following form: \begin{equation} F_{i}(x) = C_{i}x_{i}^{-\a...
common-pile/stackexchange_filtered
Multiple Realtime database calls through the onResume() Fragment lifecycle method I'm trying to create an app which involves a userstatus field. There is userStatus and customUserStatus. If the customUserStatus is not null, then the userStatus will be set to the customUserStatus value, else it will be set to "Online". ...
common-pile/stackexchange_filtered
Azure PHP8 exposing php code My website runs fine BUT when i add ".PHP" in uppercase to my URL e.g. www.example.com/test.PHP my php code is exposed on the website source code. I'm running PHP8 on azure. My NGIX config are as follows: server { #proxy_cache cache; #proxy_cache_valid 200 1s; listen 8080; listen [::]:8080;...
common-pile/stackexchange_filtered
Error in concatenation of `LISTAGG` function[Not a duplicate question] I have the below table(run on SQL Commander) and procedure(run on procedure window). Im am trying to run on DB-VISUALIZER. CREATE TABLE tempt( "set" VARCHAR2(1), "level" VARCHAR2(1), category VARCHAR2(3), value INT ); INSERT INTO tempt SELECT 'A', ...
common-pile/stackexchange_filtered
Geth version 1.14.4-stable Error: authentication needed: password or unlock. Transfer issue? I want to make a transfer between two wallets; one is the address I set up on my private blockchain, and the other is my Metamask address. However, I keep encountering the same error. I have attached a screenshot of the error. ...
common-pile/stackexchange_filtered
izPack disable debug Window I'm using Izpack 5.1.2, and according to the documentation, the following is used to enable debugging information: java -DDEBUG=true -jar installer.jar java -DSTACKTRACE=true -jar installer.jar java -DTRACE=true -jar installer.jar And also: <guiprefs> <modifier key="showDebugWindow" valu...
common-pile/stackexchange_filtered
Can't run RPM due to calling hook fsm_file_prepare in selinux plugin on Oracle Linux 9.3 I was doing a standard yum update on my Oracle Linux 9.3 system. Unfortunately it rebooted during the update. Now I can't update anything. I traced it to a problem in RPM. Any time I try to use RPM to install anything it's crashing...
common-pile/stackexchange_filtered
Comparing F#'s list handling to python's pandas vectorization How does F#'s list handling in Deedle and List.fold compare to vectorized handling of pandas dataframes in python performance-wise? What are the mechanical differences under the hood? I understand Python's pandas's performance gain using vectorized function...
common-pile/stackexchange_filtered
How to safely load a custom package.json variable in a React project I would like to load a non standard variable from my package.json into my React frontend. For the standard package.json variables this is easily done by adding a reference to them in a .env file and then loading it in the frontend through process.env:...
common-pile/stackexchange_filtered
Set the initial width of gridstack element I am using gridstack.js library in my react app. The aim is to create a dashboard that can be personalized using a list of widgets. I am currently starting with only one widget which will always be there but the problem is I can't get it to span across the entire grid-stack co...
common-pile/stackexchange_filtered
Ruby on Rails grouping blog comments by date I've created a simple blog app with the usual CRUD actions. I need to group comments by date. To have something like: Grouping Blog Comments <=== Blog post title December 19, 2013 Create controller <==== comment Create View <==== comment Create controller <====...
common-pile/stackexchange_filtered
perl Coro shared array I kind of newb in programming, and now little bit confused (well pretty much) about a simple task - share an array between coro coroutines. Something like this (not working, just takes 40 secs to do)... my @array = (1..1000); $|=0; sub start_thread($) { my $url = shift; return async { ...
common-pile/stackexchange_filtered
Game Maker Studio 2 problems with too many instances So I am trying to make a management game, a space station simulator if you will, with potentially hundreds and thousands of customers entering and leaving the station every game day. So my plan of handling this is to first create a persistent object called oManager. ...
common-pile/stackexchange_filtered
Using a list (range) of column criteria (not single cells) in FILTER formula A B C D E F Revenue ColCrit1 ColCrit2 2 Brand A P1 500 Brand A P1 3 Brand A P2 100 Brand B P3 4 Brand A P2 800 Brand D 5 Brand B P1 90 6 Brand C P4 45 7 Brand C P2 600 Result 500 8 Brand D P1 900 90 9 B...
common-pile/stackexchange_filtered
Need help using IVT in application Explain how $$\sin(\frac{\pi x}{2})=1-x$$ has at least one real solution. I understand that IVT requires you to have the endpoints. I know that $-1\leq \sin x \leq 1$ So $-1 \leq \sin(\frac{\pi x}{2}) \leq 1$ If $f(x) = \sin(\frac{\pi x}{2})-1+x$ $f(-1)=-1+1-(-1)=1>0$ $f(1)=1-1+1=1>0$...
common-pile/stackexchange_filtered
RxJS Promises Chaining I'm pretty new to RxJS. So I have a stream that creates the payload for different ajax calls, then I use a flatMap to retrieve the data I need and it works fine. Easy. const streamA = Rx.Observable.from(array); const streamB = streamA .map( val => /* build payload */ ) .flatMap( payload => R...
common-pile/stackexchange_filtered
get job list queue from printer memory I know that my network printer (big Konica Minolta) have own memory and storage there some info like printed jobs. It is possible to get from this memory this information? I try to use Win32_Printer or Win32_PrintJob but as I read it gets only jobs queue from Windows dialog box .....
common-pile/stackexchange_filtered
Dart. How to use @HtmlImport on the example of Polymer? I've read the doc explains @HtmlImprot implementation (https://github.com/dart-lang/polymer-dart/wiki/Dart-to-HTML-imports), but my English isn't good enough and I still have a little doubts about using it. Please, consider the example: index.html <!DOCTYPE html> ...
common-pile/stackexchange_filtered
Xamarin databinding into current properties I am trying to get some strings into current.properties but am not sure how to do so the right way. Right now i am creating a Label with the binding and then afterwards getting the label.text into the property but it seems to a bit stupid: var userLabel = new Label {}; userLa...
common-pile/stackexchange_filtered
Disable few signature attributes/types in DocusignAPI https://i.sstatic.net/zU1OM.png see this image here, You can see we have 13 types of signature (e.g. signature,initial,my name,my first name,etc...) I dont want all these field in my app. so I want to disable/remove while I'm using in iFrame. is there any way to do...
common-pile/stackexchange_filtered
Unicode character bug upon exiting tmux with alternate screen overridden I've removed and added a few times now the following line to ~/.tmux.conf: set -ga terminal-overrides ',xterm*:smcup@:rmcup@' Which according to the person who provided it does the following: to fool the multiplexers into thinking that the termi...
common-pile/stackexchange_filtered
How to mark a property as Sensitive in an SSIS Custom Connection Manager so you can use Sensitive Parameters I have an existing Custom Data Connector for SSIS, and I want to use Sensitive Parameters with it, specifically for the 'Password' property. When I attempt to 'Parameterize' the connection, it tells me I can't u...
common-pile/stackexchange_filtered
How to properly build an array of keys which match a type's keys in TypeScript? I am using the Kysely SQL builder for JS (as per Vercel's recommendation, although the docs/community is sparse). It is a fully typed SQL builder. You construct a db object with a schema, and when you do queries it recognizes the table name...
common-pile/stackexchange_filtered
Counterexample to: If $f$ is a continuous function, then in any closed interval on which $f$ is defined, there are a finite number of isolated zeros I was working on an exercise where my argument could be made much easier if the following statement was true: If $f$ is a continuous function, then in any closed interval...
common-pile/stackexchange_filtered
Gravitational forces become as strong as other fundamental forces I was doing some reading on Absolute hot and was wondering what this actually means: Particle energies become so large that gravitational forces between them would become as strong as other fundamental forces according to current theories I'm trying to...
common-pile/stackexchange_filtered
Python Ending If Statement How do I stop the if statement commands? In Java, you do this: if (var==var2) { commands } //how to do this in Python In Java, you can do the same thing to end a for loop, or end really any conditional block. So, how do I do this in Python? Sorry, I'm a beginner. Thanks same if var == var2:...
common-pile/stackexchange_filtered
How to create ArreyList in JavaFX? do you know someone explain how to make ArrayList in JavaFx and that listed in textArea with for loops, or a second loop. Thanks. ArrayList is just plain java, it has nothing to do with JavaFX. Can you clarify your question? I can give you an example of creating an array list and th...
common-pile/stackexchange_filtered
how to get random pixel index from binary image with value 1 in python? I have a binary image of large size (2000x2000). In this image most of the pixel values are zero and some of them are 1. I need to get only 100 randomly chosen pixel coordinates with value 1 from image. I am beginner in python, so please answer. ...
common-pile/stackexchange_filtered
mouseover tooltip using django How can I make a simple mouseover tooltip using django? Let's say, I have a list of products in a table, and when I mouseover one of them, I can see a box with short description and producer. The tooltip should disappear right after moving cursor out of table cell. This isn't a Django qu...
common-pile/stackexchange_filtered
Add a vector to all columns of a matrix with ArrayFire What is the best way to add a vector to all columns of a Matrix with ArrayFire? At the moment i'm using a gfor loop, but that seems wrong for such a simple task. gfor(af::seq i, M.dims(1)) { M(af::span, i) += VECTOR; } Is there a better way? You can use tile....
common-pile/stackexchange_filtered
I can add a new module in Apache Http server, Can i do the same in IBM Http Server (IHS) as it uses the apache http server underneath? I have this requirement to write a customized module in http server. Newer version of the application uses the APACHE http server and the older version is deployed on IHS (IBM Http Serv...
common-pile/stackexchange_filtered
Is $ \log_a x^n = n \log_a x? $ We have: $$\log_a{x^n}=\log_a{\left( x\cdot x \cdot x \cdot ...\cdot x\right)}=\log_a(x)+\log_a(x)+...+\log_a(x)=n\log_a(x)$$ But, $$ \ln\left(-1\right)^2=\ln{\left(-1\right)^2}\\\ln(1)=2\ln(-1)\\ 0=2i\pi$$ or $$ \log_a(-1)^3=\log_a(-1)^3 \\ \log_a(-1)=3\log_a(-1) \\1=3 $$ So, if the "id...
common-pile/stackexchange_filtered
A more "complete picture" of the relationship between various modes of convergence I am trying to generate/looking for a more comprehensive/complete list/diagram of how the 4 major modes (as listed on wikipedia) of convergence of random variables relate to each other: Distribution (law) Probability Almost sure $\mathc...
common-pile/stackexchange_filtered
Definition of free module. I have the following definition of free module: A free module $F$ is an $R$-module together with a set map $i:X \to F$ such that given any other $R$-module $M$ and a set map $f:X \to M$ there exists a unique $R$-module homomorphism $\overline{f}:F \to M$ such that $\overline{f} \circ i...
common-pile/stackexchange_filtered
Convert Unix/epoch timestamp to human readable time in Dart Flutter Say the EPOCH timestamp I received from an API is<PHONE_NUMBER>. It is equivalent to Monday, July 20, 2020 3:36:54 AM (GMT). My interest is time value only (Ignoring the date/day value)? How can I code in Dart? Also, how can I convert it into my time z...
common-pile/stackexchange_filtered
Unable to mount oracle instance I am trying to shutdown the system, then I want to mount it. I have tried this: SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup mount; ORA-12514: TNS:listener does not currently know of service requested in connect descriptor SQL> st...
common-pile/stackexchange_filtered
How can i encrypt by postgres and decrypt by c#? I encrypt password in postgres and i want to decrypt it in c#, but two ways can not matching .How can i do that? private static byte[] TruncateHash(string key, int length) { SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider(); // Hash the key. by...
common-pile/stackexchange_filtered
PHP appointment -> registers when it should not do it ..what am i missing? So basically i wanted to make a medical appointment page and i wanted to not register the pacient if he/she wants to see the same doctor at the same date and the same hour with another pacient. Here is my php code : $con2 = mysqli_connect('loca...
common-pile/stackexchange_filtered
CPU increase after upgrading to JRE 64 I have a web application which is running under Tomcat7 with 32 bit JRE-7. I have upgraded it to 64 bit JRE to utilize more heap space as the application needs it. Both JRE and Tomcat are upgraded to 64 bit versions. I am seeing higher CPU utilization by the application after upgr...
common-pile/stackexchange_filtered
Javascript file is not working on my ruby on rails app How can I call javascript file in my ruby on rails website. For example I have this file and its inside projectname/app/assets/javascripts/bootstrap.js Here what I tried and all of them are wrong <script src="~/app/assets/javascripts/bootstrap.js"></script> <scr...
common-pile/stackexchange_filtered
How to use same Custom Layout with different Image and Text in android Preference class I want to insert custom layout in android Preference class. My custom layout contains one ImageView and one TextView. There are 7 preferences and all preferences have same custom layout but different images and texts. Now one way to...
common-pile/stackexchange_filtered
memcached with telnet disabled If telnet is disabled on my RHL server memcached gives the error of unable to connect to host: myMachine:port number when starting my java web app. Is it mandatory to enable telnet for memcached to work? For security purpose if it has been disabled how does one enable it to work in a dist...
common-pile/stackexchange_filtered
Rails 4: How to set a default for a custom data type? I have a Rails 4.2 + MySQL 5.7 setup. I've created a custom data type for native JSON columns, which works fine, with one problem - if I set a default, it's not persisted. Specifically, if I set the default, the attribute will be set correctly on instantiation, but ...
common-pile/stackexchange_filtered
how to have drawable image filled the entire screen in a ListView in Android? Hi guys I want to have an image that I got from the Vector Asset tab to filled the entire screen on my GridView items. Currently,it looks like this at the moment. I want to have all my TextViews and ImageView to be inside of this if possible....
common-pile/stackexchange_filtered
Visual Studio 2019 typescript intellisense error TS2792 with import from '@angular/core' In Visual Studio 2019, I am running an Angular 14 project. While I am able to compile everything just fine with the Angular CLI, within Visual Studio I am getting an intellisense error for basically everything in the node_modules f...
common-pile/stackexchange_filtered
Trying to identify an insect Toady a friend saw an insect in his garden, in the UK (England). It looks like a combination of a hover wasp, a wasp and a dragonfly. Whist flying, I'd describe it more similar to a dragonfly. I've used Google images to try and identify it, and come close, but the creature was about 3 inche...
common-pile/stackexchange_filtered
C: Reading in a file of strings into an array of char *s I have something like this (without the spacing issues), where I'm reading a file with strings that are separated by the # sign, and trying to read each of them into an array of char *s. However, each char* that holds a string much be the exact length of the stri...
common-pile/stackexchange_filtered
Overload Clipboard.SetText VB.net 3.5 (or how to copy 3-4 text box conents at same time) I have a form where I require user input and when the user presses the "generate" key it will copy all the data from the relevant text boxes to the clipboard for them to enter the data in an external application. At the moment i ca...
common-pile/stackexchange_filtered
basic question about cauchy sequences and convergence Suppose we have open balls of the following form $$ B_k = B( p_k, \epsilon_k ) $$ where $ \epsilon_k < \frac{1}{2^k} $ for all $k$. I want to show that $(p_k)$ is Cauchy: my try: $$ d(p_m,p_n) \leq d(p_m,0) + d(0,p_n) < \epsilon_m + \epsilon_n < \frac{1}{2^m} + \fr...
common-pile/stackexchange_filtered
NSUserDefaults in Swift - implementing type safety One of the things that bugs me about Swift and Cocoa together is working with NSUserDefaults, because there is no type information and it is always necessary to cast the result of objectForKey to what you are expecting to get. It is unsafe and impractical. I decided to...
common-pile/stackexchange_filtered
UTM Parameters for Adwords Not Feeding correctly I am having an issue where I am not seeing my specific UTM parameters feeding into analytics. Instead, Analytics is replacing the parameters with items from AdWords directly. This is causing an issue, as I am feeding ID's from adwords into the UTM Content field, and thos...
common-pile/stackexchange_filtered
Model Mapper should only map first entry of list I have the following Entities public class Manufacturer { int id; String name; Country country; List<Model> models; } public class Model { int id; String name; } And the following DTO public class ManufacturerLastModelDto { Integer id; ...
common-pile/stackexchange_filtered
Eastern Europe during middle ages, a world view I am a Belgian man conversant in Dutch, French, English, German (so English is not my first language), therefore you read many mistakes. My question is this: in our class and country it seems that all progress and novelty came from what is now western Europe. examples? ...
common-pile/stackexchange_filtered
Using Python with CustomTkinter and having problems for labels I'm trying to change the background of the label that its says "Welcome Back to Our Website!", its only shows me the background of the original windows. I saw before that, that specific module doesn't support bgcolor transparent, there is any way that I can...
common-pile/stackexchange_filtered
Show standard devation using geom_smooth and ggplot We have some data which represents many model runs under different scenarios. For a single scenario, we'd like to display the smoothed mean, with the filled areas representing standard deviation at a particular point in time, rather than the quality of the fit of smoo...
common-pile/stackexchange_filtered
Meaning of "erstwhile" & "gone in the first cull of hereditary peers" He didn't believe her. The last thing his erstwhile brother-in-law had ever felt was affection for the man they'd all called 'Jemima's unsuitable husband'. It was a matter of some satisfaction that Peregrine had gone in the first cull of hered...
common-pile/stackexchange_filtered
How to create an egg shape in CSS? I want to create this custom white color shape without the cart icon in css. How can i do that ? You must provide code but if you did not start yet, if I will be you, I would create a square div with background : blue. Then in it I will create another div with clip-path: polygon(); ...
common-pile/stackexchange_filtered
virtuemart with joomla show multiple images When we upload multiple images using the media uploader, they don't appear as multiple views on the product page - no matter which category flypage we choose. I think putting the images on the description itself is the only solution I've worked with when working with multip...
common-pile/stackexchange_filtered
bash script - checking multiple worker processes I want to check multiple processes (have similar name) running or not, using this bash script. Processes names follwo a particular convention worker1.gs where X is a serial number have value 1 to 4. I have a snippet there for checking worker 1 and 2 and so on... but I wa...
common-pile/stackexchange_filtered
folder structure for uploaded image/file? is it recommended for creating each folder for each user to store the image uploaded? or should i just create an image folder and put everything inside? Note: for web application such as ebay where each user will not have a a lot of image uploaded, but they might be millions o...
common-pile/stackexchange_filtered
Change the text of the back button on Highcharts Treemap? I would like to change the text of the back / drill up button of my Highcharts Treemap. The button appears after the users click on the map to drill one level down. By default, it shows "◁ Back" and I want to change it. I have tried many different ways as shown ...
common-pile/stackexchange_filtered
Using environment variable as build number with fastlane I want my iOS releases to use the CI_PIPELINE_ID as build number. To do so i have a script that updates the xcconfig which sets CURRENT_PROJECT_VERSION. Since i switched using fastlane i tried to get rid of this custom script and use fastlane functions. increment...
common-pile/stackexchange_filtered
Azure Application Insights - API to get satus of enable and disable for an application outside of Azure Portal How to Check the status of Azure Application Insight is enable or not for a particular application using API? you might be able to do that using azure's ARM apis, but only for a subset of "enabled" states. y...
common-pile/stackexchange_filtered
SQL: how to check palindrome of a string without using reverse function? I'm using SQL Server and I want to check whether the given string is a palindrome or not - but without using the reverse function. Why do you not want to use reverse()? @GordonLinoff, I'm just trying to achieve this without using the reverse fun...
common-pile/stackexchange_filtered
How can w’xz + w’yz + x’yz’ + wxy’z be implemented with 4 NOR gates (+ inverters), given d = wyz How can you implement the following function with only four NOR gates and inverters: F = w’xz + w’yz + x’yz’ + wxy’z d = wyz First get the Karnaugh map: w’x z + w’ yz + x’yz’ + wxy’z a b c e wx\yz 00...
common-pile/stackexchange_filtered
How do I propose my project to be part of Debian too? I have a new project hosted at launchpad.net. My project can be useful for both: Ubuntu and Debian. However, I can't find a documentation to start host my project at launchpad.net and get my package mirrored back to Debian. How to propose my project to be part of D...
common-pile/stackexchange_filtered
Passing multiple callable to odeint I want to write a python script for the following mechanical system : Where Which can be rewritten as below : For example, we define the following Python function to solve this kind of ODE problem. def ode_dynamic(t, Y): # system parameters masse1, masse2, masse3 = 550, 45...
common-pile/stackexchange_filtered
lmfit: constrain the sigma of multiple gaussian profiles to be the same I am fitting multiple gaussian peaks to a spectrum. I would like to constrain the gaussian peaks to all have the same value of sigma. I am using lmfit and have written the following example code to illustrate my problem: #generating fake spectrum x...
common-pile/stackexchange_filtered
Http Live Stream smooth running I am running an online stream, implementing the sample code: VideoView videoView = (VideoView) findViewById(R.id.videoView); String httpLiveUrl = "......"; videoView.setVideoURI(Uri.parse(httpLiveUrl)); videoView.setMediaController(new MediaController(this)); videoView....
common-pile/stackexchange_filtered
How to create italic "in press"-year labels for in-text citations by modifying the bibtex style file I'm looking for a way to add "in press" in italics into my bibtex-style file for publications for which a doi already exists. As I'm using a Natbib-AuthorYear reference style, I have to add this in two areas, for the bi...
common-pile/stackexchange_filtered
Redis multi/exec with an evented driver How do you use MULTI/EXEC (and WATCH) in an evented Redis driver like the em-hiredis (a Ruby driver that use EventMachine)? If I run: redis.multi do redis.sadd("foo", "bar") do redis.inc("baz", "qux") do redis.exec do puts 'yay!' end end end end t...
common-pile/stackexchange_filtered
Port number in svn-remote After I did git svn init -T https://<IP_ADDRESS>/svn/nm/:443 I got lines in config: [svn-remote "svn"] url = https://<IP_ADDRESS>/svn/nm fetch = :443:refs/remotes/origin/trunk After git svn fetch I got error: svn-remote.svn: remote ref '443:refs/remotes/origin/trunk' must s...
common-pile/stackexchange_filtered
How mouse enter event work on disabled panel to display it? I have panel on main form in disabled state I want to enable it by mouse enter event. How can I? private void pnlOne_MouseEnter(object sender, EventArgs e) { pnlOne.Enabled = true; pnlOne.Visible = true; } I try above one but it not working... Disabl...
common-pile/stackexchange_filtered
COALESCE() to get Not null as well as NULL Values I have my Mysql Query as : select RecordID,ID,Name,Description,RecordDateTimeUTC,Location from eemployee where RecordID like ? and(isNull(RecordDateTimeUTC) OR RecordDateTimeUTC= CASE WHEN COALESCE(?,'') = '' THEN RecordDateTimeUTC ELSE ? END)........ Now my query...
common-pile/stackexchange_filtered
Spooling problem when sending a print job to a printer via an Electron App on Windows 7 I've got an Electron Application which I'm compiling to a windows .exe via electron-packager . --platform=win32 --arch=ia32 --overwrite The problem I'm facing is when the application, running on Windows 7, sends a print job to a Xer...
common-pile/stackexchange_filtered
Rails nested variables without more models I'm using Rails 4 and have a Policy model. This model has a ton of attributes that I would like to organize in sub-groups of sorts. This is an example: A policy has base information such as name, address, type. Is there a way to organize the model such that I can do policy.bas...
common-pile/stackexchange_filtered
Difference between 'as dynamic[]' and ToArray() I was refactoring some code and let ReSharper help me out a bit. I got this piece of code: IEnumerable<dynamic> records = ...; ScheduleTemplateInfo[] resultTemplateInfos = new ScheduleTemplateInfo[records.Count()]; Here he warned me that there might be a Possible multip...
common-pile/stackexchange_filtered
Use a carousel as a form element I'm working on a object where as part of a form I'd like the user to be able to select from a number of images in a carousel. I can then access the index of the carousel using come javascript, though I'm not sure how to then pass that to the model when the form is submitted? Any help wo...
common-pile/stackexchange_filtered
An equivalent of arXiv, but for tabular and other experimental data? Suppose I'm doing some experimental work in an academic context. The essence of the results will likely be captured by documents such as conference/journal articles, technical reports, a M.Sc. or Ph.D. thesis, a monograph etc. For these kinds of artif...
common-pile/stackexchange_filtered
Why do my rows in a colums suddenly jump to the right? And how do I fix that? Good Day everyone. So while trying to add a few date fields to a popup window on a site I am making I experienced something odd. Adding these 3 rows to the pop up caused the column they were suppose to be in to jump to the right and now i can...
common-pile/stackexchange_filtered
Running UIAutomation scripts from Xcode Did anyone succeed in setting up automated UIAutomation tests in Xcode? I'm trying to set up a target in my Xcode project that should run all the UIAutomation scripts I prepared. Currently, the only Build Phase of this target is this Run Script block: TEMPLATE="/Applications/Xcod...
common-pile/stackexchange_filtered
Force WooCommerce to regenerate meta_data for all products I have a website with 3000 products that I only update with API. Still, I recently noticed that my products only have a handful of meta_data for each. When I save the product directly from WordPress admin, that product will have almost 50 meta_data, so obviousl...
common-pile/stackexchange_filtered
Delphi: How to get the positions of scrollbars of TImgView32 control? I use Graphics32 library and put TImgView32 control on a form. In a code I want to get the position of a vertical scroll bar, but cannot find any properties for that. How to get the position of a vertical scrollbar of TImgView32 control? Apparently...
common-pile/stackexchange_filtered
How to decode QQD image format? The QQD image format was used by some camera phones (likely Japanese domestic models) around 2006. I can't find any online information about the file format. How to convert them to something common? First couple hundred bytes (in hex) > hexdump -C Bfb2d6ac070d9c77d0b9d911ef441f3c1.qqd ...
common-pile/stackexchange_filtered
Input.mousePosition.x or y equivalent on Raycast with World Space canvas I'm trying to convert a mouse event into a VR Raycast event. I've Input.mousePosition.x & Input.mousePosition.y as the coordinate of a mouse click event. I want to apply the same event on a VR Raycast hit. I've the following code Ray ray = new Ray...
common-pile/stackexchange_filtered
Size limits on Get/POST parameters? I noticed once the length of a GET parameter is longer than 400 bytes, or 2000 bytes for a POST parameter, G-WAN returns 400 error. Is there any way to increase the limits? And when I try the csp_entity.html, I keep get 400 error as well for the file size less than the entity size l...
common-pile/stackexchange_filtered
Getting images from Facebook to windows phone I am trying to integrate a certain Facebook page to my windows phone application. All I want is to get the images posted by the page admin and display it in the application. Is this possible to implement on the windows phone? Thank You Hi, have you met google ? I searched...
common-pile/stackexchange_filtered
Rate of decay of Fourier coefficients on heat equation solution Let $u(x,t) = \sum_{j=1}^\infty u_j^0 e^{-j^2t}\sin(jx)$ be the solution for the heat equation, where $u_j^0 = \sqrt{\frac{2}{\pi}}\int_0^\pi u^0(x)\sin(jx)\;dx$ are the Fourier coefficients of the initial data $u^0$. Suppose that $u_j^0 = C/j$. Prove that...
common-pile/stackexchange_filtered
Angular 4 Listening for progress on FireFox after AOT not work I want to show progress bar while file is download. I'm using angular 4 with HttpClient. WITHOUT AOT I succeed to display progress bar on both chrome and Firefox. USING AOT I succeed to display progress bar only with chrome but not in Firefox. My code downl...
common-pile/stackexchange_filtered
How to check if Windows is 32 or 64 bits on Python2.2 In python2.7 it's simple, just import the lib platform. But how can i see if my windows is 32 or 64 bits? I work with a system build in python2.2 and can't find a way of do that :( Any sugestions? possible duplicate of How do I determine if my python shell is exec...
common-pile/stackexchange_filtered
System.AccessViolationException when trying to copy the last line of a Bitmap image I'm extracting rows of pixels from an image to an array of int, using Marshal.Copy. Everything works fine until I reach the last line of the image. If I try to extract it, I get a nice exception : System.AccessViolationException: Attemp...
common-pile/stackexchange_filtered