title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Batch script reverse content of text file change load order and reverse again | <pre><code>set startpath=%cd%
del mods.txt
del mod.txt
del prioritys.txt
del desiredmodname.txt
type NUL > prioritys.txt
cls
set /p w3folder=<w3folder.txt
if not exist "%w3folder%\content\content0" (goto choosew3folder) else goto askmodkitfolder
:choosew3folder
OpenFolderBox.exe C:\ "Appears only on first s... | 3 | 2,514 |
"Makes Pointer from Integer without a Cast" - How do I satisfy GCC? | <p>I'm writing my first X11 applications in C and I've run into a major problem while trying to retrieve the size of my applications window.</p>
<p><code>temp.c:30:2 warning: passing argument 3 of 'XGetGeometry' makes pointer from integer without a cast</code></p>
<p>I know this is just a warning, but it still result... | 3 | 1,484 |
Data nucleus spatial mapping error | <p>I was trying to connect spatial types with datanucleus.</p>
<p>I have in database field called pla_location in "place" table, which is mysql GEOMETRY type </p>
<p>I did mapping as below:</p>
<pre><code><entity class="com.dn.dntest.model.Place">
<table name="place" schema="map"/>
<attributes>... | 3 | 1,034 |
StencilJS @Prop() variable is undefined | <p>I created a stencil component () that uses another stencil component () in the rendered template.</p>
<p>One of the props (<strong>key: string</strong>) passed from <strong>smg-compound-filter</strong> to <strong>smg-filter</strong> is undefined, whereas the other props are well defined. I made sure that <strong>{fi... | 3 | 1,182 |
how change the max_words to 1 without error | <p>I worked on code published on GitHub <a href="https://github.com/jrterven/audio-visual-dataset/blob/master/extract_detailed_text_watson.py" rel="nofollow noreferrer">https://github.com/jrterven/audio-visual-dataset/blob/master/extract_detailed_text_watson.py</a> the code was design to use 5 words but I want to chang... | 3 | 6,248 |
Split list in a column to multiple columns | <p>I have two DataFrames as below:</p>
<p><strong>df1.shape = (4,2)</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Text</th>
<th>Topic</th>
</tr>
</thead>
<tbody>
<tr>
<td>Where is the party tonight?</td>
<td>Party</td>
</tr>
<tr>
<td>Let's dance</td>
<td>Party</td>
</tr>
<tr>
<td... | 3 | 1,220 |
GCG in ScipOptSuite-7.0.2: Linux self-extracting archive installation lets me start SCIP, but not GCG | <p>I installed the latest ScipOptSuite (7.0.2) using the self-extracting archive (yes, after installing the required packages gcc g++ gfortran liblapack3 libtbb2 libcliquer1 libopenblas-dev libgsl23 as demanded at the SCIP download site) and if I navigate into the newly created directory (i.e., <code>/home/stefan/SCIPO... | 3 | 1,533 |
Additional toolbar at the bottom with Scroll View | <p>I want to have an additional Toolbar with elements in it (like a back buttom and another bottom to directly go into a certain activity) at the bottom of the layout. The problem is that I use a Scroll View inside a Constraint Layout. How can I insert such a layout file. I tried it by drag and dropping a toolbar in th... | 3 | 2,338 |
Database help needed i'm stumped | <p>I recently downloaded some software made with the codeigniter framework after following the install instructions, I ran the website on localhost, which loads up but as soon as I goto register a new member it gives me the following error. I'm brand new to all of this so what may seem trivial to you probably won't to ... | 3 | 2,752 |
Enhanced for loop not executing | <p><strong>UPDATE: Please read the second part of this post that reads "UPDATE". I 've gotten some parts of the code to function since the original post. Thank you!</strong></p>
<p>I have an enhanced for loop in my toString method which returns a string:</p>
<pre><code>public String toString() {
for (SelectedItem... | 3 | 2,441 |
Load Map into jsp to populate drop down list in struts2 | <p>At my work I have to maintain some web applications written by a previous developer and I recently have to upgrade Struts from the version 2.1.6 to 2.3.32</p>
<p>The update goes mostly well, the only real change I had to make in the application was changing the old </p>
<pre><code><filter>
<filter-nam... | 3 | 2,242 |
Custom numpy (or scipy?) probability distribution for random number generation | <h2>The issue</h2>
<p><strong>Tl;dr</strong>: I would like a function that randomly returns a float (or optionally an ndarray of floats) in an interval following a probability distribution that resembles the sum of a "Gaussian" and a uniform distributions.</p>
<p>The function (or class) - let's say <code>cust... | 3 | 2,100 |
Big Catel: How Do You Show/Pull all Product Images on product page? | <p>I have added a Image Carousel (with thumbnails) to all of the individual product page(s) [via the product.html file]</p>
<p>I used the <code>{{ image | product_image_url | constrain: 500 }}</code> code, but it's only pulling the first product image when there are 2-5 product images. (see how it's showing on website:... | 3 | 2,124 |
Indexed Property error | <p>While debugging my code I found an inner exception which reads as: </p>
<p>In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.</p>
<p>In sql the script runs smoothly returning all the rows, but in vb it's not returning or finding any r... | 3 | 1,137 |
JQuery: Checking / Unchecking Radio Buttons | <p>I trying to figure out the error in my script and am hoping somebody is able to tell me where I am going wrong. It is an attempt to create a quiz based on JS/Jquery (the javascriptissexy exercises). </p>
<p>So far it is working fine, except: I want to use a back button that recalls the previous answers given by the... | 3 | 1,768 |
How to sample a SARIMA model with given parameters in R | <p>I have a time series in R called jj.</p>
<pre><code> > jj
Jan Feb Mar Apr May Jun Jul
1 2.5625072 2.6864995 2.7760495 2.6864995 2.6176149 2.8472302 2.8889086
2 2.4733998 2.5853644 2.3614352 2.5548286 2.2392920 2.2698278 2.3614352
3 2.5833333 1.9444444 2.009259... | 3 | 4,007 |
Customized listfield with image displaying from a url | <p>I am displaying a customized list field with text on the right side and image on the left side.The image comes from a URL dynamically.Initially i am placing a blank image on the left of the list field,then call URLBitmapField class's setURL method,which actually does the processing and places the processed image on ... | 3 | 2,708 |
How to query a field inside an array from Firestore | <p>I have a collection in my project where I am trying to only fetch the relevant documents to my project.</p>
<p>My firestore looks like so:
<a href="https://i.stack.imgur.com/n07Js.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n07Js.png" alt="Firestore collection" /></a></p>
<p>I am trying to onl... | 3 | 1,032 |
How to determine spring data JPA is executed? | <p>I am trying to extend JPARepository in spring boot 2.5.3 and h2 database.</p>
<pre><code>@Repository
public interface CustomerRepository extends JpaRepository<Customer, Long> {
boolean deleteCustomerById(Long id);
}
</code></pre>
<p>Returning a boolean because service and controller needs to know if it w... | 3 | 3,300 |
Filter JSON based of path and regex | <p>I want to be able to have a user be able to specify a path and a valid regex and return a filtered JSON based on that. </p>
<p>I think I almost have my solution except that I don't know how to dynamically get the results of a path. Here's my code:</p>
<pre><code>function getResult(jsonObject, pathText, regexToChec... | 3 | 1,886 |
AngularJS - Reading JSON from Factory, using result | <p>new to Angular and stuck on something that should be pretty easy...</p>
<p>I have a few resources:</p>
<pre><code>.factory( 'RSVPRes', function ( $resource ) {
return {
RSVP: $resource("../reservations/:id.json", {id:'@id'}, {'update': {method:'PUT'}, 'remove': {method: 'DELETE', headers: {'Content-Type': '... | 3 | 1,268 |
Convert hex text file to original image(JPEG) in R | <p>I have a hex representation data from FFD8...........FFD9 JPEG image format,how can I convert this hex data back to original image(viewable) in R.</p>
<p>this is my data:</p>
<pre><code>df<-c("FFD8FFE000104A46494600010100000100010000FFDB008400090607121312151313141616151718171A1918181818181B181A1B1A171A191A1B... | 3 | 13,527 |
Find paths from a graph and then count how many times a path occurs in Azure Cosmos DB using Gremlin | <p>I am storing clickstream events in graph database using the below structure
<a href="https://i.stack.imgur.com/cFrE1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cFrE1.png" alt="enter image description here"></a></p>
<p>User perform multiple events and each event has a edge towards previous ev... | 3 | 1,064 |
Implement search by two forms django | <p>I want to implement search by two parameters form:
<strong>home.html</strong></p>
<pre><code><form action="{% url 'search_results' %}" method="get">
<input name="q" type="text" placeholder="Search...">
<select name="q2" class="form-control" id="exampleFormControlSelect1">
<optio... | 3 | 1,807 |
HTTP Status Code 500 when uploading video to server in android | <p>I'm trying to upload video to server in php and I get Http Status Code 500 error after progress bar complete tasks , I don't know where is the problem in Android file or in JSON file</p>
<p>Android Code for the part of uploading process:</p>
<pre><code> // Uploading Video to server
private class UploadFileToSer... | 3 | 1,720 |
How to add and remove a class when you click on the element | <p>Without using JQUERY I need to be able to change the css class on a div in a table. The following link will show you what the table looks like <a href="https://jsfiddle.net/7gwktgxz/" rel="nofollow">https://jsfiddle.net/7gwktgxz/</a></p>
<p>I need to be able to click on a space and it removes the last element of th... | 3 | 7,183 |
Troubleshooting HTML and PHP / MySQL | <p>Long time reader, first time poster. I am a novice PHP enthusiast, and I have a page that I have been working. Right now I have the DB connection working well and my SELECT statement is giving me the info needed. My problems are two fold (maybe more after this post; <em>set your phasers to cringe</em>):</p>
<ol>
<l... | 3 | 1,998 |
Authorization Failed [Omnipay and Paypal] | <p>Authorization Failed</p>
<p>Here is my code:</p>
<pre><code>$gateway = Omnipay::create('PayPal_Express');
// Initialise the gateway
$gateway->initialize(array(
'clientId' => 'AZzCeImpURKHH0LIFSBTrEWGY-NKLCnUUQdHT049pRLvwBXg9BnlpbnsiGLPFQH43DU4eL-Qi96nrZU6',
'secret' =... | 3 | 1,332 |
Dynamic TestNG XML Creation. Getting wrong XML. Where I am wrong | <p>Dynamic TestNG XML Creation. Getting wrong XML. Where I am wrong.</p>
<p>I want my testNG xml to be print as shown below.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="App Automation Testing">
<parameter name="Br... | 3 | 1,727 |
Numpy: Uniform way of retrieving `dtype` | <p>If I have a numpy array <code>x</code>, I can get its data type by using <code>dtype</code> like this:</p>
<pre><code>t = x.dtype
</code></pre>
<p>However, that obviously won't work for things like lists. I wonder if there is a standard way of retrieving types for lists and numpy arrays. In the case of lists, I gu... | 3 | 1,108 |
Replace NAs with mean for a particular day in time series R | <p>Given the time series below I would like to replace the <code>NAs</code> for a <code>specific day</code> using the <code>average</code> of all values for that <code>day</code> in the time series.</p>
<p>For example, if 1997-04-01 has a missing value, I would like to replace that NA with the average value of all Apri... | 3 | 15,602 |
Why does my progress bar rendering incorrectly? | <p><a href="https://i.stack.imgur.com/ntQoV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ntQoV.png" alt="What is currently being rendered" /></a></p>
<p><a href="https://i.stack.imgur.com/Sy1QQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sy1QQ.png" alt="Ideal render" /></a><... | 3 | 1,145 |
loading not showing within the box | <p>I have used jquery and css to show a loader with gray background during an ajax call. The thing is I need the loader and the gray background to be visible only within a box like as shown below with loading text and icon in center</p>
<p><a href="https://i.stack.imgur.com/yiPFa.png" rel="nofollow noreferrer"><img sr... | 3 | 1,260 |
Scrolling Image using PixelWriter / Reader | <p>I'm trying to create a scrolling image that wraps around a canvas to follow its own tail. I've been trying to use PixelWriters and Readers to save off the vertical pixel lines that are scrolling off the screen to the West, and append these to a new image which, should grow on the RHS (East) of the screen.</p>
<p>It... | 3 | 1,550 |
JDBC Connection error while executing a procedure from java | <p>I have to execute a stored procedure from a java class by passing value. But when I am trying for that, I am getting the error </p>
<pre><code>Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL s... | 3 | 1,457 |
Dropzone upload to Joomla | <p>I'm using Dropzone to upload a file to Joomla:</p>
<pre><code>// ...bunch of JS
this.buildUploader = function() {
var objThis = this;
if (typeof Dropzone != "undefined") {
Dropzone.autoDiscover = false;
this.dropZone = new Dropzone(this.fileSelect, {
url : location.protocol + '//... | 3 | 1,355 |
Adding interpolated model data column to field dataset in r | <p>I'm trying to compare my model data with field data in r. Field data is at certain depths(1,20,50,75,100,150..). Model data output is not at the same depths and have to be interpolated(linear) and preferably added to a new column in the field data.</p>
<p>I would like to run a for loop on each row of the model data ... | 3 | 1,158 |
Why I am getting different plots for the same data file in python? | <p><a href="https://i.stack.imgur.com/UVje7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UVje7.png" alt="Fig1" /></a></p>
<p><a href="https://i.stack.imgur.com/0UFJo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0UFJo.png" alt="Fig2" /></a></p>
<p>txt file</p>
<pre><code>1 1 1... | 3 | 2,510 |
TypeLoadException during serialization | <p>When I try to open <a href="https://github.com/zspitz/ExpressionToString#visual-studio-debugger-visualizer-for-expression-trees" rel="nofollow noreferrer">my custom visualizer</a> on an expression tree in a .NET Core project (targeting 2.2), I get the following exception:</p>
<blockquote>
<p>An unhandled exceptio... | 3 | 1,508 |
How can I add an iOS icon using PhoneGap 3.5? | <p>Ok...so, I have been reading a lot about this and banging my head for a while.</p>
<p>If I run "phonegap run ios" in my terminal...then I get a lovely icon in the simulator, everything seems to work fine.</p>
<p>However, if I use phonegap build and pull my latest from github...then use the QR code to install it on... | 3 | 1,031 |
K&R C programming exercise 6.01 attempt giving wrong values | <p>I am trying to do K&R programming exercise 6.01 in C ANSI version
which states</p>
<blockquote>
<p>Our version of <code>getword</code> does not properly handle underscores, string constants, comments, or preprocessor control lines. Write a better version. </p>
</blockquote>
<p>Below is the code I made to ign... | 3 | 2,585 |
Converting from DynamicFrame to Pyspark Dataframe results in null timestamp and date values | <p>Here's the code loading data from a AWS Glue Data Catalog table:</p>
<pre><code> cleanseQueue = self.glueContext.create_dynamic_frame.from_catalog(
database="my_db",
table_name="cleanse_queue_table",
tr... | 3 | 1,285 |
How can i print the last letter in my logic | <ol>
<li>I have a code that prints the letters in which the key is pressed on the highlighted text. But I was unable to print the last letter (letter F here) . can anyone point out the problem in my logic.</li>
<li>without printing text in the input tag I want to go to a different page when pressed, how can I do it( do... | 3 | 1,127 |
as.h2o is creating 3 levels in my target variable instead of 2 levels so it makes the model multinational instead of binomial, how do I prevent this? | <p>So I am using h2o.ai to create a binomial classification model however when I use
as.h2o to convert my data sets. It takes my target variable's column header which is "BUY"
and adds that to the levels so instead of just 2 levels 1 and 2 it becomes three levels which are
BUY, 1, and 2. This makes it multinomial and n... | 3 | 2,703 |
Logging a User in Programmatically for a Functional Test with FOSUserBundle | <p>I am attempting to log a user in programmatically in my functional test on SF 2.7 and FOSUserBundle dev-master. I have already found a good reference to log a user in via SO in this answer - <a href="https://stackoverflow.com/questions/14957807/symfony2-tests-with-fosuserbundle">Symfony2 - Tests with FOSUserBundle</... | 3 | 1,558 |
Unity Game Crashes after Unity Loading Splash Screen Finishes | <p>I've tried all sorts of player setting changes and any small tweaks to try and get my Unity game to run, but I consistently get this segfault crash dump right after the load screen about a VSync related method in libunity.so. I have tried changing the VSync Count setting in Quality, but that changes nothing. Thanks ... | 3 | 2,613 |
Memory leak from client.Do() | <p>The <code>getAPIData</code> function is for getting string of HTML, and it need to be called every 5 seconds. I checked memory usage with the <code>runtime.ReadMemStats</code> function.</p>
<p>As the output below shows, the memory goes up slowly but never goes down.</p>
<pre><code>Alloc = 1 MiB TotalAlloc = 2 MiB ... | 3 | 1,046 |
Lodash for loop returns undefined upon using the "i", but works with set values | <p>I'm trying to search an object for certain integer values using Lodash and then push some of the object values into an array. The integer values have to be variable and come from a different array, but always returns an undefined value</p>
<p>When I hardcode the value like this: <code>_.find(getChampionList.data, {... | 3 | 2,689 |
Cannot uninstall MySQL server 8.0.13 using MySQL Installer or control panel | <p>I was trying to study ASP.NET MVC and EntityFramework on my PC and for this, I needed to upgrade all MySQL modules version. I did, and it was going well. But when I tried to configure MySQL Server I didn't have luck, then some problems later, I decided to uninstall it.</p>
<p>I began this uninstall process first by... | 3 | 1,106 |
Notice: Undefined index: loss_items | <p>This is really weird. I know what Undefined index means. But look at this code.</p>
<p>This is what I got on the top of the script:</p>
<pre><code>$__load = array(
'loss_experience' => NULL,
'loss_items' => NULL,
'guild_info' => NULL,
'skull_type' => NULL,
'skull_time' => NULL,
... | 3 | 1,149 |
Slapd with back-sql in docker only retrieves attribute mapping for one object class | <p>When I try to set up an LDAP server in Docker using SLAPD and connect it to a PostgreSQL Docker with the example database, only the attribute mapping for the first object class is loaded.</p>
<p>The following log is produced:</p>
<pre><code>ldaptest_ldap_1 | 57938399 backsql_load_schema_map(): oc_query "SELEC... | 3 | 2,889 |
Is there a way to use pg_trgm like operator with btree indexes on PostgreSQL? | <p>I have two tables:</p>
<ul>
<li>table_1 with ~1 million lines, with columns id_t1: integer, c1_t1: varchar, etc.</li>
<li>table_2 with ~50 million lines, with columns id_t2: integer, ref_id_t1: integer, c1_t2: varchar, etc.</li>
</ul>
<p>ref_id_t1 is filled with id_t1 values , however they are not linked by a for... | 3 | 1,703 |
create matrices from directed dyadic data | <p>I have a directed dyadic data frame that looks like this.</p>
<pre><code> ccode.a ccode.b year mindist int.a2b
167603 220 570 1976 8.985324 0
624316 781 770 1976 7.914206 0
593896 740 620 1976 9.128673 0
669443 900 660 1976 9.235735 1
323404 434 ... | 3 | 1,618 |
Write a function that has the same default values as a constructor | <p><strong>Abstract problem</strong>:</p>
<p>Consider the following:</p>
<pre><code>data class Data(val i: Int, val s: String = "")
fun <A1, A2, D> make(ctor: KFunction2<A1, A2, D>, sideEffect: (D) -> D) =
{ a1: A1, a2: A2 -> sideEffect(ctor(a1, a2)) }
val makeData = make(::Data) {
... | 3 | 1,413 |
Firebase angularjs firebase current auth gets replaced when creating a new user | <p>I am working on angular firebase web app, in which as soon as admin login, he can create users by his own.
When admin log in , he is authenticated with firebase.auth()</p>
<p>But what is happening is, as admin creates a new user, the current auth details(admin) gets replaced by newly created user. I want the user ... | 3 | 2,544 |
Android app crashes after launching intent and using setText() in TextView | <p>I'm trying to launch an activity using intents and setting values in TextViews in the launched activity, but when I try to do that my app crashes. Heres the activity I'm trying to launch. It crashes when i try to set the text in the last two code lines</p>
<pre><code>public class GameOver extends Activity {
Text... | 3 | 2,895 |
Get column names from my dataset | <p>My code here loops through a Customer and exports the result into a Excel document with multiple sheets, all depending on how many services/reports this customer has.
What I want is to only get the column names and print them out into a gridview.
Here is my full code where I run the customer and export everything ... | 3 | 1,800 |
Duplicate Items Added To Gridlayout Using Custom ButtonAdapter Extends BaseAdapter | <p>I need some help on this issue. When I added items to grid layout, some duplicate items added to container and when scrolling their positions are changing. Here is the XML and Java code.</p>
<p><strong>Layout:</strong>
</p>
<pre><code> <RelativeLayout
android:id="@+id/relativeLayout1"
androi... | 3 | 4,276 |
Centering input in a div | <p>What is causing that one pixel at the top (red and blue highlight) and on the side?</p>
<p>and I'm not missing a div at the bottom, SO is just removing it, not sure why</p>
<p>border-box helps a bit, but it is still 1pm from the top, despite there not being any margins.</p>
<p>Pastebin link of the full file <a href=... | 3 | 1,044 |
How can I rotate or move QGraphicsLineItem from one side? | <p>This line is supposed to connect nodes (which are ellipses) and can add multiple children nodes too, so I'm trying to figure how to rotate or re-size the line so it can point to different directions because it's drawn in only one direction by default.</p>
<pre><code> class Line (QGraphicsLineItem):
so... | 3 | 1,237 |
How do I refresh the grid after grouping in jQgrid? | <p>This is the javascript part from my jqgrid. The main ideea is to make a grouping after a value from a dropdown, which I select. In my case there are two option value (<strong>-1</strong> and "<strong>cerinte</strong>"). When the value is -1 I don't want to make any grouping, but when I select the cerinte I want to ... | 3 | 2,520 |
Timeout errors in cassandra | <p>Read Queries Are timing out in cassandra whenever secondary indexes are involved...
Getting the following errors in cassandra logs</p>
<pre><code>DEBUG [Thrift:275] 2013-11-15 02:30:56,565 ClientState.java (line 130) logged out: #<User allow_all groups=[]>
DEBUG [Thrift:280] 2013-11-15 02:30:56,764 CassandraS... | 3 | 1,712 |
Tree_view undefined after read kendo tree | <p>Here's my problem:</p>
<p>I load a first time my tree to display him.
I can change the value of the Session's files name "state" to enable or disable a node in my tree.</p>
<p>But after I change ne value in my database and return the JSON, I read again the tree to refresh my tree with the changes but it's failed a... | 3 | 1,916 |
WebSocket RemoteEndpoint unavailable issue sending data back to client | <p>I am trying to create something like node-websockify which is basically a simple proxy server to transfer data from a novnc server to a novnc client, I am using approach mentioned <a href="https://github.com/syed/java-websockify" rel="nofollow noreferrer">here</a> </p>
<p>I have strange error happening while sendin... | 3 | 2,564 |
Overriding YouTube's resume playback function? | <p>Does anyone know how to override YouTube's "resume playback" function? I need the embedded YouTube videos on my site to start from the beginning each time, rather than where the user last left off.</p>
<p>In the past, the resume playback function on YouTube only worked on videos 20 minutes or longer, but in recent ... | 3 | 1,081 |
Dynamically appended child has CSS ignored | <p>I have seen this question asked here, as well as on Polymer's GitHub, none of the answers works for me.</p>
<p>Plunker: <a href="http://plnkr.co/edit/1tGHXTsFlXeNnq3hCb0P?p=preview" rel="nofollow noreferrer">http://plnkr.co/edit/1tGHXTsFlXeNnq3hCb0P?p=preview</a></p>
<p>Index.html has app-element in body.</p>
<pr... | 3 | 1,487 |
Wall plugin not working even though it is in the /thewall/, the right directory | <p>I'm trying to use this mootools plugin but it doesn't work at all</p>
<p>This plugin is from this URL I downloaded the plugin and tried to apply it, the folder called <code>/thewall/</code> is in the right directory, I have no idea why it's not working</p>
<p><a href="http://mootools.net/forge/p/the_wall" rel="nof... | 3 | 1,336 |
Php Mysql: Button does not insert into database | <p>I am new here so apologies in advance if my explanations are not straightforward enough.</p>
<p>I am trying to insert information into the database via a button function but I am having no luck. I receive no errors so I'm guessing I have code in the wrong place but I cannot work it out. Thank you in advance for any... | 3 | 5,455 |
Understanding explain while using CTEs - trying to get a query to compute | <p>I've been wrestling with a query and experimented with variations to arrive at my desired result. But I have failed. I'm hoping that if I share the variations that I have tried along with the explain statement output, anyone might have a pointer.</p>
<p>Postgres 11.6.</p>
<p>For the code blocks below, dimension1 i... | 3 | 6,333 |
Karate UI Initial Get Call to BrowserStack Failing | <p>I'm attempting to do a POC for our mobile browser automation testing using Karate UI and BrowserStack. I noticed Karate attempts to make a GET call to BrowserStack when the test starts, and is receiving a 500:</p>
<pre><code>GET https://user:key@hub-cloud.browserstack.com/wd/hub
31 > Accept-Encoding: gzip,defla... | 3 | 4,432 |
Sending Azure token to API back-end keeps returning 401 Unauthorzied error when OnTokenValidated is added to the API | <p>Recently we have created a React front-end which communicates with our API back-end following this tutorial: <a href="https://itnext.io/a-memo-on-how-to-implement-azure-ad-authentication-using-react-and-net-core-2-0-3fe9bfdf9f36" rel="nofollow noreferrer">https://itnext.io/a-memo-on-how-to-implement-azure-ad-authent... | 3 | 1,938 |
Lambda machine-dependent segmentation-fault (possible compiler bug?) | <p>Today I came across a very strange bug. I created a minimal example:</p>
<p><a href="https://gist.github.com/SuperV1234/5792381" rel="nofollow">https://gist.github.com/SuperV1234/5792381</a></p>
<p>Basically, on some machines, "test 2" segfaults; on others, it works as intended.
On my desktop computer it works, bo... | 3 | 1,058 |
Getting only Response [200] from posting Trading API call request to Ebay | <p>I can post Trading API AddItem call through using Python SDK (using JSON code) or through the API explorer on <a href="https://developer.ebay.com/" rel="nofollow noreferrer">https://developer.ebay.com/</a> (using the same XML codes from the same XML file I used with the Python requests library below) and gets some r... | 3 | 1,847 |
Truncated output log files when logging stdout and stderr separately | <p>I have set up a subprocess command within a context manager that pipes the stdout and stderr to separate files via my own logger. This is a variation on the answer given here:
<a href="https://stackoverflow.com/a/4838875/4844311">https://stackoverflow.com/a/4838875/4844311</a></p>
<p>My code is as follows:</p>
<pr... | 3 | 1,114 |
Use observer to signal semaphore? | <p>I use the following method to attempt to synchronously obtain an OAuth access token within 10 seconds, otherwise return nil. It works fine, however as an exercise I would like to convert my code to use a semaphore. </p>
<p><strong>The Runloop version</strong></p>
<pre><code>- (NSString*)oAuthAccessToken
{
@syn... | 3 | 1,301 |
Fit navigation menu in a horizontal row | <p>I'm trying to fit my navigation bar in a single row. However when the window is less than 768px (tablet size), my last icon would be pushed to the next line. How can I fit them in a row?</p>
<p>Here's my JS:
<a href="https://jsfiddle.net/whywymam/dyreb439/" rel="nofollow">https://jsfiddle.net/whywymam/dyreb439/</a>... | 3 | 3,744 |
Merging Duplicate Rows and apply Pivot_wider | <p>I have the following dataset format: </p>
<pre><code>structure(list(ï..Date = structure(c(1L, 1L, 1L, 1L, 1L, 1L,
2L), .Label = c("1/1/2019", "1/2/2019"), class = "factor"), ID = structure(c(1L,
1L, 1L, 2L, 2L, 2L, 2L), .Label = c("AAA001", "BBB002"), class = "factor"),
Gender = structure(c(2L, 2L, 2L, 1L, ... | 3 | 1,432 |
WCF Service - Client receiving CommunicationException after many requests to localhost | <p>I set up a WCF Service that is based on NetTcpBinding and I am using localhost. Client and Host run on same machine. I get a communication exception in the client consuming a specific method of the interface of the WCF Service in a while loop. The while loop is mandatory, because I am monitoring a value and action d... | 3 | 2,754 |
How to get more than one record? | <p>I am using JDBC with logstash to get data from a PostgreSQL query and export it to ES v7 here is the configuration file:</p>
<pre><code>input {
jdbc {
jdbc_connection_string => "jdbc:postgresql://ldatabase_rds_path?useSSL=true"
jdbc_user => "username"
jdbc_passwo... | 3 | 2,234 |
Can't open the edit form from my custom Module (Beginning module development) | <p>I am a beginner in the module development field and i am facing a problem.
I have created the .module file with the hook_menu function having following peice of code :-</p>
<pre><code> $items['game/add_tournament/view_tournament']=array(
'title'=>'View Tournament',
'description'=>'Tournament View... | 3 | 1,859 |
Cant store firebase storage image url to firestore | <p>I'm writing a code to save data in firestore, but it saves other data without image url. </p>
<p>Here is my code: </p>
<pre><code> import 'package:flutter/material.dart';
import 'package:flutter_learning_app/Models/notice.dart';
import 'package:flutter_learning_app/Services/crud.dart';
import 'packa... | 3 | 1,845 |
Expression Language Injection vulnerability struts 2.5.13 | <p>I am using contrast security tool and seeing contrast reporting a vulnerability in my application saying expression language injection error.</p>
<p>I have searched a lot on this, but did not find anything as my version almost latest.</p>
<p>And Contrast is reporting request parameter named as "abc" is injected wi... | 3 | 2,236 |
How to pass dynamically created input values through POST variables | <p>I will be brief.<br>
I have this: </p>
<p>functions.php</p>
<pre><code>function consulta($sql){
$consulta = mysql_query($sql, $GLOBALS['conexion']) or die (mysql_error());
if(mysql_num_rows($consulta) == 0){
return -1;
}else if (mysql_num_rows($consulta) == 1){
$fila = mysql_fetch_arr... | 3 | 3,055 |
Tensorflow 1.9.0: A question about training my model with generators | <h1>Situation</h1>
<p>I am trying to build my own CNN with images I compiled.
I have two folders with training and validation data. This is my code so far:</p>
<pre class="lang-py prettyprint-override"><code>import os
import sys
import shutil
import numpy as np
import tensorflow as tf
SCRIPT_DIR = os.getcwd()
TRAIN_G... | 3 | 4,303 |
Two exact same apps, but one works, the other one doesn´t | <p>I have a demo app -where I figure out how to wright the code for my real app- and the real app.
I want an <code>ImageView</code> called <code>deck</code> in the demo and <code>deck1</code> in the real app to be replaced by a different drawable under certain conditions.
In both apps these conditions are fulfilled, bu... | 3 | 1,736 |
Prolog query with constraint returns false, but there are answers | <p>I am trying to write a prolog program that works out which course I can choose in the university course catalog. Each course has a unique code like cs180 and each course may have some prerequisite courses, which means the required courses must be finished before registering for this course.</p>
<p>Assuming that ther... | 3 | 1,094 |
Problems Using OpsCenter To Start An AWS EC2 Cluster | <p>I want to get a Datastax Enterprise cluster working on AWS.</p>
<p>I started by creating a first node with OpsCenter on it. I used the following Amazon EC2 image to launch this node:</p>
<pre><code>image-1439607361.manifest.xml (ami-e715a08c)
</code></pre>
<p>After the node launched, I went in and configured the... | 3 | 1,647 |
Idiomatic calculus proofs in Isabelle | <p>I'm trying to learn Isabelle using some simple real analysis problems. Below is my attempt at a proof. It checks up until the last hence.</p>
<pre><code>theory l2
imports
"~~/src/HOL/Multivariate_Analysis/Multivariate_Analysis"
"~~/src/HOL/Multivariate_Analysis/Derivative"
"~~/src/HOL/Multivariate_An... | 3 | 1,354 |
something wrong with PHP file preventing JSON data from parsing | <p>I developed search function when I type a value in the search bar a toast shows unable to parse, but there is nothing wrong with the android side, the problem lies in the PHP script. </p>
<p>For example when I type "Art" this is the response from the server that doesn't show on the app only in the log: </p>
<pre><... | 3 | 2,120 |
Simple parallelism with Fibers? | <p>I'm trying to validate a basic yield/resume pattern with two Fibers. However, the yield/resume mechanism doesn't seem to work. I have tried a few variations but can't find my mistake.</p>
<p>Expected sequence of events:</p>
<ol>
<li>kick off threads (time 0)</li>
<li>wait until first returns (time +2sec)</li>
<li>... | 3 | 1,032 |
Jsoup parsing with Android | <p>I'm trying to parse html with <code>Jsoup</code> lib. However, I did not get what I want.
I want to bring to the screen of a mobile device the entire text of the tag <code><pre></code></p>
<p>Please tell me, how do I get the text from web? How do I need to fix?</p>
<p>Web site: <a href="http://devanswers.ru/... | 3 | 1,156 |
When viewing website for first time, website formatting messed up. Refresh fixes | <p>So I'm having a bit of an issue, I think it is to do with how my files are loading within my header. I'm using the fullpage.js plugin currently.</p>
<p>When I visit the website for the first time (non-cached) it looks wrong. However after a refresh the same messed up formatting starts to load for a second then my p... | 3 | 1,082 |
G1 Collector execute 50 times per seconds | <p>Using Java 1.6.0_45 with G1 I have one of my application that run almost indefinitely G1 collector. Beside that seems to waste some CPU it also fill my gc log pretty fast at the lowest setting I could find.</p>
<p>I'm wondering what's going on here. Is it normal? </p>
<p>These are my JVM flags:</p>
<pre><code>-XX... | 3 | 2,534 |
How to accelerate the speed of creating the huge matrix in python? | <p>I am trying to create a huge matrix(60M X 3.1M),and I have written two script, one is try to use the gpu to speed up, the other is use the cpu to compute. I put the script on the SLURM and it has been running for almost a week, and it seems runs forever.I am a very beginner of python and data analyst, so I wonder if... | 3 | 1,069 |
Python with Pandas: Big dataframe (150000 lines) with misspelled names, best strategy to sort out repeated names? | <p>I am working with a relatively big dataframe, 1600000 lines. Each line is an entry of a building code violation. Data includes information from the agency issuing the ticket, building address, building zip code, owner's name, address and zip code, plus violation information, fines data, and some additional columns.<... | 3 | 2,551 |
Store properties showing on mapStateToProps method but store on redux-dev-tools is empty | <p>When I console on line 21 of Bugs.js, its sowing ,me the result of action that i dispathed, but when I am printing the data on in li tag..it's blank. Also the store is not chnaged in redux-dev-tools</p>
<p>That's my App.js code</p>
<pre><code>function App() {
const store = configureStore()
return (
<Provi... | 3 | 1,061 |
Placing confetti to fall from top instead of top left only | <p>I recently came across this library. </p>
<p><a href="https://github.com/DanielMartinus/Konfetti" rel="nofollow noreferrer">https://github.com/DanielMartinus/Konfetti</a></p>
<p>I tried to implement it in my application. I read the documentation and tried to implement it. Below is my code:</p>
<p>JAVA FILE:</p>
... | 3 | 1,121 |
Ionic Failed - Android Build | <p>This is the output I get</p>
<pre><code>ionic cordova build android --stacktrace
> cordova build android
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build andro... | 3 | 2,593 |
How I can fix a simple html UI resolution for different different screen sizes | <p>I am new in html development. I design a form designer that is showing good my desktop screen which have size 1366 x 768 approx. But when I put it on another machine on different resolution my UI effected badly. When I zooming in and zooming out then that will also effected. So that is my problem.</p>
<p>I sharing ... | 3 | 3,651 |
Jenkins pass a shell script variable to a down stream job | <p>I'm new to Jenkins.</p>
<p>I have a job with an "Execute Shell" Build trigger, and in that shell script i initiate some variables with values i take from some source.</p>
<p>I need to pass these values to a downstream job.</p>
<p>The values i want to pass are $IMG_NAME and $IMG_PATH from this shell script:... | 3 | 1,340 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.