date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/14
464
1,621
<issue_start>username_0: ``` public class Parent { public virtual int Id{ get; set; } public virtual ICollection Children { get; set; } public Parent() { Children = new List(); } } public class Child { public virtual int Id{ get; set; } public virtual string Name { get; set; } } ``` Mapping: ``` public...
2018/03/14
636
1,853
<issue_start>username_0: If I have a number like -7 stored in a variable how can I modify a date in php by this amount. Here's what I have so far; ``` php $the_date = '16 Mar 2018'; $test_sum = '-7'; $date = $the_date; $date = strtotime($date); $date = strtotime($test_sum, $date); echo date('...
2018/03/14
657
1,920
<issue_start>username_0: how to make this image in bootstrap 3.... i will can view this image in mobile view in to three seperate rows and desktop in to one row. in mobile view each row contains one part of image.. please help me.. ``` ![5](/images/chatti.png) ![5](/images/sofa.png) ![5](/images/slider.png) ```...
2018/03/14
1,239
5,585
<issue_start>username_0: I have a page with a repeater inside a webpart zone to display rotating content (in a carousel). Content for the carousel comes from the /Carousel/ folder, which is a child of the page itself. What I want to do but don't know how is to set the visibility of the webpart zone based on the prese...
2018/03/14
1,308
5,764
<issue_start>username_0: I have used laravel before when it was 5.4 and I could easily connect to database, Now I want to work in a new project. try to connect to database and get this error. ``` Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_sc...
2018/03/14
753
2,935
<issue_start>username_0: I have an existing fragment in xml format as below ``` ``` Now I have activity class where in oncreateview I have below code - ``` View rootView = inflater.inflate(R.layout.fragment_above_fragmentView, container, false); LinearLayuot llayout = (LinearLayout) rootView.findViewById(R.id.p...
2018/03/14
682
2,550
<issue_start>username_0: I'm going to integrate a slf4j implementation (framework in company based on logback) into spring boot 2.0. In my progress I found the default logback dependency is conflict to my own dependency. Excluded `spring-boot-starter-logging` module in this way: ``` org.springframework.boot spring-...
2018/03/14
742
2,482
<issue_start>username_0: I have an Excel sheet like this ``` Listener_name Listener IP Listener Service server1 12.xx.xx.xx java server2 12.xx.xx.xx java server3 127.0.0.1 oracle ``` and I want to print all values for Listener `IP` column. My current Python code look...
2018/03/14
602
2,217
<issue_start>username_0: The animation does not work and the completion block is called right away. If I comment the code inside the completion block, everything runs as it should. ``` [UIView animateWithDuration:0.3 animations:^{ self.waitingAnchorAcceptView.alpha = 0; } completion:^(BOOL finished) { ...
2018/03/14
5,264
16,116
<issue_start>username_0: Would like to ask for help on my jquery. I've saw a bug regarding my drop-down button. When I open a drop-down button, it opens with a negative symbol as sign of dropdown menu but when I click another drop-down button, it also open with the same symbol but my previous doesn't reset to its norma...
2018/03/14
3,855
11,940
<issue_start>username_0: How could I hide the nav bar when I click the link? here is my code below. I am trying some of the codes provided here in stackoverflow but it didn't works. can you help me with my problem. ```html [![](img/Julius-Logo-header4.png)](#page-top) * * [About](#about) * [What we offer](#offe...
2018/03/14
873
3,005
<issue_start>username_0: I need to write a program that should ask two strings from user and show the common characters in this. It must not have duplicates: even if ‘a’ is found more than once in both strings, it should be displayed only once. My Java knowledge is very limited, so I'm not looking for efficiency but ...
2018/03/14
1,307
4,318
<issue_start>username_0: I have a UL with a hover effect on its LIs. When hovering there is a red div appears on the left and when you click on the LI it toggles a class to the text inside of it. It's all ok on the desktop version but when I switch to the mobile version the first tap should activate only the hover effe...
2018/03/14
449
1,752
<issue_start>username_0: I am trying to load my firebase console but it is not working on my laptop.It works fine on other laptops and my mobile but on my laptop it displays loading screen and then nothing.In console it shows 502 gateway error. I have removed addblock, open console in incognito,firefox,internet explo...
2018/03/14
571
2,277
<issue_start>username_0: I have this: ``` @FXML private ChoiceBox choiseData; ObservableList choiseUserList = FXCollections.observableArrayList(); ObservableList userList = FXCollections.observableArrayList(); AdminSQL sql = new AdminSQL(); userList = sql.getAllUser(); for (User u : userList) choiseUserList.add(u.g...
2018/03/14
896
3,033
<issue_start>username_0: I was wondering if someone might be able to help me with this one. We are receiving this error in our error logs: > > [13-Mar-2018 16:42:40 UTC] PHP Deprecated: preg\_replace(): The /e > modifier is deprecated, use preg\_replace\_callback instead in > public\_html/check\_requirements.php o...
2018/03/14
4,986
21,751
<issue_start>username_0: so I have an if-else function where it will check what is supposed to be in a form, so when I submit the form the function in the controller does the if-else function. So its something like, if there is no value in a hidden input field then it will redirect the user back to the form, but when i...
2018/03/14
680
2,488
<issue_start>username_0: In angular4 i get below error. Kindly solve anyone. Thanks in advance. **new-cmp-component.ts:**: ``` import { Component, OnInit } from '@angular/core'; // here angular/core is imported . @Component({ selector: 'app-new-cmp', templateUrl: './new-cmp.component.html', styleUrls: ['./new-...
2018/03/14
988
3,529
<issue_start>username_0: I have an apex application where i need to send a notification mail to all the employees on the 5th of every month. So just for the sake of testing i am trying to send a mail in every 30 seconds. I created a job scheduler on a procedure to do the same. Here is the PLSQL code for it. ``` create...
2018/03/14
688
2,428
<issue_start>username_0: I'm looking for a regex that checks for a pattern that starts with only 1 opening curly bracket and any number of closing brackets so: ``` "something{word_or_not}}}}}}}" #should return true. "something{{word_or_not}}}}}}}}" #should return false. ``` This is how far I've gotten `"\{...
2018/03/14
1,086
3,168
<issue_start>username_0: I have 3 select box, and I want this equation. ( (Select2 - Select1) \* 40000 ) + Select3 But it doesn't work very well :( Here's my code HTML / Jquery. ``` 1 2 3 4 5 1 2 3 4 5 10000 20000 30000 40000 50000 ``` **Jquery** ``` $(document).ready(function() { $('sel...
2018/03/14
1,255
3,751
<issue_start>username_0: I have a MutableList with generic with Int, like MutableList. I wonder how to use kotlin call java method remove(int position) and remove(Integer object) correctly? ``` public void remove(int position) { if (this.list != null && this.list.size() > position) { this.list.remove(posi...
2018/03/14
723
2,430
<issue_start>username_0: I am facing below issue while running my build: ``` C:/Test.cpp: In member function '........': C:/Test.cpp:291:50: error: 'round_one' may be used uninitialized in this function [-Werror=maybe-uninitialized] ``` I tried to grep for string **maybe-uninitialized** in my whole source code but I...
2018/03/14
1,766
3,556
<issue_start>username_0: I am trying to merge the data from two worsheets in in one workbook. I have succesfully queried the data into two diffrent recordsets like so: ``` SELECT F1,F5,F12,F13,F37,F38 FROM [KAP$] WHERE F8 LIKE 'klima' ``` and ``` SELECT F1, F2, F3, F4, F5, F6, F7, F8 FROM [Klima$A3:H899] WHERE F1 I...
2018/03/14
636
1,367
<issue_start>username_0: I used the following command to replace all dates with another date string in a file using sed. ``` time sed -rn 's/\d{4}-\d{2}-\d{2}/2018-03-14/gp' date.txt ``` date.txt, > > (245176,1129,'CLEARED',to\_date('1996-09-10','YYYY-MM-DD'),35097600,'Y','Y','N',to\_date('1996-09-10','YYYY-MM-DD...
2018/03/14
106
403
<issue_start>username_0: I am running Ubuntu 17.10. I want to discover which version of Jupyter Notebook I am running using terminal commands.<issue_comment>username_1: On your terminal - `jupyter --version` Upvotes: 1 <issue_comment>username_2: According to the [Jupyter documentation](https://github.com/jupyterlab/...
2018/03/14
157
598
<issue_start>username_0: I am quite new to C++ programming. So I just wanted to know if the memory allocation to structs is static or dynamic? This is the code that I basically have. ``` struct student { double average; struct subjects sub[course_numbers]; }; struct subjects { char name; int crn; in...
2018/03/14
455
1,375
<issue_start>username_0: I'm trying to set the Node version for an Azure Function as per the documentation, but it seems to be stuck on version v6.11.2 I've tried setting this Application Setting: ``` WEBSITE_NODE_DEFAULT_VERSION ``` To be 8.1.4 I've also tried added this to be package.json: ``` "engines":{"node"...
2018/03/14
289
940
<issue_start>username_0: How to access function's parameter in another function that invoke it, here's what I mean ``` function one(a){ b(); } function b(){ //'a' is the parameter of function one if(a>0){ //do some stuff } } //the parameter 'a' of function one goes here to catch an event element.addEventL...
2018/03/14
1,728
6,465
<issue_start>username_0: I am using recyclerview in kotlin and I am new to kotlin. I have used `button.setOnClickListner` method inside this. I want to call a method which is in my `mainActivity`. How should I do it **I want to call below method which is in `mainActivity`** ``` fun sendOrder() { Log.e("TAG",...
2018/03/14
420
1,150
<issue_start>username_0: With regex - replace, I am trying to format a number like this: The leading number should be separated by a +. Moreover, the last number should be separated by a + as well. The more tricky part is, that adjacent 1s to the + to the middle part should be removed, without touching the first and t...
2018/03/14
840
3,129
<issue_start>username_0: I'm trying to initialise a value in dictionary as follow, ``` var og:image: String ``` But after `og:` it tries to assign the type considering `og` as the variable to site\_name, which is obviously wrong. > > Is there a way to assign `og:image` as variable to `String` type using > special...
2018/03/14
441
1,558
<issue_start>username_0: I made this for i can fix navbar on site when i scroll page How i can improve this code, can reduce it somehow? ``` // some code... var menu_offset_top_default = $('.main_menu').offset().top; $(window).scroll(function() { var menu_offset_top = $('.main_menu').offset().top; if ($(win...
2018/03/14
1,088
4,586
<issue_start>username_0: In Nexus 3 backup procedure has changed. In Nexus 2 recommended was to run a OS scheduled task / cron job to rsync some directories to a backup location. In Nexus 3 the recommended way seems to be to create to schedule a predefined Nexus Task *Export configuration & metadata for backup Task*...
2018/03/14
548
2,304
<issue_start>username_0: There is a ListBox that its ItemsSource is bind to a collection, we need always selected first item when binding is changed, for example at first ListBox has 3 items, second item is selected from ListBox by user, after that binding is changed and ListBox has 1 items, but second item is selected...
2018/03/14
650
2,151
<issue_start>username_0: I have many to many connect with between user - cityarea. I have also area which connect cityarea (One cityarea can connect only one area). I have this database structure: **users** * id * username * password **cityareas** * id * name * area\_id **cityarea\_user** * id * cityarea\_id * u...
2018/03/14
338
1,521
<issue_start>username_0: Is there any particular time period for the app in the play store to be updated (considering the fact that the developer or the company owning the app in not bothered of the update as they are satisfied with their app). Is their any chances of the app being removed from the play store due to th...
2018/03/14
791
3,033
<issue_start>username_0: As the title asks. Python has a lot of special methods, `__add__`, `__len__`, `__contains__` et c. Why is there no `__max__` method that is called when doing max? Example code: ``` class A: def __max__(): return 5 a = A() max(a) ``` It seems like `range()` and other constructs c...
2018/03/14
887
3,535
<issue_start>username_0: Amateur JavaScript guy here. I've written a private NodeJS module that manages our DB connection strings (Decrypt passwords & connection string construction), but due to the nature of the decrypt, the module returns a promise for the db connection string. We are using Sails, and the config hap...
2018/03/14
849
3,436
<issue_start>username_0: In Backpack CMS framework I have created a table using migration fields like : 'parent\_id' and 'is\_active'. I have added these fields in the crud controller using the following command: ``` $this->crud->addFields(array( ['name' => 'title', 'label' => 'Title', ...
2018/03/14
958
2,352
<issue_start>username_0: I have two table as below ``` table 1: raw    dateCol id 1 01.01.2001 00:00:00 AAPL 2 02.01.2001 00:00:00 MSFT 3 03.01.2001 00:00:00 INFY table 2: universe udateCol uid 1 01.01.2001 00:00:00 AAPL 2 02.01.2001 00:00:00 GOOGL 3 03.01.2001 00:00:00 INFY ``` i want t...
2018/03/14
539
2,330
<issue_start>username_0: I am using firebase notification. When applicationState is background it's working fine. But when app is not running / terminated func getPushNotiData(\_ notification: NSNotification) is not being call Implementing NotificationCenter in appDelegate file to handle notification in dashView ``` ...
2018/03/14
451
1,581
<issue_start>username_0: I am facing an issue while comparing two images using OpenCV in Python 2.7 Here is my code: ``` import cv2 import numpy as np img1 = cv2.imread("./spot/image1.jpg") img2 = cv2.imread("./spot/image2.jpg") diff = cv2.subtract(img1, img2) result = not np.any(diff) if result is True: pri...
2018/03/14
408
1,424
<issue_start>username_0: Appending works fine with this method: ``` for poss in pos: df = df.append([[poss,'1']], ignore_index=True) ``` Is this possible to write as a one-liner? This way is showing a syntax error. ``` df = df.append([[poss,'1']], ignore_index=True) for poss in pos ```<issue_comment>username_1...
2018/03/14
363
1,318
<issue_start>username_0: I have Data of different Stocks of various dates and each stock is stored in different Text Files (not in CSV) How to Gather up Data in some way into a Single File<issue_comment>username_1: No, it's not. It seems like you are looking to use list comprehension syntax to single-linify multiple m...
2018/03/14
4,133
5,896
<issue_start>username_0: I have a file with a number of matrices separated by a newline. I can plot any one of these matrices as a heatmap as shown in <http://gnuplot.sourceforge.net/demo/heatmaps.html> However, now I would like to visualize all the matrices together on the same graph by plotting each matrix at increa...
2018/03/14
655
2,235
<issue_start>username_0: I am using the `permutations()` function from the `itertools` module. I have to compare two strings. The strings can be considered equal as long as one is a permutation of the other. The documentation for `itertools.permutations()` says: > > `itertools.permutations(iterable[, r])` > > > Re...
2018/03/14
1,291
4,581
<issue_start>username_0: In order to use the `HTTP V1 API` (not the legacy API) with PHP, the REST interface has to be used. <https://firebase.google.com/docs/cloud-messaging/send-message#top_of_page> I am wondering how to get the Auth 2.0 access token? <https://firebase.google.com/docs/cloud-messaging/auth-server>...
2018/03/14
570
2,094
<issue_start>username_0: Im trying to create a JavaScript function that is storing some information in firebase Database each time it is called. One information that I want to store is the current Date and Time that the function has been called. I’ve create something on my own but the formation of the date and time isn...
2018/03/14
3,146
12,761
<issue_start>username_0: Lately I've been trying to write my React components as "Pure Functions" and I've noticed that sometimes I want to have something which feels a lot like `state`. I was thinking about passing my `state` as a second parameter to my component. I can achieve this by calling my component as a normal...
2018/03/14
853
2,798
<issue_start>username_0: I'm in the middle of a small crisis here. I need your help! I've done my research for hours but this is my last resort. Cutting to the story, I'm trying to list all the 'pages' from an active category in Wordpress. Here are the steps I've done so far. I was able to enable categories for my pa...
2018/03/14
732
3,014
<issue_start>username_0: Assume you are making a software that manages classes and students. I'd assume you would have an administrator class, lesson class, and student class. The administrator class can have various functions such as "get the list of all available lessons" or "get the list of all lessons that a stud...
2018/03/14
821
3,325
<issue_start>username_0: I have a simple exception and I don't know how to deal with it. My question is what should I do in main? I know I should create an `Exception Class` but that's a simple example to understand how should the exceptions be treated in main. In main I want do display a message and exit the program...
2018/03/14
1,320
4,887
<issue_start>username_0: I have searched some info about this error,but it seems none match mine,may someone familiar with this error take a look. "Code generated by a SAS macro, or submitted with a "submit selected" operation in your editor, can leave off a semicolon inadvertently." it is still abstruse for me to exp...
2018/03/14
1,331
3,960
<issue_start>username_0: Afternoon All, I have been trying to resolve this for awhile, any help would be appreciated. Here is my dataframe: ``` Channel state rfq_qty A Done 10 B Tied Done 10 C Done 10 C Done 10 C Done 10 C Tied Done 10 B ...
2018/03/14
2,243
6,798
<issue_start>username_0: I'm building a news feed using React and moment.js. Using `.map` I'm rendering items with a title and content. I'd like to check if an item was posted in the same year and month as another item. If this is the case I want to hide the second items title. [Please see my fiddle](https://jsfiddle....
2018/03/14
749
2,862
<issue_start>username_0: could you help me accessing some information in the result of the yum list module? This is my task: ``` - name: check if lgto networker is installed yum: list: "{{ (item | basename | splitext)[0] }}" state: present register: yum_result with_fileglob: - "lgt*.rpm" ``` When ...
2018/03/14
1,216
5,191
<issue_start>username_0: ``` import java.io.*; import java.sql.*; public class jdbcdemo { public static void main(String args[])throws IOException { Connection con=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odb...
2018/03/14
349
1,408
<issue_start>username_0: ``` @SpringBootApplication public class InfoServerSpringApplication { //this is my code in java public InfoServerSpringApplication() { System.out.println("Hello world"); } public static void main(String[] args) { SpringApplication.run(InfoServerSpringApplication.class, args); } } ```...
2018/03/14
455
2,045
<issue_start>username_0: I need to execute derived class constructor before base class constructor. I am attaching code which is using virtual object in base class which need to be initialised in derived class. We decide type of virtual object in derived class and then assign values to that object once we have type of ...
2018/03/14
400
1,497
<issue_start>username_0: i m new to vue (version 2.5) in my project i had install v-select i go through document and got confuse on few thing here is my code ``` Category next ```<issue_comment>username_1: Are we talking about [this select component](https://sagalbot.github.io/vue-select/docs/Api/Props.html)? Th...
2018/03/14
775
2,780
<issue_start>username_0: I have an weave network plugin. inside my folder /etc/cni/net.d there is a 10-weave.conf ``` { "name": "weave", "type": "weave-net", "hairpinMode": true } ``` My weave pods are running and the dns pod is also running But when I want to run a pod like a simple nginx which will pull an nginx ...
2018/03/14
466
1,365
<issue_start>username_0: I have tried following code to print memory usage in %.. It print the answer as follow, 71.2505 - I need the answer as 71% ..how can I resolve this ? ``` free | grep Mem | awk '{print $3/$2 * 100}' ```<issue_comment>username_1: You have at least three options so far. (1) capture the output ...
2018/03/14
1,270
4,652
<issue_start>username_0: I have two tables ``` CREATE TABLE RetailGroup( Id int IDENTITY(1,1), GroupName nvarchar(50), ) CREATE TABLE RetailStore( Id int IDENTITY(1,1), StoreName nvarchar(100), RetailGroupId int ) ``` Where RetailGroupId in RetailStor...
2018/03/14
1,475
4,661
<issue_start>username_0: I am trying to import xml into my database with the following query using OpenXML in Microsoft SQL Server: ``` DECLARE @xml XML; DECLARE @y INT; SET @xml = ' 5135399 Stocks divided into two corners News papeer Foreign capital doubled this year. 2017-12-30T00:00:00 1 News general ...
2018/03/14
556
2,041
<issue_start>username_0: I have created a table with selection and pagination in angular 2 using angular material. I have taken a button with the name **Remove Selected Rows** to delete the selected rows from the table. But as a delete the selected rows , all the table data is being loaded which doesn't match with va...
2018/03/14
370
1,328
<issue_start>username_0: I'm trying to configure a maven build profile, my purpose is to add the following dependencies everytime the is doesn't match some\_id. for some reason this does not work, I suspect that using the `! logical operator` does not work with id's. any ideas ? ``` !some\_id com.project.apps ap...
2018/03/14
446
1,241
<issue_start>username_0: I would like to extract a certain numbers in a string, after numerous tries with regex, I can't seem to find the correct pattern for it. There are other numbers but I require only the 3 digits after "M". Thank you. Example: line: `"2018-01-23 - member data. member_id=[M001]."` Result: ``` 00...
2018/03/14
586
1,924
<issue_start>username_0: I'm using 2 tables: First as main table that keeps data Second one is a temp table to import new report everyday and check the difference between records in new report and main table. ``` tablename="Temp" DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel10, tablenam...
2018/03/14
582
2,098
<issue_start>username_0: I'm using kartik's fileInput widget. What I need to do is to change the size of browse icon and change the caption name (because now it is "Select file").. Im really struggling with that and I cannot find any information for the problem. Here's my widget: ``` echo FileInput::widget([ 'mod...
2018/03/14
861
2,925
<issue_start>username_0: I am trying to implement multi-task CNN using adaptive `loss_weight`, which decays as the epoch increases. I referred to this [Github issue](https://github.com/keras-team/keras/issues/2595). ``` # callback for adaptive loss_weight class LossWeightCallback(Callback): def __init__(self, alph...
2018/03/14
326
1,082
<issue_start>username_0: In vim I can use `:global/foo` to find lines matching foo. In normal mode I can also use `*` to find the next word under cursor. Is there any (standard) way to do a `:global` with the word under the cursor? If it is not, what would be the best way to do it?<issue_comment>username_1: ``` :map g...
2018/03/14
631
1,793
<issue_start>username_0: I have a column called Last Payment as such ``` last payment 12DEC09:00:00:00 ``` all the observations follow this structure, I've tried taking a substring such that ``` data want; set have; last_payment=substr(last_payment,1,7); run; ``` that doesn't work, I've tried formatting the date ...
2018/03/14
609
1,561
<issue_start>username_0: I am using centOS 7 and my machine is changing IP randomly on restart. So, I want to assign IP static to get-rid from further changes on other areas. For example I have to change ip address again and again in putty settings. etc<issue_comment>username_1: First you can check your IP and subnet...
2018/03/14
1,118
3,406
<issue_start>username_0: I’m using Grafana with Prometheus and want to use the World Map plugin: the idea is that I have several geopoints with some values that I want to visualize with World Map. Data example that is being returned from prometheus has the following structure: [![Prometheus structure](https://i.stack....
2018/03/14
1,306
4,716
<issue_start>username_0: I have a requirement that on loading the google map application, have to automatically start the navigation. Current scenario - It shows the route but user has to click on `start` to start navigation I couldn't find any flag associated for the same? [Found this article which shows the flags u...
2018/03/14
1,351
4,623
<issue_start>username_0: File name : URL.java Content: ``` public static String serverURL = "http://192.168.127.12:8080"; public static String serverURL1 = "http://192.168.127.12:8080"; public static String serverURL2 = "http://192.168.127.12:8080"; public static String serverURL3 = "http://192.168.127.12:8080"; ```...
2018/03/14
1,717
6,350
<issue_start>username_0: Consider a scenario, I have a function "REFRESH", this function is called by different methods simultaneously, let's say the methods are "A", "B", "C". If method "A" calls "REFRESH TOKEN" firstly then methods "B" and "C" should wait until it finishes. How can I attain this scenario? Appreciate...
2018/03/14
403
1,299
<issue_start>username_0: ``` with CTE AS ( select AGENT_USERID, ROW_NUMBER() OVER(PARTITION BY AGENT_USERID ORDER BY (agent_USERID)) AS RN FROM KYCKEN.PAP_KYCAGENTCONFIG ) DELETE FROM CTE where RN > 1 ``` I am getting error that from statement is required while running the query. There is no code b...
2018/03/14
524
2,118
<issue_start>username_0: ``` module Main where import Control.Monad.IO.Class import Graphics.UI.Gtk main :: IO () main = do initGUI window <- windowNew canvas <- drawingAreaNew widgetAddEvents canvas [Button1MotionMask] canvas `on` motionNotifyEvent $ do c <- eventCoordinates lif...
2018/03/14
315
1,219
<issue_start>username_0: ``` session.createStoredProcedureQuery("procedureName"); ``` I am only getting `session.createSQLQuery` **pom.xml** ``` org.hibernate hibernate-core 5.2.12.Final ``` I want to use it for executing a stored procedure.<issue_comment>username_1: Interesting, C documentation on motion-no...
2018/03/14
1,361
4,079
<issue_start>username_0: **Please have a look at the following fiddle:** **<https://jsfiddle.net/y7w705wb/20/>** ```css .row { height: 25px; width: 300px; background-color: red; overflow: visible; border: 1px solid black; position: absolute; } .modal { width: 200px; he...
2018/03/14
1,269
4,012
<issue_start>username_0: I'm using the official [Google Node connector to BigQuery](https://github.com/googleapis/nodejs-bigquery). I have the following snippet to stream records into the database: ``` module.exports.sendToBigQuery = (rows) => { bigquery .dataset(DATASET_NAME) .table(TABLE_NAME) ...
2018/03/14
1,068
3,146
<issue_start>username_0: i have a table with two column compay id and revenueper. I want to fetch conpany list where revenueper is >50 if this criteria returns >=60 records then fine else reduce the criteria by 5 points and fetch where revenueper >50-5 and reduce the points by 5 till the count is >=60. Please help.<is...
2018/03/14
1,274
4,628
<issue_start>username_0: I would like my node.js project to generate log files that are a bit similar to log4j format in that I would like each log line to commence with the file name and the js function name that the log request originated from. e.g: If my js file is called aNiceFile.js and my js function is called d...
2018/03/14
1,442
5,888
<issue_start>username_0: I've read about bindActionCreators, i've compiled a resumen here: ``` import { addTodo,deleteTodo } from './actionCreators' import { bindActionCreators } from 'redux' function mapStateToProps(state) { return { todos: state.todos } } function mapDispatchToProps(dispa...
2018/03/14
526
1,882
<issue_start>username_0: I wanted to Embed to twitter widget in my angular app, however, the data-widget-id required in twitter is stored in the database when I pass the widget id from variable twitter component does not render if I pass the widget id hard code string then twitter widget loads successfully ``` ``` H...
2018/03/14
986
2,680
<issue_start>username_0: How can i change this: ``` array_of_hash = [{"month"=>"January", "count"=>67241}, {"month"=>"February", "count"=>60464}, {"month"=>"March", "count"=>30403}] ``` To this : ``` month = ["January", "February", "March"] count = [67241, 60464,30403] ```<issue...
2018/03/14
452
1,544
<issue_start>username_0: I have a search bar which works fine but it produces a duplicate every time it shows the correct result. ``` if params[:nav_search] @art = Art.where(["style_number LIKE ? OR name LIKE ?", "%#{params[:nav_search]}%", "%#{params[:nav_search]}%"]).page(params[:page]).per_page(18) end ``` An...
2018/03/14
412
1,452
<issue_start>username_0: How could people have been using this code editor for HTML when it butchers this © and this ™? When I edit the page any © symbol will look like a triangle with a question mark and when the page is saved they will look like this �.<issue_comment>username_1: include **.uniq** try this, ``` i...
2018/03/14
523
1,919
<issue_start>username_0: I'm working in a strong regulation context, in which using opensource libraries (which is almost synonym of *on GitHub* nowadays) is permitted as long as you're able to have the source of all these libs. During feasibility stage , I've been linking libs on my project using nuget, storing the p...
2018/03/14
428
1,551
<issue_start>username_0: When I push a commit in to git repository, i need some validations to be happening in the commit message. How do i mimic "git push" command with some other? For example have a function in bash profile which gets invoked when i type git push? How to have a function in bash profile which can con...
2018/03/14
410
1,445
<issue_start>username_0: I need to read some words text by text in python, and I am getting this error. "NameError: global name 'wordList' is not defined. ``` i=0 with fitxer as f: for line in f: for word in line.split(): wordList[i]=word i+1 return wordList ```<issue_comment>u...
2018/03/14
647
2,722
<issue_start>username_0: I want to know if this is a good practice to use my model class in controllers in this way : ``` public function __construct(Rule $rules) { $this->rules = $rules; } ``` I do not want to repeat myself in my controllers so I want to know what is the best approach for that<issue_comment>us...
2018/03/14
907
2,757
<issue_start>username_0: Configuring SSH Keys from ePass2003 to access servers. I have a guest ubuntu 16.04 on VirtualBox, i am able to SSH server 1 from VM but while SSH to server 2 from server 1, getting below error. ``` debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: ...
2018/03/14
475
1,631
<issue_start>username_0: I tried to install face recognition in python 2.7.but i am getting the below error[enter image description here](https://i.stack.imgur.com/bIExe.png)<issue_comment>username_1: I was able to get the fix for connection issue with SSH Keys. I had to make changes in SSH config files at location ***...
2018/03/14
1,778
6,346
<issue_start>username_0: I'm working on an example Placeholder Image Server. This uses a single file approach, so urls, views, settings, are all in just one file called `placeholder.py`. Each time I try visiting `http://localhost:8000` (the homepage), I get `TemplateDoesNotExist at /` thrown at me. I can't figure out...
2018/03/14
1,339
5,578
<issue_start>username_0: I've been trying to figure out what the best practice is for form submission with spring and what the minimum boilerplate is to achieve that. I think of the following as best practise traits * Validation enabled and form values preserved on validation failure * Disable form re-submission `F5...
2018/03/14
1,327
5,257
<issue_start>username_0: I am not able to run `bundle update devise` or `bundle install` `$ bundle update devise` ``` Fetching gem metadata from http://rubygems.org/............. Fetching gem metadata from http://rubygems.org/.. Resolving dependencies............ Fetching rake 12.3.0 (was 10.1.0) Installing rake 12.3...
2018/03/14
998
3,403
<issue_start>username_0: Feels like I'm missing something obvious here - but I can't figure out how to access my JSON data. I have a Container component: ``` class About extends Component { componentDidMount(){ const APP_URL = 'http://localhost/wordpress/' const PAGES_URL = `${APP_URL}/wp-json/wp/v2/pages` ...