text
stringlengths
181
35.5k
meta
dict
Q: How do I disable filesystem checking on boot in 20.04? Whenever I boot Ubuntu 20.04 on my computer, I get a message saying "Press Ctrl+C to cancel all filesystem checks in progress." is there any way to stop auto disk checking? This happens with and without the Surface Linux kernel. If you want more info (such as...
{ "pile_set_name": "StackExchange" }
Q: What's the more pythonic way of formatting a huge set of strings while maintaining good readability and white spaces? I'm working on a Mad Lib project. I have a whole story that I would like to print but I get unwanted indentions whenever I use triple quotes to define my strings. When I try to get over this by rem...
{ "pile_set_name": "StackExchange" }
Q: Setting up shared development machine I have a server machine that contains 10 users. OS: Ubuntu 12.04.3 LTS 64bit These users are developers (mainly web developers: HTML+JS+PHP+MYSQL) I allowed them to remote login through XRDP and VNC. Now everything works fine but the problem in /var/www What is the suitable pe...
{ "pile_set_name": "StackExchange" }
Q: Usage before initialization of const member, is this expected bahviour of gcc and clang? Consider the following snippet. Class test has a const member a and a member function fun which returns a. An initialization list is used to to initialize a in the constructor. However in the initialization list a lambda is us...
{ "pile_set_name": "StackExchange" }
Q: When bottom half is called with respect to interrupt handlers When referring to Linux Kernel Interrupt handlers as I know there are two stages of interrupt executions first is Top Half and second Bottom Half. I know Top Half will be executed immediately on occurrence of interrupt from HW but my doubt is when and h...
{ "pile_set_name": "StackExchange" }
Q: Compact surface with constant strictly positive curvature is a sphere I'm following Cartan's Differential forms. I'm trying to do exercise 8 on page 161. The chapter is about moving frames and differential forms in surface theory. Consider the frame of Ex. 2 (principal frame), show that if $dk_1 = dk_2 = 0$ at th...
{ "pile_set_name": "StackExchange" }
Q: Connect another database in library in Codeigniter I use two databases, oracle and postgresql. Postgre database is on default and I want to connect oracle where it is needed only. So how can I do this? Now I want to connect oracle database in my library. My Code in Library: function find_all_subjects($id1,$id...
{ "pile_set_name": "StackExchange" }
Q: Using one class's properties in another OOP PHP I have the following class namespace PG\Referrer\Single\Post; class Referrer implements ReferrerInterface { /** * @var $authorReferrer = null */ protected $isAuthorReferrer = null; /** * @var $dateReferrer = null */ protected $i...
{ "pile_set_name": "StackExchange" }
Q: Custom Ribbon command greyed out in IE8 I have created a simple Ribbon command that hides the header, footer, and ribbon via jQuery. It then calls window.print() and unhides the previously hidden divs. It works great on my development machine using IE9, and works everywhere using Chrome or Firefox. Unfortunatel...
{ "pile_set_name": "StackExchange" }
Q: Show $f(w)=\frac{1}{2\pi i}\int_{\partial \Omega} f(z)\frac{g'(z)}{g(z)-g(w)}\,dz$ for $w\in\Omega$ Let $f, \Omega$ be as in Cauchy's formula (i.e. $\Omega\subset\mathbb{C}$ is bounded, open, $\partial\Omega=\amalg (\text{rectifiable Jordan curves})$, $f$ is holomorphic on an open set $\supset \overline{\Omega}$),...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to save state of Web application I build a Web application using GWT (and/or SmartGWT) that uses a number of forms to collect data. Is it possible to save the progress so that the user can leave the application and when comes back continues with the data (s)he has already entered? If yes, do I have...
{ "pile_set_name": "StackExchange" }
Q: How to make a file-field automatically show the file-chooser just before the form is submitted? I am developing one web application using CakePHP , I will be providing one button to user as "Upload ". Once user clicks on this button, I wanted to display dialogue box(browse file) so that user can choose file which ...
{ "pile_set_name": "StackExchange" }
Q: How to add exception in SELinux? When SELinux is disabled, I have no issues, but when it's Enforced then I'm facing this [systemd] failed to get d-bus session: Failed to connect to socket /run/dbus/system_bus_socket: Permission denied Audit.log sealert -a /var/log/audit/audit.log 100% done found 2 alerts in /var...
{ "pile_set_name": "StackExchange" }
Q: An MVVM button event with a list view not getting the selected item I am trying to get the selectedItem from my list view. I am using MVVM light toolkit and the EventToCommand on a button. My listView is bound to an ObservableCollection which is correctly binding. Here is the listView xaml: <ListView Name="ser...
{ "pile_set_name": "StackExchange" }
Q: How to connect to postgres through docker-compose network? I use docker-compose and I try to connect to the postgres database from the web container. I use this URI: postgresql://hola:hola@postgres/holadb I get this error: Connection refused Is the server running on host "postgres" (172.18.0.2) and accepting ...
{ "pile_set_name": "StackExchange" }
Q: jQuery change elements within div I'm stuck with this kinda stupid problem. I saw examples of my problem, but it seems I can't find correct loop. In any case, I'll better provide examples: <table border="1" id="inline" class="<?=$id?>" style="background:none;"> <tr id="border<?=$id?>"> <td rowspan="2" ...
{ "pile_set_name": "StackExchange" }
Q: jetty: dynamically changing idle time I have a jetty server which is configured to expire requests after 30 seconds, this is the configuration line in the xml config file: <Set name="maxIdleTime">30000</Set> There are two kinds of requests that are accepted by this server: requests which have to be served in real...
{ "pile_set_name": "StackExchange" }
Q: Apple ID two-factor authentication in VisualStudio As of February 27, 2019, Apple forces developer accounts to use an extra security layer called Two-Factor Authentication. When I try to login to my Apple Developer account through Visual Studio 2019, it seems 2FA is not supported; Visual Studio doesn't ask me for ...
{ "pile_set_name": "StackExchange" }
Q: Store variable data after query with mongoose and node.js I have code in app.js var Song = db.model('Song'); var Album = db.model('Album'); I want to render to index.jade with 2 variables are list of song and list of album I use query like this Song.find({}, function( err, docs ){ // ......... } Album....
{ "pile_set_name": "StackExchange" }
Q: Running JavaScript function to gives "Uncaught SyntaxError: Unexpected token }" I am creating a personal website and decided to add a "skills div" where the content of the div changes depending on what tab is selected. to do this i have created a function the changes the innerHTML of the div to a string containing...
{ "pile_set_name": "StackExchange" }
Q: How to call block defined as property in another class? I am calling the block from second class which has been declared and maintained in first class. In ViewController.h @property (copy) void (^simpleBlock)(NSString*); In View Controller.m - (void)viewDidLoad { [super viewDidLoad]; self.simpleBlock = ^...
{ "pile_set_name": "StackExchange" }
Q: VS2008 to VS2010 - Problematic Configuration and Upgrade - Newbie I have updated this question with an executive summary at the start below. Then, extensive details follow, if needed. Thanks for the suggestions. Exec Summary: I am a novice with VS. I have a problem with some inherited code. Code builds and exe...
{ "pile_set_name": "StackExchange" }
Q: For cloud machine is it a good practice to reboot periodically? As a desktop Windows user one often find better performance if one reboot it after using if for a long periold of time. Is it also the case for virtual machine in th cloud, like EC2, Azure, or VPS? A: For the most part, I only have to reboot my virt...
{ "pile_set_name": "StackExchange" }
Q: What could cause bubbling toilet when the shower or sink is running? One of the two toilets in my rental house is bubbling when the shower or sink in that master bath area are on. In the past, about 6 months ago, I have had plumbers and rotoruter out and they could find no blockage in the line. Before I spend more...
{ "pile_set_name": "StackExchange" }
Q: jQuery plugin: invoke callback method that can then invoke plugin functions based on response I'm getting into writing jQuery plugins and integrating them with AJAX. I'm cutting the fat and focusing on the basics: (function($) { function MyPlugin(el, options) { this.element = $(el); this.myInput =...
{ "pile_set_name": "StackExchange" }
Q: Why do my program behave unexpectedly when I use sigaction? I'm writing my own simple shell as an exercise. I need to register to the SIGCHLD signal in order to handle zombie-processes. For some reason, when I add the handler using sigaction the program exits, and I don't understand why. You can see in main() that...
{ "pile_set_name": "StackExchange" }
Q: Change Optional from within it self I have a variable oneTimeTask. Its type is: Optional<Runnable> oneTimeTask=...; Do you think this example is a dirty way to 'reset' the Optional<Runnable>: oneTimeTask = Optional.of(() -> { /*Run task ...*/ oneTimeTask= Optional.empty(); ...
{ "pile_set_name": "StackExchange" }
Q: More equations than unkowns in amplifier circuit I am trying to find the Magnitude Response of the gain of this amplifier circuit. The gain formula is: $$ H(\omega) = \frac{\tilde{V_{out}}}{\tilde{V_{in}}}$$ My amplifier circuit is as follows: I am trying to find the magnitude response: $$ |H(\omega)| = \fra...
{ "pile_set_name": "StackExchange" }
Q: How to add KVO to synchronized class? In my app I have the Restaurant class that you can see below. I'd like to attach a KVOController to it. But I'm having no luck. When I attach it with the code below, it crashes. FBKVOController *KVOController = [FBKVOController controllerWithObserver:self]; self.KVOControl...
{ "pile_set_name": "StackExchange" }
Q: Why should you use ACL in CakePHP instead of authentication with a user level feature? Having difficulty seeing the advantage of going through all the trouble with ACL when I could do it myself. A: The best reason to use an ACL system is that access requirements may change. A check for user_level > 5 is what is ...
{ "pile_set_name": "StackExchange" }
Q: Post request in curl throwing error I execute this curl request from command line: curl -X POST https://www.googleapis.com/bigquery/v2/projects/projname/queries?key={AIzaSyB740elm45sh9AkpuaekZW8eJbRi_oDDAc} \ After this command, I have a list of parameters to be passed: { "query": "SELECT * FROM [red-road-574...
{ "pile_set_name": "StackExchange" }
Q: Is coupling property file values with data in a database an anti-pattern? I'm working on an application where there are a few configuration values defined in properties files whose values or valid ranges are in some way dependent on data stored in a database. This seems wrong for a few reasons but I'm struggling t...
{ "pile_set_name": "StackExchange" }
Q: @RefreshScope and /refresh not working I have tried to implement spring external configurations using Config Server. It is working fine for the very first time when the application is started but any changes to the properties file are not being reflected. I tried to use /refresh endpoint to refresh my properties o...
{ "pile_set_name": "StackExchange" }
Q: Kivy: Use a toggle button to change the state of another toggle button For example, in Kivy language: <MainToggle@ToggleButton>: on_state: # something that will change the state of the sub-toggle <SubToggle@ToggleButton>: on_state: self.background_color = 0,0,0,1 # the sub-toggle button changes color A:...
{ "pile_set_name": "StackExchange" }
Q: Can WCF MemoryStream return type be written to the Http Response object for downloading as an Excel file? I built a parsing application that reads xml files and populates an Excel workbook using the NPOI library. Originally, I had that as part of my .net web app and would get the MemoryStream from NPOI and write t...
{ "pile_set_name": "StackExchange" }
Q: compare different number-types (int, float, double, ...) in .NET I have a function which takes two parameters and returns true if they are equal or false if they are not: private bool isequal(object a, object b) { if (a != null) return a.Equals(b); if (b != null) return b.Equals(a); //i...
{ "pile_set_name": "StackExchange" }
Q: Fast memory allocation for real time data acquisition I have a range of sensors connected to a PC that measure various physical parameters, like force, rotational speed and temperature. These sensors continuously produce samples at some sample rate. A sample consists of a timestamp and the measured dimension itsel...
{ "pile_set_name": "StackExchange" }
Q: Recursion: sum digits of a number until there is a single digit left How can I sum digits of a number in a recursive manner until there is only a single digit left? Example: with the input 9234, the result would be 9 because 9 + 2 + 3 + 4 = 18 and then 1 + 8 = 9. This is my code for the moment but I want to sum un...
{ "pile_set_name": "StackExchange" }
Q: Term for the opposite of salami publishing Question Salami publishing refers to the practice of splitting scientific work into overly small pieces (least publishable units) and publishing a separate paper about each. I am looking for a term for the opposite practice, i.e., lumping together a lot of or too much sci...
{ "pile_set_name": "StackExchange" }
Q: Delphi SQL subselect error in MS-Access I'm using Delphi 7 with ADO components, and MS Access 2003. The SQL sentence SELECT CMCB.Name, (SELECT SUM(amount) FROM movement MCB WHERE MCB.movement_classification_id=CMCB.movement_classification_id AND MCB.operation_date >= #01/01/2013# AND MCB.opera...
{ "pile_set_name": "StackExchange" }
Q: Show that $F(G(x))=G(F(x)).$ Let $V$ be a finitely dimensional linear space, and $F:V\rightarrow V$ and $G:V\rightarrow V$ linear transformations that are diagonalizable, that is: there exists a base $\mathbf{e}$ for $V$ such that the matrix to $F$ in the basis $\mathbf{e}$ is diagonal and a base $\mathbf{f}...
{ "pile_set_name": "StackExchange" }
Q: How does one tell if a new month has started? php/mysql I have the dates stored in a mySQL table from 2010 - 2040 in the following format: 2012-01-02 I SELECT each date from the table and display them in a while - mysql_fetch_assoc loop while($row=mysql_fetch_array($result)){ echo $row["date"]; } how can I ...
{ "pile_set_name": "StackExchange" }
Q: How do I align these two shapes to form a tree? I need to print a tree shape where the user inputs 4 different parameters. Branch height, branch width, stem height and stem width. I have two shapes that form the top part and bottom part of the tree but I can't seem to figure out how to put them together so that it...
{ "pile_set_name": "StackExchange" }
Q: Convert json dict to row in pandas df I have pulled JSON data from a url. The result is a dictionary. How can I transform this dictionary so that each key is a column, and the timestamp is the index for each row- where the dict values correspond to the row entries each time the url is called? Here is the data: wit...
{ "pile_set_name": "StackExchange" }
Q: Undefined symbols for architecture x86_64 on Mac OS I am trying to install stunnel software on Mac OS 10.10 and I am getting the following error Undefined symbols for architecture x86_64 while executing make command from terminal. below are the detailed logs: Making all in src /Applications/Xcode.app/Contents/De...
{ "pile_set_name": "StackExchange" }
Q: Chained fat arrow in mapDispatchToProps get me an error Error: Actions must be plain objects. Use custom middleware for async actions. I am trying to chain fat arrow functions in a mapDispatchToProps but it doesn't seems to work. Container and Action creator : // Actions Creator const inputChange = (name: strin...
{ "pile_set_name": "StackExchange" }
Q: How is it okay for sendmail to send emails from any domain? I just tried my hands with the sendmail function as documented in Mail::Sendmail I saw that I was able to send mail with a userid from any domain as long as I have an SMTP server running on localhost. How is this okay? or am I missing something? For insta...
{ "pile_set_name": "StackExchange" }
Q: What tools can be used to find which DLLs are referenced? This is an antique problem with VB6 DLL and COM objects but I still face it day to day. What tools or procedures can be used to see which DLL file or version another DLL is referencing? I am referring to compiled DLLs at runtime, not from within VB6 IDE. It...
{ "pile_set_name": "StackExchange" }
Q: CSS in App_Theme folder gets Cached in Browser The Stylesheet in the App_Theme folder gets cached in the browser. What should be the approach? so that whenever there is a new deployment the browser should take the latest stylesheets and not the one cached in the browser. This was happening for other css(which are ...
{ "pile_set_name": "StackExchange" }
Q: What to do with your answer when no one, including OP, is interested in the post Example: Link Removed, sorry Sometimes I go ahead post an answer to a question and then wait endlessly for OP to show any interest in the post itself, let alone my answer. If there are other answers one can say that OP might be lookin...
{ "pile_set_name": "StackExchange" }
Q: Specific modular multiplication algorithm I have 3 large 64 bit numbers: A, B and C. I want to compute: (A x B) mod C considering my registers are 64 bits, i.e. writing a * b actually yields (A x B) mod 2⁶⁴. What is the best way to do it? I am coding in C, but don't think the language is relevant in this case. A...
{ "pile_set_name": "StackExchange" }
Q: How soon should I "vote to close" a question? I am reproducing this post from MSE here, because I think it is a valuable and relevant topic. Of course we can make our own policies and have our own values here, but I do think this is worth posting: Since it's currently impossible to delete a "vote to close",* when...
{ "pile_set_name": "StackExchange" }
Q: Optimalization of sum $f(x_i, x_j)$ for all $i < j$ pairs through permutation only? $\DeclareMathOperator*{\argmin}{arg\,min}$Can something be said about the difficulty of minimizing the quantity $$g(x) = \sum_{i=1}^n\sum_{j=i+1}^n f(x_i, x_j)$$ of some string of symbols $x \in \Sigma^n$ solely through permuting $...
{ "pile_set_name": "StackExchange" }
Q: RecyclerView not showing under TextView for ConstraintLayout I have this layout and I used ConstraintLayout. The code is below <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/main_content" xmlns:android="http://schemas.android.com/apk/res/android"...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to make components (not elements) draggable in angular? Im using the Angular CDK drag and drop module, it works well on html elements like div, p and such. but for some reason when i put a cdkDrag directive on a component, it doesnt work. <!-- WORKS --> <div cdkDrag>content</div> <!-- DOESN...
{ "pile_set_name": "StackExchange" }
Q: powershell script to add text to existing aspx file I'm trying to find resources to help me write a powershell script to add text to an existing aspx file but can't seem to find anything. Does anybody have any suggestions or is there anybody that can help me some other way? Update: So it's out there, I'm using ver...
{ "pile_set_name": "StackExchange" }
Q: ZFS System on Production Do you know/have any system which works on ZFS such as RDMS? If yes, what is your setup? FreeBSD, ZFS on Linux etc. A: Yes, ZFS can support production workloads, such as hosting virtualization systems, running an Oracle database or general NAS or block-level storage presentation. What ar...
{ "pile_set_name": "StackExchange" }
Q: PHP Variable in Select Statement I've written this PHP-Script which is working, and now I want to change the row name into a variable to (not sure if row is correct), I mean the "name" from the select name... I've tried nearly everything, but nothing gave me the right result. I know that the normal thing how I can...
{ "pile_set_name": "StackExchange" }
Q: Pulling information from one row cursor - Android SQLite I have this issue where I am trying to fill a String[] with stuff, but the way I am doing it is not working. My app so far, takes XML data, parses it, shoves it into a separate tables, and displays the Items in a list. I'm working on the detailed view, and t...
{ "pile_set_name": "StackExchange" }
Q: Make equilateral triangle from two hexagons Given two congruent regular hexagons, we should partition them into a total of $n$ pieces. What is the smallest value of $n$ so that the $n$ pieces together can be formed into an equilateral triangle? If we start with only one hexagon, it is possible to use five pieces....
{ "pile_set_name": "StackExchange" }
Q: Does IE fail when removing tag attribs with jquery? I´m using an different box for title atrib in elements. I´ve developed a simple jQuery stuff to do it but... the "best friend ever", IE, don´t work correctly. It´s simple don´t remove the title atrib as the other browsers do. The result: i´ve the box showing the ...
{ "pile_set_name": "StackExchange" }
Q: asp.net core web api published in IIS after moved to different IIS server pc gives error 500.19 (0x8007000d) I developed a web api in asp.net core version 1.0.1 using visual studio 2015, when I published the web api in IIS 10 of the same pc where it was developed, everything works correctly. The problem arises whe...
{ "pile_set_name": "StackExchange" }
Q: Trying to compile YouCompleteMe with mingw-64 and clang support on Windows 7 I have tried many different configuration options, I've built llvm/clang with windows and with mingw-64, but no matter what I set I am always stopped here. Since there isn't official support, the only help is the wiki documentation that ...
{ "pile_set_name": "StackExchange" }
Q: QT how to save to file QPoint 2d array I have board where I can "draw" a number. This is code of board void PrintRectangle::paintEvent(QPaintEvent *) { for(int i=0; i<5; i++) { ypos=20; for(int j=0; j<5; j++) { QColor color = Qt::white; for(int k=0; k<points.si...
{ "pile_set_name": "StackExchange" }
Q: customization of the camera overlay My first question for customization is at here and with help from Mat. I can customize it. Now I would like to customize the overlay by loading and view from a nib file... What I am to do is Create another UIViewController called myCustomVIew with its xib Add a toolbar on top a...
{ "pile_set_name": "StackExchange" }
Q: Reload page when a certain width is passed I want the page to reload only if the browser window goes above or below 768px. This was my attempt which failed. if ($(window.width() > "769") { $(window).resize(function () { if ($(window).width() < "769") { location.reload(); } }); ...
{ "pile_set_name": "StackExchange" }
Q: codeigniter jquery status update - prior updates not showing I'm working on a Facebook-like status update using jquery in Codeigniter. So far, I've got the database, models, controllers, views, and jquery. My status updates are posting to the database. The problem is that I can't see the prior status updates in m...
{ "pile_set_name": "StackExchange" }
Q: Does there exist a ``continuous measure'' on a metric space? Let $X$ be a separable complete metrizable space. Does there exist a complete metric $d$ and a Borel measure $\mu$ such that (a) $\mu(B_r(x))<\infty$ for every open ball $B_r(x)$ of radius $r>0$ around $x\in X$, (b) for each $r>0$ the map $ x\mapsto \m...
{ "pile_set_name": "StackExchange" }
Q: Windows Server 2016 (Backup - opinion) I'm looking for a simple answer. I have a server here that's identical to our primary server. I want to make this server our backup server. Can someone point me to a resource or mention the services I need? If the primary server fails, I want our backup server to pickup DHCP...
{ "pile_set_name": "StackExchange" }
Q: With full data journaling, why does data appear in the directory immediately? I've got a question regarding full data journaling on ext3 filesystems. The man page states the following: data=journal All data is committed into the journal prior to being written into the main filesystem. It seems to me that that mea...
{ "pile_set_name": "StackExchange" }
Q: Clustering an image using Gaussian mixture models I want to use GMM(Gaussian mixture models for clustering a binary image and also want to plot the cluster centroids on the binary image itself. I am using this as my reference: http://in.mathworks.com/help/stats/gaussian-mixture-models.html This is my initial cod...
{ "pile_set_name": "StackExchange" }
Q: How to connect to Azure Table Service REST API? I'm working on trying to access an Azure table storage resource with REST API only from a .net application (without using the azure cloud libraries) ... Just looking at the MSDN instructions, and get that my URL should be https://.table.core.windows.net/Tables to enu...
{ "pile_set_name": "StackExchange" }
Q: Why do I get unresolved reference in setOnClickListener? I have this code: class ViewHolder(view: View) : RecyclerView.ViewHolder(view){ fun bindItem(items: Item) { itemView.name.text = items.name Glide.with(itemView.context).load(items.image).into(itemView.image) view.setOnClickListe...
{ "pile_set_name": "StackExchange" }
Q: How to solve morse code without spaces? My friend got a note that has this morse code: .--......-.----....- She asked for help solving it. It doesn't have any spaces, therefore we don't know what it means. It is in English. It would be really great if you were willing to help... Thank you and have a great da...
{ "pile_set_name": "StackExchange" }
Q: How can I use CSS transitions to animate a responsive layout's vertical orientation? I am trying to figure out a way to smoothly animate a responsive change to some elements' display property when the browser size reaches a certain breakpoint. I would like to use CSS transitions, but they do not apply to the displ...
{ "pile_set_name": "StackExchange" }
Q: Extract a value from a SOAP Response in PHP I need to a value from this SOAP response. The value is in the loginresponse / return element. Here's the response: <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2...
{ "pile_set_name": "StackExchange" }
Q: Do mortgage lenders ever prefer bad credit? In the US, If you want to put $400,000 down and borrow $100,000 with a mortgage to buy a $500,000 home, is it really so important to have good credit with so much collateral? If you were to default the bank will get all that equity so it seems to my uninformed mind ...
{ "pile_set_name": "StackExchange" }
Q: Why my GPU load is low when is rendering a scene with Blender? I have a scene in Blender and I render it with GPU Compute, Cycles. The problem is when the scene is rendering, my GPU load is under the 5% while the CPU is doing all the render work. My GPU is a Nvidia GTX 745 and my Cpu an Intel core I5. The blender ...
{ "pile_set_name": "StackExchange" }
Q: main.c|4|error C2059: syntax error : 'type'| i dont know y=why this error is popping up #include <stdio.h> #include <stdlib.h> int max(int num1, int num2) { int result; if(num1 > num2) { result =num1; } else { result = num2; } return result; } int main() { printf("%d",max(...
{ "pile_set_name": "StackExchange" }
Q: How to use parallel computing for missRanger in imputation of missing values? I am imputing missing values by missRanger and it takes too long as I have 1000 variables. I tried to use parallel computing, but it does not make the process faster. Here is the code library(doParallel) cores=detectCores() cl <- makeCl...
{ "pile_set_name": "StackExchange" }
Q: What is SQL Connection What SQL Connection object is and what does actually happen when we open/close it? What resources does it consume and why is it necessary to dispose it (in terms of c#/.net)? A: SqlConnection: Take a look at the MSDN page for SqlConnection. It is stated that: A SqlConnection object repres...
{ "pile_set_name": "StackExchange" }
Q: Source crop & Frame values in dumpsys SurfaceFlinger output I am working on a project on SurfaceFlinger. So, when is the "source-crop" area different from "frame" area(these are the values that appear in the dumpsys SurfaceFlinger output). In other words, when/why are the layer-contents (rendered by the app) scale...
{ "pile_set_name": "StackExchange" }
Q: Razor Page Ranking I am trying to make a ranking page using razor page. I will be getting my data from API (which was linked to the db). The sample data in the DB is CREATE TABLE Member (Id int, Points int); INSERT INTO Member VALUES (1, 200); INSERT INTO Member VALUES (2, 100); INSERT INTO Member VALUES (3, 20); ...
{ "pile_set_name": "StackExchange" }
Q: Type Mismatch Error while looping the array I'm trying to build the array by looping the data set. Values inside are Object/Range type. (e.g. 34FF544) I get the "type mismatch" error. Dim arr2 As Variant Dim y As Long Dim eil As Long eil = 1 y = 1 Do Until Sheets(2).Range("A" & eil) = "" 'looping until the bl...
{ "pile_set_name": "StackExchange" }
Q: EaselJS way to change default pivot? Pivot of stage is set to Left Top corner of canvas but I want Left Bottom corner. So then up is +y and right is +x Is this possible? A: It is not advisable to transform the stage -- there are some issues with how mouse coordinates are transformed. Put your contents in a Con...
{ "pile_set_name": "StackExchange" }
Q: How to make single array in between dates I have one table called task id t_title t_started_on t_due_on 1 Test 1 2018-01-18 01:00 PM 2018-01-20 01:00 PM 2 Test 2 2018-01-25 01:00 PM 2018-01-27 01:00 PM from here i ...
{ "pile_set_name": "StackExchange" }
Q: Buscar no MySQL usando somente dia, mês ou ano com PHP Criei uma tabela, nela um campo no formato DATETIME para armazenar o dia, mês, ano e horário em que um registro é feito. Gostaria de saber como eu posso fazer para buscar somente usando dia, mês ou ano ? Exemplo: Tenho 4 registros: 2017-02-03 2017-02-13 201...
{ "pile_set_name": "StackExchange" }
Q: How to implement prototype function with 2 dimensional array in javascript? I need to implement DataTable struct ,that is in c#, in javascript. For example function Servers(name) { this.Name = name; this.Columns = new Array(5); var rows = new Array(3); for (var i=0;i<3;i++) rows[i]=new ...
{ "pile_set_name": "StackExchange" }
Q: Following definite integral Here is the integral: $$\int_{0}^{2}\sqrt{x+\sqrt{x+\sqrt{x+\sqrt{x+\ldots}}}} dx$$ Here is my work: $$\sqrt{x+\sqrt{x+\sqrt{x+\sqrt{x+\ldots}}}} := y \implies x=y^2-y$$ By implicit differentiation, $$1 = 2y\frac{dy}{dx}-\frac{dy}{dx} \implies dx=dy(2y-1)$$. So the integral is $$\int_{...
{ "pile_set_name": "StackExchange" }
Q: Getting 'Consent Required' error despite successful permission grant using Oauth URL I am using the example from https://github.com/docusign/docusign-python-client (docusign python SDK). Despite granting access by logging in using the URL given by oauth_login_url below, the subsequent "api_client.configure_jwt_aut...
{ "pile_set_name": "StackExchange" }
Q: Must GnuPG to have installed keys for every username profile? I'm running (on my local machine) the GPG (wingpg ) - command line version. My login name at win7 - is RoyiN. ( so I have a profile for it) When I logged in - I've installed the keys (using PKA.exe) both private and public. All fine. Then I wrote this...
{ "pile_set_name": "StackExchange" }
Q: Overlapping vertices on sphere? Iv started up doing some programming in XNA as Iv been doing C# for several years and would like to start do some 3D work with C# and XNA framework. Right now Im trying to build a sphere by code. It renders fine, but as soon as I apply some light it looks like it it is drawn twise ...
{ "pile_set_name": "StackExchange" }
Q: How can I return custom http header in asp.net core? Ciao, I'm developing a series of microservices with aspnet core. I want to return a custom http header on 500 responses. I tried to create a custom ASP.NET Core Middleware that update context.Response.Headers property but it works only when the response is 200. ...
{ "pile_set_name": "StackExchange" }
Q: How to add @ symbol before column value and separate with ' , '? I want to add @ symbol to a column name and separated each by ',' I tried with substring() as the following: declare @tmp varchar(250) SET @tmp = '' select @tmp = @tmp + COLUMN_NAME + ', @' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME ='tbl_e...
{ "pile_set_name": "StackExchange" }
Q: Undecidable unary languages (also known as Tally languages) An exercise that was in a past session is the following: Prove that there exists an undecidable subset of $\{1\}^*$ This exercise looks very strange to me, because I think that all subsets are decidable. Is there a topic that I should read to find a pos...
{ "pile_set_name": "StackExchange" }
Q: Enzyme simulate('change') on select does not increase func coverage I've got a component with a select inside it <select onChange={this.handleChange}> {this.props.options.map(this.renderOption)} </select> and the following function handleChange(e) { const element = e.target; this.props.onChange.call(...
{ "pile_set_name": "StackExchange" }
Q: Do people respond more to $ off promos or % off promos? In the past we've typically used promotional codes on our site in either banners or other advertisement placed images. And I was wondering if anyone has any information on performance of banners with using Dollar amounts off or Percentage amounts. For example...
{ "pile_set_name": "StackExchange" }
Q: Extracting the Number of Pixels within Buffers around Various Points in Google Earth Engine? I have a Feature Collection of various points, each of which I've drawn a 2.5km buffer around using the following: var bufferBy = function(size) { return function(feature) { return feature.buffer(size); ...
{ "pile_set_name": "StackExchange" }
Q: Where in the Windows phone device is SQLite db file located/stored? I'm working on a WP8 app involving SQLite. So when the code for creating and populating the database is executed, I want to be sure the db file is really created on the device and also verify its contents using an SQLite browser. In creating the ...
{ "pile_set_name": "StackExchange" }
Q: Easy Frontend/GUI for Python I have seen a few solutions to this, but I want to know what the absolute best front-end solution is for my application. I'm making a basic web app, that needs a front end capable of taking in input and storing it, then display it later. I need an easy to learn a solution that works wi...
{ "pile_set_name": "StackExchange" }