date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/08
498
1,849
<issue_start>username_0: In highschool we're learning how to build User Interfaces with Xcode. As homework we have to pick an existing App and rebuild it only using default controls and the Main.storyboard (no code and custom classes allowed). I picked Twitter's UI: [![enter image description here](https://i.stack.im...
2018/03/08
2,597
9,015
<issue_start>username_0: I am trying to create a view in oracle 11g on the following code but getting an error saying command not ended properly, anyone in a position to point me in the right direction or correct me. ``` CREATE OR replace FORCE editionable VIEW "GINSOBADEV_DW"."V_PSI" ( "PARENT_PI_NUMBER","REQUEST...
2018/03/08
483
1,679
<issue_start>username_0: As the title suggests, this is about Flutter. Is there any way to switch Android status bar to light mode so that the icons in status bar show up dark? See picture for example. I tried following possible solutions but none of them worked - ``` // main.dart appBar: new AppBar( brightnes...
2018/03/08
437
1,541
<issue_start>username_0: For the following code, I know that because I implement a copy constructor the default move is blocked by the compiler, what I don't understand is why the compiler choose the copy constructor, and not issuing an error? Can a rvalue reference be the parameter for a reference function if no rv...
2018/03/08
691
1,938
<issue_start>username_0: I would like to extend certain strings in a dataframe column if they match a regex Input: ``` FD_Object<-list(x="a stricture",x="an ulcer",x="inflammation",x="a nodule",x="a polyp") FD_Location<-list(x="oesophagus at (cm)",x="GOJ",x="fundus",x="stomach body",x="stomach antrum",x="duodenal bul...
2018/03/08
621
1,894
<issue_start>username_0: I need to take 2 inputs from user size of array and then elements of that same array. I need to print every third element of array. Example Array: 1,2,3,4,5,6,7,8,9 Desired output: 3,6,9 Getting: 9,6,3 ``` class Demo { public static void main(String[] args) { int x; ...
2018/03/08
1,069
3,762
<issue_start>username_0: Using ASP.NET Forms, I'm encountering a problem with converting a 12 hour time into a timespan. Below I'm combining DateTime with TimeSpan as the user chooses a date and then a time. The fields are controlled by javascript. ``` DateTime DateResult = DateTime.TryParse(txtDate.Text, out DateResu...
2018/03/08
1,168
3,779
<issue_start>username_0: I have a database function that returns an array of arrays that looks like this: ``` Array ( [4896] => Array ( [0] => 4896 [id] => 4896 [1] => Party [event_name] => Party [2] => 2018-02-...
2018/03/08
598
2,154
<issue_start>username_0: A project of mine requires opening a variety of Microsoft Office documents as read-only through python. While the Excel and Word features of win32com have never had issues with documents containing spaces, win32com PowerPoint is not allowing it. ``` from win32com.client import Dispatch Applica...
2018/03/08
1,860
4,468
<issue_start>username_0: How can I use `dplyr/tidyr` to covert a data frame like this: ``` df <- data.frame(obj=c(1,1,2,2,3,3,3,4,4,4), S1=rep(c("a","b"),length.out=10),S1PR=rep(c(3,7),length.out=10), S2=rep(c("c","d"),length.out=10),S2PR=rep(c(7,3),length.out=10), Relsize=c(.4,....
2018/03/08
667
2,830
<issue_start>username_0: I have an `Observable` chain (RxJava 1) and I want to do some one-off action when the observable finishes its work (just before it emits something), but ***before any subscriber callback is called*** (I want to update some `AtomicBoolean` value, and have all subscribers see the new value). Wha...
2018/03/08
564
2,316
<issue_start>username_0: I have two tables **User{UserId, Name, UserTypeId, Email}** and **UserType{UserTypeId,Value}** One to One relationship. Is there a way to Map them into Single Entity like **Class User{UserId, Name, UserType, Email}** where **UserType** is a string which needs to get value from **UserType.Val...
2018/03/08
650
1,959
<issue_start>username_0: I'm trying to read PMC (Performance Monitoring Counter) by using RDMSR and WRMSR instructions. In my Linux desktop which has Intel i7 6700 CPU (Skylake), I wrote a simple driver code: ``` static int my_init(void) { unsigned int msr; u64 low, high; msr = 0x187; low = 0x412e; ...
2018/03/08
533
1,790
<issue_start>username_0: I use Ajax to get some data from a Database , The returned data from that Ajax request : ``` First Result Second Result Third Result Fourth Result ``` How can I get the text inside each `p` element on clicking it? Like when clicking on the `Fourth Result` I get "Fourth Result". I tried ...
2018/03/08
580
1,747
<issue_start>username_0: I've got this function to be applied later over 3D-arrays `f3 <- function(x) {-sum((x / sum(x)) * log2(x / sum(x)))}` and I'm trying to apply the condition that, if the second part of the function is `-Inf` (i.e. `log2(x/sum(x)=-Inf`), then this part will be `0` (i.e. `log2(x/sum(x))=0)`. I'm t...
2018/03/08
2,477
9,118
<issue_start>username_0: Considering these 3 lines in a file: ``` This is the first line of a text. Second line comes next. File ends here. ``` I want to read those lines and store them in an array. The problem is I don't know how long they are in order to `malloc` the space needed. To the example given their lengt...
2018/03/08
722
2,665
<issue_start>username_0: I have a validator that checks if username is already registered in database. It worked fine, except for the fact, that the request was send to the server with each character entered - which is way to often. So i tried to debounce the setting of the username variable value but all i'm getting i...
2018/03/08
159
643
<issue_start>username_0: I am using a Google API that wants files to be in Google Cloud Storage. However I have my files in Google Drive. Is there any known way to convert Google Drive URI:s to Google Cloud Storage URI:s?<issue_comment>username_1: There's no way to do what you're asking, because Drive and GCS have sepa...
2018/03/08
1,058
3,574
<issue_start>username_0: I want to use `"img"` of `browse_file()` in `grey_scale()`. I am able to use `band_count(type Int)` but when I am trying to use `"img"` in `grey_scale()`, I'm getting the following error: ``` the type of "img" is class 'spectral.io.bilfile.BilFile' Traceback (most recent call last): File "mai...
2018/03/08
1,908
7,547
<issue_start>username_0: I am building an application which monitors applications network data usage over some interval. On android 5 I had no problem with TrafficStats, although on android 8 using NetworkStats I always receive same data. I've read that bucket refreshes every 30 minutes or so, so I tried listening to...
2018/03/08
1,251
3,018
<issue_start>username_0: See the below code for a HTML email; ``` | | | | --- | --- | | | | | --- | | █ | | ``` The `|` element in between the comments is duplicated multiple times (for barcode reasons). However, when you get past 100 (appx) `|` elements, Outlook clients seem to ignore the 50px `height`. S...
2018/03/08
1,061
4,540
<issue_start>username_0: I want to write a simple homepage to track prices of various online stores. I have a scraper, which can read the price of a specific product and I plan on running this scraper maybe once a day some product I'd like to track. Now I need to store these information and I'm not really sure what a ...
2018/03/08
1,154
4,576
<issue_start>username_0: i am strugling with mongoose promises, i need to query data and query other data with that data as parameter what im doing now : ``` var user_id; var service_id; var purpose_id; User.findOne({name : 'demo1'}).exec().then(function(user){ user_id = user._id; console.log('user') re...
2018/03/08
1,058
2,637
<issue_start>username_0: I would like to have a line plot where I have 2 lines with 2 different color and each line would have sections colored in different shades of that color. Like a gradient shade for each line. e.g. a line with shades of blue for different regions along the x-axis ``` library(ggplot2) df <- data....
2018/03/08
2,474
11,466
<issue_start>username_0: I'm using a lot of vector drawable images in my app as backgrounds. The issue is that I cannot set the background using `app:srcCompat:=""` because it's a background resource. Even when I do it still throws the error, anyone have any idea why? I've tried using `setBackgroundResource()` or simp...
2018/03/08
2,222
7,558
<issue_start>username_0: What is the best practice to store calculated fields in database. For example, lets say a table has fields height, weight, bmi A user enters height weight values and bmi field is automatically filled. How to achieve this with a form. Formula for bmi $bmi = weight / (height \* height) Tried ...
2018/03/08
2,143
7,634
<issue_start>username_0: I have tried implementing the "yield" into the code so it would return a generator, but it's returning: <**generator object PText.possible at 0x000001C9F4E03DB0**> I essentially need to use a generator because the txt file that I am using is VERY long and creating the list takes a while and i...
2018/03/08
451
1,488
<issue_start>username_0: Trying to open a picture in a new tab, the values comes from a looping object. How will I pass the value of doc.strDocument to onClick ? PUG: ``` a(onClick="window.open('/userImages/documents/'+doc.strDocument);") ``` HTML: ``` ```<issue_comment>username_1: Your concatenation is fine (as ...
2018/03/08
712
2,360
<issue_start>username_0: I made this landing page which worked fine. The background image covered the page and it looked great. I left it and came back a day later and it looks different. I can't see the reason for it. The image wont appear behind the text at all only in the header (check the picture). [![current landi...
2018/03/08
209
742
<issue_start>username_0: Q)After installing geth getting an error while attaching.How to fix this error? ``` geth attach Fatal: Unable to attach to remote geth: no known transport for URL scheme "c" ```<issue_comment>username_1: If you're using 1.8, you need to include the IPC path: `geth attach ipc:\\.\pipe\geth.i...
2018/03/08
2,079
7,004
<issue_start>username_0: I can't figure out how to covert the following sequential code to a multi-threaded properly. I have done my best to avoid any shared resource and complete thread independence. This is the **single-threaded** code package com.net; ``` import jdk.incubator.http.HttpClient; import jdk.incubato...
2018/03/08
2,206
6,553
<issue_start>username_0: I am struggling with the following for some time now and have tried many suggestions from various google searches. We have one Website running in **Classic ASP** on a **windows server 2012 R2** using **IIS 8.5** We use the website with **MySQL** We get this happening during the day but at di...
2018/03/08
1,232
3,469
<issue_start>username_0: I'm trying to add ion-slides to my app, but i'm facing a problem that i don't have any idea how to solve it. I simple added the ion-slides example to my page: ``` Test ==== Test2 ===== Test3 ===== ``` And even with this simple example, the component just shows the first slide. When i ...
2018/03/08
487
2,075
<issue_start>username_0: I want to using Dialogflow framework within website . I know dialogflow offers the website integration as widget but.I want to use in it a custom designed floating chatbox in website.Like a chatbox which hovers in the corner of the page.How can i integrate with such chatUI<issue_comment>usernam...
2018/03/08
1,121
3,780
<issue_start>username_0: I am trying return rows after joining two tables and I am having a hard time getting the result I want. I have two tables: ``` CREATE TABLE `all_sessions` ( `session_id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL DEFAULT 'TBA', `breakoutsessions` varchar(255) NOT...
2018/03/08
378
1,532
<issue_start>username_0: In MongoDB the max number of namespaces is about 24.000 I would like to know if this max number can increase with sharding. ie if I have two shards, can it be of 48.000 ? Thank you<issue_comment>username_1: The approximately 24,000 max number of namespaces is only true for the MMAPv1 storage ...
2018/03/08
1,519
3,993
<issue_start>username_0: I have .py script which contains following code to open specific text file (which was generated by Exchange Powershell): ``` with codecs.open("C:\\Temp\\myfile.txt",encoding="utf_8",mode="r",errors="replace") as myfile: content = myfile.readlines() #here we convert lines to list print(...
2018/03/08
1,187
3,854
<issue_start>username_0: I am working with some text in `R` and I would like to complete a task related to compare the strings from one dataframe against the strings saved in other dataframe and when there is coincidence assign a value in the first dataframe. My initial dataframe is `DF1`: ``` DF1 <- data.frame(v1=c("...
2018/03/08
1,119
3,684
<issue_start>username_0: I have tables below; ``` Course(cname, ccode, credit, dept) // course table. Section(sno, ccode, semestr, year, prof); // course and lectures according to year and semester value. Prerequisite(ccode, precode) // prerequisite for any course. ``` Question: List course and prerequisite course...
2018/03/08
602
1,983
<issue_start>username_0: I installed a fresh Laravel in my system, removed all nodejs and npm package and folders and reinstalled the latest version. I did all but so far I cant run the npm install and npm run dev too. Can you help me? Follow package.json ``` { "private": true, "scripts": { "dev": "np...
2018/03/08
259
887
<issue_start>username_0: Is there a way to change the month of a `Date` object without returning a new object? Because `Date.now.change` and `Date.now += 1.month` return new date objects.<issue_comment>username_1: No, "all date objects are immutable" see <https://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/Date.html> U...
2018/03/08
826
2,758
<issue_start>username_0: I have a stored procedure that is returning rows from my user table. This data is picked by the user on the front end where the can define the type of user they are looking for as well as the users. For example, there are 3 levels of users: `lvl1Mgr`, `lvl2Mgr`, `lvl3Mgr`. The user will pick t...
2018/03/08
657
2,583
<issue_start>username_0: Is there a hack to encapsulate all commands in a Powershell session so that ***all*** output is tee'd to a temporary variable? My problem arises when I enter a command `Some-Function` I'm fully aware of commands like `Tee-Object` and `-OutVariable` that allow me to pipe a function's output t...
2018/03/08
1,657
4,737
<issue_start>username_0: I'm trying to solve this task: > > ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain > anything but exactly 4 digits or exactly 6 digits. > > > If the function is passed a valid PIN string, return true, else return > false. > > > eg: > > > validatePIN("1234") === ...
2018/03/08
1,770
4,855
<issue_start>username_0: SQL Server: I'm trying to match rows in `Table1` to values found in `data` and `popular_data` columns of `Table2`. ``` SELECT * FROM Table1 WHERE ColumnX IN (872510, 872511, 872512, 872513, 872514, 872515, 879529, 879530, 879959, 879960, 879961, 879962, ...
2018/03/08
1,097
4,085
<issue_start>username_0: I'm trying to improve the performance of writing data to redis cluster. We are planning to move from redi-sentinel to cluster mode for scalability. But, the performance of write operations is very less compared to redis-sentinel. We leveraged pipeline in redis-sentinel but cluster mode doesn'...
2018/03/08
1,683
5,742
<issue_start>username_0: I'm trying to summarize how much data has been written to a folder in my Data Lake. What is the best way to do this? Should I use a U-SQL job? HDInsights?<issue_comment>username_1: There are two ways to do this: 1. If it is a one-time operation, you can use Azure Storage Explorer (<https://azu...
2018/03/08
271
958
<issue_start>username_0: In online tool <http://www.jsonschema2pojo.org/> there is an option to set Class Name, so the generated root class will be named as I want it. I cant find the same option in maven-plugin option and the generated root class has default name: OutputSchema.java Is there a way to set it up? My pom...
2018/03/08
635
2,247
<issue_start>username_0: So I have a maven / spring application running on tomcat 8. I'm playing around with storing the sessions in dynmao db. There are a few reasons why I want to do this but i'll spare you the details. I've been following this guide pretty religiously <https://docs.aws.amazon.com/sdk-for-java/v1/de...
2018/03/08
340
1,226
<issue_start>username_0: I can't figure out what the correct syntax is: ``` ``` jquery (where index is a running through loop): ``` $('fieldset').each(function(index, element){ var name = 'option'+index; var res = $('select').find(':selected').data(name); console.log(res); }); ``` These work: ``` var n...
2018/03/08
401
1,478
<issue_start>username_0: Writing for Android API 23 and above (testing on API 24 and 25). I have written an XML which attempts to put a ListView inside of a BottomSheet. When I attempt to scroll my ListView (in any direction) the BottomSheet scrolls rather than the ListView. I've tried the following workaround withou...
2018/03/08
817
2,820
<issue_start>username_0: I'm trying to compile and run my first cross-platform app using .net core to migrate a c# app. I am trying to run this on Debian stretch 9.3 I've run both of these commands. ``` dotnet build -r debian-x64 dotnet publish -c release -r debian-x64 dotnet build -r linux-x64 dotnet publish -c rel...
2018/03/08
1,218
3,849
<issue_start>username_0: I am writing a monte carlo program to do a 10D integral. But what I have started off with is trying to get the full method to work in a lower dimension before moving up to the higher level. Anyways I have this program and it is using the the struct random number generator given in Numerical Rec...
2018/03/08
457
1,569
<issue_start>username_0: I am using ubuntu 16.04. I have install polymer-cli `npm install -g polymer-cli` which is properly installed but when I enter command `polymer server` it is throwing error that polymer:command not found.<issue_comment>username_1: To check if a package is globally installed you can take a look a...
2018/03/08
1,020
3,404
<issue_start>username_0: I have a new sandbox cluster on MongoDB Atlas that I am connecting to with mongoose on a Node.js server. This is the code I'm using to connect: ``` const mongoDbUrl = `mongodb+srv://${username}:${password}@mydb-sandbox-<EMAIL>.mongodb.net/testdb` mongoose.connect(mongoDbUrl) const connectio...
2018/03/08
1,831
7,594
<issue_start>username_0: I'm trying to get a better understanding of the differences so I can evaluate if I should be implementing a System Service, or a Service. The differences that I have found from the docs are the following: System Service 1. Started in SystemServer 2. Added to ServiceManager 3. Considered manda...
2018/03/08
1,816
7,413
<issue_start>username_0: I have a query and I want to return the String instead of the Numbers, The Query has the value as `DegreeID` ``` select P.DegreeID, D.DegreeName, P.ProgramName from pagesite sp left join table2.Degrees D on P.DegreeID = D.DegreeID ``` I want to apply the case expr...
2018/03/08
1,893
6,958
<issue_start>username_0: I have a multidimensional array I am using for a Java quiz application that contains the questions and answers (only showing snippet below). ``` public static String[][][] question = { { //question bank 1 (index 0) {"Question 1","Option 1","Option 2","Option 3","Option 4"...
2018/03/08
541
2,022
<issue_start>username_0: I have a Redux reducer with the following state: ``` const INITIAL_STATE = { permissions: [''], authzError: null }; ``` I already have some Redux actions that modify state.permissions. I am writing the following action to run permission checks: ``` export function isAuthz(allowed, excep...
2018/03/08
488
1,840
<issue_start>username_0: I am trying to run a NodeJS cron at a set interval using [cron-job.org](https://cron-job.org/en/), but they don't have any documentation about how to actually run the script. Basically the service visits a URL that you provide at a set interval, but I am specifically confused about what kind ...
2018/03/08
3,827
16,700
<issue_start>username_0: I have a data question that I am finding difficulty in how to search for (or even title this question). I don't get the chance to have a great deal of exposure to data-related tasks with JS and I would like to learn the best approaches. If you would please explain the approach you've used in th...
2018/03/08
921
2,966
<issue_start>username_0: Hello I have the following data: ``` hello this is a car this car is very good<\hamburguer>I want to fill this rules this pencil is red and very good, the movie was very fine the color is blue and green<\red> your favorite color is the yellow<\blue>you want thismy smartphone is very expensive...
2018/03/08
199
731
<issue_start>username_0: I am trying to track all files under a subfolder Assets/Large Assets, but the following is not working. git lfs track "Assets/Large Assets/\*\*"<issue_comment>username_1: I was able to fix this problem, by renaming the subfolder to Large. For some reason subfolders don't work with spaces in the...
2018/03/08
973
2,649
<issue_start>username_0: 1.I want to generate combinations of characters from a given word with each letter being repeated consecutively utmost 2 times and at least 1.The resultant words are of unequal lengths. For example from ``` "cat" ``` to ``` "cat", "catt", "caat", "caatt", "ccat", "ccatt", "ccaat", "ccaatt...
2018/03/08
991
3,552
<issue_start>username_0: I'm trying to sync with Firebase with my project I use the tool from Android Studio --> Firebase and then I do the steps (This is new Project) [Image](https://ibb.co/farpSn). Android Studio version **3.0.1** The build.gradle in App folder is: ``` apply plugin: 'com.android.application' andro...
2018/03/08
533
1,855
<issue_start>username_0: I wan´t to unmarshal json to an exported struct from other package but I does not work propertly ``` package anyPackage type DataStruct struct{ Size int `json:"size"` Material string `json:"material"` Date time.Time } ``` --- ``` package main import ( "fmt" ...
2018/03/08
519
1,851
<issue_start>username_0: I do not succeed in sending the values of multiple checkboxes from a form with PHP mail. This is piece of my form with the checkboxes: ``` ``` In my php file i use this to settle the values form the multiple checkboxes: ``` $selected_checkbox = $_POST['registercheckbox']; if(empty($sele...
2018/03/08
250
943
<issue_start>username_0: I am looking for a way to reset a divs content. I have a div(container) and div(card) that hold images from an API. How could I reset the divs content that is already populated? ``` //Here is how I am populating the card div const card = document.createElement('div'); card.setAttr...
2018/03/08
428
1,307
<issue_start>username_0: I currently have this code: ``` #include "stdafx.h" #include "AddressInfo.h" AddressInfo::AddressInfo(int ammoCount, int pointerLevel, DWORD baseAddress, DWORD* offsetArray) { ammo = ammoCount; numPointers = pointerLevel; this->baseAddress = baseAddress; offsets = (DWORD*)mall...
2018/03/08
395
1,225
<issue_start>username_0: I am trying to start with basics of opencv with python but when i executed the below code : ``` import cv2 import numpy as np img = cv2.imread('bg.jpg',cv2.IMREAD_GRAYSCALE) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows() ``` But i am getting this error:- ``` Traceback (mos...
2018/03/08
936
3,298
<issue_start>username_0: resizeAspect as the video gravity only works properly for me, when using an iPhone X. For some reasons, the black aspect bar gets only added to the top and not to the bottom. This is how it looks like when I'm not using an iPhone X (the image is white) [![iphone ](https://i.stack.imgur.com/3...
2018/03/08
1,315
4,085
<issue_start>username_0: Why is it not working? Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. our result cannot contain duplicates. ``` SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '%A' OR CITY LIKE '%E' OR LIKE '%I' LIKE '%O' OR LIKE '%U' ORDER BY CITY; ``` What would be the ...
2018/03/08
658
2,181
<issue_start>username_0: I need to convert a large dataframe to a numpy array. Preserving only numerical values and types. I know there are well documented ways to do so. So, which one is to prefer? ``` df.values df._as_matrix() pd.to_numeric(df) ... others ... ``` Decision factor: * efficiency * safely operating ...
2018/03/08
411
1,532
<issue_start>username_0: I use typescript in react-native development. I pass params to screen through `navigate` function. ``` this.props.navigation.navigate("NextScreen", { title: "title" }) ``` In `NextScreen` I access params through `this.props.navigation.state.params.title` but I get tslint error for `params`. ...
2018/03/08
824
2,678
<issue_start>username_0: Im working with a lambda function where i use boto3 to put\_item() into my DynamoBD Table and on the code im adding the ttl parameter (Time to live). ``` ttl = str(int(time.time() + 2629746)) ``` This line gives me a 1 month ttl but for some reason im getting alot of this errors: ``` An err...
2018/03/08
775
3,430
<issue_start>username_0: Official recommendation from the team is, to my knowledge, to put all datatypes into single collection that have something like `type=someType` field on documents to distinguish types. Now, if we assume large databases with partitioning where different object types can be: 1. Completely diffe...
2018/03/08
772
2,813
<issue_start>username_0: Just to give you a background, I'm using Ruby for creating automated tests along with Selenium, Cucumber, Capybara and SitePrism. I have some tests that need to check the text of a certain element on the page, for example: ``` def get_section_id return section.top.course.section_id.text end ...
2018/03/08
679
2,529
<issue_start>username_0: I have a sample class Person and the setter methods need to manipulate the string passed as its argument before setting it to the object. How do we represent this same class as XML in Spring? ``` public class Person { private String name; public String getName() { return name; ...
2018/03/08
869
3,288
<issue_start>username_0: EDITED\*\* I've been trying to implement a back button for my ToDoList project.What I'm trying to make it do is on pressing the back button on my phone while the user is typing something in the Editable field which is in the second\_layout(Editable activity),he could go back to the MainActivit...
2018/03/08
652
2,396
<issue_start>username_0: I have a a few iron pages where 'home' is my home page. It has a bunch on game cards in it and when the user clicks on a card, it will start a quiz with a bunch of questions. When I go back to the home page and click on a card again, it doesn't start the quiz. It just continues from the previou...
2018/03/08
522
1,936
<issue_start>username_0: The state of Florida has approved the [Sunshine Protection Act](https://nypost.com/2018/03/07/florida-lawmakers-pass-bill-for-year-round-daylight-saving-time/) which eliminates DST in Florida. What changes do I need to make to my .NET code so that it won't get the answer wrong when converting ...
2018/03/08
1,014
3,289
<issue_start>username_0: I am new to C programming. I am trying to learn it. Following code throws Access violation. Why is it happening? Please explain it. How to fix it? ``` char arr[] = { 'a', 'b', 'c', 'd', 'e', 'f' }; printf("%s", arr[0]); ```<issue_comment>username_1: ``` char arr[] = { 'a', 'b', 'c', 'd', 'e',...
2018/03/08
585
2,133
<issue_start>username_0: I'm trying to build a very generic function that receives a model name, and id and an array of values to update an existing model or create a new model, when the id value is empty or cannot be found (in my case) The problem I'm having is that I cannot find the right way to generic create the n...
2018/03/08
483
1,686
<issue_start>username_0: I am trying to export a function which will parse a xml to json object. ``` export const parse = (body) => { const parser = new xml2js.Parser({explicitArray: false, trim: true}); parser.parseString(body, (err, result) => { if (err) return err; parser.parseString(result['soapenv:Env...
2018/03/08
753
2,266
<issue_start>username_0: Let's have a data set, e.g.: ``` set.seed(123) n <- 50 x <- sample(c(0, 1), replace = TRUE, size = n) y <- sample(c(1, 2), replace = TRUE, size = n) ``` The task is to create cross-table, compute Fisher's exact test and extract corresponding *p*-value. Here is my pipeline: ``` library(tidyv...
2018/03/08
397
1,404
<issue_start>username_0: I am developing an Ionic App that will run as a web app on browsers too. In html, I have the following code: ``` Login ``` I thought that the ion-title tag was enough to change the title on the browser tab, but it seems it isn't. It remains "Ionic App". How can I change it? Thanks<issue_...
2018/03/08
380
1,402
<issue_start>username_0: For a long time it used to be possible to serve a page for bots when the URL contained `#!somethingLikeThis` and behind the scenes that would get requested by the bot as `?_escaped_fragment=somethingLikeThis` but this seem to no longer work. Is there an official note about why this is?<issue_co...
2018/03/08
459
1,796
<issue_start>username_0: I have several styled components, using the `withStyles` HOC to export them, but i can't override some rules because jss mix the order of mui stylesheets with my component's stylesheets. How can I push my styles to the end? [![enter image description here](https://i.stack.imgur.com/zYcAl.png)...
2018/03/08
603
1,671
<issue_start>username_0: I have this DOB column in my additional information table with YYYY-MM-DD. I need to convert let say DOB: 1949-06-15 to DOB format: MM/DD/YYYY. I have ``` SELECT CONVERT(VARCHAR(10), ai.ADDLINFO_INDEX_21, 101) as 'DOB' ``` but I still get this result: `1949-06-15`. I even tried ``` REP...
2018/03/08
338
1,058
<issue_start>username_0: When logging into the admin section of my Magento 2.2.2 installation I'm getting the error: ""0":"Could not create an acl object: Role '5' not found","1":"#0 /var/www/magento/generated/code/Magento/Framework/Acl/Builder/Proxy.php(95): Magento\Framework\Acl\Builder->getAcl()" I get the same er...
2018/03/08
826
2,888
<issue_start>username_0: I am attempting to use the [acts\_as\_paranoid](https://github.com/ActsAsParanoid/acts_as_paranoid) gem with no luck. I have a `Client` model: ``` class Client < ActiveRecord::Base acts_as_paranoid has_many :purchases, dependent: :destroy has_many :payments, dependent: :destroy end...
2018/03/08
1,335
4,108
<issue_start>username_0: I'm making a website and I want the menu bar to be fixed when you scroll down. I managed to do that my problem is that I've put a vertical line on the page(border of a div) and the line is on top of the menu bar. My question is. Why is it doing that and how can I fix it? here is the website...
2018/03/08
3,209
7,675
<issue_start>username_0: I have a long string. Within this string, there are strings I want to parse. After parsing, I pass the values to a listview. It´s already working, but I have struggles with one String.. Here is a picture: [Here you can see, that the second value is wrong](https://i.stack.imgur.com/6GGSj.png) ...
2018/03/08
1,927
4,208
<issue_start>username_0: I would like to display three columns in a row. * The first one is at far left * The second one in the center * The third one is at far right When the content of the first column is very long, I would like to second column to move to the right. Here is my CSS code ``` .col { display: bl...
2018/03/08
1,855
6,190
<issue_start>username_0: ### tl;dr Im trying to deduplicate an array of objects that are not necessarily identical. ### desc. i have downloaded a set of records from a site that manages them poorly and there are many duplicates of records, though some with different names or different weights. What id like to do is...
2018/03/08
856
2,711
<issue_start>username_0: I have a function that calculates a value, which is a float: ``` function crunch (float $a, float $b):float { //do stuff return $result; } function testSomething (float $a, float $b):bool { //if $result is -0 that returns false $result = crunch($a, $b); return $result === 0; } ``` ...
2018/03/08
666
2,327
<issue_start>username_0: I am reviewing OKTA. I have two authorization servers configured, the default one and a custom one. I have a client (web app) that is configured and correctly logging in. I am getting back the expected id\_token and access\_token. The problem I am running into, is how do I call an api, that is ...
2018/03/08
1,460
3,450
<issue_start>username_0: I couldn't help but thinking if there is anyways I can do this with fewer lines: ``` def load_data(symbol, time_frame, folder_name='candle_dfs'): data = np.loadtxt('{}/{}/{}-{}.csv'.format(folder_name, symbol, symbol, time_frame), delimiter=',', unpack=True, dtype=str, skiprows=1) date...
2018/03/08
548
1,908
<issue_start>username_0: Fragment animations do not work properly with `support-v4:27.1.0` ``` getSupportFragmentManager() .beginTransaction() .setCustomAnimations(ENTER_ANIM , LEAVE_ANIM) .replace(R.id.main_activity_fragment_place_holder, fragment) .addToBackStack(tag) .commitAllow...
2018/03/08
960
3,050
<issue_start>username_0: i have been asked to make code that doesen't have loops and check if first number is close to second number (close means bigger or smaller by one).I tried using huge conditions but i wodered maybe there is an easyer way then do things like this: > > if num1 == num2 or num1 == num2 - 1 or num1...