date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/03
201
740
<issue_start>username_0: I have written a URL rewrite to fix images paths to move to a new location for images however it isn't working. ``` ``` The expected behavior is that when a request for an image comes in (<http://myserver.com/images/sample.jpg>) that the new image location (<https://myserver.blob.core.windo...
2018/03/03
1,037
2,996
<issue_start>username_0: In asp.net c#, I have a large set of values. I'm trying to agregate rows with same values and sum some of their values (The objective is to have a row in a table with the agreggated info)... is there a way of agreggating rows with two or more columns with same values and doing a sum of a third ...
2018/03/03
572
1,704
<issue_start>username_0: Hi guys I'm trying to create a simple quantity box, so that the user can decide how much quantity they want. E.G: [![enter image description here](https://i.stack.imgur.com/r5d7r.png)](https://i.stack.imgur.com/r5d7r.png) However my buttons are on the top and bottom of the box so it goes: ...
2018/03/03
542
1,824
<issue_start>username_0: The situation: In the User's Profile, I am fetching all of the user's posts. A post consists of a database field called "body" which is like the text in a blog article. I only want to get the first 10 characters of the "body". Currently the code below gets the entire body which will be waste...
2018/03/03
316
1,396
<issue_start>username_0: ``` public static class SimpleItemRecyclerViewAdapter extends RecyclerView.Adapter { private final ItemListActivity mParentActivity; private final List mValues; private final boolean mTwoPane; private final View.OnClickListener mOnClickListener = new View.OnClickListener() { @Over...
2018/03/03
288
1,224
<issue_start>username_0: I have created Recycler View. Everything is working fine. I want my List Item to expand and not wrap content according to screen. It should be Horizontally scrollable list Item. My Recycler View XML: ``` ``` And this is my code to set up Recyler View. ``` RecyclerView.LayoutManager mLayout...
2018/03/03
448
1,545
<issue_start>username_0: I have a very large csv list, I've already converted a list into array and managed to fix a problem I was having with UTF8: ``` $lines = file(''.get_template_directory_uri() . '/lines.csv'); foreach ($lines as $line_num => $line) { if(mb_detect_encoding($line, 'utf-...
2018/03/03
496
2,054
<issue_start>username_0: As tittle says, the form values are not sent back to server.The ajax call is ok. How to get the input values posted ? What i'm doing wrong? I'm processing the values on the next page via PHP with a simple function, so my problem must be in this script. ``` $(document).ready(function() { v...
2018/03/03
566
1,989
<issue_start>username_0: I want to use the vuetify framework with Vuex , but there is limited documentation about using it with Vuex. I want to: * Get data from an external API ( but only the data needed ) * Then Save the data in state and edit or whatever * Then push any changes back to the api I have tried some of...
2018/03/03
2,265
7,102
<issue_start>username_0: I have a CSV file in which the ideal format for a row is this: ***taxID#*, *scientific name*, kingdom, *k*, phylum, *p*, class, *c*, order, *o*, family, *f*, genus, *g*** ...where kingdom, phylum, etc. are identifiers, literals ("kingdom", ... "phylum"), and the values that follow the identif...
2018/03/03
1,909
6,133
<issue_start>username_0: This is my SQL query: ``` SELECT DISTINCT(ItemId), TCode, PartNumber,ModelNumber, ItemUOM FROM #Results ``` This query returns: ``` ItemId TCode Source PartNumber ModelNumber ItemUOM ----------------------------------------------------------------- 1024 1000 NULL NULL ...
2018/03/03
2,067
5,909
<issue_start>username_0: I'm working on a JS exercise that's basically a function that plays out a match of rock, paper, scissors and declares a winner based on which player had what. Now I've got a completely working program with this: ``` const rps = (p1, p2) => { var r = "rock"; var p = "paper"; var s =...
2018/03/03
304
1,158
<issue_start>username_0: I am creating a simple button to hide the sidebar navigation in my application. I have this HTML here. ``` ### [*face*](#) Dashboard ``` And in my `application.js` ``` $('#sidebar-toggle').on('click', function() { $('.sidebar-main').toggle(); }); ``` I have the jQuery gem installe...
2018/03/03
254
1,028
<issue_start>username_0: I tried to input proxy server address in proxy setting and saved it, but after closing that window all the setting got restored to previous versions when I tried to search in LAN settings I found that the LAN settings are Disabled.When I searched on Internet I found that to make any changes in ...
2018/03/03
1,325
4,660
<issue_start>username_0: I am trying to run TF object detection with mask rcnn, but it keeps dying on a node with 500GB of memory. I updated the models/research/object\_detection/trainer.py ConfigProto to ``` session_config = tf.ConfigProto(allow_soft_placement=True, intra_op_paralleli...
2018/03/03
927
3,168
<issue_start>username_0: ``` #include #include using namespace std; class Person{ private: string name; int age, height, weight; public: Person(string name = "empty", int age = 0, int height = 0, int weight = 0) { this->name = name; this->age = age; this->height = height; this->weight = weight; } }; class N...
2018/03/03
3,591
9,293
<issue_start>username_0: I have this flipcard I put together, and when you hover over it, it flips 180 degrees on it's x-axis, and then expands. When I mouse-off of the element, I would like for this element to flip back the opposite way smoothly, the way it came in. Instead of the sudden change back when you mouseout ...
2018/03/03
3,419
9,128
<issue_start>username_0: I am using carousel in FlashDisplayPage of my app. and I want to use label inside the carousel. I searched relevant sites and made the below code. I am new to kivy so I don't know if this is the right way. If its not how can I make it right? And an error is also occurring here, even though I h...
2018/03/03
1,517
4,699
<issue_start>username_0: I am trying programmatically create a layer with transparent text. Everything I try doesn't seem to work. My end goal is to create an inner shadow on text. Instead of a circle as in the code below I want text. ``` let view = UIView(frame: CGRect(x: 0, y: 0, width: 500, height: 500)) view.ba...
2018/03/03
1,387
4,876
<issue_start>username_0: I'm trying to copy and paste a log trend line from a chart into a cell. A sample equation is as follows: y = 0.0083ln(x) - 0.0902. As I run the regression for different datapoints, the equation constantly changes. Hence, I'd like the macro to copy and paste the equation into a cell. The followi...
2018/03/03
3,778
7,683
<issue_start>username_0: I am looking to do some analysis on the Ethereum blockchain, particularly, look for correlations in the data between available hash power and transaction confirmation times. However, I am unable to make sense of how to go about downloading either of the blockchains or extract the transaction an...
2018/03/03
3,880
7,768
<issue_start>username_0: I have 5 tabs and would like to set a background color to only **Tab 4** using a custom class. Basically, I have a class called **"myClass"** and would like to use it in my css code. to target the element (Tab 4) Is there any way to use my class to target Tab 4?. **Here's my working code:** ...
2018/03/03
639
2,158
<issue_start>username_0: any body can help me for a program I want to make a code that can fill a matrix that way in C# ``` 0 0 0 0 5 0 0 0 4 0 0 0 3 0 0 0 2 0 0 0 1 0 0 0 0 ``` i am working on it for a week but i dident find a solution thank you<issue_comment>username_1: Here is your solution. At least try to u...
2018/03/03
440
1,983
<issue_start>username_0: I am working on a jobs site where I am thinking of breaking out the jobs matching section into a micro service - everything else is a monolith. But when thinking about how the microservice should have its own separate database, that would mean having the microservice have a separate copy of a...
2018/03/03
423
1,774
<issue_start>username_0: how to print specific number of digits in c++?For example ,printing 8 digits totally(before and after decimal point combined) Edit: For further clarification, setprecision sets the digits when i have decimal digits to display.I want to display integer 30 also as 30.000000 ,in 8 digits. The set...
2018/03/03
512
1,892
<issue_start>username_0: im having difficulty understanding how form data are taken in javascript. For example: ``` firstName: req.body.firstName || null, lastName: req.body.lastName || null ``` are firstName and lastName id's from the html used to identify what field the data is coming from? Thank...
2018/03/03
640
2,039
<issue_start>username_0: Initially my variable is empty. ``` var data = []; ``` After insertion of record it should be like, ``` data = [ { "date" : "2013-01-01", "open" : 45 }, { "date" : "2013-02-01", "open" : 50 } ]; ``` Inserting new attribute to existing data, ``` data = [ { "date" : "2013-01-01", "op...
2018/03/03
644
2,274
<issue_start>username_0: I'm working on a navigation bar where 2 items have drop-down menus. The first drop-down works fine but the second one always triggers the first one. I've tested it after removing any extra styles I've added but it still isn't working. I'm sure it's something obvious but I just can't seem to fi...
2018/03/03
795
2,635
<issue_start>username_0: So I have these 2 pages IF the URL of **page1** is: ***<http://localhost/project/page1/page1/5>*** And there's a link in that page that redirects to **page2** with the URL: ***<http://localhost/project/page2/page2/2>*** (its 3rd segment - **2** is from dropdown value selected) Is it poss...
2018/03/03
2,216
6,561
<issue_start>username_0: Hello StackOverflow users: I'm tweaking a website that uses the omdb api to search for movies and I'm new to using json and Ajax. The website uses the knockout js framework. My question is: How do you setup an knockout observable command line that collects a json setting that seems like an arr...
2018/03/03
1,524
4,747
<issue_start>username_0: We have a Azure service fabric micro-service which listen to multiple azure service bus topics(Topic A, Topic B). Topic A has more then 10 times message traffic then topic B. and to handle the scale-ability of service we will create the multiple instance of service. 1. My first question is, I...
2018/03/03
3,174
9,209
<issue_start>username_0: I have a data frame which have two columns in JSON format, like this: ``` author biblio series <NAME> {'volume': 68, 'month': 'January', {'handle':'RePEc:aka:aoecon', 'name': 'Oeconomica'} 'name...
2018/03/03
1,641
4,708
<issue_start>username_0: ``` SELECT i.itemsname , i.itemsprice , i.itemsdescrip , c.catname , c.catdes , c.status , c.collapse , c.catid FROM items i LEFT JOIN categories c ON c.catid = i.catid WHERE i.restid AND c.restid =12 GROUP BY c.catid ``` that is my q...
2018/03/03
418
1,501
<issue_start>username_0: Is there a shortcut that would act like **Find in Files** shortcut, but would also perform a search of the highlighted text? [![enter image description here](https://i.stack.imgur.com/077yx.png)](https://i.stack.imgur.com/077yx.png)<issue_comment>username_1: The 'find in files' shortcut by its...
2018/03/03
568
1,995
<issue_start>username_0: How to make a led fade out in 5s using PWM in arduino. I wrote this function, it didn't work. I try to call this function. ``` const int minPWM = 0; const int maxPWM = 255; int fadeValue = 255; int fadeIncrement = 5; unsigned long previousFadeMillis; int fadeInterval = 50; void setLightPWM(un...
2018/03/03
633
2,073
<issue_start>username_0: ```html ``` I have two database tables one called info other uses. info table contain column name *inf\_num*, Is there a way where i can get the last row inf\_num and insert the above inputs in uses in one query. For instance if i was to do it manually i would check the last row myself so if ...
2018/03/03
2,216
8,875
<issue_start>username_0: For example, there are a lot of tasks are posted to UI thread as follows. ``` Handler handler = new Handler(Looper.getMainLooper()); handler.postDelayed(new Runnable() { @Override public void run() { // Some logic to display/update something in UI } }, 5000); ``` What ha...
2018/03/03
250
777
<issue_start>username_0: [This is the HTML code](https://i.stack.imgur.com/CMRZt.png) [This is the sql page](https://i.stack.imgur.com/VYtZy.png) [This is the database page](https://i.stack.imgur.com/L2px0.png) [This is the Output Page](https://i.stack.imgur.com/IG7UX.png) **Why phn is not inserted to the database?...
2018/03/03
1,450
3,842
<issue_start>username_0: When i run the code below, i get three lists, one below the other vertically. I want them to be horizontal, separated by a comma (similar to the last print list statement, where the data is separated by a comma). I tried rearranging the for loop statements, and I get all sorts of combinations...
2018/03/03
324
938
<issue_start>username_0: I have a problem here regarding Realm queries in GraphQL. Is it possible to query between two dates in graphql? This is what I've tried: ``` query getStudents{ student(query:"created_datime BETWEEN {'2018-02-24T14:59:43.842Z','2018-02-28T14:59:43.842Z'}"){ id code name crea...
2018/03/03
262
783
<issue_start>username_0: I have this PHP script: ``` file_put_contents($_GET["username"].".txt", $counter); $counter = file_get_contents(strtolower($_GET["username"]).".txt") + 1; ``` This should increase the content of the text file by 1. But it doesn't edit the text file. Why's that.<issue_comment>username_1: Can...
2018/03/03
1,395
4,817
<issue_start>username_0: I'm working on an Ionic application that is communicating with an express server. Things were working fine until this last publish cycle. Upon deployment, half of our API calls stopped functioning correctly on our live server. I've narrowed down the issue to our requests that contain an Author...
2018/03/03
862
3,182
<issue_start>username_0: i am building my first random quote machine freecode camp project. I need my javascript code to work ```js var quotes = [["Imitation is suicide.", "-<NAME>"] ["Flatter yourself critically.", "-<NAME>" ] ["Don’t look for society to give you permission to be yourself.", "-<NAME>"] ["If things go...
2018/03/03
1,512
5,426
<issue_start>username_0: ``` public void Test() { Console.WriteLine(nameof(T)); } Test(); ``` This code literally prints `T` and not `int`, which is not useful at all. I would like to get the name of an actual generic type parameter used without using reflections (`typeof` and then operate on the `Type` variable, e...
2018/03/03
867
2,835
<issue_start>username_0: I have a SIM800L module and I want to send SMS. But this module is not connect to network. I am from Sri Lanka. I am using 3G SIM card and I think it is not issue because if it 3G SIM it can shift to 2G. Am I right? I put this SIM card to my iPhone and change setting to 2G then also get signa...
2018/03/03
847
2,836
<issue_start>username_0: I have two tables. First is called TempIds and it contains only one column called Id which is of type int TempIds: ``` Id 45 34 77 ``` The second one is called Countries which has two columns, Id and Name Countries: ``` Id Name 22 Austria 45 Germany 88 China 12 Jap...
2018/03/03
534
1,872
<issue_start>username_0: I'm trying to evaluate usleep vs std::this\_thread::sleep\_for and seeing more instructions generated when using std::this\_thread::sleep\_for vs usleep. Results here: <https://godbolt.org/g/ZyCCmj> ``` int main(int, char**) { std::this_thread::sleep_for(std::chrono::milliseconds{30}); ...
2018/03/03
893
2,661
<issue_start>username_0: I get the following error trying to traverse the xml and inserting each node in the DB. > > Notice: Trying to get property of non-object > > > the lines of the error are these: > > $ninv= $obra->ninventario."/".$obra->ncatalogo; > > > $consulta ="INSERT INTO `bcficha` (`ninv`, `contra...
2018/03/03
2,198
9,345
<issue_start>username_0: I have a xml file(fragment\_about\_sl) in which I added a coordinatorLayout.The code is given below.After adding that and running the app on device the specific layout shows two toolbars.I think one is the default toolbar created in the MainActivity.java and the other is the blank toolbar creat...
2018/03/03
326
1,143
<issue_start>username_0: I am using JQuery to submit a form without reloading the page, I have my code below and a screenshot of my error. Please tell me what I am doing wrong? Code: ``` $(document).ready(function() { $('form').submit(function (event) { event.preventDefault(); var username = $("#username").val(...
2018/03/03
389
1,273
<issue_start>username_0: From IDLE: ``` >>> a=True >>> b=True >>> c=True >>> d=True >>> e=True >>> f=a and b and c and d and e >>> f True >>> b = False >>> f True ``` Shouldn't the second `f` be False, since b is False? *'If both the operands are true then condition becomes true.'* <https://www.tutorialspoint.com...
2018/03/03
634
2,545
<issue_start>username_0: I know this question has probably been asked many times and my title probably needs some help so feel free to close this question after pointing me to a duplicate... just not sure how to properly search for the answer at the moment. I've got a situation where a variable may need to hold and in...
2018/03/03
608
1,936
<issue_start>username_0: I have done some transactions done by sandbox PayPal and got the transaction completed. After completing the transaction I have redirecting the URL to payments received page e.g **www.example.com/payments-recieved/**. And I have got some values in an array. The array receives the latest transac...
2018/03/03
560
2,106
<issue_start>username_0: I create an entry using ``` ``` It is inside a ListView > ItemTemplate > DataTemplate > ViewCell The thing is I need a way once a user clicks the submit button in that ViewCell it gets the text for the entry in that cell. I am using Binding to set the values so I don't how to get the text.<...
2018/03/03
464
1,321
<issue_start>username_0: say for example I have the word dictionary, how do I code so that it produces ``` dictionar dictiona diction dictio dicti dict dic di d ``` (every last character is removed) I currently have: ``` def generate_letter_removed(word): return_list4 = [] for i in range(1, len(word)): ...
2018/03/03
647
2,481
<issue_start>username_0: I have been trying to follow the [docs](https://reacttraining.com/react-router/web/api/Switch) in using react-router's Router, Route, and Switch components. But I have been completely unable to get URL parameters working. I can get all other routes working, but anything that involves `/:variab...
2018/03/03
1,214
3,938
<issue_start>username_0: Compiling with `gcc -std=c99 -Wextra` this piece of code: ``` #include struct T { int a; int \*b; int c; }; int main(void) { struct T t = {.b = ((int []){1, 1})}; printf("%d\n", t.b[1]); return 0; } ``` Is giving me a warning: ``` demo.c:11:12: warning: missing initializer for fie...
2018/03/03
655
2,095
<issue_start>username_0: I have an object contains multiple common key-value props, that I want to pass on to some jsx. Something like this: ``` const commonProps = {myProp1: 'prop1',myProp2: 'prop2'}; ``` I want this to function as passing individual props: ``` ``` Is this possible?<issue_comment>username_1: > ...
2018/03/03
1,329
4,824
<issue_start>username_0: I'm trying to make a pair of nav pills to choose between a graphical and a tabular output for a set of data and I can't seem to figure out how to grab the value of the nav pill. I defined the nav pills as follows: ``` * [Charts](charts) * [Tables](tables) ``` and they render like this: [...
2018/03/03
750
2,256
<issue_start>username_0: I am trying to make a JS app that will convert Fahrenheit to Celsius/Kelvin. The user enters a number in a numerical textbox on the site and chooses what unit to convert to. In JS, the number is assigned to the variable 'a' Here is my code: ``` //Celsius document.getElementById("tmpVal").valu...
2018/03/03
729
2,441
<issue_start>username_0: ``` #include #include using namespace std; class Person{ private: string name; int age, height, weight; public: Person(string name = "empty", int age = 0, int height = 0, int weight = 0) { this->name = name; this->age = age; this->height = height; this->weight = weight; } }; class N...
2018/03/03
494
1,666
<issue_start>username_0: I've installed docker in a VM which is publicy available on internet. I've installed mongodb in a docker container in the VM.Mongodb is listening on `27017` port. I've installed using the following steps ``` docker run -p 27017:27017 --name da-mongo -v ~/mongo-data:/data/db -d mongo ``` Th...
2018/03/03
588
2,086
<issue_start>username_0: I'm beginning to think why did Laravel implement relationships to their framework, they've never worked for me and their a huge stress to fix when they break. This is the 5th time my relationships are returning null, even when ensuring I've set them up properly? ``` class UserStats extends Aut...
2018/03/03
1,277
4,193
<issue_start>username_0: I want to do the following in R: for each element in vector X, I want to nearest neighbor in vector Y, such that the sum of the absolute differences between each X-Y match is minimized. Vector Y is at least as long as vector X. The catch is: I want to do this WITHOUT replacement. For example, ...
2018/03/03
786
2,815
<issue_start>username_0: I am trying to find a way to assign values to an Array from the scanner input by using enhanced For loop. But I don't see a way I can do it. In the code below i have declared a getInput() method which loops through the Array and assign numbers from the scanner input. But in case of enhanced F...
2018/03/03
597
1,307
<issue_start>username_0: I have a zero list with size of `m`. I wanna randomly select `p` indexes and change them to 1. `Y = [0 for x in range(M)]` What is the best way to do this?<issue_comment>username_1: You can use Python's [random module](https://docs.python.org/3/library/random.html#random.shuffle): ``` import...
2018/03/03
775
3,010
<issue_start>username_0: I have 3 Navigators. The MainNavigator is the root of the other two (Auth and Activities). Based on whether the user has successfully logged in, I need to route the user from the Auth Stack to the Activities stack. How can I do that? I can't seem to figure this out just yet (new to react-native...
2018/03/03
442
1,654
<issue_start>username_0: So, I have this function listOrder() that checks to make sure my LinkedList is in the expected order. But every single time I run it, I'm off by one index. So, it'll expect the value at index 0, but then it gets the item at index 1, and then it loops to expect the value at index 1, but then it ...
2018/03/03
907
2,782
<issue_start>username_0: Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > > java.io.IOException: Can't write [G:\new\Schat\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\Dell.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.0.aar\56bf57c0...
2018/03/03
844
2,691
<issue_start>username_0: I'd like to fetch snapshot which contains typed text. For example node look like this ``` "Team": { "Yankees": { "uid1": "name", "uid2": "name" }, "Angels": { "uid1": "name" "uid3": "name" } ``` and if user typed `yan` in search bar then I want to fetch "Yankees" snapshot....
2018/03/03
398
1,348
<issue_start>username_0: I'm trying to make a notification system, I install everything, but return this error: > > WebSocket connection to > 'ws://ws.pusherapp.com/app/XXXXXXXXXXXXX?protocol=7&client=js&version=4.2.2&flash=false' > failed: WebSocket is closed before the connection is established. > > > And som...
2018/03/03
1,030
3,360
<issue_start>username_0: I'm using Windows 10 OS. I want to count the number of IP Address of AWS. I use `python 2.7.14` and `boto 2.6.0` I add a file which name is `boto.config` locate C:\Users\Administrator folder The content of the boto.config is: ``` [Credentials] aws_access_key_id=****** aws_secret_access_...
2018/03/03
776
3,222
<issue_start>username_0: I am working on Language setting on my app. I was able to change the locale from my Main Activity through the use of ``` Resources resources = getResources(); Configuration configuration = resources.getConfiguration(); DisplayMetrics displayMetrics = resources.getDisplayMetrics(); configurati...
2018/03/03
903
3,612
<issue_start>username_0: For example I have a class with Linked list class ``` class Link: empty = () def __init__(self, first, rest=empty): assert rest is Link.empty or isinstance(rest, Link) self.first = first self.rest = rest def __repr__(self): if self.rest is Link.e...
2018/03/03
712
2,943
<issue_start>username_0: Please let me clear, is it possible to integrate CallKit without using VOIP? What I want to achieve is to get call history from iPhone. and I know it is not possible. So I want to create my own history with the help of CallKit. For this purpose I need following: 1. I want to detect incoming c...
2018/03/03
697
2,965
<issue_start>username_0: I'm currently doing a project where we have to find zeroes using quadratic formuala, the point of the project is to be able to pass info through different resource classes and have different classes doing things (calculating, printing..) I have my first class which is responsible for getting t...
2018/03/03
492
1,773
<issue_start>username_0: Why is program not iterating through the array ! The menu.length is 4 still the for loop is iterated only once ! This is my first post in stack overflow So sorry If it is so egregious ! ```js var menu=["Electrical calulator","Light Calulator","Finance Calculator","temperature calculator"]; c...
2018/03/03
593
2,128
<issue_start>username_0: I am trying to populate a `List` when `Profile.MatchId == Dock.MatchId` from different classes. This is a stripped down version of both classes: ``` public class Profile { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int ProfileId { get; set; } public int MatchId...
2018/03/03
1,324
3,540
<issue_start>username_0: For example: ``` string binaryValue = "11111111111111111111111111111011" // -5 ``` I need to convert this string to decimal representatin of this number. ``` stoi(binaryValue, nullptr, 2) ``` Will throw exception on this case. So how can i do this in c++ ? String or int doesn't matter.<is...
2018/03/03
310
1,237
<issue_start>username_0: I'm running an Nginx webserver in a Alpine container. It appears I cannot use `systemctl` (<https://github.com/moby/moby/issues/2296>) without different priviliges, or I get `Failed to get D-Bus connection: Unknown error -1`. Is there another way to achieve the same thing, i.e. check the status...
2018/03/03
4,169
14,550
<issue_start>username_0: I was looking at how Python implements the [property descriptor](https://docs.python.org/2/howto/descriptor.html#properties) internally. According to the docs `property()` is implemented in terms of the descriptor protocol, reproducing it here for convenience: ``` class Property(object): "...
2018/03/03
800
2,735
<issue_start>username_0: Using the old Developer Tools for Microsoft Office 2000 or Visual Studio 6 (Visual Basic 6), it was possible to create ActiveX DLLs that could be referenced and called from within a VBA project. Is there any way to do this using up-to-date Visual Basic / VBA coding tools?<issue_comment>username...
2018/03/03
396
1,356
<issue_start>username_0: I guess this issue just arose recently. On my regular PC I have an older version of `pandas_datareader` which works fine, but on my instance I had to install the newer version and it doesn't work. It has the following error- `Yahoo Daily has been immediately deprecated due to large breaks in t...
2018/03/03
1,633
6,789
<issue_start>username_0: I have analyzed **[This](https://stackoverflow.com/questions/45331626/cannot-convert-value-of-type-viewcontroller-type-to-expected-argument-type-ui)** question already but it is about `alertController` What actually I am doing is that, I am working with `ContainerViews` to a `MasterVC`. I am fo...
2018/03/03
1,052
3,201
<issue_start>username_0: I am trying to Hash a text using HMAC SHA-256 in Javascript I have [secret Ket] I have Ruby code to hash, but I need Javascript code to Hash the text Ruby Code ``` OpenSSL::HMAC.hexdigest( 'sha256', # hash function 'HFgGgIOaLiyFgUhIjirOoqxloHuiLNr20jkhXrNw', # secret key (keep safe!) ...
2018/03/03
1,082
3,508
<issue_start>username_0: I and am just starting to learn git command line. I forked a git project, cloned it, added the original as a remote, created a branch, edited a file, committed and created a pull request. All seems well. Now I wish to make another branch, to fix an issue that is specific to my setup. I don't w...
2018/03/03
1,021
3,512
<issue_start>username_0: I got a switch case having 15+ cases. The switch case trigger on an integer variable which increments by 1 on each execution and changes back to value 1 after all cases are executed and starting again. What will I do to make it so that my switch case trigger random cases and I don't want to st...
2018/03/03
247
973
<issue_start>username_0: Chrome 64 has included feature policy for cross-origin-iframe. I need to access the camera inside the cross-origin-iframe. I had tried loading page which uses camera through form submission it didn't work. But, if I try loading page through source attribute inside the iframe tag directly is wo...
2018/03/03
1,110
7,072
<issue_start>username_0: I am trying to get the HTML text difference between 2 div(s). Currently I am getting, all the selections, but the problem is they are being rendered as raw HTML along with the tag names. See the screenshot below. [![enter image description here](https://i.stack.imgur.com/T6xNI.png)](https://...
2018/03/03
544
1,540
<issue_start>username_0: ``` #include #include int main() { char \*strs[6], array[100]; int i; FILE \*file = fopen("random.txt", "r"); for (i=0 ; i<6; i++) { fscanf(file ,"%s", array); strs[i]= array; printf("%s ", strs[i]); } printf("%s", strs[3]); return 0; } ``` Inside the random.txt: one two th...
2018/03/03
608
1,775
<issue_start>username_0: At first please refer to <http://sqlfiddle.com/#!9/7b458/> for the database i have created. ( MYSQL) Now i have a problem to FIND OUT IN WHICH COURSE MAXIMUM NUMBER OF STUDENTS HAVE TAKEN ADMISSION . This is how i proceed ``` select course_name from `course-taken` natural join course; select...
2018/03/03
1,234
3,738
<issue_start>username_0: I have an athena table which I did not create or manage, but can query. one of the fields is a struct type. for the sake of the example let's suppose it looks like this: ``` my_field struct > ``` Now, I know how to query specific fields within this struct. But in one of my queries I need to...
2018/03/03
1,158
3,531
<issue_start>username_0: I'm a newbie in angular 4. I'm facing a problem with **\*ngFor** with HTML drop-down **select and option**. I have categories array-object - ``` categories = [ { id:1, title: 'c/c++'}, { id:2, title: 'JavaScript'}, { id:3, title: 'Angular'}, { id:4, title: 'Node'} ]; ``` I want to show ti...
2018/03/03
1,118
4,829
<issue_start>username_0: I recently started to migrate one of my Play Framework application from 2.5.9 to 2.6.12 and my application is using compile time DI. I now have some problems when upgrading. First here is the error that I face: ``` [error] /scala-projects/plant-simulator/app/com/inland24/plantsim/core/Bootstra...
2018/03/03
401
1,282
<issue_start>username_0: I want to use the function to calculate the arl of cusum however I meet a problem when I run the code it shows "Error in if (r[i] > h1) break : missing value where TRUE/FALSE needed" to me. I don't know how to write the correct code ``` myfun2<-function(c1,h1){ r=rep(0,500) for (i in 1:49...
2018/03/03
1,264
4,635
<issue_start>username_0: Given that the user can enter values in specific formats only, I need to extract relevant sections of that string into Java variables. Say for instance acceptable formats are:- ``` String types[] = {"The quick brown ${animal} jumped over the lazy ${target}.", "${target} love...
2018/03/03
866
3,420
<issue_start>username_0: ``` class Enrollment(object): def __init__(self,enrollmentId=None, enrollmentReference=None): self.enrollmentId = enrollmentId self.enrollmentReference = enrollmentReference @property def enrollmentId(self): return self.__enrollmentId @enrollmentId.set...
2018/03/03
732
2,599
<issue_start>username_0: I'm trying to access the `User` model but its returning empty? ``` $topOnlineTime = UserStats::with('user')->orderBy('OnlineTime', 'DESC')->limit(10)->get(); ``` In view: ``` @foreach ($topOnlineTime as $user) {{ number_format($user->username) }} @endforeach ``` `username`belongs to the u...
2018/03/03
590
2,133
<issue_start>username_0: So in unity I have a prefab that contains a canvas This prefab is instatiated at runtime and can be instantiated multiple times throughout the game Now lets assume 2 of these prefabs `Barracks` exist in the game If I click on Barracks #1 ```c# private void OnBarrackClick(){ if (Inpu...
2018/03/03
1,246
5,442
<issue_start>username_0: I hope that I have worked out this question enough for not being opinion based. I am not asking whether UML is good or bad, because I have no doubt that it is useful for those who work with it professionally. **I would rather like to know if there is kind of a critical mass (measured in, say,...