date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 1,211 | 3,617 | <issue_start>username_0: I have a small condition in SQL Code. How can I write that in SSIS in Derived column task.
```
CASE WHEN SaleProduct IS NULL AND ReProduct IS NULL THEN ''
WHEN SaleProduct IS NOT NULL AND ReProduct IS NULL THEN SaleProduct
WHEN SaleProduct IS NULL AND ReProduct IS NOT NULL THEN Sa... |
2018/03/06 | 1,284 | 3,703 | <issue_start>username_0: I need to read a word from main function and convert the characters in UCASE if the first character is LCASE and vice versa using the user defined function.I tried ways for returning the array from function but still I am lacking some core ideas. Please debug this program and explain the way it... |
2018/03/06 | 1,178 | 3,551 | <issue_start>username_0: I am using printf but for some reason the cursor starts below the end of the previous line.
```
system("/bin/stty raw");
while(true){
char c = getchar();
printf("%c\n", c);
}
system ("/bin/stty cooked");
```
My output ends up looking like this.
```
Enter a value:... |
2018/03/06 | 1,042 | 3,828 | <issue_start>username_0: is there a way to make a comma separated from an object. Note its object not List of object
Ex:
```
public class EmployeeLogReportListViewModel
{
public DateTime Date { get; set; }
public int EmployeeID { get; set; }
public TimeSpan Time { get; set; }
public int Sort { get; s... |
2018/03/06 | 1,452 | 4,976 | <issue_start>username_0: I'm running into an issue when running a test server after adding a new Item entity that has a ManyToOne relationship with an inventory entity. In PGAdmin4, an Item table is shown that looks correct when comparing it to my Inventory table, so I'm not entirely sure where the bug splat is located... |
2018/03/06 | 255 | 831 | <issue_start>username_0: My question is - How to change disables `EditText` underline color on 17 API? I
have tried with styles and didn't look for disabled param. Any suggestions?<issue_comment>username_1: You can set edittext background transprent to remove underline
```
android:background="@android:color/transpare... |
2018/03/06 | 652 | 2,823 | <issue_start>username_0: I have records :
```
let a = [{
"resource" : "user",
"permissions" : [
"add",
"list",
"verify",
"add-credit",
"deactive",
"trash",
"edit",
... |
2018/03/06 | 381 | 1,541 | <issue_start>username_0: I have been trying to create an online discussion forum as a fun project. In this application, registered users can create a "topic". Other users can reply to that topic (lets call them "posts"). Also, people can "reply" to posts . However, reply to "replies" is not required at present.
I tho... |
2018/03/06 | 613 | 1,858 | <issue_start>username_0: I have two tables:
```
INSERT INTO `companies` (`name`) VALUES
('Walmart'),
('Disney'),
('Amazon'),
('Unicom'),
('Microsoft'),
('Intel')
INSERT INTO `users` (`id`, `company`) VALUES
(1, 'Disney'),
(2, 'Amazon'),
(3, 'Intel'),
(3, 'Walmart'),
(4, 'Microsoft'),
(4, 'Unicom'),
(5, 'Microsoft')
... |
2018/03/06 | 359 | 1,201 | <issue_start>username_0: I have simple application using nodejs.My view file is php instead of html.There is issue regarding compiling the php file using :
res.sendfile(\_\_dirname + '/index.php');It works well with html file but not with php file. Please help how to use php with nodejs.<issue_comment>username_1: Try t... |
2018/03/06 | 1,413 | 3,186 | <issue_start>username_0: ```
> tempDT <- data.table(colA = c("E","E","A","C","E","C","E","C","E"), colB = c(20,30,40,30,30,40,30,20,10), group = c(1,1,1,1,2,2,2,2,2), want = c(NA, 30, 40, 70,NA,40,70,20,30))
> tempDT
colA colB group want
1: E 20 1 NA
2: E 30 1 30
3: A 40 1 40
4: C... |
2018/03/06 | 431 | 1,709 | <issue_start>username_0: Whit very simple example I want to ask you about garbage collection in Java. I have few object in one arrayList. In some point I want to remove one object from the arrayList and at the same time I want to destroy this object. How to do this?
Please help!
Here is example:
```
class SomeClass{... |
2018/03/06 | 1,470 | 6,938 | <issue_start>username_0: I am trying to build my first React+Redux app. Still in scaffolding stage + I am new in React.
I've created a simple login app where the `AuthAction` returns a `Promise` from `login(username, password)` function. Login works perfectly if the Promise return `resolve` but if Promise return `reje... |
2018/03/06 | 416 | 1,391 | <issue_start>username_0: I'm creating an uwp app. My app works well in debug mode. But when compiled with .net native toolchain, which is essential to publish app to the Store, it crash immediately. I was trying to enable all the exception settings but it didn't hit any breakpoints. All the information I can get from t... |
2018/03/06 | 803 | 2,365 | <issue_start>username_0: The code inside the for loop is for the x and y (j and i) "coordinates" from a 2d array. How could I implement this neighbor/index finding in a 1d array?
I think I could implement it for the first four equations. But i'm confused as how to implement up-left etc.
```
for(int i=0; i
```<issue_c... |
2018/03/06 | 1,079 | 4,191 | <issue_start>username_0: I am trying to figure out how to use the Refit library to make GET requests but I do not know why it is not working. I am following the example on the refit github page. What am I missing? It seems like the GetUser("octocat") method is not working. I've tried searching for other examples on how... |
2018/03/06 | 1,066 | 4,022 | <issue_start>username_0: I'm localizing my Angular app using [Angular's i18n tools](https://angular.io/guide/i18n), which extract text from HTML templates into an xlf file, and then build a localized version of the whole app using AOT (ahead of time compilation).
My question is: Can is use this framework to extract st... |
2018/03/06 | 652 | 2,709 | <issue_start>username_0: We are using log4net library for write logs in a file. Actually we have a payment form where we are accepting three fields
1. Card Holder Name(max length 50)
2. Card Number(Valid credit card number i.e Master/Visa etc) and
3. Reference(this is just a text file, max length user can input any s... |
2018/03/06 | 261 | 1,057 | <issue_start>username_0: Hi i have used two textbox. one is for showing the country code another one is for getting mobile number and here i want to show a message below the Phone number field. but it starts appearing from country code. so i want to show the message form starting of the business phone tet box. Please h... |
2018/03/06 | 745 | 2,415 | <issue_start>username_0: I have a class `vector210`, in which I am trying to create a copy constructor as is outlined below in the sample code below (only part of the complete code).
```
class vector210 {
public:
int arraySize;
int values[1];
vector210(int array[], int arraySize_){
arraySize = arraySize_... |
2018/03/06 | 962 | 3,442 | <issue_start>username_0: [](https://i.stack.imgur.com/c3amP.jpg)
Error Domain=com.facebook.sdk.core Code=3 "(null)" UserInfo={com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Unknown error building URL.}
The login code is as follows
```
FBSDKLoginMan... |
2018/03/06 | 1,512 | 5,724 | <issue_start>username_0: I want to check user's online status, in realtime database I used to check this with the help of onDisconnect(), but now I've shifted to firestore and can't find any similar method in that.<issue_comment>username_1: According to this [onDisconnect](https://firebase.google.com/docs/reference/js/... |
2018/03/06 | 466 | 1,660 | <issue_start>username_0: I create migration in laravel 5.6.
I need add user information if the user was logged in my website else add `0` in column.
My code is:
```
$table->integer('user_id')->default(0);
$table->foreign('user_id')->references('id')->on('users');
```
But aftre run `migrate` show this error:
```
S... |
2018/03/06 | 2,018 | 6,283 | <issue_start>username_0: I have been trying to run a simple Haskell program using `TDFA`. The program is as follows:
```
import Control.Monad
import Data.Array
import qualified Data.Text as T
import Text.Regex
import Text.Regex.TDFA
import Text.Regex.Base
str = "abbbbaab" :: String
regex = "... |
2018/03/06 | 1,052 | 3,460 | <issue_start>username_0: I need to send a picture to another place, where it requires picture size must be less than 512kb.
I use `PIL` to deal with my picture which download from internet. so I don't know what will be the next picture's size, code like this:
```
from PIL import Image
picture_location = '/var/pictu... |
2018/03/06 | 1,646 | 6,580 | <issue_start>username_0: I am using `Laravel 5.4`, I have just started learning `firebase messaging` and I want to get the `notification` on my web-browser if someone sends it.
What I've implemented is, in a `master page` I have imported `firebase scripts` as below:
**resources/views/layouts/master.blade.php:**
```... |
2018/03/06 | 454 | 1,468 | <issue_start>username_0: I'm using Laravel 5.6, Laravel Mix 2.0, and Bootstrap-Vue 2.0.0-rc.1.
Trying to find a way to configure Laravel Mix to include Bootstrap-Vue's CSS into my `app.css` file and prevent Bootstrap-Vue from including<issue_comment>username_1: Install:
1. npm i bootstrap-vue
2. npm install --save-de... |
2018/03/06 | 532 | 2,047 | <issue_start>username_0: In Django, I tried using form.errors.as\_json() to get all form errors and here is sample json data strings.
```
{"password2":[{"message": "This password is too short. It must
contain at least 8 characters.","code":"password_too_short"}]}
```
I wanted to loop and get all under "message" key... |
2018/03/06 | 1,438 | 6,141 | <issue_start>username_0: I have a Spring 4 JUnit test which should verify only a particular part of my application.
```
@WebAppConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:context-test.xml")
@ActiveProfiles("test")
public class FooControllerIntegrationTest {
...
}
```
... |
2018/03/06 | 977 | 2,637 | <issue_start>username_0: I would like to implement concatenation across columns that removes NAs and observes the Oxford comma.
```
x <- data.frame(ID = 1:3,
col1 = c("snap", "snap", NA),
col2 = c(NA, "crackle", "crackle"),
col3 = c(NA, NA, "pop"),
... |
2018/03/06 | 1,124 | 3,012 | <issue_start>username_0: We recently upgraded DevExpress. Since we have a custom theme, we had to upgrade the custom theme too.
That was the easy part. Now I'm trying to upgrade the setup to match the new file.
So basically, I'm changing the of one :
**From**
```
...
```
**To**:
```
...
```
Now I've an er... |
2018/03/06 | 862 | 2,403 | <issue_start>username_0: I am automating an application were , Explicit wait is not working .
My requirement is to wait for a particular element until it is loaded/ visible or clickable to perform next action.
I tried all the expectedconditions in explicit but it failed. only sleep is working.
One thing that i have ... |
2018/03/06 | 291 | 1,043 | <issue_start>username_0: Hello I'm developing web app using `php` I'm facing an issue in appending value from the dropdown to the `textarea`. It displays appended in `html` but not in `textarea`.
If I edit `html` in inspect element then the changes get affected.
**Here is my code:**
JS:
```
$('#txtfieldname').on('c... |
2018/03/06 | 561 | 2,013 | <issue_start>username_0: I have a legacy project that I'd like to convert to a Maven project for dependency management.
The problem is, that I have one jar (fop-1.1.jar) that I had to edit. It differs from the one that is publicly available and I only have it locally. But I need it this way.
What I tried to do, follo... |
2018/03/06 | 396 | 1,264 | <issue_start>username_0: I got a problem is after I save and go back to index.php .the model pop up not working, how to make after save, will get pup out model after going back to index.php. Hope all pro can help me to solve this problem, tq.
This one is index.php
//This part is my model //
```
×
 -> Array {
var objectFields = [ObjectDat... |
2018/03/06 | 593 | 2,315 | <issue_start>username_0: I am loading messages from Realm database in the message list.
```
// loads all messages from database
func loadMessages() {
messages = List(realm.objects(Message.self))
collectionView?.reloadData()
}
```
Where messages is defined as:
```
var messages = List()
```
I defined ... |
2018/03/06 | 865 | 3,077 | <issue_start>username_0: I've code, it works fine.
```
using (var dbContext = new UnitOfWorkFactory(sqlConnection).Create())
{
var result = dbContext.Repository()
.Get()
.AsNoTracking()
.Where(r => r.Id == 1)
.Select(item => new
{
TableId = item.TableId,
OriginalTableName = item.TableName.Replace("$",... |
2018/03/06 | 235 | 839 | <issue_start>username_0: I want to write a JAR, which will be helpful in fetching data from PLM(Bug management tool). but i am not find any API for this.<issue_comment>username_1: I guess you should use the Agile API – A Java API with interfaces that expose Agile business objects. Please use the links below to refer.
... |
2018/03/06 | 798 | 2,570 | <issue_start>username_0: I am storing function body in string with function name.
```
function fnRandom(lim){
var data=[];
for(var i=0;i
```
After selecting the functionName from a drop down I use eval to execute function body.
```
JSON.stringify(eval(this.selectedFunction.body));
```
I want to pass *'lim'... |
2018/03/06 | 4,709 | 17,600 | <issue_start>username_0: Currently I have my password `TextFormField` like this:
```dart
TextFormField(
decoration: const InputDecoration(
labelText: 'Password',
icon: const Padding(
padding: const EdgeInsets.only(top: 15.0),
child: const Icon(Icons.lock),
)),
validator: (val) =>... |
2018/03/06 | 2,103 | 9,596 | <issue_start>username_0: I've looked at every related question I could find, but haven't been able to find an answer that works in my scenario. I'm using a Spring WebSecurityConfigurerAdapter, and I was able to authenticate a single user type, but after configuring my SecurityConfig class to handle multiple user types,... |
2018/03/06 | 845 | 2,052 | <issue_start>username_0: ```
return client.request(methods::GET).then([](http_response response) -> pplx::task
{
if (response.status\_code() == status\_codes::OK)
{
std::cout << "status ok";
response.headers().set\_content\_type(L"application/json");
return response.extract\_json();
}
// Handle error cases, fo... |
2018/03/06 | 477 | 1,704 | <issue_start>username_0: I need to log the launcher Activity name for a particular activity in android.
I have tried using the code given in " [Get the launcher Activity name of an android application](https://stackoverflow.com/questions/13027374/get-the-launcher-activity-name-of-an-android-application)" by doing few ... |
2018/03/06 | 575 | 2,193 | <issue_start>username_0: I have created a script for searching an element and once it is visible I click on it.Below is the code of the same.
**Method call**
```
String xpath = //android.widget.TextView[@text='Some text to wait for'];
WebElement element = searchElement(user.getBroadCastName(), ByXPath.xpath(xpath));
... |
2018/03/06 | 765 | 2,291 | <issue_start>username_0: I'm trying to get a formatted number that increments every time through a while loop.
I've got `fnum=$(printf "%03d" $((++num)) )` but the number doesn't increment. `fnum` is "000" and remains at that.
Of course `num=$((++num)) ; fnum=$(printf "%03d" $num)` works but I'm wondering why the fir... |
2018/03/06 | 1,842 | 6,381 | <issue_start>username_0: We were trying to fetch results from database via `SQL` query using `hibernate` which will return `List`, if records are present. But later we want to convert it into a `List`. So instead of iterating through the `Object[]` list and keep on adding to integer list, we tried something and the sam... |
2018/03/06 | 4,216 | 11,342 | <issue_start>username_0: We recently found some code submitted to our codebase, along the following lines:
```
#pragma pack(push,1)
struct xyzzy {
BITMAPINFOHEADER header;
char plugh;
long twisty;
} myVar;
```
My question is: does the packing apply *only* to the immediate structure or might it affect the... |
2018/03/06 | 4,220 | 11,259 | <issue_start>username_0: This is my code
```
from selenium import webdriver
from selenium.webdriver.common.by import By
class Runfftest():
def test(self):
"""
Inistitate the ff browser
launch the browser
:return:
"""
baseUrl = "https://letskodeit.teachable.com/p/pr... |
2018/03/06 | 544 | 1,510 | <issue_start>username_0: ```
let addr = "192.168.127.12:1982";
let socket = UdpSocket::bind(addr).unwrap();
let message = "some message".as_bytes();
socket.send_to(message, addr).unwrap();
```
This code gives the following error for the last line:
```none
Error { repr: Os { code: 49, message: "Can\'t assign requeste... |
2018/03/06 | 976 | 3,742 | <issue_start>username_0: I've read [this](https://superuser.com/questions/435367/sublime-text-find-and-replace-within-selection) thread indicating how to find and replace within selection in ST2. Despite reading [this](https://forum.sublimetext.com/t/smart-search-replace-within-selection-lost-on-st3/9433/11) thread but... |
2018/03/06 | 5,604 | 19,973 | <issue_start>username_0: I use a web service for image processing , it works well in Postman:
[](https://i.stack.imgur.com/UAHqI.png)
Now I want to make http request in flutter with Dart:
```
import 'package:http/http.dart' as http;
static ocr(File image)... |
2018/03/06 | 5,671 | 20,103 | <issue_start>username_0: [ CODE UPDATED ]
how, if a value is passed to a textbox from ajax on success, then how to use that value with MySQL where clause?
Ajax Code :
```
var recstr1 = "<NAME>";
data={txtname:recstr1};
$.ajax({
type: 'POST',
url: 'getprojectnamerep.php',
data: data,
datatype: "html",
succe... |
2018/03/06 | 561 | 2,012 | <issue_start>username_0: I am trying to implement the pbkdf2 on java card, but the card doesnot support the same. Can someone help.<issue_comment>username_1: PBKDF2 is a key strengthening algorithm. Although top of the line smart card processors are getting near 100 MHz by now (some 33 times the speed of my old MSX, an... |
2018/03/06 | 608 | 2,251 | <issue_start>username_0: I am currently working on a chat application.
For connecting client to server i have to enter the IP address of server manually as we are using LAN and every time server system connected it's ip gets changed.
So is there a way to find the ip address of a specific computer by just using its pc n... |
2018/03/06 | 1,275 | 4,629 | <issue_start>username_0: I already did one pipe (search) filter the results but I want a second pipe or another way to filter the search values in options select and show the values only once.
What I need is a dynamic search - select options menu with unique (distinct) values.
The problem:
[![enter image descriptio... |
2018/03/06 | 754 | 2,899 | <issue_start>username_0: I'm contemplating creating a RESTful API to monitor a remote instrument - for purposes of discussion, assume the remote instrument is a voltmeter.
One important function of the API is to read the voltage as measured by the instrument at any time.
My question: what, if any, is the appropriate... |
2018/03/06 | 1,183 | 3,978 | <issue_start>username_0: There are some topics in this case, but after tried all way, no success. I am trying to make image responsive in owl carousel 2 plugin, I used `responsive` option in plugin option and I have control on number of item on desire resolution but in some resolution image not fit to parent height, th... |
2018/03/06 | 518 | 1,855 | <issue_start>username_0: *This code does'nt show me the content which is present in an array*
```
Upload
```
>
> Script used to display the name of file through array
>
>
>
```
$('#upload').on('click', function() {
var filename=[];
$("#show").each(function(){
filename.push($(this).(files.name));
});... |
2018/03/06 | 602 | 2,117 | <issue_start>username_0: so I try to get the width of the device using jquery I made responsive website with 2 interface for laptop and mobiles but the problem is it doesn't work in mobile even the dimension of the div test was out of size in mobiles please help me the code that I use for redirecting is below with comm... |
2018/03/06 | 567 | 1,879 | <issue_start>username_0: I am running below script and getting
>
> error script.sh: line 9: unexpected EOF while looking for matching `''
> script.sh: line 15: syntax error: unexpected end of file.
>
>
>
Though I tried to run line 9 manually n it runs without error.
```
alias gxt="awk -F "_" '{print \$1}' test... |
2018/03/06 | 1,654 | 5,386 | <issue_start>username_0: What ends up happening is that the two columns cannot cohabitate next to each other without shrinking the width by about 2%. Doing that causes the edges to not align with the header and it just looks off. Is there something I am missing about 'width' or 'padding'?
This is what I am trying to e... |
2018/03/06 | 1,019 | 3,247 | <issue_start>username_0: The problem is as follows.
I have installed `libarmadillo` on my Ubuntu distributive via `apt` utility having `liblapack` and `libblas` previously installed. And I'm trying to use it in my CLion project. What my intentions result in is that I'm receiving some build errors. One of them was solv... |
2018/03/06 | 579 | 2,113 | <issue_start>username_0: In an interpreter for a toy functional language, I have an `expr` type which has one constructor for each arithmetic and boolean operator. I'd like to factorize this type into something like:
```
type expr =
| Int of int
| BinaryArith of (int -> int -> int) * expr * expr
| Comparis... |
2018/03/06 | 671 | 2,575 | <issue_start>username_0: I am new to Machine Learning and python. Recently i have been working with Amazon fine food review data from kaggle and its code.
What i don't understand is how is the 'partiton' method used here ?
Moreover, What actually does last 3 lines of code do ?
```
%matplotlib inline
import sq... |
2018/03/06 | 356 | 1,180 | <issue_start>username_0: I want to find only Id from my table.
the condition is, the selected id have the least number of days validity
Like
```
min(datediff(day,datefrom,dateto))
```<issue_comment>username_1: I can't rule out that this is an instance of the [XY problem](https://meta.stackexchange.com/questions/6... |
2018/03/06 | 463 | 1,966 | <issue_start>username_0: I am using the command `cp -a /*` for copying and pasting the files inside one particular destination. In the destination the above command only replaces the files inside a folder that is present in source as well. If the there are other files present in destination, the command will not do an... |
2018/03/06 | 466 | 1,792 | <issue_start>username_0: I've got the following task in Gradle 4 build:
```
task copyWsdlFromArtifacts(type: Copy) {
includeEmptyDirs = false
from((configurations.wsdlAndXsdSourcesCompile.files + configurations.wsdlAndXsdSources.files).collect { zipTree(it)})
into "$buildDir/schema/"
include '**/*.xsd'... |
2018/03/06 | 1,191 | 4,649 | <issue_start>username_0: I have an array of table names, so I need to fetch response of three tables. See the below code. Once the data is appended to the dom I need to call the successMessage method, now I am using setTimeout how can I use promise in the this scenario
```
let lists = ['table1', 'table2', 'table3'... |
2018/03/06 | 475 | 1,712 | <issue_start>username_0: The default "UIPickerView" has a thin gray line at the top and bottom that I want to remove, but I can't find out how to do that.
Is there a property somewhere that I can set to clear?<issue_comment>username_1: in picker view datasource method
```
func numberOfComponents(in pickerView: UIPi... |
2018/03/06 | 889 | 2,700 | <issue_start>username_0: What I am trying to build is a function that takes an input number and checks if the following number is a multiple of that number.
```
function checkIfMult($input,$toBeChecked){
// some logic
}
```
example:
```
checkIfMult(2,4) // true
checkIfMult(2,6) // true
checkIfMult(2,7) // false
... |
2018/03/06 | 438 | 1,990 | <issue_start>username_0: In developing a Java based backend using the Google App Engine, it occurred to me that since I end up paying by the number of instances created, it obviously makes sense to design the code in such a way as to minimize the memory usage. This has made me wonder whether it makes sense to use stati... |
2018/03/06 | 1,404 | 3,919 | <issue_start>username_0: ```
void cnt_cif(int n, int k, int &c)
{
if (n != 0)
{
if (n % 10 > k)
cnt_cif(n / 10, k, c + 1);
}
}
int main()
{
int n, k, c=0;
cin >> n >> k;
cnt_cif(n, k, c);
cout << c;
return 0;
}
```
Errors
```
Severity Code Description... |
2018/03/06 | 1,293 | 3,735 | <issue_start>username_0: I am currently working in dynamic template creation where user ***can drag any defined element from source area into destination area.*** Now after dropping user can modify it's text (change / add new).
I have done dragging and dropping but how to change it's text after dropping. ?
[)
select MstSmartItemLedger.smartitemid,MstSmartItemLedge... |
2018/03/06 | 283 | 905 | <issue_start>username_0: I have tried command 'sbt "project camera-answer" test' in the console, but too many tests shows, I only want to show failed test. How should I do.<issue_comment>username_1: you can run sbt testQuick.
<http://www.scala-sbt.org/0.13/docs/Testing.html>
also if you use ScalaTest you can add:
`... |
2018/03/06 | 903 | 3,111 | <issue_start>username_0: I have following code inside javascript loop
```
document.getElementById("alladdress").innerHTML+="";
document.getElementById("alladdress").innerHTML+="
";
document.getElementById("alladdress").innerHTML+="
";
document.getElementById("alladdress").innerHTML+="
";
document.getElementByI... |
2018/03/06 | 872 | 2,995 | <issue_start>username_0: I'm currently taking the course: **Introduction to R** on [DataCamp](https://www.datacamp.com) and in one exercise (*Battle of the sexes*) there is an instruction like this:
>
> Read the code in the editor and click 'Submit Answer' to test if `male`
> is greater than (`>`) `female`
>
>
>
... |
2018/03/06 | 843 | 2,830 | <issue_start>username_0: I am new at programming and I have to do a challenge where each person on a list get's an invitation but instead of changing the number in `guest_list[x]` 7 times, I'm sure there has to be an easier way. Here is what I managed to make. Please feel free to critique me.
```
plus_one= 'hitler'
gu... |
2018/03/06 | 268 | 1,080 | <issue_start>username_0: Is it possible to get list of running/installed apps programmatically in iOS 11.if any one know the answer, please help me.I searched many sites for answer, most of them shows it is not possible.please help me<issue_comment>username_1: You can use the AppList library to get a list of all instal... |
2018/03/06 | 928 | 3,359 | <issue_start>username_0: I keep running into trouble in trying to use Material UI.
I have a Material UI table. I'm trying to centre align the text.
The Material UI standard CSS has an element called: MuiTableCell-root-60. That has a attribute with text-align: left. I can't find a way to override that setting. The tab... |
2018/03/06 | 813 | 2,948 | <issue_start>username_0: I have few custom font faces (for english) defined in my css, i also have other font faces that only needs on specific language pages. How do i load these language fonts only on language pages.
example: `www.abc.cn` or `www.abc.jp` needs to load language fonts to user, but when user enters `ww... |
2018/03/06 | 880 | 3,254 | <issue_start>username_0: I have created a website and it needs a search functionality. The website has a bunch of html pages example: index.html, about.html, contact.html etc etc ... The search bar is in the nav of every page, i want to be able to type something in on the index.html page and if there is a result in the... |
2018/03/06 | 832 | 2,857 | <issue_start>username_0: ```
class Person:
pets=[]
def add_pet(self, pet):
self.pets.append(pet)
jane = Person()
bob = Person()
jane.add_pet("cat")
print(jane.pets)
print(bob.pets)
```
Print out:
```
['cat']
['cat']
```
why bob's pets is also cats? I didn't append pets to bob.<issue_comment>usern... |
2018/03/06 | 583 | 1,880 | <issue_start>username_0: I have two Integer type `ArrayLists`. How would I go about replacing the values of `ArrayList` 1 from index 5 to 10 with values of the same Index from `ArrayList` 2, without having to type it all separately?
What I tried to do :
```
ArrayList1.set(5, Arraylist2.get(5)); // Set 5th index of Ar... |
2018/03/06 | 514 | 1,699 | <issue_start>username_0: I have a normal `textarea`, and I am initializing `CKeditor` in basic way. The problem is I am unable to get `textarea` POST data in Request Laravel.
```
```
JS
```
if ($('#description').length) {
//var ck = $('.ckeditor');
CKEDITOR.replace('description');
}
```
Now when I try `$r... |
2018/03/06 | 237 | 749 | <issue_start>username_0: I have a tasks database which:
* id
* name
* start\_date
* end\_date
I need to retrieve tasks which end date are maximum today + 7 days. For example, if I have a task with 03/01/2018 end date, and today is 03/10/2018 it shouldn't appear. But if a task has 03/06/2018 end date, yes. And of cour... |
2018/03/06 | 392 | 1,236 | <issue_start>username_0: I am getting the following error:
>
> ModuleNotFoundError: No module named 'Image'
>
>
>
while running the below script for OCR:
```
import Image
from tesseract import image_to_string
print(image_to_string(Image.open('marlboro.png'), lang='eng'))
```
I am using Spider through Anacond... |
2018/03/06 | 900 | 3,296 | <issue_start>username_0: Getting this error on the email address I am trying to send an email to!
Not sure why I need to verify an email I am sending to which doesn't belong to me?
DEBUG SMTP: MessagingException while sending, THROW:
com.sun.mail.smtp.SMTPSendFailedException: 554 Message rejected: Email address is n... |
2018/03/06 | 502 | 1,954 | <issue_start>username_0: ```cs
CancelSalesOrderRequest cancelRequest = new CancelSalesOrderRequest()
{
OrderClose = new OrderClose
{
SalesOrderId = new EntityReference(salesOrder.LogicalName, salesOrder.Id),
Subject = "Close Sales Order " + DateTime.Now
},
Status = new OptionSetValue(-1)... |