text
stringlengths
70
452k
dataset
stringclasses
2 values
Disable CKEditor on summary When I use the widget "field-type-text-with-summary" with the CKEditor, my summary is shown in the CKEditor-format. Can I prevent this and display the field with the plain-format? Hooking into the form, I haven't found a format for the summary; there is just one for the whole body field. usi...
common-pile/stackexchange_filtered
Implementation of interfaces and components in a component-based framework I'm currently trying to develop a small component-based android framework, but I have a doubt about which is the best way to implement my components and interfaces. An architecture of one of my components is shown below. My doubt is, should I c...
common-pile/stackexchange_filtered
what's the difference between NoSql DB and OO Db? what's the difference between NoSql DB and OO Db? An object-oriented database, like db4o, would be considered one of the alternatives presented by NoSQL, which means Not Only SQL. It's a set of alternatives to relational databases: Voldemort, Hadoop, MongoDB, CouchDB,...
common-pile/stackexchange_filtered
How to differentiate $\left(x^2 + \frac{1}{x^2}\right)^5$ How can I differentiate this expression $$\left(x^2 + \frac{1}{x^2}\right)^5$$ I will appreciate any help. There are many ways to differentiate the given expression. What we are looking for is your effort. If you are stuck somewhere, we can help. How about cha...
common-pile/stackexchange_filtered
OrientDB import from CSV, nullValue property I'm trying to import a fake CSV file into OrientDB Server 2.1.2. The ETL tool looks amazing, allowing people to input many options, however it seems to me that the csv transformer (when I tried to use the CSV extractor I got a Extractor 'csv' not found error) does not interp...
common-pile/stackexchange_filtered
AttributeError at /profile/chandan 'tuple' object has no attribute 'another_user' I am trying to get follower system to work but it just wont work class Followers(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) another_user = models.ManyToManyField(User, related_name='another_user') ...
common-pile/stackexchange_filtered
Constraints not working when using block syntax in Rails I tried to add constraints to a group of scoped routes like so: constraints locale: 'de' do scope 'magazin' do get '', to: 'magazine#index', as: 'magazine' # more routes end end It doesn't make use of the restriction. Whereas putting the restriction ...
common-pile/stackexchange_filtered
Manual SIMD vectorialization in Fortran The question is simple but I still cannot find an answer: How can I use SIMD Intrinsics in a Fortran code? I don' mean to use use !$omp directives, and in this example post from Intel. Always from the same source, I have that Fortran does not allow SIMD calls at least with Inte...
common-pile/stackexchange_filtered
Getting MemoryError from DataFrame.sortlevel in pandas I'm trying to run sortlevel(0,0) on a DataFrame with a MultiIndex (3 levels) and a size of about 900'000x4. >>>data.as_matrix().shape (899262, 4) >>>data.sortlevel(0,0) #<--- throws MemoryError almost instantaneous I'm running Windows Vista (not willingly) and as ...
common-pile/stackexchange_filtered
Collaborative graph exploration algorithm Given a minimum spanning tree in an unweighted graph of (10 .. 500) vertices and (vertice_count .. 1000) edges. Each vertex can have up to 6 edges. Given K agents/bots/processes/etc.., all starting from the root of the spanning tree. What would be the best way to distribute the...
common-pile/stackexchange_filtered
Post Request works in swagger but not in JavaScript or jQuery So, I am trying to call a rest API using ajax post. Response contains Status code and Response body which in JSON. When I test this in swagger it works. When I try this in either JavaScript or JQuery, const values = { clientId: '9d9d865a-96c6-41ff-9842-...
common-pile/stackexchange_filtered
Want to center a marketing div and put a box around it - Using Bootstrap I am using bootstrap 3 and I am trying to center marketing div and put a box around it. I would like to keep the marketing div small and in the center. The .box is just a simple box with a border. Here is my code: <div class="container"> <div ...
common-pile/stackexchange_filtered
Unable to query or get any response from BscScan contract The following code: const { JsonRpcProvider } = require("@ethersproject/providers") const { Contract } = require("ethers") const { Wallet } = require("@ethersproject/wallet"); const abi = require('./abi.json'); const GLOBAL_CONFIG = { PPV2_ADDRESS: "0x18B2...
common-pile/stackexchange_filtered
Android OpenGL ES shader compiler support The OpenGL ES 2.0 Specs state that "[s]hader compiler support is optional" (see "Notes" here). Are there any Android devices that do not support shader compilation? If so, is there some shader compiler that I can include with my app to generate a binary instead? Or is the forma...
common-pile/stackexchange_filtered
python generating netaddr.core.NotRegisteredError invalid syntax exception I am trying to get a piece of software called Probemon working and have come up with an error when I try to run it. root@root:~/probemon/src$ python3 ./probemon.py -h File "./probemon.py", line 69 except netaddr.core.NotRegisteredError, e:...
common-pile/stackexchange_filtered
Angular. How to hide data in the title attribute of the image if the object value is null? I understand ng-show/ng-hide can be used but this case is a little different. This is my script below. Basically what I'm trying to do is hide the word "PEAK" if 'info.peak' value is empty in the title tag. DO I need to create tw...
common-pile/stackexchange_filtered
How to query/search name of non-friends of a certain user from database? I have 2 tables in database: Users and Friend. I want to make a query that searches for users name that are not friends with a certain user using @Query. How should the query look like? I have created this query for it: @Query("SELECT u.name FROM ...
common-pile/stackexchange_filtered
How to add placeholder for search field in admin.py How can I add placeholder in django for a search field I am using in admin.py with Django3.1 as: class MyAdmin(admin.ModelAdmin): list_display = ['community'] search_fields = ['community'] Is there any way to do something like this? class MyAdmin(admin.ModelA...
common-pile/stackexchange_filtered
D-link DI-524 a hub connecting to a wireless router? I live in an apartment where I am allowed to use the wireless router's connection for the internet but the speed is sometimes very shaky and weak. Is is possible to use a D-Link DI-524 wireless router that I have as a hub to connect to the wireless connection I am al...
common-pile/stackexchange_filtered
If $X:\Omega\to\Omega'$ and $f:\Omega'\to\Omega''$ are measurable and $f$ is injective, then $\sigma(X)=\sigma(f\circ X)$ Let $(\Omega,\mathcal{A})$, $(\Omega',\mathcal{A}')$ and $(\Omega'',\mathcal{A}'')$ be measurable spaces $X:\Omega\to\Omega'$ be $\mathcal{A}$-$\mathcal{A}'$-measurable $f:\Omega'\to\Omega''$ be $\...
common-pile/stackexchange_filtered
Autokey-GTK is missing a typing cursor when I use Dark Themes I hoping that someone here can advise a work-around for this bug I'm experiencing in autokey-gtk. When I use a dark theme, the phrase editor is missing its typing cursor. I see no settings to adjust this and would appreciate any advice that would lead to me ...
common-pile/stackexchange_filtered
Rails 4 - showing errors for nested associations I have a belongs_to and has_many association between two models. I have a user creation form that creates the user and in the process, creates an organization and associates the two. I have a validation for the presence of an organization name. If that validation fail...
common-pile/stackexchange_filtered
$\exp(a^2\partial_x^2)f(x) = ?$ I can prove that $\exp(a\partial_x)f(x) = f(x+a)$, but what happens for second derivatives? To be more precise, what is the right-hand side of $\exp(a^2\partial_x^2)f(x)$? The above operator has an integral representation $$\exp(a^2\partial_x^2)f(x) = \int\limits_{-\infty}^\infty \text{d...
common-pile/stackexchange_filtered
How could I have prevented this long drawn out game? Consider the following game. I am black. [FEN ""] 1. e4 g6 2. d4 d5 3. e5 e6 4. Nf3 b6 5. Nc3 Bb7 6. Bg5 Be7 7. h4 Nc6 8. Bd3 Qd7 9. Qd2 O-O-O 10. Nb5 f6 11. exf6 Bxf6 12. a4 h6 13. Bxf6 Nxf6 14. Bxg6 a6 15. Nc3 h5 16. Qg5 Rdf8 17. Ne5 Nxe5 18. Qxe5 Ng4 19. Qg5 Rxf2 ...
common-pile/stackexchange_filtered
Problems with Cyrillic symbols The following code doesn't detect encoding correct. $data = 'ABCDEG АБВГДЕ'; $charset = mb_detect_encoding($data); $data = iconv($charset, "UTF-8", $data); $data = mb_strtolower($data, 'UTF-8'); $datasort = str_replace(array("\r", "\n", " "), '', $data); $counter = mb_strlen($datasort,'UT...
common-pile/stackexchange_filtered
While using the public app on the Bigcommerce, is the app uses the merchant specific OAuth token and store-hash for making store specific API calls? Do I need to maintain at my Public app host server database the individual set of OAuth token & store-hash pairs for all the merchants those will be installing my Public a...
common-pile/stackexchange_filtered
NullPointerException while Printing StringArray[] in Toast message in android I'm working with some multiple StringArrary where I can print Toast message inside the respective StringArray but unfortunately, I'm facing a problem with showing toast outside the block. I'm sharing my code below public void onItemSelected(A...
common-pile/stackexchange_filtered
Why am I allowed to set a read only property of a protocol using a struct that inherits said protocol? I'm following a tutorial on the protocol oriented programming paradigm in which I'm confused by something I thought was rather simple which is read only properties of protocols or getters and setters. My understandin...
common-pile/stackexchange_filtered
What are hardware requirements to run a small mining pool? Im planning on setting up a small Monero or DigitalNote minig pool just for fun. If for example, 10 people connect to that pool, what would be the hardware requirements for it (CPU, RAM and storage)? Could I run it on a Raspberry Pi 3? Would it somehow be profi...
common-pile/stackexchange_filtered
Import Excel sheet into MySQL This is the first project I have coded using Python. Therefore, I am looking for someone to give me some comments to further improve my code. Purpose of the application This application help the staff in my organization to import the spreadsheet and store it into the database. Flow User w...
common-pile/stackexchange_filtered
Double Integral with Gauss- Hermite for one component I am trying to perform the following integral $$\int_{0}^{2\pi}\int_{0}^{+\infty} \frac{r'\left(e^{-r'^2/2\sigma^2}\right)\left(r-r'\cos(\theta-\theta')\right)}{r^2+r'^2-2rr'\cos(\theta-\theta')}dr'dθ'$$ Using Gauss-Hermite for $r$ and Simpson 1/3 rule for $\theta$ ...
common-pile/stackexchange_filtered
How to bind coordinates to the Canvas Panel. WinUI I am developing a program Win UI and I have encountered a binding problem. I need to display the readings of objects on the screen. They are placed in an arbitrary position. The data is stored in the database with values from 0 to 1. I am using an ObservableCollection ...
common-pile/stackexchange_filtered
How to fix colors glitch on iPhone 6 screen I got the iPhone 6 just after the release of the iPhone XS. Recently, my iPhone started to have "colors" on the screen. Here are some photos of it, I have updated the software to the max I could update it to. (iOS 12.5) Do I need to replace the screen? Welcome to Ask Diff...
common-pile/stackexchange_filtered
How to add a mathjax equation into the html page using a javascript button Say I wanted to generate a random fraction on a webpage using MathJax, I might write this: function newFrac() { a1 = ran(1,20); a2 = ran(1,20); var txt = "$ \frac{"+a1+"}{"+a2+"} $" document.getElementById("a").innerHTML=txt; } ...
common-pile/stackexchange_filtered
Filter #tag tweets for a specific account using Twitter Streaming API I am able to get tweets from a specific account using the streaming API. I can also manage to get tweets for specific #tags like below: endpoint.trackTerms(Lists.newArrayList("twitterapi", "@myTwitter")); and endpoint.trackTerms(Lists.newArrayList("...
common-pile/stackexchange_filtered
Was there a word which meant roughly the same thing as "nerd" or "geek" does today? ...That is, a word meaning someone with deep and specialized knowledge, and could be used either as a badge of pride: I'm a huge Linux nerd. I helped reoptimize some of the photonal decalcifiers for Intel CPUs. ...or a mark of shame: ...
common-pile/stackexchange_filtered
Why does this static Receiver not respond to the ACTION_POWER_(DIS)CONNECTED Event? I want a STATIC Broadcast Receiver to get fired, whenever the Phone gets charged or not. In my Manifest.xml, i have written the following Entry: <receiver android:name=".Starter"> <intent-filter> <action android:name="an...
common-pile/stackexchange_filtered
How to enable Spring Security Annotations not using app-Context.xml file? I've implemented my Application using SecurityContextImpl as SecurityContext. anything works well (Authentication and Authorization). Now I want to use Spring Security Annotations (@Secured , ...) , I my searched result in a single comment :"USE ...
common-pile/stackexchange_filtered
How Can I use Alias in Where This is my code but it's not working: $select = $db->select() ->from(array('p' => 'products'), 'p.product_id') ->columns(array('x' => new Zend_Db_Expr('(SELECT...)' ))) ->where('x = ?', 'value'); ...
common-pile/stackexchange_filtered
Sorting command line args #include <iostream> #include <cstring> #include <algorithm> using namespace std; bool comp(int a, int b){ return a < b; } int main(int argc, char* argv[]){ char array[argc-1]; for(int i = 1; i < argc; i++){ array[i-1] = *argv[i]; } for(int j = 0; j < argc; j++){ ...
common-pile/stackexchange_filtered
How to filter in a core result webpart on columnA is not empty or null? How to filter in a core result webpart on a column which is not null or empty? I try this but is not working: ContentType="Project portal" and SRExperienceRecord="True" and columnA Not "" Search queries cannot return null values. If a value is n...
common-pile/stackexchange_filtered
How to continue looping after invalid data type input? I'm trying to do one check for invalid input data type. If the the input data type is of type char, I want the re-loop over the menu options. But my program terminates instead. int menu() { int choice = 15; while ((choice > 14) || ( choice < 0)) { ...
common-pile/stackexchange_filtered
How to generate compressed public key in bitcoin format, using openssl and the command line? I am using this line openssl ecparam -genkey -name secp256k1 | openssl ec -pubout -outform DER | tail -c 65 | xxd -p -c 65 which produces an uncompressed bitcoin public key, for instance: 049ddf875b4a6e57d31004926bd8331271b4b4...
common-pile/stackexchange_filtered
Display a Template MS Chart for ,NET VB2010 using MS Chart Control: I think my question is basic but havent found out how to do it. When the form first loads the chart control shows nothing, not even a grid. When I load points into my series then the grid plus the points get displayed. How can I display a template char...
common-pile/stackexchange_filtered
Creepy YA short story about children living in walls to hide from a monstrous man This story scared me so badly when I was a little kid that my father threw the book away! I would have read it in English in the US prior to 1989, and it was almost certainly a Scholastic Book Club book. I would most likely have been in ...
common-pile/stackexchange_filtered
|| converting empty string to bool, && not Is this normal? Is it a feature or a bug? (I'm using firebug): >>> '' || true true >>> '' || false false >>> '' && false "" >>> '' && true "" It is not converting the empty string to Boolean. With || It is evaluating the left hand side, of which an empty string is falsy. It ...
common-pile/stackexchange_filtered
nginx - rewrite js file with php file with apache I use a file config.php to rewrite a file config.js based on domain, config.js contains placeholders which are replaced by RewriteRule directive, this is .htaccess file: <IfModule mod_rewrite.c> RewriteBase /foo RewriteEngine On RewriteRule config.js config....
common-pile/stackexchange_filtered
Basic auth preventing page from loading Node Version: 7.8.0 Protractor Version: 5.1.2 Angular Version: 1.5.3 Browser(s): Chrome 59 Operating System and Version OSX 10.12.5 My site requires basic auth. This has been running fine as I pass the credentials through the home page url. browser.get(`https://${username}:${p...
common-pile/stackexchange_filtered
how can I combine await.WhenAny() with GetAwaiter extension method I want to await a button.click() event. For that created an extension GetAwaiter() method: public static class ButtonAwaiterExtensions { public static ButtonAwaiter GetAwaiter(this Button button) { return new ButtonAwaiter() { ...
common-pile/stackexchange_filtered
Nesting for loops in batch file In a batch file I have 2 for loops like this for /f "tokens=1 delims=_" %%k in (%CurrentDirec%\list.txt) do ( for /f "tokens=1" %%l in (%cd%\pragma.txt) do ( SourceFile.bat %%k %filenamecount% %%l ) ) My question is I will be calling SourceFile.bat using the for loops but t...
common-pile/stackexchange_filtered
declare inside a bash funcion not working as expected with associative arrays I declare an associative array: $ declare -A dikv Initialize it with some key/value pairs: $ dikv=( ["k1"]="v1" ["k2"]="v2" ["k3"]="v3" ["k4"]="v4") Then I can save the contents to a file: $ declare -p dikv > /tmp/dikv.saved This is the co...
common-pile/stackexchange_filtered
Completing the cal, sum the vlookup value As you can see that the value in column Amount in the first image is manually put into it. I would like to use VBA to do it automatically. Table B546789 is one of the worker: PriceList shown the amount of each code item: Code: Sub FINDSAL() Dim E_name() As String Dim ...
common-pile/stackexchange_filtered
Most significant present-day AI developments? What do you consider the most significant progress / breakthroughs in real world applications of present-day AI research? (including, but not limited to: machine learning, statistical data processing, and other disciplines spinned off from AI). Please spare / do not want: ...
common-pile/stackexchange_filtered
storyblok-assets-cleanup – The script doesn't create a assets_backup folder I am not sure exactly how to debug this or find a solution. Basically, with the help of this script, I am scanning through 60.000 + assets to make a backup and potentially find which ones are not used and can be deleted. Scanning through this a...
common-pile/stackexchange_filtered
Offset in a struct with bit fields If we have a struct with bit fields, then how are the subsequent members aligned in the struct? Consider the following code: struct A{ int a:1; char b; // at offset 1 }; struct B{ int a:16; int b: 17; char c; // at offset 7 }; printf("Size of A: %d\n", (i...
common-pile/stackexchange_filtered
Tomcat 6 JSF/JSP filename configuration problem I've a JSF app deploying from Eclipse Ganymede through Tomcat 6. The latter suggests JSP 2.0. I'm using Sun RI JSF implementation and RichFaces 3.3.2SR1. My index.jsp file on request from the browser causes this error to the console: 05-Mar-2010 12:04:41 org.apache.cat...
common-pile/stackexchange_filtered
Pass variables from bokeh to JS via CustomJS In the bokeh example http://docs.bokeh.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-hover the dictonary "links" is passed to the JS by adding it at the end of the code block with: .... """ % links Is it possible to pass over two variables and what ...
common-pile/stackexchange_filtered
Android studio error while adding mopub sdk I am trying to add the Mopub sdk to my android app. I unzipped the SDK, and went to Project Structure to select import a New Module. When I chose the unzipped folder, the Finish button is grayed out, and there is an error saying 'Select Modules to import' I tried following t...
common-pile/stackexchange_filtered
How to select all characters to the right of a specific character in a string - PHP I spent a long time trying to figure this out! How do I select all the characters to the right of a specific character in a string when I don't know how many characters there will be? the function strstr does just that You can also d...
common-pile/stackexchange_filtered
Trying to Share from both Facebook and Twitter in a Row I have the following code: - (IBAction)shareButton { if(self.isTwitter.on) [self shareTwitter]; if(self.isFacebook.on) [self shareFacebook]; } The methods called work separately. If I try to run them together, however, the Twitter method ru...
common-pile/stackexchange_filtered
Expand single value extended properties on events delta query? Should it be possible to provide an $expand=singleValueExtendedProperties... query parameter on an events delta request? My approach returns an error that I wasn't quite expecting. The request looks like this: API: https://graph.microsoft.com/v1.0 RESOURC...
common-pile/stackexchange_filtered
How do you determine if a JDBC Connection was retrieved from a JTA enabled DataSource or straight JDBC? I'm using a vendor API to obtain a JDBC connection to the application's database. The API works when running in the application server or when running in a stand-alone mode. I want to run a series of SQL statements i...
common-pile/stackexchange_filtered
cannot convert varchar to float in sql These are my 2 tables CREATE TABLE [dbo].[dailyRate]( [SYMBOL] [varchar](50) NULL, [SERIES] [varchar](50) NULL, [OPENPRICE] [varchar](50) NULL, [HIGHPRICE] [varchar](50) NULL, [LOWPRICE] [varchar](50) NULL, [CLOSEPRICE] [varchar](50) NULL, [LASTPRICE] [varchar](50) NULL, [PREV...
common-pile/stackexchange_filtered
How to set imageurl and get image height and width dynamiclly in C# Here is the image which i want to set image url and find the height and width of this image dynamically. <asp:Image ID="imgLogo" runat="server"/> //Assign the image path. string Path= Server.MapPath("~/Images/testImage.jpg") System.Drawing.Bitmap img ...
common-pile/stackexchange_filtered
Error building Player: IOException: Failed to Move File I keep getting this error when I try to use my .aar plugin created in android studio on Unity 3d Error building Player: IOException: Failed to Move File / Directory from 'Temp/StagingArea\android-libraries\app-release\classes.jar' to 'Temp/StagingArea\android-libr...
common-pile/stackexchange_filtered
Chrome sending entire element to screen reader when any change is made At some point recently (I believe during the v80 update) Chrome has started sending the entire contents of an aria-live element to the screen reader whenever content is added. Previous to this, it used to only announce the additions. Firefox still w...
common-pile/stackexchange_filtered
Swift UI detect start and end of gesture I want to use a long press gesture and detect when the user has been holding for 1 consecutive second, and I also want to detect when the user lets go of the screen. Currently the onChanged detects when the gesture begins and the onEnded fires after 1 second. So I can use the on...
common-pile/stackexchange_filtered
What are common design flaws of build-point game systems? I'm designing my own RPG system and I want to avoid the most widely-recognized flaws, loopholes, and exploits that build-point character creation systems usually suffer from. What are the most common ways players exploit point-based character creation and advanc...
common-pile/stackexchange_filtered
Capistrano 3.x capture output line by line In Capistrano 2.x you could capture the output line by line using run "ls -la" do |channel, stream, data| puts data end This does not work in Capistrano 3.x, and the capture and execute commands do not seem to provide the same functionality. Is there a way to replicate th...
common-pile/stackexchange_filtered
How to show comma separated values in mvc list I have a Students and a Skills table, a student can have multiple skills, so I have a StudentSkills that have many to many relationship with Students and Skills. I can insert successfully into my table, but I am unable to show my all skills in a single row in my listview....
common-pile/stackexchange_filtered
Deleting empty albums on iOS 13.3 with iFunbox > User File System My Canon PowerShot G7 X Mark II with the CameraConnect App has created almost 2000 empty albums to my iPhone XS (iOS 13.3). Is there any way to delete a single/multiple files using iFunbox > User File System to delete/rebuilt photo albums or cache so tha...
common-pile/stackexchange_filtered
Prove that $\frac{ab}{c}+\frac{bc}{a}+\frac{ac}{b}\ge a+b+c$ How to prove that \begin{equation*}\frac{ab}{c}+\frac{bc}{a}+\frac{ac}{b}\ge a+b+c,\ where \ a,b,c>0\end{equation*} I tried the following: \begin{equation*}abc(\frac{1}{a^2}+\frac{1}{b^2}+\frac{1}{c^2})\ge a+b+c\end{equation*} Using Chebyshev's inequality ...
common-pile/stackexchange_filtered
Not import all records to database I try to import sql file that has about 70 MB so when I use command source in xampp->mysql->bin not all the records in the sql file imported do you have idea about this problem ? "I did something, and then something didn't happen" needs a lot more technical detail. so what should I...
common-pile/stackexchange_filtered
How do I get a site unblocked from corporate firewalls I have a pretty new site, nothing shady has ever happened with it, some of my friends have reported that they can't access said site at their company. How can I figure what lists I'm on and how to get off those lists? One of them indicated their firewall is Palo Al...
common-pile/stackexchange_filtered
Object is not a primitive for response message models I decorated an action as follows [SwaggerResponse(HttpStatusCode.OK, "List of customers", typeof(List<CustomerDto>))] [SwaggerResponse(HttpStatusCode.NotFound, Type = typeof(NotFoundException))] The OK model is shown correctly. However, under Repsonse Messages, I g...
common-pile/stackexchange_filtered
SonarQube warning: Unable to get default branch, defaulting to 'master': TypeError: Cannot read property 'defaultBranch' of null We use Azure DevOps and YAML pipelines to build and analyze our code. This all works fine, except for the code that uses main instead of master as the default branch name. Then SonarQube emit...
common-pile/stackexchange_filtered
Is it possible for an unmanaged C++ app to only load the CLR when it needs managed types? More to the point, I have a native C++ application, that may never need to use managed types. I would like the CLR to remain unloaded until I the codepath that actually depends on managed types is actually hit. I was trying to acc...
common-pile/stackexchange_filtered
How to get data back from an okhttp call? I have a method which calls an external API using okhttp library on android, I'm able to access the data that comes back inside that method/thread but I'm not able to return the data or use it somewhere else. What's the problem? I have tried putting the data in another class (e...
common-pile/stackexchange_filtered
How to insert where condition in mysql query I will pass the query into this function query("SELECT * FROM table_name"); And the function is public function query($sql) { $resource = mysql_query($sql, $this->link_web); if ($resource) { if (is_resource($resource)) { $i = 0;...
common-pile/stackexchange_filtered
SpringXD Job is still executing even after forceful Server shutdown I'm trying to run a Job on SpringXD and the job has 7 steps, When I reach step 4 i'm shutting down the XD server. When I look into the Metadata of SpringXD I'm saving on OracleDB. I see that the Step 4 is in executing status and it will never change to...
common-pile/stackexchange_filtered
Flask-Sqlalchemy seemingly "caching" queries I'm writing a signup/login script for Flask, and I am using flask-sqlalchemy. To sign a user up, I INSERT their details into the db through flask-sqlalchemy, then commit the change. However, when they try to login, which fetches their details from the db, I get a NoneType er...
common-pile/stackexchange_filtered
How to build a post and comment editing form in a page? This plugin enables you to submit a custom post type called 'Questions' using a form that can be embeded in a page via shortcode. Is there a way of accomplishing the same, but this time, building a form and embedding it on a page to edit this custom post type and ...
common-pile/stackexchange_filtered
return what was not found in array in MongoDB say my database collection has * user collection* [ {id:'1'} {id:'2'} ] I have an array of object [ {id:'1'} {id:'2'} {id:'3'} ] I want the object that was not found in the collection. I want [ {id:'3'} ] I'm currently have this const records = await dbo .colle...
common-pile/stackexchange_filtered
What changes would I have to make to the following code in order to use Bootstrap to style it.? Normally I would just use basic PHP and MySQL and some simple CSS to style. However I like the look and feel of the Bootstrap framework and would like to incorporate it into my PHP, but am a relative newbie of where to begin...
common-pile/stackexchange_filtered
Plotting Grouped Bar Chart with variables sharing the same time index (grouped bar chart) R I am trying to plot some options data from Yahoo! finance - I'm sure this is super simple but I have simply hit a wall and have lost my patience. This code downloads the options data for several maturities for a stock, cleans it...
common-pile/stackexchange_filtered
JQuery : Get div defined in same table row I have an HTML table created dynamically using an MVC application and the output of the table is as shown below: In the onclick event of the edit button I want to show divText and hide divLabel of the same row using jQuery. I have tried to get divLabel as shown below: fun...
common-pile/stackexchange_filtered
Message after a data is inserted How to make a message appear in the top of the page when a form has been submitted and a record has been inserted in mysql below is my action.php page. <?php $email =$_POST["email"]; include "includes/db_config.php"; $sql = "INSERT INTO subscribers(email) VALUES('$email')"; if (mysqli...
common-pile/stackexchange_filtered
Price and settlement gain calculation in options on an index The Cboe S&P 500 Index Options - SPX are peculiar in that there is no underlying stock or ETF - they trade the index. I want to make sure that I understand the pricing. On the link above the following sentence can be read: Large Notional Size -- around $200,...
common-pile/stackexchange_filtered
HERE Maps API event delays When panning a map with the HERE maps API, the 'mapviewchangeend' event is triggered a short time after the animation completes. This means that is difficult to synchronise, say, a Leaflet overlay without the overlaid objects lagging behind. var map = new H.Map(document.getElementById('mapCo...
common-pile/stackexchange_filtered
Prove that if the derivative $f'(x)$ of a function exists on the measurable set $E$, then $f'(x)$ is measurable on $E$. Prove that if the derivative $f'(x)$ of a function exists on the measurable set $E$, then $f'(x)$ is measurable on $E$. We are told to only consider 1 dimensional spaces,that f is a measurable funct...
common-pile/stackexchange_filtered
Javascript parse response text from xmlhttpresponse I have the following text returned in an xmlhttpresponse and I need to parse it by the pipe separator. It should return an array where position 0 is Block1, position 1 is the nodename json data, position 2 is the userid data. ({"body": "Block1|[{\"nodeName\":\"DIV\",...
common-pile/stackexchange_filtered
Why is the default port for my local react application 8080? When I create a local react application, the default url is http://localhost:8088/ But should it not better be port 80, since port 80 is the port for web server that listening to http requests? I'm sorry by the way. It seems I've misread the 8088 for 8080.....
common-pile/stackexchange_filtered
Does traffic policing reduce transmission speed or it reduces the speed of the interface in which it was configured? I have a question about traffic policing and more specifically, related to traffic control (tc) in Linux. I'm not too familiar with networking, so please excuse my technical terms. I have configured eth0...
common-pile/stackexchange_filtered
Plugin dependency has package for which I get a "type <type> cannot be resolved" error I don't know what I did, but what was once working no longer works. I am calling a function that returns an instance of a particular class, call it MyClass. MyClass depends on another class, MyOtherClass that is defined in a package....
common-pile/stackexchange_filtered
Passing values into a Vector3f I want to be able to pass 3 values to an object which are then stored in a class called Vector3f. Vector3f has x,y,z values; I.e: Object(Vector3f Position); //Class constructor Object myObject(0,10,20); //Declare object Is this right? Or would I have to do: Vector3f vect(0,10,20); Objec...
common-pile/stackexchange_filtered
Creating an IF statement in Python that looks at previous IF statement output I am having difficulty creating an IF statement that does the following: If C1 = Buy, then Buy If C2 = Sell, then Sell If C1 & C2 = nan, then the current cell = previous cell Please see an example below. I am hoping to create a column like ...
common-pile/stackexchange_filtered
Inserting data to MySQL with VB .NET Please help, whats wrong with my vb.net code to insert values in an MySQL database Dim conn As New MySqlConnection(ConfigurationManager.ConnectionStrings("ibdm").ConnectionString) Dim cmd1 As New MySqlCommand("INSERT INTO configs(configType, portsStatus, bandwidthLimit, port...
common-pile/stackexchange_filtered
Update database with a live choice made by client How to update a specific cell in phpmyadmin with jQuery after appending a specific div to a group, code is below <div id="item1">Item 1 <input type="button" value="put me in Group1" name="I1G1"> <!-- I1=Item1 / G1=Group1--> <input type="button" value="put me in Grou...
common-pile/stackexchange_filtered
Affix NavBar overlaps the body when zooming Is there any way to prevent the navbar(with bootstrap affix plugin) from overlaping the body as it's shown here ? If it's on a touch device: https://github.com/twbs/bootstrap/issues/12157 -- the answer is no okay i'll leave like that :(
common-pile/stackexchange_filtered
how to access many parameters from the GUI I am writing a Java application that takes a lot of parameters as input (~100). I am exposing some of the in the GUI, but of course it is impossible to show all of them at once. I am curious if there is a shared way to let a user access a large amount of parameters like that....
common-pile/stackexchange_filtered