text
stringlengths
70
452k
dataset
stringclasses
2 values
How Does The Debugging Option -g Change the Binary Executable? When writing C/C++ code, in order to debug the binary executable the debug option must be enabled on the compiler/linker. In the case of GCC, the option is -g. When the debug option is enabled, how does the affect the binary executable? What additional d...
common-pile/stackexchange_filtered
"Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR" for React app after upgrading to Visual Studio 2019 16.10.0 After upgrading to VS 16.10.0 (and then 16.10.1) Community Edition a React website no longer runs w/in Visual Studio/IIS Express. The exact same code was just deployed to an Azure app service and works c...
common-pile/stackexchange_filtered
DetailViewController Dumb Question I'm working on an iPhone app that has a UITableView with multiple entries and when you click on each, it takes you to the same view using a navigation controller. This is good, I want the same view every time, except for one of my entries I want to hide a text label. I have succeede...
common-pile/stackexchange_filtered
SFTP Issues in Micro Integrator 1.1.0 with WSO2EI 7 Integration Studio I am New to and using WSO2EI Integration Studio 7.0.0 I am getting an error while moving files from my local to SFTP but files are moving to SFTP in this scenario i have used send mediator. Also i am unable to move sftp to local it showing fully err...
common-pile/stackexchange_filtered
Using backslashes in Groovy I'm using groovy to write a script that replaces UNC server names and a part of the directory structure. I have the following: def patternToFind = /\\\\([a-zA-Z0-9-]+)\\share\\([a-zA-Z]+)/ def patternToReplace = '\\\\\\\\SHARESERVER\\\\share\\\\OPS' This works, but all those \'s are pretty...
common-pile/stackexchange_filtered
Declaring Encryption in a ASP.NET Web App Im receiving the following error "Name 'Encryption' is not declared." On Line If reader_login("password").ToString() = Encryption.Rijndael.Encrypt(Password, "SHA1", 2, 256) Then Locally it is fine just seeing this error now on my development machine. Any Ideas ? What do you me...
common-pile/stackexchange_filtered
Filter elements on data-attribute instead of class in jQuery I am working on a simple method for filtering elements depending on their class. The user checks a checkbox and the jQuery does it's thing fine and turns off any element depending on the class. The line that turns off the element, and how the elements look is...
common-pile/stackexchange_filtered
Are all principal curvatures equal at an isotropy point? Suppose $M$ is a hypersurface embedded in a Riemannian manifold $(N, g)$ and there exists $p\in M$ s.t. for any two tangent vectors $u,v\in T_pM$ we can find an isometry $\phi$ of $M$ fixing $p$ s.t. $d\phi_p u=v$. Because there is no preferred direction, it seem...
common-pile/stackexchange_filtered
morphia query against relationship/reference I have a product document which has a reference to review array - Review[] Reviews. Review has ranking 1-5. How do I go about query against review for this product that is 4 stars ranking and above? I tried criteria("Reviews.ranking").Equal(4).asList() It complaint that it ...
common-pile/stackexchange_filtered
Aspect ratio not same after resizing thumbnails in PHP (GD) I am resizing an image to make thumbnails in PHP, but the aspect ratio is not same. I have gone from the code but I can't figure out what the problem is. Here is the code I am using. <?php $idir = "gallery/"; $tdir="gallery/thumbs/"; if(!file_exists($tdir)){ m...
common-pile/stackexchange_filtered
java keyPressed event I have read many answer from stack overflow but can't solve my problem so i am posting question i have written code for Key Press Action in java swing but nothing is happening when ever i am pressing key so please advice where i have written wrong codes my codes are as under textField_1.addKeyL...
common-pile/stackexchange_filtered
FTPClient downloads a 0 byte file I'm trying to download a file from a server, but it get 0 bytes... this is my FTPDownload class public boolean getFile(String filename){ try { FTPClient ftpClient = new FTPClient(); ftpClient.connect(ftpAddress, ftpPort); ftpClient.login(ftpUse...
common-pile/stackexchange_filtered
Calculating memory requirements for HashMap in Java I have a ConcurrentHashMap like so: HashMap<String, Integer> fruitMap = new ConcurrentHashMap<>(); The key is a String of 10 characters, the value is an Integer. Assuming there is no other memory consuming code in my application, how do I calculate the number of entr...
common-pile/stackexchange_filtered
Command Parameter Datagrid SelectedItems is null So I found this answer Pass command parameter from the xaml which I think got me most of the way there. The problem I am having is when I select a row in the datagrid it triggers the command but the selected items is null. What I don't know, and suspect is the issue, is ...
common-pile/stackexchange_filtered
Creating a file based on the byte() in VB.NET I am retrieving an image from the SQL database into Byte() variable in VB.NET. Dim img as byte() = dr(0) How do I create a file in my C:\images\ directory from the above img. I want to read the img and then create a file with name bimage.gif. The easiest way is to use Fil...
common-pile/stackexchange_filtered
How to update regex to allow empty value or alphanumeric only I'm trying to modify a regex so it will allow an empty value or alphanumeric only. I currently have this, but it only validates the alphanumeric if (ruletype eq "alphanumeric") { bMatch = true; variables.fieldName = listGetAt(arguments.rules[nRow],2...
common-pile/stackexchange_filtered
How to right join a date table in T-SQL? I have done RIGHT JOINS in the past with no problems. However, for some reason now, I am not able successfully join a date table on the date field. In summary, I have two tables. The first table has one date column and a couple more non-date columns. Then I have a date table...
common-pile/stackexchange_filtered
How to display time in hours overshooting 24 hours in SSRS I have a report with a column displaying time cumulatively overshooting 24 hours. I'd like it to be displayed in hours. I've found a solution that when time exceeds 86400 seconds (number of seconds in a day), it'll display number of days and time but I want onl...
common-pile/stackexchange_filtered
Jenkins - Unexpected executor death I see all my executors frequently changing to Dead state in one of my Jenkins slave machine(Windows 2008 R2 SP2). Jenkins ver. 1.651.3 I have restarted Jenkins server as well as the service. error logs- Unexpected executor death java.io.IOException: Failed to create a temporary file ...
common-pile/stackexchange_filtered
Storing relation in RavenDB without manually storing the related documents? TLDR: Is it possible to: store a document (Article) with a relation (Tags) in one Store/StoreAsync call to RavenDB, but into separate collections? then fetch the parent document (Article) including the related documents (Tags) in one query (wi...
common-pile/stackexchange_filtered
How to use variable inside for loop I have 50 rows in google spreadsheet. User use these rows as input. But not all 50 rows are shown. When user input number in A2 cell then only that number of the rows are visible. I was able to do the task. But there is one problem inside for loop. I think problem is in this line fo...
common-pile/stackexchange_filtered
Skip instance in conditional callback block (lambda or Proc) I noticed that almost all people use Proc.new instead of lambda (I guess because of how it cares/or not about arity) and also it's common to pass the current instance as an argument. However I checked and it works also without |instance| passed as an arg. See...
common-pile/stackexchange_filtered
Efficient way to bin data ranges in R I have several hundred variables in a data frame which need to be binned into buckets. Currently, I'm using code similar to the following: idx <- list() idx[[1]] <- which(df$myVariable < 628 & df$myVariable >= 0) idx[[2]] <- which(df$myVariable < 774 & df$myVariable >= 628) idx[[3]...
common-pile/stackexchange_filtered
How to traverse for duplicates and create mappings in python I have a dictionary with values as below test_dict = {"key" : {"Apple", "Appl", "phone", "case", "APPLE"}} Using fuzzy matching will find whether two strings are equal similar to below. Expected output is to create a map of duplicates in a single group keepi...
common-pile/stackexchange_filtered
How would white light cavities (WLC) work for gravitational wave detection? A study done by Michael A. Page, Maxim Goryachev, Haixing Miao, and peers states that WLCs can be used to improve the sensitivity of LIGO. LIGO currently uses photons (for very constant speed at which they travel in a vacuum), but if the phonon...
common-pile/stackexchange_filtered
Why setter methods don't update Object? I want to update the Contact object, which has 2 fields - name & phoneNumber. Unfortunately I don't know why setter methods don't work. Firstly I tried with the #1 version of updateContact() method - code below. I think that it may have something with updating reference of an obj...
common-pile/stackexchange_filtered
R refers to non exisiting files during R CMD check I want to R CMD check with RStudio my package (for this question I call it pkg). But I get the following error message: * preparing 'pkg': * checking DESCRIPTION meta-information ... OK * installing the package to build vignettes * creating vignettes ...Error in find_v...
common-pile/stackexchange_filtered
modalSession has been exited prematurely - check for a reentrant call to endModalSession: I am developing a NSDocument based application. We are showing a window as modal window closing the window on a button action.(calling abortModal).This is working properly. But when saved document opens it launches the application...
common-pile/stackexchange_filtered
Ubuntu 12.04 LTS login loop I'm asking this because initially, my problem was a power failure during installation so I typed the following instructions in the maintenance shell: sudo mount -o remount,rw / sudo dpkg --configure a sudo mount -o remount,ro / sudo sync sudo reboot The first three lines worked, afterw...
common-pile/stackexchange_filtered
Spring Boot Selenium - Github Dropdown Cannot Work. How can I fix it? I tried to implement a logout test method through selenium in Spring Boot but I cannot detect dropdown menu located top right hand side. How can I fix it? Here is the test method shown below. @Test @Order(4) public void logout() throws InterruptedExc...
common-pile/stackexchange_filtered
Write bytes data into a data frame I scraped one site and I get the data in bytes and I do not know how I can write them into a DF in some efficient way. Here is a piece of my data: b'[{"ID":"1","A":"2021-08-04 11:00:00","B":"2021-08-05 10:52:30","C":"","D":"2021-08-05 10:51:00","E":"","F":"Mark","G":"","H":"BOSTON"}]'...
common-pile/stackexchange_filtered
recursively combining elements across several arrays of integers in Python The problem: given an arbitrary number of arrays of positive integers, find all combinations of their elements, one from each array, such that the numbers' set bits do not overlap (A & B == 0 for every two elements A and B of a resulting combina...
common-pile/stackexchange_filtered
How to handle user functions with unkown number of arguments for performance measurements? I am trying to write a performance test that can run functions with different number of arguments. Something like this: // optimization.cpp struc Command{ unkown_type fun; } command1; perf_test(Command exec){ unkown_...
common-pile/stackexchange_filtered
Confusion regarding DNS query vs HOSTS file With the subject, I have windows/linux machine and In which installed virtualbox and setup <IP_ADDRESS> ip and entry www.abc.com in hosts file. We have setup DNS server/filter on network and setup DNS on every machine. Now problem is that, Why DNS query to DNS server of www.a...
common-pile/stackexchange_filtered
How to complete this Jquery string I'm looking to use this piece of Jquery to open a lightbox gallery on page load IF the class .w-condition-invisible is appended to the #script-test div. This is what I've come up with but upon testing in the console it's not working... Any ideas? $( "#script-test" ).hasClass( "w-condi...
common-pile/stackexchange_filtered
Numpy value assignment by indexing or slicing, duplicate memory allocation? import numpy as np a = np.array([0.,0.,0.,0.]) b = a c = a d = a.copy() a[0] = 2. print(a) print(b) print(c) print(d) The result is [2. 0. 0. 0.] for ALL a,b and c, which is very weird. d still correctly retains the values as zeros though. Is...
common-pile/stackexchange_filtered
How do I prove I can integrate over a triangle with two different parametrizations? This seems like a simple thing that has been eluding me. Consider the two integrals: $I_1 = \int_t^{t'} ds \int_s^{t'} ds' \; g(s',s)$ and $I_2 = \int_t^{t'} ds' \int_t^{s'} ds \; g(s',s)$ where g(s',s) is any function of the variables....
common-pile/stackexchange_filtered
why i cannot make hole on the mesh? why i cannot make hole on the mesh?. I have check both mesh rotation scale, Face pointing outside. No double verts seen. I want to make a cylinder hole but it creates a square hole. Any suggestion or help whats going wrong with my mesh. Thanks I believe it's because of N-gon topoo...
common-pile/stackexchange_filtered
What is the use of the interrupt flag IRQF_TRIGGER_NONE? can anyone explain the flag, IRQF_TRIGGER_NONE declared linux in the file,/kernel/linux/include/interrupt.h. How can one use this flag? IRQF_TRIGGER_NONE is defined with a bit-mask of 0 indicating that it does NOT imply any kind of edge or level triggered interr...
common-pile/stackexchange_filtered
What is a 50-ohm antenna? How would you make one? This is an intentionally very open ended question. What does it mean for an antenna to be a 50-ohm antenna at some frequency? How do you make a 50-ohm antenna for say 433.92MHz? What are the options? What are the consequences of it being different from 50-ohms? Trying...
common-pile/stackexchange_filtered
in twitter api I want to know the number of tweets that match specific query the problem is they limit the result they return to 1,500. but I only want to know how many results there are, not to get all of them There is no way to know this without using the Streaming API to track the keywords you want an maintaining y...
common-pile/stackexchange_filtered
Casting to unsigned char in C I am facing a following problem: When trying to do cast to an unsigned char I get unexpected values. The code that I am using: unsigned char MyVal1 = ((0xF1E3 && 0xff00) >> 8); unsigned char MyVal2 = (unsigned char)((0xF1E3 && 0xff00) >> 8); unsigned char MyVal3 = (unsigned char)((0xF1E3 ...
common-pile/stackexchange_filtered
custom object with button linking back to view controller I have view controller and a custom object that will return a view with buttons. I to set the button's target to a method on the view controller. I just want this object to create the view i want and then return it for me to addSubview:. CreateView.m //create b...
common-pile/stackexchange_filtered
Remove an already-registered $state I was surprised to learn that ui-router shares state across modules. That's ok, but for our development environment I'd like to clear all the application states and start from scratch. It's not convenient to avoid defining them in the first case just for our test environment, because...
common-pile/stackexchange_filtered
Use" INSERT ... ON DUPLICATE KEY UPDATE" to insert multiple records My Table structure table: marks My objective: i want to insert or update multiple records with the condition i am currently check by this query 1st step SELECT * FROM `marks` WHERE `student` =115 AND `param` =1 2nd step if records found by m...
common-pile/stackexchange_filtered
Rails minitest required library leading to uninitialized constant In running a test, the follwoing error is emerging: CartitemsControllerTest#test_update_q_on_last_item: ActionView::Template::Error: uninitialized constant Barby::DataMatrix In practice this error does not arise and the desired barcodes are being genera...
common-pile/stackexchange_filtered
Deploying New Relic on Heroku Cedar (PHP) Has anyone succesfully deployed the New Relic addon to a PHP app running on Heroku Cedar stack? I'm running a fairly high traffic Facebook app on a few dynos and can't get it to work. The best info I can find details a Python deployment: http://newrelic.com/docs/python/python-a...
common-pile/stackexchange_filtered
Splash screen react-native Is there any repo or something that can be used to change the splash screen image automatically without doing a release? For example 1 week I want to display image X and after that I wanna do Y, but Y its also not on the phone so I have to download it from an api and so on. Possible duplicat...
common-pile/stackexchange_filtered
Springboot 3 Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class I have a springboot 3 application, pretty standard, which has a Controller, a service that is called by the controller and a repository that the service uses to fetch and save data. I had configured my app...
common-pile/stackexchange_filtered
Transposed pattern search I have text file with format 1 5.287 15.026 0.623 1 U 1.805E+05 0.000E+00 e 0 666 761 769 2 4.601 15.023 0.623 4 U 6.220E+04 0.000E+00 e 0 0 0 0 3 2.883 15.059 0.623 3 U 3.303E+05 0.000E+00 e 0 680 761 769 4 0.623 56.340 5.287 3 U...
common-pile/stackexchange_filtered
Old Russian or Soviet-era cartoon movie about a servant, a prince and a princess I’d appreciate any help remembering the title of an old Russian or Soviet-era cartoon movie. The story is about a prince and his servant, who go on an adventure to rescue a princess from a dragon. The princess's name is Vasilisa the beauti...
common-pile/stackexchange_filtered
Is it possible to configure after-deployment behavior for a WAR (or EAR)? When I'm deploying a WAR (or EAR) to an application server I have to be sure that the environment (everything around the AS) is ready for my application. Is it possible to instruct AS to execute certain Java classes right after deployment, and re...
common-pile/stackexchange_filtered
Why "selected" not rendered here? I am trying to understand how React works with the new Hooks implementation. In this example, I want the browsers to render selected items as I click on the rendered options. But as you can see, it doesn't work. Here is the example: https://codesandbox.io/s/pjorxzyrx7 Do I have to use...
common-pile/stackexchange_filtered
C# (.NET, Mono) Use array for transfer data between threads Today I accidentally stumbled upon a MemoryBarrier and realized that I do not fully understand the work of the CPU with RAM. The search did not give me an unambiguous answer to the question, so I decided to ask a new question. There are two arrays: int[] dataS...
common-pile/stackexchange_filtered
Why are used conditional move assembly instructions? Why are still used conditional move instructions (CMOV) in assembly languages in certain cases? Why don't use S{cond} (skip instruction if compare with zero) ? Unlike CMOVs SKIPs don't have direct data dependencies (which is benefit for pipelining) and following inst...
common-pile/stackexchange_filtered
Stash a specific hunk, Git Using Git, I want to stash only one hunk in one specific file in order to commit the rest of the changes. Therefore, I could go back to my temporary change by pulling it from stash. However, the only way I could find is to stash the whole unstaged files. What about adding everything to the i...
common-pile/stackexchange_filtered
Sort by divs content (click) I have a script that appends the content. There is only 1 change I need to do, but don't know how. I want a sort by content of the div every time I click.(ASC to desc or desc to ASC) What he does now is: I have 3 divs <div>Others</div> <div>Girls</div> <div>Boy</div> if I click it changes...
common-pile/stackexchange_filtered
Android studio - Change string in textView I have some stings in the styles/string.xml as below: <string name="string1">something</string> <string name="string2">some other thisn</string> <string name="string3">asdfgh jkl</string> <string name="string4">qwerty uiop</string> . . . and I have a textView and a button in ...
common-pile/stackexchange_filtered
Selenium Could Not Locate Element by XPath I am trying to locate element using Xpath with Selenium. The element in question is the channel name on the YouTube page: https://www.youtube.com/watch?v=FSyAehMdpyI&list=PL8dPuuaLjXtPHzzYuWy6fYEaX9mQQ8oGr My xpath is: /html/body/ytd-app/div[1]/ytd-page-manager/ytd-watch-fle...
common-pile/stackexchange_filtered
ResNet 34 training with custom dataset I am a beginner in Neural Networks and wanted to implement ResNet34 for a pet project at my workplace. Due to confidentiality issues, I do not want to use ImageNet trained weights. I have a dataset of around 10000 images which I can use to train my dataset. Can you suggest if tha...
common-pile/stackexchange_filtered
"unityengine.component does not contain a definition for GetEnumerator" Error in Unity c# /* Ihitable in the foreach loop is taken from the IHitable interface so I'm not sure if i have implemented it correctly */ public interface IHitable { void Hit(); } /* Getting Error with second foreach loop as shown i...
common-pile/stackexchange_filtered
My javascript on another site, what domain is it checking cookies for? I am having some cookie issues and am trying to troubleshoot. So... I have a script that I put on other website domains <script type="text/javascript" src="http://siteA.com/script.php"></script> Lets say I put this script on siteB in http://site...
common-pile/stackexchange_filtered
My app does not change orientation I am using XCode 4.6 and iOS 6.1. But my app does not change orientation. I have set my app to support orientation in pList and added orientation change method. But still the app does not change orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)int...
common-pile/stackexchange_filtered
I have to run adb connect <IP_ADDRESS>:5555 in order for android emulator to show up in list When I start a Genymotion emulator (Android studio emulators crash android studio and dont start), I have to run adb connect <IP_ADDRESS>:5555 in order to connect adb to the emulator. Otherwise it doesn't show up when I use adb...
common-pile/stackexchange_filtered
$f^2+(1+f')^2\leq 1 \implies f=0$ Find all $f\in C^1(\mathbb R,\mathbb R)$ such that $f^2+(1+f')^2\leq 1$ It's quite likely the answer is $f=0$. Note that $|f|\leq 1$ and $-2\leq f'\leq 0$. Therefore $f$ is decreasing and bounded. What then ? I tried contradiction, without success. Have you thought about the limits ...
common-pile/stackexchange_filtered
In Dune are specifics given as to what the "Suk Imperial conditioning" of Dr Yueh actually is? I have read the first five Dune novels and after the first I do not recall any further mention of Imperial conditioning. In the novels written since Frank Herbert's death, were any further references or details given about wh...
common-pile/stackexchange_filtered
SQLSTATE[HY000]: General error: 1005 Can't create table `test`.`members` (errno: 150 "Foreign key constraint is incorrectly formed") I'm using my migrations in Laravel to create the relationships between tables, and I have 4 tables: users, members, member_skills, and skills. I have the following code for the users tabl...
common-pile/stackexchange_filtered
Two Maven basics / requirements and first project questions I want to use Maven for building my next Java Project. So I have some questions about Maven before starting right off. Does Maven need to be installed? Or can Maven binaries just be copied to a system (Windows) and be used in the same way. Setup a Maven proje...
common-pile/stackexchange_filtered
Paypal sandbox account approver url only showing one option? When redirecting to paypal approval url, I am only seeing one option i.e. return to merchant. I am using my sandbox account. The link "return to merchant" is redircting to my cancel_url instead of return_url. Please help. I am using paypal rest sdk . I have z...
common-pile/stackexchange_filtered
Example of a locally finite graph without a uniform degree bound We call an infinite graph locally finite if every vertex of it is of finite degree. A locally finite graph is said to have a uniform degree bound if the degree of every vertex of it is bounded by some fixed positive number, say $D$. Clearly the number of ...
common-pile/stackexchange_filtered
Adding page break to tables in Pages 5.5 In Pages 5.5 on Yosemite how can I add a page break into a table? You can't add a page break within a table. You can provide feedback to Apple regarding this: https://www.apple.com/feedback/pages.html You can make another table by copying your table format and paste another ...
common-pile/stackexchange_filtered
Image rotation transparency not persists I am rotating image (PNG) which is transparent using OPENNET CF DLL. But after rotation image 's transparency does not persists. How can I persist transparency or any one or other way I can do?
common-pile/stackexchange_filtered
Why does my mandarin tree (Citrus reticulata) have yellow leaves with speckled bottoms? I just bought a mandarin, variety 'nova'. I'm not sure if it's healthy or not, or if it's meant to be like this. It has plenty of new growth but all leaves including new growth are yellow, and the bottoms of the leaves have speckles...
common-pile/stackexchange_filtered
Center an element in middle on screen for an horizontal scroll list I'm attempting to have the element clicked being positioned automatically at the center of the screen. The list is having a horizontal scroll with some overflow-x : scroll which is hiding what's outside of the div(screen). I can't find out what coordi...
common-pile/stackexchange_filtered
How to add a ripple effect to my custom view drawn element? I am trying to add click ripple effect to my custom view element. It is kind of a progress indicator with several circles. Circles are clickable. So I want to add ripple effect to the circle which user clicks. The ripple effect has to be bounded by circle radi...
common-pile/stackexchange_filtered
Problem on a Bilinear pairing This is a problem from hatcher's that I am trying to solve. Show that a nonsingular symmetric or skew-symmetric bilinear pairing over a field $F$, of the form $F^n\times F^n\rightarrow F$, cannot be identically zero when restricted to all pairs of vectors $v,w$ in a $k$-dimensional subspac...
common-pile/stackexchange_filtered
SDL2 - show overlay on mouse motion and hide it some time after mouse stopped As the title says I'm trying to accomplish an overlay menu in my SDL2 application. I have a window where I want to show an overlay menu if the mouse starts moving and show it as long the mouse moves. If the mouse stops moving a timer should s...
common-pile/stackexchange_filtered
Why is string.Empty more recommended than ""? Why is string.Empty more recommended than ""? Is it because when the compiler is parsing the code and a " comes, the compiler will get ready to read a string? but in string.Empty the compiler will not even get ready to read a string? Which language are we talking about? c...
common-pile/stackexchange_filtered
How to troubleshoot a water cooling kit or system? I purchased and installed a "Thermaltake Pacific RL120 Water Cooling Kit" in my computer, and it worked perfectly fine for past 6 months. Just few days ago though, my computer overheated and turned itself off. I realized that there was air in the pipes that may have ca...
common-pile/stackexchange_filtered
Error "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" I tried the script by changing for (int ii = 0; ii < i_f.Length; ii++) into for (int ii = 0; ii < 100; ii++) but I still got the same error Index was out of range. Must be non-negative and less than ...
common-pile/stackexchange_filtered
How to determine when a item in a WebView is clicked? Is there anyway to determine when a item inside of a WebView is clicked? Such as another link in a WebView. I want to listen for these clicks and repsond to them. is there anyway to go about doing this? Call javascript onClick function and from there you can call ...
common-pile/stackexchange_filtered
jquery datepicker validation returns allocation size overload error i am making a Birth Date input with a jquery datepicker plugin. the plugin works but i wanted to validate that only people with 18 years old birthdate will be allowed. i have tried restricting the year but i am having an error allocation size overload ...
common-pile/stackexchange_filtered
Sum multiple values from multiple tables I'd like to do an SQL query to get a sum number, but i don't know how to construct this query. select count(*) from table1 where commom_fk in (1234); select count(*) from table2 where commom_fk in (1234); select count(*) from table3 where commom_fk in (1234); select count(*) fro...
common-pile/stackexchange_filtered
Connection string for multiple deployments I am building a .NET 4.0 C# application which connects to a web service, pulls some data, then inserts it into a database. This application is being designed to require no user input as it will be scheduled to run daily. When I deploy this application to our customers, I run i...
common-pile/stackexchange_filtered
How to use Bcrypt in Postman pre-request script? CryptoJS doesn't support Bcrypt, what can I do to use Bcrypt in Postman pre-request script? An alternate way is to create separate api uses Bcrypt and call it from pre-request script. Thank you for the suggestion, I was thinking on doing that with a local service, but ...
common-pile/stackexchange_filtered
Pandas: How to pad value for every row that missing years I have a table contains keyword and its occurrence on each year, but if it doesn't occur in some years, those years are missing. But I need to pad those years with zero now, how can I do it with Pandas dataframe? My data is like the table below, each keyword sho...
common-pile/stackexchange_filtered
Create a nested objects from for-comprehension in Scala I have a case class being instantiated based on some DB operations: case class FullFight(fight: FightsRow, firstBoxer: BoxersRow, secondBoxer: BoxersRow, bookiesOdds: Seq[BookiesOddsRow]) val tupledJoin = for { f <- Fights b1 <- Boxers if f.firstBoxer...
common-pile/stackexchange_filtered
What is ** in C? the * is used for pointers, but what is ** used for? I found this question in a video I was watching on implementing a hash table passed into main as char **argv. Pointer to pointer. Pointers point to stuff. Sometimes that stuff is other pointers. Pointer to pointer. Like array of string in case of a...
common-pile/stackexchange_filtered
Can i hide the App Icon from the Action Bar in Honeycomb? I am currently planning the honeycomb update for my app and i am wondering how to use the Action Bar correctly. My first question is if it is possible to hide the App-Icon and Title from the Action Bar. And is there any kind of Design guidline for the Honeycomb-...
common-pile/stackexchange_filtered
PHP Global Exception handling across all classes In PHP,is there any way to handle exceptions globally using one method? If there is, how could I do that? I want to use the method which handles exception across all classes. The reason that I want to achieve this is I do not want to repeat same code all the time. Here i...
common-pile/stackexchange_filtered
std::vector<> No default constructor exists after using constructor from base class and overloading the derived class I am creating a template class and inheriting std::vector. Along with all the constructors of std::vector, I want to overload the constructor of the derived class with a custom class. However when I do ...
common-pile/stackexchange_filtered
Named Event in Python In python, is there a cross platform way of creating something similar to Windows named Event in one process, and set it from another process to signal something to the first one? My specific problem is that I need to create a process that on startup will check if any other instances of itself are...
common-pile/stackexchange_filtered
How to calculate the moment of inertia for 4 welded c beams? I'm trying to figure out if an existing bus shelter can support additional weight on its roof. To do that, I need to figure out the bending moment of it's supporting beams, but I'm stuck on the unusual beam structure it uses. Basically it's 4 welded C beams. ...
common-pile/stackexchange_filtered
Session and casting error [Telerik and C#] I don't how to cast this properly and I don't know if I pass it readable by telerik radgrid. Kindly check. I have the following codes: When I try to pass my session to another list type variable, it encountered error. I'm trying to pass session because I Pass it on another asp...
common-pile/stackexchange_filtered
Vaadin ServerRPC Exceptionhandling I implemented a custom widget and it does calls via a ServerRPC implementation. This works all good. I wanted to know how I should implement errorhandling, because I need the sent messages to be redelivered in case of an error. I pretty much followed this chapter in the book. Any help...
common-pile/stackexchange_filtered
Anyway to mark my answers as "mis-interpreted question"? Recently, I misinterpreted a question and provided an incorrect solution to a problem. Can, I mark it in any way just like we have "duplicate" questions? I would love to contribute to the community. But, I don't want to contribute poorly. I've misinterpreted a ...
common-pile/stackexchange_filtered
Load data from bucket google cloud Here is a function to load data from google cloud bucket. action_dataset_folder_path = 'action-data-set' zip_path = 'actions.zip' url='http://console.cloud.google.com/storage/browser/actions' class LoadProgress(tqdm): last_block = 0 def hook(self, block_num=1, block_size=1, ...
common-pile/stackexchange_filtered
Residue fields of gaussian primes I just started with algebraic number theory and need some help: In the ring of Gaussian integers a prime $p$ with $p=1\bmod 4$ splits into a product of two irreducible elements $(a+bi)(a-bi)$, with $a^2+b^2=p$, if $p=3\bmod 4$ then $p$ stays prime in $\mathbb{Z}[i]$ and if $p=2$ then $...
common-pile/stackexchange_filtered
Inserting strings into a two-dimensional char array, then printing them with a pointer in C I am a little new to using multi-dimensional arrays, but I think after extensive research, I was starting to feel super confident I could work with them correctly. Apparently, I guess I don't quite know them completely lol. In...
common-pile/stackexchange_filtered
Height in 2D game I'm working on a 2D top-down game (like the picture below) and am wondering what can I do for "jumping" So far, I've done these: adding two events in jumping animation (one for when the enemy is in the air and one for when it's coming back to the ground) the events turn enemy's colliders off and on ...
common-pile/stackexchange_filtered