date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/26
1,520
5,394
<issue_start>username_0: I am stuck while attempting to retrieve data via PHP from a MySQL database when there are multiple keywords in the SQL statement. My expertise is mostly in the frontend so its been quite a struggle to get this going. I have a screen where i want to show several skills(these are keywords), all ...
2018/02/26
757
2,468
<issue_start>username_0: I have a text file that contains the address on two lines, it will look like this: ``` Company Name Address: 123 AnyStreet AnyCity, ST 12345 Company Name Address: 123 AnyStreet AnyCity, ST 12345 Company Name Address: 123 AnyStreet AnyCity, ST 12345 ``` I would like to get it to look like thi...
2018/02/26
739
2,523
<issue_start>username_0: I have seen the answers in thread, others. But it has not solved my problem yet. i use android marshmallow. (I Purchased, the application source code) there is a file attachment that has become successful. However when I try to make release app, and debug. all failed. No application permissions...
2018/02/26
851
2,760
<issue_start>username_0: I have install a laravel in a htdocs folder using following command. When I have start a project using artisan it not start.please review a things. ``` ​sevenbits11@SBT-PC-11:/opt/lampp/htdocs$ sudo composer create-project laravel/laravel first-project --prefer-dist sevenbits11@SBT-PC-11:/opt/...
2018/02/26
1,516
5,159
<issue_start>username_0: I'm trying to deploy a Airflow on Google Cloud Compute engine instance. There are specific things to change in the initialization action (Shell script to initialize the cloud VM) In order to deploy the script. I was wondering if I could handle this using terraform. Here is my terraform scrip...
2018/02/26
491
1,656
<issue_start>username_0: I'm trying to use a in clause with eclipselink JPA, but nothing is working ``` final String parameterizedQuery = "Select * FROM sap.Preco WHERE cliente_id = ?clienteId and numero_material in ( ?numeroMaterial )"; listPreco = em.createNativeQuery(parameterizedQuery) .setParamet...
2018/02/26
517
1,777
<issue_start>username_0: I have a Date check in a MS Access DB I built that has been fine for months but today is throwing out constant positives regardless of input. I've checked the outputs and they are displaying the correct week/year every time but the check is failing. It's like overnight it has just decided to re...
2018/02/26
1,852
6,415
<issue_start>username_0: Logback is throwing me below error in my spring boot app > > java.lang.IllegalStateException: Logback configuration error detected: > ERROR in ch.qos.logback.core.joran.spi.Interpreter@3:16 - no applicable action for [Appenders], current ElementPath is [[Configuration][Appenders]] > ERROR ...
2018/02/26
3,981
16,134
<issue_start>username_0: I am trying to take a photo from the phone's camera using this code: activity\_main.xml: ``` xml version="1.0" encoding="utf-8"? ``` MainActivity.java: ``` public class CameraDemoActivity extends Activity { int TAKE_PHOTO_CODE = 0; public static int count = 0; /** Called when ...
2018/02/26
1,489
5,300
<issue_start>username_0: I installed selenium node on AWS windows and started it. And I setup Jenkins, git, Seleniuim hub on AWS Linux. When i'm building app on Jenkins, selenium hub is trying to connect to selenium node of AWS windows with *private IP address*. And i'm getting following exception: ``` org.openqa.sele...
2018/02/26
1,394
5,258
<issue_start>username_0: I'm trying to set the UINavigationBar appearance (`tintColor`, `barTintColor` etc) between screens, but at the moment in iOS 11 most of this seems to be completely ignored or doesn't behave as expected. The bar appearance changes inside a single navigation controller, when a view is pushed or p...
2018/02/26
1,060
2,937
<issue_start>username_0: I am trying to convert decimal degrees to degrees, minutes and seconds using the following code: ``` def dd2dms(deg): d = int(deg) md = abs(deg - d) * 60 m = int(md) sd = (md - m) * 60 return [d, m, sd] full = 500/60 print(full) print(dd2dms(full)) ``` But I get the foll...
2018/02/26
780
3,021
<issue_start>username_0: I am a java student and I am writing a java program with exception handling. In this program, I am trying to write a program that gets 5 even number from user and if the user enter odd number then show an exception that the number is odd. I am using custom exception "oddexception" in this progr...
2018/02/26
671
1,999
<issue_start>username_0: So, this is my json format data ``` { "New Purchase Orders Created":{ "date":"2018-02-26 14:05:14.000000", "timezone_type":3, "timezone":"UTC" }, "colour":"bg-primary" } ``` This is my view in blade.php ``` @foreach( $notifications as $notification ) php $noti...
2018/02/26
603
1,828
<issue_start>username_0: I am trying to show the details of the adultJsonArr in different and I want to get it saved on action without going into writing lengthy code. I'm not getting idea of how to use the index while iterating, I tried as mentioned in line no 5 but didn't work( @index also couldn't do job for me). ...
2018/02/26
552
1,704
<issue_start>username_0: I am installing ICp 2.1.0.1 and I received an error at the TASK > > [master: Waiting for MariaDB service to start] msg: The MariaDB > component failed to start. > > > After this msg the installation completed with failed status. We are installing ICp with 3 Masters, 3 Proxies and 2 Work...
2018/02/26
1,298
4,295
<issue_start>username_0: When I try to connect using git, then I see this error ``` $ git clone git@github.com:MyCompany/eagle.git --verbose Cloning into 'eagle'... FATAL ERROR: Couldn't agree a key exchan...
2018/02/26
1,449
4,087
<issue_start>username_0: I have a array as: ``` [0 1 2 3 4 5 6 7 8 ....] #2560 positions ``` I'm trying to reshape this 1D array to 3D as: ``` A = np.arange(2560) #generating example data B = np.reshape(A,(16,16,10)) # here, i's expect to be 16 rows 16 x columns x 10 "frames" C = B[:,:,0] ``` However, the res...
2018/02/26
750
2,367
<issue_start>username_0: I have an existing table [dba.Text] and all the data in the table has to stay in there, the only thing I want is to copy all data with the year 2017 and change it to 2018. I tried to make it in Excel to show what I mean: ![How the table should look like](https://i.stack.imgur.com/lQIJv.png) H...
2018/02/26
894
2,545
<issue_start>username_0: I'm working on one requirement. I receives input string in below format. ``` A:82% X 18% Y B:100% X C:82% X 18% Y AB:60% X 20% Y 20% ZZ ``` String Explanation, ``` 1) String consists of multiple material names like below are the material names present in above mentioned string A ...
2018/02/26
411
1,447
<issue_start>username_0: I am trying to use e.target.name in react to set the state as I have done before, however e.target.name seems to be undefined for some reason and I can't figure out why, if any one has a suggestion it will be welcome. thanks! ``` - HOME ``` my event handler has only a debugger for me to play...
2018/02/26
2,579
5,260
<issue_start>username_0: I have some numbers to show the user and here I used dictionaries but I couldn't get values. Given this input, in list form: ``` inp = ['7965077', '741300', '873720', '36860', '82753', '33190', '5206', '5361','7273', '6201', '7862', '025', '437', '990', '798', '791', '70', '68', '21', '0', '...
2018/02/26
523
1,960
<issue_start>username_0: so heres the sample: simple menu/header JSX: ``` Simple Blog Home Create post ``` then I have basic index.js: ``` ReactDOM.render( , document.querySelector('.start')); ``` It renders and looks fine. When I click one of menu items I can see the URL changing, but no action is taken ...
2018/02/26
2,656
9,533
<issue_start>username_0: I have an object with fields of varying datatypes: ``` public class MyObject{ private String field1; private CustomObject field2; private int field3; ... } ``` I want to create a tree view of `MyObject` that will have multiple `MyObject` nodes, each with the fields (`fie...
2018/02/26
768
3,027
<issue_start>username_0: I am getting this error NSURLConnection finished with error - code -1002. I have added the code below into my info.plist. Does anyone know why? Thanks in advance ``` NSAppTransportSecurity NSAllowsArbitraryLoads NSExceptionMinimumTLSVersion TLSv1.0 ```<issue_comment>username_1: I think...
2018/02/26
505
2,226
<issue_start>username_0: I am working on a login / registration system in *node.js*. I *usually* query the database, to check whether the given username already exists, and if it doesn't, I create the new user. I got the idea recently, of using the Unique Index in the MySQL database for the username. I have some ques...
2018/02/26
402
1,734
<issue_start>username_0: Can anyone please explain what is `shape.count = ++shape.count || 1;` in this code. ``` function shape(shapeName){ this.ShapeName = shapeName; shape.Count = ++shape.Count || 1; shape.ShowCount = function () { return shape.Count; } } ```<issue_comment>username_1: > > ...
2018/02/26
503
1,701
<issue_start>username_0: I have sql query like this ``` SELECT * FROM phlegm WHERE JOIN mucus ON phlegm.id = mucus.id JOIN snot ON phlegm.id = snot.id ``` The problem is those tables contain several columns with identical names. For example all 3 tables contain the column named test If I retrieve the result of the...
2018/02/26
1,443
3,333
<issue_start>username_0: I've got this structured pandas dataframe DF1: ``` import pandas as pd df = pd.DataFrame({'id': [1, 2], 'name': ['A', 'B'], 'ex': ['A1', 'B1'], 'init': ['1,3,5,7,', '10,12,15,17,20,'], 'end':['2,4,6,8,', '15,18,21,24,32']}, columns=['id', 'name', 'ex', 'init', 'end']) print df id name ex ...
2018/02/26
775
2,946
<issue_start>username_0: I am using in a component a `mat-table` with a `MatTableDataSource` and I want to set up the data from its parent component but data are not refreshed at screen whereas child component well detects data changes... **Child component** ``` @Component({ selector: 'app-person-list', template:...
2018/02/26
724
2,697
<issue_start>username_0: I'm new to React and I'm trying to figure out the purpose/use of vs . I can't seem to find information on anything except self-closing tags. I've created a basic tab scroller as a [JSFiddle](https://jsfiddle.net/ChimeraZen/hym59xy3/) using the self-closing and subsequent props, and I'm wonde...
2018/02/26
346
1,220
<issue_start>username_0: I am trying to read a text file and store the data inside into structs and I am interested in finding out how to ignore the first 4 lines (text header) in the text file. This is the text file: ``` text file ``` I am only going to need the numeric values from it (year int, month int, max dou...
2018/02/26
707
2,015
<issue_start>username_0: I feel like I am misunderstanding something really fundamental. I wrote a program to do some math: ``` import math def func1(a, b, c): print (f"We will now square {a}, {b}, {c} and add them") y = (a**2) + (b**2) + (c**2) print (f"y = ", y) x = y/3 print ("x = ", x) z = ...
2018/02/26
285
1,079
<issue_start>username_0: Noticed some weirdness that defaultValue is set for input, but sometimes it's not visible when page is refreshed. I have tried console.log then component re-renders multiple times as data is loaded, on the last re-render the component contains the required value, as you can see on screenshot, b...
2018/02/26
354
1,240
<issue_start>username_0: I have a very simple question and i could not so far find a solution. I have a leaflet which gets data from Geoserver via L.TileLayer.BetterWMS.js (<https://gist.github.com/rclark/6908938>). When a user click in the image, get the feature data. In the WMS there is only a row each time with only...
2018/02/26
1,763
5,506
<issue_start>username_0: I have the following code (it is part of another page, but this is all it concerns): ```js var players = ["player1", "player2", "player3", "player4", "player5", "player6", "player7", "player8", "player9", "player10"]; var questions = ["Wat is jouw guilty pleasure?", "Wie was jouw eerste crush...
2018/02/26
731
2,703
<issue_start>username_0: I'm trying to follow this code: <https://www.w3schools.com/howto/howto_js_copy_clipboard.asp> HTML Modal: ``` × #### App Link Copy ``` Here's my JS: ``` var copyBtn = document.getElementById('copyBtn'); copyBtn.onclick = function(){ var myCode = document.getElementById('appID')....
2018/02/26
1,345
6,293
<issue_start>username_0: I want to let HandlerExceptionResolver resolve any Exceptions that I don't explicit catch via `@ExceptionHandler` annotation. Anyways, I want to apply specific logic on those exceptions. Eg send a mail notification or log additionally. I can achieve this by adding a `@ExceptionHandler(Exceptio...
2018/02/26
1,720
7,601
<issue_start>username_0: [The structure](https://i.stack.imgur.com/jeNt4.png) So I want to retrive data from the Firebase database to an `EditText` everytime a user logs in, this is my code. I currently have a value event listener that fills the edittext from the database but It dosen't seem to work. I think I have it ...
2018/02/26
1,662
5,468
<issue_start>username_0: I'm upgrading from **Angular 4.0.0** to **Angular 5.2.6** i'm facing some problem to get lazy module loading working. with **angular 4.0.0** , it works fine , but now , with **5.2.6** , i getting such an error when clicking my redirecting button : ``` core.js:1448 ERROR Error: Uncaught (in p...
2018/02/26
749
2,792
<issue_start>username_0: I have a rectangle.The `rectangle` has a custom `contextmenu`(just some simple changes made within the `ControlTemplae` of ).What i want is,on left mouse click,the `contextmenu` will popup. I tried adding `rectangle1.contextmenu.isopen=true` in the rectangle's `MouseDown` event.Yes,it opens th...
2018/02/26
1,642
6,051
<issue_start>username_0: I'm excited to use `auto` variables in my C++ programs. I know variables declared with `auto` use template rules to deduce variable types, but I'm confused as to how that works for numeric types. Suppose I have: ``` auto foo = 12; ``` The type for `foo` could reasonably be `int` or even `uns...
2018/02/26
338
1,189
<issue_start>username_0: I have the following div: ``` ![](myimage.jpg) ``` I need to place an image to an absolute position to the top and left of the container, however my image can not be placed inside the container: ``` img { position: relative; top: 10px; left: 15px; } ``` How can I amend the image cs...
2018/02/26
640
2,068
<issue_start>username_0: I am totaly new to shell..... let me ut the proper use case. Use case:- I have written two get method in my shell script, and when a user calls that script I will perform some operation for many id's using a for loop. like below ``` test_get1(){ value1=//performing some operation and storing...
2018/02/26
1,444
4,047
<issue_start>username_0: I have a table with the following columns: ``` SerialNr Date Processstep Comment -------- ---------- ----------- ---------- 2300 01.01.2018 Step 01 Comment01 2300 02.01.2018 Step 02 Comment02 2300 03.01.2018 Step 03 Comment03 2300 04.0...
2018/02/26
2,949
7,793
<issue_start>username_0: This is the current working code : ``` $.fn.vectorMap('addMap', 'world', {"width":950,"height":550,"paths":{ id:{"path":data.id.path,"name":data.id.name}, pg:{"path":data.pg.path,"name":data.pg.name}, mx:{"path":data.mx.path,"name":data.mx.name}, ee:{"path":data.ee.path,"name":...
2018/02/26
782
2,637
<issue_start>username_0: Let P and Q be two finite probability distributions on integers, with support between 0 and some large integer N. The one-dimensional [earth mover's distance](https://en.wikipedia.org/wiki/Earth_mover%27s_distance) between P and Q is the minimum cost you have to pay to transform P into Q, consi...
2018/02/26
828
3,517
<issue_start>username_0: I am adding CORS support to my OpenWhisk/IBM Cloud function. But after making the modification ( ***-a web-custom-options true*** ) to the function I noticed a decline in performance. To isolate the issue I created a simple function, see below: ``` public static JsonObject main(JsonObject args...
2018/02/26
734
2,447
<issue_start>username_0: I would like to run my Circle CI 2.0 build using Open JDK 8 & 9. Are there any YAML examples available explaining how to build a Java project using multiple JDK versions? Currently I trying to add an new job `java-8` to my build. But I do not want to repeat all the step of my default Java 9 `b...
2018/02/26
349
1,174
<issue_start>username_0: I am using ngx-bootstrap and I need to import one css file into my component, like this: > > Load it from node\_modules/ngx-bootstrap/datepicker/bs-datepicker.css > via package bundler like Angular CLI, if you're using one. > > > (this is on component's documentation). I don't know how ...
2018/02/26
645
2,096
<issue_start>username_0: I want to use tween.js to animate a changing number (which I pass from a computed prop) I did exactly what is described in this example: <https://alligator.io/vuejs/tween-values-tweenjs/> (which uses the example from the official docs (<https://v2.vuejs.org/v2/guide/transitioning-state.html#An...
2018/02/26
1,293
3,258
<issue_start>username_0: I am trying to write a query that identifies 4 consecutive points alternating up and down. I have included test data, expected results, and my query below. My query does not produce the correct results and I am having trouble understating why. Any help would be greatly appreciated. E.g. Wk 5 h...
2018/02/26
997
2,747
<issue_start>username_0: In Rstudio, I have a dataframe which contains 4 columns and I need to get the list of every different triplet of the 3 first columns sorted decreasingly by the sum on the 4th column. For example, with: ``` A B C 2 D E F 5 A B C 4 G H I 5 D E F 3 ``` I need as a result: ``` D E F 8 A B C 6 G...
2018/02/26
1,030
3,664
<issue_start>username_0: I have created a class like this, which contains a bunch of arraylist as you can see. I've been setting the array with the methods add.. and then retrieving it with get.., when i tried to System.out.println numberofcitizen for example it is returning 0. Note that i have instantiated the class i...
2018/02/26
1,799
6,774
<issue_start>username_0: I am trying to implement a toggle feature where a user can enable a day and then select AM or PM with checkboxes. The problem I am having is trying to de-toggle the button if the user unchecks AM and PM. **Screenshot:** [![enter image description here](https://i.stack.imgur.com/qtc2B.png)](...
2018/02/26
1,403
4,867
<issue_start>username_0: I have the following JSON: ``` [ { 2: { "c": true } }, { 3: { "p": 10 } } ] ``` That I would like to convert to CBOR format. Accordingly to cbor.me I have the following output: > > 82A102A16163F5A103A161700A > > > But, when using Jackson Binary CBOR ...
2018/02/26
1,202
4,253
<issue_start>username_0: I have the latest versions of webpack installed: ``` "webpack": "^4.0.0", "webpack-cli": "^2.0.9" ``` Yet when I run `webpack` in the terminal I get the following: ``` The CLI moved into a separate package: webpack-cli. Please install 'webpack-cli' in addition to webpack itself to use the C...
2018/02/26
657
4,029
<issue_start>username_0: I am trying to create a SAS table from Macro variable using PROC SQL: I have a list of value saved in a macro variable : %let l=1,2,3; I want to create a SAS table with a column containing the values of the macro variable : 1 2 3 Thank you very much for your help. Sincerely, Abdeljalil<i...
2018/02/26
733
2,733
<issue_start>username_0: We have a legacy VB6 application that is crashing at a certain point on Windows 10, but not on Windows 7. It also doesn't crash when run via the VB6 IDE (on either OS). On trying to track down the differences I discovered that msvbvm60.dll is subtely different on Win7 and Win10. Specifically,...
2018/02/26
608
2,519
<issue_start>username_0: I am trying to display a Splash screen and then an Intro for my Android app. ``` protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Intent intent1 = new Intent(this, SplashActivity.class); ...
2018/02/26
1,203
4,053
<issue_start>username_0: I’ve encountered an unusual problem in a script that I’m working on. The program is written in Python3/Tkinter. It initializes two Listboxes, wrapped in two separate Frames, and according to the user’s commands displays either one or the other. An exception arises when the user selects on one o...
2018/02/26
944
2,533
<issue_start>username_0: I'm in trouble with a JSON object in JS. I would like to retrieve an array of value for each string, for all objects in a data collection. for instance, I have ``` mystuff = [{"item1":"12", "item2":"25", "item3":"16"}, {"item1":"14", "item2":"21", "item3":"18"}, {"item1":"13", "item2":"22", ...
2018/02/26
573
1,810
<issue_start>username_0: I need to transpose some strings concatenated in one column in a Dataflow but I don't find a suitable solution. I have millions rows like this : ``` Col1 Col2 Col3 1 MyVal1 String1 1 MyVal1 String2 2 MyVal2 String2 2 MyVal2 String1 2 MyVal2 String3 3 MyVal3 String3 3 ...
2018/02/26
1,080
3,052
<issue_start>username_0: Trying to get both blocks of code to run with one job. How would I be able to get the procedure to compile and then run ? Probably a dumb question but I couldn't find a answer on google. My code is below... ``` CREATE OR REPLACE PROCEDURE insertXMLDataTransfer( vROW_ID in xml_hours_load_2.ROW...
2018/02/26
1,128
4,180
<issue_start>username_0: I have `Menu` model which has ForeignKey named parent related with itself. If parent is None it means this menu is parent menu if it shows another Menu object it means it is submenu for its parent(many-to-one relation) Here is my problem, I want to get all menus with its submenus using `prefe...
2018/02/26
593
1,715
<issue_start>username_0: What I am wanting is to print out each of these methods out, not add their values together. I assume this is why I got an error trying to put boolean values in the first System.out statement. Do I have to give each one it's own System.out.println statement? ``` public class Main { public stat...
2018/02/26
2,008
5,535
<issue_start>username_0: I've been able to create a 4 images slider by using jQuery Slick. This is my code: ```js $(function(){ $('.slider').slick({ infinite: false, speed: 500, slidesToShow: 4, slidesToScroll: 4 }); }); ``` ```css /* Default CSS for Slick library */ .slick-sli...
2018/02/26
628
1,684
<issue_start>username_0: Let say that there is this matrix: ``` myArray = [["a", 6, 5.54, "b"], ["xxx", 65.5, 45], [343, "abc", 0.09]]; ``` My goal is to compute the sum of each sub-array but ignoring the last sub-array, it this case `[343, "abc", 0.09]`. Also, ignoring the string values. I ma...
2018/02/26
563
2,408
<issue_start>username_0: Is it possible to change the rendered output of a ScriptBundle in ASP.NET MVC? When configuring the bundles with `EnableOptimizations = false`, the output for each script included in the bundle is something like this: ``` ``` I would like to change this "template" based on the ScriptBundle (...
2018/02/26
425
1,522
<issue_start>username_0: I want to call 1 precise function in another function from another function ``` def exemple(): def dostuff1(): print('Stuff 1') def dostuff2(): print('Stuff 2') def dostuff3(): print('Stuff 3') def training(): #want to call ONLY Dostuff2...
2018/02/26
3,238
11,579
<issue_start>username_0: Like the title says, I'm trying to write a custom decoder for an object whose class I've defined which contains other objects whose class I've defined. The "outer" class is an Edge, defined like so: ``` class Edge: def __init__(self, actor, movie): self.actor = actor self.m...
2018/02/26
858
3,247
<issue_start>username_0: Hello guys I am stuck on something I have to get the values of the whole row of data table, as far I am getting id but not getting whole row object this is where I am ``` var table = $('.dtPrimaryBottom').DataTable({ // dom: "Bfrtip", "lengthMenu": [[6], [7]], paging: true, ...
2018/02/26
653
2,642
<issue_start>username_0: We are building a custom application (using [LoopBack](http://loopback.io/ "LoopBack")) that will need to store many large files coming from multiple users, so naturally we're looking at S3. We've done something similar before, with clients uploading files to the server which then processes and...
2018/02/26
1,034
2,939
<issue_start>username_0: Could someone explains me why PHP DateTime constructor ignore microseconds when using a local with coma as decimal separator? ``` $date = new \DateTime('2017-07-29T13:57:27.123456Z'); echo $date->format('Y-m-d H:i:s.u e'); echo "\n"; setlocale(LC_ALL, 'fr'); // or any locale with coma as deci...
2018/02/26
1,244
3,311
<issue_start>username_0: im creating an multiplication table system in PHP. The input tho this system is an table number and the amount of questions. The table 1 is skipped so 2 to input table At this point I just fill an array like this: ``` $nCount = $_POST['count']; $nHighest = $_POST['table']; $aSums = []; $n...
2018/02/26
366
1,238
<issue_start>username_0: We have a number of domains (e.g., `domain1`, `domain2`) across a number of top-level domains (e.g., `tld1`, `tld2`) all of which, including their subdomains, currently redirect to `domain1.tld1` with the following rule: ```xml ``` However we would now like to retain the top-level domains wh...
2018/02/26
295
1,176
<issue_start>username_0: I know Wildfly can't do hot deployment, but its able to do (at least) auto deployment. I'm using `Eclipse`, and `Maven`. I'd like that when I `Run` (or `Debug`) the project, it will compile the whole, copy the target `.war` to `standalone\deployments`'s wildfly folder, and than Wildfly must b...
2018/02/26
785
3,259
<issue_start>username_0: My question is about the delay between calling the present method in DirectX9 and the update appearing on the screen. On a Windows system, I have a window opened using DirectX9 and update it in a simple way (change the color of the entire window, then call the IDirect3DSwapChain9's present met...
2018/02/26
960
3,225
<issue_start>username_0: This is my setup. * I have WordPress installed on domain root folder mydomain.com * I have my nodejs server listening to port 3000 and installed in mydomain.com/server/ folder * I do not have access to use virtualhosts or change apache config Here is my .htaccess: ``` RewriteEngine On Rewri...
2018/02/26
554
1,906
<issue_start>username_0: I usually use the following when setting up a checkbox: ``` Lorem ipsum ``` I use the standard method of styling label::before to simulate a style for my checkbox depending on whether the checkbox has been checked or not: ``` input label{....} input::checked label{....} ``` However, a Wo...
2018/02/26
614
2,007
<issue_start>username_0: So I was making a page, and I created a new div. I set both the height and the width of the div to a 100px each, and put the background blue, just so I can see the div while I position it. As you can see, that's the only code for that div ```css .portfoliobox { width: 100px; height: 100p...
2018/02/26
458
1,746
<issue_start>username_0: When I would login into a postgresql database in pgAdmin3 and when I expand a schema I would see a tab for functions. When you click on the functions and select a function you can see the function's code.In pgAdmin 4 I don't see the tab for functions under schema. How can I see the function cod...
2018/02/26
773
2,693
<issue_start>username_0: I am given the *hex number 0x04030201*, stored in the middle of an array filled with zeroes. My code has to determine the size of this number in **bits**. I am required to implement this in 2 different ways. My first way was to use the `sizeof()` function like this: ``` #include #include ...
2018/02/26
650
1,600
<issue_start>username_0: This what I have: ``` f=5.20 y=168.9850 dat=c("dat.txt","dat_5.20.txt","data_5.20_168.9850.txt") Filter(function(x) grepl(f, x), dat) # [1] "dat_5.20.txt" "data_5.20_168.9850.txt" ``` I need to grep only the one obtained `f and y` How to use both f and y in grepl? The desired res...
2018/02/26
232
723
<issue_start>username_0: I have a text with special characters and want to print title text out in Ionic 2 Framework. ``` {{ title }} ``` Current string: ``` Expert Q&A ``` Expected result: ``` Expert Q&A ``` However, the result keeps the same version which is ``` Expert Q&A ``` I tried to use **unesc...
2018/02/26
612
2,152
<issue_start>username_0: I got a list of quotes I am trying to update every 24hrs, based on the calender. This is what I tried so far, but I am getting error **Cannot convert value of type 'Date?' to expected argument type 'TimeInterval' (aka 'Double')** ``` let numberOfQuotes = 3 let quotes = ["quote 1", "quote 2", ...
2018/02/26
1,610
6,427
<issue_start>username_0: Can anyone explain why I get the following errors, and what can be a possible solution for them? > > Running in Durability level: MAX\_SURVIVABILITY > org.codehaus.groovy.control.MultipleCompilationErrorsException: > startup failed: WorkflowScript: 43: Expected a step @ line 43, column > 1...
2018/02/26
1,162
3,781
<issue_start>username_0: I want to read books - their title, author and price from a txt file. `The 3 properties of the book are separated by '|' - Title|Author|Book.` However, I do not know exactly how to do this. I have the structure Book, with 3 elements. I want, for each line to read the book title, author and pric...
2018/02/26
1,188
3,839
<issue_start>username_0: I have a large text file which have values separated by a header starting with "#". If the condition matches the one in the header I would like to read the file until the next header "#" and SKIP rest of the file. To test that I'm trying to read the following text file named as test234.txt: ...
2018/02/26
430
1,560
<issue_start>username_0: I have the following HTML: ```html <NAME> #### Semana 9 26-febrero al 02-marzo *9* Sin enviar a revisión Este reporte no ha sido enviado a revisión ``` The outer div is a clickable div, and I am trying to make the inner button clickable too. But when I click the button it trig...
2018/02/26
253
1,041
<issue_start>username_0: I have a small static site hosted on s3, served through cloudfront. I've been trying to reduce the costs but now I'm at a point that I really just need to know which files are getting downloaded the most. How can I figure that out? Thanks.<issue_comment>username_1: You can enable analytics fo...
2018/02/26
1,197
4,097
<issue_start>username_0: I have a string and an array of phrases. ``` input_string = 'alice is a character from a fairy tale that lived in a wonder land. A character about whome no one knows much about' phrases_to_remove = ['wonderland', 'character', 'no one'] ``` Now what I want to do is, remove the last occurrenc...
2018/02/26
1,732
5,004
<issue_start>username_0: [Scastie version](https://scastie.scala-lang.org/Sciss/gTx4dm1ZQd6LA40zdqAtKQ) With this infra-structure: ``` trait Pat[A] object Pat { def apply[A](elems: A*): Pat[A] = ??? } implicit class PatOps[A](p: Pat[A]) { def ++ (that: Pat[A]): Pat[A] = ??? def bubble: Pat[Pat[A]] = ??? de...
2018/02/26
534
1,640
<issue_start>username_0: Using this [StackOverflow Question/Answer](https://stackoverflow.com/questions/41391862/how-to-access-php-session-variable-in-javascript), I have a Tooltip Javascript that is supposed to use a PHP echo of a session variable. Instead of actually writing out the value, it is writing out the varia...
2018/02/26
614
2,237
<issue_start>username_0: I want to install tools like NAGIOS inside an Azure virtual machine once it is provisioned. I want to use "Azure Custom Script" to install the tools. Below is the code that I am using. **Powershell script that is being sent as custom script:** ``` new-item "C:\newfile.txt" -Type file copy-it...
2018/02/26
1,086
4,039
<issue_start>username_0: In Visual Studio Code, is there any command currently to move the selected text to the left or right? I'm not talking about indentation btw.<issue_comment>username_1: ### Moving blocks of text A workaround for moving a block of text of just one space is to use the "column selection" feature o...
2018/02/26
909
2,587
<issue_start>username_0: I have the following: ``` item0 = [{'itemCode': 'AZ001', 'price': 15.52}, {'itemCode': 'AB01', 'price': 31.2}, {'itemCode': 'AP01', 'price': 1.2}] item1 = [{'itemCode': 'BZ001', 'price': 12.55}, {'itemCode': 'BB01', 'price': 34.1}] ``` In django template I would like to display the price of ...
2018/02/26
1,038
3,136
<issue_start>username_0: I am fresh to VBA. Therefore have difficulties of getting some essential things out of code. I have a macros written for two strings. The first string is a string with values I am validating, and the second string, following the first one, is full with validation messages. What I need to do is...
2018/02/26
382
1,327
<issue_start>username_0: I would like to create an **empty** formarray so i will be able to push elements later. i know that i can do something like this using "criterias.controls.length = 0;" after declaring the FormArray but i'm looking for a way to create the formArray with 0 length in the as part of the declaratio...
2018/02/26
1,005
3,365
<issue_start>username_0: TypeError: Object prototype may only be an Object or null: undefined I got some error in my project. I'm using vuejs, typescript and jest. It's just simple code and I tried to unit test with jest, but It have some error. Here is my test code. ``` /// // https://vue-test-utils.vuejs.org/kr/...