text
stringlengths
70
452k
dataset
stringclasses
2 values
Parsing excel sheet in C#, inserting new values into database I am currently working on a project to parse an excel sheet and insert any values into a database which were not inserted previously. The sheet contains roughly 80 date-value pairs for different names, with an average of about 1500 rows per pair. Each nam...
common-pile/stackexchange_filtered
CKEditor show block element HTML I'm using CKEditor version 4.5. I want to configure showing HTML blocks for content. Please help me. Please use the Show Blocks plugin in your CKEditor build and it should work. It comes by default in the full-featured preset of CKEditor, but you can also add it to your custom build b...
common-pile/stackexchange_filtered
how To select fields from two tables I need to select these fields----- user_id, sales_vertical, partner_id, category, sub_category, stage_id, exp_revenue, action, action_date, title_action, date_action, details from opportunity_history table and tri_title, tri_subtitle from res_partner table where res_partner.part...
common-pile/stackexchange_filtered
What is the probability that the shooters will hit the target at least once Three shooters shoot at the same target, each of them shoots just once. The first one hits the target with a probability of $70\%$, the second one with a probability of $80\%$, and the third one with a probability of $90\%$. What is the probabi...
common-pile/stackexchange_filtered
Deleting a path in 2D coordinate system (python) Just a simple, quick question: I have to write a function delete(path,field) which will delete a path in coordinate system. Function isnt returning anything, it only remakes the field. Thus far i managed to do this: def delete(path,field) for x,y in path: #th...
common-pile/stackexchange_filtered
Get column creation datatype for declaration Is there a quick way to get a string containing the sql datatype required for a column declaration, based on column/column information in the database. For example I'd want strings returned such as: varchar(200) datetime numeric(35,5) Obviously I can get the information req...
common-pile/stackexchange_filtered
Cannot load jQuery I can not load jQuery fadeIn in my codepen.io website. here is the link towards it. $("#div1").fadeIn(3000); $("#div2").fadeIn(3000); $("#div3").fadeIn(3000); https://codepen.io/shivam60/pen/oqmeyz did you included jquery? You need to load jQuery before jQuery UI: https://codepen.io/anon/pen/aYXGX...
common-pile/stackexchange_filtered
Get bash read command to understand spaces only I need to have the following work: $ read -r -p 'input: ' foo input: <space><space><space> $ echo "text""$foo""more text" text more text Where <space><space><space> is replaced with actual spaces. However this is only possible if I set the variable manually: $ foo=' ...
common-pile/stackexchange_filtered
Sizing iAd Banner Views This seems like it should be simple, but the documentation is very unclear. In the introduction of the ADBannerView class, Apple says this: A banner view must always use one of the standard sizes defined in Content Size Identifiers. This is to ensure that the advertisement is drawn correctl...
common-pile/stackexchange_filtered
How can I DRY out this Ruby Code How can I DRY out the following Ruby Code: x = 'a random string to be formated' x = x.split('^')[0] if x.include?('^') x = x.split('$')[0] if x.include?('$') x = x.split('*')[0] if x.include?('*') I'm looking for the amazingly elegant ruby one liner but I'm having a har...
common-pile/stackexchange_filtered
How can we employ libp2p to establish a secure private network that is impervious to unauthorized connections? backgroung Currently, I am looking to utilize Helia to construct a private IPFS network. The critical issue at hand is "Ensuring that this private network remains inaccessible to external nodes." Since Helia's...
common-pile/stackexchange_filtered
Redirect to Url after domain I want to get redirect by click on button, I use: <inputtype="submit" onclick="location.href='first';" value="goSomewhere1"/> <inputtype="submit" onclick="location.href='second';" value="goSomewhere2"/> and it workf if is clicked on page http://ADDRESS but if is clicked when url is like ht...
common-pile/stackexchange_filtered
Unable to run one python script from another python script I'm trying to run one script from another script. I've read; What is the best way to call a script from another script? and I can't seem to get this to work. My main script (Script A) does a lot of image processing and GUI interactions. However, randomly an err...
common-pile/stackexchange_filtered
Same height elements - bootstrap I would like to make all elements in my list the same height even when one of them has more text in it, then it would be great if others could adjust. I have used divs but have no problem to change to li, actually I'm looking for advise how to solve this the best way. I am using twitter...
common-pile/stackexchange_filtered
SQL Server PIVOT - Vertical to Horizontal - error Will you please help to check this? CREATE TABLE Sales ( Category NVARCHAR(30), Region NVARCHAR(30), Amount MONEY ) DELETE FROM Sales INSERT INTO Sales VALUES ('X','1',24), ('X','2',NULL), ('X','3',165), ('X','4',36), ('Y','1',38), ('Y','2',181), ('Y','3...
common-pile/stackexchange_filtered
mktime function in php not working properly I am using code: $old_month = strtolower(date("m", mktime(date('H'), date('i'), date('s'), (date('m')-12),date('d'), date('Y')))); $old_year = strtolower(date("Y", mktime(date('H'), date('i'), date('s'), (date('m')-12), date('d'), date('Y')))); if ( $profile_stats['month'] ...
common-pile/stackexchange_filtered
Wizard or script to assign folder permissions I'm new to server support; spending most of my time in desktop support. I've been given a request to add read-only access to a list of subfolders on a Windows 2003 Server. Rather than adding the user into the security tab of each folder, is there a wizard or script I could...
common-pile/stackexchange_filtered
PayPal Plus - Webhook - to change payment status in database If a customer in my opencart shop pays with paypal I need a webhook to control a payment change like pending, refund, etc. So, if the customer pays with paypal the method below is called from paypal plus over the webhook URL: public function webhook(){ $...
common-pile/stackexchange_filtered
Is there a way to include non-exporting js library into vue cli project? For the past 2 days I've been trying to include a non-exporting js library into my vue project and it seems to fail every time. The closest I've got to a working thing is with import *. It recognizes the commands in the library, but when I try to ...
common-pile/stackexchange_filtered
When trying to create a table using clojure.java.sql/create-table I get the exception When trying to create a table using clojure.java.sql/create-table I get the exception: batch entry 0: near "-": syntax error [Thrown class java.sql.BatchUpdateException] The create-table call looks like this: (sql/create-table :...
common-pile/stackexchange_filtered
How to find the smallest values of the vectors sequentially Suppose I have a vector x and I would like to find the smallest values of this vector. Then, I would like to return a new x without the selected element and then extract the smallest value from the remaining values and so on. For example, x <- c(3,4,2,1,6,10...
common-pile/stackexchange_filtered
What are identical molecules? I don't know what identical molecules are but these are by thoughts. Since from the word identical the molecules should have the same number and kind of atoms attached in the same way. Since in stereo-chemistry the isomerism is due to spacial orientation all stereo-chemical isomers are id...
common-pile/stackexchange_filtered
SVM prediction accuracy drops when using Test data I am using the Kaggle Scikit data to learn R. I am using the R e1071 SVM function to predict classes. When I use: svm(train, trainLabels, scale = TRUE, type = NULL, kernel = "polynomial") I obtain this level of accuracy on a sample of the Train data: > table(pred, tra...
common-pile/stackexchange_filtered
MikTex 2.9 64-bit not loading sans serif font for moderncv I just got a new computer and installed MikTex 2.9 for Windows7 64-bit. When I compiled my resume for the first time (moderncv, theme casual), it compiled in roman vs. sans serif fonts. I did not specify the roman argument, so the document should default to san...
common-pile/stackexchange_filtered
How do I resolve a schema parse exception with Ant? I have an ant build.xml file which contains xjc targets. Apparently the build process works with Ant 1.7.1, but any newer version results in build failure. I'm using the following: ANT 1.9.7 Java JDK 1.8.0_171 The exact text of the error message is: build.xml:96: ...
common-pile/stackexchange_filtered
Why does Node.js shorten my buffer when writing to file? I'm experiencing some weird behavior in NodeJS v14.16.1 on Windows 10. When I append 4 bytes to a file, it's only appending 2 bytes: const fs = require('fs'); let infoFile = fs.openSync('field.info', 'a'); fs.writeSync(infoFile, Buffer.from([0x06, 0x00, 0x04, 0...
common-pile/stackexchange_filtered
NEXTJS google trend API Having trouble using the npm google trends api in NEXTJS Not sure if this is the right way to go about it. I made a new API route. http://localhost:3000/api/trends http://localhost:3000/api/trends import googleTrendsApi from "google-trends-api"; const handler = async (res, req) => { const da...
common-pile/stackexchange_filtered
MongoDB findAndModify() adds query to update clause I'm creating an application in Node that has some CRUD components. On one of my data objects, I have a save() method that is meant to update a record if the object has an id that is found in the collection, or upsert a new document if not. Additionally, if doing an up...
common-pile/stackexchange_filtered
When designing a function do you pass explict values or an object with those values? This is just a simple design question ... who's answer might be more opinion or preference, or 'it depends' but I'll ask it anyways. If I need to create a function that takes some values but I have an object contains those values do yo...
common-pile/stackexchange_filtered
Having a button increment an array each time it is clicked I'm tasked with having a button that will set a value entered to an array. The user will enter a value press the button, once the button is pressed the value the user entered is stored into an array. My teacher (yes this is a homework question) said that he wan...
common-pile/stackexchange_filtered
The old version of the website is still lingering on the Internet I run a simple companion website to my book. To count the hits on the website, I use a simple PHP counter that is triggered by this command <img src="counter.php?Identifier=name" height="0" width="0" alt="" /> Interestingly, about three years ago I did ...
common-pile/stackexchange_filtered
Using scrapy command "crawl" from django I am trying to crawl a spider (of scrapy) from django and now the problem is, the spider can be crawled only when we are at the top directory(directory with scrapy.cfg). So how can that be achieved? .../polls/managements/commands/mycommand.py from django.core.management.base im...
common-pile/stackexchange_filtered
Getent Hosts For Port 1519/tcp -iptables 16.04 I have a scenario: i will have to protect my network from unsolicited access from my DMZ machine, configure node-A to allow new connections on port 1915/tcp from hosts (obtained by 'getent hosts node-B') but disallow any other access from or to node-B. I am unable to find ...
common-pile/stackexchange_filtered
Azure Functions, Event Grid and Event Redelivery I have an Azure function app running under a Consumption plan, with functions that are triggered with the EventGridTrigger, and an Event Grid Topic that is triggering the functions. I'm relying on the retry functionality to increase reliability. If the function doesn't a...
common-pile/stackexchange_filtered
Python - Launch detached process, wait for specific output in stdout, then continue I currently have the following Python code: my_process = subprocess.Popen(["cmd.exe", "/c", "unchangable_long_running_script.bat"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in iter(my_process.stdout.readline, b""): ...
common-pile/stackexchange_filtered
Rails 4, Active record strict search by arrays in associations Given these models: class Farm < ActiveRecord::Base has_and_belongs_to_many :animals end Class Animal < ActiveRecord::Base has_and_belongs_to_many :farms end I need to search for farms that have ducks, pigs and cows but none of cats and dogs. This kin...
common-pile/stackexchange_filtered
Struts2 Jquery plugin chaning dropdown values holding on JSP submission My question is regarding struts2 jquery plugin for chaining select boxes. I mean by default when the page jsp gets loaded values are already loaded in the dropdown. When we select a value from the first dropdown, based on the selected value the sec...
common-pile/stackexchange_filtered
Why Nullable<T> is a struct? I was wondering why Nullable<T> is a value type, if it is designed to mimic the behavior of reference types? I understand things like GC pressure, but I don't feel convinced - if we want to have int acting like reference, we are probably OK with all the consequences of having real reference...
common-pile/stackexchange_filtered
Getting portion of Image using PixelReader/PixelWriter JavaFX I'm trying to get a portion of an Image using JavaFX, but the code fails when y = 1. Here is the code: public static Image crop(Image src, int col, int row) { PixelReader r = src.getPixelReader(); int sx = col * Grid.SIZE; // start x int sy = row...
common-pile/stackexchange_filtered
How can I recognize animals in a video stream or static images with openCV or other library/software? I'm a software developer not experienced in AI or machine learning, but I'm now interested in developing this kind of software. I want to develop software that recognizes some specific objects, specifically, animals fr...
common-pile/stackexchange_filtered
Best way to create a multiple windows WPF C# application? I'm currently working on a school project where I'm asked to develop a C# WPF application. I'm implementing the MVVM design-pattern. This is why my main goal is to avoid using code-behind as much as I can. My main concern is that I'm trying to figure out an effe...
common-pile/stackexchange_filtered
Can I increase the output capacitance of a DCDC beyond the specified maximum? The MPM3822C is a synchronous, step-down, power module with an integrated inductor. According to the datasheet, the maximum output capacitance is 100uF: Questions: Why do they specify a maximum? Would it be bad if I used two 100uF capacito...
common-pile/stackexchange_filtered
'... is followed by...' There is some footage of the Second World War. This is followed by some more printed words. Is it correct to use 'is followed by' in this context? The sentences are about a video. Yes: it's perfect English. I can see why you might have asked this question. "There is" might be seen as a littl...
common-pile/stackexchange_filtered
Solving PDE with method of characteristcs with both initial conditions $0$ I need to solve using the method of characteristics: $$\frac{\partial ^2 u}{\partial t^2}=c^2\frac{\partial^2 u}{\partial x^2}$$ $$u(x,0)=0, \hspace{2cm} u(0,t)=h(t)$$ $$\frac{\partial u}{\partial t}(x,0) = 0, \hspace{2cm} u(L,t) = 0$$ I'm at a ...
common-pile/stackexchange_filtered
Is it possible to have too many cities? I have 46 cities, but for some reason I can no longer attack cities, nor can I raze any of my current cities. Each time I try to finish off the city, it just goes to the next unit. The same happens if I try to attack with that unit. I can nuke, bomb and shoot it to the last HP, b...
common-pile/stackexchange_filtered
How to create a Tkinter based app even after closing the window? I want to create an app on Windows using Python that keeps running in the background even after I close the Tkinter window. To open the UI, just clicking on the app in the background apps panel should open it. Eg: The Telegram app keeps running in the bac...
common-pile/stackexchange_filtered
A nuclear weapon to destroy the earth - in public domain! Aliens (or atleast we presume it's aliens) have radio broadcasted from a distant part of the universe. They have provided a method to create a nuclear weapon powerful enough to blow up the entire solar system (maybe even more than that). Now any lab in the world...
common-pile/stackexchange_filtered
Treeview re-select node by code after use When selecting a treenode in my WinForm treeview, it gets highlighted with the blue background to indicate it is selected. Once the user hits a button, the selected node gets used in some code. In this example, when the button is pushed, the node moves up an instance. But once ...
common-pile/stackexchange_filtered
How to encode and set url as query string to other url in location.href? I have following url http://www.example.com/p1/val1/p1/val2 Now I want to pass third parameter as url like '/path/to/file' http://www.example.com/p1/val1/p1/val2/url/????? How can I do that with combination of js and php? After passing above, I wo...
common-pile/stackexchange_filtered
Java: Open default mail client I have a software that periodically parses my mail inbox. The functionallity of the program depends on the default mail program running. How can I start the default mail program from within java? I know that you can acheive this by using the Desktop class: Desktop.getDesktop().mail() but...
common-pile/stackexchange_filtered
Looking for a story quote about "writers license" I don't remember the author, but Kishon and Hasek would be my prime usual suspects. (Mainly since I surely read the short story a long time ago - could be 50 years ago when I was a kid - and these two humorists I read most. Also, it was from a collection of humor storie...
common-pile/stackexchange_filtered
How to calculate percentage of size change for window resize? I'm trying to calculate the percentage that the browser was resized but I can't seem to capture the size of the window before the resize began and then the size after it finishes. $(function () { var originalHeight = $(window).height(); $(window).res...
common-pile/stackexchange_filtered
Whats the most efficient food one could forage in the Taiga in a survival situation? I have been watching the German YouTube series "7 vs Wild" (YouTube here, German Wiki link here). The premise is that 7 participants have to survive for 7 days after being marooned in the Swedish wilderness. Participants are allowed to...
common-pile/stackexchange_filtered
Hot key combo to submit simultaneous Tab plus Enter I need to create a key combo, preferably Right Shift+Enter that will actually submit a simultaneous press of 'tab plus enter'. The hotkey combo can be any combo that can be done with the right hand, and obviously needs to be non-printing keys. Would greatly appreciat...
common-pile/stackexchange_filtered
MVC Stream Picture rotated I want to use a rotated Image in an MVC Application. For this purpose i worte an Controller which Returns a rotated Image, but I cant get it working. This is my Command: public ActionResult PictureStreamRotate(string filename) { Image image = Image.FromFile(filename); image.RotateFlip...
common-pile/stackexchange_filtered
One controller uses its corresponding layout, but the other does not My Rails project has two controllers, a SessionsController and a CustomersController. My project also has two layout views in the layouts directory, sessions.html.erb and customers.html.erb. I would like the SessionsController to render using the sess...
common-pile/stackexchange_filtered
What exactly is the neural receptive field? Neural receptive fields map the spatial or temporal distribution of the data to individual neuron excitation, if I understand correctly, but I do not understand if receptive fields (especially in the higher cognitive areas such as the various layers of the visual cortex, etc....
common-pile/stackexchange_filtered
I'm Having Problems Rigging This Model I made a custom Sonic model, with a custom rig, and for some reason, even after lowering the poly count, or removing doubles, automatic weights keeps failing. I'm not sure what else I can do. If anyone has some tips, please share. File:https://www.mediafire.com/file/mf8ujfm58vxo8o...
common-pile/stackexchange_filtered
Morrie's law with sines While it's trivial to prove $\prod_{k=0}^{n-1}\cos(2^kx)=\frac{\sin(2^nx)}{2^n\sin x}$, Wikipedia refers to a "similar" identity $\sin\tfrac{\pi}{9}\sin\tfrac{2\pi}{9}\sin\tfrac{4\pi}{9}=\frac{\sqrt{3}}{8}$. How does this generalize to a result for $\prod_{k=0}^{n-1}\sin(2^kx)$? Failing that, ho...
common-pile/stackexchange_filtered
How to mark an item as "Expired" when it's ExpiryDate value is in the past? I have a table of items, each of which has a Status and ExpiryDate. What is the best way of enforcing this: when ExpireyDate > DateTime.Now update Status to "expired" I could have a stored procedure which is run periodically, which checks all ...
common-pile/stackexchange_filtered
jQuery Tooltip on .click instead of hover for chrome extension Wanted to reach out and ask to see if anybody has had any experience designing Chrome extensions. I saw my buddy in a slack chat talking about how great it would be if there was a plugin that prevented mailto: links from going straight to your mail app, and...
common-pile/stackexchange_filtered
Download size of Docker images While pulling a Docker image, it downloads it in separate parts (layers). I need to get the download size of all necessary layers of an image before actually downloading it. Is there a way to do it? One can just be running the docker pull command and watch the output: ffcacfbccecb: Downl...
common-pile/stackexchange_filtered
Find the minimal composition from n sets that satisfies the given condition. We have N sets of triples, like 1. { (4; 0,1), (5 ; 0.3), (7; 0,6) } 2. { (7; 0.2), (8 ; 0.4), (1 ; 0.4) } ... N. { (6; 0.3), (1; 0.2), (9 ; 0.5) } and need to choose only one pair from each triple, so that the sum of the first members in pa...
common-pile/stackexchange_filtered
Can't convert division result into float or decimal type I have a calculation in my t-sql code that I expect will show decimal result (with at least 2 digits after comma) My fields that I am using are integer type, but the calculations result is decimal I tried using CAST as float, but won't work (COUNT(ct.[ClientFK...
common-pile/stackexchange_filtered
Android GPs location tracker I want an Android app that will take user coordinates and send them to another app which will be in turn shown on a map. I can get my location on the map, but how so I send it to the other app? Please help? how about add your location to a List with a Timestamp? Where is your other app in...
common-pile/stackexchange_filtered
Error opening SQL Server Compact Edition 4.0 using Nhibernate I have the following setup in app.config: <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > <session-factory name="Nh.Data"> <property name="connection.provider"> NHibernate.Connection.DriverConnectionProvider ...
common-pile/stackexchange_filtered
Error in CMake path I'm trying to build the Visual Studio project for a kinect demo thing, rgbddemo. According to the instructions on the page, I need to set the PATH variable to include QMAKE from QT. I did that, but I keep getting this error: CMake Error at CMakeLists.txt:1 (QT4_WRAP_CPP): Unknown CMake command "QT...
common-pile/stackexchange_filtered
Is binning data valid prior to Pearson correlation? Is it acceptable to bin data, calculate the mean of the bins, and then derive the Pearson correlation coefficient on the basis of these means? It seems a somewhat fishy procedure to me in that (if you think of the data as a population sample) the scatter of these mean...
common-pile/stackexchange_filtered
Product images no updating in Magento, staying as watermark Having a bit of a weird bug in Magento that I can't quite figure out. When trying to update product images in admin the images don't update on the frontend, instead the default 'no image' watermark appearing instead still. What is odd though is that when I sel...
common-pile/stackexchange_filtered
Batch file to search for the existance of .odex file in android system/app I am working on a large batch file and have a small section that I need help with. I want to do the following. For every *.apk in \mod folder search the phone /system/app for the the .odex version of the filename in mod. Print whether it exists ...
common-pile/stackexchange_filtered
How to use charIndex to separate out a varchar into difference columns I would like to split out some supplier names from this long string of data into a new column however, I'm unsure how to use charindexing to get the bit I need. Is anyone able to help explain where I'm going wrong? I've tried the below but I'm only ...
common-pile/stackexchange_filtered
Unable to show result for executed sql statement Basically,I have a pdo prepared statement.It executes but shows no result.This is my code: <?php require 'config.php'; $query = $_GET['q']; if ($query==null) { exit('No query'); } $sql = "SELECT * FROM `uploads_public...
common-pile/stackexchange_filtered
Deleting pandas string value from all rows in a column and convert it to DateTime I would like to delete "- 01" , "- 02", "- 03",etc. in the Hours column and then concatenate date and Hours column as a DateTime. Could you please help me? Thanks in advance df['new_date'] = df['date'].astype(str) + ' ' + df['Volume'].a...
common-pile/stackexchange_filtered
Excel - Vlook up with Imported data In an Excel work book I have 2 tabs. 1 has imported data from another workbook. The other I am attempting to do a vlookup, to fill in some cells based on the data in the first workbook. However, the vlook up is not working, until I look at the imported data, select the cell and hit e...
common-pile/stackexchange_filtered
difference at pipe and console I have the following program: #include <sys/types.h> #include "ourhdr.h" int glob = 6; /* external variable in initialized data */ char buf[] = "a write to stdout\n"; int main(void) { int var; /* automatic variable on the stack */ pid_t pid; ...
common-pile/stackexchange_filtered
B+Tree height assessment Say I have a B+ tree with branching factor b=10. I want to put inside n=9000 items. I calculated the height to be 4-6, persuming that the root is full. If I make the root width only 1 item, can I assume that I have 2 B+ trees of 4500 items each to get a height of 5-7? Are you currently taking ...
common-pile/stackexchange_filtered
Oxygen Builder Repeater Advanced Query Looking for some help with a repeater using an advanced query using ACF. I've got two custom post types: Product, Vendor Vendor has a sponsored field. Product has a relationship field connected to Vendor I am trying to sort the Product Archive loop by the sponsored field, so that ...
common-pile/stackexchange_filtered
Kivy how to access widget in function, no KV just python code Sorry for my very basic problem but I have been searching around of an answer for an hour to no avail. this is my basic code: class LoginScreen(Screen): def __init__(self,**kwargs): super(LoginScreen,self).__init__(**kwargs) l = BoxLayout(orientat...
common-pile/stackexchange_filtered
MDT 2013 - Client not picking up new Unattend.xml settings I'm deploying a new image via MDT 2013. I created a new Task Sequence using an existing image and tested it on a VM. I ended up getting the "Unattend.xml Error - Could not parse or process for pass [specialize]..." error. I went in and checked, and the "IEWelco...
common-pile/stackexchange_filtered
How to input new text for prediction in keras while using an inbuilt dataset I am going through the examples in keras and I ran the example for using an LSTM for classifying sentiment on the inbuilt imdb dataset (https://github.com/fchollet/keras/blob/master/examples/imdb_lstm.py). On inspecting the data, each review ...
common-pile/stackexchange_filtered
Invalid arguments were passed to DockerOperator (retrieve_output) In trying to create the DockerOperator, I got this error: Invalid arguments were passed to DockerOperator (task_id: t2). Invalid arguments were: **kwargs: {'retrieve_output': True, 'retrieve_output_path': '/tmp/script.out'} Here is my code: from airflo...
common-pile/stackexchange_filtered
Generate and reserve consecutive serial numbers I'm facing a problem on how to reserve unique consecutive serials in a table of devices in a distributed environment. Situation The customer has multiple flashing stations, where devices are flashed. According to the type of device, a consecutive serial number needs to be...
common-pile/stackexchange_filtered
HTML: div under div All answers are not helping me. Please see here: https://jsfiddle.net/prg5hc9m/1/ #main { width: 300px; height: 400px; position: relative; } #main1 { position: absolute; float:left; } #main2 { position: absolute; overflow-y: scroll; height: inherit; float:left; width: 50%...
common-pile/stackexchange_filtered
Reading RAW images in c++ or Do RAW images have headers? I've got some weird images I'm getting from some hardware at work. They're from this weird piece of hardware that has multiple images being stitched together and stored as raw images. Think of one of those computer security displays with four images displayed at ...
common-pile/stackexchange_filtered
Can't figure out how to copy between VIM terminals on OS X I know I need to copy into the " or * registers or something like that Let's say I have one c program in one terminal running vim and another program in another terminal... How do I copy a line between them? run vim --version and look to make sure clipboard su...
common-pile/stackexchange_filtered
How to save file in Downloads folder on iOS with Unity I am currently facing a problem, where I need to save a file (PDF) into downloads folder on iPhone (or in the best scenario prompt a download somehow) from Unity. We can save data in Application.persistentDataPath, but that is, to my knowledge, inaccessible from th...
common-pile/stackexchange_filtered
XSL word wrapping issue I have a table coded in XSL which is used to generate a pdf when executed. There is an issue when a user enters data into the CountryGroup table cell. If there are no spaces in the data it will break the boundaries of the cell and the data will spill into other cells making the document unreadab...
common-pile/stackexchange_filtered
how to get ontouch event in bitmap inside canvas? i have a bitmap inside a canvas.the class implements ontouchlistener.i need to hide the image while touch on the image. class Panel extends View implements View.OnTouchListener { Paint linepaint=new Paint(); public Panel(Context context) { super(context); } @O...
common-pile/stackexchange_filtered
writing the test case for the object which returns a jsx element using enzyme how can i test the below object or a function which returns a Link from react-router-dom see the below snippet. Confused on how to achieve the coverage for the below object. import React from "react"; import { Link } from "react-router-dom";...
common-pile/stackexchange_filtered
Drupal 7 PDOException: SQLState[42S22], unknown field I don't know where to start for this error: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created' in 'field list': SELECT created FROM {counter} WHERE created<>0 ORDER BY created DESC LIMIT 1; Array ( ) in counter_block_view() (line 143 fr...
common-pile/stackexchange_filtered
dynamic allocation and value of the class member Why does value k change, after the second call of check(base)? class Base{ public: int k=0; virtual void print(){ cout<< k<<endl; } }; Base* check(Base* p){ Base* t = new Base; t->k = 4; delete p; return t; } int main(){ Base* base ...
common-pile/stackexchange_filtered
Avoid Url to be treated as hyperlinks in Rails Mailer I'm sending a mailer to users that includes a link to their created post. This link should be for copying and pasting only, however it delivers automatically as a blue underlined hyperlink. Any suggestions? Thanks <td width="440" height="50" bgcolor="#f5f5f5" style=...
common-pile/stackexchange_filtered
Xamarin IOS image load problem in WebView I have a simple WebView in Xamarin. I use VisualStudio 2022 on Windows. I downloaded an image. The image is exists. I can load it into an ImageView. I want to show the image in WebView with other html code. A simple test code: private async void WebViewImagetest() { ...
common-pile/stackexchange_filtered
Best radio-button implementation for IOS I would like to ask if there are examples out there on how to implement radio-button options on an iPhone app. I find the Picker View quite big for a simple selection feature. I'm not sure if Apple excluded radio buttons on purpose, and whether if it is better to simply use a Pi...
common-pile/stackexchange_filtered
Custom Authentication with Cloud Endpoints I'm extremely stuck at the moment with authentication and Cloud Endpoints. I've looked at these two answers and I'm still unsure of how to approach this problem. Google Cloud Endpoints and user's authentication Custom Authentication for Google Cloud Endpoints (instead of OAuth...
common-pile/stackexchange_filtered
NTRU Euclidean algorithm the inverse of f modulo p I am very new to the world of cryptography and have just began my research in the post quantum cryptography sector. I have been reading and trying to understand NTRU key generation and am struggling to understand how to practically do the inverse of f. I know that this...
common-pile/stackexchange_filtered
How to send different keys each time a button is pressed? So i got this code: Chars:= ["5","6"] , cnt:= 0 Lbutton:: Send % Chars[cnt:= ++cnt>chars.MaxIndex() ? 1 : cnt] KeyWait, Lbutton Return Its working fine. If i hit the Left Mouse Button, its gonna send the 5 key. If i hit it again its gonna send the ...
common-pile/stackexchange_filtered
Multi-Condition Handling with errorlevel Using a script for Python dependencies, I want to pause execution if the errorlevel returns 1, and exit if execution of the commands is successful and errorlevel returns 0. py devscripts/install_deps.py --include py2exe py devscripts/make_lazy_extractors.py py -m bundle.py2exe i...
common-pile/stackexchange_filtered
How to change color / hover color of icons? - Magento2 How can I change the color and hover color of an icon, for example "icon-cart"? I already have a custom theme. I found this website which has a nice documentation, but I dont really understand it. The Site: http://magento2-demo.nexcess.net/pub/static/frontend/Magen...
common-pile/stackexchange_filtered
Falls off network ("Destination host unreachable") I am running my Raspberry Pi headlessly, connecting via SSH over the network. I am having a problem that I can consistently reproduce. I will leave a Python script running on my Raspberry Pi and come back a few hours later and SSH connections to the Raspberry Pi will ...
common-pile/stackexchange_filtered