title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Issue connecting to mysql database using hibernate.xml
<p>I am unable to connect to a mysql database using xml. I have no problem using an hibernate.properties file, but when i substitute it with an xml it doesn't work. The xml in <code>main/resources</code> is</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//...
3
1,690
Using OpenAPI to Receive Files in Multipart Messages
<p>I have an API I'm running on Flask/Connexion. The API is written in OpenAPI 3 for Swagger. I send data via multipart/form-data to the endpoint, and everything gets through <em>except</em> the uploaded file. I'll start by sharing my OpenAPI YAML file. For the file I referenced <a href="https://github.com/OAI/Open...
3
1,107
Can't use EWS UpdateItem operation from Outlook add-in
<p>I'm am trying to update a dictionary element in the <code>IPM.Configuration.OWA.UserOptions</code> message using an <code>UpdateItem</code> via an EWS (SOAP) request from an Outlook web add-in with <code>ReadWriteMailbox</code> permissions. However it is failing with the following error in the response: </p> <pre><...
3
3,809
Why DialogFragment will hide the keyboard for its EditText view when first navigated to it in Android?
<p>In one of my app's fragment, I need to show a DialogFragment with an EditText, however, when it is shown, the soft keyboard is gone. I need to touch the EditText so that the keyboard can be shown, even though it has the focus and I manually set the input method to be shown which should make it auto show up. <strong...
3
2,110
Manually written XSD and generated java classes lead to an UnmarshallException using JAXB
<p>I'm fairly new to JAVA and reading XML. I'm used to parsing XML using a XSD in C# .net. Investigating on this topic let me to using JAXB, but I can not get it to work. I wrote an unit test using a sample XML, but this produces an obscure exception (in my opinion).</p> <p>So we have a XSD which looks like this:</p> <...
3
10,022
How to update azure DevOps build definition source from azure repos to GitHub using rest api
<p>I am trying to change source from azure repos git to GitHub in azure DevOps build using rest api.</p> <p>This is the response I get for azure repos using azure Devops build definitions rest api - GET <a href="https://dev.azure.com/%7Borg_name%7D/%7Bproject_name%7D/_apis/build/definitions/%7BBuild_Id%7D?api-version=6...
3
2,275
button that on click goes to next container
<p>i need a help, i need an action that switches to a new container when the button is pressed, and I also want an animation on the transition</p> <p>this is what i have now</p> <p><a href="https://i.stack.imgur.com/N3VgV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N3VgV.png" alt="enter image des...
3
2,571
Transposing values in df?
<p>Imagine having the following df:</p> <pre><code>Document type Invoicenumber Invoicedate description quantity unit price line amount Invoice 123 28-08-2020 0 NaN 17-09-2020 test 1,5 5 20 0 NaN 16-0...
3
1,647
Radio button with additional text field javascript
<p>I have 3 radio buttons for: </p> <ul> <li>Allowance</li> <li>Tuition</li> <li>School</li> </ul> <p>If I click the Radio Button for Allowance, it will open the <code>ul</code> list .</p> <p>Now, the Radio Button for Allowance should be closed after clicking the Radio Button for Tuition</p> <p>When I click the Rad...
3
1,248
Source code lines number in stack trace for asp.net application in WinDbg
<p>I have dump of IIS <code>w3wp.exe</code> process and <code>inetpub</code> folder with dll's and pdb's of working asp.net application.</p> <p>When I execute command <code>!dumpstack</code> in WinDbg, there is no information about code line number, only offset near with function MD:</p> <pre><code>0:088&gt; !DumpSta...
3
1,160
Bootstrap navbar hamburger menu doesnt work
<p>I have this code where I try to make a hamburger bootstrap menu with black stripes, and white background. But I don't seem to quite get that done. And next to that my hamburger bootstrap menu does open on mobile format, but doesnt close again. I have surfed internet for solutions, but nothing works. The code: <a hre...
3
3,476
Tomcat-KeyCloak: FAIL -Deployed application at context path but context failed to start
<p>I'm trying to authenticate a Tomcat7 webapp (Server 1) using KeyCloak 4.0.0 (deployed on Server 2)</p> <p>I've followed the instructions listed <a href="https://www.keycloak.org/docs/3.3/securing_apps/topics/oidc/java/tomcat-adapter.html#_tomcat_adapter" rel="nofollow noreferrer">here</a>, but each time I try to de...
3
2,467
Using try-catch blocks for various exceptions (java)
<p>So I am trying to make a couple try-catch statements in my Postfix expression evaluator to catch exceptions that will come up from a input file. I just need help making those try-catch statements. </p> <p>So the current output is:</p> <pre><code>5 2 1 8 -4 2 -4 Exception in thread "main" java.util.EmptyStackExcept...
3
1,871
Tabs bar in header aligned to right. Support for all browsers issue
<p>I would like to get something like here <img src="https://i.stack.imgur.com/Aretc.png" alt="enter image description here"></p> <p>I coded it like this HTML:</p> <pre><code> &lt;header&gt; &lt;div id="logo"&gt; &lt;form id="login" action="/login" method="post"&gt; ...
3
2,049
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo [java]
<p>Good day, an error occurs when you start the app: </p> <blockquote> <p>03-09 16:51:36.537 24639-24639/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.webserver, PID: 24639 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.webserver/com.example.webserve...
3
4,163
Jquery - Slide Menu (HandMade)
<p>How are you people?, im doing a script for a slidemenu using ul/li(ul/li), the idea is to be using slideup/down without inner classes</p> <p>The trouble i have is when click in a link inside my ul (father) li (son) ul li a the son´s ul (ul li ul) get hide. The idea it´s just to make that if you click in the ul li ...
3
1,155
Javascript - Stuck in an if statement - Beginner Question
<p>I am trying to make a calculator, simply my problem is this:</p> <ol> <li>Page refreshes.</li> <li>User clicks on any number and the number gets added to the <code>First Number: nums_clicked</code> h1.</li> <li>If user clicks on an operator sign<code>(+ - *)</code>, the clicked boolean becomes <code>true</code>.</li...
3
1,594
Parametrize on() function jquery
<p>I have different user inputs. When one of them is changed I want to capture a change event only to its value. I'm trying to customize the code of an existing product. My goal is to pop up an error div when user input is wrong but my current code adds the error div under all inputs. This code works on all inputs but ...
3
1,334
python: complicated loop through list
<pre><code>import csv import collections def do_work(): (data,counter)=get_file('thefile.csv') b=samples_subset1(data,counter,'/pythonwork/samples_subset4.csv',500) medications_subset2(b,['HYDROCODONE','MORPHINE','OXYCODONE']) def get_file(start_file): with open(start_file,'rb') as f: data=list(csv.reader...
3
1,848
Error 1004: Unable to get the Search property of the WorksheetFunction class
<p>I am repeatedly getting error 1004: Unable to get the Search property of the WorksheetFunction class for the code below. Basically, I am trying to ascertain if each cell in a specified range contains a value that meets a criteria - if this criteria is met, then a category should be assigned to the value in another c...
3
1,225
How to style navbar for profile section
<p>I currently have an angular app that has a nav bar made up of a tags, now when the player logs in i have an <code>ngIf</code> for a my profile icon to show with dropdowns but I cant get it styled correctly, I just want sort of that spanner icon on the top right of the nav bar and when clicked it shows options. This ...
3
2,196
Reactive Kafka Receiver and paraller records processing flow
<p>I'm trying to process batches of records from Kafka, using reactor-kafka like this:</p> <pre><code> KafkaReceiver.create( kafkaProperties.createReceiverOptions&lt;String, String&gt;(String::class.java).subscription(listOf(&quot;test_topic1&quot;)) ) .receiveExactlyOnce(kafkaProducer.transactionMa...
3
2,800
trying to align a view vertically to the edit text inside the inputlayout [see image] the helper text shifts the alignment
<p>just look how the OTP button seems to not be aligned properly. how do I fix that?</p> <p><a href="https://i.stack.imgur.com/DRWsS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DRWsS.png" alt="issue image" /></a></p> <p>I'm using material UI's outlined textfeild which also has a helper text. That...
3
3,835
at user of type java.lang.String cannot be converted to JSONObject json response android
<p>the Response From Server is:</p> <pre><code>{"message":"Login successfull","error":false,"user":"{\"DISTRICT\":[{\"Id\":1,\"Name\":\"Abbottabad\"},{\"Id\":3,\"Name\":\"Bannu\"},{\"Id\":4,\"Name\":\"DI Khan\"},{\"Id\":5,\"Name\":\"Kohat\"},{\"Id\":6,\"Name\":\"Mardan\"},{\"Id\":7,\"Name\":\"Peshawar\"},{\"Id\":8,\"N...
3
2,698
I created the registration form localhost ta but it does not work on the real site
<p>I created a registration form on localhost and this form works on localhost and is fast. Am using php 5.6 on localhost and my site. but my site is running very slowly (.html pages are running pretty fast) and does not send the registration form information. I google it and found nothin. Sorry for the mistakes I mig...
3
1,706
How do I update a row of data in mysql using PHP?
<p>I'm attempting to create a form where the user can update their profile details but it just doesn't seem to work.</p> <p>I'm quite the beginner in server side programming so I'm piecing together code from different tutorials viz. from <a href="http://www.codingcage.com/2015/04/php-login-and-registration-script-with...
3
3,774
WPF ListView not rendering properly
<p>I have created a ListView control to display users who are connected to my application. It was working properly before I added the CellTemplates to the GridViewColumns. Now when I add an item to the list, it does not show up. However, if I close and reopen the list the item will appear. So it seems the item is being...
3
2,860
How to use the :last-child selector?
<p>I want to simply add a <code>border-bottom</code> to the last <code>.slab</code></p> <p>I tried a few things and I am unable to understand what is going on.</p> <p><strong>Case 1 - use <code>.wrapper:last-child</code></strong></p> <p>If I try this on <a href="http://codepen.io/anon/pen/WrGZEW" rel="nofollow">code...
3
1,154
Trouble Displaying Canvas in Basic HTML Canvas Game
<p>I am trying to create a basic HTML game using the Canvas element, but I am having trouble with it. Unfortunately, I don't know where the error is in my code, so I have posted the entirety of the document I'm working on below.</p> <p>My problem: The canvas is not displaying when I run the HTML document.</p> <p>This...
3
1,375
Rails - How to write a sum of two model attributes
<p>I'm trying to make an app with Rails 4.</p> <p>I have 3 models.</p> <pre><code>Project.rb ProjectInvitation.rb ProjectStudentEoi.rb </code></pre> <p>The associations are:</p> <pre><code>Project has may project_invitations Project has many project_student_eois ProjectInvitation belongs to project ProjectStudentE...
3
1,153
Ajax Mysql Query
<p>I am propably being a complete idiot and not seeing the big picture here. I am trying to write a little ajax thingie that would pull information from a database but i cant seem to get the thing going ... please tell me what i am doing wrong. </p> <p>I put the code together by following a couple of online tutorials ...
3
1,116
In Owin web application, how to protect static files using Cookie Authentication?
<p>What I'm trying to do is very simple, at least so it seemed at first.</p> <p>I need to protect static HTML files (and possibly other static resources) behind simple Cookie Authentication. Any request to these files from user agent without carrying authentication cookie should be rejected with return HTTP 401 status ...
3
2,461
Update android (homescreen) widget from php file
<p>I want to make a android widget that it will update from a php file. i found a lot of examples about widgets and a lot of examples of how to retrieve data from php to an activity but i didn't manage to do it. i need something like this example (<a href="http://www.vogella.com/tutorials/AndroidWidgets/article.html" r...
3
1,875
Lance-gg game socket.io failed to load resource on digital ocean
<p>My lance-gg game works on localhost, but now that I have tried to deploy on digital ocean the site seems to be hosting but I can't connect the socket.io. The error in the client browser is:</p> <p><code>[Error] Failed to load resource: The request timed out. (socket.io, line 0) http://144.126.196.39:3001/socket.io/?...
3
1,116
Using attached properties in Style Setter in WinUI 3
<p>I'm using WinUI 3 (1.1.3) in a desktop project with .NET 6. I'd like to be able to add an attached property to some of my Style Setters to set up Tracing. The idea is to use changes in the attached property to set up whatever type of Tracing I need for the specific property. Searching SO and the web gave me very lit...
3
1,771
How to pass data from MVC controller to javascript?
<p>I'm starter in programming, I have 2 project which is working like client-server via Rest API. I want to construct a column chart and all data a List of and ID(participant) and Votes(Total votes) is getting from server where is connection with database. My problem I have my data I get from the server in method contr...
3
2,197
Bootstrap4 - how to make cards within nested row stretch to match next row?
<p>Trying to wrap some cards into a rather complex layout. The elements on the right side, namely the cards.</p> <p>What I have so far <a href="https://jsfiddle.net/shifterofbits/ojgtmn80/5/" rel="nofollow noreferrer">https://jsfiddle.net/shifterofbits/ojgtmn80/5/</a></p> <p>In the screenshot mockup and fiddle, the "...
3
1,064
jQuery/Javascript - Sort Table Columns Based on Totals Row
<p>How can a sort be performed on table columns based on the sort of the last totals row?</p> <p>For example, with the following table structure the row titled "Total Sold %" would be used to sort the corresponding columns in value from high to low. Thus, the columns would shift left or right so that the "Total Sold %...
3
1,096
I have a table that looks like:
<p>I have a table that has </p> <pre><code> Material 90 89 88 87 ….2 1 0 123456 34 30 26 38 14 12 8 123457 47 42 33 54 38 27 42 </code></pre> <p>And I want to convert it to </p> <pre><code> Date 123456 123457 ...
3
1,130
Controls need to stay centered when resizing (responsive UI, JavaFX)
<p>I have this code</p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;?import com.jfoenix.controls.JFXButton?&gt; &lt;?import com.jfoenix.controls.JFXPasswordField?&gt; &lt;?import com.jfoenix.controls.JFXTextField?&gt; &lt;?import de.jensd.fx.glyphs.fontawesome.Fon...
3
3,104
Value from checkbox send by mail - PHP form
<p>I have this PHP code on my backend</p> <pre><code>if(!empty($_POST['model_list'])) { foreach($_POST['model_list'] as $model) { } } else { throw new Exception('Choose the model.'); } </code></pre> <p>When I receive the request from my front-end, the $_POST['model_...
3
1,130
Not all code paths return a value in case of a recursive algorithm
<p>I've just designed a recursive algorithm and implemented in C# encountering <code>not all code paths return a value</code> error. Here is the code:</p> <pre><code>public List&lt;List&lt;Event&gt;&gt; CollectPaths(IEnumerable&lt;string[]&gt; transitions, State q_r, State q_s, List&lt;State&gt; Q_T, ref List&lt;Event...
3
1,910
Chrome freeze when refreshing graph with sigma.js
<p>I can't understand what is going wrong, sometimes, when i try to render the graph by clicking the "Generate Random Graph" button, my browser CPU jumps to 17% and the browser freezes. </p> <p>This is the webpage: <a href="http://summarify.com/randomideagenerator/" rel="nofollow">http://summarify.com/randomideagenera...
3
4,489
How to specify Server side encryption with S3 pre signed urls?
<p>This is a S3 issue so I am posting this here and not in the Salesforce stackexchange. </p> <p>Basically my Salesforce code generates pre-signed urls for S3. These are consumed by the front end to upload and download files.</p> <p>This is working perfectly. Now we need to specify SSE (server side encryption). Base...
3
1,089
Reactjs is showing the blank page in IE 11
<p>React code is showing blank page in internet explorer,but working fine in chrome and safari. Tried adding:</p> <pre><code>import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable'; import 'babel-polyfill'; import "core-js/stable"; </code></pre> <p>in the index.js. </p> <p>Please find the attached scre...
3
1,442
Can't retrive data in view of an one to one polymorphic realation
<p>I have a books table and a image table and I also going to have a blog table in future. That's why I want to create a polymorphic relation between book,blog and image table. but my problem is when I tired to retrive data of book image url from the relationship in view <code>home.blade.php</code> with <code>@foreach...
3
3,543
Producing a report on the attendance and departure of employees
<p>I hope you can help me in producing a report on the attendance and departure of employees</p> <p>My code returns multiple rows per employee:</p> <pre><code> HRBakEntities db = new HRBakEntities(); var AttendanceReports = db.Employees .Join( /// Source Collection ...
3
1,902
Data Seed failed in hosted project in linux server. Asp .net core 2.1
<p>I hosted my project in ubunto 18.4 version server.All configurations done after it's not working,in the browser it shows 503 error.</p> <p>when I try to manually execute .dll file it show some errors.</p> <blockquote> <p>Could not resolve a service of type 'SocialApp.API.Data.Seed' for the parameter 'seeder' o...
3
9,354
laravel 5.2 pass id with onclick not working on delete()
<p>Why i can not passing data with id,when i execute the code just null on delete() I missed something help me :( This is my dataController</p> <pre><code>&lt;?php namespace App\Http\Controllers; use App\topic; //use model topic use Illuminate\Http\Request; use Yajra\Datatables\Datatables; //datatable use App\Http\R...
3
1,168
Calculator with one function
<p>This calculator should work by using one function(switch/case). Unfortunately i get compilation errors and I don`t understand why.</p> <pre><code>#include &lt;stdio.h&gt; float calculate(char optr, float opr1, float opr2) { switch(optr) { case '+': ergebnis = opr1+opr2; break; case '-': ergebnis = opr1-opr2; brea...
3
1,071
Spring-Kafka never hits Kafka listener
<p>I'm building a simple consumer and decided to migrate over to Springboot and the springkafka depenedency to make the process simple.</p> <p>The environment/config values are interpolated from a mix of environment + properties file in Spring. All the values look fine. I have data on the topic and I can consume it fro...
3
1,971
Tailwind CSS font size works, but margins and borders don't. Did I install it incorrectly?
<p>I am trying to style my webpage using tailwind css -- the whole thing. But my immediate goal is to style some text on some inputs and buttons using borders. This is where I discovered that my Tailwind is configured wrong.</p> <p>Because the way that this &quot;doesn't work&quot; is quite vague its difficult to diagn...
3
1,782
Error building PostgreSQL 12 with nix on Big Sur: “stdio.h not found”
<p>I'm trying to build postgresql 12 with timescaledb on macOS Big Sur (x86), but the build fails with “error: 'stdio.h' file not found”:</p> <pre><code>❯ nix-shell -p 'postgresql_12.withPackages (p: [ p.timescaledb ])' these derivations will be built: /nix/store/40ln5j15h3393rz6ib3agdjh44zbzq0l-timescaledb-2.1.0.drv...
3
4,729
Flutter Error: Mapbox java.lang.IllegalAccessError when building in release mode
<p>I'm building a mobile app using flutter. Because i needed a map in this project i added Mapbox Gl form pub.dev. When i build the project in debug mode, everything works correctly but in release mode via flutter run --release or flutter build apk i get the error below #java.lang.IllegalAccessError</p> <blockquote> <p...
3
1,261
How to get the indices of the optimal basis using Gurobi through a C++ code
<p>I am calling Gurobi through a c++ program to solve a linear program and I need to extract the indices of the optimal base.</p> <pre><code>#include &quot;gurobi_c++.h&quot; #include &lt;stdlib.h&gt; using namespace std; #include&lt;vector&gt; int main(int argc, char *argv[]) { try { GRBEnv env = GRBEnv...
3
1,080
looping over all combinations in a tibble
<p>I would like to create an index based on n for each combination of LZCODE(data below) and Bereich over 4 years and then rbind those indices in order to plot them later. As the example below shows, I can do that by hand. However that process is quite tedious and would take a lot of time. Hence, I am looking for a loo...
3
3,712
Stacked bar plot ggplot2- ordering samples by specific variables, highest to lowest values
<p>I'm trying to plot a data set containing over 2000 samples in a stacked bar chart format, with each sample (represented by "SampleID") on the x-axis and 6 measurement values on the y-axis (<code>Measurement1-6</code>). I want the samples to be displayed/ordered by a the following order of measurement variables: <cod...
3
4,760
How to get some layers from trained model and put them into another to make predictions in tensorflow keras
<p>I'm having problems using functional api for estimating <img src="https://latex.codecogs.com/gif.latex?X_c%20%5Csim%20%5Cmathcal%7BN%7D%28%20%5CLambda_%7Bab%7D%5E%5Ctop%28x_a%20-%20x_b%29%20+%20%5CLambda_%7Bb%7D%5E%5Ctop%20x_b%2C%20%5Csigma%20%29" alt="normal" /> by maximizing <img src="https://latex.codecogs.com/gi...
3
2,674
Marshaling a ComVisible component vararg array parameter
<p>I'm looking at migrating some legacy COM code written in VB6 to .NET, however this needs to generate a typelib that's fairly close to the original.</p> <p>I've bumped into a problem passing in an array of parameters when early bound to other VB6 components. In the original VB6, the signature looked like this:</p> ...
3
1,307
Transcoding with the GCP Transcoder API results in a time gap
<p>I've been trying GCP's <a href="https://cloud.google.com/transcoder/docs?hl=en" rel="nofollow noreferrer">Transcoder API</a> and having trouble with the time randomly becoming shorter than specified in certain cases.</p> <p>The specific cases are as follows:</p> <ol> <li>Specifying <code>startTimeOffset</code> and <...
3
6,741
Safest method to clean up my .bash_profile on MacOS?
<p>I'm new to the Mac environment and installed the Anaconda GUI by accident. I wished to remove it completely and install Miniconda instead. I think I was successful, except the only remnant I can find of Anaconda is in my <code>.bash_profile</code>. It looks something like:</p> <pre><code># &gt;&gt;&gt; conda initial...
3
1,166
How do I properly send a POST in HTTPS through Java?
<p>I'm writing a mod for a game in Java to check to see if the player has voted using a server methods to get the Steam ID. I can't get a good response from what I'm seeing. Every response is an IOException which I've had print out "Invalid Response Code".</p> <p>I've tried implementing what I've seen in similar mods ...
3
1,667
XML full file reading C#
<p>So I have a code that reads partially into an XML document, precenting me with the first block of results which is great, but I have a file containing multiple blocks of the same code &amp; my program seems to quit after the first.</p> <p>Here's the code:</p> <pre><code>string path = "data//handling.meta"; var doc...
3
1,315
"Aborted (core dumped)" error in dequeue method of queue class
<p>This queue class's dequeue method doesn't work properly and I'm not sure why. When I run it it says "<strong>* Error in `./a.out': double free or corruption (fasttop): 0x00000000018dfe50 *</strong>", followed by a backtrace and then "Aborted (core dumped)".</p> <p>At first I was deleting the bottom node directly, b...
3
1,403
How to aggregate the microbatch data into a dataframe for spark structured streaming?
<p>The use case is as following. Based on the spark structured streaming, the kafka data is ingested. We hope that the data for each microbatch, every 10 seconds, can be processed and aggregated into a single dataframe, which keeps on monitoring the sum of some values for each id. Is the following way correct? It seems...
3
1,044
Page changes when clicking a div link
<p>I will explain my problem. For school I have to make a website, but it is not working how it should be. I have a border made of divs around the screen, and the page in the middle. When I first open the page, everything is in place, but when I click on one of the nav items (#link) the page suddenly loses its margin ...
3
1,475
Unable to print out list object contents using JSTL
<p>I am retrieving rows from a Mysql database and storing each row as an object in a list. I pass the list to the request scope where I am attempting to use JSTL to loop over the list and access the object variables.</p> <p>Here is how I retrieve the rows as objects:</p> <pre><code> protected void doGet(HttpServle...
3
1,201
Configure sam local start-api to send PUT request payloads only
<p><em>My main question is:</em><br /> <strong>How can I configure SAM to create API endpoints without Lambda Proxy Integration?</strong></p> <p><em>Details:</em><br /> I am trying to test an API Gateway + Lambda deployment locally. The Lambda function I have specified is expecting to receive the payload of <code>PUT</...
3
1,324
UINavigationController pushing entire UIView to top left
<p>I am working through 100 Days of Swift <em>without</em> the use of Storyboards and am running into some issues with the UI View almost fully being pushed under the UINavigationController. When removing the UINavigationController everything works as expected. I've attempted to add a new view, set <code>edgesForExtend...
3
1,477
How to create a sidebar with 2x3 grid next to it
<p>I want to create a sidebar and a grid that has 2 rows and 3 columns (beside the sidebar). I already have a nav bar and a footer (just a layout, links are not supposed to work)</p> <p>I have no idea how to create that sidebar and main content grid with flexbox.</p> <p>Oh and the superman logo: I can't center it ver...
3
1,273
Tackling a cryptography issue, code takes ages to run, need to optimise it
<p>I am building a program where one will use the linux command line to issue a password's hash as the 2nd argument (./program ,to run the program, as the 1st), and the program will find the string with the according hash (aka password) for him. The key needs to be up to 4 characters long (a-z, A-Z), with a 2-digit sal...
3
2,425
My javascript codes won't work?
<p>My Html page codes : </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt; &lt;html&gt;   &lt;head&gt;&lt;meta name="viewport" content="width=device-wi...
3
2,317
Camera stops when trying to capture Photo (Android 4.1.1)
<p>i have an application where the user can take a photo when clicking a button. After click the camera preview opens without any problem. But after taking the photo and clicking "OK" the camera stops and shows a message "camera has stopped". (Error appears when using the App on a Galaxy S3 with 4.1.1)</p> <p>In the L...
3
6,000
Setting textfield of an fragment
<p>I have two activity named School.java and SchoolDetails.java.Under SchoolDetails activity i have used fragments by implementing swipeable tabs.I passed a value from Schools.java to SchoolDetails.java using intent.Now i want to set this value received from Schools.java to a textField which is inside a fragment of Sch...
3
5,412
MessagePack unpack fails with large Metasploit Framework message in C received via Libcurl
<p>First off, I used <a href="https://stackoverflow.com/questions/15393838/how-do-i-unpack-and-extract-data-properly-using-msgpack-c">How do I unpack and extract data properly using msgpack-c?</a> to figure out how to properly unpack data since MessagePack's own C API documentation isn't great. Though, <a href="http://...
3
1,599
symfony2 service not registering dependencies
<p>I'm trying to create a service to persist/flush data from a json feed to doctrine</p> <p>The services dependencies are: </p> <ul> <li>Doctrine EntityManager </li> <li>The Api that pulls the Data</li> </ul> <p>My Service Config:</p> <pre><code>services: fantasyapi: class: FantasyDataAPI\Client...
3
1,879
CSS: Menu Dropdown showing horizontally
<p>I want to bring 3 items(Dvr &amp; Kits.spy camares,alarmes) under drop down menu for Products but these items are also coming horizontally inside bottom_menu please help me i am new in css</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css ...
3
1,685
Access control not working in .htaccess
<p>I would like to grant access for specific IP addresses to specific pages on my WordPress site</p> <p>I have the following .htaccess setup:</p> <pre><code>RewriteOptions inherit # BEGIN WP Rocket v2.9.11 # Use UTF-8 encoding for anything served text/plain or text/html AddDefaultCharset UTF-8 # Force UTF-8 for a num...
3
3,418
HashMap containsKey not returning true
<p>I am trying to compare the keys of my data in a hashmap to check if the data exists. However, even when the key does exist in the array, containsKey will still return false. I am using this:</p> <pre><code>package timeTraveler.core; import java.util.Arrays; public class StringArrayHolder { private final Str...
3
2,917
Crash after unwind segue due to location manager
<p>I have several viewcontrollers which unwind to the root viewcontroller. With most of the viewcontrollers the unwind segue works well without crashing the app. Only the viewcontrollers using a CLlocationmanager cannot perform the unwind segue to the root viewcontroller. These are the lines which makes the difference ...
3
1,476
Adding t-test value to grouped data set in r
<p>When running <code>stat_compare_means</code> I am unable to run a t-test. If I leave the brackets empty it will attempt a Wilcoxen but I don't think it is accurate. I have tried editing several settings under <code>stat_compare_means</code> and tried changing to using <code>geom_signif</code> but have gotten a varie...
3
2,115
Arguments against using html as the data carrier with HATEOAS?
<p>I started reading up on using HATEOAS for an application and thought that it might be a good idea to use structured HTML for the data as opposed to use for instance json.</p> <p>The below example:</p> <pre><code>{ "name": "Alice", "avatar": "data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6...
3
1,877
jqgrid - how to edit a row?
<p>when i select a row in the jqgrid and press edit, i can not see any data in the modal box.</p> <p>and if i press submit button in the empty confirm box, my controller don't receive any data. what is wrong with my jqgrid?</p> <p>here is my view code:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <d...
3
6,779
React.js components synchronization with html5 media current time
<p>I have a React.js component, which is an <code>audio</code> file and a child component, where is a slider with play/pause button. I want arrow position in slider synchronized with audio current time.</p> <p>When audio is playing, arrow animation is delayed, sometimes more and sometimes less. When audio is paused ar...
3
1,663
How to I catch SSL exceptions in a Mono HTTPListener server?
<p>I'm trying to add HTTPS support to my simple Mono HTTP server. It works perfectly most of the time, but the application crashes when an SSL exception occurs, such as the client canceling the handshake. Obviously something like that shouldn't completely crash it, so I need to catch that exception somehow.</p> <p>Cod...
3
1,650
google maps v3 - Add markers after ajax call completes
<p>I am trying to load markers on Google map using ajax call. The ajax call is taking long time but the map is loading before the ajax call is completed. So I don't see markers on the map. </p> <p>Code given below:</p> <pre><code>&lt;script type="text/javascript"&gt; var map; function initialize() { var myLatln...
3
1,165
Fedena API curl call with POST XML file returns 400 error
<p>I'm trying to post the student data to fedena API. So If the API call is successfull, then it will add a student. But When i try this code, it is returning 400 error.</p> <p>MY CODE :</p> <pre><code>&lt;?php session_start(); function garland_curlapi_call($url,$headers = NULL,$method = NULL,$data = NULL){ ...
3
3,155
Why is repaint() not reaching the paintComponent() method?
<p>I have been working on a Rotating Line project for AP Java at school. All of the support classes are completely done (by my partner) but I have not yet finished my display because of my <code>paintComponent()</code> method not working at all.</p> <p>I have already asked for help and no one has yet been able to find...
3
3,121
Schema level deadlock on SQL Server between SELECTS (or other queries) and ALTER ROLE ... ADD MEMBER when creating credentials
<p><strong>Context</strong></p> <p>We have a few apps reading and writing to SQL Server. These apps get their credentials at startup from a central Hashicorp vault which creates the credentials at app startup time.</p> <p><strong>Problem</strong></p> <p>Often (3-5 times a week) we get deadlocks and always the culprit i...
3
3,990
Why does my Flutter CustomPainter class not paint anything on the screen when using the canvas..drawArc() function with a sweepAngle less than 2*pi?
<p>For some reason, my CustomPainter does not draw anything to the screen. I'm trying to build a Pie-Chart but the painter only works when I set the sweepAngle to 2*pi.</p> <p>The Widget where CustomPaint is called has the following structure:</p> <pre><code>class PieChart extends StatelessWidget { const PieChart({ ...
3
1,229
How to remove the white bar in the middle of my page?
<p>I put a background image and I'm using a card at the middle of the page. I've a white bar that come across all the screen and I don't know how to remove it.</p> <p>Here is a screenshot:</p> <p><a href="https://i.stack.imgur.com/XGDLF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XGDLF.png" alt="...
3
1,476
How to well organize elements (jsx/css) in react
<p>I want to create something that look like a mockup that I designed, but it start being messy, and it is hard for me to organize each elements as I wish to.</p> <p>This is what I'd like to display with my code:</p> <p><a href="https://i.stack.imgur.com/hk9R0.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
3
1,817
PHYTON: _tkinter.TclError: invalid command name ".!canvas"
<p>My 9 year-old son is studying Python and he faced below problem in his code (bubble breaker game):</p> <pre><code>Traceback (most recent call last): File &quot;M:\Yandex disk\YandexDisk\ДЕТКИ\python modules\Bubble Blaster.py&quot;, line 55, in &lt;module&gt; move_bubbles() File &quot;M:\Yandex disk\YandexDisk\ДЕТКИ\...
3
1,749
Having an issue in building an autocomplete function using jquery
<p>I'm trying to create my own autocomplete functionality from scratch. The code below checks for the result within the <code>result</code> class. Then the value within the <code>result</code> class loops through the <code>name</code> classes. If a particular string matches then adds a class called <code>display</code>...
3
1,260
Modeling exchange in Haskell
<p>I'm new to Haskell, and I'm looking to model stock exchange library. It's meant to be a library, hence specifics to be defined by the user. The way I intend to use this is to have users define things like this. </p> <pre><code>data MyExchange = MyExchange { name :: ExchangeName , base :...
3
1,126
Authorization has been denied for this request in AAD
<p>I am new to Azure Active Directory development. We have few services which need to be accessed by web application and mobile devices(cordova based application). </p> <ul> <li>For Web application we are using <a href="https://github.com/AzureAD/azure-activedirectory-library-for-js" rel="nofollow">ADAL JS</a>.</li> <...
3
1,595
Flutter Health Plugin "Authorization not granted" in Foreground Service Function
<p>I am trying to create an app about periodically fetching step data from Google Fit API and send that data to custom API. So far everything is ok and works fine while app is open. Then I wanted to make these things happen even if i kill the app.</p> <p>For that, i used <a href="https://pub.dev/packages/flutter_foregr...
3
3,635
Eslint rule for no empty lines within method?
<p>The repo I'm working in has no empty lines within a method</p> <p>For Example</p> <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false"> <div class="snippet-code snippet-currently-hidden"> <pre class="snippet-code-js lang-js prettyprint-override"><code> parseLedgerEntry (i...
3
1,200
Request with fsockopen - response without headers
<p>I have method that makes url request:</p> <pre class="lang-php prettyprint-override"><code> public function send($httpUrl, $httpParams = [], $httpHeader = [], $waitForResponse = false) { if ($httpParams) { foreach ($httpParams as $key =&gt; &amp;$val) { if (is_array($val)) $v...
3
1,314
Start SVG animation on entering viewport
<p>I found few solutions for my problem and they are pretty similar. I used this one <a href="https://stackoverflow.com/questions/46969358/how-to-start-an-animated-svg-on-entering-viewport">How to start an animated SVG on entering viewport?</a>.</p> <p>In every solution it says to set the begin attribute to "indefinit...
3
16,774