date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/20 | 1,644 | 4,501 | <issue_start>username_0: I am trying to call an API (localhost) that has JWT using an Ajax, But i am getting and error
i have tried the following
```
$.ajax({
url:'http://localhost:50298/api/Validate',
Method :'GET',
dataType: 'json',
beforeSend : function(xhr) {
xhr.setRe... |
2018/03/20 | 642 | 2,248 | <issue_start>username_0: I'm implementing a search engine and so far I am done with the part for web crawling, storing the results in the index and retrieving results for the search keywords entered by the user. However I would like the search results to be more specific. Let's say I'm searching "Shoe shops in Hyderaba... |
2018/03/20 | 670 | 2,176 | <issue_start>username_0: Need to remove non-printable characters from rdd.
Sample data is below
```
"@TSXβ’","None"
"@MJUβ’","None"
```
expected output
```
@TSX,None
@MJU,None
```
Tried below code but its not working
```
sqlContext.read.option("sep", ","). \
option("encoding", "ISO-8859-1"). \
... |
2018/03/20 | 2,105 | 8,534 | <issue_start>username_0: In Flutter, is there an option to draw a vertical lines between components as in the image.
[](https://i.stack.imgur.com/rzquW.png)<issue_comment>username_1: Not as far as I know. However, it is quite simple to create one β if... |
2018/03/20 | 488 | 1,547 | <issue_start>username_0: Is there an idiomatic way of initialising arrays in Rust. I'm creating an array of random numbers and was wondering if there is a more idiomatic way then just doing a for loop. My current code works fine, but seems more like C than proper Rust:
```
let mut my_array: [u64; 8] = [0; 8];
for i in... |
2018/03/20 | 617 | 2,347 | <issue_start>username_0: I was trying to add some satellite resource files to display different language
I followed these two posts in general
[stackoverflow post](https://stackoverflow.com/questions/1142802/how-to-use-localization-in-c-sharp)
[Localization of a Site in MVC5 Using Resource File](https://www.c-sharpco... |
2018/03/20 | 1,089 | 4,041 | <issue_start>username_0: I'm have a spreadsheet that takes 31 different tabs with daily data, then summarizes it into a monthly tab, then converts each day's data into a software upload. In order to expedite my process I'm trying to combine every daily upload into another tab at once instead of copy/pasting each day ma... |
2018/03/20 | 708 | 2,955 | <issue_start>username_0: **Question**
Is there a way to implement a generic type or something similar in a superclass, which will always refer to the subclass it is in?
**Explanation of what i need**
I have the superclass
```
public abstract class MySuperclass{
public abstract *magicalTypeReference* getInstan... |
2018/03/20 | 452 | 1,651 | <issue_start>username_0: I need this grid layout, view structure with Storyboard. Is it an easier way to set up, or I need to calculate size / 4, and multiply it by the index, and calculate the center X, Y coordinates, and adjust `NSLayoutConstraint` at each rotation?
[
But I still get emails from <EMAIL>, that some of the URLs linked to particular 'remarketing lists'... |
2018/03/20 | 598 | 2,172 | <issue_start>username_0: For a webscraper I will store 5 million+ full urls in a table.
I will need to check if the url does not exist in the table very often.
What column type and strategy is best for performance?
* url with varchar and an index.
Or
* second char column with an hash ( md5?) and check for that.
O... |
2018/03/20 | 660 | 2,523 | <issue_start>username_0: I need to add `Codable` to two classes. One is `CLLocationCoordinate2D` and the second one `CLCircularRegion`.
I have no issue with `CLLocationCoordinate2D` and it works by doing that:
```
extension CLLocationCoordinate2D: Codable {
public enum CodingKeys: String, CodingKey {
case... |
2018/03/20 | 378 | 1,444 | <issue_start>username_0: I have a "Custom VPC" with two subnets (A private subnet & a public subnet).
In ECS, when I try and create a cluster with "Custom VPC" and both subnets selected. The EC2 instances launched, are by default launched in the private subnets.
1. Why?, Is there a way to change the instance subnet ... |
2018/03/20 | 589 | 1,920 | <issue_start>username_0: I want my macro to read from a list of phone numbers on another sheet, count the rows, then construct an array from A1:An...from the row count. The array will always start at A1.
```
Dim lrow As Variant
lrow = Cells(Rows.Count, 1).End(xlUp).Row
Dim PhonesArray as Variant
PhonesArray = " [... |
2018/03/20 | 365 | 1,237 | <issue_start>username_0: I would like to combine these two foreach statements together. I've seen a few solutions around here, but nothing really works for me.
This is my username list from database.
```
$digits = [1,2,3,4];
$results = $db->table($usernames)
->where('memberID', $mID)->limit(10)
->getAll();
f... |
2018/03/20 | 633 | 2,573 | <issue_start>username_0: I want to bind my custom `TreeViewItem` to `IsExpanded`.
The normal way without a custom TreeView Item would look like this.
```
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"></Setter>
```
But I want to bind it to my own TreeViewItem for example named `CoolTreeItemModel`.
Co... |
2018/03/20 | 402 | 1,244 | <issue_start>username_0: I am making a website about pets. I crafted the pictures that were needed but .. When I put the banner , it does not show up. When inspecting the page - it is not there. If I put it right after the body tag , it will show , also when inspected. But it won't be what I want.
```
[Pets](index.... |
2018/03/20 | 787 | 2,716 | <issue_start>username_0: I've looked at a bunch of questions here and read the docs over and over, however this just doesn't seem to want to work no matter what I do.
This is supposed to return one thing if X is true and return something else if it's not. It's inside a map function because I need this to be done for m... |
2018/03/20 | 1,665 | 5,913 | <issue_start>username_0: I am using Puppeteer in a Node.js module. I retrieve an HTML element with an XPath selector and need to extract the text property.
Currently I use:
```js
// Get the element
let ele = await element.$x(`//div[@class="g"][${i}]/div/div/h3/a`);
// Get the text property
const titl... |
2018/03/20 | 1,657 | 5,897 | <issue_start>username_0: My html page doesn't show the edits that should be made with my css page. I have tried to fix the problem for over an hour now and done everything I can think of. The page is linked with
```
link href="stlyes/css-ba.css" type="text/css" rel="stylesheet"
```
Which i believe is correct. I've ... |
2018/03/20 | 716 | 2,207 | <issue_start>username_0: I am trying out multiclass semantic segmentation in Keras.
Right now i'm using the Unet architecture, and have a model similar to this (but deeper):
```
inputs = Input(shape=(512,512,3))
# 128
down1 = Conv2D(32, (3, 3), activation='relu', padding='same')(inputs)
down1 = BatchNormalization()(d... |
2018/03/20 | 2,296 | 6,760 | <issue_start>username_0: This is part of an ongoing series of issues I'm having trying to condense a csv file with multiple rows for each client based on the number of medical services they received. For each service, they have a row. I've included the dataframe at the bottom.
I'm trying to calculate how many times a ... |
2018/03/20 | 1,803 | 7,062 | <issue_start>username_0: I have made a user interface to fetch data from a MySQL table and visualize it. It is running on a bokeh server. My users connect remotely to the server using their browser (firefox). This works perfectly fine: I simply import the table into a pandas dataframe.
My users also need to download t... |
2018/03/20 | 2,574 | 7,844 | <issue_start>username_0: I have a small test page for Brython related tests and recently added xml.etree.Elementree module there, but it doesn't work for some reason.
I've following code (actually there is more stuff but I removed the irrelevant parts):
```
import sys
from browser import alert, document as docu
f... |
2018/03/20 | 287 | 1,023 | <issue_start>username_0: Im trying to figure out to convert the following statement to a trygetvalue.
Any help would be greatly appreciated.
```
filters.ContainsKey("companyCode") ? filters["companyCode"] : string.Empty;
```
I have code that I inherited that has about 25 of these that builds one query statement.<i... |
2018/03/20 | 642 | 2,243 | <issue_start>username_0: I have the following method which works fine, however I was hoping to find
```
...
handleClick = (e) => {
this.props.onClick()
if(this.props.getAnswer(e)) {
console.log('correct')
//this.setState({ [this.state.button+ e.target.getAttribute('data-option')]: 'correct' });... |
2018/03/20 | 367 | 1,386 | <issue_start>username_0: I am trying to get image that inside drawable folder by path
so i try this but not working
```
String path = "android.resource:///" + BuildConfig.APPLICATION_ID + "/drawable/logo_ataturk";
File imgFile = new File(path);
if (imgFile.exists()) {
Bitmap myBitmap = BitmapFactory... |
2018/03/20 | 433 | 1,606 | <issue_start>username_0: Access 2016, VBA; I am trying to declare a public variable (User's window login), and it keeps "Forgetting" the variable between the function and the form\_load
Module:
```
Option Compare Database
Public vUser As String
```
Start Form:
```
Public Function fnUserID() As String
Set Wshn... |
2018/03/20 | 532 | 1,892 | <issue_start>username_0: I was trying to teach myself verilog programming from "The Verilog HDL" book by <NAME>. In one of the exercises, they asked to generate a clock using structural verilog only (except for the $monitor part of course).
I tried the following:
```
module clock();
wor clk;
assign clk=0;
... |
2018/03/20 | 567 | 1,788 | <issue_start>username_0: Somehow the form is not sending the main data which is basically the name, email and number. I's appreciate any/all help!
Here is the PHP i used.
```
php
$browser = $_SERVER['HTTP_USER_AGENT'];
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();
//get user's ip address
$ge... |
2018/03/20 | 937 | 3,567 | <issue_start>username_0: I am just getting used to GitHub from the instructions I got as a beginner, and got stuck at the step below. I am wondering how to get the name of the local repo to be able to create remote repo with same name. So far, I have run: a) git init b) git add readme, c)git commit -m "first". In my di... |
2018/03/20 | 971 | 3,664 | <issue_start>username_0: still learning programming and have a question.
im trying to download image from url and put it in cells, ive successfully done it with text but not with images.
```
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
return posts.count
}
func tableView(... |
2018/03/20 | 345 | 1,152 | <issue_start>username_0: I have some elements created by v-for. How can I run the function only once by keeping 'for every element creation' as a condition .
```
```<issue_comment>username_1: It's not so clear what exactly you want:
>
>
>
So, here's all possible solutions you want to implement.
You can bind the... |
2018/03/20 | 872 | 2,418 | <issue_start>username_0: I pulled down the qtpdf repository to check out and play with from here:
<http://code.qt.io/cgit/qt-labs/qtpdf.git>
As soon as I open the qtpdf.pro file, I get the following general messages:
```
Cannot read C:/.../build-qpdf-Desktop_Qt_5_10_0_MinGW_32bit-Debug/src/lib/pdfium.pri: No such f... |
2018/03/20 | 665 | 2,112 | <issue_start>username_0: I have three javascript functions.
The main function is within script tags in my index.html file.
I have two other functions that are in an external file named cities.js.
Beneath is the main function found within the script tags:
```
function initMap() {
map = new google.maps.Map(document.g... |
2018/03/20 | 405 | 1,565 | <issue_start>username_0: As I've learned from [Spark documentation](http://sparkjava.com/documentation#gzip) GZIP is done automatically for response if it contains *Content-Encoding* header with value *gzip*.
I have the following code:
```
post("/test", (req, res) -> byteArray);
```
What if `byteArray` is already c... |
2018/03/20 | 1,694 | 6,616 | <issue_start>username_0: I'm using Google AppEngine Flexible with [python environment](https://cloud.google.com/appengine/docs/flexible/python/). Right now I have two services: default and worker that share the same codebase, configured by `app.yaml` and `worker.yaml`. Now I need to install native C++ library, so I had... |
2018/03/20 | 1,244 | 3,243 | <issue_start>username_0: I have data in a csv file such as:
```
value,key
A,Name
B,Name
C,Name
24,Age
25,Age
20,Age
M,Gender
F,Gender
```
I would like to parse it to produce the following map:
```
Map(Name -> List(A, B, C), Age -> List(24,25,20), Gender -> List(M,F))
```<issue_comment>username_1: Here is a possibi... |
2018/03/20 | 731 | 2,635 | <issue_start>username_0: I am using query string to dynamically loop through table name. Now I need to add a wildcard to the table name so that it picks up new table I get. Example below
```
WHILE @Year_Id <= 2018
BEGIN
SET @YearVar = CONVERT(varchar(4), @Year_Id)
SET @TABLENAME = '[SWDI].[dbo].[hail-'... |
2018/03/20 | 882 | 2,884 | <issue_start>username_0: Checking Flask and Flask-SQLAlchemy doc i have a confusion, if i have:
**models.py**:
```
from flask_sqlalchemy import SQLAlchemy
#:Use or not
db = SQLAlchemy()
class User(db.Model):
__tablename__ = "USERS"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(... |
2018/03/20 | 559 | 1,963 | <issue_start>username_0: I have a little problem that has been hard to solve, harder than I believed. I assume there will be a simple answer to this one.
So, I have made a timer using javascript, the timer works fine and that's not a problem. However, I am using this to define the timer:
```
document.getElementById("... |
2018/03/20 | 490 | 1,929 | <issue_start>username_0: I don't understand this error. I'm trying to use the `mat-datepicker` with `MomentJS` exactly as shown in [the examples](https://material.angular.io/components/datepicker/examples), but I cannot get rid of this error.
My component code looks like this:
```
import { Component,
Input,
... |
2018/03/20 | 938 | 2,433 | <issue_start>username_0: 1) Why I can not change the nav-link color on CSS?
I'm trying to change the color of MENUTEST's (nav-link) to white, but it's not working
and
2) Add a line white above every MENUTEST's texts (just like [u] but above) How to do it?
What do i'm doing wrong?
navbar.php
```
[ {
@Override
public void onClick(View view) {
if(mSound != null && mSound.isPlaying()){
... |
2018/03/20 | 1,837 | 7,184 | <issue_start>username_0: I am using Instance as a lazy / dynamic injector in a TomEE Java application, and I have noticed a memory leak in my application. This is a first for me, so it's actually surprising to see a memory leak warning that has been outlined in the Java EE Library :
```
package javax.enterprise.inject... |
2018/03/20 | 846 | 2,869 | <issue_start>username_0: I almost give up. Can't find any solution on this so I hope you can help me. I have a script that shows/hides divs and it's working like this. If you click one button a div shows and if you press another button it switches to that div. That's working great. But I want to be able to close all di... |
2018/03/20 | 460 | 1,645 | <issue_start>username_0: I am trying to create a Redshift UDF with function Parameters as below:
`create or replace function function1(srctimezone VARCHAR,desttimezone VARCHAR,flag = 'nr') returns datetime`
The last Parameter would be a defualt Parameter, i.e if user does not pass any value, it should take 'nr' by de... |
2018/03/20 | 300 | 1,157 | <issue_start>username_0: I'm making a simple CRUD single page application using PHP connected to a msqli database. All parts of the page work except for the "EDIT" function. It returns the warming "count(): Parameter must be an array or an object that implements Countable line 8"
```
php
include('server.php');
... |
2018/03/20 | 595 | 1,997 | <issue_start>username_0: Hoping someone here can help, as I am currently out of my depth. So I am trying to cannibalize some pre-existing code to do a simple bit of maths for me. Basically I want to check if there is data in two fields, and if so to do the formula and then output the result into a field.
```
if (!emp... |
2018/03/20 | 1,067 | 3,616 | <issue_start>username_0: I am struggling with an exercise in R. Bird's functional programming book that asks for an example of a function with type (num -> num) -> num
The best I can come up with is a polymorphic type
```
func1 f = f 3
:t func1
func1 :: Num t1 => (t1 -> t2) -> t2
```
The problem I am having is that... |
2018/03/20 | 291 | 1,086 | <issue_start>username_0: I am using a GridView to show multiple products and on click i want to go to details screen , however I am unable to find a way to identify which product grid view cell was selected / tapped by user , I think sending some parameter to handle method should do the trick.
```js
return (
... |
2018/03/20 | 369 | 1,046 | <issue_start>username_0: I have a data-set as below:
```
A B C
1 1 1
0 1 1
1 0 1
1 0 1
```
I want to have a stack bar chart that shows percentage of 1 and 0 in each column next to other column all in one figure.<issue_comment>username_1: There are several steps you need to take:
* calculate how ... |
2018/03/20 | 1,068 | 3,107 | <issue_start>username_0: Hi guys I am looking for a function
```
expand :: String -> [(Char,Int)]
```
that takes a string of character and numbers like `"a5b3c2"` and change it to a paired list of the string like `"[('a',5),('b',3),('c',2)]"` in that same form.
Example:
```
expand "a5b4c2"
[('a',5),('b',4),('c',2)... |
2018/03/20 | 932 | 2,731 | <issue_start>username_0: [Screen](https://i.stack.imgur.com/7d2pL.png)
[Code](https://i.stack.imgur.com/cNw8u.png)
In this screen, we have used kendo treelist. I need to implement autocomplete dropdown in CODE column. How can i do that?<issue_comment>username_1: Is it ok like this?
```
import Data.List (intersperse)... |
2018/03/20 | 1,032 | 3,117 | <issue_start>username_0: I am trying to export a datatable from Microsoft Access 2016 via ODBC Export to a MariaDB. I have tried:
1. do a right click on the datatable and choose "Export" --> "ODBC-Database"
2. then choose the preconfigured ODBC User-DSN
Then I get the ODBC-Call Error:
"ODBC-Driver[...] Data truncate... |
2018/03/20 | 394 | 1,194 | <issue_start>username_0: I would like to regex the fullpath of the css, for example I have this:
```
```
I would like to regex: `/assets/myCssFile.css`
What I tried is this: `/(?:href)=("|').*?([\w.]+\.(?:css))\1/gi`
but this returns me this: `href="../assets/myCssFile.css"`
Can someone help me out with the regex... |
2018/03/20 | 562 | 1,750 | <issue_start>username_0: I'm trying to create a spark scala udf in order to transform MongoDB objects of the following shape:
```
Object:
"1": 50.3
"8": 2.4
"117": 1.0
```
Into Spark ml SparseVector.
The problem is that in order to create a SparseVector, I need one more input parameter - its size.
And in... |
2018/03/20 | 1,259 | 4,807 | <issue_start>username_0: I had ASP MVC 5 project, to which I've added Web Api. Now I'm trying to install Swashbuckle (from bootstrap) - but it just shows an empty document without any controllers.
My controller:
```
[RoutePrefix("api/v1/Test/Check")]
public class TestController : ApiController
{
// G... |
2018/03/20 | 789 | 3,162 | <issue_start>username_0: I receive (similar to) the following JSON data:
```
{"accountId"=>"some-private-really-long-account-id",
"stats"=>
{"score"=>
{"globalScore"=>
[{"key"=>"lifetimeScore", "value"=>"571",
"key"=>"someOtherKeyHere", "value"=>"someValue"}]}
```
I am not... |
2018/03/20 | 961 | 3,426 | <issue_start>username_0: In my application I am looking for writing a function that deletes the number of check boxes selected from my array. I have written and i can console.log the the number of checkboxes i have selected. But im stuck at how to get index numbers of the selected check boxes and delete those only. And... |
2018/03/20 | 1,364 | 5,043 | <issue_start>username_0: I'm extremely new to react and javascript so I'm sorry if I'm asking this wrong.
This is for a group project which means I most likely don't understand the project 100%
* **The older sibling** has this nice prop that I want to use:
```
```
export default class OlderSibling extends Component ... |
2018/03/20 | 421 | 1,308 | <issue_start>username_0: I'm trying this:
```
[">](
<?php
$fl= $p['n'].)
```
The problem is that the codes inside `$code` are being evaluated and I need that `$code` simply save the codes like a string.<issue_comment>username_1: Using `"$foo"` will evaluate, but `'$foo'` will not.
However, this is opens massive sec... |
2018/03/20 | 625 | 2,132 | <issue_start>username_0: I'm learning about vectors in `Accelerated C++` (which is C++ 98, not C++11) by <NAME> and <NAME>. In this code...
```
map> xref(istream& in, vector find\_words(const string&) = split) { ...
```
...what is being defined in the block? `xref` or `find_words`? In my debugger, the call stack goe... |
2018/03/20 | 661 | 1,584 | <issue_start>username_0: I am currently using python and i have a question:
if we have a string that is separated by multiple characters for example:
```
l = ['0 , hellp,\t2,\t BB , -\n', ' 1 ,\t \t knock \t , BB,N,- ]
```
and I want show it in this way:
```
0,hellp,2,BB,-
1,knock,BB,N,-
```
how would the coding ... |
2018/03/20 | 3,336 | 8,328 | <issue_start>username_0: I want to create my first game.
Nothing special, just blue rectangle moving when WSAD keys are pressed.
The problem is that when I run my game, there are bugs with rectangle(See image below). Bugs appears only during horizontal movement, and not vertical.
[;
importScripts('workbox-runtime-caching.prod.v2.0.3.js... |
2018/03/20 | 2,431 | 7,795 | <issue_start>username_0: I have been working on a script to concatenate multiple csv files into a single, large csv. The csv's contain names of folders and their respective sizes, in a 2-column setup with the format "Size, Projectname"
Example of a single csv file:
```
49747851728,ODIN
32872934580,_WORK
9721820722,LI... |
2018/03/20 | 1,498 | 6,554 | <issue_start>username_0: I'm performing an update via a method using Hibernate and the EntityManager.
This update method is called multiple times (within a loop).
It seems like when I execute it the first time, it locks the table and does not free it.
When trying to update the table via SQL Developer after having cl... |
2018/03/20 | 287 | 1,175 | <issue_start>username_0: I made a very simple Qt Quick Application (all using QML) and want it to appear as full screen/immersive mode on android. How can I achieve that?<issue_comment>username_1: Android creates an "activity" instance (android "view") before your/any Qt code runs. This view/activity decides whether th... |
2018/03/20 | 527 | 1,631 | <issue_start>username_0: Using Ansible, in my role, I have defined a variable (`defaults/main.yml`):
```
someHosts: "[ \"{{ hosts| join(':' + port + '\", \"') }}:{{ port }}\" ]"
```
which basically given `hosts=["host1", "host2"]` and `port=5050` is meant to turn the above into:
```
["host1:5050", "host2:5050"]
``... |
2018/03/20 | 893 | 3,298 | <issue_start>username_0: I copy some cells from one worksheet manually using the ctrl + c command and want to paste it using a macro I created.
I have the following code:
```
Range("A2:W5000").Select
Selection.ClearContents
Range("A2").Select
ActiveSheet.Paste
With Selection.Interior
.PatternColorIndex = 7
.T... |
2018/03/20 | 779 | 2,973 | <issue_start>username_0: I am working with WPF and have ListViewItems like this:
```
```
What this XAML code does is adding a stack panel with an image inside into a ListViewItem. I'd like to know how to achieve this programmatically. For example, I initiated a ListViewItem instance and can access its content. But t... |
2018/03/20 | 1,594 | 4,345 | <issue_start>username_0: I'm having some trouble with a weird code structure and I can't seem to find an answer to the problem after 2 hours of try and error.
I have 2 variables and an array structure with some sub arrays (this is important for later on) the system is to big to post the full code so here is the proble... |
2018/03/20 | 711 | 1,959 | <issue_start>username_0: How to write specflow test for jQuery Ui autocomplete. Thanks!
```
var practices = [
{ "Data": "1", "value": "abc" },
{ "Data": "2", "value": "efg" }
];
$('#autocomplete').autocomplete({
lookup: practices,
onSelect: function (suggestion) {
//do something
}
});
```<issue_commen... |
2018/03/20 | 433 | 1,248 | <issue_start>username_0: How do I get the number of dictionaries where value satisfies a given condition?
```
list_of_dict = [
{'seq_no': 10, 'file_path': 'file/path', 'rel_item': None},
{'seq_no': 22, 'file_path': 'file/path', 'rel_item': 0},
{'seq_no': 32, 'fi... |
2018/03/20 | 297 | 1,168 | <issue_start>username_0: I code using Visual Studio Code on Ubuntu, with the Beautify and Perl extensions among others. An annoyance is that this bit of code,
`split /\|/`
breaks the highlighter.[](https://i.stack.imgur.co... |
2018/03/20 | 1,025 | 3,957 | <issue_start>username_0: I'm making a script with a do-while loop that randomly selects a color between 6 colors. Then it asks the person to guess the color.
If they get it wrong it says Incorrect and asks if they want to try again.
If they do it selects a new color (This happens and its ok but i wish it wouldnt bu... |
2018/03/20 | 1,304 | 4,053 | <issue_start>username_0: How can i convert a hex string in SQL Server to binary?
Better yet, how can i convert a hex string in SQL Server to an integer?
The problem is that every existing answer on Stackoverflow assumes SQL Server 2008.
Failed attempts
===============
* **[Convert hex string to binary SQL Server](h... |
2018/03/20 | 439 | 1,447 | <issue_start>username_0: I have multiple mongodb documents with some different fields but with one same field name as an identifier. How do I query the different documents using the one identical field? For example, the following documents all have a field for "name" but no other fields in common.
```
{ "_id" : 1, "na... |
2018/03/20 | 735 | 2,640 | <issue_start>username_0: I am working on a Java project that deals with projecting a grid to the user using the paint() method along with a JFrame and Canvas.
I have a class called Runner, which includes my main method. Within Runner, I have the java paint() method. I also have a public variable of type Player within ... |
2018/03/20 | 474 | 1,629 | <issue_start>username_0: I am struggling with running python script in shell. I use PyCharm where is everything ok, but I want to run script without running PyCharm.
So my project folder is like:
* `data/`
+ `file.txt`
* `main/`
+ `__init__.py`
+ `script.py`
* `tools/`
+ `__init__.py`
+ `my_strings.py`
I want t... |
2018/03/20 | 516 | 1,584 | <issue_start>username_0: When trying to add
```
#include
```
which is needed for stringstream, I get several errors, the following included:
expected ';' at end of input
expected '}' at end of input
macro "str" requires 2 arguments, but only 1 given
How to enable using stringstream ?<issue_comment>username_... |
2018/03/20 | 328 | 1,014 | <issue_start>username_0: I am trying to make a sum in c# but i keep getting these errors.
by pressing the + button i pretty much want the numbers to be summed up in a label.
Thanks in advance.
here's my code.
```
private void buttonPlus_Click(object sender, EventArgs e)
{
Int32 a = 10;
double b = 20.50;
... |
2018/03/20 | 665 | 2,143 | <issue_start>username_0: I am trying to use bootstrap to align my `h3` headings with my `h5` so that they are in line with each other.
**EDIT**
I am trying to use the already available bootstrap and avoid changing the css unless absolutely necessary.
Here is a screen to demonstrate what i mean.
[![enter image descrip... |
2018/03/20 | 397 | 1,125 | <issue_start>username_0: ive created a lot of character objects in R that i would like to put into a list (storing all their information).
the object looks like this and the pattern is "TMC"
```
str(TMCS09g10086933)
chr [1:10] "TMCS09g1008699" "TMCS09g1008610 "TMCS09g10086101" "TMCS09g10086104" "TMCS09g100864343" "T... |
2018/03/20 | 488 | 1,754 | <issue_start>username_0: How do I clean up resources after doing a Firestore operation, I want to use the "finally" block to close a dialog after saving the record but it complains it is not a function.
I been searching for the API reference but all I find is the few examples in the getting started section.
my code is... |
2018/03/20 | 344 | 1,159 | <issue_start>username_0: I have gone through some similar question on SO but didn't find any workable solutions.
I tried using `djang-dbbackup` module with my Django project.
I run `$ python manage.py dbbackup` and got this error:
```
CommandConnectorError: Error running: pg_dump last_cosmetics --host=localhost --... |
2018/03/20 | 761 | 2,730 | <issue_start>username_0: I want to return a value from mutation to action.
I this case, I want the last inserted object :
In my mutation, work fine :
```
mutations: {
insert(state, item) {
const guid = Math.floor(Math.random() * 6) + 1; // any sense, just example
item.guid = guid;
state.data.push(item);... |
2018/03/20 | 744 | 2,590 | <issue_start>username_0: This is in oracle. Table EmployeeName:
```
EmployeeNameID|EmployeeID|FirstName|LastName
1|1|ABC|DEF
2|1|ABC|EFG
3|1|ABC|DEF
4|2|XYZ|PQR
5|2|DEF|RST
6|3|XYQ|BRQ
```
I want to find out how many employee records have more than one name. The result should be: First column is the EmployeeId and t... |
2018/03/20 | 538 | 1,776 | <issue_start>username_0: Consider the following data:
```
Item | Overall | Individual | newColumn
A | Fail | Pass | blank
A | Fail | Fail | blank
B | Fail | Pass | issue
B | Fail | Pass | issue
C | Pass | Pass | blank
```
I have the logic built out fo... |
2018/03/20 | 1,318 | 4,678 | <issue_start>username_0: I have this piece of a code. I want to add error messages depending on user's locale, but yup throws errors, same if fields are filled in incorrectly
[missing "en.login.emailRequiredError" translation]
[missing "en.login.passRequiredError" translation]
```
const schema = yup.object().shape({
... |
2018/03/20 | 2,274 | 4,234 | <issue_start>username_0: I have a data like below :
```
> dplyr::tbl_df(sbp)
Country X1980 X1981 X1982 X1983 X1984 X1985
Albania 132.9270 133.0296 133.1459 133.1868 133.2048 133.2577
Algeria 132.4093 132.1710 131.9649 131.7835 131.6161 131.4345 ... |
2018/03/20 | 525 | 1,818 | <issue_start>username_0: I want to create two objects of the Ball class. I have tried the following:
```
public class World extends JPanel {
JFrame frame = new JFrame("GreenJ");
Actor[] actor = new Actor[100];
int n = 0;
public World() throws InterruptedException{
frame.add(this);
fram... |
2018/03/20 | 572 | 2,101 | <issue_start>username_0: I am trying to invoke a callback via intersection observer.
I want the `target` to be `style: "position: fixed"` and move it via
`style.top`.
I also specified the root element which is an ancestor of the target with `style: "position: relative"`.
But when the target and the observer inters... |
2018/03/20 | 610 | 2,028 | <issue_start>username_0: Using Laravel 5.5 and Mysql (10.1.19-MariaDB)
For a md5 hash I want a binary(16) column.
Let's call the colum **url\_hash**
When using :
```
$table->binary('url_hash');
```
it will give me a BLOB column.
source : <https://laravel.com/docs/5.5/migrations#creating-columns>
I have seen all ... |
2018/03/20 | 656 | 2,234 | <issue_start>username_0: I wanted to use a control-of-flow statement in a stored procedure that says:
```
begin try
sql_statement
end try
begin try
sql statement
end try
begin catch
print error
end catch
```
But the [documentation](https://learn.microsoft.com/en-us/sql/t-sql/language-elements/try-catch-transact-s... |
2018/03/20 | 598 | 2,046 | <issue_start>username_0: I am trying to bind a whole object using it's x:Name to a property in another object. For example
```
```
How do I go about achieving this?
Update: I tried to implement the suggestions with no luck. The xaml that I'm talking about is as follows:
```
```
Perhaps I should try move the star... |