text
stringlengths
70
452k
dataset
stringclasses
2 values
About the scope of mhchem I am the inventor and author of the LaTeX/mhchem package. You know, the \ce macro. Last year, I took over MathJax/mhchem from the core MathJax team and reimplemented it to match the original in more details and to add features that were added to LaTeX/mhchem in the meantime. I am a huge fan of...
common-pile/stackexchange_filtered
random WalletExecuteDelegateCallFailedError error with 0x quote api in polygon network I am calling the quote api in polygon network, and random received the below error response but sometime the same call just works. Can someone please help here. request: The Entire API request: https://polygon.api.0x.org/swap/v1/quot...
common-pile/stackexchange_filtered
Servlet:The requested resource () is not available I work on my graduation project on 2 different computers, the problem is every time i copy from here to there i get endless errors and problems specifically with on submit servlets for example i have a registration form that takes registered user info through a servlet...
common-pile/stackexchange_filtered
Show an Ideal is the principal ideal for some polynomial. Let $F$ be a field and $R = F[X]$. Suppose $I$ is an ideal of $R$. Show that $I = (p(X))$ for some $p(X)$ in $F[X]$. (Hint: consider a polynomial $p(X)$ of least degree in $I$.) I'm trying to do this question but can't seem to start. if anyone could give me a hin...
common-pile/stackexchange_filtered
Drawing with c++ visual studio 2010 beta? please tell me how to draw any shape (a small square e.g) using visual studio 2010 with the c++ language ? PUT THEM STEP BY STEP PLEASE I don't know what type of file i have to choose nor how to check it out This is not a C++ question. C++ has no support for drawing anything...
common-pile/stackexchange_filtered
KnpSnappyBundle - wkhtmltopdf.exe.bat: Permission denied In dev environment (windows) using xampp my pdf files are generated successfully, but in prod (linux): string(545) "The exit status code '126' says something went wrong: stderr: "sh: /home/trainingexperience/beta.trainingexperience.org/app/../bin/wkhtmltopdf.exe...
common-pile/stackexchange_filtered
System Login using PHP connected to SQL Server I'm updating this question because after 2 months, I still can't solve the problem of creating sign-in into the system. I have followed the tutorial at php sql server manual but my login is still didn't work. Following is my code db.php <?php date_default_timezone_set ("...
common-pile/stackexchange_filtered
How to vectorize the intersection kernel function in MATLAB? I need to pre-compute the histogram intersection kernel matrices for using LIBSVM in MATLAB. Assume x, y are two vectors. The kernel function is K(x, y) = sum(min(x, y)). In order to be efficient, the best practice in most cases is to vectorize the operation...
common-pile/stackexchange_filtered
how mysql represent two's complement I open the ibd file of MySQL InnoDB engine and confused by the number two's complement. For unsigned numbers, InnoDB used different representations. ibd binary data the code '80 05' is the PAGE_N_HEAP field of innodb page header, which represent number of heap records, the real valu...
common-pile/stackexchange_filtered
PHP array does not sort at all I have a problem with sorting of an array. $infoGroup is the result of a 'ldap_get_entries' call earlier. As I step through this array I put the result in the array $names. Then I want to sort $names in alfabetical order, I have tried a number of different methods but to no avail. The arr...
common-pile/stackexchange_filtered
Vertical alignment of numericInput in DT I've been trying to vertically align the elements inside a dataframe rendered by dt, to do this I used the className = "dt-center" arguments inside the options of the datatable function, while this works for most of the elements of my dataframe, it does not center the numericInp...
common-pile/stackexchange_filtered
Edit preview bug - preview doesn't match real I was editing an answer that left the url malformed and misparsed. Below is an image that illustrates the problem. Now, I understand this has come up before, and has been classified as "by design." However, the fact that the preview and the real message do not match indicat...
common-pile/stackexchange_filtered
How to load PCL's App class from Win Phone 8.1 RT project I'd created a Windows Phone 8.1 Project into an existing Xamarin Forms solution (Android, iOS and UWP). I'd followed instructions from Xamarin Documentation pages, but still unable to find "LoadApplication()" method. I'm using Visual Studio 2015, and the Project...
common-pile/stackexchange_filtered
Hide download button from audio player [embed width="28"]http://audio.itunes.apple.com/apple-assets-us-std-000001/AudioPreview91/v4/e7/e0/fb/e7e0fbfb-5582-ee65-6a81-823b5ecf9186/mzaf_5076836927047056840.plus.aac.p.m4a[/embed] Since WordPress was updated to version 4.7, the audio player changed: after pressing the pla...
common-pile/stackexchange_filtered
Testing Queueable Class 55% now I'm trying to test a Queueable class and I'm getting 55% only.. I tried several things but I'm still getting only 55%. This is the class: public class SherlockQueueablePolling implements Queueable, Database.AllowsCallouts { @TestVisible private static Boolean doChainJob = true; public ...
common-pile/stackexchange_filtered
Writing the resultset to csv file I have a method getstaffinfo, which has 3 parameter (var_1, connection, filewriter fw), the var_1 value is read from a text file. So the method will be called as many times based on all the var_1 value passed from text file . approx ( 15000) public static String getstaffid(String var_1...
common-pile/stackexchange_filtered
Replace Dates in a text file I would like to replace each version old number in a file with a new one. For example 1.12.5 with 1.13. My solution so far is this command: sed -i '' -e "s/1.12.5/1.13/g" file.txt For now I have the problem that this command also replaces the numbers, if they appear separately in a line, e....
common-pile/stackexchange_filtered
Spectrum of $S$ Let $H$ be a Hilbert space over $\mathbb{C}$, and let $S\in B(H,H)$. Suppose that $a$ and $b$ are integers such that $1\leq a<b$, and that we have $S^a=S^b$. Show that if $\lambda\in\sigma(S)$, then $\lambda = 0$ or $\lambda^{b-a}=1$. What I've been able to prove so far: If $S^k=0$ for some small...
common-pile/stackexchange_filtered
bitwise operations between elements in a list I have a of list of bitwise elements, e.g. [1,1,1], and I want to do a bitwise OR operation between every element in the list. So, e.g. for [1,1,1] do 1 | 1 | 1 = 1 or for [1,17,1] do 1 | 17 | 1 = 17 How can I do this without looping? Numpy's bitwise_or only seems to...
common-pile/stackexchange_filtered
How can I store additional attributes on DCEL edges? I am currently working on a city generator, and I've ran into some issues with data storage while working on the roads. I currently use a doubly-connected edge list (DCEL for short), to store the road data. Each road would consist of two half edges, each connecting t...
common-pile/stackexchange_filtered
PostgreSQL: Paginate JSONB data This may be long shot but is there any way to limit JSONB data with query? We are investigating the differences between MongoDB and PostgreSQL JSONB and this may be a critical factor. Please be a little bit more precise. What exactly do you mean by "limit"? You can use the JSON functio...
common-pile/stackexchange_filtered
matching a non-boundary word I am stumped with the concept of non boundary word since grep command is not returning what I would expect it to return. I am looking for lines that match only malloc word and not lmmmalloc, so I decided to use: grep -inr '\bmalloc\b' . which returned the following: ./xxxx.xx:918: /* Fr...
common-pile/stackexchange_filtered
error: array type has incomplete element type - already defined structs extern const struct ss_type ss_table [MAX_CLASS]; extern const struct ss_group_type ss_group_table [MAX_GROUPS]; merc.h:4430:30: error: array type has incomplete element type merc.h:4431:35: error: array type has incomplete eleme...
common-pile/stackexchange_filtered
Which undocumented 8085 instructions is Steven Morse referring to in "In The Beginning"? In S. P. Morse's 1980 allegory, "In The Beginning", he writes And Intel said, "Let there be an 8085 with an oscillator on the same chip as the processor, and let an on-chip system controller separate the data from the control line...
common-pile/stackexchange_filtered
Metal vertex shader draw points of a Texture I want to execute Metal (or OpenGLES 3.0) shader that draws Points primitive with blending. To do that, I need to pass all the pixel coordinates of the texture to Vertex shader as vertices which computes the position of the vertex to be passed to fragment shader. The fragmen...
common-pile/stackexchange_filtered
Typescript: How to convert a string to a type I am creating a bunch of web components and each of them can emit custom events. As an example here are two simple examples: //MyButton emits 'myButtonPressed' and detail of this type: interface ButtonDetailType { id: string; } //MySlider emits 'mySliderChanging' and de...
common-pile/stackexchange_filtered
How to let a child control receive mouse events? When a parent component has transparent mouse enabled all child controls are no longer able to receive mouse events. Is it possible exclude a child from this rule. public class TransparentMouseTest extends Application { public static void main(String[] args) { Ap...
common-pile/stackexchange_filtered
Best method for setting permanent aliases in powershell? When I install something like ffmpeg with winget, it sets permanent aliases for ffmpeg, ffplay, & ffprobe. winget install gyan.ffmpeg It doesn't look like it's adding anything to my path environment variable. If I use the Set-Alias PowerShell utility, said alias...
common-pile/stackexchange_filtered
Launchy::ApplicationNotFoundError: Trying to get save_and_open_page to work at all gives me the following error: 1) index page my first test Failure/Error: save_and_open_page Launchy::ApplicationNotFoundError: No application found to handle 'C:/Sites/Sublist_v2/tmp/capybara/capybara-201304211638563116158687.html' ...
common-pile/stackexchange_filtered
How to avoid magic strings and magic numbers in C++ How do I avoid the use of magic strings and numbers in the code below: void Trainee::setScores() { m_scores["C++"] = rand() % 100; m_scores["Java"] = rand() % 100; m_scores["Linux"] = rand() % 100; m_scores["QtQML"] = rand() % 100; m_scores["PSD"] = rand() %...
common-pile/stackexchange_filtered
Do I have to be proficient with an Implement to get its properties? I'm trying to get low-light vision with any magic item that is not a Head slot item. I found Totem of the Night (Adventurer's Vault 2 pg.46). Property: You gain low-light vision. If you already have low-light vision, you instead gain darkvision. I'm ...
common-pile/stackexchange_filtered
NUCLEAR SYSTEMS ENGINEER Jasmine, I'm seeing conflicts between our material flow design and the safeguards requirements. The inspectors want clear material balance areas with minimal transfer points, but our safety analysis favored distributed processing to reduce inventory limits. SAFEGUARDS SPECIALIST That's exact...
sci-datasets/scilogues
How to set column value as key in sql json path I am using Microsoft sql server 2019. My table name is computer compid make Model year 1001 Dell Vostro 2013 1002 Dell Precision 2014 1003 Lenovo Edge 2013 1004 Lenovo Horizon 2014 I need a json with the following format [ { 'Dell':[{"Model":"Vostro"},...
common-pile/stackexchange_filtered
Using PowerBI tiles in another application having obtained a list of dashboards and then the tiles associated with those dashboards , the links that I get back do not seem to work I am left with a spinning indicator when I try to view in the browser IE or Edge. url format https://app.powerbi.com/embed?dashboardId=< som...
common-pile/stackexchange_filtered
Creating a table() of counts using a frequency column I've got data created from the HairEyeColor data HEC = as.data.frame(HairEyeColor) which is a quick way of generating a data frame with a Frequency column, which is my situation. I need to create contingency tables similar to this: colhair coleye black bl...
common-pile/stackexchange_filtered
Does the weather condition of the runway affect the braking of an aircraft with regards to wheel braking and reverse thrust? I was on a 737 that landed on a snowy runway in northern Finland the other day. We had to wait around 30 minutes to land as they were waiting for it to stop snowing and then for them to clear the...
common-pile/stackexchange_filtered
C++: Happy Number Endless Loop I created a function to find the first X Happy Numbers. A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it ...
common-pile/stackexchange_filtered
Elementary operations on a matrix and multiplication by elementary matrices If we have a matrices $$A=\begin{bmatrix} a & b\\ c & d\end{bmatrix} \hskip5mm \mbox{ and } \hskip5mm e_{12}(\lambda)= \begin{bmatrix} 1 & \lambda \\ 0 & 1 \end{bmatrix} $$ then by doing product $$ Ae_{12}(\lambda) = \begin{bmatrix} a & ...
common-pile/stackexchange_filtered
How to enumerate shared folders with ACLs? Does anybody know how to get the list of locally shared folders with ACLs and export the list to a file? You can use Powershell to do this. gwmi -class win32_share will get a list of shares. This guy's script will help you retrieve the permissions. Thank you for this. I'll...
common-pile/stackexchange_filtered
unix netcat utility on linux, checking if connection was made I am using netcat utility on linux to receive outputs from a program on a windows machine. My problem being that the program on the windows machine does not always give an output. How can i check that either a connection has been made to netcat ? What i am ...
common-pile/stackexchange_filtered
When to use volatile with multi threading? If there are two threads accessing a global variable then many tutorials say make the variable volatile to prevent the compiler caching the variable in a register and it thus not getting updated correctly. However two threads both accessing a shared variable is something which...
common-pile/stackexchange_filtered
Static modifier from C++, but in Java? I'm searching for modifier in Java that has the same exact purpose as Static in C++ has. I mean, that variable is only initialized once in function, then every time we call that function again, values from the previous call are saved. That's how code looks in C++: void counter() {...
common-pile/stackexchange_filtered
How to convert Column from LEFT JOIN The problem I have is that the LogonTime column cannot be changed to a DATE type, even when using the CONVERT, CAST, and TRY_CONVERT functions. I have tried the following functions CONVERT, CAST, TRY_CONVERT, but none of them manage to convert that DATETIME column to DATE. I used co...
common-pile/stackexchange_filtered
Spark save to elasticsearch failed due to Connection error I'm trying to index data in elasticsearch about 77M documents with 150 fields . We dont have much computing/memory resource so our cluster is 3 nodes ( 48GB RAM /24 CPU and 6TB of storage ) I'm sending data from another spark cluster in another virtual networ...
common-pile/stackexchange_filtered
how to sort map based on key length I have this map: Map < String, String > unsortMap = new HashMap < String, String > (); unsortMap.put("./cq:dialog/content/items/tabs/items/tab1/items/columns/items", "40"); unsortMap.put("./cq:dialog/content", "80"); unsortMap.put("./cq:dialog", "75"); unsortMap.put("./cq:dialog/cont...
common-pile/stackexchange_filtered
Why I am getting duplicate records in the table #preweighting_data_dma? SELECT respid, cq4_1, dma INTO #preweighting_data_dma FROM #preweighting_data a LEFT OUTER JOIN #us_zip b ON trim(a.cq4_1) = trim(b.zip_code); Do you want to know why you are getting duplicates, or do you want to know how to prevent getting dupli...
common-pile/stackexchange_filtered
Translation dictionary - selecting subset of translations I am implementing a translation dictionary with a structure based on this post: https://stackoverflow.com/a/16919801/4527140 The server DB is MySQL, and the client is SQLite (on Android), but for this particular issue, only the server (MySQL) comes into play. T...
common-pile/stackexchange_filtered
Probability flipping a coin Can you please explain. How to answer these type of questions with permutation/combination? Is there a way I should approach probability questions? Hint: How many word of length $4$ are there, over the alphabet H, T, that have exactly two H. You can answer this with a "combination" or by ...
common-pile/stackexchange_filtered
concatenating NSStrings not work I am trying to concatenate the contents of an NSMutableArray using NSString* result = @""; for(NSString* test in self.selectedOnes) { NSLog(test) ; [result stringByAppendingString:test]; [result stringByAppendingString:@","]; } but result remains @"", I am sure that t...
common-pile/stackexchange_filtered
"Plugin Scala is incompatible with this installation" error with IntelliJ 14 From Browse Repositories in IntelliJ 14, the newest Scala plugin is version 1.5.2. From the Scala plugin homepage for IntelliJ, the latest version (as of Aug 10, 2015) is 1.7.4. https://plugins.jetbrains.com/plugin/?id=1347 However, when I tr...
common-pile/stackexchange_filtered
Socket.io connects more than once I'm trying to display my connection to a page with socket, but when I reload my page, the message is displayed 2 times, when i reload again, 3 times etc ... Here is the code node js. .get('/compte/', function(req, res) { res.render('compte.ejs'); io.sockets.on('connection', function(so...
common-pile/stackexchange_filtered
How to fix errors when trying to run a server using django? I'm trying to learn how to use Django and I have created a folder called "lecture3" and when I type in lecture3 % python manage.py runserver, I get the error lecture3 : The term 'lecture3' is not recognized as the name of a cmdlet, function, script file, or op...
common-pile/stackexchange_filtered
"Signal out of range" when booting the PC from the CDROM I changed the configuration on my Windows 8 PC so it boot from de CDROM. Then I insert the DVD with the Ubuntu ISO and reboot. I saw something like "Booting from CD/DVD..." on the screen but it's very fast, and then, my monitor says "Signal out of range". This on...
common-pile/stackexchange_filtered
regex question redux regarding definition list Trying to figure out a way to throw out attributes in this data that do not have any values. Thanks for helping. My current regex code , thanks to Tomalak looks like this Regex find ([^=|]+)=([^|]+)(?:\||$) Regex replace <dt>$1</dt><dd>$2</dd> Data looks like this Brist...
common-pile/stackexchange_filtered
Define marathon services listening interface I have a mesos install with 3 VPS. I use a virtual private network for internal networking. Everytime marathon starts and bind a service to a new port, it binds it to <IP_ADDRESS>. No matter if I had a http(s) load balancy security in front, every user can access any service...
common-pile/stackexchange_filtered
Corrupt MP4 file: ffmpeg codec, global header, and dvvideo errors. Can it be repaired? So, I have a number of corrupt MP4 files (some corrupt AVI files, too, but I believe that's a different problem). They seem to have gone corrupt when I had an external hard drive that they were on crash (it no longer works in any of...
common-pile/stackexchange_filtered
How to update all document in Mongodb Now, It's update only one document ,I'ld like to update all document where status is 0 in mongodb with node.js ORM. MessageUser.update( { status : "0", }, { $set : {status : "1"} }, {multi:true} ,function(err, result){ if(!err){ console.log('updated'); } }); Query see...
common-pile/stackexchange_filtered
How to use Flask with types hints in python This basic Flask code: from flask import Flask from dotenv import load_dotenv load_dotenv() app = Flask(__name__) @app.route('/') def hello_world(): return '<h1>Hello world</h1>' It makes pylance throw errors in @app.route('/') saying that: Type of "route" is partial...
common-pile/stackexchange_filtered
Are there limits to waters energy absorbtion capacity I have a system where I heat water in a flask. The water vapor generated is condensed and returns to the original container (not a pressurized system, but condensation system is efficient enough that there is no loss of vapor). My goal is to have maximum amount of v...
common-pile/stackexchange_filtered
RoR - Values from forms are not getting passed to controller I have a subscriber form page, where based on the country selected I display the state field via jquery. That part works fine but even after selecting a state when I post, I get an error "state value can't be blank". Not sure what I am missing. Here is the c...
common-pile/stackexchange_filtered
Returning results with callbacks I'm trying to query a database, then make an array of objects from the results, turn them into a JSON object. I'm not used to Javascript's asynchronous nature and I'm really confused about how to implement something that needs to work synchronously. I know I probably need to use call...
common-pile/stackexchange_filtered
Custom element inheritance I would seem that the lifecycle callbacks fire but I cannot access the mother class properties. For exemple I have this custom element : var Game = document.registerElement('x-game', { prototype: Object.create(HTMLElement.prototype, { cards: { value: [], ...
common-pile/stackexchange_filtered
Is there a way to remove prevous prints? So i am currently trying to make something that will print . and remove it then print .. and also remove it then print ... When i tried using sys module to remove the prevous text this was the output: lol [Ktest so it basically adds a [K to the next line. I also tried using anot...
common-pile/stackexchange_filtered
adding class or hooks inside app component i'm new to react world, in react sites it says that hooks cannot be used inside class, my question is for example i have app.js can i have components inside it which are class based and also functional (hooks) ? for example in this App.js can 'NavBar' be functional (hooks) com...
common-pile/stackexchange_filtered
How to run two different tests in Googletest Suppose I have two/many different tests need to be carried out in gtest in two iteration. So, how to carryout the same? I tried my approch but it fails. I wrote, ::testing::GTEST_FLAG(repeat) = 2; //may be 2 or 3 or so on... switch(i) //int i = 1; { case 1: ::testing::GTEST...
common-pile/stackexchange_filtered
After updating sSMTP to version 2.61 I cannot send mail via gmail I updated sSMTP to version 2.61 and now when I try to us it I receive the following error: ssmtp: Cannot open smtp.gmail.com:587 I can connect via telnet to their address, but sSMTP seems to get tripped up and Im not sure what changed after the update. ...
common-pile/stackexchange_filtered
How to use a module from the interactive Ruby shell? Ruby newbie here. I'm trying to use the Easyjour module ( http://easyjour.rubyforge.org/ ) from irb. After a gem install easyjour this is what I get: irb(main):002:0> service = Easyjour.serve("files", 'http', 3000) NameError: uninitialized constant Easyjour What am ...
common-pile/stackexchange_filtered
Convert Hold Left Click to Multiple Left Clicks I am trying to write a python program that would convert left click being held down to multiple left clicks. Essentially it just spams left click when left click is pressed down. I have written code that does this except that it gets stuck in a loop of because it triggers...
common-pile/stackexchange_filtered
Did any philosophers defend Slave Morality? I think slave morality creates a peaceful society and Master morality would be negative for most people. To restrain ambition and desire is one of the reasons mankind have survived so long. But slave morality in itself seems to be intended as an insult. Did any philosophers o...
common-pile/stackexchange_filtered
How to get label of the node in lightning-tree in LWC What is the way to get the label of the lightning-tree node on-click/on-select on javascript handler in lwc? myLwc.html : <lightning-tree items={sidebarStructure} onselect={handleSidebar}></lightning-tree> myLwc.js : sidebarStructure= [ { ...
common-pile/stackexchange_filtered
problem updating to ubuntu 12.04.3 Followed instructions, all nvidia drivers gone. when I enter: sudo apt-get install nvidia-current nvidia settings I get: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nvidia E: unable to locate package settings ...
common-pile/stackexchange_filtered
Surface Integral problem. May be some misconception. Evaluate $\int \int \vec A\hat n \,dS$, where$\vec A = 18z\hat i - 12\hat j + 3y\hat k$ and $S$ is that part of the plane $S$ $2x+3y+6z = 12$ which is located in the first octant. The surface S and its projection R on the xy plane are shown in the figure below. He...
common-pile/stackexchange_filtered
Karate API Test - Bearer error="invalid_token", error_description="The audience <number> is invalid" Postman headers I'm using secret keys to generate an access token that I will use to authenticate for an API that I call. The issue is that I'm getting the error: status code was: 401, expected: 200 WWW-Authenticate: Be...
common-pile/stackexchange_filtered
refresh token with retrofit in android kotlin I try to send the refresh token to the server when the access token expires and receive a new accesss token, but my code does not work properly. refresh token class class RefreshToken(): Authenticator { override fun authenticate(route: Route?, responsee: Response): Requ...
common-pile/stackexchange_filtered
How to get my app to fill the full height on mobile? As you can see in the screenshot that I took on my iPhone below, the app has a bunch of white space at bottom of the page. This is only happening on mobile. How can I make the page fill the entire screen? css: .landing-bg2 { background: asset-url("startupstock1....
common-pile/stackexchange_filtered
Save Machine State automatically when Host is hibernated My settings are: Windows 10 HOST 64bit Ubuntu 16.04 LTS 64bit as a VM VirtualBox 5.2.12 I used a lot the hibernation mode for Windows 10 at work. While rebooting, my VM is freezed and I'm always unable to wake it up. Knowing that VirtualBox doesn't support hiber...
common-pile/stackexchange_filtered
How did Gibbs become a pirate? When we first meet Mr. Gibbs, he seems to be enlisted in the Royal Navy and terrified of pirates. About a decade later, Captain Jack Sparrow and William Turner find him in Tortuga. He now seems to know Jack quite well, good enough to know what happened with Barbossa and The Black Pearl. H...
common-pile/stackexchange_filtered
On Java Controller how to get the value of annotation @RequestMapping("/getThisValueFromOtherClass")? On Java MVC Controller how to get the value of annotation @RequestMapping("/getThisValueFromOtherClass")? I know we can extract this by using java reflections but is there any other way? Thank you. @RequestMapping("/ge...
common-pile/stackexchange_filtered
makefile woes , attempting to compile libdai I'd like to compile libDAI. This comes with a Makefile.conf having the line MEXFLAGS:=CXX\#g++ CXXFLAGS\#'$(CCFLAGS)' which seems to cause trouble when i try using 'make' jeremy<EMAIL_ADDRESS> /fashionista/fashionista_v0.2/lib/libdai$ make /usr/local/MATLAB/R2015a/bin/me...
common-pile/stackexchange_filtered
nginx under supervisor can't open conf file This is very puzzling: I'm on RHEL 7.5, trying to run Nginx 1.14.0 under Supervisor 3.3.4. The ultimate aim is to serve a Django site. My "/etc/init.d/supervisord" looks like this: #!/bin/sh ... # Source init functions . /etc/rc.d/init.d/functions prog="supervisord" prog_bi...
common-pile/stackexchange_filtered
How to properly cleanup MSMQ listener? I have code which is reading from MSMQ using the asynchronous API support, that is using BeginReceive(), EndReceive() and the ReceivedCompleted event. The basic pattern is (taken from MessageQueue.ReceiveCompleted Event... void StartListening() { _msgQ.ReceiveCompleted += Rece...
common-pile/stackexchange_filtered
Toggle background color of listview items on click I want the background color of Listview item to get change on the first click and restore the previous color to the second click (toggle). I am using the following code but on the second click its not working. and One more this app should remember the states of listvi...
common-pile/stackexchange_filtered
Can't use Express to send data back to client more than once In my app, I send a post request to the server with data containing a CSV file: $.ajax({ type:"POST", contentType: "application/json", url:"/", data: JSON.stringify({fileData:My_CSV_FILE}), success: function(csvJson) { console.log('in the done b...
common-pile/stackexchange_filtered
Articles modifying nouns assigned mathematical symbol In documents including mathematics, people often specify a quantity by putting the name and mathematical symbol of it, as follows: Suppose that quantity A is positive; Let variable X be deterministic; Multivariable function f takes two variables; Let us consider d...
common-pile/stackexchange_filtered
Ef core Ownsone problem 'is sharing the table' I use EF core : 2.26 and I have this data model: public interface IManeuverableAsset { OpenStateType? ManeuveredState { get; set; } } public interface IGeneratorManeuverableAsset : IManeuverableAsset { DateRange GeneratorInstallation { g...
common-pile/stackexchange_filtered
Setup OpenCV 2.3 w/ python bindings in ubuntu How to install OpenCV (exactly 2.3.*, not 2.1.*) with python bindings in Ubuntu (or generally, in Linux)? I've seen few manuals on Windows installations, but none for Linux. I've read and used instructions from willow garage site: wget downloads.sourceforge.net/project/open...
common-pile/stackexchange_filtered
Why on the first pic code doen't execute, but on the second it does? Exactly i know how to solve this problem, but i don't understand why this solution works. I mean what the first( 1 ) piece of code dosn't output anything, but the second(2) works correctly. I need an explanation - why. (1). class Greetings { ...
common-pile/stackexchange_filtered
How to get HTML content of one page from another page c# ASP.net I have 2 pages status.aspx and ticket.aspx, Inside ticket.aspx i have designed the ticket <div id="ticket" runat="server"> .... </div> Inside status.aspx.cs i have a button_click() function and i need to get the HTML content of the ticket inside button_c...
common-pile/stackexchange_filtered
Can't get diff output from NestedStack in AWS CDK I have an issue when I'm working with NestedStack in AWS CDK, the problem is when I'm using the cdk diff command its returns the diff output return to me. But when I have a diff inside my NestedStack it's just a reference and i really don't know what it will change insi...
common-pile/stackexchange_filtered
Android how to create simple custom UI elements I would like to create simple custom UI elements in Android like the ones from the screenshot: The light bulb should always have the same size but the rectangle should vary in the width. One option of doing this is to use Canvas elements. But I would like to ask whether ...
common-pile/stackexchange_filtered
how does compiler handle optimizations for IF statement I was reading a book that describes why Volatile is needed class ThreadsSharingData { private Int32 m_flag = 0; private Int32 m_value = 0; // This method is executed by one thread public void Thread1() { // Note: These could execute in reverse o...
common-pile/stackexchange_filtered
Using opencv4android,how to cut out video frame automatically when the camera is opened There is a sample which can cut out the video frame in the official SDK. The main code as follows: @SuppressLint("SimpleDateFormat") @Override public boolean onTouch(View v, MotionEvent event) { Log.i(TAG,"onTouch ev...
common-pile/stackexchange_filtered
Fine-tuning a classifier model - grid search To develop a binary classifier, I am fine-tuning a ResNet18 model to distinguish between two classes of images. To find the best learning rate, I do a grid search considering LR = 0.1, 0.01, 0.001, 0.0001, 0.00001. To choose the optimal LR, I use the following recipe: Look ...
common-pile/stackexchange_filtered
Why does my 3DS XL's 3D slider affect the volume? When I try to change the volume it doesn't change and stays at full volume, but when I turn the 3D on it quiets down for some reason. How can I fix it and do I need replacements? That...definitely doesn't sound normal. But I don't have a 3DS, so I can't dispute that. ...
common-pile/stackexchange_filtered
Error: Map already consumed - React Native Basically I am connecting native android module with react native and passing information from native to js. try { WritableMap params = new WritableNativeMap(); params.putInt("connectionStatus", 2); sendEvent(mreactContext, "bleConnectionStatus", params); promi...
common-pile/stackexchange_filtered
Join with certain tables causes execution time to skyrocket Database Application: Ver 8.0.30 for Linux on x86_64 (MySQL Community Server - GPL) Server: Ubuntu 18.04.6 RAM: 32GB CPUs: 8 core The underlying application framework is Drupal and it uses a query builder UI (Views module) to generate queries for reports. Plea...
common-pile/stackexchange_filtered
How can I bind this View to this ViewModel? The following code-behind binding works for the SmartFormView user control: View: <UserControl x:Class="CodeGenerator.Views.PageItemManageSettingsView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x...
common-pile/stackexchange_filtered
SSIS in VS 2017 returns error on SQL Task This is weird. On any SQL Task regardless of ADO.NET or OLEDB connection. Run debug and get The Execute method on the task returned error code 0x80070002 (Could not load file or assembly 'Microsoft.SqlServer.BatchParser, blah-blah Try re-installing Visual Studio. Sounds lik...
common-pile/stackexchange_filtered
How to read field with comma through Oracle external table I have a position separated text file which I have to read through Oracle external tables. In that position separated file I field as name separated by comma. For example: 123 abc,def 456. So I have to insert data into 3 columns. Fisrt column would have 123, ...
common-pile/stackexchange_filtered
Debian USB installation I am trying to install Debian 9 in a computer which doesn't have a DVD drive, which means that I have to install it through USB. I have tried several methods that I found on the Internet such as using Rufus, UNetbootin and directly copy the files through the dd command. The problem is that in ev...
common-pile/stackexchange_filtered