date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/24
1,866
6,306
<issue_start>username_0: I am currently working on importance sampling, and for testing purposes I need to be able to generate all possible values that `uniform_real_distribution` may generate for the interval [0,1] (yes it is closed from the right too). My idea was to generate integer numbers which I can then convert ...
2018/02/24
963
4,066
<issue_start>username_0: I've been working on a little project to learn about how dynamic memory allocation works. I have a global char buffer I'm using as my heap. After reading [these lecture notes](https://courses.engr.illinois.edu/cs241/sp2014/lecture/06-HeapMemory_sol.pdf "these lecture notes") I've written Alloc,...
2018/02/24
2,767
7,833
<issue_start>username_0: I've looked over some ways of doing it in C but i've only found for C99. But i've come across the solution below, taken from [Lock Less](https://locklessinc.com/articles/overloading/). The thing is, I don't quite understand how it works and would like know the fundamentals of what is going on...
2018/02/24
553
2,200
<issue_start>username_0: I am scraping a limited number of items from the top of an infinite-scroll website. ``` links = driver.find_elements_by_xpath("//div[@class='fixed-recipe-card__info']//a") while len(links)<100: driver.execute_script("window.scrollTo(0, document.body.scrollHeight);") links = driver.find...
2018/02/24
495
1,933
<issue_start>username_0: I am trying to print the first letter of the inputted middle name, and print that, instead of the entire middle name ``` first_name = str(input("Please enter your first name: ")) middle_name = str(input("Please enter your middle name: ")) last_name = str(input("Please enter your last name: "))...
2018/02/24
614
2,479
<issue_start>username_0: The issue I am having, is when I am trying to update a text element through the data key, it gives me "Object doesn't support property or method 'data'" error. I have used this before on **MealNameError** function to do the same thing, and it worked but when I try it on **MealItemError** funct...
2018/02/24
521
2,055
<issue_start>username_0: I am writing a recursive function to find the index of a node in a linked list. It looks like this: ``` function indexAt(node, collection, linkedList) { let index = 0; if (node === nodeAt(index, linkedList,collection)) { return index } else { index ++ return indexAt(node, collection...
2018/02/25
1,072
4,553
<issue_start>username_0: this happens quite often to me: After a day of coding i start to stage relevant changes for a feature. I do this mostly by "git add -p" to selectively add only relevant changes (keep debug things and so on out). But then i realize that i also did something which is also worth to be committed....
2018/02/25
446
1,659
<issue_start>username_0: Sorry guys I just have a quick question. I am trying to figure out why program won't print out "Your item is a moose" when the user enters animal at the first prompt and then puts yes at the second prompt. Any help would be great thanks ``` public static void main(String[] args) { // T...
2018/02/25
568
2,001
<issue_start>username_0: I am trying to automate the building of a config file and most of what I need can do done via a straight echo 'text here' >> myfile.conf What I am having trouble with is appending the output of a command to the last line in the file. My last working command is `echo 'masternodeprivatekey=' >>...
2018/02/25
1,083
3,293
<issue_start>username_0: I'd like to be able to circle elements on a web page using only CSS. I have some code that is almost working - it produces a circle around the element but * the width does not match the width of the content (it is always too big), and * I cant seem to get it to center on the child The follow...
2018/02/25
864
2,556
<issue_start>username_0: I want a random yt video playing on my website. My code looks like this but don't works. ``` var vidArr = [ 'HKIW9yRzm04', 'MU8iGMjq1Og', 'WaQ0aFW8YSI', 'DrxJCOVsV1E' ] var vidID = vidArr[Math.floor(Math.random() \* 4)] $("#frame").attr('src', 'http://www.youtube.com/embed/' + vidID); ...
2018/02/25
413
1,252
<issue_start>username_0: I need help finding how to print the most common letter of a string as a character after using the `most_common` function is used. My code is: ``` from collections import* message = input("What is the message you would like to decrypt?") messageInt = list(map(ord,list(message))) messageChr = l...
2018/02/25
354
1,160
<issue_start>username_0: I would like to know if there is a command which can check if all my branches are equal to the master branch. I have a Github repo and I have many branches and sometimes I forgot if I did a "git rebase" on a given branch. For now it's okay, but later I will add many branches and it's boring to...
2018/02/25
911
2,993
<issue_start>username_0: I have a problem and I am using 2 libraries : **django-autocomplete-light** and **django-dynamic-formset**. The 2 are very good at doing their job. The first is used to do autocomplete and the second to make django formsets are dynamic. **but** when you want to join these 2 a problem occurs. [I...
2018/02/25
525
1,825
<issue_start>username_0: We have currently using DSE 4.8 and 5.12. we want to migrate to apache cassandra .since we don't use spark or search thought save some bucks moving to apache. can this be achieved without down time. i see sstableloader works other way. can any one share me the steps to follow to migrate from ds...
2018/02/25
597
2,368
<issue_start>username_0: Suppose a Java thread performs some I/O operation like reading a file with traditional blocking Java I/O. The question is: What is the state of the thread while waiting? I don't know if it is RUNNING (doing some active wait) or WAITING (maybe there is some kind of monitor that wakes up the th...
2018/02/25
1,089
3,711
<issue_start>username_0: *I am relatively new to JavaScript.* I've searched the internet over and found what people are calling solutions and correct scripts and fixes etc., but none of them seem to work for me so I'm clearly missing something. Been troubleshooting for hours now. Please help! CSS: I have created a si...
2018/02/25
259
818
<issue_start>username_0: For example, if I have the URL `example.com/#foo`, then styling is applied to the div `foo`. If this does not exist in pure css, what is an efficient and reliable way to do it in javascript/jquery?<issue_comment>username_1: You can get the hash using `window.location.hash` *Assuming the div ha...
2018/02/25
577
1,941
<issue_start>username_0: I am having a very strange issue, with the following code (removed all irrelevant parts, so the code probably looks like it does nothing): ``` def get_items(cred, items): for i in range(0, len(items)): for j in range(0, len(items)): if items[i] + items[j] == cred: ...
2018/02/25
689
2,379
<issue_start>username_0: Newbie NodeJs developer here, trying to send GraphQL queries directly to MongoDB but it doesn't seem to work. Here's the query resolver. ``` Query: { users: (_, { count }) => GetAllUsers((users) => users), user: (_, { id }) => GetUserByID(id, (user) => users), }, ``` I'm using callback...
2018/02/25
1,426
4,792
<issue_start>username_0: I'm building an app that creates exams. For the part where a user selects the answers on the exam, I want to use a checkbox (or a radio button) to allow them to pick the answer. I want all the user-selected answers to be a table in itself called "responses". I can't figure out how to use a rad...
2018/02/25
3,531
11,589
<issue_start>username_0: I'm getting this problem: [![enter image description here](https://i.stack.imgur.com/8VNn7.png)](https://i.stack.imgur.com/8VNn7.png) The error that I'm seeing in Windows 10 Chrome Version 65.0.3325.181 (Official Build) (64-bit) is: > > Your connection is not private > > > Attackers might...
2018/02/25
455
1,785
<issue_start>username_0: `std::list` is parameterized by an allocator type, which it presumably rebinds in order to allocate list nodes rather than `T`s. So what does it do with the object of allocator type passed to the constructor? ``` template > class list { class node { ... T element; ... }; using real\_alloc =...
2018/02/25
1,016
3,834
<issue_start>username_0: While using the sencha extjs 6.5 framework I had a problem with the events.. What I wish to do is create a store that postpones loading until after a tab is activated. (and reload each time a person goes back to that tab). Now manual loading isn't hard. However I can't seem to find the trigger...
2018/02/25
641
2,344
<issue_start>username_0: I am going through the Redux documentation and starting with the Todo Example here: <https://github.com/reactjs/redux/tree/master/examples/todos> It works fine. There is something basic that I don't understand though. Following is a code snippet from the index.js file that defines the actions...
2018/02/25
443
1,482
<issue_start>username_0: So with the recent weak crypto standards removal at GitHub I can no longer use GitHub with IntelliJ. I've done some research and so far it seems that IntelliJ does not support TLSv1.2? The only SSL protocols I'm seeing are SSLv3 and TLSv1 in the Network settings of Version Control. [Subversio...
2018/02/25
191
773
<issue_start>username_0: I have a file called views.py, and in it there is this line: from django.shortcuts import render, which is marked as an unused import statement. I've ooked around and found the shortcuts.py file, but for some reason pycharm still marks my import statement as unused. How do I fix this?<issue_co...
2018/02/25
1,724
6,177
<issue_start>username_0: I'm running online predictions on google cloud machine learning API using the google api python client and a model hosted for me at google cloud. When I predict sending one image, the server, including all traffic, is taking about 40 seconds. When I send two images, after some time, I receive t...
2018/02/25
1,457
3,612
<issue_start>username_0: I have a Dataframe like ``` Sou Des 1 3 1 4 2 3 2 4 3 1 3 2 4 1 4 2 ``` I need to assign random value for each pair between 0 and 1 but have to assign the same random value for both similar pairs like "1-3", "3-1" and other pairs. I'm expecting a res...
2018/02/25
526
1,530
<issue_start>username_0: I am trying to populate a matrix using the values from a specific column (Dependent). In the example below in row 1 the Dependent value is 3 which will indicate a 1 in the 3rd column. Row 4 has a Dependent value of 2 so a 1 is put in column 2. I have considered using a for loop but was interest...
2018/02/25
644
1,625
<issue_start>username_0: I want to build a Bus seat service. Like: Seat ``` 1A 1B 1C 1D 2A 2B 2C 2D 3A 3B 3C 3D 3A 3B 3C 3D 4A 4B 4C 4D 5A 5B 5C 5D 6A 6B 6C 6D 7A 7B 7C 7D ``` Depending of number rows the user want to insert. My code works well but I would like to improve it. Any suggestion will be so ...
2018/02/25
1,484
4,865
<issue_start>username_0: I want to create a regex that saves all of `$text1` and `$text2` in two separade arrays. text1 and text2 are: `($text1)[$text2]` that exist in string. I wrote this code to parse between brackets as: ``` php preg_match_all("/\[[^\]]*\]/", $text, $matches); ? ``` It works correctly . And I...
2018/02/25
515
2,024
<issue_start>username_0: Where can I find browser compatability information for the `HTMLElement.scroll()` function? I've looked on caniuse.com as well as the Mozilla Developer Network, but I was unable to find any information on the scroll function.<issue_comment>username_1: That would be because it does not exist. Y...
2018/02/25
3,215
11,304
<issue_start>username_0: I’m using `CISourceOverCompositing` to overlay text on top of an image and I’m getting unexpected results when the text image is not fully opaque. Dark colors are not dark enough and light colors are too light in the output image. I recreated the issue in a [simple Xcode project](https://s3.am...
2018/02/25
871
3,005
<issue_start>username_0: I try to create a simple rollup app's config and have some troubles with css. This is my css file: ```css @import "normalize.css"; @import "typeface-roboto"; html, body, #root { height: 100%; font-family: Roboto, serif; } body { background: url('./images/background.jpg'); } ``` And ...
2018/02/25
269
1,158
<issue_start>username_0: What is the difference between: * content page * contentpage.content * content view ? What I'm trying to do is to have some content that overlays the main content when an item is being tapped. I was thinking I could have all the content on in the same XMAL file and just make it visible or not...
2018/02/25
332
1,461
<issue_start>username_0: We set up a voice kit using Raspberry Pi (using "the MagPi essentials AIY Projects" manual). We are able to enable Google Assistant using the command "src/assistant\_library\_demo.py" in the dev terminal, after Raspberry Pi starts up. We would like to embed the voice kit in a stuffed animal wit...
2018/02/25
503
1,836
<issue_start>username_0: I'm fairly new to React and am working on making an app that involves a sign in/login. I have my login button on my nav bar and I wish to change the text so that when the user logs in the text of the button changes to "Loggout" and vice versa. ``` class SiteBar extends React.Component { constr...
2018/02/25
1,311
4,103
<issue_start>username_0: The function pthread\_setname\_np takes only one argument on macOS and sets the thread name of the current thread. Basically what it does is call the proc\_info syscall as follows (code from the [Apple open-source](https://opensource.apple.com/source/Libc/Libc-825.40.1/pthreads/pthread.c) page)...
2018/02/25
559
2,166
<issue_start>username_0: What I should write in the `onItemLongClick` function to remove an item from the listview on long click. Below is the code: ``` public class Favorites extends AppCompatActivity { DBConnection db = new DBConnection(this); @Override protected void onCreate(Bundle savedInstanceState) { supe...
2018/02/25
657
2,281
<issue_start>username_0: What is the best way to handle fetching of list of urls in `kaggle kernels`? I tried first testing with `google.com`. `First Method`: Using urllib.request ``` import urllib.request resp = urllib.request.urlopen('http://www.google.com') ``` This lead to error of gai and urlopen error ...
2018/02/25
663
1,864
<issue_start>username_0: Edit: I realized that my current code is garbage, but other ways I tried before also did not work. The problem was that I edited the files in Notepad++ on Windows, and had them running on Linux. The programm dos2unix does the trick. Solution: I have used Notepad++ in Windows to write my files ...
2018/02/25
558
1,998
<issue_start>username_0: I have uicollectionview and each cell has a SelectedBackgroundView property with just the background colour like this: ``` SelectedBackgroundView = new UIView { BackgroundColor = UIColor.Green }; ``` How would I set the width of the selectedbackgroundview? I need it to be half the d...
2018/02/25
467
1,662
<issue_start>username_0: I'm working with an object that has two values: price and rating. Putting these object into the data structure of my choice, I want to find the object that has the highest rating whose price is under a given price, *p*, in worst-case runtime of O(log*n*). For the sake of simplicity, assume all ...
2018/02/25
1,541
5,627
<issue_start>username_0: I am attempting to develop a CRUD tool. However, the logic I am using to pursue this is problematic. You can find my [full JSFiddle in this link](https://jsfiddle.net/87zL4d6n/21/). My HTML looks like so: ``` Fish 0 Fish 1 Fish 2 Generator ``` When you click on `remu` you should delete...
2018/02/25
1,031
2,336
<issue_start>username_0: If you have a dictionary of integers: ``` d = { 1:[0], 2:[1], 3:[0,1,2,3,4], 4:[0], 5:[1], 6:[0,1,2,3,4], 11:[0], 22:[1], 33:[0,1,2,3,4], 44:[0], 55:[1], 66:[0,1,2,3,4] } ``` You want to: 1. Validate that the keys are between 0 and 25. 2. Delete any keys that ar...
2018/02/25
1,096
2,657
<issue_start>username_0: I want to split a table with many (454) columns in a PROC SQL (perhaps using a macro?) by column names. For example: a column is starting with "Column21....T", "Column22....T", etc. * I want to write all those columns starting with "Column21...T" to a data set called First, and all the colu...
2018/02/25
1,149
2,835
<issue_start>username_0: How can I do this in SQL Server? I have a table like this: table1 ``` userid datetime date inoutmode ----------------------------------------------------- 123 2018-02-02 14:11:14 2018-02-02 0 123 2018-02-02 18:52:44 2018-02-02 1 123 ...
2018/02/25
1,891
6,650
<issue_start>username_0: I've found a basic example of an f# recursive function that takes a list and returns a list of only even integers. I understand it for the most part, but there's a little i'm confused about. ``` let numbers = [1..4] let rec even ls = match ls with | [] -> [] |head :: tail when head ...
2018/02/25
504
1,905
<issue_start>username_0: I am designing an Alexa Skill and am certainly trying to design an interaction model that anticipates many utterances so that I can implement appropriate handlers. But if the user asks something I didn't anticipate, I would really like to capture this and get notified or at least log this so th...
2018/02/25
1,252
4,537
<issue_start>username_0: Suppose we have ``` enum class Month {jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec}; ``` Each value is an int, 0 to 11. Then I expect variable of type Month to hold only these enumerated values. So here's the only OK way to create a variable: ``` Month m = Month::may; ``` B...
2018/02/25
1,315
4,880
<issue_start>username_0: I have an UIView in a UIViewController. I'm using Objective-c and autolayout storyboards. This is an easy step: add a UIView programmatically into my storyboard's UIView. I'm using this code: ``` UIView *newView = [[UIView alloc]initWithFrame:myStoryboardView.frame]; [newView setNeedsLayout];...
2018/02/25
842
2,877
<issue_start>username_0: Sorry for the long question : I have some classes that all have InnerObject as a property. ``` public class MyInt { int InnerObject; } public class MyLong { long InnerObject; } public class MyString { string InnerObject; } ``` and so on ... Please don't tell me I can use gener...
2018/02/25
400
1,268
<issue_start>username_0: How to remove decimal if value is equal to 10 else decimal value should not removed. ``` -(void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:YES]; if (_ratingValue >= 100) { _ratingValue = 10; _formatValue = @"%0.0f"; } else{ _formatValue = @"%.01f...
2018/02/25
955
3,420
<issue_start>username_0: I have been going over a Django tutorial and I have come across an issue where whenever I am trying to post a form to pass data from the webpage to the database it will not go to the method that it is supposed to go to in order for the action to be performed. Here is the code urls.py ``` fro...
2018/02/25
610
1,819
<issue_start>username_0: i have one dataframe df as: ``` invoice_id|customer_id|items|batch 110|425|{'a': 50, 'b': 46}|no518 994528|a863|{'a': 21, 'c': 25}|as22 24|t311|{'scissor': 6, 'rock': 6}|af10 ``` and another dataframe df1 as : ``` invoice_id|defect 110|a 994528|c ``` i want to search the value in df1...
2018/02/25
1,039
2,729
<issue_start>username_0: I'm looking for a regular expression to delete htmlA. The border start from **<{if $data.nowPage>1}>** to **/div> *1 breakLine* <{/if}>** htmlA ``` <{if $data.nowPage>1}> <{/if}> ``` I have tried ``` $fullHtml = readFileData($file); preg_match("/(<{if \\\$data\.nowPage>1}>(.*?)<\/div>)(...
2018/02/25
2,081
8,656
<issue_start>username_0: Full disclosure: I'd qualify myself as having intermediate JavaScript knowledge. So this is slightly above my experience level at this time. I've got a Google Chrome Extension that does an AJAX request for a local `file:///` as soon as a page loads. After I get the response back from the reque...
2018/02/25
2,655
10,564
<issue_start>username_0: What is a simple way to delay `:on-click` event to see first if `:on-double-click` event is triggered? ``` [:div {:on-click (fn [e] ;; listen to double-click event, within 500ms, ;; if so on-double-click-fn, ;; if not, on-click-fn ...
2018/02/25
473
1,491
<issue_start>username_0: I have a below code, there I have **align-center justify-center** defined on the v-flex. But I still see the signin form is not vertically centered in the screen. Whats wrong in my code? ``` Sign In Sign In Clear ``` Here's the screen output. Notice it is centered at the top, not verti...
2018/02/25
1,175
4,400
<issue_start>username_0: I'm writing a client/server application where the client and server should send data to each other via a TCP socket. The client should connect to the server and if the connection fails, it should wait a few seconds and then try again to connect to it (up to a certain number of tries). This is ...
2018/02/25
502
1,613
<issue_start>username_0: As can be seen in the screenshot there are a lot of general variables being displayed that are irrelevant to my python script: [![enter image description here](https://i.stack.imgur.com/gopH4m.png)](https://i.stack.imgur.com/gopH4m.png) Note: I've already looked at this note from `JetBrains`:...
2018/02/25
523
1,623
<issue_start>username_0: I have a table: [![enter image description here](https://i.stack.imgur.com/Z8fkx.png)](https://i.stack.imgur.com/Z8fkx.png) and I want to display it like this one ``` id_pasien kunjungan 193 2018-02-23 193 2018-02-24 ``` I've made this code but I don't know how to group it by t...
2018/02/25
720
2,652
<issue_start>username_0: I'm trying to building an asp.net API action method that accept comma separated list of fields and then orderBy an entity by it using reflection **Code:** ``` public IActionResult orderBy([FromQuery] string fields) { string[] _fields = fields.Split(','); try { PropertyInfo[] P...
2018/02/25
755
3,198
<issue_start>username_0: why the code below can not catch the error ? the 'catch' do not work and the error throwout and quit. I run the code on nodeJs 8.9 ``` new Promise(function(resolve,reject){ console.log('construct a promise...') setTimeout(() => { throw new Error('async operation failure!') ...
2018/02/25
913
3,268
<issue_start>username_0: Here's my codepen: <https://codepen.io/CwittleZ/pen/vdzazO?editors=1010> When you click on the meat selection, it gets pushed into an array and then displayed, but there's no space between selections. How would I go about adding that space? ``` function meatSelected() { var meat = []; var...
2018/02/25
1,089
2,301
<issue_start>username_0: I have 800k documents in the MonoDB Collection, One document({userid : '789736363828292'}) has 50k Documents/Records. I would like find the memory utilized by that particular Document({userid : '789736363828292'}) in a month or 30 days interval. Please help me to find the memory size in MB wit...
2018/02/25
1,346
3,185
<issue_start>username_0: Here are the steps we need to take: --- > > a. Use the Scanner class to create an object to read input from the keyboard. > > > b. Declare three int variables called x, y, z, and max. > > > c. Prompt the user to enter a value for variables x, y, and z. > > > d. Find the maximum of x, y...
2018/02/25
1,284
3,146
<issue_start>username_0: I just tried switching from docker-compose to docker stacks/kubernetes. In compose I was able to specify where the postgres data volume was and the data persisted nicely. ``` volumes: - ./postgres-data:/var/lib/postgresql/data ``` I tried doing the same thing with the stack file and I can co...
2018/02/25
1,367
3,572
<issue_start>username_0: I am trying to remove duplicates and leave only unique entries from the output of 2 queries. I am pulling a list of installed Windows Updates using the following (also stripping 12 chars of whitespace and dropping to lower case: ``` $A = @(Get-HotFix | select-object @{Expression={$_.HotFixID....
2018/02/25
965
2,956
<issue_start>username_0: I have been using pandas, tensorflow for a few months, but suddenly today I cannot import them. When I try to: ``` import pandas as pd ``` It will show: ``` File "", line 1, in File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.4\helpers\pydev\\_pydev\_bundle\pydev\_import\_...
2018/02/25
471
1,932
<issue_start>username_0: I am working with an application that has the following two Microsoft SQL tables: ``` Object Access UserID CompanyID ObjectID Company CompanyID ``` The Object Access table holds all user -> company -> object access combinations, the Company tables holds a list of companies. ...
2018/02/25
1,463
6,943
<issue_start>username_0: In C, when you get the address of a variable is that address an address that really exist in the RAM of the computer or just an address in a fake memory in the C compiler (if that's how it really works)? Can you explain in layman’s terms?<issue_comment>username_1: Yes and no. When you take the ...
2018/02/25
974
3,858
<issue_start>username_0: I am trying to patch a .net web application that after years of working started failing to get UPS shipping quotes, which is impacting web business dramatically. After much trial and error, I found the following code that works just fine in a console application: ``` static string FindUPSPleas...
2018/02/25
683
2,250
<issue_start>username_0: I wrote this `/etc/nginx/conf.d/apply.conf` and started nginx. ``` server { location = /hoge { return 200; } } ``` but the curl command fails. ``` curl localhost:80/hoge ``` It says ``` 404 Not Found 404 Not Found ============= --- nginx/1.13.9 ``` and the logs are ``` ope...
2018/02/25
462
1,737
<issue_start>username_0: I'm trying to Save/Serialize a GameObject and its components (with their current values), but I don't think it's possible, any ideas ??? Keep in mind that I don't wanna use an asset from the assets store, I wanna code it myself. Thanks in advance :)<issue_comment>username_1: It is hard to say ...
2018/02/25
544
2,039
<issue_start>username_0: ``` public function get_inner_refs($referral){ $query = $this->db->query("SELECT username FROM users WHERE binery_referral='$referral'"); if ($query->num_rows() > 0) { foreach ($query->result_array() as $row){ $referral = $row['username']; ...
2018/02/25
725
2,261
<issue_start>username_0: I’m trying to convert from [this answer](https://stackoverflow.com/questions/1952153/what-is-the-best-way-to-find-all-combinations-of-items-in-an-array/10629938#10629938) the code: ``` static IEnumerable> GetKCombs(IEnumerable list, int length) where T : IComparable { if (length == 1) return ...
2018/02/25
709
2,207
<issue_start>username_0: Usually when you do the basic php excercises you just use the following to print data on a blank page: ``` php include('../includes/dbh.php'); $titulo = mysqli_real_escape_string($conn,$_GET['titulo']); $sql = "SELECT * FROM proyectos WHERE proyect_name='$titulo'"; $result = mysqli_query($co...
2018/02/25
870
3,183
<issue_start>username_0: In `DllImport` I can do this: ``` [DllImport(".../Desktop/Calculate.dll", CallingConvention = CallingConvention.Cdecl)] private static extern int Sub(int a, int b); ``` But I want to decide which dll to load at run time. So I'm not using `DllImport` but try this: ``` using System; using Sys...
2018/02/25
579
1,741
<issue_start>username_0: I need to an array that lists the number of letters of each element in a different array: ``` words = ["first", "second", "third", "fourth"] ``` I tried to create a variable for the length of each element. This: ``` first = words[0].length second = words[1].length third = words[2].length fo...
2018/02/25
512
1,379
<issue_start>username_0: I have two lists with variables x and y. They are sorted out in a sense that x[n] corresponds to y[n], where n is the index of the list. I need to compute f(x,y). The function is a simple polynomial depending on x and y. Say, f(x,y) = x^2+2xy.Below, I will put the code I tried which did not wor...
2018/02/25
516
1,810
<issue_start>username_0: I have the following (admittedly contrived) code that compiles just fine in gcc 6, but doesn't compile in gcc 7. Notice the use of an undeclared constructor in the definition of `bar`. This should print an error if the function is ever referenced elsewhere in the code (uncommenting `foo.bar()` ...
2018/02/25
341
1,231
<issue_start>username_0: I´m trying to send a POST request that is an `Person` object that contains a list of contacts. But I don´t know if this is the correct syntax to send a list: ``` { "name":"romulo", "contacts" : [ { "contact" : "3466577" }, { "c...
2018/02/25
502
1,575
<issue_start>username_0: I am trying to match URLs or relative paths that do not contain a second colon (after the one in the protocol, e.g., `http(s)://`). I want to reject URLs of the form ``` https://en.wikipedia.org/wiki/Special:BookSources/0-8018-1841-9 ``` or paths of the form ``` /wiki/Special:BookSources/...
2018/02/25
848
4,296
<issue_start>username_0: So I can find some basic info about doing something similar with static cells. I can also find info about changing the cell height, but what I really want is a part of the cell that was previously hidden/covered, to appear when the cell is selected. ``` ________________________________ | ...
2018/02/25
404
1,181
<issue_start>username_0: I have a simple link in HTML ``` [this is a link](#) ``` and this is the CSS ``` a { height: 500px; outline: 1px #000 dotted; } ``` I can´t push the content to the bottom of the link. It can´t be that hard right? this is how it looks ``` ................... . this is a link . ....
2018/02/25
596
1,984
<issue_start>username_0: I'm trying to configure a Rails app for testing on CircleCI 2.0 (it was working perfectly on v1.0). I've set up a config file with the following Docker images (my first time using Docker, so unsure whether this is the correct): ``` build: docker: - image: circleci/ruby:2.4-node ...
2018/02/25
779
2,645
<issue_start>username_0: For an iCal generator that I'm working on, I need to ensure that each 75 characters, a string is broken like this: ``` $string = "This is a long text. I use this text to demonstrate the PHP wordwrap function."; $newstring = wordwrap($string, 75, "\r\n ", TRUE); echo($newstring); ``` Result:...
2018/02/25
834
2,887
<issue_start>username_0: I have cell A1 on a sheet named "Data" that looks for input which when received, looks for a sheet name that matches it. If it finds a match, it opens that sheet. I'm trying to clear the value entered in A1 of "Data" after that second sheet has been opened however I'm getting a runtime error th...
2018/02/25
632
2,093
<issue_start>username_0: Thanks for looking into this I have an App script custom function as below which return a formula for a cell. When I use this function from a cell in google sheet it shows the formula =Sum(1,2) instead of the evaluated result i.e 3. ``` function testReturningFormula(){ return "=Sum(1,2)"; }...
2018/02/25
1,979
7,294
<issue_start>username_0: I have a `NSString *strName = @"JonnySmith";` What I want to do is get an `NSArray` of `NSStrings` with all possible combinations of a name, omitting certain characters. For example: ``` @"J"; @"Jo"; @"Jon"; ``` but also combinations like: ``` @"JSmith"; @"JonSmith" @"JonnSm"; @"JonSmt"; @...
2018/02/25
1,388
5,614
<issue_start>username_0: I'm trying to explain the difference between **schemes** and **protocol** in a URI for a small web video. I'd gotten up to the point where I can clarify that "Not all schemes are grouped with a protocol by looking at the **File:** scheme in RFC [here](https://www.rfc-editor.org/rfc/rfc8089). ...
2018/02/25
842
3,254
<issue_start>username_0: I am looking for a way how to transfer shaders from one character to another character if they are totally similar. So I am looking for the way how to query shader from one face of the mesh to another completely similar one. I am already stuck on the moment how to query shader. Anybody can gi...
2018/02/25
1,119
4,132
<issue_start>username_0: I am trying to automate packt freebook of each day with selenium in python and cant seem to get to the login form . This is what I have done till now ``` from selenium import webdriver from selenium.webdriver.common.keys import Keys pkt = "https://www.packtpub.com/packt/offers/free-learning" c...
2018/02/25
921
3,273
<issue_start>username_0: I have a reference to a .Net Standard 2.0 library that requires Microsoft.AspNet.WebApi.Client 5.2.4. This has a lot of dependencies that need to be redirected to use newer versions. To avoid package/dependency explosion I've updated the first PropertyGroup in the csproj file: ``` PackageRefe...
2018/02/25
1,198
3,353
<issue_start>username_0: When window is in full screen it shows like this: [![When window is in full screen it shows like this](https://i.stack.imgur.com/MTN6u.png)](https://i.stack.imgur.com/MTN6u.png) When I tried to make it mobile friendly or window shrink the h1 tag is overflow the image: [![When I tried to make...
2018/02/25
814
2,390
<issue_start>username_0: I've been trying to apply this [Bootstrap 4.0 - Two NavBars that collapse into one toggle](https://stackoverflow.com/questions/47736517/bootstrap-4-0-two-navbars-that-collapse-into-one-toggle) answer to my issue but am not resolving it after some effort. I'm trying to have the content of both ...
2018/02/25
674
1,964
<issue_start>username_0: show list as responsive **drop down** list under ***second textbox*** from the give JsFiddle using bootstrap [JsFiddle](http://jsfiddle.net/3etbtfwL/328) I have two textbox with Col-xs-6. In that I want output like this image [![enter image description here](https://i.stack.imgur.com/IZCYr....