text
stringlengths
70
452k
dataset
stringclasses
2 values
Handling a very large list of options for a user I have an application that allows the users to select a location. Currently I have 5 locations to pick from, but I'd like to expand this to use a master list containing about 100 options. I also need to have the user's preference saved. Currently, my working code works a...
common-pile/stackexchange_filtered
Adding common functionality to Buttons without using classes I've been trying to build a forum page from scratch for my internship (I know I can get software for that online but I'm doing this mostly for the learning opportunity). Upon opening the page you can see all the different topics and when you click on the topi...
common-pile/stackexchange_filtered
Can I ask for someone to post some photos from a camera? Can I ask someone to post some images from a particular camera without getting the question down-voted? This is not a good Stack Exchange question — in fact, it's not really a question at all, but a service request. You're asking for someone to make a photograp...
common-pile/stackexchange_filtered
How to animate Form cell to [dis]appear? I have the following: struct HelloView { @State private var name: String = "" var body: some View { NavigationStack { Form { Section { TextField("Enter your name", text: $nam...
common-pile/stackexchange_filtered
JAVA While loop - last else if statement not working package javaapplication1; import java.util.Scanner; public class JavaApplication1 { public static void main(String[] args) { System.out.println("What is the password?"); Scanner new2 = new Scanner(System.in); int input = 0; while(...
common-pile/stackexchange_filtered
How can I extend my code do divide by a 64bit integer? (128bit / 64bit) My problem is that my Code just divides the 128bit by a 32bit integer but not by a 64bit. I know there are some instructions like _umul128() or __uint128_t for this, but I need a portable version. The code only work when the divisor is smaller than...
common-pile/stackexchange_filtered
how to search a part of a string not all of it in c++ how to search just a part of a string starting from startIndex and ending after some count of chars. in some cases I just need to search the first 5 chars for a special char or string why will I have to come over the whole string it may be 1000 chars or multiples of...
common-pile/stackexchange_filtered
Cannot create EVENT LOG under ASP .NET MVC3 I try to create simple Log and use this method but I get an error about Admin. rights. How is it possible? I see the app. has all admin rights. public static void WriteToEventLog(string message) { try { string cs = "WebReports";...
common-pile/stackexchange_filtered
How to add working place autocomplete by passing paramerter Im not able to get place autocomplete so what should i do? <input class="form-control" name="loc[]" onkeypress="return initialize(input);" required> js code: function initialize(input) { var autocomplete = new google.maps.places.Autocomplete(input); } googl...
common-pile/stackexchange_filtered
How to implement compareTo in a generic method that takes a generic array as argument? I'm trying to implement a method, that, given a generic array, and two index values, slice the array, and find the largest element between the two given numbers. <T extends Comparable<? super T>> T max(T[] array, int firstIndx, int s...
common-pile/stackexchange_filtered
MBProgressHUD with Swift, Fabric & TwitterKit I'm using Fabric and TwitterKit to show a timeline at my Table View. At my code I'm using a dispatch_async function. I want to start the MBProgressHUD and after the timeline was loaded I want to disable the HUD. Unfortunately my HUD is appearing only for less than one secon...
common-pile/stackexchange_filtered
Grails 2.1.0 Not Auto-Reloading / Auto-Recompiling Seems that Grails does automatically recompile my GSP pages, but not my controllers. It used to work with the previous version of Grails. Any idea what I can look for? Using Grails 2.1.0 on OSX Snow Leopard. Note: This is similar to this issue So you use grails rA? Tr...
common-pile/stackexchange_filtered
MMORPG game server data storage performance When writing a MMORPG game server... Which storage design is better: Should I only save character data from specific times? On character log-out. User disconnect. From time to time. (every few minutes) Should I save it immediately? Which would make writing be more extensiv...
common-pile/stackexchange_filtered
mysql combine two queries into one query I have two working queries. The first one selects the observed temperatures of a given month. The second selects the normal average for each day of that month. SELECT data, Tmax, Tmin, Mitjana, Pluja FROM $estacio WHERE data BETWEEN '2014-03-01' AND '2014-03-31' SELECT data...
common-pile/stackexchange_filtered
DHCP server on bridged Ethernet/Wifi not working; Windows 7 I live in an apartment complex that provides Wifi. I have my Windows 7 laptop connected to this Wifi, and that works fine. I have setup a network bridge between Wifi and the Ethernet port. I have also installed the DHCP server from http://www.dhcpserver.de/. I...
common-pile/stackexchange_filtered
How to Return a value into a method? I am not sure i am using the right choice of words. I have this variable fibo2 and inside there is another variable nearclose. nearclose is coming from the result of a process of formulas. At the end of the script nearclose return a number, lets say 10. It returns 10 because fibo2 s...
common-pile/stackexchange_filtered
How to understand the AIC formula in matlab What I'm acquainted to is the AIC formula given in wikipedia, that is AIC=2k-2ln(L) where k is the number of parameters and L is the maximized likelihood for a given model. Whereas the AIC given in Matlab (see here) is AIC=N*log(det(1/N*sum_1^N(εε')))+2n_p+N*(n_y*(log(2π)+...
common-pile/stackexchange_filtered
Aux vs VCA in Pro Tools? I'm in the middle of redoing some of my pro tools templates and was wondering if anyone could explain the advantages of using a VCA over an aux track to route my submixes to? Many thanks Using an aux track would require you to re-route the audio of each track involved into the aux, and recordi...
common-pile/stackexchange_filtered
Who's this person in the middle of the auditorium supposed to be? During the teacher's monologue (s01e04 @13:30) about how sometimes it's better to not say anything (or to say less), this scene is shows which doesn't look like the class usually looks, and I'm fairly certain this is supposed to be a reference to another...
common-pile/stackexchange_filtered
Aggregate functions, Lack of Types, Entropy in Query problems on NoSQL DBs While we believe that NoSQL Databases have come to fill a number of gaps which are challenging on the side of RDBMS, i have had several challenges over time with NoSQL DBs in the area of their query eco-system. Couchbase for example, like its m...
common-pile/stackexchange_filtered
in Torch, why is NIN and VGG19 network 1-top predicting always 670? I'm working with Torch7 on Ubuntu, I'm trying to apply a deep neural Network that trained on ImageNet2012 such as NIN or VGG19 to a single image. This is my code. require('image') require('nn') require('pretty-nn') net = torch.load('NIN_Test/NIN_Ima...
common-pile/stackexchange_filtered
Different values of checkbox for different members? I'm trying to make a 'learning' site, something similar to Codecademy but for a small company. The setup at the moment is that I have a Training channel, with description and courses channel fields. Courses is a grid field with the name and title of the resource (so a...
common-pile/stackexchange_filtered
Best caching strategy data that is updated frequently (Redis/Memcached vs Nginx/Varnish vs Materialized view) I am currently running an AWS EC2 Ubuntu server that fetches data from a Postgres RDS database instance. One of the SQL queries used in a view function for a particular page has a lot of joins in it and runs qu...
common-pile/stackexchange_filtered
Copy animation from object to bone using python I have multiple animated objects and an armature with an equal amount of bones. I want to transfer the animation from the objects onto specific bones. How can I do this using python? I would look into constraining the armature bones to the objects and baking the animatio...
common-pile/stackexchange_filtered
Why does the text inside a button overlapses when I added a background img? Update: I've updated my code (thanks to, Kodos Johnson). But I have another problem with the padding for the background image. When I tried adding a background image inside my button, the text inside it moves outside the button. Can someone pl...
common-pile/stackexchange_filtered
how can i add single firebase node into listview? I want to add name node in the list view, how can I add a single fireplace node into listview? I tried several things but unable to do it please anyone tell me how to do this, this is my code I am getting error in txt_one. setText(tecnames); it says that it should be c...
common-pile/stackexchange_filtered
pronunciation of sinh x, cosh x, tanh x for short I heard teachers say [cosh x] instead of saying "hyperbolic cosine of x". I also heard [sinch x] for "hyperboic sine of x". Is this correct? How would you pronounce tanh x? Instead of saying "hyperbolic tangent of x"? Thank you very much in advance. I remember with amu...
common-pile/stackexchange_filtered
How is 好き used in "僕が好きなのは " I was reading an example sentence: 僕が好きなのは日本料理ではなくタイ料理だ Here, I understand that 僕 is the subject in the first part of the sentence 僕が好きなのは. But as I understand the sentence as a whole, it means that: I like not Japanese dishes but Thai dishes. But 好き describes the subject as the one bei...
common-pile/stackexchange_filtered
Flexbox: How to write a simple responsive side-by-side article layout? Simple idea: 2 articles side by side, unless their width is below a threshold (e.g. 400px) in which case the articles get arranged vertically. Either way the content should fill the width of the viewport. The snippet below is partially right. Each a...
common-pile/stackexchange_filtered
getting error: "Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" while commiting the build code I have used the following command for making build file of my project : node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod --build-optimizer=false. the...
common-pile/stackexchange_filtered
Print Number and the Variable before it in Python I have some code that asks for user input then adds it to an array, after the user has entered his/her inputs it then picks the lowest integer and displays it. my_array = [] while numberoftries <= numberofcities: print("Please enter city", numberoftries) city = ...
common-pile/stackexchange_filtered
What happens when a photon is absorbed by an object? What happens with the object when it absorbs a photon by not reflecting it. Does its mass grow or its heat grows? Consider that 1) Photons are massless particles 2) When an object is in thermal equilibrium, it absorbs as much radiation as it radiates itself (otherw...
common-pile/stackexchange_filtered
Write data to with userID and read data with userID I want to write data to firebase with a userID, because later I only want to retrieve the data the user saved. The first problem is when I read data to firebase only the values change, but I want that the values append to firebase with the userID. I only want to retri...
common-pile/stackexchange_filtered
Which documentation system uses this format? #pragma region INFO /* * @ FUNCTION: GetSubStrBetween * * @ PARAMETER(s): * [1st] std::string &in_Str = This paramter takes in a std::string, which * is the string that contains the unknown sub-string. * * [2nd] std::string in_A = This parameter t...
common-pile/stackexchange_filtered
Call to undefined method Illuminate\Database\Query\Builder::unique() I'm using database Query Builder in Laravel (5.5.46). In my database, one column has not unique values, so I want all the values from that column should be distinct or unique. I used distinct() method but it discarded my repeated value. So I used uni...
common-pile/stackexchange_filtered
Python if, elif It's really basic stuff but it gets on my nerves; Why this code doesn't work properly? for i in range(0, 101): if i % 3 == 0 and i != 0: print '{} Three'.format(i) elif i % 5 == 0 and i % 3 == 0 and i != 0: print '{} FiveThree'.format(i) else: print "{}".format(i) Is it bec...
common-pile/stackexchange_filtered
ANTLR expression with optional operator + custom AST nodes recently I had to make a grammar for expressions like: rule1 & rule2 & rule3 => produces binary tree (AndNode (AndNode RuleNode(rule1) RuleNode(rule2)) RuleNode(rule3)) rule1 | (rule2 & rule3) => produces binary tree (OrNode RuleNode(rule1) (AndNode RuleNo...
common-pile/stackexchange_filtered
Python - how can I reference a class variable or method from within the __init__ method? I have a hierarchy of objects in a python module as follows: class BaseObject(object): initialized = False def __init__(self): self._initialize() @classmethod def _initialize(cls): print "cls.initi...
common-pile/stackexchange_filtered
Parse a multiline email to var I'm attempting to parse a multi-line email so I can get at the data which is on its own newline under the heading in the body of the email. It looks like this: EMAIL STARTING IN APRIL Marketing ID Local Number ------------------- ...
common-pile/stackexchange_filtered
Getting ERR CERTIFICATE TRANSPARENCY REQUIRED whenever application is opened through automation I am trying to test my angularjs application on mobile devices. I have setup all required tools such as protractor, appium, android avd. When i am trying to execute test scripts, i am getting "your connection is not private"...
common-pile/stackexchange_filtered
Oracle Security - how to prevent a User from DROP TABLE its own tables As security tightening exercise, I'm removing all system privileges from an oracle database user. Now this user ONLY has the following system privileges: CREATE SESSION UNLIMITED TABLESPACE I was hoping that the user wont be able to do any DDL com...
common-pile/stackexchange_filtered
How to Add My Website Listings in Google Cloud https://cloud.google.com/training/courses How to add my training programs in the above provided source. Also, please check the attached screenshot for reference Try applying to join GCP's partner program - it looks like those are listings from partners.
common-pile/stackexchange_filtered
Apache storm supervisor stops automatically I have used two systems to configure apache strom cluster. system1: Zookeeper server Nimbus UI System2: Zookeeper client Storm supervisor When I start storm supervisor by, .\storm supervisor in power shell command line, it started, but after few seconds it automaticall...
common-pile/stackexchange_filtered
C++ Passing arguments to a function Recently i started to program in C/C++, but i find it a little bit hard to understand certain things. For example, my vertices.h file: #ifndef _vertices_h #define _vertices_h typedef struct { float XYZW[4]; float RGBA[4]; } Vertex; extern Vertex Vertices[]; extern GLubyte I...
common-pile/stackexchange_filtered
Datatable.acceptchanges() commits data to the table Datatable.acceptchanges commits data to the table...means will it insert data to the table ..or datatable? DataTable. Not the table in db. The purpose of AcceptChanges() is to let the DataTable know that its data has been saved to the database. All DataRows in the D...
common-pile/stackexchange_filtered
terminal inserts characters after CTRL+C in some of my applications (ArchLinux, Gnome 46) some chars are appended to my username when using CTRL+C to abort a script. Sometimes also in the middle of bash scripts, which makes it a bit painful: (venv) [me@mydesk ansible]$ ^C [me@mydesk ansible]$ \x1b]633\x3bB(venv) [me@my...
common-pile/stackexchange_filtered
"Warning: parsing failures" in readr package in R read_table2() I have been trying to process a fairly large file (2 million-plus observations) using the reader package. However, using the read_table2() function (for that matter, read_table()) also generates the following error: Warning: 2441218 parsing failures. row ...
common-pile/stackexchange_filtered
Calculating LOC from GIT commits I'd like to calculate the number of lines of code I have modified over a period of time using git commits. I used the below command git log --shortstat --author="xxx" --oneline --before="2018-04-31" --after="2018-04-01" > commit_info.txt But, this includes the empty lines and the co...
common-pile/stackexchange_filtered
How to display two different profiles of Firefox running under two different icons on my dashboard? I have two different .desktop files for my two Firefox profiles. Both have different icons and are pinned separately to my dash, but when they run they both run under the default icon. How can I change this so they run s...
common-pile/stackexchange_filtered
* is not a function error when creating a class in javascript i have just started to making class in javascript, this is my first class that i have created something like: function MessageBox(parent){ this.id = "msg-box"; // ID for the Box this.createElements(this.id); this.parentElement = parent; }; Mes...
common-pile/stackexchange_filtered
User-Defined Join of two DataTables I have created an application where the user can specify queries to databases, maybe even different databases. They would like to have functionality to join the two query results (stored in DataTables) together on user-specified criteria. The user specifies the join criteria in an X...
common-pile/stackexchange_filtered
Configure nginx for different ports I have set up my nginx configuration on which I am running two websites on same port .My problem is I don't want to specify port number whenever I opening my website .I am running my websites on port 81 .My problem is if I have these two website abc.com:81 and xyz.com:81 .I need to i...
common-pile/stackexchange_filtered
How do I return back to the first collectionview cell item? I'm working in UICollectionViewCell for my mobile app. When you tap the crossBtn it should go to the first UICollectionViewCell with reloading the data but collectionView?.reloadData() makes the colours messed up and it doesn't stay to one colour at a time per...
common-pile/stackexchange_filtered
Assigning a hostname of the fqdn assigned to a dhcp client with dnsmasq? I'm aware that you can assign static DNS entry names by doing the following in dnsmasq.conf: address=/wiki.leerdomain.lan/<IP_ADDRESS> ptr-record=wiki.leerdomain.lan/<IP_ADDRESS> and then assigning a static ip address using the mac address of the...
common-pile/stackexchange_filtered
How to restore asp.net identity tables after deleting them manually? I added identity to my context class using Microsoft.AspNetCore.Identity.EntityFrameworkCore and that created all my aspnetroles, aspnetuserlogins,... tables. However, I wanted to start over and deleted those tables from my database. Now I cannot seem...
common-pile/stackexchange_filtered
Download HTML page Using PHP and Ajax I want to download html page using php and ajax. For now i am using the link like this: <a href="https://www.example.com/page.html" download>Download</a> Is there a way to do this using php and ajax? Thank you in advance for your answer. Note: This answer is not worked for me i ha...
common-pile/stackexchange_filtered
why does my if statement function only assign my print message to the last key-value in my dictionary in python favorite_languges = { "John": "Python", "Aisha": "C", "Newton": "maths", "Budon": "C++", } # for loop to print all keys for name in favorite_languges.keys(): print(name.title()) # for loop to print mes...
common-pile/stackexchange_filtered
What am I missing here? Join Statement/ Group by? I currently am new to SQL and I was wondering what the primary difference is between the 2 queries as to why one gives me more records and duplicates and as to why the other gives me the correct output that I am looking for. Currently this is the desired output I want w...
common-pile/stackexchange_filtered
Im have a <form> that i am posting in an INSERT INTO query and I need to be able to nest a query inside of a query? My question is pretty confusing but here we go. I a that i am using to post data into the 'blogposts' table. My problem arises for the last value of the query to be inserted is a picture(BLOB). This d...
common-pile/stackexchange_filtered
Apex @RestResource returning result inner class exposes private attributes Any simple @RestResource may return results in the form of an instance of an inner class. I expect any private attribute of the inner class to stay exposed only to the inner class, thus not be streamed out into the @RestResource results. However...
common-pile/stackexchange_filtered
Get all the ID of the files I'm working on a folder per grade level with the same content. I used the IMPORT RANGE function to connect the spreadsheets. So I need to update the IDs every time I create another grade level. May I ask if it is possible for me to get all the IDs of all the files that I'm working on without...
common-pile/stackexchange_filtered
SQLAlchemy return only groups that follow some condition for all grouped rows in a group_by Let's say I have two tables, A and B: class Status(Enum): COMPLETED = "COMPLETED" FAILED = "FAILED" class A(Base): id = Column(String, primary_key=True) status = Column(Enum(Status), index=True) class B(Base): ...
common-pile/stackexchange_filtered
What is the optimum PC level for Death Frost Doom? The 2014 edition of Lamentations of the Flame Princess adventure, Death Frost Doom, says that it is "suitable for low level characters". I've read the adventure thoroughly, and am aware that it can be randomly deadly for any level of PCs, but I would like to hear from ...
common-pile/stackexchange_filtered
ScriptManager error while loading a page I just put an ASP:scriptmanager within my login page and for the use of a tag cloud. And after login providing uname and pword redirect to home page. My home page consists of a master page and I put an ASP:scriptmanager within the master file. But when the home page loads, the f...
common-pile/stackexchange_filtered
ASP.NET MVC3 JQuery Validate Plugin custom error Placement I am trying to handle errorPlacement JQuery Validate plugin in ASP.NET MVC 3 Project with Unobtrusive validation provided by Microsoft. I am never able to hit the errorPlacement function and I am not sure what am I doing wrong. I am providing the code for Model...
common-pile/stackexchange_filtered
Intermediate values (interpolation) after Runge-Kutta calculation I have a numerical ODE simulation that I computed at fixed time step $h$ using a 4-th order Runge-Kutta method (RK4), producing a series of results $(x_1,y_1), (x_2,y_2), (x_3,y_3) \dots (x_N,y_N)$. If I want to find an approximate solution $y$ at a loca...
common-pile/stackexchange_filtered
What is the running time of insertion sort if every item in the input array is, say, at most 10 positions out of place? What is the running time of insertion sort if every item in the input array is, say, at most 10 positions out of place? I know insertion sort is where you compare the adjacent elements starting from t...
common-pile/stackexchange_filtered
Minimum of random variables independent of index Let $T_1, \ldots, T_n$ be mutually independent random variables with exponential distributions of rate $\lambda_1, \ldots, \lambda_n$ respectively. Define $V= \min T_i $ and a random variable $I$ that assumes value $i$ if and only if $V=T_i$. How can we prove that $V$ an...
common-pile/stackexchange_filtered
what is defference between django rest framwork's 'serializer' and 'serializer fields' The serializer of django rest framework converts the model data to JSON format and validates incoming data Check function. The functions of the serializer fields are to convert values ​​and data types and to validate input values. I...
common-pile/stackexchange_filtered
Skype: How to make it text chat only? I would like that my Skype contacts can contact me over text chat only. Is that possible? If so - how to set that up? Thank you. What do you mean, exactly? Do you want contacts not being able to call you, is that it? Exactly. No call and no webcam chat, just text chat. You can ...
common-pile/stackexchange_filtered
How to create multiple dataframes derived from ascending/descending condition of one dataframe's column I have one big dataframe looking like this delta_V Vsd current time_(s) Vg_out 0 -0.050 -0.198 -2.390e-06 3187.472 9.799 #local maximum 1 -0.047 -0.198 -2.444e-06 3188.0...
common-pile/stackexchange_filtered
read and write txt using scanner java I´m sorry for being so noob using Java, I have the following problem: I want to access 8 txt files and build an array with the same point from each file; for example, output(1,1)=[file1(point(1,1), file2(point(1,1), file3(point(1,1),file4(point(1,1), file5(point(1,1),file6(point(...
common-pile/stackexchange_filtered
I want to export some data from LinkedIn Sales Navigator through API Seems that Linkedin is not providing any way to do this. Any suggestion? in what language? If there is any way- I can opt any language..preferably Java or php
common-pile/stackexchange_filtered
Nodejs Rest API : UnhandledPromiseRejectionWarning: TypeError: News.find is not a function I seem to keep getting the error when I hit the news api UnhandledPromiseRejectionWarning: TypeError: News.find is not a function I read up on Promises but could not solve this. Is this a mongoose thing? How should I solve this?...
common-pile/stackexchange_filtered
Shortenned path still throwing PathTooLongException I need to create files with path exceeding the MAX_PATH limit. What I expected to work is to shorten the already existing directory name like this: public static String GetShortPathName(String longPath) { StringBuilder shortPath = new StringBuilder(longPath.Length...
common-pile/stackexchange_filtered
Why AVCaptureSession output a wrong orientation? So, I followed Apple's instructions to capture video session using AVCaptureSession: http://developer.apple.com/iphone/library/qa/qa2010/qa1702.html. One problem I'm facing is that even though the orientation of the camera / iPhone device is vertical (and the AVCaptureVi...
common-pile/stackexchange_filtered
Does CBT help with non-sexual crime recidivism rates? In the same vain as a previous question I asked, (Are Sex Offender Treatment Programmes (SOTPs) effective?) I am wondering if CBT (Cognitive Behavioural Therapy) based therapies and interventions have helped with recidivism rates of non-sexual crimes. Considering SO...
common-pile/stackexchange_filtered
Subtraction between two series on pine script I have a indicator that I need to plot the difference between 2 series: Close Price ans FastSMA. When i try to plot the difference the result is a plot that is not ok. my code: //@version=3 study(title="Simple moving averages example", overlay=true) // Calculate moving ave...
common-pile/stackexchange_filtered
Get the content of first cell in the column after onEdit() activeCell trigger I have a Spreadsheet with A1->J1 as TITLES ex.(ProductName, Price etc.). Now my script works but I have problems getting the content of the first row. Lets say I add a new entry in A20, now the activeCell is A20, but how can I also get the A1...
common-pile/stackexchange_filtered
vb.net - Can i add the content of a txt to my program? I was wondering if there is a method to "finish" a program from a txt for example if i have a script like this : Private Sub ButtonNum_Click(Index As Integer) If Num_of_digit > 0 Then If Num_of_digit < 30 Then panel. Caption = p...
common-pile/stackexchange_filtered
Mixed English and Arabic URLs recommended format I have a global brand that needs localization. I have a single .com domain name, with different language versions in separate directories. Example: domain.com/en/ domain.com/fr/ domain.com/ar/ We're using ahreflang tags to make sure Google shows the correct language ve...
common-pile/stackexchange_filtered
Obtain the maximum frequency only for each factor So this gives the entire list with what I needed: max <- function(x) { n <- data.frame(x) factored <- n[sapply(n, is.factor)] dt_res = data.frame() for (i in 1:ncol(factored)) { dt_temp = data.frame(t(table(factored[, i]))) dt_temp$Var1...
common-pile/stackexchange_filtered
Daterange split with individual start and end dates in Pandas I'm working in Python with Pandas, and need to divide a date range in multiple date ranges - and need both the start and end dates for these ranges So something like: pd.date_range(start='20180301', end='20180311',freq='3D') should generate a list with two...
common-pile/stackexchange_filtered
Pyinstaller can't find module TkTreeCtrl I have a program that makes use of the MultiListView from TkTreeCtrl which I'm trying to compile into an executable file using pyinstaller. I'm able to create the executable file and run it, however as soon as it gets to the initialization of the MultiListView it throws up a win...
common-pile/stackexchange_filtered
Magento: remove requirement for Telefone field Who can help with removing requirement for Telefone field? I tried solutions: http://www.magentocommerce.com/boards/viewthread/10948/P0/ http://www.magentocommerce.com/boards/viewthread/199287/ but without luck... P.S. I use Magento ver. <IP_ADDRESS> Try In your DB table ...
common-pile/stackexchange_filtered
Tika PDF to html truncates content of <li> tags which exceeds 254 characters I am trying to convert a PDF document to HTML. It works fine but when it converts any list which contains more than 254 characters, it truncates the content and appends .... Following is the code that I use to convert the document, public sta...
common-pile/stackexchange_filtered
How to import jQuery from @ember/jquery I am trying to import @ember/jquery in my component. I have installed @ember/jquery and @ember/optional-features and imported as below import $ from '@ember/jquery' but I am getting the following error in my component: error missing module @ember/jquery Is this the right way t...
common-pile/stackexchange_filtered
Why is this class in my Java 6 JDK look like the Java 5 version? I'm running IntelliJ with Java 6 to build my project. I'm doing a clean checkout via SVN and trying to do a mvn clean install It runs successfully but then when I try to deploy my application I get a compile time error. It says that I'm trying to use a...
common-pile/stackexchange_filtered
Volume of a solid of revolution around the line $x=2$ I would like a hint to help me solve this question. Find the volume of region B by rotating the region around x = 2. This is what I have worked out: Outer radius $= 2$ Inner radius $= 2 - \sqrt{y -2}$ $$V = \pi \int_{ 0 }^{ 6 }{ 2^{ 2 }-{ (2-\sqrt { y-2 } )) }^{ ...
common-pile/stackexchange_filtered
How to calculate the value of following triple integral? What is the volume of the region that lies under the sphere $x^2+y^2+z^2 = 9$, above the plane $z = 0$ and inside the cylinder $x^2+y^2 = 5$. For me value should be $$\int_{-\sqrt{5}}^{\sqrt{5}}\int_{ -\sqrt{5-x^2}}^{\sqrt{5-x^2}} \int_{z = 0}^2 dz dydx$$ I am r...
common-pile/stackexchange_filtered
setting the Id of button in Jquery Templates I am creating a Ajax method to call a c# Webmethod. My returned JSON looks like this You'll notice that instead of returning d[0], d1 etc, i'm using a keyValuePair to set the Id of the each item, so that I can then set this to the Id of the button. Alas, this is where I nee...
common-pile/stackexchange_filtered
How to make child RecylerView Vertical Scrolling? I am implementing the nested recyleview ,my view contains two recylerview and both have to scroll vertically as per implemetation , but i am facing the problem when i start scrolling the child recylerview then parent recylerview start scrolling. What i need , when i scr...
common-pile/stackexchange_filtered
git produces no output when called from script via cron (log/shortlog) I've got a script git-test going to a local git repo and calling git shortlog to keep track of recent changes. For testing purposes, I just used these lines: #!/bin/bash cd /myrepo.git result="$(/usr/bin/git shortlog -3)" echo "$(date):$result" >> /...
common-pile/stackexchange_filtered
t4 toolbox - Preprocessed template - Dispose(bool)': no suitable method found to override I have been using T4Toolbox with the custom tool 'TextTemplatingFileGenerator' and everything has been working great. Recently, I have been in the process of trying to start using preprocessed templates (i.e., with the TextTemplat...
common-pile/stackexchange_filtered
Currency based on payment Gateway in backend only woocommerce Have have a custom plugin for my local payment method, we are using multicurrency on our website but our payment method only accepts the payment in 1 currency, I am are using 2 currencies USD and AED Payment methods, Paypal, and Our Payment gateway. The norm...
common-pile/stackexchange_filtered
Add Parameters to Google Cloud Tasks I want to add a parameter to the Cloud Tasks that can then be retrieved from the Task handler using: request.getParameter("paramName"); Previously in App Engine Standard I would do the following: TaskOptions options = TaskOptions.Builder.withUrl(backURL) .param("par...
common-pile/stackexchange_filtered
WordPress Bootstrap multilevel Vertical Menu I am working on two column bootstrap based WordPress theme where i want to implement multilevel Vertical menu.. After trying for hours somehow i have achieved success in creating responsive multilevel vertical menu in HTML/CSS for which i have shared the code below. I want t...
common-pile/stackexchange_filtered
R - replace: how to make changes verbose, i.e. "X replacements were made" In R when you make a replace I would like a fast way to check that my expectations were satisfied, for example: data("mpg") hist(mpg$cyl) So only a few cars have 5 cylinders, in fact count(mpg[mpg$cyl == 5,]) will get you the exact amount, 4. I ...
common-pile/stackexchange_filtered
PHP version of Javascript Modulus operation I'm looking for a PHP version for the Javascript modulus (%) operation. I need to get this for some mapping algorithms I'm trying to port to PHP. When I use PHP's bcmod, my results are off some. Here's what I have so far. public static function mod($operand_str, $modulus_res)...
common-pile/stackexchange_filtered
I want to put a button in a echo table cell Here is part of my php- echo "<table border='0'>"; while($list = mysql_fetch_assoc($result)) echo "<tr>"; echo "<td>" . $list['SALEPRICE']."</td>"; I want to put a button at FOLLOWING BUYURL with link. echo "<td><a target='new' href=\"" . $list['BUYURL'] . "\"><b>VISIT STOR...
common-pile/stackexchange_filtered