date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/25
1,231
3,839
<issue_start>username_0: I just started exploring time-series. I have such df ``` Volume Year Month 718394219 2013 01 763723622 2014 01 762225057 2015 01 787479774 2016 01 845614054 2017 01 ``` I want to predict the Volume for 2018. The accuracy of the forecast don't need to be high, as...
2018/02/25
774
2,146
<issue_start>username_0: I have this regex: ``` (?:(?:AND\sNOT|AND|OR)(?!.*(?:AND\sNOT|AND|OR))\s)(.*) ``` What I want is to get the last key:value pair, example - ``` k:v AND k1:v1 AND NOT k2:v2 OR k3:v3 ``` I want the regex to match k3:v3, and it does, but it doesn't match the key:value in the next situation - ...
2018/02/25
1,055
3,207
<issue_start>username_0: I am working on the dataframe created by JSON and then I want to apply the filter condition over the dataframe. ``` val jsonStr = """{ "metadata": [{ "key": 84896, "value": 54 },{ "key": 1234, "value": 12 }]}""" val rdd = sc.parallelize(Seq(jsonStr)) val df = sqlContext.read.json(rdd) ``` sc...
2018/02/25
10,247
34,562
<issue_start>username_0: I am trying to achieve print preview like view on web. I have to show a visual preview of how final print will look like. I have achieved something similar to this [demo](https://jsfiddle.net/tk8rwnav/31/). ```js var max_pages = 100; var page_count = 0; function snipMe() { page_count++;...
2018/02/25
533
2,219
<issue_start>username_0: I have an asp.net application which allows users to log in and saves appointments for different time slots. It is a multi-user application and multiple users can log in at the same time and book appointments. I have a stored procedure which inserts the appointment slots data into the database...
2018/02/25
951
2,919
<issue_start>username_0: I'm currently working with Automate the boring stuff with Python and I'm dealing with project where I must display data from tableData in changed order and then justify each element to the right based on length of longest element in each list so it will display something like this: ``` jabłka ...
2018/02/25
669
2,068
<issue_start>username_0: I'm building a table. A couple of the columns require a a progress bar, with a label column on each side. I'm generating this as a component with React, which results in the following HTML: ``` Current 3.2 Day 120 4.6 ``` The progress bar does not render, either in my app or in Codepen...
2018/02/25
1,127
2,855
<issue_start>username_0: I am struggling for hours now to set a fixed IP (sometimes works depending on yaml syntax), the MAC address and the name of my network card. The yaml file as it stands below, does nothing on reboot. Please can someone advise on how to achieve these 3 things. (Yes, I have googled and am now "bl...
2018/02/25
1,589
5,930
<issue_start>username_0: I like to explore the limitations of JavaScript, and wondered if you could use arrow functions where the last expression would be the return statement. Luckily this is possible, but setting variables in the same scope has some downsides. ``` [1,2,3,4,5].reduce((sum, element) => (const doubleS...
2018/02/25
1,435
5,285
<issue_start>username_0: I have 2 functions in c that I would like to see what they would look like in mips and this is because I need some examples to study and use for reference because I am a beginner in mips. I am also using qtspim. **Recursive function**: ``` int my_fib(int n){ if (n==0) return 2; ...
2018/02/25
489
1,592
<issue_start>username_0: Is there a way to declare an array with 60 values like this (few specific values, the rest will be calculated later on): ``` long[] l = { 1, 2, new long[58] }; ``` instead of having to waste 2 lines for something like this: ``` long[] l = new long[60]; l[0] = 1; l[1] = 2; ```<issue_comment...
2018/02/25
977
3,562
<issue_start>username_0: While working with nested JSON in Spark SQL, can JSON path be used to extract data from JSON? Ex: ``` { "store": { "book": [ { "category": "reference", "author": "<NAME>", "title": "Sayings of the Century", ...
2018/02/25
879
3,185
<issue_start>username_0: I have a project structured like this: ``` . └── myapp    ├── app.py    ├── models    │   ├── hello.py    │   └── world.py    └── requirements.txt ``` I have two models, `hello` and `world`. Both models are used from `app.py` where I import them like this: ``` from models.hello import ...
2018/02/25
1,780
7,550
<issue_start>username_0: I was following [this tutorial](https://www.codeproject.com/Articles/28678/Generating-Unique-Key-Finger-Print-for-a-Computer) to generate a unique hardware ID for system. The problem is that the ID generated is different when internet is connected, and different when internet is disconnected. ...
2018/02/25
844
3,174
<issue_start>username_0: I have the definition of "dual-energy gradient" ([Reference](http://www.cs.princeton.edu/courses/archive/spring13/cos226/assignments/seamCarving.html)) of pixel `(x, y)` is `Δ^2(x, y) + Δy^2(x, y)`, where the square of the x-gradient `Δx^2(x, y) = Rx(x, y)^2 + Gx(x, y)^2 + Bx(x, y)^2` and where...
2018/02/25
545
2,343
<issue_start>username_0: Were developing a large chat app using mysql db, conversations happen between only 2 people at any one time. Looking for opinions as to which db schema options would perform better. Option 1. A traditional approach to insert one row per message/ response. Simply inserting in a db which no ...
2018/02/25
901
2,703
<issue_start>username_0: My DataFrame: ``` from random import random, randint from pandas import DataFrame t = DataFrame({"metasearch":["A","B","A","B","A","B","A","B"], "market":["A","B","A","B","A","B","A","B"], "bid":[random() for i in range(8)], "clicks": [...
2018/02/25
1,375
4,144
<issue_start>username_0: I have a 3d numpy array build like this: ``` a = np.ones((3,3,3)) ``` And I would like to broadcast values on all dimensions starting from a certain point with given coordinates, but the number of dimensions may vary. For example if i'm given the coordinates `(1,1,1)` I can do these 3 funct...
2018/02/25
1,242
4,323
<issue_start>username_0: In a react application, we design a custom dragging function. While working on Firefox and Chrome, it does not work on Safari. Immediately after the dragstart event, the dragend event fires, ondrag never fires. Dragstart looks like the code below. We need to show no drag image in this case. `...
2018/02/25
1,253
4,312
<issue_start>username_0: I am working in angular2 vs typescript. In my app.component.ts file i have to load the script files on demand based current navigator language. So i have added my function like below(home.component.ts), ``` export class HomeComponent { constructor() { this.loadDynmicallyScript(); } pu...
2018/02/25
961
3,088
<issue_start>username_0: I am having trouble returning only on value from a dictionary using a loop. I can't figure out how not to return unwanted values from a dictionary. My dictionary is below. I want the user to input a book title and my code will return the corresponding ISBN. ``` library = {1234567891234: [4,'...
2018/02/25
1,919
8,038
<issue_start>username_0: I have a class called Person, with 2 properties Age and Name I am trying to group the people into 3 different age groups. I want my end result to be something like this: ``` YoungGroup (<20 y old): Person1Name, Age Person4Name, Age Person3Name, Age AdultGroup (20> y <40 old): ...
2018/02/25
1,954
7,340
<issue_start>username_0: I want to find strings that has data from the strings from the array 2 in the array1 and save result as separate uniq array. As can you see I search for not exact values. From the `array1` values I know only part of the information, and I want to find the complete strings, with that informatio...
2018/02/25
628
2,351
<issue_start>username_0: I'm still trying to make the invokescriptasync work. I'm trying the following test on facebook.com and it fails with a HRESULT: 0x80020101' which normally means the script has an error in it, but I tried running the simple javascript in Chrome and IE without any problem. ``` private async void...
2018/02/25
472
1,916
<issue_start>username_0: I've installed tensorflow CPU version. I'm using Windows 10 and I have AMD Radeon 8600M as my GPU. Can I install GPU version of tensorflow now? Will there be any problem? If not, where can I get instructions to install GPU version?<issue_comment>username_1: It depends on your graphic card, it h...
2018/02/25
1,614
5,218
<issue_start>username_0: When I try to edit a "Metier", a new "Metier" is created and the old one stays the same. I want to crush the old "Metier" and create a new one just by editing. Here is my code in relation with the edit function. **Controller** ``` public function edit($id) { $metier=Metier::find($id); return...
2018/02/25
1,291
4,316
<issue_start>username_0: I want to pass javascript variables (without form) to php, so php can write them in a textfile on the server-side. For this, I'm using this jQuery line: ``` $.post( "http://localhost/main.php", data); ``` Here is the php: ``` $data = $_POST['data']; echo $data; $file = "test.txt" $handle =...
2018/02/25
273
920
<issue_start>username_0: I locked myself out of my GoCD server, can't login and want to manually edit Config XML, which is supposed to be in `cruise-config.xml` file, as far as I can tell from the [documentation](https://docs.gocd.org/current/installation/configuring_server_details.html#artifact-repository-configuratio...
2018/02/25
956
3,637
<issue_start>username_0: I had trained network `N` first and saved it with the saver into checkpoint `Checkpoint_N`. There were some variable scopes defined within `N`. Now, I want to build a siamese network using this **trained** network `N` as below: ``` with tf.variable_scope('siameseN',reuse=False) as scope: ne...
2018/02/25
1,293
4,765
<issue_start>username_0: I'm learning about CPU cache and now I still have misunderstanding of cache coherence protocol (MESI). Imagine that we have 2 cores have a cache line in a shared state. And one of them performs read, another one performs write: ``` ;mem is cached in Shared state Thread 1 (core 1) Th...
2018/02/25
618
1,900
<issue_start>username_0: I've got a very simple code here: ``` char A[9]; for (int i = 0; i < 9; i++){ scanf("%c\n", &A[i]); } for (int i = 0; i < 9; i++){ printf("%c ", A[i]); if (i == 2 || i == 5 || i == 8){ printf("\n"); } } ``` It is supposed to create a 1x9 array, then read 9 letters fr...
2018/02/25
5,292
14,818
<issue_start>username_0: When I run my App with xCode all loads and runs fine. When I load in Instruments and press record using a profiling template of Activity Monitor or Allocations it loads and runs fine. However if I use Zombies or Leaks the app crashes instantly. I dont even get to see it. I then access the crash...
2018/02/25
498
1,551
<issue_start>username_0: I have declared a `SKSpriteNode`, with a pillar image. The image is 3000 x 50 and I have declared it like this: ``` var pairs = SKNode() let pillar = SKSpriteNode(imageNamed: "pillar") pillar.setScale(0.5) pillar.physicsBody = SKPhysicsBody(rectangleOf: pillar.size) pillar.physicsBody?.isDyna...
2018/02/25
538
2,220
<issue_start>username_0: How can you verify that after, for example, UserService object called save(User entity) (CrudRepository implementation) method in UserRepository object (annotated with @Repository("userRepository")), that object was indeed saved and there were no issues. Almost all the tutorials simply tend to...
2018/02/25
985
3,455
<issue_start>username_0: So,basically what i want to do is send multiple get requests from the client to the web server all at once.My objective is to load test the server so it is important that all the requests are sent simultaneously. I have read about GIL so and it seems that multithreading would not be possible in...
2018/02/25
750
2,896
<issue_start>username_0: I have a table in DB2 with column type CLOB, I would like to convert this to a BLOB type. My approach here is to create a new column with BLOB type, copy all the data from CLOB column to BLOB column, drop the CLOB column and rename the BLOB column. However, I am not sure how to do the second st...
2018/02/25
1,132
3,591
<issue_start>username_0: I have the following class, a Point object ``` class Point: def __init__(self): pass def __init__(self, x, y): self.x = x self.y = y ``` And I have a server (Uses UDP) ``` # Server side import socket import pickle host = "localhost" port = 10000 s = socket...
2018/02/25
1,858
5,381
<issue_start>username_0: I am trying to merge two multidimensional arrays in following way (example arrays are only examples, real ones are very long and have thousands of items): $array\_a: ``` [0] => Array ( [date] => 2018-02-25 15:12 [request] => 0 ) [1] => Array ( [date] => 201...
2018/02/25
1,194
3,718
<issue_start>username_0: I am trying to record in an array the user' inputs Yet it is saying me : ``` line 5, characters 0-3: Error: Syntax error ``` I don't understand why, because the syntax of the `for` seems ok So here is the code : ``` let n = read_int() let ar_of_int = Array.make n 0 for i = 0 to n - 1 do...
2018/02/25
1,459
4,946
<issue_start>username_0: I need help creating the code to find the factorial of a number. The task is to 1. Create a variable to store your answer and initialize it to one 2. Create a loop that beings at the given value, fact 3. Check if fact is one or zero 4. multiply fact with your answer variable 5. At the end of t...
2018/02/25
1,776
5,341
<issue_start>username_0: I want to use the `contains` function to get all values whose `title` or `question` contains a certain value. However, I get this error: > > java.sql.SQLException: Geometry byte string must be little endian. > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074) > at com.mysql....
2018/02/25
1,554
4,889
<issue_start>username_0: I wrote a very simple to get program, to refresh my skills on LinkedLists in case I need them. Now, I stumbled on behaviour I did not expect. When I reach the end/beginning of my list and go forward/Backward, the same Element is displayed twice. Here is how I thought it would work: ``` List =...
2018/02/25
1,649
6,721
<issue_start>username_0: In my app I have single activity and and all other fragments I am setting background for activity from style.xml as below ``` @color/very\_light\_gray ``` Now for only a perticular Fragment I want to set background transparent and I am not able to do that tried below code in Fragment did no...
2018/02/25
421
1,453
<issue_start>username_0: I have created a database named `database.db` When I create a table in the database I get the error:`Error: file is not a database` ``` nehal@nehal-Inspiron-5559:~/Desktop/UAV$ sqlite3 database.db SQLite version 3.20.1 2017-08-24 16:21:36 Enter ".help" for usage hints. sqlite> CREATE TABL...
2018/02/25
309
1,193
<issue_start>username_0: When we are initializing objects intellisense suggests us autocompleting with `()`. Is there any way to autocomplete with `{}` rather than `()` in any kind of editor(Visual Studio or Rider)?<issue_comment>username_1: Create database without the `.db` extension. for e.g. `sqlite3 users //this c...
2018/02/25
414
1,550
<issue_start>username_0: I need to get the last Id from my table so i can use it in another function i created this function on my repository but i didn't work it show me an error: > > [Syntax Error] line 0, col 60: Error: Expected end of string, got > 'LIMIT' > > > the function i'am using : ``` publ...
2018/02/25
995
3,338
<issue_start>username_0: So, I have this code for Android: ``` parkingList.removeIf { parking-> parking.city != pr.city } parkingList.removeIf { parking-> parking.price.toDouble() <= pr.priceFrom } parkingList.removeIf { parking-> parking.price.toDouble() >= pr.priceTo } parkingList.removeIf { parking-> parking.daysBu...
2018/02/25
501
1,763
<issue_start>username_0: I had a user submit a form, and some of the fields were dropdowns like so ``` Type Apartment House Studio Flat @if ($errors->has('type')) **{{ $errors->first('type') }}** @endif ``` That works just fine. I'm no trying to allow users to edit a particular form. I can get other s...
2018/02/25
1,451
6,024
<issue_start>username_0: I want to download a file to my local storage, everything was working untill I added another class and bundled both together in an IFormattable interface. What I want to do is to first check wether I allready have the file on my memory and if not, download it. In either case I bind it to an im...
2018/02/25
170
696
<issue_start>username_0: I develop a mobile app and release it. After a while I add Firebase to it without any other changes and sign apk with previous sign key. But if previous apk is installed on Android phone installing update apk cause "The package appears to be corrupt." error. What is wrong ? How to find reason...
2018/02/25
1,148
4,904
<issue_start>username_0: I am trying to compare two different versions of an ontology by using java. OntModels are populated as "RDF/XML-ABBREV". But my results are not same as expected. I am checking if both models are isomorphic and the result is true. But when I iterate through the models it gives me results that th...
2018/02/25
2,751
8,836
<issue_start>username_0: I am integrating Active Admin into a Ruby on Rails app. I registered all my models and already set up `index`, `filter` and `show` for all the models. Everything is working, but for one model the `admin/show` page is not running. When calling the show page from the `admin/index` page, I get: ...
2018/02/25
514
1,675
<issue_start>username_0: I have a domain and entity class the looks like this: ``` public class DomainUser { public string Username {get;set;} public IList PhoneNumbers {get;set;} } public class EntityUser { public string Name {get;set;} public IList PhoneNumbers {get;set;} } public class Phone { public in...
2018/02/25
296
1,053
<issue_start>username_0: I'm using TeXstudio to edit my \*.tex files. Is there any way to add vim shortcuts to TeXstudio?<issue_comment>username_1: According to the [issue](https://sourceforge.net/p/texstudio/feature-requests/540/) on their Sourceforge tracker and an [issue](https://github.com/texstudio-org/texstudio/i...
2018/02/25
472
1,748
<issue_start>username_0: Before submitting my form, I wan't to check if inserted dates are available. I have a php script which can perform this check and I want to call this php script via jquery/ajax. I believe I should use `event.preventDefault();` to avoid that the form is submitted. However I somehow cannot comb...
2018/02/25
695
2,388
<issue_start>username_0: Can anybody please tell how to declare a cursor name dynamically (fixed name + unique name) in SQL Server? This is to prevent the error > > 02-25-2018 10:12:01 ERROR (AdHocReportserviceImpl.java:882) : org.springframework.jdbc.UncategorizedSQLException: CallableStatementCallback; uncategori...
2018/02/25
900
3,502
<issue_start>username_0: This code comes from [Oracle tutorial](https://docs.oracle.com/javase/tutorial/essential/concurrency/deadlock.html) about concurrency. I don't understand why synchronizing methods leads to `deadlock`. When methods are not `synchronized` everything works fine, but when I add `synchronized` keywo...
2018/02/25
682
2,522
<issue_start>username_0: What I want is a function like this: ``` suspendCoroutineWithTimeout(timeout: Long, unit: TimeUnit, crossinline block: (Continuation) -> Unit) ``` That does basically the same thing as the existing [`suspendCoroutine`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines.experiment...
2018/02/25
1,486
5,295
<issue_start>username_0: I use this technique to crypt some field of my database: [How to use AES\_ENCRYPT and AES\_DECRYPT in mysql](https://stackoverflow.com/questions/16556375/how-to-use-aes-encrypt-and-aes-decrypt-in-mysql) It works very well but I am facing a problem. Now that the contents of the field are ...
2018/02/25
1,668
4,313
<issue_start>username_0: Given 3 int values, a b c, return their sum. However, if any of the values is a teen -- in the range 13-19 inclusive -- then that value counts as 0, except 15 and 16 do not count as a teens. Write a separate helper "def fix\_teen(n):"that takes in an int value and returns that value fixed for t...
2018/02/25
1,499
4,088
<issue_start>username_0: Is there a way to ignore the following map/flatmap's without `failed`? This is what I have: ``` def delete(serverId: UUID) = authAction.async { implicit request => val user = request.user.get serverService.findByIdAndUserId(serverId, user.id.get) .flatMap{s => if (s.is...
2018/02/25
994
2,728
<issue_start>username_0: <https://en.wikipedia.org/wiki/Unique_local_address> <https://www.rfc-editor.org/rfc/rfc4193#section-3.2.2> <http://www.sixxs.net/tools/grh/ula/list/> I have been looking for a local script to generate ULAs; there are many online generators (and a few bad/broken) ones; I wanted a local scrip...
2018/02/25
587
1,828
<issue_start>username_0: I have read threads where the convertion of an Integer to an int is a must, BUT I encountered this thing. My code was : ``` BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String numberOne = "12"; String numberTwo = "45"; Integer myint1 = Integer.valueOf(numberOne); ...
2018/02/25
467
1,305
<issue_start>username_0: Right now I am using numeric(4,3) data type to represent a percentage in decimal form (ex. 57.2% = .572). The problem is, when I save it's ALWAYS displaying these decimals with a digit to the left of the decimal separator. So in other words it is displaying as 0.572 when I want it to display as...
2018/02/25
1,615
4,526
<issue_start>username_0: The JSON: ``` [{"id":"1","user":"001","answer":"1,1,3,2,2,1,3,2"}, {"id":"2","user":"002","answer":"2,3,3,2,1,1,3,2"}, {"id":"3","user":"003","answer":"3,5,3,5,3,1,3,2"}] ``` The JavaScript: ``` jQuery.ajax({ url: "file.json", type: "POST", dataType: "json", async: false, ...
2018/02/25
1,568
5,572
<issue_start>username_0: I wrote a script in Python 3.6 initially using a `for loop` which called an API, then putting all results into a `pandas` dataframe and writing them to a SQL database. (approximately 9,000 calls are made to that API every time the script runs). Realising the calls inside the `for loop` were pr...
2018/02/25
328
1,158
<issue_start>username_0: So i created a input using document.createElement but i just cant seem to get my mind around changing the color of the text of the placeholder i made for it!? How do i do this? ive already tried doing element.placeholder.style.color element::placeholder.style.color and more!<issue_comment>usern...
2018/02/25
1,058
2,744
<issue_start>username_0: I have this list of chars in Scala: ``` val a = "(i am(a? list) of(/ chars in )Scala)".toList ``` I want to find the position of the first ')' and eliminate it from the list. How can I do that? What I did (but did not work): ``` val position = a.tail.indexOf(')') a.drop(position) ``` a...
2018/02/25
1,115
4,069
<issue_start>username_0: I am new to android development, in fact its my first application. I have created a dynamic layout in my project based on Json. Each object includes an "id" key and some more string keys. every object in my json should be transformed to a cardview inside a recylcerview and each cardview has a b...
2018/02/25
751
2,537
<issue_start>username_0: I have a question why is this not writing to console the numbers 2,4,6? what is the explanation? ``` Observable.range(1, 6) .groupBy(n => n % 2 === 0) .concatMap(obs => obs) .subscribe((n) => console.log(n), null, () => console.log('complete concatMap')) // this is the output 1 - 3 - 5 ...
2018/02/25
2,106
7,566
<issue_start>username_0: My Jest test is failing because of the timestamp in the key being different every time the test is run: ``` FAIL ./App.test.js ✕ renders without crashing (72ms) ● renders without crashing expect(value).toMatchSnapshot() Received value does not match stored snapshot 1. - Snapshot + Re...
2018/02/25
523
1,615
<issue_start>username_0: I need list of those employees who are absent one day before and one day after weekend in a week......like if some is absent in Friday and present on Monday should not be included in the list [![enter image description here](https://i.stack.imgur.com/Yk4qt.png)](https://i.stack.imgur.com/Yk4qt...
2018/02/25
473
1,452
<issue_start>username_0: Is there a way to remove an item of a system form, like a matrix, programmatically in SAP Business One? Or can I make a matrix invisible?<issue_comment>username_1: Use datepart(weekday, ) to fetch all records relative to monday and friday. Have a look at [SET DATEFIRST](https://learn.microsoft...
2018/02/25
492
1,891
<issue_start>username_0: I updated my project to Symfony4. When I go to some page with a form I have this error appearing : ``` Unable to find template "StarRatingBundle::rating.html.twig" (looked into: /templates, /templates, \vendor\symfony\twig-bridge/Resources/views/Form). ``` I use `blackknight467/star-ratin...
2018/02/25
2,730
7,201
<issue_start>username_0: I was trying DMA in stm32f103rc. I followed this tutorial <https://letanphuc.net/2014/06/how-to-use-stm32-dma/> and wrote my own code using CMSIS CORE. Here i m taking two arrays one 'sourceArr' where i am storing a random value and copying that array to 'destArr' with the help of DMA. **DMA R...
2018/02/25
1,715
4,472
<issue_start>username_0: I have an array of words. I would like to get the letter count to print next to each word. I get the words to print with a total of all letters to print at the end. Any guidance would be great. [enter image description here](https://i.stack.imgur.com/9y3Oi.png)<issue_comment>username_1: You sh...
2018/02/25
1,665
6,114
<issue_start>username_0: I am new to C++ but have many years in C#, so excuse me if you see C# style coding, I am trying to grasp the concept of pointers, dereference, handles, references, array parameters and I still have difficulties. The following is for an atmel microcontroller compiled with g++ 11 (arduino). I a...
2018/02/25
454
1,715
<issue_start>username_0: Is there a way to suppress/hide a section programmatically in Crystal Reports??? I need to suppress a section in Crystal Reports when the Change Text in one textbox Thanks<issue_comment>username_1: Add this below code in your code behind file > > > ``` > CrystalDecisions.CrystalReports...
2018/02/25
803
2,597
<issue_start>username_0: I'm new in lumen and i have done `composer clear-cache` then after `composer update` to install some package after configurating **composer.json** however i have got this error: ``` [Composer\Downloader\TransportException] The "http://packagist.org/p/p...
2018/02/25
745
2,529
<issue_start>username_0: I have 40 tables having different structure in one of DB on one server that is being updated by data provider. I want to create a SSIS package that would pull data from that data provider DB and insert ,update or delete (merge) data in to development ,Test,UAT and prod DBs. The tables are hav...
2018/02/25
660
2,228
<issue_start>username_0: I have this dictionary below ``` metric_app_mapper = \ {"appdynamics": { "avgresptime": ["average response time", "avgresptime", "avgrest", "art"], "callspermin": ["calls per minute", "callspermin", "calls/min"], "allapps": ["all apps", "all apps...
2018/02/25
758
2,623
<issue_start>username_0: ``` k = 0; while (k == 0){ printf ("enter a value between 0 - 80\n"); scanf ("%d", &coldest); if(coldest <= 80 && coldest >= 0){ k = 1; } else k = 0; } printf ("this number ---->%d<-----\n", coldest); ``` This i...
2018/02/25
702
2,629
<issue_start>username_0: I am trying to convert a files from doc to pdf on my aws linux server. On my previous machine it worked fine but now i am having issues on my new machine. The only difference is i have upgraded from PHP 7.0 to PHP 7.2. and libre office version LibreOffice 6.0.1.1 00m0(Build:1) I have tried g...
2018/02/25
631
2,525
<issue_start>username_0: It's kinda real-world problem and I believe the solution exists but couldn't find one. So We, have a Database called **`Transactions`** that contains tables such as `Positions`, `Securities`, `Bogies`, `Accounts`, `Commodities` and so on being updated continuously every second whenever a new t...
2018/02/25
239
946
<issue_start>username_0: My recyclerview's items are loaded dynamically. The bottom sheet UI is a small music player. I want to show the recyclerview above the music player UI. But currently, the music player UI is hiding the last elements of recyclerview. The music player's ui is hidden/shown dynamically. Can you plea...
2018/02/25
1,123
3,760
<issue_start>username_0: I'd like to assign a key combination to do the same as an existing standard binding. Specifically, for a [`tkinter.Listbox`](http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/listbox.html), make `Ctrl-A` select all ([same as `Ctrl-/`](https://www.tcl.tk/man/tcl8.4/TkCmd/listbox.htm#M60)) and a...
2018/02/25
837
3,108
<issue_start>username_0: I am sending a push token to a specific device via the [FCM API](https://fcm.googleapis.com/fcm/send) on testing with Postman, but I intend to send them from the server. ``` { "to" : "my_device_token", "notification" : { "notificationTitle" :"test from server", "notific...
2018/02/25
825
3,006
<issue_start>username_0: The internals of an add/remove set CRDT is monotonic, because we only ever add to the internal sets, so the internal state of the CRDT cannot ever go backwards in logical time. However, the observed state of the CRDT is that we're adding and removing elements, so the observed state doesn't ha...
2018/02/25
860
3,032
<issue_start>username_0: I am having a bit of trouble setting a layout in a SimpleForm control. Here is the XML code: ``` ``` I want the third field (Business Fax) to be displayed underneath the 'Business Phone' field. Instead, it displays as such: [![Phone form layout](https://i.stack.imgur.com/LmxBM.png)](https:/...
2018/02/25
844
3,273
<issue_start>username_0: My internet is only working for heavily cached sites. Reddit, Gmail, Facebook, etc. The odd thing is, sites like Reddit make queries to non-reddit sites to import the images and they pop up fine when viewing from there, but when I get sent to out.reddit.com and then if I go elsewhere to other n...
2018/02/25
1,633
4,960
<issue_start>username_0: I am using two break points in my CSS. * One for Iphones where no image should be seen Only the resume content can be seen. -- Working Fine. * Second, for desktops where the image is aligned to the left side of the resume content. This is where I am facing a problem The image in the left is n...
2018/02/25
1,012
3,274
<issue_start>username_0: I have an array with multiple objects. I'd like to split this array to multiple arrays. The criteria to split is the item `continent`. ``` MyArray = [{continent:"europe", fruit:"orange", value:2}, {continent:"asia", fruit:"banana", value:2}, {continent:"europe", fruit:"ap...
2018/02/25
378
1,195
<issue_start>username_0: How to get column number or value in wx.ListControl wxPython? I want to sort the item by column when I click it. I'm using BoaConstructor IDE. Please help me :)<issue_comment>username_1: Its been a while since I have used wxPython, but I some methods to obtain item data from a listctrl are: * ...
2018/02/25
569
1,890
<issue_start>username_0: I am receiving an error on Xcode when for my delete function for a single linked list in c and at this point im not sure why. The error im receiving is "malloc: **\* error for object 0x7ffeefbff5d8: pointer being freed was not allocated \*** set a breakpoint in malloc\_error\_break to debug" ...
2018/02/25
1,361
5,387
<issue_start>username_0: I am using validate.js from <http://validatejs.org/> on react native log in screen. ``` import React, { Component } from 'react'; import { View, Text, TextInput, TouchableOpacity } from 'react-native'; // Validate.js validates your values as an object import validate from 'valida...
2018/02/25
606
2,482
<issue_start>username_0: I have written the following code for a method which is supposed to remove all the occurrences of the given element in an array and shift the remaining elements forward t. I keep getting the compiler error "this method must return boolean type" even though I have returned booleans. I faced this...
2018/02/25
6,583
15,613
<issue_start>username_0: I am trying to deploy this: firestore.rules file: ``` service cloud.firestore { match /databases/{database}/documents { match /documents/{document} { // must be authenticated to view or create doc allow create, read: if request.auth != null; // must be your own doc to ...
2018/02/25
179
640
<issue_start>username_0: I have this two layouts: ```html Login ``` and the typescript: ```js public loginPanel: boolean; constructor() { } ngOnInit() { this.loginPanel = false; } showLoginPanel() { this.loginPanel = true; } ``` In fact, the first div disappear when i click on login. ...
2018/02/25
370
1,161
<issue_start>username_0: How can I replace all the `li` of a `ul` in JQuery, I don't want to add any new item to the list by using `append` rather I want a new list with new `li` elements in the same `ul`. I have tried ``` for (index = 0; index < users.length; ++index) { $('#users').replaceChild(users[index].UserName...
2018/02/25
771
2,676
<issue_start>username_0: I have a `pandas.DataFrame` that something looks like this: ```none Time(minutes) column2 column1 420 1 5 420 2 10 420 3 8 421 1 4 421 2 9 421 3 ...