text
stringlengths
70
452k
dataset
stringclasses
2 values
Does a $p$-form eat $p$-vectors or $p$ number of vectors? A bilinear form is another term for a $2$-form. So does it eat $2$ distinct vectors or a single $2$-vector? Either. Both. After all, you can take $p$ vectors and wedge them together to get a $p$-vector. Given that you have used the [tag:exterior-algebra] tag,...
common-pile/stackexchange_filtered
Compiling LINQ expressions I'm wondering what steps the (v3+) compiler takes to build LINQ expressions for methods that take an expression argument. In particular, does the compiler use, or share logic with, LeafExpressionConverter? (That could require first generating an Expr then converting it.) If there is a separa...
common-pile/stackexchange_filtered
Symfony 3.0.1 EventDispatcher I'm writing a RequestListener and I look like to get the EventDispatcher. It was working on previous version of Symfony. I checked the CHANGELOG.md : The method getListenerPriority($eventName, $listener) has been added to the EventDispatcherInterface. The methods Event::setDispatcher(),...
common-pile/stackexchange_filtered
How to check ng-model variable value undefined using ng-change? if value is not selected for ng-model selectedFileSize its throwing error TypeError: Cannot read property 'size' of undefined when i click on button startRecording. How can i resolve this problem ? main.html <div class="col-md-3"> <select class="form-c...
common-pile/stackexchange_filtered
Printing Reports and invoices with Ruby? I just learn Ruby, and I wonder how to generate Reports and Invoices (with Logo, adressfield, footer, variable number of invoice-items (sometimes resulting in more than one page), carry over of the amount to pay from one page to the next, free-floating 2-column text (left-and-ri...
common-pile/stackexchange_filtered
ffmpeg increases video segments length when used with -segment_time - how to fix? I am trying to record rtmp stream to file, splitting every 10 seconds. My ffmpeg command is: ffmpeg -i rtmp://<IP_ADDRESS>:1935 -f segment -strftime 1 -segment_time 10 -segment_format avi E:\record\CAM1_%Y-%m-%d_%H-%M-%S.avi It works, bu...
common-pile/stackexchange_filtered
Windows command line compression/extraction tool? I need to write a batch file to unzip files to their current folder from a given root folder. Folder 0 |----- Folder 1 | |----- File1.zip | |----- File2.zip | |----- File3.zip | |----- Folder 2 | |----- Fil...
common-pile/stackexchange_filtered
Prevent parent underline from underlining child element Given this pared-down test case: <!DOCTYPE html> <html><head><title>No Underline Please</title> <style type="text/css"> li { text-decoration:underline } li .rule { text-decoration:none ! important } </style> </head><body> <ol><li><span class="ru...
common-pile/stackexchange_filtered
Change all products to have the same shipping class within Woocommerce I've got a woocommerce shop with 1000+ products in it, however, I've notices that random products have no shipping class applied to them. So when customers get to the checkout, these items cause issues with shipping calculations. Is there any way to...
common-pile/stackexchange_filtered
Home-brew 10 meter walkie talkies? "When I was in high school, we had 8 hams at once. (Probably rare) 4 of us built little 10 meter walkie-talkies and had great fun using them on Field Day, hiking or around town. It was especially fun because this was pre-cellphone and ordinary non-ham folks could not buy an...
common-pile/stackexchange_filtered
How to schedule a shell script using crontab I want to schedule a shell script to run everyday excluding sunday at 7:30 pm using crontab can you please help Check this tool, it will help you to build the crontab line: http://www.corntab.com/pages/crontab-gui Quick answer: 30 7 * * 1,2,3,4,5,6 /your/command/to/run
common-pile/stackexchange_filtered
Ruby on Rails uncapitalize first letter I'm running Rails 2.3.2. How do I convert "Cool" to "cool"? I know "Cool".downcase works, but is there a Ruby/Rails method that does the opposite of capitalize, i.e., uncapitalize or decapitalize? There is no inverse of capitalize, but you can feel free to roll your own: class S...
common-pile/stackexchange_filtered
Send plain text email using EmailModel? I currently have a plugin that's successfully sending email using EmailModel(). The problem is: it's sending a multi-part email with HTML and plain text components. For this particular email, it would be best if I could just send the plain text portion. Is there a way to disable ...
common-pile/stackexchange_filtered
Nerve parasite in short story The short story I refer to began with a cave in, collapse, or other type of mass accident where only one person lived. The parasite jumped from its dying host into that last living person. -- Im a little unclear of detail beyond this point, but the new host was rescued. Turns out he was al...
common-pile/stackexchange_filtered
TActionMainMenuBar, VCL-Styles and MDI buttons(Minimize, Close etc) not being styled. I'm trying to make TActionMainMenuBar display styled MDI buttons like a TMainMenu does. Any suggestions? I can't stop using MDI for this project. You could always stop using VCL styles....... MDI was spawned with the idea of a sing...
common-pile/stackexchange_filtered
head problem: just two non adjacent columns please So I was trying to look at a few columns and did head(mydf[76:82], n=20), which got me columns 76:82, for 20 rows. Excellent. Just what I wanted. Next, however, I want to get just columns 76 & 82. I tried the following: head(tu_timeadd[76&82]) #which just gave me the w...
common-pile/stackexchange_filtered
Java low FPS on PC comparing to laptop I've just started developing simple 2D game in Java. I splitted update from draw methods. Update refreshes at specific speed of 60fps while drawing is as fast as possible. When I wrote simple FPS counter of draw and send this to friends I discovered that on laptops it has at least...
common-pile/stackexchange_filtered
Update multiple documents I want to update multiple documents in elasticsearch. The update should correspond the SQL query UPDATE tablename SET expired=true where id not in (list_of_ids) Is it possible, or do you recommend different solution of keeping track of active and inactive documents? I want to keep and use ina...
common-pile/stackexchange_filtered
How to reshape a dataframe with duplicated rows into rownames and colnames I have been struggling with reshaping the following dataframe: geneSymbol <- c(rep("gene1",4),rep("gene2",4),rep("gene3",4)) Sample_name <- rep(c("sample1","sample2","sample3","sample4"),3) log2FC <- c(1.5,-1.0,0.5,0.2,-0.3,-0.7,-0.12,0.33,0.64,...
common-pile/stackexchange_filtered
wkhtmltopdf in Oracle Apex I am new to Oracle Apex CRM. I have application where i need reports to be exported to pdf. I have worked in .net application and there I have used wkhtmltopdf for exporting html to pdf. But I am not sure if I can use wkhtmltopdf in Oracle Apex ? Can anyone help me whether wkhtmltopdf is supp...
common-pile/stackexchange_filtered
Issue with sending data to a webservice, with ksoap Good evening, I need your help. Until now, using my webservice to withdraw data, there was no problem. Even to receive the data, I have to send some. Example: Login. However, now I want to send data to the webservice, and it will only return "true or false". I know I ...
common-pile/stackexchange_filtered
Credit Memo - 'Email Copy of Credit Memo' how to set default ON How to set the 'Email Copy of Credit Memo' checkbox to a default value of checked? (So to negate the requirement to check the box every time) Is there anyway to override the single input line within items.phtml, and not override the whole items.phtml templ...
common-pile/stackexchange_filtered
Postfix, dovecot, squirrelmail server able to send but not receive emails I have setup a mail server using this guide: https://www.ostechnix.com/setup-mail-server-using-postfixdovecotsquirrelmail-in-centosrhelscientific-linux-6-3-step-by-step/ The webmail allows to send emails between own users i.e. in local machine an...
common-pile/stackexchange_filtered
How to change Eclipse run script in QNX6? Related to another question, we want to change the eclipse run command. I found that eclipse can run executing the script: /usr/qnx630/host/qnx6/x86/usr/bin/qde.sh But the startup configuration is not written there. The only thing the script does is executing the file: /usr/qn...
common-pile/stackexchange_filtered
What is "one-loop cosmological constant"? I'm following Witten's essay and I'm trying to understand the UV divergence. When he writes: In quantum field theory, this Feynman diagram with a single proper-time parameter τ, underlies the one-loop cosmological constant. Is this loop the same loop from Loop Quantum Gravit...
common-pile/stackexchange_filtered
I'm sick and throwing up all over the place, what do I do? Here's the story, I was journeying down below and finding many new things to scarf on. I'm finding turnips, morsels, chops, it's a smorgasbord down there. I eventually came across some innards and gave that a try. Boy was that a mistake. I became sick the momen...
common-pile/stackexchange_filtered
Password must contain any one of the following criteria Password must contain any one of the following criteria 1)One Uppercase 2)one lower case 3)one Number 4)one special character. in the above criteria if any three-match then it's allowed to a valid password. like below format. 1) One number, one lower case alpha...
common-pile/stackexchange_filtered
Sql - How to update a column for all rows? $sql = "UPDATE debtorsmaster SET name='" . $_POST['CustName'] . "', address1='" . $_POST['Address1'] . "', address2='" . $_POST['Address2'] . "', address3='" . $_POST['Address3'] . "', How to change this to update to all rows Like that (except for the trailing ,), but prefe...
common-pile/stackexchange_filtered
Hosting control panel with Java EE Application Server support? I currently have WHM/cPanel on my server, but it doesn't integrate properly with any Java EE App Server. I installed Tomcat manually, and have made it work through Apache, but the configuration is more fragile than I'd like. So, I'm trying to find a replace...
common-pile/stackexchange_filtered
How to Find specific text in a formula in Multiple Columns (based on Column Header Names) and replace with different text I am trying to make below code to work so that I can: Find specific text "AMJ" in Formulas in specific Columns with Header Names: "RmRf" and "UMD" Then once "AMJ" is found, it should be replaced w...
common-pile/stackexchange_filtered
How to add lateinit var on extension property What I am trying to do is extend all my actual Fragments by adding another custom class. The problem is that we cannot inherit from 2 different classes, right? So I am trying to add extension properties by adding: var Fragment.isFocused by Delegates.notNull<Boolean>(false) ...
common-pile/stackexchange_filtered
Linear regression in theano What is the significance of T.mean in this example? I think T.mean would have made sense if the implementation were vectorized. Here the inputs x and y to train(x, y) are scalars, and cost only finds squared error of a single input, and iterates over the data. cost = T.mean(T.sqr(y - Y)) gr...
common-pile/stackexchange_filtered
Black and white icons in Visual Studio 2012 Usually the icons files (ico/bmp/png)for Controls in Visual Studio Toolbox are embedded into the assembly as resource files. The System.Windows.Forms.dll seems to have the icon files that are colored and they are for VS2010 and lower. Where does the VS2012 loads the black-n-w...
common-pile/stackexchange_filtered
Plotting 3D graphic for a differential system with Manipulate I try to adapt the following code with three differential equations to a system with four differential equations. My aim is to see a bifurcation in this differential system by looking at three variables of the system. (Mathematically, I proved the possibilit...
common-pile/stackexchange_filtered
cd to a search result with dir in cmd I want to know how to change to the directory containing a particular file name, using a batch file. First, I want to search for a particular file using the dir command. I know there will only be one file found. I then want to cd to the directory containing that file. Any sugge...
common-pile/stackexchange_filtered
Scanning for I2C addresses I'm trying to find the I2C address of an IMU plugged into my Arduino using the code from this URL: http://playground.arduino.cc/Main/I2cScanner. However, the program stalls at this stage: Why could this be happening? Pull-up resistors present? In all likelihood it's a hardware problem. Wi...
common-pile/stackexchange_filtered
How does the UA Tunnel Fighter fighting style's reaction attack interact with the Sentinel feat's speed-reduction effect? So lets say I'm a Fighter (F), and a Creature (C) is standing to my side, within my reach (*), like this: o o o o o o * * * o o * F * o o * C * o o o o o o If that creature attempts to move past m...
common-pile/stackexchange_filtered
The accessor way are different with static int and static NSArray Below this demo code, the logical of the process is not important. @interface ViewController ()<UITableViewDataSource, UITableViewDelegate> @end static int channelIndex = 0; static NSMutableArray *channelsDataArray = nil; @implementation ViewControll...
common-pile/stackexchange_filtered
Can I implement word prediction with JComboBox I need advice, is there any way to implement with JComboBox word prediction, when I start type I want to open dropdown with all words which start with part what I typed ? Or I need to use some other component, which one ? Please help, I read documentation but I couldn't fi...
common-pile/stackexchange_filtered
Malloc and free in linkedlist recursion function I know that for every malloc there must be a free(), but in case of an existing linkedlist passed in a recursive function to insert a new node inside the linkedlist how would you free that? I'm using valgrind and it shows me that i must free the malloc So my function has...
common-pile/stackexchange_filtered
Lebesgue-measurable function problem I am trying to solve this exercise: Let $\phi: \mathbb R \to \mathbb R$ be a measurable function (Lebesgue-measurable) and $f:\mathbb R^2 \to \mathbb R$ defined as $f(x,y)=xy-\phi(y)$. Show the following: a) $f$ is measurable b) If $E \subset \mathbb R$ measurable, then $f^{-1}(E)$ ...
common-pile/stackexchange_filtered
Run button missing in my jenkins blue ocean pipeline Here is my jenkinsfile: pipeline { agent any options { skipDefaultCheckout() } parameters { choice( name: 'MyParam', choices: 'One\nTwo\nThree', description: 'slkfjlsdfjlsdjflksdjf') } stages {...
common-pile/stackexchange_filtered
is there way to simply convert JSON Array values to string in javascript I have json array data for people name like this. 'user': [{'name':'tom'}, {'name':'jerry'}] I want to convert user array to string value like this "tom, jerry" please, let me know how can I convert. You can try this var user = [{'n...
common-pile/stackexchange_filtered
Laravel Eloquent many-to-many attach I am new to laravel, and trying to build a photo album with it. My problem is that i use the attach function to insert the user id and group id to my database, it works okay, but in the documentation it says this about the attach function For example, perhaps the role you wish to a...
common-pile/stackexchange_filtered
jQuery.html() insert input field won't work in IE11 I have a problem regarding jQuery's .html method. I am using the following event to insert a input field in a table row when double clicking on it. Everything works fine in Google Chrome and Firefox - but it won't work in Internet Explorer 11. The code is the followin...
common-pile/stackexchange_filtered
Need help identifying a set of Japanese bench chisels I ran across an auction of a set of Japanese bench chisels, and there wasn't a lot of info provided (and yes I bid because I'm an easy mark), so I'm trying to gather some details from the photos. The only visible markings are stamped on the chisel itself, and I'm wo...
common-pile/stackexchange_filtered
How do you convert PCM to PWM? I'm a beginner and I've been developing my own library for a wave player. so far I have the SD card installed and OLED and rotary encoder all connected. I've successfully read the wave chunk and it's data(16bit and 44.1KHz). My question is that the data in wave file is PCM and I wish to p...
common-pile/stackexchange_filtered
iPhone custom font with text border/shadow I'm using Zynga's FontLabel to use a custom font in my iPhone project. Is there a way to add a text border and shadow using this? If you mean around the entire label, this FontLabel class appears to just be a subclass of UILabel which has the following properties: @property(n...
common-pile/stackexchange_filtered
Display temporary data client-side within table Please refer to this image, so I can explain the issue better. I have Master/Detail form (Bill of Materials in this case), which stores data in 2 database tables. The top of the form (Product,Quantity) is stored in the Master table, and with the inserted id(as FK), the De...
common-pile/stackexchange_filtered
Replace each match with certain value using Notepad++ in one regular expression I have the following code in Adobe LiveCycle Designer FormCalc: if (form1.subform[0].complete_flag.rawValue == "1") then $.presence = "invisible"; endif I want to use N++ find/replace with regular expression or similar to replace the a...
common-pile/stackexchange_filtered
Firestore read data count does not match documents queries count I have encountered some issue when trying to figure out and calculate the firestore read count. The firestore read count is always surging up at a very high rate (100 counts increment every time I reload the page) even though there are only around 15 user...
common-pile/stackexchange_filtered
How does the Amazon Prime Gaming rewards system work? I was wondering, whenever I log into Twitch, I see the notifications of past Amazon Prime Gaming rewards and most of them have a claim button. Since I have never bought the subscription, I wanted to know if I bought the subscription will I be able to claim these pas...
common-pile/stackexchange_filtered
Link prediction on network embeddings A picture is worth a thousand words, so I decided to illustrate how I imagine the procedure of link prediction on network embeddings. In the figure below the LR model stands for the "Logistic regression model". Train and test networks are composed of an equal number of positive an...
common-pile/stackexchange_filtered
How to add delay to Javascript transition? This is my Javascript code - var slideshows = document.querySelectorAll('[data-component="slideshow"]'); slideshows.forEach(initSlideShow); function initSlideShow(slideshow) { var slides = document.querySelectorAll(`#${slideshow.id} [role="list"] .slide`); var index = ...
common-pile/stackexchange_filtered
hello-1.mod.c:14: warning: missing initializer (near initialization for '__this_module.arch.unw_sec_init') I am trying to write a module for an sbc1651. Since the device is ARM, this requires a cross-compile. As a start, I am trying to compile the "Hello Kernel" module found here. This compiles fine on my x86 developme...
common-pile/stackexchange_filtered
The argument type 'Color?' can't be assigned to the parameter type 'MaterialColor? I want to set the background Colors.yellow[700] in flutter,but when i add symbol "[]" or Colors.yellow.shade600, but i can't set the value for background. It shows error & the error is The argument type 'MaterialColor' can't be assigned...
common-pile/stackexchange_filtered
Check if working on databricks notebook or ont For some functions I need to split logic for databricks notebook with big cluster and for local machines. So is there a way to check, if R runs on databricks notebook. Like some tag in Sys.info() or something ? You control the environment. Just a set a variable on submit,...
common-pile/stackexchange_filtered
What legal gotchas should a sysadmin be familiar with? What legal issues should you research as a sysadmin to avoid you, or your employer, being accused of negligence, or of violating privacy, etc? While laws vary from country to country and state to state, it could still be enlightening if you have an example of a law...
common-pile/stackexchange_filtered
Partial Views using data grids I am trying to call in two partial views but my program is trying to populate my web grid before I pass it a search parameter. I can't figure out how to keep it from trying to render the webgrid before I pass it the text in the searchbox. This is in my partial view: <div class="webgrid-w...
common-pile/stackexchange_filtered
lz4 includes not found When building on Mac Sierra, I got an error, and then used this command to reproduce. By the way, excellent logging and tools for trying to narrow down the problem! Anyway, here's the command: cd /Users/pitosalas/ros_catkin_ws/build_isolated/roslz4 && /Users/pitosalas/ros_catkin_ws/install_isola...
common-pile/stackexchange_filtered
Summarize data in one row selecting MAX or MIN date I have a set of data from multiple tables on SQL Server. They include transactions on different dates that are related to a customers. I want to create a SQL Server view that has one line per customer. For date, I want to use the latest or earliest date. The date is i...
common-pile/stackexchange_filtered
Cardinality argument in proving that not every Lebesgue measurable set is a Borel set Hello I need help understanding a proof. The proof is from Rudin's Real and Complex Analysis. The proof is supposed to address the question: Is every Lebesgue measurable set a Borel set? Let $c$ be the cardinality of the continuum (t...
common-pile/stackexchange_filtered
Rename multiple files in cmd If I have multiple files in a directory and want to append something to their filenames, but not to the extension, how would I do this? I have tried the following, with test files file1.txt and file2.txt: ren *.txt *1.1.txt This renames the files to file1.1.txt and file2.txt1.1.txt I want ...
common-pile/stackexchange_filtered
ruby regex hangs I wrote a ruby script to process a large amount of documents and use the following URI to extract URIs from a document's string representation: #Taken from: http://daringfireball.net/2010/07/improved_regex_for_matching_urls URI_REGEX = / ( # Capture 1: entire matched URL (?:...
common-pile/stackexchange_filtered
Does randomness help depth? Suppose we have a $RNC^i$ or $BPNC^i$ algorithm for a problem, is it suspected that the problem has an $NC^i$ algorithm or just an $NC^j$ algorithm for some $j\geq i$? Is there any evidence for whether randomness helps or not helps depth akin to evidence for $P=BPP$?
common-pile/stackexchange_filtered
Why is Unity WebGL not working on my React Website? I have been trying to import a Unity game inside of my website using React Unity WebGL. I have looked at many tutorials and videos and I seem to have the right code however, the games do not show up on my website (Images attached of code and website). Does anyone know...
common-pile/stackexchange_filtered
How can I improve this React component with correct lifecycle usage? I am trying to make a list item toggle on and off. So I capture the click event, send a request to my endpoint with PATCH method, get the new value returned from the backend and update the state of the component based on that value. And it works perfe...
common-pile/stackexchange_filtered
Transactional replication w/ immediate update - Publisher triggers are firing on immediate update, or not replicating their modifications I have a publisher and multiple subscribers configured for transactional replication with immediate update. I have two replicated tables, MyTable and MyTableHistory. I have a "not ...
common-pile/stackexchange_filtered
Science museum planetarium, late afternoon exhibit on cosmic ice formation. Look at this display about ice in space. It says dust grains in molecular clouds get coated with frozen water and other molecules when temperatures drop to 10 Kelvin. That's incredibly cold. But what's interesting is how those ice layers aren...
sci-datasets/scilogues
Increase in Memory usage without leak? I have a program that CRTDBG reports as having no leaks, yet, according to Windows Task Manager takes up more memory as time goes on. Even worse is that given enough time, it will crash with exit code -1. This is a program that's going to be a game engine, right now I'm testing th...
common-pile/stackexchange_filtered
How can I speed up the local server startup time of my Meteor app? I'm contributing design visual design changes to a Meteor app and I need to make changes and see them in the browser. Only problem is that the app takes minutes to display on localhost. It reminds me of the time it takes a free herokuapp to wake up, onl...
common-pile/stackexchange_filtered
Minimal polynomial of an algebraic element We have to determine minimal polynomial over $\mathbb Q$ of element $1+2^\frac{1}{3}+4^\frac{1}{3}$. Here is my work, please tell me where is the mistake: We want polynomial with rational coefficients so: $x = 1+2^\frac{1}{3}+4^\frac{1}{3}$, as $2^\frac{1}{3}-1$ is not zer...
common-pile/stackexchange_filtered
iOS: Embed Table View in other View (but table view has a complex table view controller..) I'm struggling with this problem, so I need your help. Basically I've programmed a complex table view controller (with NSFetchedResults protocol etc) and already used it in my app and it worked great. Since I want now exactly thi...
common-pile/stackexchange_filtered
how to register asphttp.conn component I need to do enhancements to an classic asp application which uses AspHTTP.Conn. I am trying to set the application on my system. I have the dll, but not sure how to install and set up it on my system. Can you please help with the steps to register the AspHTTP dll on my system. w...
common-pile/stackexchange_filtered
Wargame payload segfaults when used as such I am currently trying to complete Level5 of the io.netgarage.org wargame. To complete it i wrote the following asm payload: global _start section .text _start: xor eax, eax push eax push 0x68732f6e push 0x69622f2f mov ebx, esp push eax mov edx, e...
common-pile/stackexchange_filtered
Why is this command exploding So I got this as an answer to a previous question as an answer for looking recursively through files in a directory and deleting the files and directories if found: find \( -name ".git" -o -name ".gitignore" -o -name "Documentation" \) -exec rm -rf "{}" \; There are two problems with this...
common-pile/stackexchange_filtered
What is the correct way to express a number with all its digits? I have the following table: On the last column, I have expressed the numbers in billions as it is mentioned at the top. However, I want the last number (Final sample size) to be expressed fully. Is there a way that I can be specific about the fact that t...
common-pile/stackexchange_filtered
ElasticSearch don't return "deletebyquery" task when I query list of tasks I'm using ElasticSearch 7.1.1 and use delete_by_query API to remove required documents asynchronously. As result that query return to me task id. When I execute next query: GET {elasticsearch_cluster_url}/_tasks/{taskId} I'm able to get corresp...
common-pile/stackexchange_filtered
Screen tear or I don't know what to call it when using chrome I rarely posts question but well this has been bugging me since i started using Ubuntu 14.04, of course previously I was using Win8.1 without any issues. My screen has a tear when using chrome which looks like dead pixels or what seemed to be tearing when I ...
common-pile/stackexchange_filtered
Koi or goldfish? How to differentiate between a koi and a goldfish? As far as I know, both are carp. So is it a big goldfish or a small koi? http://fishgirlwrites.blogspot.com/2012/11/differences-between-goldfish-and-koi.html your picture show koi,goldfish have a shorter body and no barbels and the underside of the j...
common-pile/stackexchange_filtered
Writing into text file as tab separated columns in Python I have two lists A = ["ATTTGTA", "ATTTGTA", "ATTTGTA", "ATTTGTA"] A_modified = ["ATTGTA", "AAAT", "TTTA"] I want an output tab separated txt file looking like ATTTGTA ATTGTA ATTTGTA AAAT ATTTGTA TTTA I tried the following piece of code but it does not write o...
common-pile/stackexchange_filtered
Uses classes to open an excel csv file and return values based of the maximum weight in a specific column Ive been given this Class file that contains functions: import csv import warnings from datetime import date conv_fn = { 'name': str, 'country': str, 'operator': str, 'users': str, 'purpose': s...
common-pile/stackexchange_filtered
dynamically bind data values into a repeater I'm trying to bind the data values to a repeater, with bank names and balance of each bank. The balance is calculated as balance = sum(debit) - sum(credit), and i'm trying to get a result like: ------------------- bank name | amount| ------------------| a | 1200 | ...
common-pile/stackexchange_filtered
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' (While installing TensorFlow) I am following this tutorial to install TensorFlow(https://www.tensorflow.org/install/pip), but in the last command: python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([10...
common-pile/stackexchange_filtered
Solving the Diophantine equation $t^n + 2 \equiv 0 \bmod s^n - 1$ My problem is this. find the maximal integer n, so the equation: $t^n+2\equiv0 \mod (s^n-1). $ has a solution (s,t>1 have to be integers). I would like to read your solution and even just an opinion. I'm not even sure this problem can be solved. It seem...
common-pile/stackexchange_filtered
How to send an SMS Message using Email or HTTP Protocols I want to write a piece of PHP code that will send SMS to any number in the world. I read somewhere one can use email to do this as follows. <EMAIL_ADDRESS>⇒<EMAIL_ADDRESS> I tried this with my number and my carrier's website domain and it didn't work. I think t...
common-pile/stackexchange_filtered
bootstrap new row 11 columns I'm trying to create a responsive layout in Bootstrap with vertical aligned columns. The reason is that I want to have several buttons of different sizes in a responsible toolbar. Searching for ways to do it, the one that seem to work better for me is something like this codepen: http://cod...
common-pile/stackexchange_filtered
C# Using WebBrowser class to find open IE page and read the HTML I am trying to use the WebBrowser class in C# to find an already opened IE instance and set that open page to be handled by my WebBrowser wb variable. I know several ways of searching already open IE pages using other classes and libraries and I also know...
common-pile/stackexchange_filtered
Are questions requesting help with "Fake Virus" code acceptable? Just wondering if questions requesting help with Fake Viruses are considered acceptable? If the answer is no, what would the correct course of action be if someone asks a question that involves the creation of help with code used for a Fake / Joke virus? ...
common-pile/stackexchange_filtered
Dependent Selects in Symfony2 I'm trying to make two dependent selects, but can not get ajax call to make it work. my ajax call is: var data = { tower_id:$(this).val(); }; $.ajax({ type: "POST", url: "{{ path('select_apartment')}}", data:data, success: function(data) { var $apartment_sele...
common-pile/stackexchange_filtered
WebRequest timed out in windows service I use WebRequest in a client to consume a web service on Internet. Each request is triggered in a separate thread. It works well if hosting the client in IIS. But most of the requests will get timed out error if the client is hosted in a windows service. When I tried to debug the...
common-pile/stackexchange_filtered
How to upgrade aspnetcore.dll present in C:\Windows\System32\inetsrv I tried to upgrade aspnetcore.dll present in C:\Windows\System32\inetsrv to latest version but after installing all the software from https://dotnet.microsoft.com/en-us/download, aspnetcore.dll version is not changing. I tried all installer from https...
common-pile/stackexchange_filtered
Plot probability mass function of fractional hamming distance using Python I would like to plot the pmf of a list of fractional hamming distance values (a list of numbers between 0 - 1). The following code shows what I did: import seaborn as sns import matplotlib.pyplot as plt x = [round(random.uniform(0.2, 0.6),2) fo...
common-pile/stackexchange_filtered
Is the attempt to understand others a form of value judgement? In a recent conversation and in an attempt to understand others, i found myself not able often understand the actions or behaviors of others to leading to a sense of mind numbness. If i am not able to understand the actions of others, i find that i am in a...
common-pile/stackexchange_filtered
How can I access my Windows partition as an ordinary user? I have a dual boot laptop with Win7 and Ubuntu 11.10. Since few days my Ubuntu does not mount automatically the win partition or a usb drive. It's also not possible to change the desktop wallpaper. I "fixed" the win partition by hand modifying /etc/fstab. I al...
common-pile/stackexchange_filtered
Increasing iframe height I am loading a "html" page in to a div( ex: #targets) using jquery load().The the div comes under the iframe. After loading the html file, the div height and iframe height not getting increased based on the html file content height. How to change the iframe and div height based on the htm conte...
common-pile/stackexchange_filtered
Find Set of record rowno from multiple column I have two sql temp table #Temp1 and #Temp2, and I want to get rowid which contain set of temp table two E.g. In table Temp2 have 4 record i want to search in temp table #Temp1 which contain userid departmentid set of record CREATE TABLE #Temp1(rowid INT, userid INT, dep...
common-pile/stackexchange_filtered
How to share response data across multiple suites? Let's say we have the following suite: describe('Devices', () => { describe('Master Data Set-Up', () => { it('should create the device if necessary', () => { cy.createDevice() its('body.id') .as('deviceId'); ...
common-pile/stackexchange_filtered
Clip or Mask a 2D texture Hey i was wondering if anyone knows to do clipping with 2D textures for a gui or menu like system. Heres an example output i would like to produce Have a game screen with a size of 500 x 500. With a screen behind it with a size of 1000 x 1000. When i draw a Texture at 0, 0 with the parent scre...
common-pile/stackexchange_filtered
PHP file inclusion on a required file Here is an example directory structure: -Root index.php -forms -form.php -include -include.php In my index.php I am requiring the form.php require_once('forms/form.php'); in my form.php I am requiring the include.php file. Which of the following is cor...
common-pile/stackexchange_filtered