text
stringlengths
181
35.5k
meta
dict
Q: Can't access particular website on Windows Server, but ping works In my Windows Server hosted in AWS, I tried to access a particular site from Chrome/IE and both browsers returned - the site can't be reached/the server refused to connect. However, when I try to ping the same website from cmd it seems to work just ...
{ "pile_set_name": "StackExchange" }
Q: Mixing audio with HDMI video to replace the sound from the camera I would like to live-stream from a camera, but replace the audio from the camera with a higher-quality mixed soundtrack, ready for sending over HDMI to a transmission device. How can I do this? I know that the Tascam DR-701D has two HDMI ports (in a...
{ "pile_set_name": "StackExchange" }
Q: Confluence wiki format put new paragraph I'd like to put empty linespace (<p></p> in HTML) in Confluence wiki result, but failed whatever I tried. Based on the the document, it said two carriage-return will put <p></p> but \r\r, \n\n, \n\n\n\n, etc.trials are not working at all. POST http://wiki.mysite.com/rest/ap...
{ "pile_set_name": "StackExchange" }
Q: Skip "$RECYCLE.BIN" when copying all directories I am trying to copy all folders to c: the issue is it keeps trying to access the recycle bin folder. I tried many thing to avoid it but it did't work. I had same issue with system volume information but i simply skipped over it. I don't know why this approach is not...
{ "pile_set_name": "StackExchange" }
Q: How to search all levels nested Javascript object I have a Javascript Object that represents a nested JSON string like this: http://pastebin.com/vwZb1XrA There are many levels that contain a "name" element. For example "SVI" or "Population" or "Human Development Index". I am trying to find a way to iterate over e...
{ "pile_set_name": "StackExchange" }
Q: How do I remove all headers from a CURL Post I am trying to post xml to a server using cURL without any headers but I can't seem to get rid of the following headers: Content-Disposition: form-data; name="data"; filename="tempData.xml". Does anyone know how to remove these headers and just send the file? Code is b...
{ "pile_set_name": "StackExchange" }
Q: load an object twice and change one of them, the other one doesnt changed Father father = BL.GetFatherById(1); Product product = BL.GetByID(123); (father.Products[553] == product) product.delete = true; father.Products[553].delete == false !!?? why is that ? aren't they connected ?? its the same o...
{ "pile_set_name": "StackExchange" }
Q: Rails Form Helper not reading question mark for object attribute Ruby Version: 2.0 Rails Version: 4.0 I have a controller Question, which has an embedded form for a model Answer. question.rb class Question < ActiveRecord::Base has_many :answers, :dependent => :destroy accepts_nested_attributes_for :answers...
{ "pile_set_name": "StackExchange" }
Q: RequestError: Error: connect ECONNRESET 127.0.0.1:8443 I'm querying 127.0.0.1:8443 via request-promise in NodeJS with 10K+ requests and are hitting: { RequestError: Error: connect ECONNRESET 127.0.0.1:8443 and/or { RequestError: Error: read ECONNRESET If I lower my number of requests to say 10-100 there's no err...
{ "pile_set_name": "StackExchange" }
Q: change value of tag respecting conditions I want to read a csv file. The first column refers the tag source, the second column refers to the value source, the third column refers to the target value to change . The last column refers to the tag name changed. How can I do it dynamically please? Types1, Init, INIT...
{ "pile_set_name": "StackExchange" }
Q: How to pass javascript variable value in apex controller When i click on the image it's show javascript alert in alert i got the id and open popup which is fine but after that when i call apex controller method using actionfunction i got string value null in debug log and no value shown on my popup. public class ...
{ "pile_set_name": "StackExchange" }
Q: How to get correct product url for multistore magento? I am running following code in Magento root to get the product urls <?php require_once('app/Mage.php'); umask(0); Mage::app(1); $collection = Mage::getModel('catalog/product') ->setStoreId(1) ->getCollection(); foreach( $collection...
{ "pile_set_name": "StackExchange" }
Q: Square classes of $\mathbb{Q}_2^\times$? Does anyone know how to easily compute them? We know that a number is a square modulo $2^k$ if and only if it's a square modulo $8$. This gives a bunch of integers that represent square classes. I also know that $$\mathbb{Q}_2^\times \cong \mathbb{Z}\times (1+2\mathbb{Z}_2)...
{ "pile_set_name": "StackExchange" }
Q: JavaScript and the Enterprise I figure this is a good place to ask this question: Is anyone aware of the "standard" procedure or know how common it is these days that enterprise businesses disable JavaScript (or only allow it on a specified list of websites)? Any information someone can link me to back up anything...
{ "pile_set_name": "StackExchange" }
Q: problem with char arrays in network programming I have the following: nodeID = abcde.abc.edu_12345 and I need to append the an underscore and a 10digit value returned by time() to create the following: node_inst_ID = abcde.abc.edu_12345_1016320007 where 1016320007 is the 10 digit value returned by time(). I am try...
{ "pile_set_name": "StackExchange" }
Q: Get data whenever email is sent to an email id and update db with email information I am trying to write a webservice and configure my webserver such that whenever I send an email to xyz@domain.com, it should make an API call store email details in DB. I was using Cloudmailin to implement similar functionality bef...
{ "pile_set_name": "StackExchange" }
Q: Java: Execute /cmd /c start path-with-spaces\program.exe I've read a lot about the question but the answers I have found don't work completely. I try to run this code : String[] args = {"cmd","/c","start","C:\\Program Files\\XML Marker\\xmlmarker.exe"}; Runtime rt = Runtime.getRuntime(); ProcessBuilder pb = new Pr...
{ "pile_set_name": "StackExchange" }
Q: Docker from python Please be gentle, I am new to docker. I'm trying to run a docker container from within Python but am running into some trouble due to environment variables not being set. For example I run import os os.popen('docker-machine start default').read() os.popen('eval "$(docker-machine env default)"')....
{ "pile_set_name": "StackExchange" }
Q: Is there a word (or phrase) that describe a series of mishaps/misfortunes in one's life? I don't mean something like 'many hardships' or 'several tragedies'. I'm looking for a word or short phrase that would describe just a really rough spot or time frame in someone's life. For instance, [s]he was fired, lost a lo...
{ "pile_set_name": "StackExchange" }
Q: What text editors let you view and edit multiple files in a single long page (similar to Scrivener's Scrivenings mode)? What text editors allow you to view and edit multiple files as though they were a single long page? So, instead of having to switch to a different tab or window to edit a different file, you can ...
{ "pile_set_name": "StackExchange" }
Q: I am famous, I am in maths , I am the sun. What am I? This is my first question, so feel free to edit. I am open to suggestions. Oh! I am so excited!! This is my first puzzle! I can show you where the things are. Ready for a quick game? I am rich you know! I can be usually in a command, or a hat. And... I...
{ "pile_set_name": "StackExchange" }
Q: Iterating through linked objects, how to avoid duplicates I have an array of objects that are linked together by a unique id. Something like this: var nodes = []; nodes[0] = {'id':1,'linksTo':[2,3],'x':1,'y':1}; nodes[1] = {'id':2,'linksTo':[1],'x':2,'y':1}; nodes[2] = {'id':3,'linksTo':[1],'x':2,'y...
{ "pile_set_name": "StackExchange" }
Q: Can't exclude directory names with cw-rsync I'm using cw-rsync under Windows 7 to copy files off my local machine every day to an rsync server running on a Linux box. It works fine, apart from the fact that I can't seem to exclude directory names properly. Right now, in my exclude file, I have: My Documents/ My Do...
{ "pile_set_name": "StackExchange" }
Q: Compact mATX case for NAS system with four 3.5" drives I'm looking for a compact mATX case for a NAS system. One that I can stick in a corner somewhere and forget about (figuratively). I have done some research into this, but all results I found that were less than 50 USD only had three or fewer drive bays. I foun...
{ "pile_set_name": "StackExchange" }
Q: Serialization doesn't accept my KnownTypeAttribute, why? I've got stuck with a serialization problem. My Silverlight app doesn't expect one of my properties in a businessobject and doesn't know what to do about it. Previously I have solved this by setting a KnownTypeAttribute like the example below but in this cas...
{ "pile_set_name": "StackExchange" }
Q: Scope and Entity class I am new to JSF and EE and trying to understand the best approach to make the right design decisions for a project. I am working on my own, relearning after 20+ years and pursuing a very ambition business idea. My question relates to system overhead and performance implication by the design ...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to get a certificate for spring boot API to convert from http to https other than self signed certificates? I use Spring boot for my API and I tried enabling https for my application with a Self signed certificate but while accessing that firefox and chrome showed warnings saying Warning: Potential ...
{ "pile_set_name": "StackExchange" }
Q: Since upgrade to 18.04 libreOffice calc no longer imports xml Since I upgraded Ubuntu to the latest, the Data->Xml import in libreOffice Calc is greyed out and non functioning. apt-get libreoffice reports that the latest version is installed. A: OK, I think I found something that might help you. Warning: This ...
{ "pile_set_name": "StackExchange" }
Q: Single exclamation mark in Kotlin What does a single exclamation mark mean in Kotlin? I've seen it a few times especially when using Java APIs. But I couldn't find it in the documentation nor on StackOverflow. A: They're called platform types and they mean that Kotlin doesn't know whether that value can or canno...
{ "pile_set_name": "StackExchange" }
Q: Find all combinations of elements in an array The problem I am trying to solve is that I want to generate an array which represents all combinations of elements in a source array. Given an input of 2 items, there are 4 combinations (represented here as binary) Group 1 | 0 | 1 | 0 | 1 Group 2 | 0 | 0 | 1 | 1 ...
{ "pile_set_name": "StackExchange" }
Q: How many houses can I buy? So far I have found a purchased two houses, one near the festival and one on the coast. How many purchasable properties are available for me to buy? A: There are multiple houses / residents to buy. From what I can find on google there are about 12 houses/castles. Here is the full list...
{ "pile_set_name": "StackExchange" }
Q: Changing HighCharts background color? I don't really know how to do this. I need to change background color of this highcharts chart: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/polar-spider/ But I don't seem to be able to do so - there doesn't seem...
{ "pile_set_name": "StackExchange" }
Q: extension of cauchy schwarz inequality I Want to prove $(a_1^2+a_2^2)(b_1^2+b_2^2)(c_1^2+c_2^2)>_=(a_1b_1c_1+a_2b_2c_2)^2$ not quite sure how and not only upto 3 terms but to $n$ terms, I am not even sure if this inequality is true or not but I need this result to solve the following problem A: RHS $\leq (a_1^...
{ "pile_set_name": "StackExchange" }
Q: Crystal Reports - Selecting data in the first row to be used in a formula I have a very basic report with no groups. The details consists of a number of numeric columns. I want to add a formula field which will use a field from the first row. Example: (ColumnAFromCurrentRecord - ColumnBFromFirstRecord) / ColumnB...
{ "pile_set_name": "StackExchange" }
Q: Is there a difference between the `if else` and the `if-else if-else`? In WikiPedia article for Binary Search there is a section called Deferred detection of equality which presents a somewhat "optimized" version of binary search as follows: int binary_search(int A[], int key, int imin, int imax) { while (im...
{ "pile_set_name": "StackExchange" }
Q: Error in Iterating through Pandas DataFrame with if statement I have the following pandas DataFrame. Id UserId Name Date Class TagBased 0 2 23 Autobiographer 2016-01-12T18:44:49.267 3 False 1 3 22 Autobiographer 2016-01-12T18:44:49.267 3 False 2 4 21 A...
{ "pile_set_name": "StackExchange" }
Q: Label line in qplot I have a qplot that is showing 5 different groupings (denoted with colour = type) with two dependent variables each. The command looks like this: qplot(data = data, x = day, y = var1, geom = "line", colour = type) + geom_line(aes(y = var2, colour = value) I'd like to label the two diffe...
{ "pile_set_name": "StackExchange" }
Q: Joint Probability distribution for $Z=X/(X+Y)$ Suppose X and Y are two independent random variables with exponential distributions Exp(1) $Z=X/(X+Y)$ Find $P(Z<z)$ and show the random variable Z has uniform distribution. Thanks A: For $z\in\left(0,1\right)$ we find: $$P\left(Z\geq z\right)=\int_{0}^{\infty}P\le...
{ "pile_set_name": "StackExchange" }
Q: Problems when a json string has extra " in it using JObject.Parse The Following string gives an error when using the following code: data = await resposta.Content.ReadAsStringAsync(); dynamic j = JObject.Parse(data); The data in contains the following string: {"code": 100, "message": "The entity with the name "...
{ "pile_set_name": "StackExchange" }
Q: Spring JMS junit test can't find @Component annotated receiver I'm trying to test JMSSender and JMSReceiver, the JMSSender is autowiring correctly, but the JMSReceiver is not. No qualifying bean of type 'br.com.framework.TestJMSReceiverImpl' available: expected at least 1 bean which qualifies as autowire cand...
{ "pile_set_name": "StackExchange" }
Q: How to change the accordion menu icon with JS? I have a menu (accordion) that uses Bootstrap 3.3.7 and Font Awesome 5.0.1 What I am looking for : When the menu is closed, a "plus" icon is displayed. When the menu is open, a "minus" icon is displayed. The "plus" icon is displayed on the menu but does not change. I ...
{ "pile_set_name": "StackExchange" }
Q: Get list of Functions from NLua I am using NLua for script interface with my application if my application takes multiple files such as one.lua and two.lua i want to get all the functions in all files in to a list of luafunctions List<LuaFunctions> Functions; NLua doesnt seem to have such a feature, but is there ...
{ "pile_set_name": "StackExchange" }
Q: Obtener posición de un div con scroll Tengo, por ejemplo, un <div> en cierto punto de la página. Lo que quiero es que cuando el scroll esté en la misma posición de ese div me ejecute una función. Por ejemplo: if(Scroll == div){div.innerHTML="altura es ???'" ;} Lo intenté hacer con scrollTop pero solo me ejecuta l...
{ "pile_set_name": "StackExchange" }
Q: How to display only one representative contour line in legend? I have a layer of topographic contour lines, graduated by color (using QGIS). My legend wants to display every level and its color. This is not feasible. I need to simply show one representative line, which I'll edit to be labeled "Topographic contour ...
{ "pile_set_name": "StackExchange" }
Q: Length contraction and angle change I am new to special theory of relativity and it puzzles me at some points. For example, if we have a rod of length 1 meter, tilted at angle of 45 degrees ( x axis) and it moves at the speed of $v=0.95c$ in the direction of x axis, how come the angle at which it is tilted changes...
{ "pile_set_name": "StackExchange" }
Q: Controllers design pattern I have a design question about MVC and controllers I have this two routes Route::get('/foo/{id}', FooController@show) Route::get('/bar/{id}', BarController@show) But know, I would like to add another route for the index like this Route::get('/', ???) In this route, I need some informat...
{ "pile_set_name": "StackExchange" }
Q: How can I get a list of databases and collections on a MongoDB server? I'm writing a GUI client for MongoDB in C. I use the C driver for MongoDB. I want to get a list of databases and their collections, but I can't find any functions in the documentation to do that. How can I get a list of databases and collection...
{ "pile_set_name": "StackExchange" }
Q: Array sort with mixed alphabetical and numerical content not working in Firefox I have a JavaScript Array called years with some dates and one textual item like so: [ "2017", "2018", "2019", "historic" ] I want to sort it so that 'historic' comes first, and then the remaining numbers are sorted numerically. The fo...
{ "pile_set_name": "StackExchange" }
Q: ASP.NET HTTPClient Get request status waiting for activation I am writing a method that will return JSON data by making a GET request to a RestApi URL. When I run the application in debug mode, I get below data in response. Id = 337, Status = WaitingForActivation, Method = "{null}", Result = "{Not yet computed}" H...
{ "pile_set_name": "StackExchange" }
Q: Swift -Ounchecked and Assertions Preface In Swift, ENABLE_NS_ASSERTIONS is ignored, and whether assertions are on or off is dependent of SWIFT_OPTIMIZATION_LEVEL, see here for more information. assert() is active for -Onone assertionFailure() is active for -Onone precondition() is active for -Onone and -O precond...
{ "pile_set_name": "StackExchange" }
Q: Parsing Large XML with Nokogiri So I'm attempting to parse a 400k+ line XML file using Nokogiri. The XML file has this basic format: <?xml version="1.0" encoding="windows-1252"?> <JDBOR date="2013-09-01 04:12:31" version="1.0.20 [2012-12-14]" copyright="Orphanet (c) 2013"> <DisorderList count="6760"> *** Repea...
{ "pile_set_name": "StackExchange" }
Q: Can't access class instance from another class in my AppDelegate I have imported the header of a class I have created and propertied and syntesized an instance of it (in AppDelegate). Now I'm trying to access a method and a variable inside this instance from two other views. I'm relatively new to objective-c, but ...
{ "pile_set_name": "StackExchange" }
Q: Extract attachements using mailbox python? I wanted to extract email attachments from mbox using mailbox library in python. I've used following code to extract From, To, Subject, Date, Body import mailbox mbox = mailbox.mbox('/tmp/Personal Folders/Inbox/mbox') for message in mbox: print message['subject'] ...
{ "pile_set_name": "StackExchange" }
Q: Checkout second Git branch without losing local changes I have checked out a particular branch from my master. I created new classes propery files etc. in my local Eclipse and did the testing. I have not added/committed those classes/files to my local git repo. So after this successful prototype testing if I want ...
{ "pile_set_name": "StackExchange" }
Q: Stacking GTK+ widgets Is there a way to put GTK+ widgets in a stack? I.e. put a button over label so that button covers a part of label. A: You can use GtkFixed as the layout. This will allow you to control exact locations of the child widgets, and they can overlap.
{ "pile_set_name": "StackExchange" }
Q: Tab DIVs docked within browser. Slide in and out of the screen with jquery when clicked I have a couple things that I would like to do with the Divs seen in the picture attached that I have been unable to figure out. These Divs are docked in the bottom corner of the browser using CSS Positioning. I want to add a t...
{ "pile_set_name": "StackExchange" }
Q: unix: looping through results of find command I have a find command that outputs as I would like (it looks for files with strelka in the name and ends with .vcf): find . -name *strelka* | grep '.vcf$' But I want to then iterate over each and perform additional stuff. To simply experiment, I'm just having it do ...
{ "pile_set_name": "StackExchange" }
Q: No route matches [PATCH] I'm attempting to submit a form but am running into the error No route matches [PATCH] I've seen a variety of posts on this error but but in each one they only set get in their routes or some such error. I've also had no problem submitting other forms with nearly identical routing and f...
{ "pile_set_name": "StackExchange" }
Q: Проблема с обновлением в базе данных $query = "UPDATE users SET imgname ='".$imgname."' WHERE user='".$_SESSION['user']."'"; Так хочу обновить столбик imgname в таблице users, в сессии у меня имя user-а, но что-то не то. Не понимаю что. Помогите найти. A: сделайте так: $result = mysql_query($query); if (!$resul...
{ "pile_set_name": "StackExchange" }
Q: QlikView - Display datas from a field of a table Can you help me to know, how can I display data in a chart only for a field of a table ? For example, I have a table "Country" which have "France, Allemagne, Italie, ...". In my chart, I only want to display datas from France, without any selection from the user. Th...
{ "pile_set_name": "StackExchange" }
Q: Calculate weighted mean in excel I'd like some help writing this excel formula. I'm trying to calculate the weighted mean of term payments accordingly to their percentage of use but I'm failing on the last part of the logic expression. =IF(OR(B2>0,B3>0,B4>0,B5>0),(SUMIF(B2:B5,">=1",D2:D5))/(SUM(C2:C5)),0) %[B] ...
{ "pile_set_name": "StackExchange" }
Q: tap back immediately after moving the map crashes application in iPhone I came across the scenario where in if after moving the map immediately if I tap on back icon while the map has not fully loaded The application crashes. What I can understand is Since the loading is still in progress and I tap back the the ap...
{ "pile_set_name": "StackExchange" }
Q: where is authentication happening in web3js? When using web3 js to connect to ethereum private network, I just configured the http provider of the web3 instance to connect to the node. how is just info about RPC endpoint sufficient to be able to connect to a node. shouldn't there be some user authentication in pla...
{ "pile_set_name": "StackExchange" }
Q: Skybot Python IRCbot I use the skybot irc bot, I'd like to ask how to remove the nick from bots answer, like <User1> .calc 1+3 <Skybot> **User1:** 1+3=4 In each plugin there are imports, here is the script from the file that imports into all plugings (hook.py): import inspect import re def _hook_add(func, add, ...
{ "pile_set_name": "StackExchange" }
Q: How to compare great circle distance with euclidean distance of two sphere points using python? I am trying to check the error that is introduced when you compute the distance of two points on earth with the euclidean distance instead of using the great circle distance (gcd). I have two points that are defined by ...
{ "pile_set_name": "StackExchange" }
Q: Eclipse correct way to add dependency to another Maven project? I have three maven projects all under active development, One is a common library the other two perform ui tasks and use the common project. In eclipse what is the alternative of adding the common library project as a dependency manually like so: bui...
{ "pile_set_name": "StackExchange" }
Q: How to create a stored procedure to delete full data from dynamic table I'm trying to create a stored procedure to delete all data from dynamically selected tables. I used this code, but it's not working. Any suggestion? CREATE PROCEDURE spDynamicDeleteTable @table NVARCHAR(100) AS BEGIN DECLARE @Sql NVARC...
{ "pile_set_name": "StackExchange" }
Q: Скрытая загрузка файлов на облако Задача состоит вот в чем. На сайте есть пользователи и разные проекты. Для каждого проекта и каждого пользователя своя папка с файлами. В этих папках так же могут быть архивы большого размера (пару гб). Таких архивов может быть много. Пользователь может загружать и скачивать эти ...
{ "pile_set_name": "StackExchange" }
Q: Retrieving a product picture via PHP Amazon Zend Service I have installed the Amazon Zend library from GitHub and can access item information using the following: <?php require_once './Zend/Loader/StandardAutoloader.php'; $autoloader = new Zend\Loader\StandardAutoloader(array( 'nam...
{ "pile_set_name": "StackExchange" }
Q: How to load only selected data from plist file I have plist with Root as Array and then each item in this array is a Dictionary with objects: name(String) and surname(String). I want display all the names from my file. At the moment I am using this code: NSArray *myData = [[NSArray alloc] initWithContentsOfFile...
{ "pile_set_name": "StackExchange" }
Q: Simplest proof that $\binom{n}{k} \leq \left(\frac{en}{k}\right)^k$ The inequality $\binom{n}{k} \leq \left(\frac{en}{k}\right)^k$ is very useful in the analysis of algorithms. There are a number of proofs online but is there a particularly elegant and/or simple proof which can be taught to students? Ideally it wo...
{ "pile_set_name": "StackExchange" }
Q: javascript is enabled in ALL webbrowsers by default? Isn't JavaScript enabled in all webbrowsers by default? if yes, does this mean that i can use Ajax/JavaScript in my webpages without bearing in mind that maybe some browsers wont be able to use my website? I don't want to create another version of the page to di...
{ "pile_set_name": "StackExchange" }
Q: Problem using trigonometric substitution: Domain of $\theta$ I'm studying calculus from Rogawski's Calculus. In trigonometric substitution $x=a\sec \theta$ he made a note: In the substitution $x = a \sec θ$ , we choose $0\le θ \le π$ 2 if $x \ge a$ and $π \le θ < \frac{3π}2$ if $x \le −a$. With these choices, $a...
{ "pile_set_name": "StackExchange" }
Q: Using own class as a type parameter constraint in class declaration I have the following declaration of a class in Delphi XE8: TestClass = class; TestClass = class function test<T: TestClass>(supplier: TFunc<T>): T; // Compiler error end; Which throws the following compiler error: E2086 Type 'TestClass' is not ...
{ "pile_set_name": "StackExchange" }
Q: Where can I find the source code of UIDatePicker of ios4 Where can I find the source code of specific widget inside ios4? for exmaple , the code of UIDatePicker ,segment control ... Thanks advance for your help. BR, camino A: UIKit is not open source; the source code is not available.
{ "pile_set_name": "StackExchange" }
Q: Trouble selecting correct object in viewport After switching from Maya to Blender I noticed that I can't select meshes as precisely as in Maya. In Maya you select exactly what you clicked on, it doesn't matter how far the object is from the camera, you always get what you clicked on. In Blender it's fairly hard to...
{ "pile_set_name": "StackExchange" }
Q: How to test for NULL in SQL query string query = "select User_name, User_Second_Choice from tbl_User where User_Assigned_Project ='"+NULL+"'"; i try to select the rows to update so how can i change User_Assigned_Project = '"+NULL+"'"; Thank you. A: Use IS NULL not '= NULL' select User_name, User_Second_...
{ "pile_set_name": "StackExchange" }
Q: Every fourth list view item get marked by using selector instead of just the choosen one android Hey Guys I am working right now on a University project and have some problems which I found out randomly. Actually, I have to create an app (android) for an upcoming event where the user can see all the events in an o...
{ "pile_set_name": "StackExchange" }
Q: Branching on Intel micro-architecture? I need to write a script, which will work slightly differently on Intel Skylake processors. I can see that the lscpu tool outputs Model number differently on different CPUs, for example: i7-4578U Model number = 69 (it's my laptop) E5-2699 Model number = 63 (it's a server...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to assemble and run raw CPU instructions using `as`? There are a couple of related questions here. Consider a program consisting only of the following two instructions movq 1, %rax cpuid If I throw this into a file called Foo.asm, and run as Foo.asm, where as is the portable GNU assembler, I will g...
{ "pile_set_name": "StackExchange" }
Q: Python variable value adding a double quotes input_file.txt has below '123','345','567'|001 '1234','3456','5678'|0011 below is the code I am using to assign the values from input_file.txt to v_order_nbr_lst, which is working fine , but when I am using that variable inside a POST message API call like below , it i...
{ "pile_set_name": "StackExchange" }
Q: I want to get characters out of a string in Crystal Reports How can i write this SQL formula in Crystal Reports? SUBSTRING(text, 6, 4)) Sample String: A003-A113-02 Using SUBSTRING in SQL, output = A113 Tried to use the Trim function, but not getting any good result. A: Trim removes whitespace-characters at th...
{ "pile_set_name": "StackExchange" }
Q: check if a value is in several lists The task: check if 'value' is in list_1 AND list_2 Approach below - is the result of 2 minutes intuitive playing list_1 = ['3', '5'] list_2 = ['5', '7', '4'] r = '5' in (list_1 and list_2) # 'and' gets an intersection print(r) #True And it works in a way I expect. I've already...
{ "pile_set_name": "StackExchange" }
Q: How can I remove "Older Posts" option at the bottom of the Wordpress Home page? I want to show limited number of posts on homepage so how can I remove the option. A: You can put "display:none" to the container and also remove the navigation script from the home page. Can you post the code of the home page, So th...
{ "pile_set_name": "StackExchange" }
Q: rsync in non-daemon I want to know how rsync works in non-daemon mode ,and what it is exactly ? From rsync man pages , I came to know how daemon mode works . I know something about daemon mode. Daemon is a process continuously listening for connections in background. Now , the scene is ,I don't want to use Daemon ...
{ "pile_set_name": "StackExchange" }
Q: jqGrid Grouping state when filtering I am using a filter for my jqGrid grid, and the data is in groups, defaulting first state of collapsed. If a user open a group or 2 (expaning the groups) , then does the filter, the grid reloads the data, filters it correctly, but then I loose the expanded state of the groups t...
{ "pile_set_name": "StackExchange" }
Q: Sort directory list I would like to sort the output from this script. It show's an output from a complete directory with some exclusions. <?php if ($handle = opendir('.')) { $blacklist = array('.', '..', '.svn', 'pagina.php','index.php','index.html'); echo "<h1>Statistics for:</h1>"; echo "<TABLE align=left b...
{ "pile_set_name": "StackExchange" }
Q: Illustrator: How to accurately align shapes i didn't really use Illustrator before, but i'm having troubles with some basic things such as aligning shapes together accurately. I'm using this auto-snap feature to align things but it's never really pixel-accurate as shown in the screenshots: Whenever i try to resiz...
{ "pile_set_name": "StackExchange" }
Q: Best way to make mouse clicks not pass through disabled components? I'm using common windows controls such as "BUTTON" and "EDIT" for my application. There are cases where I want to disable components, so I use the EnableWindow function to make the components look disabled and not receive events. The problem is ho...
{ "pile_set_name": "StackExchange" }
Q: Number Theory: Proving polynomials with parity Prove that if P(x) is a polynomial with integer coefficients such that P(0) and P(1) are both odd, then it has no integer roots. A: Well, $a\equiv b\mod 2$ implies $P(a)\equiv P(b)\mod 2$, and so if $P(0)$ and $P(1)$ are both odd, so is $P(n)$ for all other integers...
{ "pile_set_name": "StackExchange" }
Q: why using eval and parsonJson together? I think jquery $.parseJSON can convert jsons string to JavaScript object, why someone still use eval($.parseJSON) together? A: Seems like redundant at all. jQuery parseJSON function uses native JSON in browsers that support it. According to Douglas Crockford (the author o...
{ "pile_set_name": "StackExchange" }
Q: Create own steam overlay My end goal is to create a overlay to steam games similar in functionality to the discord steam overlay. I know this is a monstrous task so I am exploring all of my possibilities. The overlay built into steam is good, but you cannot play a game with it open. Looking into steam's VGUI editi...
{ "pile_set_name": "StackExchange" }
Q: Accessing modified files in repository using JGit I am using JGit to access a local repository using Java. I need to access the changed files of a repository which is typically executed using the git status command in git. What is the JGit implementation for this command? So basically I need the JGit representatio...
{ "pile_set_name": "StackExchange" }
Q: Static cast of enum to bool, performance warning from Compiler I have the following declared in my project: enum class OType : bool { Dynamic=true, Static=false }; OType getotype(); I'm using the following function: double ComputeO(double K,bool type) I'm calling it this way : ComputeO(some double, static_cast<b...
{ "pile_set_name": "StackExchange" }
Q: SQL Server SPID is sleeping or runnable but nothing happens for over an hour I use SQL Server 2012 BI edition. I've executed two SQL Agent Jobs that run SSIS packages. Historically, the jobs have been running absolutely fine. Today, the jobs just stopped/hanged just before completing step 1 out of 4. I've run sp_w...
{ "pile_set_name": "StackExchange" }
Q: Why is my Systemd unit arkos-redis loaded, but inactive (dead)? Here's what I have in my service file, arkos-redis.service: GNU nano 2.4.2 File: /usr/lib/systemd/user/arkos-redis.service [Unit] Description=Advanced key-value store [Service] ExecStart=/usr/bin/redis-server /etc/arkos/arkos-redis.c...
{ "pile_set_name": "StackExchange" }
Q: MS Access Limit What's the equivalent of mysql Limit in ms access. TOP is not sufficient since I'm going to use it for pagination. Thanks A: There isn't one. Your best bet is to add an ID column as a primary key (if you don't already have one) and chunk output by looping through: SELECT * FROM table WHERE id ...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to apply ModelState.IsValid to just one table of a Data Entity Model? So I currently have a view that needs an entire data entity for display purposes, but I only want to post data for one table to the controller and validate it. @model MvcExample.Models.DataEntities @using(Html.BeginForm("Action...
{ "pile_set_name": "StackExchange" }
Q: How to make "uses-library" optional in android I have built an android app which use Google Map feature. I want my app installed on phones which does not install Google Map, in that case, I would disable the map feature. There is a "uses-library" tag in manifest file, what can I do with that? A: @CommonsWare: I ...
{ "pile_set_name": "StackExchange" }
Q: C# linq Files.ReadAllLines() fails for large 650MB CSV file The following code works when I work with CSV files under 1MB but fails when I try to read 600MB file. Any reason why? Or any fixes? What I am trying to do is read a large raw CSV file in Visual C# 2010 and manipulate the contents, could be line by line...
{ "pile_set_name": "StackExchange" }