date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/13
852
3,516
<issue_start>username_0: I have a thread which is used for reading from a TCP socket; I receive a message from the server to perform an automatic update. So, now the read thread has to call servicebase `Stop()` to trigger the `OnStop()` function. However the read thread has to be joined to the main thread in order to p...
2018/03/13
427
1,568
<issue_start>username_0: Say I have a `char array`, I wanna classify its element into three states. If it's a number, then mark it as `State 1`, if it's a operator, then mark it as `State 2`, if else, mark it `State 3`. First, I initialize a `boolean array` to represent its state, but I fount it only can store two st...
2018/03/13
360
1,246
<issue_start>username_0: I have an array of values `let arr = ['val1', 'val2']` I want to select rows in which some row equal to one of this value ``` pool.query("select id from sometable where somerow in (" + arr + ")", function (err, rows) { if (err) return console.log(err) con...
2018/03/13
1,532
4,909
<issue_start>username_0: I have a Wordpress site on live server and I want to create a LAMP stack locally with Docker to test things. I pull the images of `php:7.0-apache` and `mysql:5.7`, the same versions on live. I create a MySQL container: ``` docker run -d --name achi-mysql -e MYSQL_ROOT_PASSWORD=<PASSWORD> mys...
2018/03/13
232
983
<issue_start>username_0: I am using **BinarySecurityToken** for **OTA\_AirRulesRQ**, but I am getting **USG\_AUTHORIZATION\_FAILED**. I used the same token for **BargainFinderMaxRQ** and it worked. Is it some problem with the SOAP request I am sending or access to this method is not authorized form my PCC ? Also I am ...
2018/03/13
1,214
4,643
<issue_start>username_0: I'm having trouble parsing a custom class instance to/from Json with Gson. This is a simplified version of the code I'm dealing with: ``` import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import java.util.ArrayList; import java.util.Arrays; class IntegerArrayList ...
2018/03/13
714
2,718
<issue_start>username_0: I try to write some tests for project. If I need some project files I write `include_directories` statement and all will be included. In case of need of some manually compiled static libraries I try to set `target_link_libraries`. If I set absolute path then all links ok, but for task I need a...
2018/03/13
943
3,335
<issue_start>username_0: mocha error: timeout of 2000ms exceeded, for async test and hooks ensure the done() callback is being called in this test. if returning a promise, ensure it resolves. This is what the error i am getting while trying to get response, This is my index.js file where i export function ``` expor...
2018/03/13
497
1,570
<issue_start>username_0: I need to add a row to a SQL Server table called `Customers`. Here is the table design: [![enter image description here](https://i.stack.imgur.com/n4Bzf.png)](https://i.stack.imgur.com/n4Bzf.png) Here how I try to add a row to the table above: ``` INSERT INTO Customers (Id, Name) VALUES (1...
2018/03/13
967
3,540
<issue_start>username_0: ```js var a = 'a\na' console.log(a.match(/.*/g)) // ['a', '', 'a', ''] ``` Why are there two empty strings in the result? Let's say if there are empty strings, why isn't there one at beginning and at the end of each line as well, hence 4 empty strings? I am not looking for how to select 'a'...
2018/03/13
1,012
3,631
<issue_start>username_0: I am facing issues while trying to fetch my domain name from a big list updated in portal. ``` vser = (login url, password) for vs in vser: if re.match("(^(.*)video(.*)", vs, re.I): print(vs.name) ``` my domain name is eg. success.video.com, success.video2.com:80 I used `re.MU...
2018/03/13
909
3,415
<issue_start>username_0: I am now creating a teacher registration form using Ruby on Rails. I did not create a database to store the Data of users. Is it possible to create a database to store all the users data in the middle of the progress? If possible how?<issue_comment>username_1: The best explanation I can offer f...
2018/03/13
1,266
4,706
<issue_start>username_0: I'm writing data to BigQuery and successfully gets written there. But I'm concerned with the format in which it is getting written. Below is the format in which the data is shown when I execute any query in BigQuery : [![BigQuery output ](https://i.stack.imgur.com/Lek2L.png)](https://i.stack...
2018/03/13
1,034
3,708
<issue_start>username_0: I currently new to Spark and I'm using Scala. Im having some trouble with traversing a `RDD Key Value` pairs. Im got a TSV file, file1, with among other things `Country Name`, `Latittude` and `Longitude` and I got so far; ``` val a = file1.map(_.split("\t")).map(rec => (rec(1), (rec(11).toDo...
2018/03/13
2,038
6,277
<issue_start>username_0: I have a string like this: ``` zone=INTERNET|status=good|routed=special|location=001|resp=user|switch=not set|stack=no|dswres=no|CIDR=10.10.10.0/24|allowDuplicateHost=disable|inheritAllowDuplicateHost=true|pingBeforeAssign=enable|inheritPingBeforeAssign=true|locationInherited=true|gateway=10.1...
2018/03/13
3,390
9,640
<issue_start>username_0: I am setting up an optimization routine with three components using SLSQP, external code, explicit comp and FD differentiation. * Comp1 : IndepVarComp with output ='x' * Comp2 : External Code input ='x' / output = 'f','g' - derivatives ='fd' * Comp3 : Explicit Comp input ='f','g' / output = '...
2018/03/13
292
1,199
<issue_start>username_0: I´m working in a web application using angular, one of the sections is document section where the user is gonna be able to select the text and highlight the text, i´m using `window.getSelection()` to extract the selected text and appended in to a tag to highlight the text, but one of the requi...
2018/03/13
689
2,354
<issue_start>username_0: `![]()` tag is not working in `PHP Codeigniter` `![Product Image is not uploaded](<?php echo $p_info['p_img']; ?>)` Output of `$p_info['p_img']` is giving correct path where image is saved. and i uploaded the image now i want to show that image in edit process<issue_comment>username_1: ``` ![...
2018/03/13
550
1,793
<issue_start>username_0: I have searched, but not yet discovered how to add a title to a Seaborn Clustermap. I have tried: ``` plt.title('Title',loc='center') ``` but this adds the title to the legend, rather than the main Clustermap. I have also tried, creating an axes object first and adding the title to this (w...
2018/03/13
1,186
4,024
<issue_start>username_0: I am trying to export user details to **.docx** file. The file successfully exported but, it's giving the object. Phpword format is not working. How to write code to export the dynamic values properly, would someone help me, please? In **AdminController.php** - ``` public function exportUserT...
2018/03/13
2,265
9,057
<issue_start>username_0: I have an IdentityServer4 asp.net-core host setup for [Resource Owner Password Grant](http://docs.identityserver.io/en/release/quickstarts/2_resource_owner_passwords.html) using JWT Bearer tokens and an API in a separate asp.net-core host which has my API and two Angular clients. The Authent...
2018/03/13
502
1,742
<issue_start>username_0: ``` name Male Female php $a =""; if(isset($_POST['sbt'])) { echo $a= } ? ``` I want to get value true or false from ONCLICK function in $a variable of PHP.<issue_comment>username_1: You can't get result of it inside PHP variable `$a` without posting it to script, you need to use jQu...
2018/03/13
1,932
7,866
<issue_start>username_0: I have a code that successfully merges data from a specific named sheets of multiple workbooks into specific master workbook sheet. However, the code merges empty rows too that have **some sort of formatting** in them. In my case, the source sheets have boderlines without any values in the emp...
2018/03/13
3,876
14,595
<issue_start>username_0: **Intro:** At university one learns that typical garbage collection roots in Java (and similar languages) are **static variables** of loaded classes, **thread-local variables** of currently running threads, "external references" such as **JNI handles**, and GC-specifics such as **old-to-young ...
2018/03/13
1,332
3,148
<issue_start>username_0: I've got a data.table DT with a few hundred columns named eg1, eg2, eg3, eg4, ..., eg10, ... I'd like to generate new columns for all columns except the first one (eg1) based on comparison of each column with its previous column. DT: ``` eg1 eg2 eg3 eg4 eg5 1 1 1 0 0 0 0 0 0 ...
2018/03/13
1,039
2,567
<issue_start>username_0: I am trying to compare the current date with the date stored in the array, but I am not able to compare the date using `if` condition. I use this code to compare the date: ``` DateFormat TO = new SimpleDateFormat("yyyy-MM-dd "); Today = TO.format(Calendar.getInstance().getTime()); for (int i ...
2018/03/13
956
3,618
<issue_start>username_0: I have rest services deployed on aws. now I'd like to deploy a frontend. it's a reactjs app. build produces a folder with html and assets. now i'd like to host this app on aws and let it talk to my rest services there. does aws offer some dedicated solution for that (static hosting under same ...
2018/03/13
3,244
9,785
<issue_start>username_0: I have a project with the `settings.py`: ``` # -*- coding: utf-8 -*- """ Django settings for Qy project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of setting...
2018/03/13
242
792
<issue_start>username_0: Basically if the url has `cl=true`, I want to toggle the checkbox URL: <http://localhost:8080/general-setup?cl=true> My code: ``` //auto toggle clone if cl=true var url = window.location.href; if(url.contains('cl=true')) { $('#existingImageToggler').click(); } ``` I got a error: > > ...
2018/03/13
919
3,732
<issue_start>username_0: I have below code ``` int intTimeout = (FormsAuthentication.Timeout.Hours * 60) + FormsAuthentication.Timeout.Minutes; var authTicket = new FormsAuthenticationTicket(1, Utility.userCookie, DateTime.Now, DateTime.Now.AddMinutes(intTimeout), true, cookieValue); string strEncryptedTicket = ...
2018/03/13
1,602
4,750
<issue_start>username_0: I'm very new with Big Data and more especially `Apache Spark`/`Hadoop YARN`. I installed Hadoop single node into my virtual machine in order to make some tries and I added Spark too. I think the environment is well-installed because I can access to : * <http://172.30.10.64:50070> -> Hadoop ...
2018/03/13
492
2,260
<issue_start>username_0: I am looking for a way to create a streaming application that can withstand millions of events per second and output a distinct count of those events in real time. As this stream is unbounded by any time window it obviously has to be backed by some storage. However, I cannot find the best way t...
2018/03/13
511
1,871
<issue_start>username_0: Need Clarification about left outer joins. I have a model named CLub ``` class Club < ApplicationRecord has_many :club_members, dependent: :destroy end ``` another model named ClubMember ``` class ClubMember < ApplicationRecord belongs_to :club end ``` When I run a query like ``` Clu...
2018/03/13
924
3,729
<issue_start>username_0: I have a fresh project of Laravel 5.6 installed. I changed `create_users_migration`, added `$table->boolean('is_active');` field. Now, I want when user is trying to login, to check if `is_active` field is set to true. I tried to rewrite standard `AuthenticatesUsers` method : ``` protected fu...
2018/03/13
855
2,911
<issue_start>username_0: I have an html table, pressing TAB moves to next element in row and SHIFT-TAB goes back one element, this is fine hence I dont want to modify *tabindex* attribute to change this. But I would also like the user to be able to traverse the table up and down using the arrows keys, how do I impleme...
2018/03/13
914
2,960
<issue_start>username_0: Following is my configtx.yaml It is failing to generate the genesis block with following error 'Profiles[HealthwiseChannel].Application' has invalid keys: Oragnizations 2018-03-13 16:24:43.389 IST [common/tools/configtxgen] func1 -> CRIT 003 Error unmarshaling config into struct: 1 error(s) dec...
2018/03/13
876
2,510
<issue_start>username_0: I get this error with Apache 2.4 and PHP 7 on CentOS. I have folder structure like this: ``` var -- www -- html -- upload.php -- uploads -- images ``` And when I run move\_uploaded\_file( $tmpDir, '/var/www/html/uploads' ); - everything works flawlessly. But the err...
2018/03/13
455
1,453
<issue_start>username_0: If I will define a private static field in class. Given that it's a private field, can't I initialize it outside the class? ``` class X{ static int private_static_field; public: static void setPrivateStaticField(int val); }; void X::setPrivateStaticField(int val) { private_static_...
2018/03/13
370
1,283
<issue_start>username_0: In the android guides for [Fonts in XML](https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html), they give the example of font family XML you create by adding: > > android:font="@font/lobster\_regular" > > > Which I think its the font you added to your assets/font...
2018/03/13
501
1,664
<issue_start>username_0: I was wondering if there was a way to find patterns in a pandas DataFrame based on categories. I know kmeans works for numeric values but my dataframe mainly consists of categories and dates: ``` car check jobcard date season merc A 12A 01-01-2010 Winter bmw B ...
2018/03/13
565
1,987
<issue_start>username_0: I am trying to set `csrf_exempt` on class-based view in Django I've tried this one: Now, my class is look like this: ``` class UserView(View): # Check csrf here def get(self, request, pk): #code here # I want to exempt csrf checking only on this method def post(self, re...
2018/03/13
420
1,470
<issue_start>username_0: ``` cur = conn.cursor() result = cur.execute("SELECT * FROM users WHERE username = %s", [username]) if result > 0: data = cur.fetchone() password = data['password'] if sha256_crypt.verify(password_given, password): app.logger.info('PASSWORD MATCHED') else: app.logger.info('PAS...
2018/03/13
864
3,180
<issue_start>username_0: Does anyone know if the cell indexes on the list returned from `TelephonyManager.getAllCellInfo()` are related to SIM slot numbers? **I'm using Android API 24...** After experimenting a bit, it seems that running the method `updateCellInfo` - described below - always **returns a list where it...
2018/03/13
616
1,974
<issue_start>username_0: I want to be able to encode JSON into a specific format so that it can be used with another script that I have created. I am able to encode it with PHP into JSON but need to be able to push these encoded JSON sets to a 'named' array. At the moment I am getting this ``` { "ann_date":"14\/...
2018/03/13
1,295
5,037
<issue_start>username_0: What I would like to know is if there is a way to update multiple activities from one activity. For example from my **activityC** (in my case EditProfileActivity) I update user profile. **activityC** is a child of **activityB**, which is a child of **activityA**, and open from mainActivity's n...
2018/03/13
1,346
4,688
<issue_start>username_0: So far,I've got the images to stack on top of each other in block elements and arranged a paragraph next to it as description. What I want it to be like is that when I resize the screen to a smaller screen, the images shrink until it hits its min-width and fits the view port, however with my cu...
2018/03/13
1,170
3,072
<issue_start>username_0: I want to create a new column where all the entries of x are in, exept for those parts that appear in the column y in the same row. ``` data<-data.frame(x = c("<NAME>","<NAME>","<NAME>", "Leo Hummels", "<NAME>"), y = c("Leo", "Ribery", "Mats", NA, "Mama") ) ``` This is the output I wan...
2018/03/13
754
3,024
<issue_start>username_0: I'm trying to deserialize a piece of XML that specifies a .NET type to an instance of `System.Type`. Given ``` System.String, mscorlib ``` To deserialize to a class; ``` public class SomeObject { public Type SomeType { get; set; } } ``` Annoyingly, I've actually done this before a w...
2018/03/13
669
2,342
<issue_start>username_0: I am replacing synchronous socket code written in Rust with the asynchronous equivalent using Tokio. Tokio uses futures for asynchronous activity so tasks are chained together and queued onto an executor to be executed by a thread pool. The basic pseudocode for what I want to do is like this: ...
2018/03/13
450
1,649
<issue_start>username_0: I am encountering a `SecurityException` crash on Android 8 with `targetSDK 26` when using `JobIntentService`. This is from JobIntentService docs: [![enter image description here](https://i.stack.imgur.com/HLIAi.png)](https://i.stack.imgur.com/HLIAi.png) So What is the maximumJobExecution ti...
2018/03/13
509
1,834
<issue_start>username_0: I am created the dynamic dropdown based on response data, Console Response: ``` Array(3) 0: val_id:1 role_id:1 id:1 is_optional:false is_text:false 1: val_id:1 role_id:1 id: 2 is_optional:false is_text:false 2: val_id:1 role_id...
2018/03/13
1,327
4,000
<issue_start>username_0: I am using the JQM grids for grouping and dividing content. Is there a way to align the content to the bottom of the `ui-grid-a` or `ui-grid-b`? I tried many of the proposed solutions to make the `ui-block-a` and `ui-block-b` divs the same height, but none of them played nicely together with th...
2018/03/13
736
2,342
<issue_start>username_0: I tried to download google api using composer to a legacy code but, the following error appeared: ``` composer require google/apiclient:^2.0 ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements c...
2018/03/13
440
1,468
<issue_start>username_0: In my service worker file, I am using this code: ``` importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.0.0-beta.2/workbox-sw.js"); const workbox = new WorkboxSW(); ``` But I am getting error **`Uncaught ReferenceError: WorkboxSW is not defined`** hence my service worker is...
2018/03/13
499
1,901
<issue_start>username_0: I had already inserted my attachments in azure cosmos documentDB. After I inserting the attachment I can't see any attached attachments in my cosmosDB portal. [![Click here](https://i.stack.imgur.com/0HmnI.png)](https://i.stack.imgur.com/0HmnI.png) My question is where I'm going to see my upl...
2018/03/13
458
1,526
<issue_start>username_0: I have to insert the current date in my table after finished traitement for this I use this code ``` date_default_timezone_set('Europe/Paris'); //Don't forget this..I had used this..just didn't mention it in the post $datetime_variable = new DateTime(); $test = date_format($datetime_variable...
2018/03/13
990
4,090
<issue_start>username_0: After the class is initialized, template property returns the correct value but in constructor it always returns null. I tried to call `ApplyTemplate()` method in constructor but it didn't work. Can anyone explain how and why that happens? Is it possible to get template property in constructor ...
2018/03/13
1,119
4,266
<issue_start>username_0: I am adding unit tests and to a kind of "legacy" Python package. Some of the modules contain their own doctests embedded in docstrings. My goal is to run both those doctests and new, dedicated unit tests. Following [this Q&A](https://stackoverflow.com/questions/17056138/how-to-make-py-test-run...
2018/03/13
646
2,405
<issue_start>username_0: How can I add multiple value in select option using javascript, my below script only show empty select option upon trigger. ``` var tr = document.createElement("TR"); var td=document.createElement("TD"); txt=document.createElement('SELECT'); txt.style.width = '285px'; ...
2018/03/13
527
1,999
<issue_start>username_0: So ive built a Spinner component and i keep getting Invariant Violation. Component: ``` import React from 'react'; import { View, ActivityIndicator } from 'react-native'; const Spinner = ({ size }) => { return ( ); }; const styles = { spinnerStyle: { flex: 1, ...
2018/03/13
561
2,283
<issue_start>username_0: I am writing instructions for the ARMv7 processor. I would like to know why I am not allowed to have a constant value in the MUL instruction itself? You're allowed with the ADD and SUB instruction so why not MUL? Cheers<issue_comment>username_1: That's just how that processor architecture work...
2018/03/13
1,205
4,498
<issue_start>username_0: **Messages Gradle build:** Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > > java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex > > > **Here is the gradle build files:** ``` apply plugin: ...
2018/03/13
1,765
5,924
<issue_start>username_0: I'm a rookie in node.js so I apologize if my question is immature .Basically I'm trying to iterate thorough an array of values for performing certain operation but I don't know why I'm getting the values as `undefined`. Code: ``` for (var i = 0; i < array.length; ++i) { console.log(array[...
2018/03/13
703
2,617
<issue_start>username_0: I am trying to install flutter but when I run cmd flutter doctor an error occurred Checking Dart SDK version... 'PowerShell.exe' is not recognized as an internal or external command, operable program or batch file. Error: Unable to update Dart SDK. Retrying... Waiting for 1 seconds, press `CT...
2018/03/13
402
1,477
<issue_start>username_0: I am having a circular image view ``` circleImageView.setImageResource(R.color.colorPrimary); ``` Instead of colorPrimary i want to add random colors I have a array ``` arraystring = {R.color.colorPrimary,R.color.blue,R.color.red} ``` i used random function method to assign ``` String ...
2018/03/13
519
1,874
<issue_start>username_0: I am stuck on successfully tilt compensating my 9DOF IMU using an arduino. I know this is not the usual syntax problem and rather one mathematical in nature, but can anyone help? **The problem** is that when I move the sensor in roll and/or pitch while keeping the same yaw direction, the yaw a...
2018/03/13
999
3,763
<issue_start>username_0: In a Django admin site, I have this class. I want to save a previous version of a object (Servers) which is a manytomany field to find changes on the object. With normal CharField this work, but for manytomany fields I got this error: ``` "" needs to have a value for field "id" before this ma...
2018/03/13
254
973
<issue_start>username_0: Is there anyway I can find Pipeline syntax for "Publish XML Summary Reports"? I have to move a project configuration from Freestyle project to Pipeline project. "Publish XML Summary Reports" is one part that is blocking the migration since I couldn't find a Pipeline syntax for the same. I am ne...
2018/03/13
405
1,833
<issue_start>username_0: In our small business we are thinking about standardizing and restructuring our database, starting with the names. The problem is that these tables and views are used in a lot of our pivot tables in Excel spreadsheets. My question is what consequences does the name changing in SQL Server have...
2018/03/13
1,300
5,014
<issue_start>username_0: I have a class that defines a function `define_stop_words` that returns a list of string tokens. I then went to apply another function called `remove_stopwords`, which takes raw utf8 text as input, to a pandas dataframe `df` which contains text. The code looks something like this ``` class Pro...
2018/03/13
2,490
3,739
<issue_start>username_0: I have two arrays I created as followed: ``` DotsLat1=np.concatenate((HLat,DotsLatMA,DotsLatMC,DotsLatMB,DotsLatMD,DotsLatMAB,DotsLatMAD,DotsLatMBC,DotsLatMDC), axis=0) DotsLon1=np.concatenate((HLon,DotsLonMA,DotsLonMC,DotsLonMB,DotsLonMD,DotsLonMAB,DotsLonMAD,DotsLonMBC,DotsLonMDC), ...
2018/03/13
2,434
6,854
<issue_start>username_0: > > XNOR operation should be performed on the two integer values (1101011 XNOR 1010101) and should return 1000001. > > > ``` int a = 1101011; int b = 1010101; int res = 0; res = ~(a ^ b); cout << res; ``` > > This outputs: -2073959. > > > I'm very new to programming, and any help...
2018/03/13
1,434
6,336
<issue_start>username_0: I want to decode QR code which was set into imageView. I tried the following code. ``` BitmapDrawable drawable = (BitmapDrawable) imageView.getDrawable(); Bitmap bitmap = drawable.getBitmap(); QRCodeReader reader = new QRCodeReader(); Result result = reader.decode(bitmap); ``...
2018/03/13
492
1,593
<issue_start>username_0: How can I get this style in my android app? White navigationbar and grey icons. An example is when opening the application drawer. [![enter image description here](https://i.stack.imgur.com/S3nk6.png)](https://i.stack.imgur.com/S3nk6.png) I have tried many options but without success. the appl...
2018/03/13
2,578
10,223
<issue_start>username_0: I have followed many tutorials of Laravel repository and msot of the tutorial similar.one of the link below <https://itsolutionstuff.com/post/laravel-5-repository-pattern-tutorial-from-scratchexample.html> **Step 1: Create Interface** In first step we have to create Interface, before create ...
2018/03/13
1,568
5,116
<issue_start>username_0: I created an `Import` button which should import data from another opened Excel file, but instead I'm having the following issue. It is 2013 office version. I have no idea what is wrong with it and would appreciate some advice. **Screenshots:** (Click to enlarge images.) [![ss1](https://i.st...
2018/03/13
3,145
8,969
<issue_start>username_0: I have created one responsive email template in html. There are some styles issues. I think **Padding** and **Margin** not working in **outlook 2007 and above**. I have tried so many options like these below [Margin in html not working in Outlook](https://stackoverflow.com/questions/20347803...
2018/03/13
625
2,058
<issue_start>username_0: need to hold input values after changing tab.let me consider each tab pane contains form inputs ,the form fields are clearing if i switch between tabs, how to hold these values. ``` import React from 'react' import { Tab ,Input} from 'semantic-ui-react' const panes = [ { menuItem: 'Tab 1', ...
2018/03/13
2,265
8,120
<issue_start>username_0: Having an issue loading my data from firebase database into my tableview. I have the following. UItableview controller, CollegeDetailVC (which acts as a form that essentailly fills out the tableview controller), individual model for a singular "Offer", and an OfferCell which is the tableviews ...
2018/03/13
2,675
6,328
<issue_start>username_0: I was hoping someone could help me figure out a way to print an array vertically. please note my array length not equal. ``` [ ["birthdate", "birthmonth", "contact_id", "company_id", "contact_type_id", "type_name", "vendor_type_id", "is_active", "first_name", "last_name", "email_address", ...
2018/03/13
1,777
6,346
<issue_start>username_0: HI I would like to insert a XWPFTable in between some contents. The file is content is fixed and file is taken as input. I need the table to be inserted in the specific field. like this: Stack Overflow is a privately held website, the flagship site of the Stack Exchange Network, created in 2...
2018/03/13
2,404
8,712
<issue_start>username_0: My ScrollView is not scrolling unfortunately, I've tried the solutions posted here: [React-Native, Scroll View Not Scrolling](https://stackoverflow.com/questions/39548664/react-native-scroll-view-not-scrolling), but it doesn't seem to help. Has anyone encountered this and is able to help me wit...
2018/03/13
384
1,448
<issue_start>username_0: I have a table with 'Name', 'Flag' and some other columns. I want to select specific group of rows from table. Data is already sorted based on another time-stamp column. ``` Name Flag ------ ------ A D B D C D D I E ...
2018/03/13
516
2,178
<issue_start>username_0: I generate a sprint boot by <https://start.spring.io/>. Then I added a JSP view to the project. But it is not rendering. I don't know what could be wrong. Here is my project code:- Main App:- ``` @SpringBootApplication public class Application { public static void main(String...
2018/03/13
1,312
3,829
<issue_start>username_0: I am trying to align an icon with some text like this: [![enter image description here](https://i.stack.imgur.com/dGi1W.png)](https://i.stack.imgur.com/dGi1W.png) however it comes out like this: [![enter image description here](https://i.stack.imgur.com/BLsie.png)](https://i.stack.imgur.com...
2018/03/13
881
3,337
<issue_start>username_0: I am using Jsch(Jcraft) library to establish a SSH connection with a SSH server as shown below : ``` JSch jsch = new JSch(); String user = "****"; String host = "****"; int port = 22; String privateKey = "***.ppk";//Path to private key(The file is in .pp...
2018/03/13
731
2,567
<issue_start>username_0: Applying a scope to a an Active Record Relation is permanently modifying the relation. Why? ``` company_purchases.to_sql => "SELECT \"purchases\".* FROM \"purchases\" WHERE \"purchases\".\"company_id\" = 17" company_purchases.by_state("finalized").to_sql => "SELECT \"purchases\".* FROM \"purc...
2018/03/13
587
1,702
<issue_start>username_0: The [customizing theme Vuetify's guide](https://vuetifyjs.com/en/style/theme) not show a complete one-page-code, and when I try the clues, no is working. See trying-example at this [codepen](https://codepen.io/ppKrauss/pen/yKYrEM). ```html **Hello** - test 123 Bye - test. ``` Using the ...
2018/03/13
373
1,174
<issue_start>username_0: I have intalled word press theme evrything working fine but Sir i need to add **Testimonials Slider to the existing section .**<issue_comment>username_1: Publisher's will usually call `use` when using the CDN. In order for this to work you will need apply it to each `Vue` instance, which you ca...
2018/03/13
676
2,162
<issue_start>username_0: I have a list of duplicate values in column A that will be added as keys to a dictionary. Then for each row in column A there are other duplicates values from column 3 to .columns.count. I need to add them to the dictionary as multiples items of each key. At the end I should have two columns: t...
2018/03/13
907
3,669
<issue_start>username_0: As i am a junior PHP Developer growing day by day stuck in a performance problem described here: I am making a search engine in PHP ,my database has one table with 41 column and million's of rows obviously it is a very large dataset. In `index.php` i have a form for searching data.When user ent...
2018/03/13
728
2,506
<issue_start>username_0: ``` $("#spark-collector").kendoSparkline({ type: "line", data: [ 71, 70, 69, 68, 65, 60, 55, 55, 50, 52, 73, 72, 72, 71, 68, 63, 57, 58, 53, 55, 63, 59, 61, 64, 58, 53, 48, 48, 45, 45, 63, 64, 63, 67, 58, 56, 53, 59, 51, 54 ], valueAxis: { ...
2018/03/13
825
3,405
<issue_start>username_0: So i have this code, part of a larger function. ``` int size, j; cout << "Enter the size of array" << endl; cin >> size; float b, n[size];// error ``` and I get the already famous E0028-expression must have a constant value. Now I saw people getting around this with "new int" and...
2018/03/13
256
783
<issue_start>username_0: I'm using MyISAM Simply How to find table's free space in single **schema**?<issue_comment>username_1: myself found an answer in google ``` SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB", sum( data_free )/ 1024 / 1024 "Free Space ...
2018/03/13
352
1,187
<issue_start>username_0: i want to understand if i need to query a table and query is something like below > > Select \* from table\_name where date\_column > sysdate-2 and date\_column < sysdate; > > > note: my intention is to select data of each day to be specific then how should i design my table for better ...
2018/03/13
1,335
4,043
<issue_start>username_0: I am trying to execute hive SQL via spark code but it is throwing below mentioned error. I can only select data from hive table. My spark version is 1.6.1 My Hive version is 1.2.1 command to run spark submit spark-submit --master local[8] --files /srv/data/app/spark/conf/hive-site.xml test\_...
2018/03/13
560
2,052
<issue_start>username_0: I am trying to convert an array into a javscript object that is designed to work with input checkboxes in AngularJS. This is the input array that I get from my backend: ``` let selectedRolesDB = ['ADMIN', 'SECURITY']; ``` This is what my front-end expects: ``` let selectedRoles = { '...
2018/03/13
485
1,773
<issue_start>username_0: I've been experimenting with ConstraintLayout, is there a way to set the max width of a view to a percentage of the parent (and a height of match constraint and dimension ratio of 1:1)? Here is the code without using max width: ``` xml version="1.0" encoding="utf-8"? ``` This is the result:...
2018/03/13
613
2,379
<issue_start>username_0: After trying hard to create screen which support multiple resolutions, I can't able to get success in deciding what resolution graphics I require to use for @1x, @2x and @3x sizes. Because in Storyboard also device is not displaying in exact screen size resolution, may be half width and height ...
2018/03/13
324
1,090
<issue_start>username_0: I'm on a product editing page, so i have first option to show the old record, and the second to show the rest of the options. Yes I have a query to show the first option. I'm using materialize. ``` *payment* php echo $row['name'] ? php $sql = "SELECT \* From brands Order by idBrand"; $result ...