text
stringlengths
175
47.7k
meta
dict
Q: jquery form field write issue I am updating hidden field in form with jquery. it works just fine for first three clicks after that it shows only first element value. Here is working js fiddle jsfiddle link: when users is clicking on tab the value of fileorurl changes to 1,2 or 3. it works for first 3-5 click but a...
{ "pile_set_name": "StackExchange" }
Q: C++ ODBC SQL_ATTR_PARAMS_STATUS_PTR missing in header I am trying to bind a structure with Rowset binding ala: http://msdn.microsoft.com/en-us/library/aa215456(v=sql.80).aspx THIS IS AN MSDN TYPO! A: It's in sqlext.h, so: #include "sqlext.h" Unless you wish to have the difference between sql.h and sqlext.h as ...
{ "pile_set_name": "StackExchange" }
Q: Using TaskCompletionSource Within An await Task.Run Call I am getting unexpected behavior that I would like to shed some light on. I've created a simple example to demonstrate the problem. I call an async function using Task.Run, which will continuously generate results, and uses IProgress to deliver updates to ...
{ "pile_set_name": "StackExchange" }
Q: Should answer votes be cast based on their accesibility to the asker? I occassionally see answers to questions which appear to require a greater level of knowlege than the asker has. Should votes be cast on answers depending on how understandable they are to the asker? People who view the question (and of course ...
{ "pile_set_name": "StackExchange" }
Q: laravel add scheduler dynamically I have a system where the user can create background tasks via the UI. The task interval are every few hours (user choice in the UI). when the user creates a task via the ui i want to add it to the scheduler dynamically. As the example states, this is static and not dynamic. prote...
{ "pile_set_name": "StackExchange" }
Q: Methods of evaluating $ \sum_{k=1}^\infty \frac{(m+k)!}{k!}\frac{1}{5^k}$? I am interested in ways of evaluating the following infinite seris: $$ \sum_{k=1}^\infty \frac{(m+k)!}{k!}\frac{1}{5^k}. $$ I already know the answer from Wolfram Alpha but I would like to see some methods of evaluating it as I haven't been...
{ "pile_set_name": "StackExchange" }
Q: Determine if the end of a string overlaps with beginning of a separate string I want to find if the ending of a string overlaps with the beginning of separate string. For example if I have these two strings: string_1 = 'People say nothing is impossible, but I' string_2 = 'but I do nothing every day.' How do I fi...
{ "pile_set_name": "StackExchange" }
Q: reprint capture.output(glimpse(df)) to look the same as glimpse(df) tibble::glimpse() provides easy-to-read printed output: library(tidyverse) glimpse(mtcars) #> Observations: 32 #> Variables: 11 #> $ mpg <dbl> 21.0, 21.0, 22.8, 21.4, 18.7, 18.1, 14.3, 24.4, 22.8, 19.... #> $ cyl <dbl> 6, 6, 4, 6, 8, 6, 8, 4, 4,...
{ "pile_set_name": "StackExchange" }
Q: Pandas map (reorder/rename) columns using JSON template I have a data frame like so: |customer_key|order_id|subtotal|address | ------------------------------------------------ |12345 |O12356 |123.45 |123 Road Street| |10986 |945764 |70.00 |634 Road Street| |32576 |678366 |29.95 |36...
{ "pile_set_name": "StackExchange" }
Q: Binding value not passed to user control in WPF I've looked long and hard and am stuck. I'm trying to pass a parameter from Window to UserControl1 via a binding from Window. In the MainWindow, the UserControl1 is included twice, once passing the parameter MyCustom via a binding on MyValue, again with a literal. P...
{ "pile_set_name": "StackExchange" }
Q: Tools for Version control for Xcode For my iPhone App I want to Use version Control for Xcode so Can anyone please suggest me some user friendly tools for that which help me to configure version control for Xcode Please Help and Suggest, Thanks. A: Xcode 3.x includes built-in support for Subversion. You may fi...
{ "pile_set_name": "StackExchange" }
Q: WPF - Dynamically add button next to textbox I am creating Label, Textbox and a button dynamically. I need Button to appear in the same line as textbox to its right. This is the code i am using: Label lbl = new Label() { Content = "Some Label", HorizontalAlignment = HorizontalAlignment.Left...
{ "pile_set_name": "StackExchange" }
Q: How can a book get a Kirkus Star, yet have no sales? How can a 3-year-old book receive a positive rating from Kirkus, and even earn a Kirkus Star, yet still have almost no sales? I have a book coming out in a few months, and I thought if I had a positive Kirkus review, I would just promote it, and put everything ...
{ "pile_set_name": "StackExchange" }
Q: Please explain how this wake-on-LAN script works I found this PowerShell code on a blog a couple months ago. It sends wake-on-LAN signals to the MAC address of your choice without using external programs. I commented on the blog post and asked the author to describe the logic behind the script because I was curiou...
{ "pile_set_name": "StackExchange" }
Q: Получить дельту значений в столбце DataFrame Имеется один столбец, необходимо добавить в DF второй по определенной формуле . В данном случае столбец Б - это изменение (дельта) значений в столбце А Например, есть исходный столбец А А 1 2 6 8 12 На выходе должны получить столбец Б - 1 4 2 4 A: Воспользуйтесь мет...
{ "pile_set_name": "StackExchange" }
Q: Ignore the initial value of the parameter in calculation I have the following code. The formula is answer = (b*a)+c. I want to display a and the answer c = 9 qq = 4 b = 5 a = 0 for i in range(5): answer = (b*a)+c a += qq print a, answer Once this program runs, it displays its values starting from ...
{ "pile_set_name": "StackExchange" }
Q: How to specify a git merge "ours" strategy with .gitattributes for deleted files? I have 2 branches in my project: A (master) & B. In branch B some of the files that are in master have been deleted. I want to avoid merge conflicts when there are changes in master to files that have been deleted in B. I have added ...
{ "pile_set_name": "StackExchange" }
Q: Is my understanding of the relationship between virtual addresses and physical addresses correct? I've been researching (on SO and elsewhere) the relationship between virtual addresses and physical addresses. I would appreciate it if someone could confirm if my understanding of this concept is correct. The page ta...
{ "pile_set_name": "StackExchange" }
Q: Git unable to push to remote repository: "Read-only file system" Trying to push to a remote repository gives me the error: error: unable to create temporary sha1 filename : Read-only file system Funny enough, it worked perfectly fine for the push 30 minutes earlier. Another thing worth noting is that I'm the onl...
{ "pile_set_name": "StackExchange" }
Q: knockout dropdown depend on each other with additional info I'm trying to make a simple knockout.js-page: First the user needs to select a car brand, after that, a model. This works. Now i want additionally the number of doors shown (4 or 5). But the number of doors (selectedModel().AantalDeuren') are never shown....
{ "pile_set_name": "StackExchange" }
Q: JApplet scrollbar using JScrollPane shows but doesn't scroll Graphics2D content outside screen I am trying to add a scrollbar to a JApplet component. I know I shouldn't use it and should rather use JPanel, but for sake of semplicity I'll leave it like it, as in a tutorial I am following. As you can see I tried add...
{ "pile_set_name": "StackExchange" }
Q: How to sort a Map by Key and Value, whereas the Val is a Map/List itself I am having a hard time understanding the right syntax to sort Maps which values aren't simply one type, but can be nested again. I'll try to come up with a fitting example here: Let's make a random class for that first: class NestedFoo{ int...
{ "pile_set_name": "StackExchange" }
Q: Getting error "ValueError: time data '' does not match format '%Y-%m-%d %H:%M:%S'" Here is a sample of the df: pId tPS tLL dZ 129 2019-12-02 15:04:09 2019-12-02 15:06:31 5f723 129 2019-12-02 15:04:15 2019-12-02 15:06:37 5f723 129 2019-12-02 15:05:15 2019-12-02 15:07:37 5f723 129 201...
{ "pile_set_name": "StackExchange" }
Q: Installer hangs when selecting full disk encryption I'm doing a fresh install of Ubuntu 15.04. On the "Installation type" screen, I select "Erase disk and install Ubuntu" and then check "Encrypt the new Ubuntu installation for security", which causes "Use LVM with the new Ubuntu installation" to be automatically c...
{ "pile_set_name": "StackExchange" }
Q: Django only get object if one of it's subobjects meets condition So I have two models: class Business(models.Model): def __str__(self): return self.name name = models.CharField(max_length=200) class Appointment(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=mode...
{ "pile_set_name": "StackExchange" }
Q: How do I uninstall any Apple pkg Package file? Despite opinions to the contrary, not all packages are installed cleanly in only one directory. Is there a way to reverse the install process of a pkg file, preferably with the original package (or from a repository of information about installed packages)? Specifical...
{ "pile_set_name": "StackExchange" }
Q: Check if relations exists for a parent node before deleting it so that we don't have any orphan child node Here I am trying to delete a parent node but only if it doesn't have any child node. Please review this code. PostController.php /** * Delete the given post. * * @param int $post_id * @return void * *...
{ "pile_set_name": "StackExchange" }
Q: Finding list entry with the highest count I have an Entry data type data Entry = Entry { count :: Integer, name :: String } Then I want to write a function, that takes the name and a list of Entrys as arguments an give me the Entrys with the highest count. What I have so far is searchEntry :: String -> [...
{ "pile_set_name": "StackExchange" }
Q: If 1 is the identity of the multiplicative (semi)group what is the term for 0? Broadly given an operator $*$ the term identity is used for an element $e$ such that $x * e = x$ for all elements. However is there a term for a value $ x * O = O$ for all values? This was brought to mind by this question What is the i...
{ "pile_set_name": "StackExchange" }
Q: Perl writes LF as CRLF on Windows I have gotten some stray Windows-style line endings in a couple of files and I am trying to resolve it on my Windows machine with the following command: perl -pi -e s/\R/\n/ example.txt After running this all line endings in the files this was run on have been changed to CRLF, wh...
{ "pile_set_name": "StackExchange" }
Q: Aggregate variables in list of data frames into single data frame I am performing a per policy life insurance valuation in R. Monthly cash flow projections are performed per policy and returns a data frame in the following format (for example): Policy1 = data.frame(ProjM = 1:200, Cashflow1 = r...
{ "pile_set_name": "StackExchange" }
Q: Цикл с заданными параметрами при get запросе Работаю с джанго. На первый get запрос создается объект модели CurrentGame с заданными полями, в котором имеется поле small_blind_seat(номер места). После завершения всех операция, посылается новый get запрос и создается новый объект модели CurrentGame. Нужно чтобы поле...
{ "pile_set_name": "StackExchange" }
Q: Making a toroidal array in C# (console) for my Conway's game of life, need a little help Hey there, the way my program works so far is... I have a class called Grid, so far this works, Grid contains a member, 'board' which is a 2D array of bools. I manage to load values from a file into the grid fine, in fact I ...
{ "pile_set_name": "StackExchange" }
Q: Why don't researchers publish failed experiments? The following might be a slight generalization for all fields but something I've noticed especially in the field of Scientific Computing: Why don't people publish failures? I mean, if they tried some experiment and realized at the end that they tried everything an...
{ "pile_set_name": "StackExchange" }
Q: Why does HP Update at remote system trigger RDP printing at local system? This is obscure. When connected with RDP to another system that has HP Update installed on it, either directly running the HP Update or having the notification pop up to ask if you want to run HP Update causes the local system to try to prin...
{ "pile_set_name": "StackExchange" }
Q: Submit a new request to the controller upon changing form_dropdown I'm not sure if there is a better way of doing this than with JavaScript, but I'm trying to call a controller when the select state of a form_dropdown is changed. I don't need to change some part of my page, I need to just call the controller again...
{ "pile_set_name": "StackExchange" }
Q: How can I send unicode characters by using tmux command? Here is my tmux command tmux send-key -t session:window.pane say 安安 enter but the result is root@debian:~# say (There is no "安安", unicode characters.) How can I send the non-ASCII Characters??? (my tmux version is 1.8) A: This is a known bug in tmux 1.8 ...
{ "pile_set_name": "StackExchange" }
Q: When was brehmsstrahlung discovered? I remember that not long ago wikipedia had somewhere info regarding the discovery of that phenomenon, but apparently all reference hasbeen removed. Searching the web I found a serbian site claiming that Tesla discovered it in 1892, and published his finding in 1897. Tha is con...
{ "pile_set_name": "StackExchange" }
Q: Question has been migrated to an other website I posted my question on Serverfault.com on a day back. URL: Access Remote files through http path. But I noticed after a day, a notification alert shown me that "Your question "Access Remote files through http path" was migrated to Unix & Linux Stack Exchange." I don'...
{ "pile_set_name": "StackExchange" }
Q: asy there any way to change color of UIWebView of Iphone Application I am using webview to display Data from RSS Feed Can I change color of WebView to Black From white. I have declare outlet in xib file named RemainingRssViewController and i am diplaying it from root view controller the code is NSString *htmlstri...
{ "pile_set_name": "StackExchange" }
Q: AS3 - How to get a reference to the container of an aggregated object? Simple enough. If I have a container class that holds a Sprite object, and I attach a touch listener to said Sprite, is there a reliable and cheap method of getting the object that contains the Sprite when it is touched? I realize I could just ...
{ "pile_set_name": "StackExchange" }
Q: How to locate cause of "A string is required here" error Let me start by saying I'm a web developer inheriting a VB6 / Crystal Reports application, and I don't know either very well. My client was using Access as their database, and I've migrated them to SQL Server. Going back is not an option. I've gotten nearly ...
{ "pile_set_name": "StackExchange" }
Q: Sign In with FB issue: FB popup window with the Login dialog is blocked by a web browser FB documentation says: As noted in the reference docs for this function, it results in a popup window showing the Login dialog, and therefore should only be invoked as a result of someone clicking an HTML button (so that ...
{ "pile_set_name": "StackExchange" }
Q: C#, Windows Forms: How to prevent firing of EventHandlers while data is retrieved from the backend I have over 40 controls (TextBox, RadioButton, CheckBoxes, etc.) on Windows Forms. Each control is registered for EventHandlers (TextChanged, CheckChanged, etc.). I want to prevent these events from firing during ini...
{ "pile_set_name": "StackExchange" }
Q: One machine blocked from a single server, and only when it's at this physical location? I host an e-commerce website for a client who suddenly is unable to access it from his computer. He can ping the server, he can SSH in, but cannot load the website in any browser we've tried: IE, Firefox, Chrome, Opera. Other...
{ "pile_set_name": "StackExchange" }
Q: Bitmap PNG save without modifications I am attempting to load a PNG image into a Bitmap and save it without modifications. I tried something along these lines: var png = Bitmap.FromFile("t_02.png"); png.Save("t_02_out.png", ImageFormat.Png); I also tried: var png = Bitmap.FromFile("t_02.png"); png.Save("t_02_out....
{ "pile_set_name": "StackExchange" }
Q: What is the purpose of dividing an audio signal into segments and analysis each segment? I read bunch of materials for extracting feature from audio signal and they all tell me to break signal into segments, why don't we analyze all the audio signal? I don't know what are the advantages of doing that and how wide ...
{ "pile_set_name": "StackExchange" }
Q: Can this be modified to run faster? I'm creating a word list using python that hits every combination of of characters which is a monster of a calculation past 944. Before you ask where I'm getting 94, 94 covers ASCII characters 32 to 127. Understandably this function runs super slow, I'm curious if there's a way ...
{ "pile_set_name": "StackExchange" }
Q: Setting high frame rate recording in Swift i'm trying to create an app to record video at 120fps but i'm having troubles. First, when print(device.activeFormat), i get this in the logs AVCaptureDeviceFormat: 0x13fe49890 'vide'/'420v' 1920x1080, { 2- 30 fps}, fov:58.080, supports vis, max zoom:104.38 (upscales @1....
{ "pile_set_name": "StackExchange" }
Q: In-App purchasing: Listen for the "Cancel' button? I'm trying to figure out how I can listen to the "Cancel" button that appears in the "confirmation" alert shown when a user tries to purchase something. You know, the official one done by Apple, looks something like: "Confirm Your In App Purchase. Do you want to b...
{ "pile_set_name": "StackExchange" }
Q: Why should I use AWS RDS? I installed a LAMP stack in my AWS EC2 instances so that I can use the MySQL server. Somebody recommended using RDS. But RDS is not free and also a MySQL server. My question is what makes RDS so special comparing with my MySQL server in EC2 instances? Thanks. By the way, I'm quite new to ...
{ "pile_set_name": "StackExchange" }
Q: Clicking text to check checkboxes in one table column i have rows inside container with text header and checkboxes in every column, i want to make when the header is clicked the checkboxes below inside the same container become checked but the other in different container not affected(still in their original state...
{ "pile_set_name": "StackExchange" }
Q: Quarter on Quarter/ Month on Month analysis in mysql I've loans data and I want to compare sales in different years based on quarter or month My data looks like this disbursementdate | amount | product | cluster 2017-01-01 | 1000 | HL | West 2018-02-01 | 1000 | PL | East So After queryin...
{ "pile_set_name": "StackExchange" }
Q: Seymour's second neighborhood conjecture Does anyone out there know if Seymour's second neighborhood conjecture is still open? if not, I would appreciate any references. A: As far as I know, it is still open. Here are some of related results (Probably you know all of them): Chen-Shen-Yuster proved that for any ...
{ "pile_set_name": "StackExchange" }
Q: Async/Await single thread/some threads I need a little rule about correct usage of await. Run this code in .net core c# 7.2: static class Program { static async Task<string> GetTaskAsync(int timeout) { Console.WriteLine("Task Thread: " + Thread.CurrentThread.ManagedThreadId); await Task.Del...
{ "pile_set_name": "StackExchange" }
Q: API for powerpoint presentations to flash How do I go about automating conversions from PowerPoint to flash? I want a user to be able to upload a PowerPoint file into my web page and on the server I want to convert the PowerPoint to a flash movie. Is there any preferred method for doing this? I've searched on Goog...
{ "pile_set_name": "StackExchange" }
Q: Generate Unique hash from Long id I need to generate a unique hash from a ID value of type Long. My concern is that it should not globally generate the same hash from two different Long/long values. MD5 hashing looks a nice solution but the hash String is very long. I only need characters 0-9 a-z and A-Z And ju...
{ "pile_set_name": "StackExchange" }
Q: Executing Sp_SetAppRole from ExecuteSqlCommand Here is my Code: SqlParameter rolename = new SqlParameter("rolename", SqlDbType.VarChar); rolename.Direction = ParameterDirection.Input; rolename.Value = "role"; SqlParameter password = new SqlParameter(...
{ "pile_set_name": "StackExchange" }
Q: ASP.Net Exception Shows File Path When my ASP.Net MVC application encounters an error, the full file path of the c# class is displayed in the exception even though I've only deployed binaries. E.g. at: C:\DevelopmentServer\MVC_Project\AccountManagement.cs line 45 Where is this path information being stored? Is i...
{ "pile_set_name": "StackExchange" }
Q: T-SQL Overlapping time range parameter in stored procedure I would like to search for records that occurred in a specific time of day and between a date/time range. Example: My table: ID | EmpID | AuthorizationTime ------------------------------- 1 | 21455 | '23/01/2012 12:44' 2 | 22311 | '23/01/2012 18:15' 3 ...
{ "pile_set_name": "StackExchange" }
Q: Dynamic styling not working in Angular2 Following is my working code, which is not giving any error in console and printing the array items and test heading as expected. BUT somehow dynamic background styling in not working, Let me know what I am doing wrong here. import { Component } from '@angular/core'; @Compo...
{ "pile_set_name": "StackExchange" }
Q: Fetch FullCalender.io Event Objects (JSON) from Database for a specific date-range I have a huge database and a lot of events. Every time I go to the Calendar Mainpage (monthly view) all the existing events in the database are loaded, despite I'm only viewing the current month. At the moment my html page is over 3...
{ "pile_set_name": "StackExchange" }
Q: Jquery file download no callback working I am using the jquery.filedownload plugin with asp web api to download a file and display error message from the server. I have setup the plugin and added cookies to my response as indicated on github: https://github.com/johnculviner/jquery.fileDownload My file is being dow...
{ "pile_set_name": "StackExchange" }
Q: Django: Custom model field does not show correct value in the form I needed to store arbitrary data in a relational database of multiple data-types so I came up with a solution of in addition to storing the data itself also to store what is the datatype of the data (str, int, etc). This allows upon retreival to ca...
{ "pile_set_name": "StackExchange" }
Q: Número de requisições simultâneas que um servidor PHP suporta Vamos supor que tenho um servidor com um processador i7 com 4 núcleos/8 threads. Em uma arquitetura multi-thread, assumindo que se crie uma thread por requisição, apenas será permitido 8 requisições simultâneas, uma vez que o processador possui 8 thread...
{ "pile_set_name": "StackExchange" }
Q: Rotating in glutIdleFunc within a specified range Let's say I have this glutIdleFunc going in the background of an OpenGL scene containing a little creature with multiple, radially arranged legs that "pulsate": void PulsateLegs(void) { lowerLegsRot = (lowerLegsRot + 1)%360; glutPostRedisplay(); } ...wher...
{ "pile_set_name": "StackExchange" }
Q: Randomly choose a number in a specific range with a specific multiple in python I have the following numbers: 100, 200, 300, 400 ... 20000 And I would like to pick a random number within that range. Again, that range is defined as 100:100:20000. Furthermore, by saying 'within that range', I don't mean randomly pic...
{ "pile_set_name": "StackExchange" }
Q: How can I determine how widespread support of OpenGL ES 3 is? I am developing new app in OpenGL which should run on iOS and Android devices. I'd like to use OpenGL ES 3. For iOS that's not a problem, since any iPhone newer than the 5 has GLES 3. But I am not sure how wide-spread GLES 3 is in the Android world or ...
{ "pile_set_name": "StackExchange" }
Q: Allow timers to fire when applicationDidEnterBackground I have read Apple's documentation and as many posts as I could here on the topic of how an app can run once it has been backgrounded. It seems that there are ways to get an application to complete some remaining tasks but not continue to run indefinitely in ...
{ "pile_set_name": "StackExchange" }
Q: C - Incompatible Pointer Type Why does the following code give warnings? int main(void) { struct {int x; int y;} test = {42, 1337}; struct {int x; int y;} *test_ptr = &test; } Results: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] struct {int x; int y;} *te...
{ "pile_set_name": "StackExchange" }
Q: I estimate 10% of the links posted here are dead. How do we deal with them? TL;DR: Approximately 10% of 1.5M randomly selected unique links in the March 2015 data dump are unavailable. To be more precise, that is approximately 150K dead links. Motivation I've been running into more and more links that are dead on...
{ "pile_set_name": "StackExchange" }
Q: Xcode: "The working copy ____ has uncommitted changes" vs. git status: "nothing to commit, working directory clean" In Xcode 5.0.2, I try to pull from a remote and am given the following message: "The working copy 'project-name' has uncommitted changes. Commit or discard the changes and try again." Fair enough. I ...
{ "pile_set_name": "StackExchange" }
Q: Are space and time hierarchies even comparable? I am wondering if there are any results to what extent the space and time hierarchies "disagree" on which problem is harder. For example, is it known whether there are languages $L_1$ and $L_2$ such that $L_1 \in \DeclareMathOperator{TIME}{TIME} \TIME(f(n))\setminus ...
{ "pile_set_name": "StackExchange" }
Q: Get output outside the ajax call I'm using the libraby request for my ajax call, this library give me a response and after I'm using JSON. I've got a constant id inside and where I'm block is to use this constant outside the request() I know that I need a promises but I don't understand how to use it ... const opt...
{ "pile_set_name": "StackExchange" }
Q: Approximating π via Monte Carlo simulation Inspired by a tweet linked to me by a friend and a Haskell implementation by her for the same problem, I decided to try my hand at approximating the value of π using everything in the Haskell standard library I could find for the job. Here’s what I came up with: module Pi...
{ "pile_set_name": "StackExchange" }
Q: Find the sum of the series $S = \sum_{k=1}^{n} \frac{k}{k^{4} + k^{2} + 1} $ $$ S = \sum_{k=1}^{n} \frac{k}{k^{4} + k^{2} + 1} $$ I started by factorizing the denominator as $k^2+k+1$ and $k^2-k+1$ The numerator leaves a quadratic with $k$ and $k-1$ or a constant with $k+1$ and $k-1.$ I tried writing the individua...
{ "pile_set_name": "StackExchange" }
Q: Obtaining EntityManager in Spring + Hibernate configuration I have a Spring MVC 4.0 application, and I am learning JPA. I use Hibernate as the JPA implementation. I can configure Hibernate as described in this tutorial. It works fine, but I have to use Hibernate's Session object: @Autowired SessionFactory sessionF...
{ "pile_set_name": "StackExchange" }
Q: Die if anything is written to STDERR? How can I force Perl script to die if anything is written to STDERR ? Such action should be done instantly, when such output happen, or even before, to prevent that output... A: This doesn't seem like an especially smart idea, but a tied filehandle should work. According to...
{ "pile_set_name": "StackExchange" }
Q: Using ionicons in a rails app I have a rails app I'd like to use these in. Following the instructions, I ensured the font path in .css was assets/fonts/ionicons... but it doesn't seem to be working. Anyone ever use these before? A: If anyone else has trouble to use ionicons in your rails projects, I suggest to u...
{ "pile_set_name": "StackExchange" }
Q: ASP.NET DetailsView Update exception handling - truncated data I'm using a DetailsView for updating a record. If the edit input of some fields is too long, the system produces a "data will be truncated" exception. I can see where I can detect the error in DetailsViewItemUpdating or DetailsViewItemUpdated, and prov...
{ "pile_set_name": "StackExchange" }
Q: How to Post to a Discord Webhook with Discord.js (code 400 Bad Request)? I'm trying to access a discord Webhook using Nodejs for simple messages (for now). I have looked at several attempts here and at other places, but didn't quite understand them or was able to replicate them myself. Reading through the docs an...
{ "pile_set_name": "StackExchange" }
Q: How to print only the largest file in a directory in Linux? I would like to know how can i sort a directory and print out to the terminal only the largest file in that specific directory? This is my directory: file1 2 file2 3 file3 1 file4 5 file5 2 The wanted result is to print "file4" to the terminal A: ...
{ "pile_set_name": "StackExchange" }
Q: Extending form validation rule in codeigniter I have a form with two fields <input type="text" name="total_plots" value="" placeholder="Enter Total plots" /> <input type="text" name="available_plots" value="" placeholder="Enter Available Plots " /> Available plot "available_plots" field value should be less tha...
{ "pile_set_name": "StackExchange" }
Q: parse xml with many childs (XmlRpc Response) This is the monster I receive after a GET request <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <array> <data> <value> <struct> ...
{ "pile_set_name": "StackExchange" }
Q: MPI - Use multiple threads to listen for incoming messages I am working on a project that uses MPI routines and multiple threads for sending and receiving messages. I would like each receiving thread to focus on a different incoming message instead of having two or more trying to receive the same one. Is there a w...
{ "pile_set_name": "StackExchange" }
Q: Crosses topology At the plane $X=\mathbb{R^2}$ we consider the collection $\mathcal{T}$ of subsets $U\subset X$ such that for all $(a,b)\in U$ there exists $\epsilon>0$ with $$((a-\epsilon,a+\epsilon)\times\{b\})\cup(\{a\}\times(b-\epsilon,b+\epsilon))\subset U$$ It's easy to see that $\mathcal{T}$ is a topology o...
{ "pile_set_name": "StackExchange" }
Q: Do many people even care about "good" grammar in novels? I realise people like me are probably many, i.e., amateurs who want to write a book and then get frustrated by having to learn all this very intricate grammar just to please the odd poindexter who may read their book. Especially these days with grammar on th...
{ "pile_set_name": "StackExchange" }
Q: Is it required to be exact about previous salary when dealing with recruiting agencies? All jobs I applied for have been through recruiting agencies and all of them are asking for my current/previous salary. It is much much lower than industry average (nearly half) and I don't want that to influence my next salary...
{ "pile_set_name": "StackExchange" }
Q: string modifications are not working? This is my code and in my url string white spaces are not encoded by the code NSString *str = item.fileArtPath; NSCharacterSet *set = [NSCharacterSet URLQueryAllowedCharacterSet]; [str stringByAddingPercentEncodingWithAllowedCharacters:set]; [str stringByReplacingOccurrencesO...
{ "pile_set_name": "StackExchange" }
Q: Linking a twitter search to a custom tableview cell okay, here's what I've been scratching my head over for the last few days. I have created a custom cell for my table view. I have created a separate class (customCell.h) for this cell and linked them together in Xcode. The custom cell has four UIlabels which I h...
{ "pile_set_name": "StackExchange" }
Q: Setting a form field's value during validation I read about this issue already, but I'm having trouble understanding why I can't change the value of a form's field during validation. I have a form where a user can enter a decimal value. This value has to be higher than the initial value of the item the user is cha...
{ "pile_set_name": "StackExchange" }
Q: DateTime Display in Windows Form application I have a windows form application. I have a query which return me datetime in the format dd-MM-yyyy. But when this datetime is displayed in a datagrid it is displayed as dd/MM/yyyy. I wish to display dd-MM-yyyy in my datagrid. How can this be achieved. A: You set this...
{ "pile_set_name": "StackExchange" }
Q: Spacing between boxes using bootstrap responsive scheme I have a this layout based on bootstrap. I've manually added a margin between the rows, but when I resize the page I want the columns to have vertical spacing between them as well. How should I do this? Full-size browser: Resized browser: Ans here's the cod...
{ "pile_set_name": "StackExchange" }
Q: Приоритеты и последнее вхождение в регулярке Добрый день! Пишу небольшое расширение для корпоративного сайта на javascript. С сайта вытягивается оригинал письма в формате plain/text. Требуется найти последний ip адрес ИЛИ ip-адрес, который идет после слова unknown, причем, если в письме встречается слово unknown ...
{ "pile_set_name": "StackExchange" }
Q: Read File with structur, show it and write it I have the following two files (those are language files from a ruby on rails project): en: calendar: check: invalid_date: 'Date is invalid' wrong_input_format: "The date should have following format<br/>%{format}" globals: yestext: "Yes" n...
{ "pile_set_name": "StackExchange" }
Q: How to generate random match-up using round robin system? given these table Players | id | name | +----+----------+ | 1 | tawing | | 2 | master | | 3 | pepe | | 4 | bethel | | 5 | richard | matches: tawing vs master master vs pepe master vs bethel master vs richard.... Here's what I've tried s...
{ "pile_set_name": "StackExchange" }
Q: High performance primitive array builder in Java I currently use google-or tools to solve a max flow problem, so this has me create a few int[] arrays in java to pass into ortools. Now ortools is very fast and not an issue here but I'm open to performance minded alternatives here. The problem lies mostly in build...
{ "pile_set_name": "StackExchange" }
Q: Why won't my link open in a new tab? I create websites all the time, but this time I am stumped. I cannot seem to get a link to open in a new tab. Here is the specific line of code I am trying to troubleshoot: <aside id="bnk_widget_donation-2" class="bnk-widget bnk_widget_donation"> <div class="bnk-donation c...
{ "pile_set_name": "StackExchange" }
Q: Infinite scrolling on extJS local data store is it possible to have infinte scrolling in a extJS (4.1) grid, whose data-store is loaded manually? myStore = Ext.create('Ext.data.Store', { fields:givenStoreFields, data: [[]], }); myGrid = Ext.create('Ext.grid.Panel', { store: myStore, columns: give...
{ "pile_set_name": "StackExchange" }
Q: How to pass different config for each instance of a browser created by protractor in sharded config enabled.? Iam passing the login details of a tested website using browser.params in protractor login suite. But the problem is that my web application has a restriction for single login for a user account. Hence ru...
{ "pile_set_name": "StackExchange" }