text
stringlengths
70
452k
dataset
stringclasses
2 values
Outlook shows save confirmation dialog (message lose digital signature in case of saving) in Application.ItemSend event handler I'm developing Outlook VSTO add-in that checks Outlook.MailItem attachments. As far as I need to get access to internals of OLE and .msg file (embedded)attachments, I use glue with C++ Extende...
common-pile/stackexchange_filtered
What is the powersource of the Avenger's Helicarrier? In The Avengers, SHIELD owns a massive air-borne aircraft carrier (called the Helicarrier). Is the power source for this massive vehicle known and if yes, what is it? MCU-based answers would be preferred, but any Marvel-based source or even speculation based on Mar...
common-pile/stackexchange_filtered
Expose web server running on Android on Verizon 3G to the internet? It is possible to serve web pages from a android phone over 3G network to the internet? It depends on your network provider. Most of them place phones into walled garden behind NAT - so it is not possible to reach them from outside. How would I fin...
common-pile/stackexchange_filtered
Iterative model fitting I have a sequence of points $\{(x_k,y_k,z_k)\}$ and I need to fit some $2D$ model $P(x,y)$ that approximates $z$ in some sense. The $z_k$$'s$ are noisy samples of some $2D$ function $z_k = f(x,y) + n(x,y)$. The noise $n$ is mainly shot noise ($std(n(x,y)) \approx \sqrt{f(x,y)}$). The noise in $x...
common-pile/stackexchange_filtered
Check for empty arrays in Hasura I have the following Query: query { table1(where: {table2: {id: {}}}) { id } } There is a relationship between table1 and table2 via a foreign key. That is, in table2 I have a column named table1_id and so I can access table2 from table1. I want to query all rows from table1 t...
common-pile/stackexchange_filtered
How to plot images of different size at the same resolution? A collection of images are plotted as follow: figure(num=None, figsize=(16, 14), dpi=300) k=1 for i in range(1,10): for j in range(1,6): subplot(9,5,k,xticks=[],yticks=[]) imshow(rgb_chromosomes[k-1],interpolation='nearest') k=k+1 ...
common-pile/stackexchange_filtered
Angular2 PWA / Safari can't open a link in new window I am working on a web app, which, when added to HomeScreen, will act as a standalone app, meaning there are no browser UI available. At one point I need to open a file, the URL to which will be generated only when the link has been clicked. Here is the template: <a ...
common-pile/stackexchange_filtered
RXTXCommDriver problem Hi i have simple code: import gnu.io.CommPortIdentifier; import java.util.Enumeration; public class test { public static void main(String[] args) { Enumeration pList = CommPortIdentifier.getPortIdentifiers(); while (pList.hasMoreElements()) { CommPortIdentif...
common-pile/stackexchange_filtered
CLI not working with save(); due to other observer checking for Role Here is my code. I have a simple batch script I'm testing. I can't get save() to work at all. I can get saveAttribute... to work. All this simple test would be update status. We will use it for many other things, but I'm just getting the construct to...
common-pile/stackexchange_filtered
Lossless video trimming with milliseconds using FFMPEG I've spent a few weeks going through and testing all the answers on here for lossless cutting using FFMPEG on Android. No matter what I try I always get loss. In the app we're building we need to be millisecond precise. I've tried so many variations of the command ...
common-pile/stackexchange_filtered
TypeError: Cannot read property 'group' of undefined I am trying to map over state from redux store and im getting the error TypeError: Cannot read property 'group' of undefined Im sure the data is coming in correctly but Im not sure if im mapping over this the wrong way to render the contactDetails?.contact?.data?.gro...
common-pile/stackexchange_filtered
How to make a linq statement if a record exist I am trying this but it doesn't work how can i correct this. Actually i faced two conditions in both the case first i need to check if record exist, in first case if it exist i want assign some value not from edmx, in second case if record exist i want to assign value from...
common-pile/stackexchange_filtered
char *newx=p+strlen(str1); how this will execute because strstr will return the pointer to the first match character of the another string I can not understand how this code will execute. As far as I know, strstr() will return a pointer to the first letter of the matching string. So, how can we do char *newx=p+strlen(s...
common-pile/stackexchange_filtered
RSS feed Null Pointer Exception Basically I created a separated RSS which works. I used DOMParsing and a custom adapter for the listview appearance. But now I decided that I want to have that list under a Tab representing a specific category of an rss feed(ie breaking news,educational new and so on). Here is my code. p...
common-pile/stackexchange_filtered
Can I add columns to filtered data without it all being mismatched when the original data is reorganized? I'm creating a tech inventory spreadsheet in google sheets, and am trying to figure out how to add additional columns to filtered data. The inventory has a main spreadsheet "All Tech Inventory". Some of our tech ar...
common-pile/stackexchange_filtered
Update Column using Loop in SQL Server Hi I have a Table that have a Primary Key [UserId] now I have just added another Column called [ReferenceNumber]. And ReferenceNumber required to update values copied from UserId in reverse. For Example: if userId =12 then ReferenceNumber would be updated by 21. I have to loop t...
common-pile/stackexchange_filtered
Qt / QTableView / SQLite how to connect? This is my first time Qt programming. I am to make an address book on relational database to keep track of calls and events, related to persons and companies. A simple home-made sales tool. I am in great need of it. Using Qt Designer I have created a main window and placed a QTa...
common-pile/stackexchange_filtered
Proof that $f(x) = \frac{xa^{x-1}(1-a)}{1-a^{x}}<1$ for $x>1$. I have a problem. This problem seems easy, but after I try, I feel this is hard. Let $a \in (0,1)$, let $f(x) = \frac{xa^{x-1}(1-a)}{1-a^{x}}$. Proof for $x>1$, $f(x) < 1$. I already draw the graph and this is true. I also had try to proof this using standa...
common-pile/stackexchange_filtered
Rails: sending ajax object using Jquery and keeping datatype on rails I'm using Jquery for creating object and sending to server: data = {}; data.number = 5; $.ajax({ url: 'some_link', type: 'POST', dataType: 'json', data: data, success: function() { alert...
common-pile/stackexchange_filtered
MongoDb regex search in array objects I have the following collection: { "invoice": { "data": [{ "name": "VOUCHERNUMBER", "value": "59302311" }, { "name": "VOUCHERDATE", "value": "2020-02-20" } ] } }, { "...
common-pile/stackexchange_filtered
Deleting data from a file in C++ I'm not sure why if I store the name of the file in a variable "file_name" it doesn't remove or rename it. It won't let me run it, is there a reason for this? #include <iostream> #include <fstream> #include <string> using namespace std; int main (){ string line; string f_user; ...
common-pile/stackexchange_filtered
Retrieve all documents using sunspot give a boolean scope This should be simple but I can't get it to work. I would like to retrieve all products which are published. The following code is working, and only published products are returned: @products = Product.search do with(:published, true) with(:facet_tag).all_of...
common-pile/stackexchange_filtered
FOSUserBundle multiple firewalls + FOSRestBundle I would like to setup FosUserBundle with FosRestBundle to manage a RestApi. I already setup the FosUserBundle with my website, all works fine. But i want to configure two firewall_name in config.yml, one for the website other for the Api. This my actual config.yml: # F...
common-pile/stackexchange_filtered
Why are all open subsets not infinite in extent? I have been looking at the definition of an open set, for a metric space. I have come across the following definition, a few times: An open set $U$ of the metric space $(X,d)$ is a set given that $\forall x \in U$ there is at least one $\epsilon>0$ such that $\{y|y\in ...
common-pile/stackexchange_filtered
Mysql error for some reason? sorry about the last question. Puush was down! ANyways, here: [25/08/2013 00:07:50][DB LIB] Got exception @ MySQL_Connection::RunQuery(INSERT INTO characters (accountid, name, world, level, exp, str, dex, int, luk, hp, maxhp, mp, maxmp, meso, hpApUsed, job, skincolor, gender, fame, hair...
common-pile/stackexchange_filtered
Angularjs >1.3 $validator causes modelValue to go undefined I am using $validator to write a custom form validation directive. Currently it looks like this : module.directive('tweetLength', function(URLDetector) { return { restrict: 'A', require: 'ngModel', link: function(scope, element, attrs, ctrl) { ...
common-pile/stackexchange_filtered
Angular binding object with array from component to view with ngModels I tried to bind my model on my view, but I have a problem when I submit my form : I don't have an array, but many property. component : export class QuizFormAddQuestionComponent implements OnInit { public question: Question; constructor() {...
common-pile/stackexchange_filtered
Is there a way to build UTF-8 source files using ant I have UTF-8 string literals hardcoded in my java files. Eclipse builds this application correctly, so resulting class files contains those strings in UTF-8. But If use ant build.xml, resulting class files contains strings with incorrect encoding. I already tried ad...
common-pile/stackexchange_filtered
C++ : Error LNK2019 using ArUCo-OpenGL- Freeglut in VisualStudio First time posting here, tell me if you need something else in order to help me! I am trying to set up a simple AR application using ArUco and OpenGL in C++. I build and installed ArUco, same for freeglut because glut is quite old by now but after solving...
common-pile/stackexchange_filtered
Snowflake: Count number of NULL values in each column SQL What is the Snowflake SQL version of this SQL Server solution that counts NULL values in each column of a table? The SQL executes via the SQL Server EXEC function. I would prefer to not use a stored procedure because of access restrictions but such a solution wo...
common-pile/stackexchange_filtered
Join multiple taghelpers asp.net core I have a need to decrease html code written in my views, due to this I would like to create a helper tag that does this for me, but I am not able to generate the code correctly. I would like some help from the community. <div class="row"> <div class="col-md-12"> <div cl...
common-pile/stackexchange_filtered
Java Lambda groupby reducing with transformation Can someone tell me why these to lambdas don't produce similar results? public class Test { public static void main(String args[]){ List<String> strings = List.of("a", "bb", "cc", "ddd"); Map<Integer, List<Character>> result1 = strings.stream() ...
common-pile/stackexchange_filtered
template struct declared twice for checking method existence I am trying to understand that block of code found in an answer of this question : template template class, call a function if it exists template <typename T, typename = int> struct HasReserve : std::false_type { }; template <typename T> struct HasReserve <T...
common-pile/stackexchange_filtered
tcl: how to print UTF-8 text to stdout on Windows my little cross-platform Tcl/Tk pet-project uses utf-8 as the text encoding everywhere. encoding system utf-8 fconfigure stderr -encoding utf-8 fconfigure stdout -encoding utf-8 #puts "汉语" puts "foo" This works great on Linux and macOS, where the standard encoding is ...
common-pile/stackexchange_filtered
Embed PHP into HTML I'm trying to use PHP to print out values for my select statements but I can't get it to work. I've even tried just to print something out in my html with php, but i can't even seem to do that. Can anyone tell me what's wrong with this <html> <head></head> <body> <ul> <?php echo "register Stud...
common-pile/stackexchange_filtered
CSS Margin and Padding don't work on IMG elements unless they are display:block Why does padding and margin work on block img, but not on inline. I am having a layout problem with my images in CSS. I want no pixels (no margin, no padding) between each image, and I want a row of 4 images. The only way padding or margin...
common-pile/stackexchange_filtered
Need to GROUP and COUNT records by a value, then qty > X gets DELETED to a certain qty What I am trying to do is ORDER BY two fieds, usrid and ctoon_id, COUNT the number of ctoon_id per usrid, and then DELETE X records from a specified usrid wherever a ctoon_id count is greater than 50. I'm sure there will be nested q...
common-pile/stackexchange_filtered
Is there a away for the spilt method to split depending on what the user has entered in python? user_lst = list(map(int,input("Numbers: ").split(" "))) So that line just maps the list to the corresponding int values, but is there a way for the split method to detect whether it is splitting on a , or " " or any other c...
common-pile/stackexchange_filtered
Avoid creating start menu shortcuts in Basic MSI project I have Basic MSI setup created with InstallShield 2015. The setup install files and creates shortcuts on desktop and start menu folder. I want to enable the user to select if he want to create shortcuts or not so is there a property I can set so shortcuts on star...
common-pile/stackexchange_filtered
Are there groups where the computational Diffie Hellman problem is easy but the discrete log problem is hard? I know that there are elliptic curve groups, used in pairing-based cryptography, where the decisional Diffie Hellman problem (ie. given $g$, $g^a$, $g^b$ and $c$, determine if $c = g^{ab}$ is easy but the compu...
common-pile/stackexchange_filtered
Ubuntu 18.04 -> 18.10 doesn't boot After an upgrade from 18.04 to 18.10, my ubuntu does not boot and just losing the signal after the grub. I cat login with "nomodeset" but then the resolution is lower and can't be changed. Here are my graphic card details. It was working perfectly before the last updates using the Ub...
common-pile/stackexchange_filtered
Determinant involving function of $x$ If $f(x)$ is a polynomial satisfying $$f(x)=\frac{1}{2} \begin{vmatrix} f(x) & f(\frac{1}{x})-f(x) \\ 1 & f(\frac{1}{x}) \end{vmatrix} $$ and $f(3)=244$ then $f(2)$ is what? My attempt— Replacing $x$ by $\frac{1}{x}$ we get $$f\left(\frac{1}{x}\right)=\frac12\begin{vmatrix} f\left(...
common-pile/stackexchange_filtered
Print an HTML page in C# On click of a button, I am trying to print the HTML page I think the problem is in the path? Without hardcoding how should I print this document, currently it just opens the printer tray and prints This page cant be displayed. help.html <html> <head> <body> This is my testing... <body> </head>...
common-pile/stackexchange_filtered
I want Labels at Icons on my Deskop with more than one Line in Xubuntu On Xubuntu 16.04.3 LTS the labels attached to the icons on my desktop could span more than one line. Now I have installed Xubuntu 18.04.3 LTS. This version (with its default settings) truncates all labels on my desktop where a line break would becom...
common-pile/stackexchange_filtered
i want to know that how to create an indicator based on net price movement i have created a buy or sell signal at first somehow in day's first 10 minutes of trading. now i want to further trade based on net price movement. i have following code , which doesn't work effectively. aa = ta.valuewhen(buy1 == true, close, 0)...
common-pile/stackexchange_filtered
Using std::ptr_fun for a member function Consider the following: class A { public: bool is_odd(int i) { return (i % 2) != 0; } void fun() { std::vector<int> v2; v2.push_back(4); v2.push_back(5); v2.push_back(6); // fails here v2.erase(std...
common-pile/stackexchange_filtered
Rails error with CarrierWave and S3 on Heroku, TypeError: no implicit conversion of nil into String I am unable to upload images using CarrierWave and S3. I am using these gems: gem 'carrierwave' gem 'carrierwave-aws' I have the configuration set up properly, in the code, environment variables, and on AWS: CarrierWave...
common-pile/stackexchange_filtered
Mockito tests for class with Handler I'm a new one in android dev, so I have an app which contain viewPager with 2 UI fragments and 1 nonUIFragment in which operations are performed (i used "setRetainInstance(true)", it deprecated, but i must use it). In this nonUIFragment i have Handler which accepts messages from ope...
common-pile/stackexchange_filtered
Lua pattern: how to fetch the required string I have a string as mentioned below, basically data is coming to me in excel file. Some rows are proper data and for these proper data rows I am able to fetch what I need using the lua pattern. Below is the proper data row 2011/02 ARRTC AAUUMCO ZZITNWMOBILE COMMUNICAT...
common-pile/stackexchange_filtered
Should rep and badges carry over from programmers to meta.programmers? I just flipped over to meta for the first time and started browsing & voting, and my rep (but not my badges) carried over from programmers. Is this the way it's supposed to work? I would expect that my "score" would either carry over in entirety or ...
common-pile/stackexchange_filtered
Best line detector algorithm for a specific content bounding box measurement The purpose of the algorithm is to auto align-sheet music pages based on staves/systems content. The algorithm need to detect the bounding box to allow to easily compute the left/right and top/bottom margin for the wholes pages. Current algor...
common-pile/stackexchange_filtered
Higher value of strides in conv1d I am using Conv1d for time-series data and I have create a model as follows, model=Sequential() model.add(Conv1D(32,250,strides=9,padding='same',input_shape=(1500,9), kernel_regularizer=regularizers.l2(0.01))) c1 = MaxPooling1D(2) model.add(c1) model.add(Dropout(0.5)) model.add(BatchNo...
common-pile/stackexchange_filtered
Jenkins slave slower than jenkins master I have a Jenkins master x which is also the slave of Jenkins master Y. A job that runs in 15 mins on Jenkins master x, takes one hour to complete on Jenkins slave x. Any explanation anyone? There's many possible reasons for that: different workspace locations (local vs. netwo...
common-pile/stackexchange_filtered
How to use deploy specific .env in Vuejs I have several environments that I build my Vuejs application to. Each of those environments has a different API that I'd like to call. My ideal scenario is that I have an .env file in the root of each of the servers I deploy to, so that when I deploy my build, the Vue app look...
common-pile/stackexchange_filtered
MILLER The temperature controller keeps giving us weird outputs. When I set the rule "IF temperature is high THEN fan speed is NOT medium," it's outputting exactly medium speed. JULIA That's the classic Mamdani paradox. Your consequent fuzzy set "NOT medium" has a membership function that's symmetric around the medium...
sci-datasets/scilogues
wix/Detox Test can't find ANDROID_SDK_ROOT after running detox test -c android it can't find my ANDROID_SDK_ROOT $ANDROID_SDK_ROOT is not defined, set the path to the SDK installation directory into $ANDROID_SDK_ROOT, it is already defined in my /.zshrc file export ANDROID_SDK=/Users/chiwan/Library/Android/sdk expor...
common-pile/stackexchange_filtered
How turn on clipboard on Android emulator on virtual keyboard? How turn on clipboard on Android emulator on virtual keyboard? I've done this before but don't remember how I did it. Activate keyboard (press F12) Click on the place you want to paste and long press (press until you see the word PASTE) Done.
common-pile/stackexchange_filtered
Deploy Go webserver to Google compute engine I just started to test Google compute engine. Now I'm trying to deploy my Go (golang) application on it, so that it can be reached from outside. I use compute engine in favor of the app engine, since my application requires a MongoDB database. I did the following: create co...
common-pile/stackexchange_filtered
Kafka streams aggregate with deletes and/or key changes I'm trying to define a kafka stream which accepts records from a topic, say, EMPLOYEE, where the records contain attributes about an employee and its department, and transform it into another topic, DEPARTMENT, which contains department attributes, and a list of ...
common-pile/stackexchange_filtered
Checking whether scala set intersection is empty Is there a recommended way to check whether two scala collection Sets have a non-empty intersection? There is of course the obvious set1.intersect(set2).isEmpty But that actually constructs the intersection set first, unless I am mistaken. Is there a better/faster way? ...
common-pile/stackexchange_filtered
Which spices are best fried in oil, which are best toasted and which are best cooked in water? I've been learning a bit about spices and experimenting a little with dry toasting and frying spices rather than just adding them all to the water component. I keep reading that some spices go best in the water component, lik...
common-pile/stackexchange_filtered
Highcharts Accessible navigation without using arrow keys Is there a way to allow users to navigate without needing to use the arrow keys, but instead just the tab key? In my use case, the entire page uses tab (no arrows) and when the user reaches the legend and presses tab, it skips the remaining legend items and exit...
common-pile/stackexchange_filtered
In FastAPI / Pydantic how can I define a return dictionary class that returns a dictionary of tuples I have a FastAPI request that returns a JSON like this { "1": [ [ "HH", "0" ], [ "DD", "0" ] ] } Basically, it's a dictionary with tickets numbers as a key (here "1") and a l...
common-pile/stackexchange_filtered
Boost: Although compiled, missing lib I've compiled Boost and am using it in a Visual C++ project. At some point, I started getting the following error: 1>LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc100-mt-sgd-1_45.lib' AFAIK I have the linker configuration set correctly. I've searched for the ...
common-pile/stackexchange_filtered
What is "Post on Changes" or "Reflection" functionality? I am new to CC Guidewire. I didnt understand what post on change will do? Thanks. The "postOnChange" attribute on a PCF UI element can either be true or false. If it is true then everytime that UI field is changed by a user; it will POST back to the server. Th...
common-pile/stackexchange_filtered
Wordpress custom post type and permalink rewriting I'm struggling with a problem I'm not able too solve. I've spent a lot of hourse in codex documentation without any luck. I've created a custom post type called "Products". Products will be available in many language. Products permalink is something like: mysite.com/pr...
common-pile/stackexchange_filtered
Donaldson-Thomas Invariants in Physics First of all, I am sorry for there are a bunch of questions (though all related)and may not be well framed. What are the DT invariants in physics. When one is computing DT invariants for a Calabi-Yau manifold, what is one computing in physics? What about the generalized (motivic) ...
common-pile/stackexchange_filtered
Is it safe to use dangerouslySetInnerHTML with hard coded html strings? We have an alert component that renders important information for the user. However, this component has somewhat an abstraction where you just need to pass the content as an array of string. const Component = () => { const alertContent = ['This...
common-pile/stackexchange_filtered
How can 10 tons of thrust keep a 100 ton aircraft in the air? I think the reasons are as follows: We all know that on an inclined plane, we can lift an object by a force much smaller than its weight. The same is true of airplanes, which are also on inclined planes and lift themselves into the sky with a small force.   ...
common-pile/stackexchange_filtered
Started to get error while downloading data from yahoo finance using R I started to get an error while downloading some stock's data from yahoo finance web site in R. I am using get.hist.quote function from tseries package . Last week, there was no problem. May code is as below: library(tseries) data<-get.hist.quote(...
common-pile/stackexchange_filtered
How to add info window in angular google maps with out marker? I am trying below angular plugin for google maps. https://ngmap.github.io/ can any one please help me how to add info window, with out a marker ? Thanks in advance According to Info Windows: Typically you will attach an info window to a marker, but you ca...
common-pile/stackexchange_filtered
New GFCI to replace one that was in the subpanel of a hot tub I have a dedicated 50 amp 240 v circuit to a hot tub. Had it over 15 yrs no problems. Recently the GFCI that was in the sub panel would buzz and then trip or sometimes work just fine after resetting. The GFCI was an old one that had the 240 v wires runnin...
common-pile/stackexchange_filtered
CSS question about em? I'm trying to convert all of my site's margin values to em in place of pixels, but I'm having a hard time trying to figure out what 'em' actually is. I thought it was a set distance based on the users browser settings (default font-size), but a standard 1em is different when applied to h1 or ul f...
common-pile/stackexchange_filtered
Bluetooth power standard values Let´s say I have a device with a bluetooth (BLE) 5.1 radio and I would like to know when, using a mobile phone, the power received from the device is good enough to stablish a reliable communication or I need to place it in another localization. Is there a standard power value so I can d...
common-pile/stackexchange_filtered
IIS Worker Process and RAM question (w3wp.exe) In my vds server (windows server 2008) some asp.net websites using iis worker and these use also 50 mb ram. Sometimes this is increase to 250 mb. Is it normal? Vote to close as subjective, the amount of ram usage is entirely dependent on the application itself. I think I...
common-pile/stackexchange_filtered
android- AlertDialog showing two times I have an alertDialog from which I am creating another alertDialog. The problem is that the first alertDialog pops up twice. So, the second alertDialog is also created twice. Here is my code- public void navigationMenu() { AlertDialog.Builder builder = new AlertDialog.Buil...
common-pile/stackexchange_filtered
Changing Paragraph Text to Stylized Span I'm trying to change paragraph text in a for each loop. This seems like a simple issue (specific to JS?). I'm new to this language, coming from Matlab and Java. Fiddle attached. Any help is appreciated. https://jsfiddle.net/npkx3of4/1/ function myFunction() { var ps = docume...
common-pile/stackexchange_filtered
Landscape fullscreen youtube movie from portrait UIWebView in portrait only app in iOS 4.3, 5.0 and 6.0 I've spent several hours researching this and I'm still confused. It seems to be so common task that I started to think that I missed something simple. The problem is: I have a Portrait-only iPhone app. Basically an ...
common-pile/stackexchange_filtered
Types of inheritance is supported in Swift i guess only these two types are available in swift, i just want to know, am i missing any, your help will be appreciated? Single Multilevel What is "multi-level inheritance"? Meaning you can subclass a subclass? Is that restricted in some languages? @virus : Yes you're co...
common-pile/stackexchange_filtered
Caesar Cipher encryption/decryption This program takes a command line argument of how many times you would like to encrypt plain text. After you compile the program, input a message you would like to have coded. I'm new to C and curious about how to make this program more efficient. /* *caesar.c * * * *Encrypts user s...
common-pile/stackexchange_filtered
C# Marshal.Copy Intptr to 16 bit managed unsigned integer array Why does C# Marshal.Copy routine does not have any overload for copying from unmanaged memory pointer to 16 bit managed unsigned integer array? ex: Copy(IntPtr, Byte[], Int32, Int32) Copies data from an unmanaged memory pointer to a managed 8-bit unsigned...
common-pile/stackexchange_filtered
Why I can't save the data into my text file? What I'm trying to do here is to create a form and the data that is inserted into the form will be saved into my employees.php file. I can't seem to find the solution to solve this problem. Can I know what can I do to achieve this? Why do I get the error of fwrite() expects ...
common-pile/stackexchange_filtered
WebGL2 render Uint16Array to canvas as an image I am attempting to render a Uint16Array to an image in the browser using webgl2 textures. I have a working example fiddle of a Uint8Array and am struggling with the upgrade to 16bit as webgl has a steep learning curve. Working 8-bit fiddle (identical to snippet below): U...
common-pile/stackexchange_filtered
Can I read Qur'an from a monitor when I don't have wudu? We don't touch or read Qur'an when we don't have wudu. On the other hand, we can recite it. Which ruling apply to reading Qur'an from a different medium than a printed book? Can we read Qur'an from internet when we don't have wudu, or should we do wudu before we ...
common-pile/stackexchange_filtered
Unix egrep looks into folder information? I am have a simple egrep command that searches through all the files in the current directory for lines that contain the word "error": egrep -i "error" * This command will also go through the sub-directories as well. Here is a sample of what the whole folder looks like: /Logf...
common-pile/stackexchange_filtered
can we call a cmd script from zend controller action? My idea is to write some script ( cmd / unix ) and call it from within my action. I did a search in google but I didn't found anything. The idea is to create a script (example: I want to call this script: cp file public/uploads ). This is my action : public function...
common-pile/stackexchange_filtered
Update which View Controller is called on launch I am updating an app that was initially built with a single view controller. That view controller is now only called when the user presses the Add button in the nav bar on either screen of the tab bar controller. I have updated the tab bar controller to be the initial vi...
common-pile/stackexchange_filtered
Refactor small Service I have this small code class ReadReportService def self.get_oldest_reports(count, filter={}) reports = Report.unread.order('created_at DESC').limit(count) reports = reports.where(category: filter[:category]) if filter[:category].present? reports = reports.where(cost: filter[:cost])...
common-pile/stackexchange_filtered
Lossless Video Compression Pipeline The only paper I can find about an implementation of a lossless video codec is an article by Michael Niedermayer which explains the FF1V compression pipeline. I'm wondering if anyone else has found any articles similar to this. I've looked on IEEE and ACM and their articles mostly fo...
common-pile/stackexchange_filtered
Stop/Remove Route Dynamically/Programmatically Doesn't Remove the Corresponding Thread During the processing of an Exchange received from JMS I'm creating dynamically a route that fetches a file from FTP to the file system and when the batch is done I need to remove that same route. The following code fragment shows ho...
common-pile/stackexchange_filtered
How do I extend a Google OAuth token obtained on client side at server side I have a web application that has frontend built on EmberJS and backend in Java. I'm making the user sign in using Google OAuth and requesting the scope: https://www.googleapis.com/auth/calendar { "El": "google_user_id", "Zi": { "token_...
common-pile/stackexchange_filtered
Are "functionals" generally on the venue for a standard course on Multi Variable Calculus? The reason I ask is that I am trying to understand the "action" in the principle of least action and the author says we must find an extrema point but cannot do so in the normal manner because the input is a function so that the ...
common-pile/stackexchange_filtered
Unattractive loading of many images using Angular directives like ngShow and ngHide I have been using Angular for a while now and I am always using ngShow, ngHide, ngIf, etc. A problem I have always encountered when using these directives to show and hide images is the one second immediately after the directive sets t...
common-pile/stackexchange_filtered
How to solve the multiple integral $\int\sin^{p-2}(\theta_1)\sin^{p-3}(\theta_2) \cdots \sin(\theta_{p-2})\ d\theta_1d\theta_2\cdots d\theta_{p-1}$? I am wondering how to solve the multiple integrals of this form: $$ \int_{\theta_1 \in [0,\pi]}\ldots\int_{\theta_{p-2} \in [0,\pi]}\int_{\theta_{p-1} \in [0,2\pi]} \sin^{...
common-pile/stackexchange_filtered
Jquery tabs update tab after form submit in the same tab I have a page with 6 tabs (Jquery tabs) and on each tab there is a form. I looks like a simple question, but i'm breaking my head on it. I want to update the div (tab) after submit of the form, after the submit there are of course also some actions (database upda...
common-pile/stackexchange_filtered
SQL Server : bulk insert from csv string stored in column I store csv strings in a datatable. I later need to create a temporary table from that csv, but BULK INSERT only offers a filename as datasource. Is there any possibility to import from a string? Thank you and regards Gabriel I assume you mean you want to pars...
common-pile/stackexchange_filtered
How to show that the general Gaussian integral has positive real part? Suppose $a$ is a complex number with positive real part (so $a$ is not necessarily just real). I am considering the integral $$ \int_{-\infty}^{\infty} e^{-x^{2}/(2a)} \, dx. $$ So far I was able to show (using the famous trick by Gauss) $$ \int_{-\...
common-pile/stackexchange_filtered
Yii getting Error 403 even if logged in as an admin public function actionCheckout() { echo "Hello World!"; } I just created this very simple code in the controller but when I try to browse it in my URL it shows me this error: Even if i'm currently logged in as an Admin but still why can't i access that very sim...
common-pile/stackexchange_filtered
Disabling custom javascript button I need to disable one of the custom javascript buttons after the first click. I've found that I can use(and I actually did use this in the past) this 2 lines of code to disable a button: this.disabled = true; this.className = 'btnDisabled'; but nothing happens. My button just stays a...
common-pile/stackexchange_filtered
Is it legal to activate nested unions via the address of their members? Is the following code legal (in c++11/14)? bool foo() { union bar { int i; bool b; }; union baz { char c; bar b; }; auto b = baz{'x'}; auto barptr = &b.b; auto boolptr = &barptr->b; new (boolptr) bool{true}; return b.b.b; } This exam...
common-pile/stackexchange_filtered