text
stringlengths
70
452k
dataset
stringclasses
2 values
Regular expression thingy I would like to create a custom regular expression. Which shall track that the first character of a username should be an alphabet. Followed by alphanumeric or can have maximum one occurrence of a special character (- or _). I can check for username starts with the alphabet with this ^[a-zA-Z...
common-pile/stackexchange_filtered
Send Email With Multiple RangeToHTML Ranges I am using some code copied from Ron de Bruin's website (awesome, btw) and am running into a snag. The email that's generated will paste only the header to the completedTasks range. It will correctly paste the Summary and incompletedTasks ranges to the body of the email. ...
common-pile/stackexchange_filtered
Error getting value from tables in relationship I doing an app using 2 tables in relationship but i'm getting "undefined method `num_letter' for nil:NilClass" My tables index_letters: |id| |num_letter| letter_logs: |id| |index_letter_id| Here is my controller class PolicyManagement::LetterLogController...
common-pile/stackexchange_filtered
Difference between UIViewController and UINavigationController? Is a UINavigationController a subclass of UIViewController? Yes, it is a subclass.
common-pile/stackexchange_filtered
Truncated Cylinder I am doing an ottoman in wood. The shape is a truncated cylinder. What I need is to be able to cut the wall in thin wood to wrap it around the truncated cylinder. I know it can be made from a semi circumference but I haven't been able to find a formula to do so. I am attaching an sketch of what I wan...
common-pile/stackexchange_filtered
What is the difference between access_by_lua and content_by_lua to refer to a lua script in nginx.conf? I am currently confused. My code works on each request sent to location /. ########nginx.conf server { listen 8000; server_name localhost; lua_code_cache on; location / { ...
common-pile/stackexchange_filtered
Removing "bar" above the iphone keyboard In an iPhone app, when the user clicks a UITextField, this keyboard is displayed. I would like to remove the bar/area containg "<", ">" and "Done". Any suggestions how to do that? SOLVED It turned out that it was IQKeyboardManager that was adding the bar on top of the keyboard....
common-pile/stackexchange_filtered
Missing Drawing in a 10 year old patent application Why are the patent drawings not shown on the Google Patents page for this dismissed patent application DE 10353118 A1? Do missing drawings provide for infringement on other patents? There are no drawings "missing" from this patent document at google patents. Only in ...
common-pile/stackexchange_filtered
SwiftUI integer specifier didn't work in picker I tried to make my selection into 2 decimal place. But all my selection become 0.00. Is it the bug of SwiftUI or something? iOS 14.2 struct ContentView : View { @State var selectedIndex = 0 @State var i = 0 var body: some View { NavigationView{ ...
common-pile/stackexchange_filtered
C# Serial Communication for Multi COM Ports I want to communicate two devices with my computer using RS232 communication.I want to send hex commands from my computer to devices. I have 2 buttons on my interface. When I press the first button, I will send a code to the first device, and when I press the second button, ...
common-pile/stackexchange_filtered
ZAP Spider scan displays 0% status and terminates in Jenkins I am new to ZAP OWASP. I have created a ZAP Jenkins job. I am getting below Message with Form login authentication 7983 [ZAP-SpiderInitThread-0] INFO org.zaproxy.zap.extension.spider.SpiderThread - Starting spidering scan on Context: SecurityTest at Mon Oct ...
common-pile/stackexchange_filtered
DynamoDB table having TTL and triggers Kinesis Firehose In my DynamoDB table, Kinesis Firehose is triggered which dumps my data to S3 whenever some records is added/updated. My DynamoDB table also has TTL enabled. Will it also be triggered when some record is deleted? When the item expires, will Kinesis Firehose be tri...
common-pile/stackexchange_filtered
How do I use the correct DbContext in VB.NET So I am working on one tiny project for a client that requires it to be in VB.NET. Using the code first method, I created some models using the default constructor for each class, so I ended up with 8 different connection strings in the web.config. I changed all of the cons...
common-pile/stackexchange_filtered
Check if file is a named pipe (fifo) in python? I communicate with a named pipe, but I would like to check if it really is a named pipe BEFORE opening it. I check in Google but there is nothing, os.path.isfile() returns False, and I really need to check it. A named pipe isn't technically a file so that's why it return...
common-pile/stackexchange_filtered
I want multiple rows in into single row i have a data in databse like this and i want to pivot it or want a result like this That's actually bad design imho. #Umair Ikhtiar, do you want to pivot only 2 rows or more? What's the logic for having these seemingly unrelated items on the same row? MySQL and SQL Server...
common-pile/stackexchange_filtered
Cross compiling Qt application for Windows on Linux with dynamic linking To comply with Qt's LGPL license, an application using the Qt library must either make the source code available or link dynamically against Qt (if I got that correctly in this few words). So I'd like to create a closed source application doing ex...
common-pile/stackexchange_filtered
Python post request failing 3 I am trying to make a post request using python requests library. The post I am trying to duplicate looks like this in the chrome developer tool: :path:/leagueOverview/football/england/premier-league?requestId=5&wsTrack=441d62c066a64465a2f7b03717d2d694&method=post :scheme:https accept:appl...
common-pile/stackexchange_filtered
Filter for direct paths in a data set using R I do have the following simple data.frame in R: structure(list(start = c(1L, 2L, 2L, 3L), end = c(2L, 10L, 3L, 4L), type = c("indirect", "indirect", "indirect", "direct")), .Names= c("start", "end", "type"), row.names = c(NA, 4L), class = "data.frame") The table view is...
common-pile/stackexchange_filtered
NotFoundHttpException in RouteCollection.php I create a fresh laravel 5 project and the routes file is as bellow. Route::get('/', function () { return view('welcome'); }); When I access it with http://localhost/mysite/laravel/public/ it works fine and goes to the welcome page. But when I modify the route as bello...
common-pile/stackexchange_filtered
ASP.NET - Ajax requests with jQuery I've got this textBox which triggers off an ajax request using jQuery: <asp:TextBox ID="postcodeTextBox" runat="server" Text='<%# Bind("POSTAL_ZIP_CODE") %>'> $(document).ready(PageLoad); function PageLoad() { $(container + 'parentProjectTextBox').change(GetProjectName); } fun...
common-pile/stackexchange_filtered
Scrapy: extrat items within JSON response I'm trying to pull individual objects out of a JSON response. The following is the response I get from the website I'm trying to scrape: [{"name":"AAA 404","id":"AAA404","sections":[{"id":"5393643","name":"40053","instructor":"Dellabough"}]},{"name":"AAA 604","id":"AAA604","sec...
common-pile/stackexchange_filtered
How do I cycle words from an array in sequence JavaScript? I created an automatic slideshow in a html webpage, i want to display some text outside the images. This is the script I'm using currently, I had asked on quora they gave me this script var words = ['beautiful', 'cool', 'amazing']; var t = setInterval(function...
common-pile/stackexchange_filtered
Weird behavior of simple tables in Python I am a beginner in Python. The dynamic programming solution to the coin change problem requires an initialized table that basically could, for example, look like this: [ [1,0,0,0], [1,0,0,0], [1,0,0,0] ] Which table I specified this way: table=[[1]+[0]*3]*3 Now, if I write t...
common-pile/stackexchange_filtered
Stop Malicious Hacker Someone keeps posting a large number of vulgar posts to my database. They are usually the same. The only way I can stop them is by breaking the .php page, and then deleting them, and then adding something like the following to the .php post page: if (strpos($_POST['password'], 'curse*') === f...
common-pile/stackexchange_filtered
String representation of django-cms models/plugins I've built a custom plugin for a Django CMS project which I've named PageBlockPlugin. The associated PageBlock model features an HTML field, and I've defined a __str__ method on the model which truncates the HTML content to the first three words. When I'm in the Django...
common-pile/stackexchange_filtered
automake/gnu make dealing with directories in patterned rules When I create a patterned rule, or some other custom rule, I need to be able to deal with the target directory not existing. This is for when the project is being built in a directory other than the source directory itself. For example: %.out: %.in gen_fi...
common-pile/stackexchange_filtered
How to check the class of an instance in Javascript? Possible Duplicate: How to get a JavaScript Object's Class? In Ruby I could do this to check the class of an instance: 'this is an string'.class =>String Is there any similar thing in js? See also http://stackoverflow.com/questions/5326142/how-to-get-name-of-ja...
common-pile/stackexchange_filtered
Multiple rest handlers in Cowboy Is there a simple way of setting up a single dispatch route in Cowboy that allows multiple handlers such as: /base/add_something /base/remove_something and have each of those actions services by a single handler that can differentiate them? All of the examples seem to map 1 handler to 1...
common-pile/stackexchange_filtered
How do I create a clickable button or link inside an <a> tag and still be right-clickable? Hello I am currently working a notification dropdown menu and each <li> contains a link or an <a> tag. I want to make something like facebook's notification. Now the problem is I want to put a small button or a clickable element ...
common-pile/stackexchange_filtered
Accessing to a Textview from a class (not an activity) I have a main activity that extends AppCompatActivity, this activity can easily access to the TextView, than I have another java class that I need to access to the same TextView... I couldn't find it out! you can make the TextView public and static like so public...
common-pile/stackexchange_filtered
Upload a file to a ftp folder in asp.net After do some research I have come up relatively empty on this subject. What I am trying to do is basically upload a file (.jpeg) from an asp.net page when a user hits an upload button to our companys public website. The files are stored in a folder on the ftp site. Can someone...
common-pile/stackexchange_filtered
Indirection through ESI and Pointers I am new to the assembly programming(x86 asm with MASM) and was learning about indirection supported by the ESI register you just need to place the address into the ESI and then use indirection operator and you would be able to access the pointed data. Q1.In the coding one can use ...
common-pile/stackexchange_filtered
Vector norm of an array of vectors in MATLAB When calling norm on a matrix in MATLAB, it returns what's known as a "matrix norm" (a scalar value), instead of an array of vector norms. Is there any way to obtain the norm of each vector in a matrix without looping and taking advantage of MATLAB's vectorization? You can ...
common-pile/stackexchange_filtered
Interface is abstract cannot be instatiated interface Hierarchy { } class Sub1 implements Hierarchy { } public class Ob { public static void main(String[] args) { Hierarchy hie = new Hierarchy(){};//not getting error line 11 Hierarchy hie1 = new Hierarchy();//while creating like this error line ...
common-pile/stackexchange_filtered
How can I increase the resolution of a mobile clip? Few days ago, at early morning I saw something falling in a slop in the sky. It wasn't a plane but something with a color of fire and so bright! I wonder what it could be, so I recorded it on my mobile. But as my mobile camera resolution is really very low, it wasn't ...
common-pile/stackexchange_filtered
Applying Hanning window to my echo signal in MatLab I have some troubles with something in Matlab, I am processing my echo signal in order to do the Delay and Sum procedure but unfortunately I am no quite sure how to implement the Hanning window to my signal. I know that in Matlab I have the function "hann", but I am n...
common-pile/stackexchange_filtered
How to replace IndexOutOfRangeException error and use BadRequest() instead in c#? In my asp.net core project I have method which I am updating string field. I am checking if it is last element I need to show error. But problem is I am getting error as expected: System.IndexOutOfRangeException: Index was outside the bou...
common-pile/stackexchange_filtered
How to create checkboxes on multiple pages in java iText PDF? I currently have a method that looks like this for making checkboxes on my pdf: private static void createCheckbox(PdfWriter writer, float lowerLeftX, float lowerLeftY, float upperRightX, float upperRightY, String fieldName, boolean startChecked) throws IOEx...
common-pile/stackexchange_filtered
Call to a member function real_escape_string() on a non-object when using MySQLi I have tried every solution posted on other questions about this topic, but none of them work. I'm sorry if this is a basic question, but I'm new with MySQLi and I can't figure out why this connection won't work. I have a function in my fu...
common-pile/stackexchange_filtered
How to find an invariant of the knot puzzle game? Here is the Region Select game based on the knot theory. Question. Is it possible to find an invariant that divides the initial set of lamps knots into a solvable and an unsolvable game? My attempt is: I have found the papers Dror Bar-Natan, 1992, Ted Stanford, 1992. ...
common-pile/stackexchange_filtered
SQL update based on query results with two parameters I've created a virtual table in SQL Server that has 28 days from the current date and each date has rows for time that range from 12-10 pm incremented by 15 min and another value to indicate that it's turned on/off for availability, so it would be something like thi...
common-pile/stackexchange_filtered
What is an AWS master account? I have see references to AWS master account in different projects documentation like for example in awslabs/aws-deployment-framework: CloudTrail configured in the us-east-1 region within the AWS Organizations Master AWS Account. What is a master account? I don't see it mentioned in the...
common-pile/stackexchange_filtered
Solve : $p^2+ 2py \cot(x) = y^2$ Solve : $p^2+ 2py \cot(x) = y^2$ where p = dy/dx My approach to the question : I used the quadratic formula to get $$y = p \cot(x) \pm p \csc(x) $$ which can be reduced to $y = -P(v \pm 1)$ where $v = \cos(x)$ and $P = \dfrac{dy}{dv}$. Now this can be solved using Clairaut's equation an...
common-pile/stackexchange_filtered
Android WiFiInfo Error I am making an application which makes use of internet. I am using WiFiInfo Class to know the status of network availble and using WifiManager to enable and manage Wi-fi connection if available. But the result is Unknown ssid. Also I have modified AndroidManifest.xml to grant permission of androi...
common-pile/stackexchange_filtered
Is the snmp source package of correct version missing from security.debian.org? I'm trying to build the newest snmp packages on debian jessie. However, https://packages.debian.org/jessie/snmp seems to show conflicting information. The page heading reads: Package: snmp (<IP_ADDRESS>+dfsg-1+deb8u1 and others) [security]...
common-pile/stackexchange_filtered
what is the Best way to use es6 with rails asset pipeline What is the best way to use ES6 with rails asset pipeline?. I am trying to write some es6 syntax in my angular-rails application, which uses the rails asset pipeline. The code actually works in local but throws a syntax error when trying to deploy(digital ocean)...
common-pile/stackexchange_filtered
Does a damage threshold reduce damage larger than the threshold? Damage Threshold in the D&D 5e SRD is described as: "Big objects such as castle walls often have extra resilience represented by a damage threshold. An object with a damage threshold has immunity to all damage unless it takes an amount of damage from a s...
common-pile/stackexchange_filtered
Show read and unread messages I want to replicate an email function(how a general email does it) which shows when a department read and doesnt read a message. so the scenario is this. I have a department "GA registry" which send messages when the department(GA) has any sort of changes. The receiving departments are IT...
common-pile/stackexchange_filtered
Compatibility Spring Boot 3.x and Spring Boot 2.7.x? There are two applications, first application work on Spring Boot 3.x, second application work on Spring Boot 2.7.x, from the second apllication pull dependensys which contains Entity at run Spring Boot 3.x application i get eror Not a managed type, firs case use jav...
common-pile/stackexchange_filtered
Are cutscenes skippable on console versions of Mass Effect 3? I'm annoyed at being forced to watch the entire length of cutscenes play out. Is there a way to skip past sections of dialog, or skip the entire cutscene altogether? I'm playing on Xbox 360, but I assume the potential solution is the same for PS3 and possibl...
common-pile/stackexchange_filtered
Setting up OCR tool in python I am a complete code novice. I am trying to teach myself python and so far I've been able to do rudimentary scripting. I want to try and learn how to use an OCR which might be somewhat advanced for me, but I'm doing it for fun so I have all the time in the world. I'm trying to set up pytes...
common-pile/stackexchange_filtered
Distinct aggregation in pre-calculated measure (MDX) There are two measures in one fact table \ dimension. Measure 'YearTotal' should somehow be pre-calcuated as a distinct value for any futher summing (aggregating). And 'YearTotal' can't be derived from 'YearDetail' measure, so they are completely independent. +-----...
common-pile/stackexchange_filtered
unable to kill process / logout on windows server 2003 My own console .net application stuck in a "ghost" stage. It just shows a window that i can't close. It doesn't show up as a process in the task manager. when i try to "find windows process" using Process Explorer (from sysinternals) it says there is no process tha...
common-pile/stackexchange_filtered
Parsing stdClass Object data in php I'm an intermediate PHP programmer, but am struggling with the output of the Google AJAX API. I have the following converted to stdClass stdClass Object ( [responseData] => stdClass Object ( [results] => Array ( [0] => stdClass Object ( [Gse...
common-pile/stackexchange_filtered
Manage CORS between Google App Engine & Google Cloud Function I'm trying to set up a new instance of a simple App Engine which communicate with a backend-function hosted on Google Cloud Function. The App Engine is protected with IAP, and the Google Cloud Function is private only. The GAE use Angular Framework and GCF u...
common-pile/stackexchange_filtered
WordPress Multisite with multiple domains using Nginx I'm growing grey hair here. I've tried so many things and yet I can't get a grasp on how to set this up. Found tons of guides but no one goes through all aspects, which are: A single WP Multisite install that handles several domain based (8 to be exact) sites Site ...
common-pile/stackexchange_filtered
Reference request: isomorphism in $K$-theory induced by inclusion of a full corner of a $C^*$-algebra Let $A$ be a $C^*$-algebra $p$ a projection such that $ApA$ is dense in $A$. Let $B=pAp$. Then it is known that the inclusion $$i\colon B\hookrightarrow A$$ induces an isomorphism on operator $K$-theory, i.e. the funct...
common-pile/stackexchange_filtered
How can I clone a terminal and retain its current history? I'm trying to figure out how to fork/clone a terminal that retains the history of its parent. I understand there are solutions that allow all terminals to share a history, but this is not quite what I'm after. Sometimes I am working in a directory and realize I...
common-pile/stackexchange_filtered
How to pivot or transpose partial data frame with aggregation I have a data frame df where the combination of 5 columns: item, fav_topping, cheese, crust, order_yr_month is unique. There are 1450 rows. item fav_topping cheese crust order_yr_month #_of_orders 0 Pizza Pineapple PPJ Th...
common-pile/stackexchange_filtered
Updating rows among same table in Azure Synapse Analytics I want to update Id column on basis of email and first_name. For Example, in the below table i want to update 'A0538_0' to the remaining two rows for the combination of email and firstname. Required Output: |id | email | firstname| |--------------...
common-pile/stackexchange_filtered
Scalability issue when using outgoing asynchronous web requests on IIS 7.5 A bit of a long description below, but it is a quite tricky problem. I have tried to cover what we do know about the problem in order to narrow down the search. The question is more of an ongoing investigation than a single-question based one bu...
common-pile/stackexchange_filtered
Linear Regression on Time Series I have a csv file containing values of X and Y variables. i have been asked to use this to build a linear regression model that can predict the current value of the variable based on its previous historical values (say 4 historical values). and my model should have following form. W = ...
common-pile/stackexchange_filtered
How to convert a (java) List to a (scala) ListBuffer (not Buffer) in java? Is there a way to convert a java.util.List to a Scala.mutable.ListBuffer ? In JavaConverter asScalaBufferConverter return a Buffer but the method from the scala project accept only ListBuffer. Is there a way to convert the list to a ListBuffe...
common-pile/stackexchange_filtered
CRUD ConnectionStrings at runtime on C# winform app I am making a program and i want for the user to be able to connect it to several Databases(SQL or MySQL) dynamically as he/she uses it. So i need to be able to Create Read Update and Delete connection strings (into the app.config ???) and make those changes persisten...
common-pile/stackexchange_filtered
Weird SQL Server view definition I've "inherited" a well over 10-year old app, and it does show its age at times. I've stumbled across a really weird view definition today - I just can't seem to make sense of it! Can you help me? This was originally on SQL Server 7.0 and has since been migrated to SQL Server 2005 - but...
common-pile/stackexchange_filtered
Convert Json array of objects to most suitable .Net collection I have the following Json collection and I need to represent it as a .Net collection. Esentially it is a key-value pair list with the keys (col) possibly having dublicates (dictionary is out at this stage). I sorting and grouping would be nice but not essen...
common-pile/stackexchange_filtered
Unable to build expression for 'inline-eval' : null'facts["XYZ"] == "ABC"' When I have upgraded mule version 3.3.2 to 3.4.2 I am facing this issue for bpm rule engine. drools 5.0.1 upgraded spring dependency also 3.2.1.RELEASE , here is my drl : #From row number: 13 rule "TEST Block Rule 1" salience 65523 whe...
common-pile/stackexchange_filtered
How to wait for multiple asynchronous calls from for loop? Code without any handling: for (i=0; i<dbImgCount; i++){ (function(i) { imgDownload(FolderPath[i].FolderPath, function (next){ var url = FolderPath[i].FolderPath; const img2 = cv.imread(imgDownload.Filename...
common-pile/stackexchange_filtered
Why is this SQL query not retrieving any data? I'm trying to get a DataTable containing Houses in a specific city with rooms between x and y. I'm using this SQL query: "SELECT * FROM Houses WHERE City = '" + Cities.Text + "' AND Rooms BETWEEN '" + MinRooms.Text + "' AND '" + MaxRooms.Text + "'" The controls are dropd...
common-pile/stackexchange_filtered
dsacls : only delegate creation of computer object I try to delegate to a service account only the creation of computer object on an OU. I use the following command. But It give the right to create all object type : user, computer, OU.... dsacls.exe "OU=Computer,DC=ad,DC=groupe,DC=net" /I:T /G "ad\test_account:GRCCLCW...
common-pile/stackexchange_filtered
ImportError: cannot import name 'ImageTK' I cannot seem to figure out how to fix a problem with my code regarding import ImageTK from PIL. I have searched and downloaded Pillow different ways and the error of the code is still the same. Traceback (most recent call last): File "8_Age_Calculator_App.py", line 3, in <modu...
common-pile/stackexchange_filtered
Resolving circular dependency between concept and constrained template function I am trying to learn more about concepts. I ran into some problems with circular dependencies between concepts and constrained template functions, and I've reproduced these errors in a simple example. I have a concept, Printable, that I wa...
common-pile/stackexchange_filtered
Do not repeat string more than once In the database I have various dates stored like so: ID| Dates ----------------- 1 | 23 April 2014 2 | 24 April 2014 3 | 25 April 2014 4 | 01 May 2014 5 | 02 May 2014 I managed to trim all the digits from the string with PHP which only leaves me with the month titles. What I am tryi...
common-pile/stackexchange_filtered
Property 'push' does not exist on type in ValueList Dropdown Hai am developing android and ios application using native script-angular.I have used a nativescript-drop-down plugin in my app.I have used valuelist array to plot values in the dropdown. But the value list return error like "Property 'push' does not exist on...
common-pile/stackexchange_filtered
Minimum distance Find the point M (x, y) in the plane (xy) so that the sum of the squares of the distances of this point to the lines x = 0, y = 0 and x - y + 1 = 0 is the smallest. I don't know how to start. Thank you for your help. step 1) write down distances to the three lines. In general if the equation of a line...
common-pile/stackexchange_filtered
How to design resuable react component I am using React for my project. Firstly, I need to design a resuable Input component. Here is my code: import React from "react"; import TextField from "@material-ui/core/TextField"; const Input = ({ name, value, label, errorMessage, type, onChange, fullWidth }) =>...
common-pile/stackexchange_filtered
How do I return a Promise with this custom type in TypeScript? What I can't figure how is how ParsedAuthorizationResponse is implemented and how I can set it's values differently. Eventually, I want to return a certain value/type as a promise. I thought this would work but it doesn't let PAR; if (status === 'COMPLETED...
common-pile/stackexchange_filtered
Physical meaning of $SdT$ Consider a thermodynamic classical closed system. Due to the First and Second laws of thermodynamics, we know that $dU=\delta Q-\delta W=TdS-PdV$, and we could assign to $\delta Q=TdS$ the meaning of exchanged heat. But what physical meaning could we assign to $SdT$ appearing, e.g., in the exp...
common-pile/stackexchange_filtered
Criterion for a factorial ratio to be integral Let $a_1,a_2,\ldots,a_K,b_1,b_2,\ldots,b_L$ be positive integers. Prove that $$\frac{(a_1n)!(a_2n)!\cdots (a_Kn)!}{(b_1n)!(b_2n)!\cdots (b_Ln)!} $$ is an integer for all positive integers $n$ if and only if $$\lfloor a_1x \rfloor + \lfloor a_2x \rfloor+ \cdots + \lfloor a_...
common-pile/stackexchange_filtered
Add tooltip on dropdown selection in wicket using ajax I am using Wicket and ajax framework. Dropdown is populated through wicket and onchnage of dropdown is handled through ajax. I want to add a dynamic title on dropdown when user select value from dropdown. Code goes like this: DropDownChoice attrDDC = new DropDownCh...
common-pile/stackexchange_filtered
node - how to use source-map with nyc and mocha So nyc is mangling my files as follows: at _onCreate (src/post/admin.js:1:10453) at doQuery (src/db.js:59:216) at process._tickCallback (internal/process/next_tick.js:68:7) I am unsure of how to use a source map to unmangle this. The docs state: Accurate stack trac...
common-pile/stackexchange_filtered
Community for quick consults I have seen a lot of topics being closed because they are somehow asking for advice rather than a programming question. Do you think it would be useful if there was a stackexchange community that gives quick advice for beginners ? Or just a few articles that would help beginners with getti...
common-pile/stackexchange_filtered
How does equipment ground protect us from electrical shock? What I have always learned is that current leaves the source and returns back to the source, forming a closed circuit. Here are the two thought experiments I had and got confused: Scenario 1: Here I have a black (hot), white (neutral) and green (ground) wires ...
common-pile/stackexchange_filtered
how to call my method in windows service (c#)? I wanted to create a service which runs automatically on everyday at 4.00 am, and that method would delete some files automatically when it is called, i have written the code but my method which i am calling in service is not getting executed. Below i have attached my code...
common-pile/stackexchange_filtered
Stop console window from closing I am trying to make a dialog in C# console... and I try to make it answer the users's question: "tell me the date and time" or something like that. This is my code: resp3 = Console.ReadLine(); if (resp3 == "tell me the curent date and time") { Console.Write(string.Format("{0:HH:m...
common-pile/stackexchange_filtered
Clean vector every loop iteration. What is the most memory efficient way? I have a question about the std::vector. I have a very memory intensive algorithm where I forsee that predicting vector sizes and reserving enough memory for the vectors in advance will help me a lot with reducing memory usage. Which of the follo...
common-pile/stackexchange_filtered
Using the TFS API, filetypes with extensions like .svnExe get ignored I'm working on a tool which migrates from SVN to TFS using the TFS API. workspace.CheckIn( pendingChanges, currentUser.TfsUser, set.LogMessage + " on " + String.Format("{0:d/M/yyyy HH:mm:ss}", set.TimeStamp) + " by " + currentUser.SvnU...
common-pile/stackexchange_filtered
A joint PDF question: $\displaystyle f(x,y)=1-\frac x3-\frac y3$ Really stuck on this problem: If $\displaystyle f(x,y)=1-\frac x3-\frac y3$ for $0 \le x \le 2$ and $0 \le y \le h,$ the find $h$. I know I need to integrate but confused how to set it up. Thanks. $\int_0^2 \int_0^h(1-\frac{x}{3}-\frac{y}{3})dx d...
common-pile/stackexchange_filtered
QWidget inherit from custom QWidget In Qt C++, is it possible to create a custom QWidget and then reuse this custom QWidget for all QWidget (that inherit all from the custom QWidget) of the project? Maybe I have misunderstood the question, but you can just create your custom QWidget, then use it everywhere. class deri...
common-pile/stackexchange_filtered
Using a variable from a tkinter entry box to select a dictionary value I am fairly new to Python having only written one other program using tkinter. In this program I am trying to allow the user to enter the element in an entry box they are looking for and the isotope of that element in another entry box. Using dictio...
common-pile/stackexchange_filtered
Path for Image Component with semantic-ui-react and webpack I am building a ReactJS App using webpack. This simple example should render an <img> with a given url as src-attribute. How can I bundle the image resource with webpack and process it via an appropriate loader? I can't figure out, why the image resource does ...
common-pile/stackexchange_filtered
c++ Incomplete type error when defining AppServiceConnection with WinRT Console App I am trying to create a AppServiceConnection but when doing so I get a Incomplete Type not allowed I verified the header file is imported for that class as mention in other stackoverflow questions. I tried several different attempted t...
common-pile/stackexchange_filtered
is Google appengine single threaded ?(java) My question is "is Google appengine single threaded? .Now when i ask that i know that i cannot start my own threads by using threading in java .But we can start threads using backend. I am concerned about threading with request to how requests are handled.I read someonewhere...
common-pile/stackexchange_filtered
Specify point release on d-i preseeding Can I specify point release, say, "12.04.3" instead of "precise" in preseed.cfg for kickstart installation? When I specify precise in d-i mirror/suite like d-i mirror/suite precise it will install "12.04.4" which I'm not willing to. Can you tell why don't you want 12.04.4? T...
common-pile/stackexchange_filtered
Horizontal spacing in inline lists I'm using the enumitem package and want to have very compact list: left aligned without margin minimal vertical and horizontal spacing In the code below, this is what I try to achieve with \setlist{align=left,noitemsep,nosep,left=0pt} However, I also want to use the inline lists, b...
common-pile/stackexchange_filtered
How do I know which Platform Extensions do I need for .NET Standard? I ran the .NET Portability Analyzer against a class library that I want to use from my own .NET Standard class library. The class I want to use has a dependency on .NET framework. The compatibility results were 91% for .NET Standard and 100% for .NET ...
common-pile/stackexchange_filtered
React: Keep expensive component mounted I have a Single-Page-App with React & React Router. One page contains a Google Maps component that is expensive to create (7$ per 1000 instances), so when users navigate back and forth, this generates cost. My idea would be to create the Maps Component somewhere globally and some...
common-pile/stackexchange_filtered
How to use a smart TV as a monitor via built-in Wi-Fi adapter? I have a TV with built-in Wi-Fi adapter (Samsung Smart TV series 6). How can I use it a regular monitor using Wi-Fi instead of HDMI? Currently I can use allShare software to cast videos to it. I am looking for a software solution. Depending on what you ar...
common-pile/stackexchange_filtered
How to make a grid layout in iOS? I want to make a kind of grid layout (not scrollable) in an iOS app, similar to this: I can do it using multiple UIView but that won't be a good solution. If I use `UICollectionView', I believe it will become scrollable? I want fixed grid items, which resize them according to screen s...
common-pile/stackexchange_filtered
How to get a congruent euro symbol with erewhon font? Consider the following MWE: \documentclass{article} \usepackage[]{erewhon} \usepackage[]{eurosym} \begin{document} Hello! \euro 100 \pounds 95 \end{document} As you can see in the screnshot below, I get both symbols. But while the pound looks nice, the euro ...
common-pile/stackexchange_filtered