qid
int64
1
74.7M
question
stringlengths
12
33.8k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
0
115k
response_k
stringlengths
2
98.3k
167,320
Just now I discovered the "Pointer Location" dev app on Android, which tells how much pressure is being applied on the point on the touchscreen. They even have it since Android 1.0. I know there may not be dedicated pressure sensors and it is just an estimate depending on point size. I am saying that why didn't or co...
2017/01/21
[ "https://android.stackexchange.com/questions/167320", "https://android.stackexchange.com", "https://android.stackexchange.com/users/206050/" ]
Don't run to conclusions early - some [Huawei](http://www.androidcentral.com/hands-force-touch-huawei-mate-s)/[Meizu](http://www.meizu.com/en/products/pro6/3dpress.html)/[ZTE](http://www.techtimes.com/articles/94274/20151012/zte-adds-axon-mini-force-touch-watch-flagship-lineup.htm) flagships has it, sometimes referred ...
The fact that some kind of estimation of the pressure is there doesn't mean that it works well. It is better to stick to features that are more reliable. Half-baked options are not something welcome in operating systems. Also, don't you think this would be copying Apple's idea?
10,880
I am designing a fill-in-the-blanks quizz. I start with paragraphs, and for each paragraph I append some buttons below which are the possible answers for the blanks. Please see <http://wikilearner.net/wiki/> The problem is that, because there are multiple paragraphs, it becomes easy to get confused about which paragr...
2011/09/05
[ "https://ux.stackexchange.com/questions/10880", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/7804/" ]
What about something like this: [![enter image description here](https://i.stack.imgur.com/6uyfC.png)](https://i.stack.imgur.com/6uyfC.png) * Use an interaction model that users expect; treat the missing words as a control panel that sits above the content * Change the colour from grey to yellow (or any colour), draw...
Perhaps something like this instead: ![enter image description here](https://i.stack.imgur.com/mLzKI.png) I do have a few comments on other aspects of the design: * The "answers" look too much like buttons. I clicked a couple of times before I realized that I needed to drag and drop. * Dragging and dropping takes ti...
10,880
I am designing a fill-in-the-blanks quizz. I start with paragraphs, and for each paragraph I append some buttons below which are the possible answers for the blanks. Please see <http://wikilearner.net/wiki/> The problem is that, because there are multiple paragraphs, it becomes easy to get confused about which paragr...
2011/09/05
[ "https://ux.stackexchange.com/questions/10880", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/7804/" ]
Perhaps something like this instead: ![enter image description here](https://i.stack.imgur.com/mLzKI.png) I do have a few comments on other aspects of the design: * The "answers" look too much like buttons. I clicked a couple of times before I realized that I needed to drag and drop. * Dragging and dropping takes ti...
Regarding how to make things look like they are grouped properly, you can sometimes use alternations of background colors rather than drawing lines. Note for instance my answer to this question uses color instead of boxes. Similar but more subtle techniques might help: [How to create bands of number ranges for a field...
10,880
I am designing a fill-in-the-blanks quizz. I start with paragraphs, and for each paragraph I append some buttons below which are the possible answers for the blanks. Please see <http://wikilearner.net/wiki/> The problem is that, because there are multiple paragraphs, it becomes easy to get confused about which paragr...
2011/09/05
[ "https://ux.stackexchange.com/questions/10880", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/7804/" ]
What about something like this: [![enter image description here](https://i.stack.imgur.com/6uyfC.png)](https://i.stack.imgur.com/6uyfC.png) * Use an interaction model that users expect; treat the missing words as a control panel that sits above the content * Change the colour from grey to yellow (or any colour), draw...
First of all: I think it is already pretty awesome and quite usable - it already works quite intuitively (several ways to interact) and just needs a bit of finetuning. To answer the specific question to make visual distinction between paragraphs: 1. more space between the buttons and the next paragraph. 2. a line be...
10,880
I am designing a fill-in-the-blanks quizz. I start with paragraphs, and for each paragraph I append some buttons below which are the possible answers for the blanks. Please see <http://wikilearner.net/wiki/> The problem is that, because there are multiple paragraphs, it becomes easy to get confused about which paragr...
2011/09/05
[ "https://ux.stackexchange.com/questions/10880", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/7804/" ]
What about something like this: [![enter image description here](https://i.stack.imgur.com/6uyfC.png)](https://i.stack.imgur.com/6uyfC.png) * Use an interaction model that users expect; treat the missing words as a control panel that sits above the content * Change the colour from grey to yellow (or any colour), draw...
Regarding how to make things look like they are grouped properly, you can sometimes use alternations of background colors rather than drawing lines. Note for instance my answer to this question uses color instead of boxes. Similar but more subtle techniques might help: [How to create bands of number ranges for a field...
10,880
I am designing a fill-in-the-blanks quizz. I start with paragraphs, and for each paragraph I append some buttons below which are the possible answers for the blanks. Please see <http://wikilearner.net/wiki/> The problem is that, because there are multiple paragraphs, it becomes easy to get confused about which paragr...
2011/09/05
[ "https://ux.stackexchange.com/questions/10880", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/7804/" ]
First of all: I think it is already pretty awesome and quite usable - it already works quite intuitively (several ways to interact) and just needs a bit of finetuning. To answer the specific question to make visual distinction between paragraphs: 1. more space between the buttons and the next paragraph. 2. a line be...
Regarding how to make things look like they are grouped properly, you can sometimes use alternations of background colors rather than drawing lines. Note for instance my answer to this question uses color instead of boxes. Similar but more subtle techniques might help: [How to create bands of number ranges for a field...
60,324
So I made a monster for D&D 5e. It's a multi-elemental elephant called the Elementalphant and its CR comes out to be about 8-9, but that kinda seems low. If I were to throw it against my party of six level 5's it would destroy them in only a few turns, without taking much damage. Here are all of its stats: * HP 178 (2...
2015/04/29
[ "https://rpg.stackexchange.com/questions/60324", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/19556/" ]
You are quoting expected CR - the final CR is much higher. On base hp 178 × 1.5 for immunities gives 262 - so defensive CR 13. Expected AC is 18, so an AC of 16 gives no adjustment. Expected damage per round (~45-55) from its breath weapons (3 with a 1/3 recharge chance - it will have one every round) plus some acid ...
I agree with [Dale M's answer](https://rpg.stackexchange.com/questions/60324/is-my-cr-correct-for-this-elementalphant-monster/60328#60328) in conclusion, but it makes some departures from the DMG in terms of calculations. Since the CR ended up a multiple of the Expected CR, we should use the "11-16" instead of the "5...
123,140
I am working on custom extension and i need to use the default feature of Magento 2 to send the email once order status is being changed by admin from the backend. What file i need to look it for? Please see the screenshot [![enter image description here](https://i.stack.imgur.com/c8LyU.png)](https://i.stack.imgur.com...
2016/06/28
[ "https://magento.stackexchange.com/questions/123140", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/31688/" ]
Please visit this link... <https://github.com/magento/magento2/blob/135f967/app/code/Magento/Quote/Observer/Webapi/SubmitObserver.php#L40-L58> I think the right object is use Magento\Sales\Model\Order\Email\Sender\OrderSender; and use the method "send" In my case, checkAndSend was protected and I cannot use from ex...
My problem is, that magento sents the transactional eMails every time in english instead of my german, which is the language of the stores order and customer? Any idea to solve it? Confirmation from Admin is in german.
16,353
I'm currently stuck with using an Apple Mighty Mouse I had laying around on my Vista (64-bit) workstation right now. I *always* accidentally press its left side button with my thumb, and, of course, it's bound by default to go back in web pages, and do other annoying things. I have checked the mouse configuration sett...
2009/07/31
[ "https://superuser.com/questions/16353", "https://superuser.com", "https://superuser.com/users/2811/" ]
<http://www.highrez.co.uk/downloads/XMouseButtonControl.htm> I found that linked off: <http://discussions.apple.com/thread.jspa?messageID=7296315> Sounds like you can use that software to disable the 4th button. He even has 64 and 32bit versions.
X-Mouse Button Control is a windows application to remap your mouse buttons. This software is designed and written for Microsoft Windows XP/2003 x64 Edition but I have also, from version 1.5, built a 32bit version. You are able to provide an application specific mappings, which means one application can use the mouse ...
47,362,072
I have a Wep API .NET core application running through IIS on Windows Server 2016. The app is doing a lot more than just replying to its API as it is monitoring events, etc on other services. I have 3 problems: * When I start / restart the app through IIS (or when publishing an update), it doesn't do anything until ...
2017/11/18
[ "https://Stackoverflow.com/questions/47362072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/695498/" ]
On the application pool set "Start Mode" to "AlwaysRunning" and on the website, itself, set "Preload Enabled" to "true". With those two settings, the application starts immediately. EDIT: You have to have "Application Initialization" module enabled on IIS
You must do those steps: * Turn on "Application Initialization" + Go to "Turn Windows features on or off" + Select "World Wide Web Services" > "Application Development Features" > "Application Initialization" + Press "OK" * Under Connections in IIS click on "Application Pools" + Right-click on the website which w...
385,068
I've watched many videos, and tried some myself, but none of it seems to work, what I'm trying to do here is make a row of hidden barrels. Obviously there are many way to hide it but I'm trying to do this. [![Before Opening](https://i.stack.imgur.com/iVVXt.png)](https://i.stack.imgur.com/iVVXt.png) After opened [![Af...
2021/04/22
[ "https://gaming.stackexchange.com/questions/385068", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/260347/" ]
**Important** [see this before reading](https://drive.google.com/file/d/1BFZyHtTbBxcvFiEzCi8kvrkK0wJaj8RI/view?usp=sharing) **Important** Ok, to start, I will say that in java edition, chests and furnaces etc are immovable objects, so they cannot be moved using a piston/sticky piston. If you want to hide something tha...
A row of barrels would make it too obvious that your hiding your stuff in the walls and floor, so 1 barrel would be VERY sneaky, or use map art or trapdoors, cause those cover entire blocks, enabling you to hide that enchanted netherite sword right under a map, and thieves will have no clue where to look, keeping your ...
59,429
I am building an experiment that consists of ten either stepper or DC motors. Ideally I want to just have a switch box with one switch per motor so I can just flip the switch for motor 1 and it will run at a set speed. I'd like to be able to operate up to 3 motors at one time. That is, I want to flip motor switches 1,2...
2013/02/28
[ "https://electronics.stackexchange.com/questions/59429", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/19556/" ]
**Power Source:** The motor in that spec is a 0.33 amp (4 Watts) motor. Since you want to power 10 motors, you will need deliver 3.33 amps to the motors. A cheap and extremely robust power source is a computer power supply. You can buy one from here: [16Amp 12VDC PSU](http://www.newegg.com/Product/Product.aspx?Item=N...
My recommendation, given that you're new is to just start with 1 motor. Considerations for running 10 of them(3 concurrently) can be left for a later stage. Since you want to use Ardunio, it's easy to get one of the Stepper Motor shields, hook up the motors and run. Ladyada has a [nice shield](http://www.ladyada.net/m...
59,429
I am building an experiment that consists of ten either stepper or DC motors. Ideally I want to just have a switch box with one switch per motor so I can just flip the switch for motor 1 and it will run at a set speed. I'd like to be able to operate up to 3 motors at one time. That is, I want to flip motor switches 1,2...
2013/02/28
[ "https://electronics.stackexchange.com/questions/59429", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/19556/" ]
Since you're using switches anyway, and at a set speed, you dont really require an arduino or really much fancy circuitry if a DC motor does your job. As noted in the other answer, you need 0.33A per motor. A 12V supply rated at above 1A is enough if you are certain to not use more than 3 motors at a time. To be safe...
My recommendation, given that you're new is to just start with 1 motor. Considerations for running 10 of them(3 concurrently) can be left for a later stage. Since you want to use Ardunio, it's easy to get one of the Stepper Motor shields, hook up the motors and run. Ladyada has a [nice shield](http://www.ladyada.net/m...
65,496
Gordon Ramsay's number two complaint (we know the first...) is that the food was frozen. But I am confused about the specifics. Does he mean the meat was not thawed before cooking? Does he mean that after being placed in a freezer meat cannot be "saved" even after thawing?
2016/01/16
[ "https://cooking.stackexchange.com/questions/65496", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/42285/" ]
I like chef Ramsay, he can be snobbish and course at times but he knows food and he's a straight shooter and tells it like it is. Sometimes he's just saying the food isn't hot or even warm in the middle, but some times he is referring to frozen vs fresh ingredients. Most food is better when it's fresh, because freezin...
There are a few more problems with frozen ingredients that might not be obvious at first: * The cut of the ingredients is usually already defined by how the factory did it, and might or might not be as desired, be it for textural, cooking behaviour, or presentation reasons. * There is always more free water in what yo...
65,496
Gordon Ramsay's number two complaint (we know the first...) is that the food was frozen. But I am confused about the specifics. Does he mean the meat was not thawed before cooking? Does he mean that after being placed in a freezer meat cannot be "saved" even after thawing?
2016/01/16
[ "https://cooking.stackexchange.com/questions/65496", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/42285/" ]
I like chef Ramsay, he can be snobbish and course at times but he knows food and he's a straight shooter and tells it like it is. Sometimes he's just saying the food isn't hot or even warm in the middle, but some times he is referring to frozen vs fresh ingredients. Most food is better when it's fresh, because freezin...
frozen meats is not good as fresh meats, big difference in taste, texture when you eat it. it feels dry in your mouth and boring unlike fresh meats are tender and tasty and you can tell it is good to eat food... Filipino here not chef but loves to cook for my family and friends.
65,496
Gordon Ramsay's number two complaint (we know the first...) is that the food was frozen. But I am confused about the specifics. Does he mean the meat was not thawed before cooking? Does he mean that after being placed in a freezer meat cannot be "saved" even after thawing?
2016/01/16
[ "https://cooking.stackexchange.com/questions/65496", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/42285/" ]
There are a few more problems with frozen ingredients that might not be obvious at first: * The cut of the ingredients is usually already defined by how the factory did it, and might or might not be as desired, be it for textural, cooking behaviour, or presentation reasons. * There is always more free water in what yo...
frozen meats is not good as fresh meats, big difference in taste, texture when you eat it. it feels dry in your mouth and boring unlike fresh meats are tender and tasty and you can tell it is good to eat food... Filipino here not chef but loves to cook for my family and friends.
856,959
I needed to find a way that two applications can use the same cache, and after some quick research it seems that we will need a distributed cache to achieve this. Further Googling turns up a number of solutions, [NCache](http://www.alachisoft.com/ncache/ncache_express.html), [SharedCache](http://www.codeplex.com/Shared...
2009/05/13
[ "https://Stackoverflow.com/questions/856959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/85070/" ]
We have been using Memcached for some time now and it works like a charm. It is really stable and the overall performance is also pretty good. You can make use of the "Memcached Providers" project at codeplex.com to easily integrate it with .net.
Depending on the solution you require a low-tech option might be to persist the results/data to a network share. Then have each machine hold a cached version (perhaps use the ASP.NET cache or Enterprise Library) of the data with a corresponding cache dependency. To answer your question I have heard excellent things...
40,395
I'm looking to make a pole shape similar to this excluding the piece on the top ![](https://i.stack.imgur.com/A429f.jpg)
2015/10/22
[ "https://blender.stackexchange.com/questions/40395", "https://blender.stackexchange.com", "https://blender.stackexchange.com/users/18614/" ]
Play with the Screw modifier. 1. Create a circle. 2. Hit **R X 90 Enter**. 3. **CNTL-A > Rotation and Scale**. 4. Edit mode. Select the circle. **G X 2 Enter**. 5. In the Modifiers palette, select **Screw**. By default, you will have generated a torus. 6. **Screw: 1.5** (play with this value). 7. **Iterations: 3** (pl...
So this is the first time I've done this on blender.stackexchange. so here goes. You'll want to start with a taurus. I did it with 48 segments (not because it was a good one to start with, but because I wanted to know if this would work myself). I then removed the inner vertices in edit mode until I had a tire-like ta...
6,647
I am currently doing some research on universally verifiable mixnets, but it seems to me that there are too few papers about them after 2006 or so and most of them come from the team of Douglas Winkstrom. Is this correct? Can anybody point me to current references about mixnets and their use in voting protocols?
2013/03/09
[ "https://crypto.stackexchange.com/questions/6647", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/4939/" ]
I found a few for shuffles. The papers below will be good pointers for recent results. * [Stephanie Bayer and Jens Groth: Efficient Zero-Knowledge Argument for Correctness of a Shuffle. EUROCRYPT 2012.](http://link.springer.com/chapter/10.1007/978-3-642-29011-4_17) * [Melissa Chase and Markulf Kohlweiss and Anna Lysya...
By this point, mixnets are pretty mature technology. The main reason you aren't finding many recent papers is they just work. Instead, most of the research effort has been devoted to building larger systems (sometimes using mixnet as just one of many building blocks).
103,160
I'm new with GeoServer. I'm trying to style a Geoserver layer. The features come from a PostGIS table. The feature are all lines. I'd like to style them based on attributes (of the table). I can do that. I created rules that say "if myfield = value1 draw a red line, if myfield = value2 draw a blue line, ..." and so ...
2014/06/25
[ "https://gis.stackexchange.com/questions/103160", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/32823/" ]
Yes, you can try styling your data with QGIS. But if you want to create a rule based sld or an sld with more options (fill opacity, rules, outline etc) I recommend you to use [uDig](http://udig.refractions.net/download/). With you uDig you can style your data with many options and then export slds that will work 99,9% ...
You could try styling it the way you like in qGIS and then exporting the SLD and using it in GeoServer. Check out this article and try it out since I find it much easier to use than styling in the SLD itself or through GeoServer's interface. <http://www.camptocamp.com/actualite/qgis-and-geoserver-creating-styles/>
56,064
I'm working on software which deals with lots (several millions) of RSA private keys. Keysize is 2048. I have to store them in a database, and I want them to be encrypted to mitigate risks of compromise from hostile access to the database. Naturally, applying a passphrase with PKCS #8 comes to mind. I can't have a se...
2018/03/01
[ "https://crypto.stackexchange.com/questions/56064", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/56550/" ]
> > Confirm or refute my assumption that using same passphrase to encrypt > millions of keys with PKCS #8 significantly weakens encryption > strength. If Eve gets enough encrypted keys, she can decrypt them > knowing that same passphrase was applied? Kind of "many times pad" > attack? > > > It depends. If y...
I'd at least use different stages, e.g. encrypt a single private key using the password using a strong PBKDF (PBKDF2, bcrypt, scrypt, Argon2), and then use a hybrid cryptosystem with an authenticated cipher to encrypt each private key. This has efficiency advantages and lets you encrypt the private keys without requiri...
56,064
I'm working on software which deals with lots (several millions) of RSA private keys. Keysize is 2048. I have to store them in a database, and I want them to be encrypted to mitigate risks of compromise from hostile access to the database. Naturally, applying a passphrase with PKCS #8 comes to mind. I can't have a se...
2018/03/01
[ "https://crypto.stackexchange.com/questions/56064", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/56550/" ]
> > Confirm or refute my assumption that using same passphrase to encrypt > millions of keys with PKCS #8 significantly weakens encryption > strength. If Eve gets enough encrypted keys, she can decrypt them > knowing that same passphrase was applied? Kind of "many times pad" > attack? > > > It depends. If y...
From a cryptographical perspective, a HSM comes to mind. The main reason for using a HSM-based solution here is that you gain assurance against attacks. After all, HSMs are robustly designed for security and explicitly built to make it impossible to gain access to the key-data stored within the HSM. Using a HSM, you ...
265,678
All of my machines are Macs (Mac Pro, MacBook Pro, MacBook Air and Mac Mini (and Apple TV 2.0 too! :) ) but for my day-job, I develop .NET/WPF applications. Normally I just boot into Boot Camp and develop that way, which of course works great, but there are times when I need to simultaneously get to things on my Mac-si...
2011/04/01
[ "https://superuser.com/questions/265678", "https://superuser.com", "https://superuser.com/users/39583/" ]
I know for a fact VMWare has certain extensions, or drivers, that you can install to increase performance; try those. As an extensive user of VMs myself, their performance can't match native speeds; just get used to it. I tried programming in VMs, then I got sick of it and got another computer, one for Windows, one for...
Try this !! Install and play any one of the latest PC games (Call of duty, NFS, etc) on your VM, since almost all PC games makes use of DirectX. These games are the perfect test for your hardware and underlying software as-well. If the game play experience was not good, then there should be some problem with VMWare/h...
265,678
All of my machines are Macs (Mac Pro, MacBook Pro, MacBook Air and Mac Mini (and Apple TV 2.0 too! :) ) but for my day-job, I develop .NET/WPF applications. Normally I just boot into Boot Camp and develop that way, which of course works great, but there are times when I need to simultaneously get to things on my Mac-si...
2011/04/01
[ "https://superuser.com/questions/265678", "https://superuser.com", "https://superuser.com/users/39583/" ]
I know for a fact VMWare has certain extensions, or drivers, that you can install to increase performance; try those. As an extensive user of VMs myself, their performance can't match native speeds; just get used to it. I tried programming in VMs, then I got sick of it and got another computer, one for Windows, one for...
I think there's a fundamental misunderstanding of VM technology here. A VM can never completely pass through information to physical hardware without a layer in between. When you're 'running' DX applications, they're getting run on a virtual video card, that, if you're lucky is having its output accelerated by hardware...
265,678
All of my machines are Macs (Mac Pro, MacBook Pro, MacBook Air and Mac Mini (and Apple TV 2.0 too! :) ) but for my day-job, I develop .NET/WPF applications. Normally I just boot into Boot Camp and develop that way, which of course works great, but there are times when I need to simultaneously get to things on my Mac-si...
2011/04/01
[ "https://superuser.com/questions/265678", "https://superuser.com", "https://superuser.com/users/39583/" ]
I know for a fact VMWare has certain extensions, or drivers, that you can install to increase performance; try those. As an extensive user of VMs myself, their performance can't match native speeds; just get used to it. I tried programming in VMs, then I got sick of it and got another computer, one for Windows, one for...
I've been a software developer for 27 years. (Yes, back when it was just text and color ascii characters...) Today I'm a Sr. developer for Windows/Web/Mac, and do my primary coding on a MacBook pro (with two external monitors- DVI and USB). While I do 95% of my WINDOWS coding (.NET) through Windows 7 on Fusion (VMWar...
556,911
The inflationary hypothesis as I understand it is a correction to GR to account for the observed [flatness of the universe](https://en.wikipedia.org/wiki/Flatness_(cosmology)) in a model in which the universe is expanding. How are the constants behind this inflationary hypothesis derived? I am looking to establish wh...
2020/06/03
[ "https://physics.stackexchange.com/questions/556911", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/265592/" ]
The age of the observable universe is determined from the *end* of the inflationary expansion, which is effectively the hot Big Bang. The end of inflation is associated with the hot Big Bang because, during inflation, matter and energy are exponentially diluted and the universe “reheats” after inflation ends, as the in...
Inflation results in a "multiverse" of causally-separated "local" universes. To elaborate on the uncertainties which might interfere with the formulation of constants, I'd like to mention the Borde-Guth-Vilenkin theorem (last revised in 2003), which is commonly cited as the basis for arriving at such a numerical conclu...
11,462,730
Are there any pure wsgi implementation of background task? I want to use local variables under the same context directly, not serialize/deserialize to another daemon process via a broker. Is it possible to make this happen under the current wsgi infrastructure? E.g. after return response yield, run some callback func...
2012/07/13
[ "https://Stackoverflow.com/questions/11462730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41948/" ]
This is a duplicate of question asked on the Python WEB-SIG. I reference the same page as provided in response to the question on the Python WEB-SIG so others can see it: <http://code.google.com/p/modwsgi/wiki/RegisteringCleanupCode> In doing this though, it ties up the request thread and so it would not be able to h...
You could look at Django async. It uses an in-database queue and so handles transactions much better. All arguments need to be JSONable as does the return type. In some cases this means you may need to schedule a wrapper function, but that oughtn't to cause you any headaches. <http://pypi.python.org/pypi/django-async>...
111,711
I am trying to communicate between 2 raspberry pi's (3B and 3B+), through Gpio's (not uart, just as input output). So I am making a gpio on one Pi as Input and on the other Pi as output. So can I connect them directly via jumper and will it not affect or damage my Pi in anyway? I'm too scared to even touch the Pi pin...
2020/04/24
[ "https://raspberrypi.stackexchange.com/questions/111711", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/118776/" ]
The **FIRST** thing you **MUST** do in interconnecting 2 devices is ensure they have a common reference (incorrectly called Gnd - as the Pi will float wrt Ground). It is also recommended to join Gnd **FIRST** - before making any other connection. It is acceptable to directly connect 2 GPIO, but it is prudent to use...
You can increase the safety of the connection and mitigate grounding issues by inserting an opto-coupler (e.g. 817) between the output pin of one pi and the input pin of the other. Note that opto-couplers work in only one direction, so if you have an opto-coupler between them you can't reverse the communication by reco...
6,097,733
**UPDATE** I have to apologize for confusing the readers. After I got totally lost in the code, I reverted all my changes from Mercurial repo, carefully applied the same logic as before -- and it worked. The answers below helped me understand the (new to me) concept better, and for that I gave them upvotes. Bottom li...
2011/05/23
[ "https://Stackoverflow.com/questions/6097733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1163802/" ]
Here is one [sample capture](http://www.freediameter.net/trac/browser/VirtualTestbed/mrb/capture.pcap?rev=9e5a3c884de6a635f786aea3e97e7e99f701a022)
It won't do you much good -- DIAMETER is the wrapper protocol. Unlike RADIUS, where the entire packet is defined, leaving you with only the problem of decoding vendor specific attributes, DIAMETER dances around the actual AVPs themselves. There is no "standard" the defines what those AVPs are, how they are encoded, if ...
6,097,733
**UPDATE** I have to apologize for confusing the readers. After I got totally lost in the code, I reverted all my changes from Mercurial repo, carefully applied the same logic as before -- and it worked. The answers below helped me understand the (new to me) concept better, and for that I gave them upvotes. Bottom li...
2011/05/23
[ "https://Stackoverflow.com/questions/6097733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1163802/" ]
Here is one [sample capture](http://www.freediameter.net/trac/browser/VirtualTestbed/mrb/capture.pcap?rev=9e5a3c884de6a635f786aea3e97e7e99f701a022)
I recommend you to take a look at the wireshark wiki regarding diameter, there a sample right there: <https://wiki.wireshark.org/DIAMETER>
6,097,733
**UPDATE** I have to apologize for confusing the readers. After I got totally lost in the code, I reverted all my changes from Mercurial repo, carefully applied the same logic as before -- and it worked. The answers below helped me understand the (new to me) concept better, and for that I gave them upvotes. Bottom li...
2011/05/23
[ "https://Stackoverflow.com/questions/6097733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1163802/" ]
I recommend you to take a look at the wireshark wiki regarding diameter, there a sample right there: <https://wiki.wireshark.org/DIAMETER>
It won't do you much good -- DIAMETER is the wrapper protocol. Unlike RADIUS, where the entire packet is defined, leaving you with only the problem of decoding vendor specific attributes, DIAMETER dances around the actual AVPs themselves. There is no "standard" the defines what those AVPs are, how they are encoded, if ...
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
FCKeditor has a great API, supports several programming languages (considering it is javascript this isn't hard to achieve), can be loaded through HTML or instantiated in code; but most of all, allows easy access to the underlying form field, so having a jQuery or prototype ajax buffer shouldn't be terribly difficult t...
I can't really decide on one of them. IMHO they are all not very good and complete. They all have their advantages and clear disadvantages. If TinyMCE is your favorite then afaik, it also does tables. This list will probably come in handy: [WysiwygEditorComparision](http://code.google.com/p/wikimodel/wiki/WysiwygEdito...
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
In my experience a two-way conversion between HTML and XML formats like TEI or DocBook is very hard to make 100% reliable. You could use [Xopus](http://xopus.com) ([demo](http://xopus.com/files/demo/xopus/xopus.html#/files/demo/examples/Simple/start.html)) to have your users directly edit TEI or DocBook XML. Xopus is ...
I can't really decide on one of them. IMHO they are all not very good and complete. They all have their advantages and clear disadvantages. If TinyMCE is your favorite then afaik, it also does tables. This list will probably come in handy: [WysiwygEditorComparision](http://code.google.com/p/wikimodel/wiki/WysiwygEdito...
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
I can't really decide on one of them. IMHO they are all not very good and complete. They all have their advantages and clear disadvantages. If TinyMCE is your favorite then afaik, it also does tables. This list will probably come in handy: [WysiwygEditorComparision](http://code.google.com/p/wikimodel/wiki/WysiwygEdito...
Small correction to laurens' answer above: As of now (May 2012), Xopus supports UTF8, but not BiDi editing. Right-to-left text is displayed fine if it came from another source, cannot be edited correctly. Source: I was recently asked to evaluate this, so have been testing it.
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
FCKeditor has a great API, supports several programming languages (considering it is javascript this isn't hard to achieve), can be loaded through HTML or instantiated in code; but most of all, allows easy access to the underlying form field, so having a jQuery or prototype ajax buffer shouldn't be terribly difficult t...
I've also used FCKEditor and it performed well and was easy to integrate into my project. It's worth checking out.
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
FCKeditor has a great API, supports several programming languages (considering it is javascript this isn't hard to achieve), can be loaded through HTML or instantiated in code; but most of all, allows easy access to the underlying form field, so having a jQuery or prototype ajax buffer shouldn't be terribly difficult t...
In my experience a two-way conversion between HTML and XML formats like TEI or DocBook is very hard to make 100% reliable. You could use [Xopus](http://xopus.com) ([demo](http://xopus.com/files/demo/xopus/xopus.html#/files/demo/examples/Simple/start.html)) to have your users directly edit TEI or DocBook XML. Xopus is ...
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
FCKeditor has a great API, supports several programming languages (considering it is javascript this isn't hard to achieve), can be loaded through HTML or instantiated in code; but most of all, allows easy access to the underlying form field, so having a jQuery or prototype ajax buffer shouldn't be terribly difficult t...
Small correction to laurens' answer above: As of now (May 2012), Xopus supports UTF8, but not BiDi editing. Right-to-left text is displayed fine if it came from another source, cannot be edited correctly. Source: I was recently asked to evaluate this, so have been testing it.
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
In my experience a two-way conversion between HTML and XML formats like TEI or DocBook is very hard to make 100% reliable. You could use [Xopus](http://xopus.com) ([demo](http://xopus.com/files/demo/xopus/xopus.html#/files/demo/examples/Simple/start.html)) to have your users directly edit TEI or DocBook XML. Xopus is ...
I've also used FCKEditor and it performed well and was easy to integrate into my project. It's worth checking out.
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
I've also used FCKEditor and it performed well and was easy to integrate into my project. It's worth checking out.
Small correction to laurens' answer above: As of now (May 2012), Xopus supports UTF8, but not BiDi editing. Right-to-left text is displayed fine if it came from another source, cannot be edited correctly. Source: I was recently asked to evaluate this, so have been testing it.
147,104
I'm looking for an internal representation format for **text**, which would support basic formatting (font face, size, weight, indentation, basic tables, **also supporting** the following features: * Bidirectional input (Hebrew, Arabic, etc.) * Multi-language input (i.e. UTF-8) in same text field * Anchored footnotes ...
2008/09/29
[ "https://Stackoverflow.com/questions/147104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7483/" ]
In my experience a two-way conversion between HTML and XML formats like TEI or DocBook is very hard to make 100% reliable. You could use [Xopus](http://xopus.com) ([demo](http://xopus.com/files/demo/xopus/xopus.html#/files/demo/examples/Simple/start.html)) to have your users directly edit TEI or DocBook XML. Xopus is ...
Small correction to laurens' answer above: As of now (May 2012), Xopus supports UTF8, but not BiDi editing. Right-to-left text is displayed fine if it came from another source, cannot be edited correctly. Source: I was recently asked to evaluate this, so have been testing it.
88,965
Which size wire do I need to run a 220 volt breaker? I need about 50 feet, but I'm not sure which size wire I need to run it with. I know it's a 220 volt circuit breaker.
2016/04/19
[ "https://diy.stackexchange.com/questions/88965", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/52871/" ]
According to Table R602.3(1) of International Residential Code (IRC), subfloor fastener schedule is as follows: * 3/8"-1/2" panels. Use 6d common nails, spaced 6" apart on edges and 12" apart in the field. * 19/32"-1" panels. Use 8d common nails, spaced 6" apart on edges and 12" apart in the field. * 1 1/8"-1 1/4" pan...
mostly correct if figured for a horizontal diaphram then the answer would depend on your lateral calculations...then you may have a different nailing pattern and stagger... but 6 and 12 is generally acceptable in most conditions
86,489
There is a free to browse online database of family mottos related to coat of arms and heraldry etc. As I understand it most of these are historical. To quote from the site (I have redacted the name in case it is not allowed) *This is a Free Motto resource center containing approx. 9,000 mottoes transcribed from Elvin...
2022/11/20
[ "https://law.stackexchange.com/questions/86489", "https://law.stackexchange.com", "https://law.stackexchange.com/users/47857/" ]
In US law, historic mottos are no longer protected by copyright, if they ever were. That would include any published prior to 1927 at the moment. However, short phrases, such as mottos are not protected by US copyroight, even if contemporary. US Copyright Office Circular 33: "Works Not Protected by Copyright" lists, o...
Copyright exists in the collection, not the individual mottos ------------------------------------------------------------- Historical mottos are probably too old to have copyright protection. However, the site’s choices of which mottos to publish, how and with what translations is covered by copyright in just the sam...
11,260
I've looked around the internet but cannot find a good explanation for this question. Generally speaking, will a 1-1/2” hole in the dead center of a board (say, the biggest common hardware store found material: 2x12 Doug fir) weaken the structural integrity of the board regardless of the length, knots, etc.? Or, put ...
2020/11/30
[ "https://woodworking.stackexchange.com/questions/11260", "https://woodworking.stackexchange.com", "https://woodworking.stackexchange.com/users/9488/" ]
I'm confused between the 3/8" hole noted in your title and the 1 1/2" hole mentioned in your question body, but neither, when located in the center of the 12" dimension of a 2x12, will cause any significant weakening of the board. In home construction, you're generally allowed (by code) to drill a hole up to 1/3 the w...
> > How does the size of a hole in dimension lumber affect strength? > > > The larger the hole, the greater the reduction in strength. > > Generally speaking, will a 1-1/2” hole in the dead center of a board (say, the biggest common hardware store found material: 2x12 Doug fir) weaken the structural integrity of...
213,618
What should you do when the user asking the question [edits the accepted answer](https://stackoverflow.com/questions/20766823/saving-an-updated-core-data-instance/20767008#20767008) to a more complete or detailed solution? The [first revision](https://stackoverflow.com/posts/20767008/revisions) of the accepted answer ...
2013/12/24
[ "https://meta.stackexchange.com/questions/213618", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/189156/" ]
If it improved the answer, and the [original author agreed with the edit](https://stackoverflow.com/review/suggested-edits/3657733), there is **no reason** to roll back the edit. Both the question and the answer should be helpful for *future visitors*. If the OP and answerer collaborated to improve the answer, I see n...
Heck no. If the OP figures out a better solution to their problem, let them write their own answer, **and** accept it. This is a perfectly legitimate thing to do. We even offer the option for users to [answer their own questions](https://meta.stackexchange.com/a/17467/175248) instantly as they're posted, Q&A style, if...
59,187,639
I need to iterate (vector operation not possible) over a very large dataframe (10 million x 70). df.iterrows and directly accessing the dataframe using df.loc[i, col] is way too slow. In the past I would first turn the dataframe to a dictionary of dictionaries which allowws me to iterate very quickly. However, this met...
2019/12/05
[ "https://Stackoverflow.com/questions/59187639", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10586400/" ]
I think that a better solution would be use synchronized access, this would help in the case of instances change the list at same time, but let me tell you that allow instances direct change the list, is a really BAD practice, the ideal would make the objects immutables, then each instance could work with their own lis...
Yes.. you are right. Mutating the injected object (instance level property) can really turn out to be harmful if you are into any concurrency models. To communicate with other threads, I would recommend use a persistance that has ACID properties to store and retrieve the state changes. If you are looking to pass the ...
43,468
I was doing some measurements for a coursework. Op-amp, LM741 in an x10 inversor configuration. ![enter image description here](https://i.stack.imgur.com/Fsc6Z.gif) When the resistances in use become high enough, 1MOhm and 10MOhm, the output is correct but it has a 50Hz noise on top, of amplitude that would suggest ...
2012/10/12
[ "https://electronics.stackexchange.com/questions/43468", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/11819/" ]
Reading your description one can tell you're in a country that has 50 Hz mains power. You don't say how you're putting the circuit together, breadboarding or otherwise. But there is no reason to have such high resistor values. The Johnson noise will also be too high and the main issue is that your wiring is picking up...
As others have noted, the circuit is picking up the mains frequency of 50Hz. You explained that you are doing this for your education, so I would recommend something that has educational value: try moving around the circuit, and measuring the amplitude of the 50Hz noise. You'll find that not only the place, but even ...
43,468
I was doing some measurements for a coursework. Op-amp, LM741 in an x10 inversor configuration. ![enter image description here](https://i.stack.imgur.com/Fsc6Z.gif) When the resistances in use become high enough, 1MOhm and 10MOhm, the output is correct but it has a 50Hz noise on top, of amplitude that would suggest ...
2012/10/12
[ "https://electronics.stackexchange.com/questions/43468", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/11819/" ]
I won't try to answer the whole question, but I'll try to explain why you're getting pick-up, and why the resistor values matter. The pick-up, is, like other said, coming from your mains voltage. It might be coming from a small ripple leaking through your power supply regulators to your circuit rails, or it might just...
Reading your description one can tell you're in a country that has 50 Hz mains power. You don't say how you're putting the circuit together, breadboarding or otherwise. But there is no reason to have such high resistor values. The Johnson noise will also be too high and the main issue is that your wiring is picking up...
43,468
I was doing some measurements for a coursework. Op-amp, LM741 in an x10 inversor configuration. ![enter image description here](https://i.stack.imgur.com/Fsc6Z.gif) When the resistances in use become high enough, 1MOhm and 10MOhm, the output is correct but it has a 50Hz noise on top, of amplitude that would suggest ...
2012/10/12
[ "https://electronics.stackexchange.com/questions/43468", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/11819/" ]
Reading your description one can tell you're in a country that has 50 Hz mains power. You don't say how you're putting the circuit together, breadboarding or otherwise. But there is no reason to have such high resistor values. The Johnson noise will also be too high and the main issue is that your wiring is picking up...
50Hz noise will be from the mains. Since you are learning you will probably be powering your circuit from a lab voltage source. If you look to about 10kHz you should see some more distortion, provided your noise floor is low enough, this lower peak at higher frequency is the signature of the power switching devices in ...
43,468
I was doing some measurements for a coursework. Op-amp, LM741 in an x10 inversor configuration. ![enter image description here](https://i.stack.imgur.com/Fsc6Z.gif) When the resistances in use become high enough, 1MOhm and 10MOhm, the output is correct but it has a 50Hz noise on top, of amplitude that would suggest ...
2012/10/12
[ "https://electronics.stackexchange.com/questions/43468", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/11819/" ]
I won't try to answer the whole question, but I'll try to explain why you're getting pick-up, and why the resistor values matter. The pick-up, is, like other said, coming from your mains voltage. It might be coming from a small ripple leaking through your power supply regulators to your circuit rails, or it might just...
As others have noted, the circuit is picking up the mains frequency of 50Hz. You explained that you are doing this for your education, so I would recommend something that has educational value: try moving around the circuit, and measuring the amplitude of the 50Hz noise. You'll find that not only the place, but even ...
43,468
I was doing some measurements for a coursework. Op-amp, LM741 in an x10 inversor configuration. ![enter image description here](https://i.stack.imgur.com/Fsc6Z.gif) When the resistances in use become high enough, 1MOhm and 10MOhm, the output is correct but it has a 50Hz noise on top, of amplitude that would suggest ...
2012/10/12
[ "https://electronics.stackexchange.com/questions/43468", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/11819/" ]
As others have noted, the circuit is picking up the mains frequency of 50Hz. You explained that you are doing this for your education, so I would recommend something that has educational value: try moving around the circuit, and measuring the amplitude of the 50Hz noise. You'll find that not only the place, but even ...
50Hz noise will be from the mains. Since you are learning you will probably be powering your circuit from a lab voltage source. If you look to about 10kHz you should see some more distortion, provided your noise floor is low enough, this lower peak at higher frequency is the signature of the power switching devices in ...
43,468
I was doing some measurements for a coursework. Op-amp, LM741 in an x10 inversor configuration. ![enter image description here](https://i.stack.imgur.com/Fsc6Z.gif) When the resistances in use become high enough, 1MOhm and 10MOhm, the output is correct but it has a 50Hz noise on top, of amplitude that would suggest ...
2012/10/12
[ "https://electronics.stackexchange.com/questions/43468", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/11819/" ]
I won't try to answer the whole question, but I'll try to explain why you're getting pick-up, and why the resistor values matter. The pick-up, is, like other said, coming from your mains voltage. It might be coming from a small ripple leaking through your power supply regulators to your circuit rails, or it might just...
50Hz noise will be from the mains. Since you are learning you will probably be powering your circuit from a lab voltage source. If you look to about 10kHz you should see some more distortion, provided your noise floor is low enough, this lower peak at higher frequency is the signature of the power switching devices in ...
173,890
I think the grammar of To-infinitive is the most difficult part of learning English because it is hard for me like ESL students to know which is which. I mean, I'm, well, just wanting to classify the grammar of to-infinitive... I learned that to infinitive phrase can be used to show the purpose or intention of subjec...
2018/07/23
[ "https://ell.stackexchange.com/questions/173890", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/79485/" ]
I would say: > > a.We asked for a man **to communicate** with the children > > > b.You need a key **in order to open** the door. > > > c.Now you can use a key to **log into your** Google account > > > I would say that is sufficient.
Your interpretations a1, b2, and c2 are closest. > > I used a knife to cut the bread. > > > *I used a knife in order to cut the bread* : **purpose clause** > > > I submitted the recipe to win the prize money. > > > *I submitted the recipe in order to win the prize money.* : **purpose clause** > > > He is t...
173,890
I think the grammar of To-infinitive is the most difficult part of learning English because it is hard for me like ESL students to know which is which. I mean, I'm, well, just wanting to classify the grammar of to-infinitive... I learned that to infinitive phrase can be used to show the purpose or intention of subjec...
2018/07/23
[ "https://ell.stackexchange.com/questions/173890", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/79485/" ]
I would say: > > a.We asked for a man **to communicate** with the children > > > b.You need a key **in order to open** the door. > > > c.Now you can use a key to **log into your** Google account > > > I would say that is sufficient.
The simplest answer is that it is a purpose clause if the object that the infinitive follows does that action. a. We asked for a *man to talk* to the children A man can talk. This sentence is an example of a purpose clause. b. You need a *key to unlock* the door. A key can unlocks. This is a used as a purpose claus...
173,890
I think the grammar of To-infinitive is the most difficult part of learning English because it is hard for me like ESL students to know which is which. I mean, I'm, well, just wanting to classify the grammar of to-infinitive... I learned that to infinitive phrase can be used to show the purpose or intention of subjec...
2018/07/23
[ "https://ell.stackexchange.com/questions/173890", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/79485/" ]
I would say: > > a.We asked for a man **to communicate** with the children > > > b.You need a key **in order to open** the door. > > > c.Now you can use a key to **log into your** Google account > > > I would say that is sufficient.
<https://www.grammaring.com/the-to-infinitive-to-replace-a-relative-clause> After this article the "to infinitive" may replace the relative clause under certain conditions! if this is correct all examples above were purpose clauses ... > > the to-infinitive clause can replace a defining relative clause after ordinal...
173,890
I think the grammar of To-infinitive is the most difficult part of learning English because it is hard for me like ESL students to know which is which. I mean, I'm, well, just wanting to classify the grammar of to-infinitive... I learned that to infinitive phrase can be used to show the purpose or intention of subjec...
2018/07/23
[ "https://ell.stackexchange.com/questions/173890", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/79485/" ]
I would say: > > a.We asked for a man **to communicate** with the children > > > b.You need a key **in order to open** the door. > > > c.Now you can use a key to **log into your** Google account > > > I would say that is sufficient.
The solution to your question is simple: the terms *who*, *what* or *which* can be replaced by *a verb*. In any sentence, what you are describing as a *to-infinitive* is what in English is simply called *the verb*. Every sentence must have a verb. The infinitive form of any verb is 'to ... (action)', e.g. 'to give', '...
1,831,304
I have a need to create a page to edit an entity in my system and a page to view an entity. The difference between the pages is the menu bar and a few other controls. I currently have two options: 1. Create a master page with a few content placeholders and fill them up in the edit and view pages. 2. Create a base pag...
2009/12/02
[ "https://Stackoverflow.com/questions/1831304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/104775/" ]
Master pages let you inherit both code and markup. A base page (really a base class that inherits from Page) only lets you inherit code; any associated markup will have to be injected, which is a good thing to avoid. Trying to do some partial class thing with a Page that has markup is never a sound approach from an ar...
Since there are differences in the interface and not only in the behavior, I'd recommend using master pages
1,159,852
According to this comparison: <http://laptops.specout.com/compare/6734-7129/ThinkPad-X250-vs-ThinkPad-X260> Lenovo's X250 and X260 have the same native resolution (1920x1080), the same screen size of 12.5" but different pixels-per-inch density values: 183 ppi vs 176 ppi. How is that possible? Rounding errors?
2016/12/24
[ "https://superuser.com/questions/1159852", "https://superuser.com", "https://superuser.com/users/122798/" ]
They can't, some parameters have been reported incorrectly. You can verify this yourself as follows. There is a convenient pixel density calculator at this [website](http://kingscalculator.com/en/other-calculators/pixel-density-calculator). The calculation is trivial (from [wikipedia](https://en.wikipedia.org/wiki/Pix...
I believe this is probably an error on the Specout site. The comparison at [specout](http://laptops.specout.com/compare/6734-7129/ThinkPad-X250-vs-ThinkPad-X260) reports that the two models have identical resolutions and sizes, but different PPI densities. However I can't find this claim being made [anywhere](http://ww...
1,159,852
According to this comparison: <http://laptops.specout.com/compare/6734-7129/ThinkPad-X250-vs-ThinkPad-X260> Lenovo's X250 and X260 have the same native resolution (1920x1080), the same screen size of 12.5" but different pixels-per-inch density values: 183 ppi vs 176 ppi. How is that possible? Rounding errors?
2016/12/24
[ "https://superuser.com/questions/1159852", "https://superuser.com", "https://superuser.com/users/122798/" ]
They can't, some parameters have been reported incorrectly. You can verify this yourself as follows. There is a convenient pixel density calculator at this [website](http://kingscalculator.com/en/other-calculators/pixel-density-calculator). The calculation is trivial (from [wikipedia](https://en.wikipedia.org/wiki/Pix...
The site correctly shows an aspect ratio of 16:10 for the X250, which is unusual compared to the far more common 16:9. However, it doesn't show any aspect ratio for the X260, so it probably assumes the far more common 16:9 as a default value. A 12.5" diagonal with an aspect ratio of 16:9 means a screen area of 66.8 in...
1,159,852
According to this comparison: <http://laptops.specout.com/compare/6734-7129/ThinkPad-X250-vs-ThinkPad-X260> Lenovo's X250 and X260 have the same native resolution (1920x1080), the same screen size of 12.5" but different pixels-per-inch density values: 183 ppi vs 176 ppi. How is that possible? Rounding errors?
2016/12/24
[ "https://superuser.com/questions/1159852", "https://superuser.com", "https://superuser.com/users/122798/" ]
I believe this is probably an error on the Specout site. The comparison at [specout](http://laptops.specout.com/compare/6734-7129/ThinkPad-X250-vs-ThinkPad-X260) reports that the two models have identical resolutions and sizes, but different PPI densities. However I can't find this claim being made [anywhere](http://ww...
The site correctly shows an aspect ratio of 16:10 for the X250, which is unusual compared to the far more common 16:9. However, it doesn't show any aspect ratio for the X260, so it probably assumes the far more common 16:9 as a default value. A 12.5" diagonal with an aspect ratio of 16:9 means a screen area of 66.8 in...
1,272,905
Let me be clear - I have more than enough "references" and "for beginners" books. What I want is something like "Exceptional PL/SQL" or "Agile PL/SQL" or "PL/SQL Design Patterns" or even just "PL/SQL For Developers Who Want To Write Pretty Code". Does such a thing exist? (I'm a C++/Ruby/etc. developer. I've been thr...
2009/08/13
[ "https://Stackoverflow.com/questions/1272905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34533/" ]
I found this book useful: [Oracle PL/SQL Best Practices](http://oreilly.com/catalog/9780596514105/) And there are a bunch of other books by O'Reilly that might be useful to you [here](http://oreilly.com/pub/topic/oracle). Also, if I could recommend something to read, I would suggest an Oracle performance book. So ma...
Bit of a wildcard, but in my opinion it is worth looking at the [presentations](http://asktom.oracle.com/pls/asktom/f?p=100:8:343705894029744::NO) that Tom Kyte makes available. Granted they lose something if you weren't at the presentation but ones like [SQL Techniques](http://asktom.oracle.com/pls/asktom/z?p_url=A...
1,272,905
Let me be clear - I have more than enough "references" and "for beginners" books. What I want is something like "Exceptional PL/SQL" or "Agile PL/SQL" or "PL/SQL Design Patterns" or even just "PL/SQL For Developers Who Want To Write Pretty Code". Does such a thing exist? (I'm a C++/Ruby/etc. developer. I've been thr...
2009/08/13
[ "https://Stackoverflow.com/questions/1272905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34533/" ]
I found this book useful: [Oracle PL/SQL Best Practices](http://oreilly.com/catalog/9780596514105/) And there are a bunch of other books by O'Reilly that might be useful to you [here](http://oreilly.com/pub/topic/oracle). Also, if I could recommend something to read, I would suggest an Oracle performance book. So ma...
Connor McDonald is a very good Oracle developer, and his book "Mastering Oracle PL/SQL" has some nice ideas/approaches. Many of the Gang of Four's structural patterns are directly applicable: facade, proxy, adapter, bridge. Then go to asktom.oracle.com and click on "Resources" and "Links" at the top of the page. Tom ...
1,272,905
Let me be clear - I have more than enough "references" and "for beginners" books. What I want is something like "Exceptional PL/SQL" or "Agile PL/SQL" or "PL/SQL Design Patterns" or even just "PL/SQL For Developers Who Want To Write Pretty Code". Does such a thing exist? (I'm a C++/Ruby/etc. developer. I've been thr...
2009/08/13
[ "https://Stackoverflow.com/questions/1272905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34533/" ]
I found this book useful: [Oracle PL/SQL Best Practices](http://oreilly.com/catalog/9780596514105/) And there are a bunch of other books by O'Reilly that might be useful to you [here](http://oreilly.com/pub/topic/oracle). Also, if I could recommend something to read, I would suggest an Oracle performance book. So ma...
Not just PL/SQL but Oracle in general - two good books by Thomas Kyte: [http://www.amazon.com/Expert-One-One-Oracle-Thomas/dp/1590592433](https://rads.stackoverflow.com/amzn/click/com/1590592433) [http://www.amazon.com/Effective-Oracle-Design-Osborne-ORACLE/dp/0072230657](https://rads.stackoverflow.com/amzn/click/co...
16,080
We are a MySQL front-end shop and have a system currently logging event data in a highly structured format. Think apache traffic log. We need to be able to aggregate counts of this data (cube) vis a vi ad-hoc queries. We are currently sending the data to CouchDB. This is very fast, once a view has mapped completely, b...
2012/04/04
[ "https://dba.stackexchange.com/questions/16080", "https://dba.stackexchange.com", "https://dba.stackexchange.com/users/50/" ]
Almost always (in my experience), the following is the solution to performance with large, log-like, data and semi ad hoc queries. Characteristics of the data and the application: * continually arriving data * no updates to 'old' data * optionally purging old data (if so use PARTITION BY RANGE(TO\_DAYS())) * queries ...
I think if you're reporting aggregate statistics you should probably look into an OLAP solution. Mondrian is a HOLAP system with a relational back-end; the cheapest widely available system supporting MOLAP with a leading ROLAP partition is Microsoft Analysis Services. For web log data of the size you describe you migh...
16,080
We are a MySQL front-end shop and have a system currently logging event data in a highly structured format. Think apache traffic log. We need to be able to aggregate counts of this data (cube) vis a vi ad-hoc queries. We are currently sending the data to CouchDB. This is very fast, once a view has mapped completely, b...
2012/04/04
[ "https://dba.stackexchange.com/questions/16080", "https://dba.stackexchange.com", "https://dba.stackexchange.com/users/50/" ]
Almost always (in my experience), the following is the solution to performance with large, log-like, data and semi ad hoc queries. Characteristics of the data and the application: * continually arriving data * no updates to 'old' data * optionally purging old data (if so use PARTITION BY RANGE(TO\_DAYS())) * queries ...
I think Infobright would be a good fit for the situation you describe. I have found that Infobright can often quickly report aggregates without the need for MOLAP. I have been using Infobright Community Edition for two years and I have not worked for Infobright. If your "evaluating Infobright" includes loading a Brig...
62,953
What is the difference between *ignorant* and *uninformed*? In ordinary usage, is one considered a put down and the other considered a statement of fact? If so, why? Am I ignorant or simply uninformed?
2012/04/01
[ "https://english.stackexchange.com/questions/62953", "https://english.stackexchange.com", "https://english.stackexchange.com/users/6658/" ]
People often contrast "stupid" from "ignorant". "Stupid" means a lack of intelligence, an inability to comprehend information. "Ignorant" means a lack of information. "Uninformed" means pretty much the same thing as "ignorant". It has a milder tone, but that's about the only difference.
Ignorant means the person in question did not *bother* to "get informed". Being uninformed can have several causes, not necessarily that of not showing concern.
62,953
What is the difference between *ignorant* and *uninformed*? In ordinary usage, is one considered a put down and the other considered a statement of fact? If so, why? Am I ignorant or simply uninformed?
2012/04/01
[ "https://english.stackexchange.com/questions/62953", "https://english.stackexchange.com", "https://english.stackexchange.com/users/6658/" ]
Ignorant means the person in question did not *bother* to "get informed". Being uninformed can have several causes, not necessarily that of not showing concern.
As can be seen from the form of the word, ‘ignorant’, strictly speaking, means ‘having ignorance, ignoring the facts, not caring’. However, as is often the case, people use the word loosely to suggest lack of knowledge. It is certainly pejorative. It can also imply lack of social grace, particularly in the expression ‘...
62,953
What is the difference between *ignorant* and *uninformed*? In ordinary usage, is one considered a put down and the other considered a statement of fact? If so, why? Am I ignorant or simply uninformed?
2012/04/01
[ "https://english.stackexchange.com/questions/62953", "https://english.stackexchange.com", "https://english.stackexchange.com/users/6658/" ]
People often contrast "stupid" from "ignorant". "Stupid" means a lack of intelligence, an inability to comprehend information. "Ignorant" means a lack of information. "Uninformed" means pretty much the same thing as "ignorant". It has a milder tone, but that's about the only difference.
Well, I hate to disagree with @Milosz, but negativity attaches to both adjectives. Calling someone *uninformed* is simply a politer way of calling them *ignorant*. If you're looking for a more neutral adjective, try *unaware*.
62,953
What is the difference between *ignorant* and *uninformed*? In ordinary usage, is one considered a put down and the other considered a statement of fact? If so, why? Am I ignorant or simply uninformed?
2012/04/01
[ "https://english.stackexchange.com/questions/62953", "https://english.stackexchange.com", "https://english.stackexchange.com/users/6658/" ]
Well, I hate to disagree with @Milosz, but negativity attaches to both adjectives. Calling someone *uninformed* is simply a politer way of calling them *ignorant*. If you're looking for a more neutral adjective, try *unaware*.
As can be seen from the form of the word, ‘ignorant’, strictly speaking, means ‘having ignorance, ignoring the facts, not caring’. However, as is often the case, people use the word loosely to suggest lack of knowledge. It is certainly pejorative. It can also imply lack of social grace, particularly in the expression ‘...
62,953
What is the difference between *ignorant* and *uninformed*? In ordinary usage, is one considered a put down and the other considered a statement of fact? If so, why? Am I ignorant or simply uninformed?
2012/04/01
[ "https://english.stackexchange.com/questions/62953", "https://english.stackexchange.com", "https://english.stackexchange.com/users/6658/" ]
People often contrast "stupid" from "ignorant". "Stupid" means a lack of intelligence, an inability to comprehend information. "Ignorant" means a lack of information. "Uninformed" means pretty much the same thing as "ignorant". It has a milder tone, but that's about the only difference.
As can be seen from the form of the word, ‘ignorant’, strictly speaking, means ‘having ignorance, ignoring the facts, not caring’. However, as is often the case, people use the word loosely to suggest lack of knowledge. It is certainly pejorative. It can also imply lack of social grace, particularly in the expression ‘...
24,417
What does a sunchoke look like right after it begins to sprout?
2016/04/30
[ "https://gardening.stackexchange.com/questions/24417", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/13136/" ]
The [sunchoke](https://en.wikipedia.org/wiki/Jerusalem_artichoke), also frequently called Jerusalem artichoke, is a species called H. Tuberosus, in the Helianthus genus of Asteraceae, which is a large plant family that includes sunflowers and daisies. Even though it grows from a tuber root rather than a seed, the plant...
Although they're currently normally grown from tubers, they can be grown from seed, according to [Joseph Lofthouse](https://www.motherearthnews.com/organic-gardening/sunroots-zbcz1311), who has a blog with Mother Earth News, and is known for breeding landraces in northern Utah for many kinds of plants. He sells the see...
11,602,577
I'm implementing Bag Of Words in opencv by using SIFT features in order to make a classification for a specific dataset. So far, I have been apple to cluster the descriptors and generate the vocabulary. As I know, I have to train SVM ... but i have some questions which i'm really confused about them. The major problem ...
2012/07/22
[ "https://Stackoverflow.com/questions/11602577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/496120/" ]
Local features -------------- When you work with SIFT, you usually want to extract local features. What does that means? You have your image and from this image you will locate points from which you will extract local feature vectors. A local feature vector is just a vector consisting of numerical values that describe...
Here's a very good article introducing Bag of Words model for classification using OpenCV v2.2. <http://app-solut.com/blog/2011/07/the-bag-of-words-model-in-opencv-2-2/> A follow-up article on using Normal Bayes Classifier for image categorization. <http://app-solut.com/blog/2011/07/using-the-normal-bayes-classifier...
76,562
First going the easy way, I would use any online calculator but most of these mining calculators require the hash rate of my device. I am unable to find a suitable answer or a guide to easily compute this value for any device given its configurations. Will that be possible? Scenario: When I go to these online calcul...
2018/06/24
[ "https://bitcoin.stackexchange.com/questions/76562", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/84609/" ]
[This website](https://whattomine.com/) allows you to select your GPU / ASIC / etc, and it will tell you the expected hashrate of that hardware for different algorithms. I can offer no guarantees about the validity of the data they provide though, in general the best way to figure out your hashrate would be to actuall...
Knowing the hash rate is essential for you. Why? Your question is like, if I hire a worker, how many hours per day can my worker work? OK, so you should know the primitive knowledge about your worker. Such as how strong he is or how many hours he can work or how much cost to work for one day (lunch or rest cost). Wel...
76,562
First going the easy way, I would use any online calculator but most of these mining calculators require the hash rate of my device. I am unable to find a suitable answer or a guide to easily compute this value for any device given its configurations. Will that be possible? Scenario: When I go to these online calcul...
2018/06/24
[ "https://bitcoin.stackexchange.com/questions/76562", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/84609/" ]
Hash rate isn't something you can calculate by a formula; it's determined empirically. This number has to come from someone who has the same kind of hardware and has measured how many hashes per second it actually performs, for a given hash algorithm. For SHA256d, used by Bitcoin, you can see <https://en.bitcoin.it/wi...
Knowing the hash rate is essential for you. Why? Your question is like, if I hire a worker, how many hours per day can my worker work? OK, so you should know the primitive knowledge about your worker. Such as how strong he is or how many hours he can work or how much cost to work for one day (lunch or rest cost). Wel...
76,562
First going the easy way, I would use any online calculator but most of these mining calculators require the hash rate of my device. I am unable to find a suitable answer or a guide to easily compute this value for any device given its configurations. Will that be possible? Scenario: When I go to these online calcul...
2018/06/24
[ "https://bitcoin.stackexchange.com/questions/76562", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/84609/" ]
Just add each device hash rate and that is all and to be sure juat Decrement around 12% This is what I do
Knowing the hash rate is essential for you. Why? Your question is like, if I hire a worker, how many hours per day can my worker work? OK, so you should know the primitive knowledge about your worker. Such as how strong he is or how many hours he can work or how much cost to work for one day (lunch or rest cost). Wel...
76,562
First going the easy way, I would use any online calculator but most of these mining calculators require the hash rate of my device. I am unable to find a suitable answer or a guide to easily compute this value for any device given its configurations. Will that be possible? Scenario: When I go to these online calcul...
2018/06/24
[ "https://bitcoin.stackexchange.com/questions/76562", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/84609/" ]
Hash rate isn't something you can calculate by a formula; it's determined empirically. This number has to come from someone who has the same kind of hardware and has measured how many hashes per second it actually performs, for a given hash algorithm. For SHA256d, used by Bitcoin, you can see <https://en.bitcoin.it/wi...
[This website](https://whattomine.com/) allows you to select your GPU / ASIC / etc, and it will tell you the expected hashrate of that hardware for different algorithms. I can offer no guarantees about the validity of the data they provide though, in general the best way to figure out your hashrate would be to actuall...
76,562
First going the easy way, I would use any online calculator but most of these mining calculators require the hash rate of my device. I am unable to find a suitable answer or a guide to easily compute this value for any device given its configurations. Will that be possible? Scenario: When I go to these online calcul...
2018/06/24
[ "https://bitcoin.stackexchange.com/questions/76562", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/84609/" ]
[This website](https://whattomine.com/) allows you to select your GPU / ASIC / etc, and it will tell you the expected hashrate of that hardware for different algorithms. I can offer no guarantees about the validity of the data they provide though, in general the best way to figure out your hashrate would be to actuall...
Just add each device hash rate and that is all and to be sure juat Decrement around 12% This is what I do
76,562
First going the easy way, I would use any online calculator but most of these mining calculators require the hash rate of my device. I am unable to find a suitable answer or a guide to easily compute this value for any device given its configurations. Will that be possible? Scenario: When I go to these online calcul...
2018/06/24
[ "https://bitcoin.stackexchange.com/questions/76562", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/84609/" ]
Hash rate isn't something you can calculate by a formula; it's determined empirically. This number has to come from someone who has the same kind of hardware and has measured how many hashes per second it actually performs, for a given hash algorithm. For SHA256d, used by Bitcoin, you can see <https://en.bitcoin.it/wi...
Just add each device hash rate and that is all and to be sure juat Decrement around 12% This is what I do
1,644,916
This isn't strictly a *programming* question, but I'm asking it here because it's certainly a *software development* question, if you take "software development" to include all aspects of creating a software system. I am an independent iPhone developer. Except for translations, I handle all aspects of my apps myself—g...
2009/10/29
[ "https://Stackoverflow.com/questions/1644916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41222/" ]
Try [Opacity](http://likethought.com/opacity/). A little rough on the edges, but one of the coolest and most unique features they have is **export as source code** (in Quartz, Cocoa, Cocoa Touch, or Canvas)
I think the only acceptable answer here should be "hire a designer". But it sounds like [Pixelmator](http://en.wikipedia.org/wiki/Pixelmator)/[Inkscape](http://en.wikipedia.org/wiki/Inkscape) are your best bets. Though if you do find something better, that'd be really cool. Like a jQueryUI but for native.
1,644,916
This isn't strictly a *programming* question, but I'm asking it here because it's certainly a *software development* question, if you take "software development" to include all aspects of creating a software system. I am an independent iPhone developer. Except for translations, I handle all aspects of my apps myself—g...
2009/10/29
[ "https://Stackoverflow.com/questions/1644916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41222/" ]
Try [Opacity](http://likethought.com/opacity/). A little rough on the edges, but one of the coolest and most unique features they have is **export as source code** (in Quartz, Cocoa, Cocoa Touch, or Canvas)
I'd suggest [OmniGraffle](http://www.omnigroup.com/applications/omnigraffle/ "Omni Graffle") OmniGraffle is easy to use, can save as a PNG, can create binary non-package files (it's an option in the interface). You can also set the units to pixels to ensure exact alignment. (Canvas Size -> Ruler Units) Finally, the G...
26,896,434
I have an online quiz I am trying to complete and this is the question: One of the following can't be stored in NSDictionary. It can't be stored because it is a \_\_\_\_\_ type: UIView NSNumber NSInteger UIColor Fill in in the blank. --- I can't seem to find the answer anywhere online. As far as I can tell they ...
2014/11/12
[ "https://Stackoverflow.com/questions/26896434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2785519/" ]
NSInteger! because it's a primitive type
Primitive types since they are not objects. Anything that is an object can be added. The main difference is related to where they stay in the memory, objects are stored in the heap while value type are stored directly in the Stack ... heap : is an area of memory used for dynamic memory allocation. stack : is the se...
907,813
I'm reading through some blog posts and articles on aws vpc design to see if there are perhaps improvements to be made to a setup currently on aws when I came across an article making mention of "protected subnets" [here](https://blog.rackspace.com/network-segregation-aws-2). > > Protected – internal subnets that hav...
2018/04/16
[ "https://serverfault.com/questions/907813", "https://serverfault.com", "https://serverfault.com/users/465555/" ]
There are many reasons. Here are a few, but there are many more cases. **SECURITY:** By launching instances in private subnets, they cannot be accessed from the public Internet. These instances can be accessed by other means such as thru load balancers. **STABILITY:** You may want locked down instances that do not ...
I do use private subnets for RDS databases and for EC2 instances that are behind loadbalancers. They are not to be accessed directly by the public, but they can be accessed internally by other resources in the VPC and can communicate with the exterior through NAT gateways.
4,890,447
We have a utility spring-mvc application that doesn't use a database, it is just a soap/rest wrapper. We would like to store an arbitrary message for display to users that persists between deployments. The application must be able to both read and write this data. Are there any best practices for this?
2011/02/03
[ "https://Stackoverflow.com/questions/4890447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106527/" ]
Multiple options. Write something to the file system - Great for persistence. A little slow. Primary drawback is that it would probably have to be a shared file system, as any type of clustering wouldn't deal well with this. Then you get into file locking issues. Very easy implementation Embedded DB - Similar benefit...
Why not use an embedded database? Options are: * [H2](http://www.h2database.com/html/main.html) * [HSQL](http://hsqldb.org/) * [Derby](http://db.apache.org/derby/) Just include the jar file in the webapps classdir and configure the JDBC URL as normal. Perfect for demos and easy to substitute when you want to switch ...
4,890,447
We have a utility spring-mvc application that doesn't use a database, it is just a soap/rest wrapper. We would like to store an arbitrary message for display to users that persists between deployments. The application must be able to both read and write this data. Are there any best practices for this?
2011/02/03
[ "https://Stackoverflow.com/questions/4890447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106527/" ]
Multiple options. Write something to the file system - Great for persistence. A little slow. Primary drawback is that it would probably have to be a shared file system, as any type of clustering wouldn't deal well with this. Then you get into file locking issues. Very easy implementation Embedded DB - Similar benefit...
I would simple store that in a file on a filesystem. It's possible to use an embedded database, or something like that, but for 1 message, a file will be fine. I'd recommend you store the file outside of the application directory. It might be alongside (next to) it, but don't go storing it inside your "webapps/" direc...
4,890,447
We have a utility spring-mvc application that doesn't use a database, it is just a soap/rest wrapper. We would like to store an arbitrary message for display to users that persists between deployments. The application must be able to both read and write this data. Are there any best practices for this?
2011/02/03
[ "https://Stackoverflow.com/questions/4890447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/106527/" ]
Multiple options. Write something to the file system - Great for persistence. A little slow. Primary drawback is that it would probably have to be a shared file system, as any type of clustering wouldn't deal well with this. Then you get into file locking issues. Very easy implementation Embedded DB - Similar benefit...
I would use JNDI. Why over-complicate?
25,763,386
I want to create a voice chat application in pure java socket programming. I used UDP protocol to transfer recorded voice from one client to another but when i test it over the internet voice is not comming continuously. As i am new to this voice chat application, someone may suggest what should i do for getting contin...
2014/09/10
[ "https://Stackoverflow.com/questions/25763386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2717794/" ]
In order to establish a connection between two or more users for peer-to-peer communication you need a signaling server as well as STUN/TURN servers. You can code your own ones or use a ready backend solutions like ConnectyCube and concentrate on client-side implementation. Here are some WebRTC video chat [code sampl...
You should send the packets directly between the clients. The relaying of packets through the server is adding more delay to it. Simply send it from client1 to client2.
25,763,386
I want to create a voice chat application in pure java socket programming. I used UDP protocol to transfer recorded voice from one client to another but when i test it over the internet voice is not comming continuously. As i am new to this voice chat application, someone may suggest what should i do for getting contin...
2014/09/10
[ "https://Stackoverflow.com/questions/25763386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2717794/" ]
In order to establish a connection between two or more users for peer-to-peer communication you need a signaling server as well as STUN/TURN servers. You can code your own ones or use a ready backend solutions like ConnectyCube and concentrate on client-side implementation. Here are some WebRTC video chat [code sampl...
The Answer is pretty simple you should use tcp protocol. Coz udp sends the packet but doesn't ensure that the packet was received by the target. but tcp protocol ensures it and you will get a stable connection with cost of some speed reduced in transfer of data.[tcp vs udp](https://www.geeksforgeeks.org/differences-bet...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
Put it this way - if the username and password reside on the user's computer, and some program has to operate on that data in unencrypted form at some point, it is logically impossible to guarantee they are unable to view it. So the answer is no. It's a logical impossibility. Perhaps you could create a separate user o...
You cant rely on code to safely and securely store credentials. You should consider passing the user name and password into your program as parameters and rely on the appropriate operating system security (e.g. windows security) to prevent users from accessing them. If you are in an environment where you cannot contr...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
Put it this way - if the username and password reside on the user's computer, and some program has to operate on that data in unencrypted form at some point, it is logically impossible to guarantee they are unable to view it. So the answer is no. It's a logical impossibility. Perhaps you could create a separate user o...
No. The only way to prevent users from decompiling your code, and seeing *everything* in it, is not to give them your code, i.e., put the code on a server (under your control) instead of the client. Consider writing something server-side (WCF endpoint, REST service, or something similar) that lets them send the conte...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
No. The only way to prevent users from decompiling your code, and seeing *everything* in it, is not to give them your code, i.e., put the code on a server (under your control) instead of the client. Consider writing something server-side (WCF endpoint, REST service, or something similar) that lets them send the conte...
What kind of access are you talking about ? If user and password is required to make the upload, then it will ultimately be accessible in the code, and even easier, using a proxy / network listening tool. Would it be possible to create a specific user for your application that has only upload capability (not reading a...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
Perhaps you need to rethink the fundamentals here 1. You can **never** secure a platform that attackers have physical access to 2. You want to achieve a situation, whereby your users, on their **own** platform, can submit a text file to your server, but only using **your** application. Even using SSL, this gets tricky...
What kind of access are you talking about ? If user and password is required to make the upload, then it will ultimately be accessible in the code, and even easier, using a proxy / network listening tool. Would it be possible to create a specific user for your application that has only upload capability (not reading a...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
No. The only way to prevent users from decompiling your code, and seeing *everything* in it, is not to give them your code, i.e., put the code on a server (under your control) instead of the client. Consider writing something server-side (WCF endpoint, REST service, or something similar) that lets them send the conte...
You cant rely on code to safely and securely store credentials. You should consider passing the user name and password into your program as parameters and rely on the appropriate operating system security (e.g. windows security) to prevent users from accessing them. If you are in an environment where you cannot contr...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
No. The only way to prevent users from decompiling your code, and seeing *everything* in it, is not to give them your code, i.e., put the code on a server (under your control) instead of the client. Consider writing something server-side (WCF endpoint, REST service, or something similar) that lets them send the conte...
Does it need to be in the source code? If this only needs to run on your computer when you're logged in you could store the password in a file and protect it with file permissions.
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
Perhaps you need to rethink the fundamentals here 1. You can **never** secure a platform that attackers have physical access to 2. You want to achieve a situation, whereby your users, on their **own** platform, can submit a text file to your server, but only using **your** application. Even using SSL, this gets tricky...
You cant rely on code to safely and securely store credentials. You should consider passing the user name and password into your program as parameters and rely on the appropriate operating system security (e.g. windows security) to prevent users from accessing them. If you are in an environment where you cannot contr...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
No. The only way to prevent users from decompiling your code, and seeing *everything* in it, is not to give them your code, i.e., put the code on a server (under your control) instead of the client. Consider writing something server-side (WCF endpoint, REST service, or something similar) that lets them send the conte...
No. You could encrypt them, but you'll need to get a decryption key from somewhere, and its likely that someone determined enough will be able to decompile your code and figure out where that key is. I suppose you might be able to have a web request that returns a one time username and password.. so your application ...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
Put it this way - if the username and password reside on the user's computer, and some program has to operate on that data in unencrypted form at some point, it is logically impossible to guarantee they are unable to view it. So the answer is no. It's a logical impossibility. Perhaps you could create a separate user o...
Perhaps you need to rethink the fundamentals here 1. You can **never** secure a platform that attackers have physical access to 2. You want to achieve a situation, whereby your users, on their **own** platform, can submit a text file to your server, but only using **your** application. Even using SSL, this gets tricky...
9,548,491
I want to create a simple C# application that uploads a text file to my web server. But to do this I need to have my username and password included in the code. I've tried using the obfuscator that's included in Visual Studio, but after decompiling with a free decompiler I was still able to find them. Is this possible...
2012/03/03
[ "https://Stackoverflow.com/questions/9548491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107421/" ]
Put it this way - if the username and password reside on the user's computer, and some program has to operate on that data in unencrypted form at some point, it is logically impossible to guarantee they are unable to view it. So the answer is no. It's a logical impossibility. Perhaps you could create a separate user o...
What kind of access are you talking about ? If user and password is required to make the upload, then it will ultimately be accessible in the code, and even easier, using a proxy / network listening tool. Would it be possible to create a specific user for your application that has only upload capability (not reading a...
204,424
I'm trying to think of one of Batman's bat[vehicle] that could hold multiple people. Most seem to be single-occupant methods of transportation, like the Batcycle and Batmobile. Occasionally, there would be room for a single passenger (namely Robin), like in the Batcopter. Are there any Batman vehicles that can hold mo...
2019/01/31
[ "https://scifi.stackexchange.com/questions/204424", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/15899/" ]
The [**Bat-train**](https://dc.fandom.com/wiki/Bat-Train) appears in [Batman Vol.1 #95](https://dc.fandom.com/wiki/Batman_Vol_1_95) It's a standard locomotive of its era and had five passenger cars as well as two flat-cars for storing the batplane and batmobile. There would be comfortable space for 450 passengers seat...
There is a scene in the 2017 movie "Batman and Harley Quinn" where Batman, Nightwing, and Harley Quinn are riding together in the batmobile.
204,424
I'm trying to think of one of Batman's bat[vehicle] that could hold multiple people. Most seem to be single-occupant methods of transportation, like the Batcycle and Batmobile. Occasionally, there would be room for a single passenger (namely Robin), like in the Batcopter. Are there any Batman vehicles that can hold mo...
2019/01/31
[ "https://scifi.stackexchange.com/questions/204424", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/15899/" ]
The [**Bat-train**](https://dc.fandom.com/wiki/Bat-Train) appears in [Batman Vol.1 #95](https://dc.fandom.com/wiki/Batman_Vol_1_95) It's a standard locomotive of its era and had five passenger cars as well as two flat-cars for storing the batplane and batmobile. There would be comfortable space for 450 passengers seat...
***H.M.S. Batboat*** appeared in *[Detective Comics Vol.1 #110](https://dc.fandom.com/wiki/Detective_Comics_Vol_1_110)*, when Batman was visiting London. On the cover we see at least four people on board (there's a sailor visible through the front window), and room for plenty more if needed. [![enter image descriptio...
349,617
Should comments like "please add details of X to your answer", "done" be flagged for deletion? Deleting them would improve readability of the thread. The answer-relevant information they contain is already in the new version of the answer. If someone is curious about the edit history, they can click on the edit histor...
2020/06/19
[ "https://meta.stackexchange.com/questions/349617", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/329971/" ]
Yes, *please*. [Comments are temporary "Post-It" notes left on a question or answer.](https://meta.stackexchange.com/help/privileges/comment) That means that they should be deleted once they are no longer necessary, and flags are one way to achieve that. There's one caveat: the 'Done' comment might ping the author of...
Yes, please flag those comments for removal if they are not relevant any more. Not only do they clutter the display, if a comment is asking for some information, this may lead people to suspect that said information is missing even after it was added. Sure, they can then verify whether it *is* missing or not but it tak...
109,471
I know it is a movie. But I was a fighter just years after Rocky IV was made. My kids were watching tonight and ask me about the fight and have me pause the movie. Four different times during the fight would there be an instant DQ on Drago's part: 1. Extra punches after the bell - the most egregious. 2. Shoving Creed...
2020/06/07
[ "https://movies.stackexchange.com/questions/109471", "https://movies.stackexchange.com", "https://movies.stackexchange.com/users/18901/" ]
Simply, it wouldn't have. Remember, this is an *exhibition* bout. While the rules aren't as strict as a normal bout, they also expect the boxers to "behave". It would have been ended under normal circumstances with any of the above mentioned infractions, although there's an outside possibility it could have continued i...
Those sorts of technicalities happen over and over and generally go unnoticed by the majority of the viewers. The DQ notes are interesting, but I think even as a casual viewer who has seen a few boxing and UFC fights I would pick on the stamina more than anything. One thing to consider is that even in real life, a fou...