date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/26
442
1,562
<issue_start>username_0: Is there any way to **programmatically** create a user in *AppStream 2.0* ? Didn't find any help in the [docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/AppStream.html) Instead of using the console, going to `User Pool` and do it manually. I already have a User Store and wa...
2018/02/26
728
2,769
<issue_start>username_0: I'm trying to delete from data from the database using a generic approach. it works for add, update but on delete I'm getting this: > > java.sql.SQLIntegrityConstraintViolationException: Cannot delete or > update a parent row: a foreign key constraint fails > (`mydb`.`testCases`, CONSTRAINT...
2018/02/26
619
1,942
<issue_start>username_0: My Collection is having this type of document. ``` { "id": "65f7a7e9-dc99-4c3a-b9ed-6291a8986343", "Username": "<EMAIL>", "Password": "<PASSWORD>", "FullName": "<NAME>", "DateCreated": "2018-02-18T02:20:50.36367Z", "Type": "User", "WishLi...
2018/02/26
1,370
3,266
<issue_start>username_0: I have a `data.frame`, I would like to average the column `data` according to `ID,M1,M2,M3`. Aggregated does the job pretty well but it discriminate when exactly the same ID (e.g. `10`) is located in a different column. ``` ID<-c(rep("A", times=10), rep("B", times=10)) data<-21:40 M1<-c("","1...
2018/02/26
1,000
3,856
<issue_start>username_0: I'm trying to setup up role based authorization based on Windows roles using an asp.net core 2.0 app. This is the configuration: launchSettings.json: ``` { "iisSettings": { "windowsAuthentication": true, "anonymousAuthentication": true, "iisExpress": { "applicationUrl":...
2018/02/26
961
3,894
<issue_start>username_0: Compare two objects if any one of the object not having key pair. ``` var itemA= [{"name": "saran", "address":"chennai"}, {"name": "elango", "address":"chennai"}, {"name": "kala", "address": "chennai"}]; var itemB= [{"name": "saran", "addr...
2018/02/26
430
1,407
<issue_start>username_0: This is the code I am executing: ``` import groovy.json.JsonSlurper def response= messageExchange.response.responseContent def jsonsl= new JsonSlurper().parseText(response) log.info jsonsl.results(0).id log.info jsonsl.results(0).houseName ``` Error: ``` No signature of method:...
2018/02/26
220
777
<issue_start>username_0: I am using TrueTime library in my project.I downloaded it from below link ``` https://github.com/instacart/TrueTime.swift ``` But when I opened it new project & choose `show in finder` I don't see any `Result.Framework` in finder. it is only in project structure. [![enter image description...
2018/02/26
1,011
3,277
<issue_start>username_0: My code runs on every object in my array `stacks_asgs`. ``` begin threads = [] stack_asgs.each do |this_asg| t = Thread.new do LOGGER.debug 'started new thread for %s' % this_asg replace_nodes_in_asg(this_asg) end t.abort_on_exception = t...
2018/02/26
1,093
3,977
<issue_start>username_0: Compare two string with third-string like JSON Array full name ``` var source = intentObj.slots.toPlazaName.value.toString(); // Jaipur var destination = intentObj.slots.fromPlazaName.value.toString(); // Kishangarh ``` match with this `"FullName": "Jaipur - K<NAME>",` My response ``` {...
2018/02/26
1,052
3,660
<issue_start>username_0: I'm having problem plotting a graph in Excel. I was planning on plotting a graph for monthly difference of electric and gas that we consume every month. Here is an example data: [![enter image description here](https://i.stack.imgur.com/FfGXa.png)](https://i.stack.imgur.com/FfGXa.png) What...
2018/02/26
938
3,214
<issue_start>username_0: As you see from **Project Assistant->Installment Requirement** screenshot of **InstallShield**, It is showing only till .NET Framework 4.6 in the list. How do I add other frameworks like 4.7 and above? [![enter image description here](https://i.stack.imgur.com/HueCb.png)](https://i.stack.img...
2018/02/26
487
1,098
<issue_start>username_0: I have dataframe which looks like: ``` Var1 Var2 Var3 Var4 A 100000 5000 15000 B 1000000 2500 200 ``` I want to convert them as below mentioned dataframe. Required Output: ``` Var1 Var2 Var3 Var4 A 1,00,000 5,000 15,000 B ...
2018/02/26
601
1,547
<issue_start>username_0: Ok I have a massive long sum/sumifs formula I have given a small block below it goes on from cell H8 to cell H221. which requires me to write a massive long formula. there has got to be a better way than this. ``` =SUM( SUMIFS(Report!H8,Report!H7,"Savings",Report!E7,"DAR"), SUMIFS(Report!H10,R...
2018/02/26
2,316
6,197
<issue_start>username_0: I'm trying to install [Maven](https://maven.apache.org/index.html) in my Mac system (MacOS: High Siera, Version: 10.13.3). I followed all steps from this document: [Installing Apache Maven](https://maven.apache.org/install.html) 1. Donloaded tar file from a link: [apache-maven-3.5.2-bin.tar.g...
2018/02/26
940
3,338
<issue_start>username_0: **The goal**: check if all images in the page are loaded. If yes, call to a function, if not, again to check if all images are loaded. **My try**: ``` let checkImages = new Promise(resolve => { resolve(areCompleted()); }); function areCompleted() { let images = document.querySelectorAll('i...
2018/02/26
1,966
6,667
<issue_start>username_0: I'm trying to adapt the [material](https://material.angular.io/components/table/overview) examples like the following: ```js import { Component } from '@angular/core'; import { MatTableDataSource } from '@angular/material'; import { User } from '../models/user.model'; import { XService } from ...
2018/02/26
2,638
10,781
<issue_start>username_0: I have a question of good practices and how to organize the code. I have a model built in Angular 4+ project. The model has many variables which are passed through the constructor but has also getters and setters: ``` export class SomeModel { private variableOne: string; private varia...
2018/02/26
1,181
3,998
<issue_start>username_0: I need to convert a .txt file into .xlsx format. I have written below code (with the help of macro recorder) to accomplish the same. Code works fine when i run it in the workbook **(text file open in excel)**. But when I try to run it from another Workbook it is not treating it (text file ope...
2018/02/26
1,484
5,003
<issue_start>username_0: I recently took interest in batch file coding and now i have a project i am working on. in the project, i have created a basic program that require users to input their Licence code which i have stored in a text file(about 50 lines of licenses) and embeded it in my batch file with a third pary ...
2018/02/26
1,674
5,686
<issue_start>username_0: I created a sidemenu app in Ionic 2 which contains a Main Tab and 3 sub tab pages. It looks like this: [![enter image description here](https://i.stack.imgur.com/4W9uc.jpg)](https://i.stack.imgur.com/4W9uc.jpg) This is the code for Main tabs page: ``` Main Tab ``` It contains 3 sub tab p...
2018/02/26
1,594
4,639
<issue_start>username_0: File1.csv: [![enter image description here](https://i.stack.imgur.com/a1PSK.png)](https://i.stack.imgur.com/a1PSK.png) File2.csv: [![enter image description here](https://i.stack.imgur.com/SgQnI.png)](https://i.stack.imgur.com/SgQnI.png) I want to replace the contents of `configSku,selectedS...
2018/02/26
476
1,574
<issue_start>username_0: Need a bit of help with react code. Suppose a component has style declared in it like ``` { .list-done { color:red; } `} ``` then how do I use this style to style my link tag ``` - item1 ``` I want to use classnames for this. but how to use it in this case? I was told to use...
2018/02/26
531
1,679
<issue_start>username_0: I want to load a list on drop-down menu every changed on the `datetimepicker`, I am using `tempus dominus`. HTML: ``` ... ``` JS: ``` $(function() { $('#pickdate').datetimepicker({ format: 'L', daysOfWeekDisabled: [0, 6], minDate: "now", }); }); $('body').on('change.datetimepick...
2018/02/26
362
1,174
<issue_start>username_0: I'm trying to ensure a fully qualified hostname is uppercase. Example: ``` SERVER1.CONTOSO.LOCAL ``` I have tried: ``` "SERVER1.CONTOSO.LOCAL" -match "/^[A-Z]*$/" ``` But this does not seem to work. What am I doing wrong?<issue_comment>username_1: You can't declare styles like this in rea...
2018/02/26
3,687
12,339
<issue_start>username_0: Since a few days I got an issue with Mac OS High Sierra 10.13.3 : When I run a `git clone` like `git clone github.com/xxx.git failed` it print: > > LibreSSL SSL\_connect: SSL\_ERROR\_SYSCALL in connection to github.com:443 > > > Same issue with `npm i` command Even when I try to install b...
2018/02/26
3,871
12,868
<issue_start>username_0: First things first, I know how to append to a list in f#. If I have `list = [1;2;3]` then I can I can do something like `5 :: list` and it will give me a new list `[5;1;2;3]`. I have written a function however that uses the exact same syntax but instead appends it to the back of the list, an...
2018/02/26
878
2,928
<issue_start>username_0: Start working with Nifi and this is my first exercise. So trying to put a csv file in a Postgres table. I defined my data base driver as shown in the picture. The error is: > > can't load jdbc driver class > > > in my log file I have this message: ``` ERROR [StandardProcessScheduler ...
2018/02/26
546
1,434
<issue_start>username_0: I was reading through LTE specifications in order to understand the number of bearers that could be created per UE. [Spec 23.203](http://www.etsi.org/deliver/etsi_ts/123200_123299/123203/12.06.00_60/ts_123203v120600p.pdf) - Table 6.1.7: Standardized QCI characteristics, defines 9 values for Qo...
2018/02/26
820
3,053
<issue_start>username_0: First of all, I know about queues and now have good experience with queues. The problem with the queue is, it is a queue. I want to execute multiple functions or commands together in the background. Queues will keep second command or function in a queue and will execute once the first one is do...
2018/02/26
750
2,614
<issue_start>username_0: I have 3 tables. posts, tags and posts\_tags for association **posts** ``` id, title .content ``` **tags** ``` id, name ``` **posts\_tags** ``` post_id, tag_id ``` I just want to get all the tags that are associated with specific post, when I select a post, like this post id, title...
2018/02/26
971
3,633
<issue_start>username_0: I'm not sure what I am doing wrong here since I didn't touch SQL queries for several years plus MSSQL query language is a bit strange to me but after 30 minutes of googling I still cannot find the answer. ### Problem I have two queries that work perfectly fine: * `SELECT COUNT(*) AS 'NumberO...
2018/02/26
1,350
4,330
<issue_start>username_0: This is my json ``` { "odata.metadata" : "", "value" : [ { "ItemCode" : "NUOVO_ELEMENT1406", "ItemName" : "Prova3", "QuantityOnStock" : 0.0 }, { "ItemCode" : "NUOVO_ELEMENT14506", "ItemName" : "Prova3", "QuantityOnSt...
2018/02/26
572
1,967
<issue_start>username_0: I have an issue using SSRS when displaying on screen I get it appearing on 3 rows and its a waste of space and I want it all on one row. I cannot see any options of styling the toolbar or configuring it to one row. It looks like this on all browsers. Is there anything I can do? [![enter image...
2018/02/26
517
1,989
<issue_start>username_0: **Question:** Can I use separate unit test runner for subgroup of unit tests in my build? All of those that would need separate runner process are contained within single .dll Or at least is it possible to specify order of unit tests? **Background:** I have some unit tests that are testing...
2018/02/26
1,050
4,002
<issue_start>username_0: I have this code for my simple spinner: ``` private Spinner spnr_gender; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_complete_profile); //GUI spnr_gender = (Spinner)findViewById(R.id.spnr...
2018/02/26
821
2,960
<issue_start>username_0: I am using filters in the cols of an ng2 smart table in an angular 5 project. The following code is working correctly. ``` columns: service_start_date: { title: "DOS", filter: true, sort: true }, ``` However, when the cell is a custom Component of link type, this is not work...
2018/02/26
1,070
3,657
<issue_start>username_0: I have a bunch of XML files containing texts (transcriptions of a diary). At the end of sentences, the requirement is that there be two whitespaces after the period. At the moment, this is partially done, but not in all cases: sometimes there is only a single whitespace after the period before ...
2018/02/26
1,124
4,085
<issue_start>username_0: ``` struct Data { ... CRITICAL_SECTION valLock; } std::map mp; CRITICAL\_SECTION mpLock; ``` I am currently using two critical sections to make this thread safe. I have to lock both `map` and `Data` for updating a `Data` ``` //Lock mpLock //Lock mp[key1].valLock mp[key1].something = s...
2018/02/26
871
3,277
<issue_start>username_0: I am developing an application using Windows Web Service API in VC++. For error handling I am using the APIs `WsGetErrorProperty()` and `WsGetErrorString()`. When I call the latter API, `WsGetErrorString()`, I get the following error: [Error Screenshot](https://i.stack.imgur.com/mPyYV.png) > ...
2018/02/26
717
2,581
<issue_start>username_0: Here's the snippet from a view function for ModelForm in Django: ``` if form.is_valid(): new_entry = form.save(commit=False) new_entry.topic = topic new_entry.save() ``` Would substituting this code with the following one have the same effect?: ``` if form.is_valid(): form.t...
2018/02/26
1,399
4,555
<issue_start>username_0: Sorry if the title is mis-leading, I could not phrase it quite right. Basically I am using the RTI DDS generator to take \*.idl files and generate \*.cxx and \*.h files. So the generation is working, but I am trying to add a rule that cleans up all the generated files. From a single \*.idl f...
2018/02/26
1,194
3,029
<issue_start>username_0: I am trying to plot a [shapefile](https://data.eindhoven.nl/explore/dataset/buurten/information/?dataChart=<KEY>0%3D) using custom colors on a map using cartopy and matplotlib. ``` import numpy as np import matplotlib.pyplot as plt import cartopy as cartopy import pandas as pd import random as...
2018/02/26
1,310
2,694
<issue_start>username_0: I have two files that I am trying to find their matching sections and modify accordingly. ``` file1.txt 1 101 A9D 1 6 123 BCX 2 298 JKB 2 7 234 CCC 3 299 7CD 3 9 345 DDD 4 329 T6T 3 12 387 DDE file2.txt 1 6 123 . BCX 2 7 234 . CCC 4 23 990 . DDD 8 62 397 . XC9 ``...
2018/02/26
516
1,938
<issue_start>username_0: I have a problem about my object type. The object i got Caegory. When a the list contains it object must not be added however the code bellow adds it and second time i send the same object it does not add. So i think it is about casting bu even i do casting it worked as i described before. I ca...
2018/02/26
406
1,418
<issue_start>username_0: I am trying to flatten a security table to make a single row per country. I am using Hive as the execution engine currently in hortonworks if this makes a difference to the SQL required. An example of what im trying to achieve is below. ``` (country, Name) (US, 'Matt'), (US, 'Rocks'), (GB, 'S...
2018/02/26
760
2,085
<issue_start>username_0: how can I set property `c` in the function `func` below? Right now, the last log prints `undefined` instead of calculated value. ```js function X(a, b) { let func = function() { console.log('I am here'); this.c = a + b; } this.a = a; this.b = b; func(); } le...
2018/02/26
761
2,705
<issue_start>username_0: Assume I have an array of items `[1,2, ...n]`, and a probabilities array `[p1,p2,....,pn]`, where `n` is a very large number and may reach to thousands. The sum of all probabilities equals 1. * I need to select 3 unique items randomly each time, an item with a high probability has a higher cha...
2018/02/26
951
3,292
<issue_start>username_0: I'm new to MEAN stack and i'm trying to copy the whole data from one collection to another.I have written an API in nodejs using eval function with mongodb package(v2.2.33) to achieve it, but that blocks the application.After searching and going through docs, got to know that i should use "aggr...
2018/02/26
418
1,126
<issue_start>username_0: I have 1080 rows with the same date - `2018-02-26 12:31:31` `id` column is set from `1` to `1080`. I want gradually to update the `date` column so each next row is one day more then the previous one. ``` for ($x = 1; $x <= 1080; $x++) { $st = $db->query("update posts set date = date_add(...
2018/02/26
489
1,709
<issue_start>username_0: I'm facing a problem where my Qt application crashes with this ugly "Invalid parameter passed to C runtime function.", without any more information. My development environment is the one here : * Windows 7-64 * Qt 5.10.1 * qmake * MinGW 32 For several days, I have been trying to find the roo...
2018/02/26
425
1,369
<issue_start>username_0: I've got a question about handling DST in momentjs. Let's assume that I'm currently in GMT+1 timezone and observe standard (winter) time, so my UTC offset is +01:00. If I execute: `moment('2018-02-26T10:12:00+01:00').format('LLL')` I will get `"26 February 2018 10:12"` as I would expect. Howe...
2018/02/26
1,509
6,116
<issue_start>username_0: I am adding voice commands to an already existing, and fully functioning app. The voice interaction seems to work fine. I am able to say the command, I am getting the correct result, and I am even getting the correct button, which click interaction I want to simulate by using the voice. My pr...
2018/02/26
1,198
2,887
<issue_start>username_0: Let's say i have a 2d boolean numpy array like this: ``` import numpy as np a = np.array([ [0,0,0,0,0,0], [0,1,0,1,0,0], [0,1,1,0,0,0], [0,0,0,0,0,0], ], dtype=bool) ``` How can i in general crop it to the smallest box (rectangle, kernel) that includes all True values? So in...
2018/02/26
1,226
3,167
<issue_start>username_0: > > As i am having an scroll- bar on a pop-up menu but when i am expanding folders in it than it is showing multiple scroll bars, how can i show single scroll bar vertically and horizontally , whether i am expanding multiple folders to select a particular folder. > As i am using overflow:scro...
2018/02/26
570
2,218
<issue_start>username_0: I am trying to show an Image in `ImageView` using Glide Library. I am using the Uri(`Intent.getData()`) returned in `OnActivityResult` to show in `ImageView`. I make an intent to select an image as follows: ``` Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(...
2018/02/26
190
581
<issue_start>username_0: i'm trying to create a link that redirect to another website like this : ``` [hello](exemple.com/test) ``` but it redirect me to `mywebsite.com/exemple.com/test` How can i make it work ? :) **EDIT :** Correct answer was to use `//` before url ``` href="//exemple.com/test" ```<issue_comme...
2018/02/26
1,931
6,924
<issue_start>username_0: I used two databases, one is default `sqlite3` and another mysql. I just created a model Post under app named `theapp`. I have also created routers.py. This is *settings.py* ``` DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR...
2018/02/26
415
1,694
<issue_start>username_0: I presented `UIImagePickerController()` from `ViewControllerA` and when I select a image its delegate called and in that delegate I wrote ``` func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { dismiss(animated: true, co...
2018/02/26
448
1,560
<issue_start>username_0: I am trying to implement a amp-accordion on my amp-page. According to requirement some item of my accordion will have grand-child. Did anyone have did anything like this. I am trying to add some item in last example on this page <https://ampbyexample.com/components/amp-accordion/#nested-accord...
2018/02/26
336
1,326
<issue_start>username_0: My problem is that I am using PostgreSQL database and want to import a table named `vfm` from other database, say `B`. But there's a table with the same name table in my current database (`A`). I'm getting an error in my query saying the relation exists already. I want to know if there is a wa...
2018/02/26
406
1,603
<issue_start>username_0: I already have a `cumulocity` client that communicates with the `cumulocity` broker through MQTT. What should I do in order to send data back from MQTT broken in `cumulocity` to `mqtt` client? (Say the client sends some data and I want the confirmation that the data was sent successfully) Fo...
2018/02/26
473
1,771
<issue_start>username_0: I have several "named" ranges. I am trying to get the **name** of the ranges, not the values. I have tried the following : ``` $("#get-values").click(getValues); async function getValues() { try { await Excel.run(async (context) => { const sheet = context.workbook.wo...
2018/02/26
493
1,749
<issue_start>username_0: JavaScript provides `charAt` and `charCodeAt` methods on strings. * What is the difference between these two methods? * When would one use on over the other?<issue_comment>username_1: From the MDN page on [**`charAt`**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_O...
2018/02/26
927
3,439
<issue_start>username_0: I'm trying to reproduce an old encryption/decryption done in Java to a new one in Ruby one because I'm rebuilding the whole app. All this to change this encryption asap, obviously. Here is the Java code: ``` public class MyClass { private static String algo; private static SecretKey ...
2018/02/26
1,004
3,400
<issue_start>username_0: I have created an ANN with numerical inputs and a single categorical output which is one hot encoded to be 1 of 19 categories. I set my output layer to have 19 units. I don't know how to perform the confusion matrix now nor how to classifier.predict() in light of this rather than a single binar...
2018/02/26
552
2,118
<issue_start>username_0: I am trying to figure out why jQuery is not binding to all future 'click' events on my page. It only works the first time I do this. The AJAX request fires, and displays adds the correct data to the DOM, however any subsequent attempts do not fire. When I select a button 'View All Dealerships',...
2018/02/26
690
2,296
<issue_start>username_0: I'm taking a c++ beginner's distance class and can't solve this compile error. It's written exactly as in the example book, and when my brother cuts and pastes it into his VS2015 it works fine, but in my VS2017 it doesn't. I have uninstalled and re-installed VS2017 community to no avail. I hav...
2018/02/26
289
1,186
<issue_start>username_0: I'm fetching all the open reports tagged as CHECKPOINT using the collab [API](https://developers.activecollab.com/api-documentation/v1/reports-and-filters/assignments-filter.html) and it's working fine. Although, when I run a custom report for the tasks, at Active Collab website, I get more and...
2018/02/26
691
2,260
<issue_start>username_0: Hello everyone I am new here and I am just starting to learn javascript. I need to come up with a piece off code that alerts a single random element from an array. I have managed to come up with the random element but it alerts all ten of them from the array. While I need t to alert a single ...
2018/02/26
684
2,454
<issue_start>username_0: ``` function Person(){ this.age = 0; setInterval(() => { this.age++; // this refers to the person object }, 1000); } ``` But what if I want to access the "this" of the setInterval function, instead of the parent object. I know arrow functions don't have a lexical this of their own,...
2018/02/26
673
2,187
<issue_start>username_0: i'm trying to do a pretty simple operation, pull an item from an array with Mongoose on a Mongo database like so: ``` User.update({ _id: fromUserId }, { $pull: { linkedUsers: [idToDelete] } }); ``` `fromUserId` & `idToDelete` are both Objects Ids. The schema for Users goes like this: ``` ...
2018/02/26
1,428
3,196
<issue_start>username_0: I have array: ``` arr = np.array([1,2,3,2,3,4,3,2,1,2,3,1,2,3,2,2,3,4,2,1]) print (arr) [1 2 3 2 3 4 3 2 1 2 3 1 2 3 2 2 3 4 2 1] ``` I would like find this pattern and return booelan mask: ``` pat = [1,2,3] N = len(pat) ``` I use `strides`: ``` #https://stackoverflow.com/q/7100242/29010...
2018/02/26
761
2,550
<issue_start>username_0: I am playing video from `URL` on `Exoplayer`, it stretching the video on resizing/on using `resize_mode` as I have mentioned in layout file using this I am not able to maintain the aspect ratio of video. I want to do scale type `CENTER_CROP` like we do in `TextureSurface` as mentioned in **im...
2018/02/26
273
1,037
<issue_start>username_0: I want to send this parameter in request and tried to send a simple array list but that was not working ``` "Language": [ "string","string","string" ] ```<issue_comment>username_1: try post query with field parameter as string.. convert your jsonObject to String using, ``` String b =...
2018/02/26
343
1,226
<issue_start>username_0: I have an array of objects which is looped and then deleting a set of key and values from it.I would like to know how to delete a set of keys with a single line if code instead of writing each delete for every key. ``` for (var i = 0; i < oldWorkers.length; i++) { delete oldWorkers[i].$$ha...
2018/02/26
452
1,465
<issue_start>username_0: My realm model class look like ``` class RoomRealmModel : Object { dynamic var id: String = "" var details = List() func saveItem() { do { let realm = try Realm() realm.beginWrite() realm.add(self, update: true) try realm.commitWrite() } catch{} } } class RoomDetailRealmMode...
2018/02/26
2,063
6,663
<issue_start>username_0: I have a varnish running on centos 7. My site works whit Drupal. Varnish work perfectly, but the browsers cache stuff as well and it affects what users are seeing. When adding posts to the site varnish resets the cache, but the browser cache shows the old cached data. How can I disable cac...
2018/02/26
1,192
2,326
<issue_start>username_0: I have a `data.frame(v1,v2,y)` ``` v1: 1 5 8 6 1 1 6 8 v2: 2 6 9 8 4 5 2 3 y: 1 1 2 2 3 3 4 4 ``` and now I want it sorted by y like this: ``` y: 1 2 3 4 1 2 3 4 v1: 1 8 1 6 5 6 1 8 v2: 2 9 4 2 6 8 5 3 ``` I tried: ``` sorted <- df[,,sort(df$y)] ``` but this does not work.. plea...
2018/02/26
1,056
2,910
<issue_start>username_0: I want to find 0,1 variables and set them to factor with level order c(1,0). What is the fastest way of doing so. Data: ----- ``` ds <- mtcars[,c(2,8:11)] cyl carb vs am gear Mazda RX4 6 4 0 1 4 Mazda RX4 Wag 6 4 0 1 4 Datsun 710 ...
2018/02/26
793
2,545
<issue_start>username_0: I have the below sample data ``` MasterRecordId, MasterRecordDate, TargetDate, MasterRecordIdCount 1 | 15/02/2017 |02/02/2017 | 3 1 | 15/02/2017 |05/08/2017 | 3 1 | 15/02/2017 |12/12/2017 | 3 2 | 12/05/2017 |07/08/2017...
2018/02/26
536
2,032
<issue_start>username_0: How can i add anchor class in codeigniter This is normal html tag: ``` [Log out](index.html) ``` But when i add class="tooltips" it comes out of a tag: ``` php echo anchor('User_Controller/settings','class="tooltips"<spanLogout');?> ``` This is what i get: ``` [class="tooltips"Logout](h...
2018/02/26
826
2,169
<issue_start>username_0: This is my first code in python and I have this issue: I'm reading a binary file as: ``` def read_file(file): with open(file, "rb") as f: frame = f.read() print(type(frame)) #out = return frame ``` I need to convert all the vector to int values instead using them as by...
2018/02/26
1,733
5,829
<issue_start>username_0: The Criteria API from Hibernate and HQL are behaving differently in respect of loading the Class Mapping. If I load the mapping from XML, both ways are able to load the Entity class. However, if I use annotations, only Criteria api is able to load the mapping. Please help me understand the reas...
2018/02/26
1,357
4,080
<issue_start>username_0: I have a data and want to split into columns ``` price_list <- c("Vegetables", " Garlic Desi 140 per kg ", " Fresh-bean — per kg ", "Fruits", " Apple Kala Kolu Irani 168 per kg ", " Apple golden 115 per kg ", " Banana (I) 182 per dozen ", "Others", " Chicken 170 per kg ", ...
2018/02/26
3,470
13,074
<issue_start>username_0: I am looking at the source code for `HashMap` in Java 7, and I see that the `put` method will check if any entry is already present and if it is present then it will replace the old value with the new value. ``` for (Entry e = table[i]; e != null; e = e.next) { Object k; if (e.hash == ha...
2018/02/26
589
2,095
<issue_start>username_0: I need to track and store the modifications. In order to do that I am thinking to apply following technique: ``` public ActionResult Edit(Employee employee) { var rcd_BFEmployee = db.Employees.Find(employee.Id); if(rcd_BFEmployee.Email != employee.Email) { // Other Stuff } ...
2018/02/26
514
1,696
<issue_start>username_0: I have below code that is expected to return top 1 record where id > jquery posted value. ``` def postStream(request): post = PostEntry.objects.filter(id > request.POST['maxpostid'])[:1] response_text = serializers.serialize('json', [post,]) return HttpResponse(request.POST['maxpo...
2018/02/26
982
3,956
<issue_start>username_0: I get the error - > > contructor attendanceClass1 in class attendanceClass1 cannot be > applied to given types; requiredl java.lang.String,java.lang.String > found; no arguments, actual and formal arguments lists differ in > length. > > > The button where i'm trying to call the class ...
2018/02/26
817
2,430
<issue_start>username_0: I'm doing a lab from Free Electron to building a cross-compilation toolchain But when I run the build command it fails shortly after downloading things... My stuff : xubuntu 14.04.3 | crosstool-ng-1.19.0 When I run ./ct-ng build ``` [DEBUG] Entering '/home/thibaut/felabs/sysdev/toolchain/...
2018/02/26
356
1,135
<issue_start>username_0: I have the following code: ``` client = Elasticsearch(hosts=['host'], port=9200) scan_arguments = {'query': {'slice': {'max': 1, 'id': 0}}, 'preference': '_shards:0', 'index': u'my_index'} for hit in scan(client, **scan_args): # do something with hit ``` and I get the following error `...
2018/02/26
5,793
18,886
<issue_start>username_0: I am trying to design a simple dashboard page. I started with putting together two divs side by side to be used as side menu and content. The page looks like the following: [![enter image description here](https://i.stack.imgur.com/EATK6.png)](https://i.stack.imgur.com/EATK6.png) I noticed s...
2018/02/26
611
1,913
<issue_start>username_0: I am trying to send Bcc mail .My mail function is working for single mail but when I am trying for bcc mail then I nothing happen .help me for possible solution . ``` php if(isset($_POST['submit'])){ //$to = "<EMAIL>"; // this is your Email address $to = "<EMAIL>"; $from = $_P...
2018/02/26
769
2,351
<issue_start>username_0: Good afternoon. Slightly confused in the Gatling documentation, I can not find a solution. I want to get a token to use in another method as a header. Here is an example of the first method where I get a token: ``` exec( http("HTTP Request auth") .post("http://blabla:9001/connect/t...
2018/02/26
455
1,616
<issue_start>username_0: I get an error on my android studio 3.0.1 on my 64 bit windows 10 laptop. Have kept the settings of Android SDK to use its own JRE. But I am still getting the following error: "A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Monitor. No Java vir...
2018/02/26
2,440
6,776
<issue_start>username_0: According to the React Intl documentation, to add support for a particular language to your application, you need to import a relevant language file from the `locale-data/` directory and pass it to a React Intl function called `addLocaleData()`. When it comes to languages like English or Fren...
2018/02/26
693
2,114
<issue_start>username_0: The XML: ``` This is a **This is b** ``` So I have seen many solutions across the web and looked up many of them already. The following didn't work for me: ``` tree = etree.XML('file.xml') print tree[0].findtext('a'). // None print tree[0].find('a'). // None print tree[0].xpath('a') // N...
2018/02/26
554
1,497
<issue_start>username_0: I want to replace last 9 "," delimeters with "|" in a file. For example, from: ``` abcd,3,5,5,7,7,1,2,3,4 "ashu,pant,something",3,5,5,7,7,8,7,8,8,8 ``` to: ``` abcd|3|5|5|7|7|1|2|3|4 "ashu,pant,something"|3|5|5|7|7|8|7|8|8|8 ``` Help would be really appreciated.<issue_comment>username_1:...
2018/02/26
931
2,888
<issue_start>username_0: I have the following structures with me. ``` typedef struct _abc{ int x; int y; } abc; typedef struct _def{ abc a; int b; } def; ``` I want to read the `abc` structure which is inside `def`. I do it in the following way. ``` int main() { def x; x.a = abc(); // Init...
2018/02/26
700
2,215
<issue_start>username_0: How could I take out the previous folder before the file from filepath using python? I mean I would like this: C:\Projects\ProjectX\Stuff\File1\File1.jpg to be C:\Projects\ProjectX\Stuff\File1.jpg Edit: And if the File is allready in "Stuff"-folder and not any subfolders after that, then I ...