date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/21 | 1,264 | 3,313 | <issue_start>username_0: I have a dataframe:
```
Name y1 y2 y3
1 Ben 01 02 03
2 Jane 04 05 06
3 Sarah 07 07 06
```
I am trying to add in a row in my dataframe which provides a total of the rows in each column. My code is:
```
import pandas as p... |
2018/03/21 | 1,187 | 3,074 | <issue_start>username_0: I have a field-name called "customer" contains the following values,
1. Brooks Sports
2. AM-Records
3. 1elememt
4. ALTAVISTA
5. Adidas
6. 3gdata
7. Apple
8. BMW
9. 7eleven
10. bic corporation
customer field in solr schema.xml
```
```
I need to perform case-insensitive sort on above custom... |
2018/03/21 | 503 | 1,922 | <issue_start>username_0: I have the below string which I have bound to a DOM element's 'innerHTML'. I have sanitized it so the browser does not remove it. The routerLink is not working. If I change it to href then it does work. How can I get Angular to bind this link?
**HTML string being bound**
```
Something
```<is... |
2018/03/21 | 670 | 2,458 | <issue_start>username_0: I'm writing an application that uses MSMQ and I'm encountering a problem specifically to do with encoding attribute for the XML declaration tag.
I'm constructing the message as below:
```
string xmlmsg = reqText.Text;
XmlDocument xdoc = new XmlDocument();
xdoc.Load(new StringReader(xmlmsg));
... |
2018/03/21 | 651 | 2,315 | <issue_start>username_0: I was advised to use the following piece of code:
```
query = 'Select "logtext" from log where jobid = %s;'
cursorErrorData.execute(query, str(row[0]))
```
Instead of using this:
```
query = 'Select "logtext" from log where jobid = %s;' % str(row[0])
cursorErrorData.execute(query)
```
I h... |
2018/03/21 | 600 | 2,099 | <issue_start>username_0: Does anyone know if it's possible to use a function in a v-for loop?
I would like to do something like:
```
{{ foo }}
[...]
props: {
Configuration: { required: true }
},
computed: {
data(){
return this.Configuration.something
.filter(stbc => {
retur... |
2018/03/21 | 1,290 | 3,813 | <issue_start>username_0: This one however is a bit different, as I have absolutely no clue about XSL, and need to get this template working for our shipping software.
I've got this doing what I want for the most part, learning as I go as I did with most other languages. But I can't seem to get the recursive loop going... |
2018/03/21 | 918 | 3,027 | <issue_start>username_0: I was using `shared_preferences` plugin in my Flutter application. From one moment (probably after Flutter upgrade), it started to throw an exception:
```
E/flutter (27778): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (27778): type '_InternalLinkedHashMap' ... |
2018/03/21 | 612 | 2,401 | <issue_start>username_0: I have the below "working" code in component.ts file (I have included the html code as well)
Please look at the commented lines in 3 places in the code. When I use FormControl variable directly then the valueChanges property works fine but when I access the FormControl variable from a FormGrou... |
2018/03/21 | 350 | 1,595 | <issue_start>username_0: In the fragment,I want to scroll the TextView inside the RecyclerView so i put Scrollbar inside RecyclerView but its not working in mobile but works well in emulator and also tried nested scrollview but have the same problem.
What could i do if i want to scroll the particular textview inside t... |
2018/03/21 | 1,311 | 5,157 | <issue_start>username_0: In my app login using mobile number or phone number in single edittext.
if we give digits it check valid phone number else if we give character(alphabet) check it is valid email address.
Note : check both email and phone number in single edit text.
Here java code,
```
if (username.getText()... |
2018/03/21 | 1,051 | 3,921 | <issue_start>username_0: I have the following structure in C++
```
struct A {
int a;
double b;
float c;
}
```
Is there a difference in memory layout between this struct and one with a function added to it?
```
struct B {
int a;
double b;
float c;
void foo();
}
B::foo() { //do stuff }
```<issue_commen... |
2018/03/21 | 389 | 1,439 | <issue_start>username_0: My input tensor is torch.DoubleTensor type. But I got the RuntimeError below:
```
RuntimeError: Expected object of type torch.DoubleTensor but found type torch.FloatTensor for argument #2 'weight'
```
I didn't specify the type of the weight explicitly(i.e. I did not init my weight by myself.... |
2018/03/21 | 593 | 1,791 | <issue_start>username_0: How can I get form data that is setup like an array?
My form for a questionlist has many inputs and they all have as name `name='p_Id[UUId of something]'` When i get the `$_POST['p_Id']` in php i get a perfect array. which looks like this.
```
array (size=2)
'0d2af2c0ce9d2872c3d153a5021543d1... |
2018/03/21 | 2,777 | 5,886 | <issue_start>username_0: I'm trying to calculate the difference in days of my rows to create interval.
My data set called `temp` looks like this,
```
ID Event
31933 11/12/2016
31933 11/14/2016
31750 09/04/2016
31750 09/10/2016
31750 09/30/2016
31750 10/01/2016
30995 09/04/2016
30995 09/09/2016
30995 ... |
2018/03/21 | 2,665 | 5,894 | <issue_start>username_0: So, far I have the program working, but I dont know how to close it out using the enter key or returning a value thats not a name like (y,n). I havent seen a solution that would write well into my code without giving me bugs so I feel like there might be a formatting error due to my inexperienc... |
2018/03/21 | 779 | 2,448 | <issue_start>username_0: How can i remove from **data** to end of the string in a single function? I need to pass the string and get the desired output. How can i trim the string which is not needed ?
How can i achieve this?
```
var firsturl = "www.google.com/sample/data/merge.html"
var secondurl = "www.goo... |
2018/03/21 | 794 | 3,282 | <issue_start>username_0: ```
public abstract class Entity
{
public abstract IList Values { get; set; }
}
public class GenericEntity : Entity
{
private IList \_Values;
public override IList Values
{
get { return \_Values; }
set
{
ValidateValues(value);
\_Values = value;
}
}
protected vi... |
2018/03/21 | 606 | 1,562 | <issue_start>username_0: I have 2 columns in a table :[CatId], [ItemId]
CatId is 4 digits and ItemId is 1 or 2. What I want to achieve is to replace the ItemId with the concatenation [CatId]+[ItemId] , but if ItemId is 1 digit then add a 0.
For example:
`CatId: 1555, ItemId: 12 -> ItemId: 155512`
`CatId: 1555, Ite... |
2018/03/21 | 427 | 1,402 | <issue_start>username_0: I'm currently trying to figure out how to access the child of one of the elements in the following collection:
`var items = document.querySelectorAll(".timeline li");`
At one point I loop through the `items` and I'd like to be able access one of the child elements of the `li` that I collected... |
2018/03/21 | 362 | 1,151 | <issue_start>username_0: Hi Can anyone please help in getting linked defects for test runs in using rest API.
I have tried giving ../defects//defect-links but i am getting bad request error.<issue_comment>username_1: >
> If I use items[i] I will get list item, but from there I'm not sure
> how to access the span insi... |
2018/03/21 | 577 | 1,913 | <issue_start>username_0: I want a callback to be called when a specific DOM node enters the viewport.
Additionally I have the following situation:
* [`aFarkas/lazysizes`](https://github.com/aFarkas/lazysizes) is used on the page.
* [`Intersection Observer API`](https://developer.mozilla.org/en-US/docs/Web/API/Interse... |
2018/03/21 | 1,362 | 3,646 | <issue_start>username_0: I'm trying to get all Youtube video IDs from string like this:
```
https://www.youtube.com/watch?v=OovKTBO4aQs https://www.youtube.com/watch?v=DOQsYk8cbnE https://www.youtube.com/watch?v=97aiSGxmizg
```
Following to [this answers](https://stackoverflow.com/questions/6323417/how-do-i-retrieve... |
2018/03/21 | 1,704 | 6,610 | <issue_start>username_0: What I have: A `RecyclerView` with pictures of places like bars, coffee stores, etc.
What I want: That when you click on one of these images I show you the info of the selected place
My question: How can i set the `OnCLickListener` for the third picture for example
Please, if you can explain... |
2018/03/21 | 1,004 | 3,544 | <issue_start>username_0: **My Objective:** To update array attribute and other sub json attribute programatically.
**Environment:** Visual Studio C#, NewtonSoft Library
I have a json file sample as below
```
{
"model": "xx.yyy",
"make": "philips",
"alias": [ "abc", "bcd", "aee", "sample" ],
"varia... |
2018/03/21 | 882 | 3,155 | <issue_start>username_0: I'm building a .NET c# app that's connecting to my SQL Anywhere 12 Database to get data using the ODBC driver but i have a weird problem that whenever i use a filter in the query i get nothing in the reader but if i do the same query in Sybase Center i get the expected results ..
this is an ex... |
2018/03/21 | 633 | 2,477 | <issue_start>username_0: I want to update the values of the DataGrid only when we come out of the control. So to achieve this i used LostFocus event of the datagrid. But this event triggering every action of the datagrid. For example when i clik on the cell to edit it is triggering.
Control ctrl = FocusManager.GetFoc... |
2018/03/21 | 563 | 2,140 | <issue_start>username_0: Not even sure the best way to describe it, but basically I have a function in an Express Controller, available at /api/lookupJobName which takes query param Q, which is a number, and then does some background work (connects to Salesforce, looks up the job number, gets it's actual name) and retu... |
2018/03/21 | 394 | 1,335 | <issue_start>username_0: I have the following string:
```
text = "i eat salad"
```
I would like to change `eat` to `ate` to get:
```
text = "i ate salad"
```
Do i have to use join or split?
```
text.split()[1] = 'ate'
print(text)
```
I've tried this before unsuccessfully.<issue_comment>username_1: What you cou... |
2018/03/21 | 1,359 | 5,786 | <issue_start>username_0: In Java, I have a TreeViewer and I am trying to detect a click on a specific cell (not any cell). For example, if I click on a the first cell in a row, I want to detect that the click was made on the first cell in particular.
The following code will fire an event as soon as I double click on a... |
2018/03/21 | 892 | 3,956 | <issue_start>username_0: I'm having trouble reading the values from a textfield. Every time I type in this line `let username = UsernameTextField.text` I get an error saying "Cannot use instance member 'UsernameTextField' within property initializer; property initializers run before 'self' is available".
Here is the f... |
2018/03/21 | 595 | 2,181 | <issue_start>username_0: I want to insert a blank line in csv using java. I have written following code:
```
CSVFormat csvFileFormat = CSVFormat.DEFAULT.withRecordSeparator("\n").withEscape('\\');
FileWriter fileWriter = new FileWriter(csvFile);
CSVPrinter csvFilePrinter = new CSVPrinter(fileWriter,csvFileFormat);
c... |
2018/03/21 | 530 | 1,987 | <issue_start>username_0: i have probably a small trouble.
Here is a function that returns a Promise.
```
export default ()=>{
const socket = io(config.crypt_compare_api_url);
let subscription = config.subscription;
socket.emit('SubAdd', { subs: subscription });
return new Promise(resolve => {
... |
2018/03/21 | 454 | 1,832 | <issue_start>username_0: I am semi-new to Dialogflow, so sorry if this is really simple, but I can't seem to find an answer anywhere. Here's my problem:
I am trying to make a chatbot where if the user says something like "speak to a human", the chatbot just stops talking all together. I know the easiest way to do this... |
2018/03/21 | 2,455 | 8,215 | <issue_start>username_0: I am trying to get a formatted output from 2 arrays one with the countries and the otyher with the populations which should provide an output as follows:
```
Egypt | 92592000
France | 66991000
Japan | 126860000
Switzerland | 8401120
```
The only hint I received was that... |
2018/03/21 | 552 | 1,607 | <issue_start>username_0: there is a table "Likes" with fields "ID1" and "ID2" where there is mutually exclusive pairs , i want to find them
i tried it by concatenation and it didn't work , i can't figure out why
[enter image description here](https://i.stack.imgur.com/h04Qf.png)<issue_comment>username_1: If I've corre... |
2018/03/21 | 706 | 2,259 | <issue_start>username_0: I create a window and immediately after launch hide it and show another window. There's a button in that another window, clicking that should show the main window but the program crushes.
Here I send signal to show the main window:
```
class Launcher(QWidget):
signal = pyqtSignal()
de... |
2018/03/21 | 2,739 | 12,004 | <issue_start>username_0: Background
----------
I have a layout that has some views at the top, which should be scrollable together with an EditText below them.
The EditText takes the rest of the space, as much space as it needs.
Here's a sample POC layout that demonstrate it (used just 2 EditTexts here) :
```
```
... |
2018/03/21 | 1,628 | 4,005 | <issue_start>username_0: I tried some code to flatten but it flattens the whole json. My requirement is just to flatten only position property.
I have following json array:
```
[{
amount:"1 teine med 110 mtr iletau"
comment:""
created:"Tue May 17 2016 00:00:00 (W. Europe Standard Time)"
locationDescription:"På vestsi... |
2018/03/21 | 1,237 | 3,379 | <issue_start>username_0: I have a `StackPanel` that was made with a `ItemsControl` and `DataTemplate` using an `ItemSource` of objects.
I know how to get the list of objects from the `ItemsControl` in the `StackPanel`: `itemsControl.Items`
But, now I'd like to get the `UIElement`s associated with these `Items`.
If w... |
2018/03/21 | 1,151 | 3,130 | <issue_start>username_0: I have the following questions:
1. Is there a way to make a histogram with frequency vector except
using plt.bar? I have a frequency vector of size one million and
bar plot seems to be very slow on that.
2. I tried a bar plot with smaller size data but seems even after setting
a width size, I... |
2018/03/21 | 1,073 | 2,866 | <issue_start>username_0: I found option to get visible cell height as shown in below but how to get all the cell height
```
let cells = self.tableView.visibleCells
for cell in cells {
heightOfTableView += cell.frame.height
}
```<issue_comment>username_1: You could iterate the array and build new ... |
2018/03/21 | 420 | 1,448 | <issue_start>username_0: I have this circular array, and I need to permute it somehow such that every element has both its neighbors altered.
Example:
```
1 2 3 4 5
```
becomes
```
3 1 4 2 5
```
The restriction is that the array needs to be at least 5 elements otherwise it's impossible.
Been trying to solve i... |
2018/03/21 | 1,156 | 3,081 | <issue_start>username_0: In my environment (g++ 5.4.0), a code
```
complex cmp;
cin >> cmp; //input 3 or (3) (not (3,0))
cout << "cmp = " << cmp << "\n";
```
gives me the result:
```
cmp = (3,0) //imaginary part is automatically set to 0
```
Does anyone have a written evidence which guarantee this behavior? N4140... |
2018/03/21 | 2,005 | 5,999 | <issue_start>username_0: I'm trying to send a message to IBM MQ (Version: 9.0.0.0), code bellow.
\* I have tried with\without the userid and password. When I try the same code with IBM MQ installed on my machine (localhost) it works smoothly.
```
private static void foo() throws JMSException {
Request reque... |
2018/03/21 | 986 | 3,691 | <issue_start>username_0: What I am trying to do **is showing** a div when clicking a related checkbox, **without** using any jQuery.
**I also want to hide the div when the checkbox is unchecked.**
It's pretty simple with only one checkbox, as I managed to do it.
For some reason, I can't manage to make it work on mu... |
2018/03/21 | 1,200 | 4,059 | <issue_start>username_0: I downloaded SonarQube 7.0, and setup the Maven project to use Sonar scanner. The pom.xml looks like the following:
```
4.0.0
com.github.jitpack
maven-simple
0.2-SNAPSHOT
jar
Simple Maven example
https://jitpack.io/#jitpack/maven-simple/0.1
1.8
1.8
2.20
UTF-8
src/main/java
pom.xml,sr... |
2018/03/21 | 1,433 | 5,251 | <issue_start>username_0: I know there are a lot of question about automapper.
My problem is that the related object did not mapped by Automapper, but the foreignId did.
```
public class Location
{
public int Id { get; set; }
public string Name{ get; set; }
[ForeignKey("Company")]
pub... |
2018/03/21 | 1,007 | 3,598 | <issue_start>username_0: Is it possible to remove from a TAR archive some file using `tarfile`?
For example:
If an `x.tar` file includes the files `a.txt`, `b.txt` and `c.txt`, is it possible to remove `a.txt`?
In other words: does any python solution exist to achieve something like this:
`tar -vf x.tar --delet... |
2018/03/21 | 766 | 2,930 | <issue_start>username_0: I am currently working on a project in `React` and I use `Typescript` as language. In my project I have `Webpack` installed. Everything works fine but now, since we are going to production, I would like to have an easy way to store/retrieve `config settings` such as server URL (which is usually... |
2018/03/21 | 979 | 3,464 | <issue_start>username_0: I am using the [ngx-monaco-editor](https://github.com/atularen/ngx-monaco-editor) component together with Angular 5.
The monaco-editor is loading fine on localhost, but not on my dev-server.
>
> Loading failed for the script with source
> “<https://se-dnexec.cic.muc/assets/monaco/vs/loader... |
2018/03/21 | 1,556 | 5,907 | <issue_start>username_0: I have been working on this for a long time now. I have read articles from [Get currently typed word in UITextView](https://stackoverflow.com/questions/38969833/get-currently-typed-word-in-uitextview?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa) and [Get currently ty... |
2018/03/21 | 1,193 | 4,799 | <issue_start>username_0: So... i was working at this Wave System for a little game and i wanted the system to wait a specific amount of time before spawning another enemy, so i did this thing:
```
void ExecuteWaveAction(WaveAction action)
{
int numberOfSpawns = spawnLocations.Length;
int currentSpawnToInstanti... |
2018/03/21 | 923 | 3,611 | <issue_start>username_0: I'm having difficulties to write SQL query
that returns me IDs for which there is no typeA records
for example
```
ID | type
1 | typeA
1 | typeB
1 | typeC
2 | typeB
2 | typeC
3 | typeB
```
this query should return IDs 2 and 3
thanks in advance for any suggestions
Jan<issue_comment... |
2018/03/21 | 989 | 3,493 | <issue_start>username_0: I am using command line inputs to do some simple tasks in my .py script.
My inputs are .py (GPIO) (SERIAL) (Log) (Debug)(Can Include an integer) (Pin)(Can include an Integer) (Verbose) (Help)
Of course it is all user input so it is case sensitive.
I am using:
```
if "gpio" in [x.lower() fo... |
2018/03/21 | 486 | 1,795 | <issue_start>username_0: When using ajax, we use certain 'words' as the protocol checks in JavaScript. But if I am right then every function is an object in JS. Hence when created a new function instance, e.g.,
>
> var xhr = new XMLHttpRequest();
>
>
>
that means we created a new function instance. Now, when do... |
2018/03/21 | 418 | 1,656 | <issue_start>username_0: I am accessing certain route eg: <http://xyz.domain.com/profile/1>. Now when i manipulate the same url with parameter 2 i.e <http://xyz.domain.com/profile/2>, the component associated with this route is not getting activated that is OnInit is not getting called. Does any one have idea why is th... |
2018/03/21 | 628 | 2,622 | <issue_start>username_0: I'm trying to get the hash key in kotlin for facebook-app before that i use this java method to get hask key for my apps:
**Java code:**
```
// Add code to print out the key hash
try {
PackageInfo info = getPackageManager().getPackageInfo(
"your.package",
... |
2018/03/21 | 1,319 | 4,340 | <issue_start>username_0: I have a database used for simple reverse geocoding. The database rely on a table containing latitude, longitude and place name. Everytime a couple latitude,longitude is not present or, better, everytime the searched latitude,longitude differs too much from an existing latitude, longitude, I ad... |
2018/03/21 | 1,166 | 4,753 | <issue_start>username_0: This question is about using function pointers, which are not precisely compatible, but which I hope I can use nevertheless as long as my code relies only on the compatible parts. Let's start with some code to get the idea:
```
typedef void (*funcp)(int* val);
static void myFuncA(int* val) {
... |
2018/03/21 | 558 | 1,995 | <issue_start>username_0: I need to run a job that sends email to the user when a contest's field named `published_at` will be set. So I have a `Contest` model and a method that runs a job:
```
class Contest < ApplicationRecord
after_create :send_contest
private
def send_contest
SendContestJob.set(wait: 30... |
2018/03/21 | 696 | 2,188 | <issue_start>username_0: I'm still a beginner so please bear with me. So I'm trying to get a list of factorial numbers from 1 to 5.
```
factorial=[]
for i in range(1,5):
for x in range(1,5):
while(i>x):
factorial.append(i*x)
```
When I switch out the factorial.append for print it just contino... |
2018/03/21 | 864 | 3,130 | <issue_start>username_0: I have caught up in a situation, where in i need to verify the response of the Previous Sampler for one of the value and if the Value for that is [], then i need to trigger the below request or else then switch to another Sampler.
```
Flow:
Check Response of Sampler for One of the attribute
IF... |
2018/03/21 | 1,815 | 6,467 | <issue_start>username_0: I am currently exploring neural networks and machine learning and I implemented a basic neural network in c#. Now I wanted to test my back propagation training algorithm with the MNIST database. Although I am having serious trouble reading the files correctly.
Spoiler the code is currently ver... |
2018/03/21 | 420 | 1,193 | <issue_start>username_0: I want to pull in all contacts whose postal code begins with L5h, K2S or L3S.
My sql is:
```
SELECT *
FROM [customer_list_DE]
WHERE Postal_Code IN ('L5H%','K2S%','L3S%')
```
I have checked my data and many records exist with postal code that start with those characters, but my query is res... |
2018/03/21 | 406 | 1,119 | <issue_start>username_0: I have two modules in the same directory:
`PDSC2.py` and `db_layer.py`
I want to import a class named `DBLayer` from `db_layer.py` so I write:
```
from db_layer.py import DBLayer
```
But I get an error:
```
ModuleNotFoundError: No module named 'db_layer'
```
Does somebdy have an idea wha... |
2018/03/21 | 512 | 1,836 | <issue_start>username_0: I would like to know how I could take an object from a function and place it and all it's attributes into another object.
```
class Something:
def create(self):
print('Creating')
class Foo(Something):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwar... |
2018/03/21 | 1,915 | 7,528 | <issue_start>username_0: I have using spydroid from <https://github.com/fyhertz/spydroid-ipcamera>.
Based on the requirement streaming should be send and receive in the device. from local network we should able to shown the rtsp stream. Ex. VLC Media Player.
The issue I am facing is, When I am change the resolution Ex... |
2018/03/21 | 722 | 2,813 | <issue_start>username_0: I am trying to understand how wordpress nonces work in terms of security. `nonce` is for a number used once, but according to wordpress, it can be valid up to 24 hours, which makes no sense, it could be used 9999 times during this period (from same client).
I thought that a wordpress nonce is... |
2018/03/21 | 2,498 | 8,192 | <issue_start>username_0: I have a class that looks like this: Foo is my class; FooBar is a bunch of different types of classes from a library that each have independent names.
**Foo.h**
```
class Foo {
public:
Foo() = default;
// There many types, and many of these types have multiple constructors
// All... |
2018/03/21 | 2,053 | 6,320 | <issue_start>username_0: Let's say that I have a php file.
In it, I have some variables and some functions. For example:
```
$results = getResults($analytics, $profile);
printResults($results);
function getResults($analytics, $profileId) {
return $analytics->data_ga->get(
'ga:' . $profileId,
'3daysAgo... |
2018/03/21 | 845 | 1,967 | <issue_start>username_0: I want to rename files names by substituting all the characters starting from "\_ " followed by eight capital letter and keep only the extension.
```
4585_10_148_H2A119Ub_GTCTGTCA_S51_mcdf_mdup_ngsFlt.fm
4585_10_148_H3K27me3_TCTTCACA_S51_mcdf_mdup_ngsFlt.fm
4585_27_128_Bap1_Bethyl_ACAGATTC_S6... |
2018/03/21 | 261 | 1,027 | <issue_start>username_0: We have two identical servers A and B in our office. These two servers are synced together in all aspect. That's if some changes take place in one server then it will take effect in another server. This has been done to minimize the downtime. Now server A has a public IP address (X.X.X.X) form ... |
2018/03/21 | 724 | 2,118 | <issue_start>username_0: I have a 1 column dataframe
```
df = pd.read_csv(txt_file, header=None)
```
I am trying to search for a string in the column and then return the row after
```
key_word_df = df[df[0].str.contains("KeyWord")]
```
I dont know how you can then every each time the keyword is found, isolate the... |
2018/03/21 | 846 | 2,829 | <issue_start>username_0: im working on a school project using laravel, i have a directory of images,those images will change with time, i'm trying to just display the name of those images as links without extensions but i don't know how to hide extensions, and when i click on link it dosen't work.
```
php
$dir_nom =... |
2018/03/21 | 505 | 1,861 | <issue_start>username_0: I'm a beginner to Kotlin and am loving it so far. I'm curious if Kotlin has a quick and simple solution to checking user input/strings for emptiness. I'd like the funtionality of the following:
```
"If readLine() is null or empty assign default value, else parse readLine()"
```
And so far, w... |
2018/03/21 | 740 | 2,813 | <issue_start>username_0: I'm not sure if this was asked before, but I couldn't find it. Suppose I have a procedure with a local variable inside it. Normally, that variable is destroyed after the function finishes running. But in some cases, I'd like for it to persist, like in this example:
```
Function myFunction()
... |
2018/03/21 | 468 | 1,628 | <issue_start>username_0: I want to create like bellow image.
[](https://i.stack.imgur.com/3PB70.png)
For creating like this I write the bellow code.
```
```
It working. But the problem is, **It don't show app toolbar**.
**Note :** The tools of to... |
2018/03/21 | 3,441 | 10,614 | <issue_start>username_0: I have a text file containing the following strings (which are **versions** of a software):
```
1_10_2_0_154
3_10_5_2_10
2_10_4_1
3_10_5_1_37
```
I'm trying to find the most recent version, in this case **3\_10\_5\_2\_10** is the version that I'm trying to display using java.
For the moment... |
2018/03/21 | 317 | 1,222 | <issue_start>username_0: I am trying to use the MessageAttributes parameter in AWS SNS POST request. This is to customize the Sender ID (by AWS.SNS.SMS.SenderID). I am trying for Germany phone number and hence is allowed to customize the Sender ID. Can any one help me with the correct syntax?
Thanks,
Subhajit<issue_co... |
2018/03/21 | 1,314 | 5,075 | <issue_start>username_0: I am using the query function from the boto3 library in Python and receiving the following error:
```
name 'Key' is not defined: NameError
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 51, in lambda_handler
if not getAssetExistance(slack_userID):
File "/var/task/... |
2018/03/21 | 344 | 1,185 | <issue_start>username_0: According to ORACLE's doc [Quick Start for Platform Developers](https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/plat-dev-quick-start.htm) I used Jrecreate and got JRE .
I copied JRE to my Arm Linux, `cd ./bin` and inputted `java -version`.
But terminal displayed:`-sh:java:not... |
2018/03/21 | 478 | 1,649 | <issue_start>username_0: I am doing something similar to [Weighted choice short and simple](https://stackoverflow.com/questions/10803135/weighted-choice-short-and-simple/15907274) however, i am additionally in need of adjusting weights depending on scenarios.
I tried doing some simple arithmetics, i.e `weight *= 2` bu... |
2018/03/21 | 708 | 2,702 | <issue_start>username_0: I have a program that creates excel objects, writes to an excel sheet, prints, saves as, and finally quits. Of course however, there is an excel zombie I can see in the task manager that only goes away once the program is completely closed, (but is not there until the writing to excel begins.) ... |
2018/03/21 | 306 | 1,000 | <issue_start>username_0: I can't convert a video file. Example:
```
exec(ffmpeg -i 01.시대조감.wmv 0001.mp4 -hide_banner, $output, $exit_code);
```
Just returns exit code -1<issue_comment>username_1: You need to import the `Key` function, like so:
```
from boto3.dynamodb.conditions import Key
```
Upvotes: 6 [selected_... |
2018/03/21 | 424 | 1,298 | <issue_start>username_0: Having a timestamp, for example `1519357500`, is it possible to send it in this form to html and convert it into date format inside interpolation?
I've tried to do it like this but it doesn't work:
```
{{moment($ctrl.myTimestamp).format('MMMM Do YYYY, h:mm:ss a')}}
```<issue_comment>username... |
2018/03/21 | 2,074 | 7,832 | <issue_start>username_0: I have found that WebSockets in Chrome and Firefox disconnect after exactly one minute of inactivity. Based on stuff I've seen online, I was all set to blame proxies or some server settings or something, but this does not happen in IE or Edge. It seems like if sockets are disconnected by the se... |
2018/03/21 | 652 | 2,676 | <issue_start>username_0: Using .net Core, MVC, C#
I have created a single model that contains 2 separate models. Code as below:
```
public abstract class ViewModelBase
{
public string Environment { get; set; }
}
public class CombinedViewModel : ViewModelBase
{
public FirstViewModel FirstViewModel { get;set;}... |
2018/03/21 | 540 | 2,096 | <issue_start>username_0: I have Python 2.7 installed (as default in Windows 7 64bit) and also have Python 3 installed in an environment (called Python3).
I would like to use Spyder as my IDE. I have installed Spyder3 in my Python3 environment, but when I open Spyder 3 (from within my Python 3 env), then it opens Spyde... |
2018/03/21 | 900 | 3,374 | <issue_start>username_0: I have seen a few questions similar to this but all revolve around webpack, which I am not currently using.
I have a Vue template:
```
var question = Vue.component('question', {
props: {
scenario: { type: Object }
},
beforeMount: function () {
this.retrieveScen... |
2018/03/21 | 233 | 961 | <issue_start>username_0: I am working on a university project with a friend, and we decided to host the thing in a GitHub repo. I am using the Code::Blocks IDE. It would be rather sensible if I could pull and push to my branch of the project on Git directly from within Code::Blocks, but I have not been able to figure o... |
2018/03/21 | 824 | 3,221 | <issue_start>username_0: I have a little JS/Jquery issue with my portfolio website and I still consider myself a mediocre programmer.
I have five buttons on my portfolio website, each representing one of my projects. I also have a div with five matching text contents (as a description for each of the projects) and an ... |
2018/03/21 | 594 | 2,085 | <issue_start>username_0: I have one question on how to solve MISRA 2004 11.3 violation.
The code is as follows:
```
tm_uint8 read( tm_uint8* data)
{
data[0] = *((tm_uint8*)0x00003DD2);
data[1] = *((tm_uint8*)0x00003DD3);
data[2] = *((tm_uint8*)0x00003DD4);
}
```
I want to write the value stored at the physical add... |
2018/03/21 | 583 | 2,366 | <issue_start>username_0: I encountered a solution (.Net Full framework) Where there are no package.config in the solution and Feeds coming from In house Nuget servers.
Where list of packages are maintained, if not in Package.Config?<issue_comment>username_1: >
> Where is the list of packages are maintained, if not in... |
2018/03/21 | 769 | 2,856 | <issue_start>username_0: I am making an object-oriented text adventure engine code, and my main goal is to make it user-friendly, but powerful. One of the classes in the code currently takes 15 arguments. However, in each instance of the class, only a few of the arguments are actually defined and many of them end up be... |
2018/03/21 | 605 | 2,069 | <issue_start>username_0: I have developed a tool using pyspark. In that tool, the user provides a dict of model parameters, which is then passed to an spark.ml model such as Logistic Regression in the form of LogisticRegression(\*\*params).
Since I am transferring to Scala now, I was wondering how this can be done in ... |
2018/03/21 | 980 | 3,625 | <issue_start>username_0: For text drawing on canvas, a fairly simple construction can be used:
```
void drawName(Canvas context, String name, double x, double y)
{
TextSpan span = new TextSpan(
style: new TextStyle(color: Colors.blue[800], fontSize: 24.0,
fontFamily: 'Roboto'), text: name);
... |
2018/03/21 | 301 | 1,047 | <issue_start>username_0: I have this htaccess file in the '*public\_html*' folder:
```
RewriteEngine On
RewriteRule ^asset/(.*)$ asset.php?code=$1 [NC]
```
Essentially, the rewrite condition should work as follows. When a user clicks on a link *../asset/XXX*, the `asset.php` file generates a new webpage containing d... |
2018/03/21 | 267 | 943 | <issue_start>username_0: The [Bing Autosuggest API](https://azure.microsoft.com/en-us/services/cognitive-services/autosuggest/) lists charges as being per transaction like this:
>
> Features: Up to 100 transactions per second;
> Unit: Transactions;
> Price: $3 per 10,000 transactions
>
>
>
But nowhere in the do... |
2018/03/21 | 646 | 2,200 | <issue_start>username_0: Im trying to make a spell checker which will read in a dictionary (`words.txt`) and then read in a text file (`text.txt`). Then by using a binary search it will compare the 2 files so see which words are spelled incorrectly in the text file.
My trouble lies with converting the text file all to... |