summary stringlengths 15 147 | text stringlengths 1 19.3k | answer stringlengths 32 22.6k | labels float64 0.33 1 | answer_summary stringlengths 5 164 |
|---|---|---|---|---|
Finding out how host names are resolved | I'm working on a network analysis tool (academic research), and I would like to find out what DNS is used on the machine the software is running on. I'm not a network admin, and I'm wondering: what's the easiest way to find that out; across platforms (that is, on each Linux, Mac and Windows), and preferably using somet... | If you're on Linux, resolv.conf does cut it. Just for DNS, though. The other methods of resolving hosts are not associated with DNS. Check out your system's nsswitch.conf for more information.
FYI, auto-DHCP config works by automatically editing resolv.conf.
As for OS X, I don't use em enough. I believe that sort of ... | 1 | resolv.conf doesn't cut DNS |
Add authors as footnote in lncs | please, I was asked to modify the .tex file of a manuscript. The problem is that I want to add "supervised by ..." as a footnote and when use \footnote{supervised by ...} in \author{} it does not work. I use a Latex lncs format. Thank you!
| You might want to \protect the \footnote command. This one worked for me:
\documentclass{llncs}
\begin{document}
\title{LaTeX Template for Your LNCS Paper}
\author{Author 1\protect\footnote{Supervised by Author 9}, Author 2}
\institute{Lab, University, Address}
\maketitle
\begin{abstract}
Abstract is here.
\end{a... | 0.888889 | protect the footnote command |
Recover Server 2008 R2 Domain Admin Password | So I did the ultimate silly thing: I lost my domain admin password for my Server 2008 R2 box.
Sure, I could just re-install but that's going to be a huge pain. I tried rebooting with the Windows Install DVD and replacing utilman.exe with cmd.exe, but switching to C: displayed no files.
I can still log into the machi... | If you've got a local account but not a domain admin, IIRC you could try metasploit with the psexec payload to put meterpreter down on the server and then use the getsystem command to try and get admin on the box.
EDIT Per @void_in this won't work with W2K8 and UAC, to you'd need to use an exploit to elevate privilege... | 0.888889 | meterpreters add user commands to get admin on the server |
Why is the last line of text separated in MS Visio shapes | In the image below, you can see two rectangles with some text inside. If you take a closer look you will notice a difference in spacing between lines. The spacing between the first and the second lines is smaller than the spacing between the second and the third.
The last line is always separated. If you have 10 lines... | The last line is separated because their is a blank character at the end of the bottom line that is the default font size. Highlight any blank spaces at the end of the bottom line and then change the font size to match the others and it will go away.
| 1 | The last line is separated because of a blank character at the end of the bottom line that is the default font size |
How do I ward properly in DotA 2? | I finally got my DotA 2 Beta invite. Now to learn the game I read it's a good start to play support heros (like I already loved to do in League of Legends). Even though I'm still pretty new to the game I suspect it's mostly the supports job to buy and set up wards.
I am therefore interested in learning how to ward eff... | The linked guide that Arremer posted here is absolutely awesome, but it's probably a bit much for a very new player. When I teach new players I gave them 8 good ward spots to use- some more basic than others. I've circled them on the image linked:
First, there are the two obvious ward spots near the runes. These a... | 0.777778 | wards are the most likely to be counterwarded . |
Serial connection between Raspberry Pi and Roomba | I have a Raspberry Pi with this FTDI cable and a Roomba 560. The Roomba has an SCI port to allow for control of the roomba via serial. I installed the PySerial library on the pi and send valid commands to Roomba, but the roomba doesn't respond. I have the TXD of the cable attached to the TXD of the roomba, the RXD on t... | The .pdf spec for the SCI port is either outdated or incorrect, the 5XX series uses port 115200, that's why it wasn't working.
| 1 | .pdf spec for the SCI port |
Change Product Quantity Without Edit on Magento | I have a question here, how to change product stock without click "Edit" on Magento ?
Thanks Before
| There are third party modules for that.
Take a look at http://www.magentocommerce.com/magento-connect/catalogsearch/result/?q=grid+edit&pl=0
| 0.666667 | Third party modules for third party modules |
Choosing variables for Discriminant Analysis | I've 110 variables & 200 data points. Of this 110 variables, one is group variable (say "brown eye","blue eye"). I want to use discriminant analysis to classify the groups based on remaining 119 variables. Since the variables are large, to get a meaningful result I need to reduce the number of variables. So, the ar... | You can get rid of some by looking for pairs that are very highly correlated and randomly deleting one of the pair.
Then you can look at partial least squares, and pick variables that are important in the PLS solution.
I did this with a similar problem and it worked pretty well (that is, the resulting discriminant f... | 1 | Discriminant function in PLS solution |
Given Ohm's law, how can current increase if voltage increases, given fixed resistance? | According to Ohm's law, V=IR (voltage equals current times resistance).
So if the voltage increases, then the current increases provided that the resistance remains constant.
I know that Voltage or potential difference means work done per unit positive charge in bringing that charge from one point to another.
So acc... | It is better to think of Ohm's Law as I=V/R.
What it is telling you is that if you apply a voltage (V) to a resistive material (characterised by R), then that voltage is capable of driving a current I.
The material could be anything, a piece of copper, or the plasma in a star.
The voltage is constantly supplying ener... | 1 | The voltage (V) is constantly supplying energy to electrons in the material |
How to correctly format multiline html using the .after function jQuery? | I am trying to add some html after a specific h1 tag. The line of html is long and I would like to break it down to multiple lines within the .after function.
Below is the code:
$(document).ready(function() {
$('#content-main-cell h1').addClass('index-title');
$('.index-title').after('<div class="mds-l... | You can continue a string literal on a subsequent line with a backslash:
$(document).ready(function() {
$('#content-main-cell h1').addClass('index-title');
$('.index-title').after(
'<div class="mds-logo">\
<img src="http://marines.mil/unit/marforres/4thMarDiv/23rdMar/1stBn/... | 1 | String literal on subsequent line with backslash |
Interacting with openCPU | I've stumbled across an awesome open source project called openCPU.org and I'm tremendously excited about the project. As a research scientist trying to create a website hosting my work, I would love nothing more than to be able to run R on the cloud to have my scripts run in real time and show up on my webpages. So ... | Here is a complete example webpage I mocked up to use OpenCPU to demo a particular analysis using a R package I wrote (MARSS). I was monkeying with providing easy access to particular analyses--a live user guide so to speak. Caveat, my example relies heavily on JavaScript and I've no experience with JavaScript beyond... | 0.777778 | Using OpenCPU to demo a particular analysis using a R package |
Upgrade to 12.04 Failed due to held back packages | I run upgrade after installing all recommended updates from update manager, and I got dialog:
Could not calculate the upgrade
An unresolvable problem occurred while calculating the upgrade:
E:Unable to correct problems, you have held broken packages.
This can be caused by:
* Upgrading to a pre-release version of U... | I had this problem too on my Lenovo Thinkpad due to ppa graphics dirvers. I solved it by installing ppa-purge and then removing the https://launchpad.net/~oibaf/+archive/graphics-drivers ppa:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers
| 1 | ppa graphics dirvers on Lenovo Thinkpad |
My thesis advisor is absent in my final stage of completing my Ph.D. programme | I am a mathematics Ph.D. student who are in my final stage of completing my Ph.D. programme. My advisor is visiting an institute for a few months. The institute that he is visiting is in another country; because of the visa requirements and many other practical reasons, I cannot go there with him.
Now my progress is, ... | You are about to finish a PhD thesis. Somebody who obtained a PhD title is supposed to be able to organize and conduct reasonable projects independently. I think that your adviser is not being unreasonable in his demands.
Part of organization is also arranging to get more time, if your current time frame cannot be kep... | 1 | Doing a good job higher than meeting a deadline |
Get current Activity with Android | I have a method that scans the position and gets called on every activity I have, everytime an actions trigger I need to show an alertDialog, this is the code:
AlertDialog.Builder builder = new AlertDialog.Builder(mMainActivity.this);
builder.setMessage("test")
.setCa... | You have various options... what you have to know:
You can show AlertDialogs from Activity only
You have various options
Pass your activity instance as parameter in constructor of other classes... then you can call activity from everywhere
Use notifications (class does not need to be an Activity)
Check this qu... | 0.777778 | You can show AlertDialogs from Activity only |
What is the torque and sequence for a '99 Jetta Oil Pan? | I have a '99 Jetta TDI (diesel) with a cracked oil pan. I'm looking for the sequence of tightening the bolts and the torque needed for each bolt. I've been doing to google-fu but can't seem to find it. Does anyone specifically know these details, or where I can maybe find this?
Note: Can someone with priv please put... | Do you have a workshop manual for the car? The torque figures should be listed in there. In the UK Haynes manuals they are at the beginning of the relevant chapter.
I'm not aware of a specific order for oil sump bolts, but if there is one it should be listed in the approprate section of said manual. Normally it is on... | 0.666667 | How to tighten oil sump bolts in a certain sequence |
Bash script- Create usernames and passwords from txt file and store in group? | This script takes a .txt file with four columns- which contains LastName FirstName MiddleInitial Group-as an argument and needs to create a unique username and password for each person; and then assign each user the appropriate directory depending on their group: i.e. If "John Doe" is in "mgmt" group, and his username ... | Depending on which distro you are using, there are a few alterations to your script which will help. I have not had time to actually test this, so use with caution:
#!/bin/bash
# This will loop through the argumented txt file, and create the users as necessary.
# You will need to run this as root, so be very careful... | 0.888889 | Using txt as root to create users |
Polite alternatives to "as soon as possible" | I’ve found myself writing the phrase “as soon as possible” just too often. Sometimes I wonder if it sounds a little rude. How can I convey the same meaning in a more polite way but without losing sense of urgency?
| You could say "quick as you can", "expedite please".
This is not as polite but you could say "immediately if not sooner".
| 1 | "quick as you can", "expedite please" |
xeCJK and paragraph indentation | I am using xelatex and want to use the xeCJK package, but without indenting the first paragraph of a section. I tried the setup directive below, which should do the trick. But it does not. The manual is in Chinese ...
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\xeCJKsetup{indentfirst=false}
... | In the log file you find this warning:
*************************************************
* xeCJK warning: "option-invalid"
*
* The `indentfirst' option only can be set in the optional argument to the
* \usepackage command when xeCJK is being loaded.
*
* Please do not set it via the \xeCJKsetup command.
*************... | 1 | xeCJK warning: "option-invalid" |
How to load a properties file in java without calling laod method separately | How to load a properties file in java without calling laod method separately
i want to load the file while instantiation of the properties object itself.
like i have pasted below but i am not able to succeed in it.
class test{
Properties configFile = new Properties(load(new FileInputStream("config.properties"));
}
| Just create a separate method to do that - potentially in a helper class you can use elsewhere:
public class PropertiesHelper {
public static Properties loadFromFile(String file) throws IOException {
Properties properties = new Properties();
FileInputStream stream = new FileInputStream(file);
... | 0.777778 | Public class PropertiesHelper throws IOException |
Why don't banks give access to all your transaction activity? | In the era of big data, I find it surprising that banks and credit card companies only offer access to a ridiculously small number of transactions - often only your last 180 days, if that. The longest I've seen was 720 days going back. I suspect they do store everything, but intentionally limit access.
These transacti... | Heterogenous archives
A big issue for historical data in banking is that they don't/can't reside within a single system.
Archives of typical bank will include dozen(s) of different archives made by different companies on different, incompatible systems. For example, see http://www.motherjones.com/files/images/big-ban... | 0.888889 | Heterogenous archives A big issue for historical data in banking is that they don't reside within a single system |
ASP.NET MVC Update part of the model | I have very complex model. The flow is like this:
- in controller I populate the model from the database
- in view I have several tabs. After I fill in the info on the first tab, the second tab enables (this works just fine) and on click on the second tab button I need to update some properties of the model. How can I ... | I had the same situations with ASP.NET MVC. I used ViewBag's for sending the data in very magical ways, created Javascript strings and ran them with Html.Raw, used .executeSql in many places, done real magic. But after all I asked myself: is it worth the pain?
No matter you don't have enough time (i mean this!), I str... | 0.888889 | How to create a Helper class for your WebPages? |
How do you grapple in Dead Rising 3? | I just started playing Dead Rising 3 on the Xbox One. I got to the first grapple, and I can't figure out what I'm supposed to do. The top of the screen says "Perform a gesture to escape a grapple" - what does "gesture" mean in this context? Is it something to do with Kinect?
| There will be a circle at the bottom off the screen with a red line around it. You have until the line runs out to either perform the gesture or to press the button onscreen.
| 0.888889 | There will be a circle at bottom off the screen with a red line around it |
Why would one shoot a fully blurred picture? | Focus and blur have a reason in a picture when they come together. Blur alone is just a loss of an important element in the photography art, unless it has a reason, like obscuring nudity or creating an additional value... but what is the value of an entirely blurred picture?
| I'll add another possibility to @Imre's excellent list: full-image blur can give impressions of disconnectedness, loneliness, mental haze, etc. All of these are potential emotions that you wish to convey.
| 1 | Full-image blur can give impressions of disconnectedness, loneliness, mental haze, etc. |
In assasin creed 4 can we fast travel within cities? | For example, rather than running from places to places, I saw many fast travel icons on the map. Can I fast travel there?
I know I can fast travel to save sailing time. What about if I am not sailing? Why are they so many fast travel icons on one city? If fast travel is only when sailing, then we need only one fast tr... | I think this is where the confusion start.
Within city, you can fast travel to synchronize point. You cannot fast travel to "fast travel" point.
What you can do is you go by foot to "fast travel" points and you will have an option to teleport to another "fast travel" points.
The fast travel points look like small bo... | 1 | You cannot fast travel to synchronize point |
What is the distinction between a city and a sprawl/metroplex... between downtown and a commercial district? | I am trying to understand what kinds of places the spam values on p 231 refer to in the 5th Edition main book for Shadowrun.
Per p 15, a sprawl is a plex, a plex is a "metropolitan complex, short for metroplex". Per Google a metroplex is " a very large metropolitan area, especially one that is an aggregation of two or... | When I interpret the Spam/Static Zone noise ratings, I see it as the following:
The City spam rating is one because that is where the more affluent people live. They pay for access to the city's grid, and typically these locations are going to be other businesses or higher-end residential areas, where they don't want ... | 0.888889 | Spam/Static Zone noise ratings are one because that is where the more affluent people live . |
Is there any granular way to change decisions made in ME1/ME2 to see different outcomes in ME3? | In ME1 and ME2, I had to make decisions not really understanding their impact on the series as a whole. Now that I'm partway through ME3, I find myself curious as to what would have happened had I made a different choice previously. What if I'd done X? What if I'd let Y live/die?
I can't just replay ME3, import my ... | Theoretically your best bet would be using a save game editor to change the flags regarding those pre-ME3 decisions and outcomes. There was one for ME2, but I admit I haven't checked if ME3 has one.
Alternately, I recall an archive of all possible ME1 variant ending saves that people could import into ME2 to get the s... | 1 | Theoretically your best bet would be using a save game editor to change the flags regarding pre-ME3 decisions and |
How to allow someone else to send emails in my name? | I want to give another person the ability to send emails in my name. This person should be able to send mail using my email address, but not be able to read my email.
Does anybody know a webapp or application that can do this?
I use gmail, but am willing to try others.
| Gmail will be perfect for that.
In his Gmail account, tell him to follow the following steps:
Sign in to Gmail.
Click Settings and select the Accounts and Import tab.
Under Send mail as, click Add another email address.
In the 'Email address' field, enter the address from which he will be sending emails (your addres... | 1 | Gmail will send a verification message to your email address to confirm that he can use it |
How to make extra crispy and crunchy breading like KFC? | I'm wondering how I would go about making extra crispy chicken breading like they do at many places like KFC and the like. Is there a certain ingredient that makes the breading like that?
Any assistance would be very much appreciated, and feel free to share any of your own recipes for crispy chicken breading if you ha... | Use bread crumbs and egg white for coating the chicken. First mix up corn flour, garlic powder, onion powder and little pepper powder. Then coat the chicken with this. Then dip the chicken in egg white, then bread crumbs coating. Fry it in medium flamed oil. Try this very crispy chicken which is equal to KFC chicken.
| 0.888889 | Bread crumbs and egg white for coating the chicken |
Windows 2008 service creation permission | What do I need to grant permission for creating a service in Windows server 2008 R2?
I have added the user to the local "Administrators" group.
This is the error message:
C:\temp>sc create test binpath=c:\temp\test.exe
[SC] OpenSCManager FAILED 5:
Access is denied.
| I have changed the Service Permissions
Right Click on Service-> Properties -> Sercurity -> Give Full control to Users.
Worked for me.
| 0.666667 | Service Permissions Right Click on Service-> Properties -> Sercurity -> Give Full control to Users |
How to have remote standby PostgreSQL server in different location (AWS)? | We have a primary PostgreSQL 9.4 server running multiple instances in our DC. It is using Continuous Archiving via WAL-E out to AWS S3. I would like to have a hot/warm standby server in our VPC within AWS EC2 that would be ready to take over should we need to DR. I can recover the server via WAL-E but can't seem to get... | There are two ways to run a replica. You can use either, or both together:
Streaming replication, where the replica makes a PostgreSQL protocol connection to the standby as configured with primary_conninfo in recovery.conf; or
WAL shipping, where the replica runs a restore_command (set in recovery.conf that fetches W... | 0.888889 | How to run a replica? |
Past perfect sentence in "I would have killed the snake if I had hit him..." | Is the following a correct past perfect sentence?
I would have killed the snake if I had hit him hard with a stick.
| Yes, it is. It's the third conditional, where you talk about an action in the past that didn't take place. Aside from that, you are missing the or a in your sentence.
I would have killed the snake if I had hit him hard with the or a stick.
| 1 | I would have killed the snake if I had hit him hard with the or a stick |
Drupal redirects to old url after moving to new server | I am in the process of moving a drupal site to a new server.
I copied the drupal db and moved all the files of the drupal installation.
The old url is http://www.sniffingmusicians.echidna-band.com/ and the new is http://www.sniffingmusicians.com/, which point to 2 different servers.
Even though the frontpage of new... | Maybe you can use this module:
Path Redirect (Drupal 6)
Redirect (Drupal 7)
| 0.888889 | Path Redirect (Drupal) |
What's the first physics textbook for undergraduate self-learner? | I am kind of studying physics on my own now.
I choose University Physics (13th Edition) for myself,is it fine?
I am also studying Calculus using Thomas' textbook.
http://www.amazon.com/University-Physics-13th-Edition-Young/dp/0321696891/ref=sr_1_1?ie=UTF8&qid=1352260382&sr=8-1&keywords=university+physics+1... | It depends on your background.
For really starters, I'd suggest Paul Hewitt's book Conceptual Physics.
For A to B high school students, I'd say Resnick and Halliday's book is great.
For A+ high school students, I'd recommend Feynman's Lectures. These lectures serve as complement for the other books, but personally i... | 1 | Paul Hewitt's book Conceptual Physics |
Keypad to set a counter | Is there a way to use a standard Matrix Keypad to set a synchronous counter IC without having to use a micro controller?
| What are you looking at the counter to do, and what relationship do you expect between button position on the grid versus the count value? If you have a counter that produces a one-hot active low output (all other signals driven high), one could connect each output to a diode which would pull down the keypad row assig... | 0.777778 | What is the counter to do, and what relationship do you expect between button position on grid versus count value? |
Can't Delete iTunes Content | I have a MacBook Pro running the latest version of Yosemite and the most up to date version of iTunes.
When opening iTunes up it shows that I have 6 songs, I've tried to delete these songs multiple times by right clicking, pressing 'show in finder' and then moving them to the trash, but they still won't disappear from... | Removing them from your hard drive has no bearing on whether they show up in iTunes. You have to actually remove them from iTunes, too. (Right-click > Delete or Edit menu > Delete while the song is highlighted) The (nearly) only time iTunes knows whether a file in the iTunes library actually exists on the hard drive is... | 1 | Removing the songs from your hard drive |
'Insufficient space on the device' | So, I'm having problem downloading apps from Play Store because apparently, I have insufficient space on device. The app I want to download is of only 12.68 MB and my system storage has 113 MB, phone storage has 596 MB, and SD card has 1.46 GB available.
I tried cache cleaning, uninstalling unwanted apps, moving the m... | Use a cleaning application like clean master to clean junk from your device, then move as much applications to sd-card to alleviate device storage (clean master does that too).
If you're rooted try removing system applications that you are no using
Can you fully remove Google system apps from Android including the Pla... | 1 | Clean master remove system apps from Android |
Right Drag on Mac | How do you perform a right-click-drag operation on Mac hardware? I know you can right click, but there does not seem to be a right click drag gesture. In my specific case I am using a MacBook Pro, and I am in a Windows environment.
The question is more than just theoretical. I ask because there is functionality that... | It is in your best interest to leave the shackles of your old platform behind you and embrace the "new" way. If you keep looking for ways to get OS X to behave like Windows, and remain in your Windows Comfort Zone, you will never be happy with OS X, and/or you'll end up going back to Windows, effectively "wasting" you... | 0.777778 | How to get OS X to behave like Windows? |
Why would analysts recommend buying companies with negative net income? | Can anyone explain why some analysts recommend companies in the biopharmacy sector as a "buy" even though they have high R&D costs and no real profit?
I followed three companies and I see the same story. The only positive number is income, and only in one case does it cover expenses after net borrowing. For the ne... | The biotechnology sector as a whole is a popular buy recommendation among some analysts these days for a few reasons.
Some analysts feel that the high costs in R&D, even without much profit, are a positive sign for growth because it means a company is working towards finding the next "blockbuster drug" or the ne... | 0.888889 | The biotechnology sector as a whole is a popular buy recommendation among some analysts . |
Goalkeeper Jumping Algorithm? | This may be a "best way to" question, so may be susceptible to opinion-based answers (which is ok for me). But I would also like if there are any tutorials , research papers , etc.
I'm trying to make a 3D free kick game, and I want to decide on the Goalkeeper algorithm.
Usually (and in my game) the shot is a function... | The ways to handle this are different based on how you are assigning speed, swerve etc. I'm assuming you have a skill challenge to do that ("stop the moving needle in the right part of the gauge"-type thing or something similar). If so, then you want higher-swerve and higher-speed to equal higher-percentage chance of... | 1 | How to handle speed, swerve and speed? |
Cordova - Trying to execute a function inside a webview | I have a webview from my website working very well in my app. What I'm trying to do now is asking users when they hit Android Back Button if they really want to leave the app.
I'm using the InAppBrowser plugin. Here's my code.
document.addEventListener("deviceready", onDeviceReady, false);
// Cordova is ready... | I am assuming that your problem is back-button event is not getting triggered once the webview loads. This is a common problem with using in-appbrowser plugin for webview. It loads page but we loose control over the page. Use the following plugin
https://github.com/Wizcorp/phonegap-plugin-wizViewManager/ for webVie... | 0.666667 | In-appbrowser plugin for webview |
How to prevent the "Too awesome to use" syndrome | When you give the player a rare but powerful item which can only be used once but is never really required to proceed, most players will not use it at all, because they are waiting for the perfect moment. But even when this moment comes, they will still be reluctant to use it, because there might be an even better mome... | If you, as a game designer, know when the opportune moment arises (eg. boss battle), I would give a cue to the player. This could be a character saying "Sure could use that BFG right about now", or even a tool-tip reminding you that the weapon is awesome. Sometimes, players will just forget that the weapon is there, so... | 0.833333 | When the opportune moment arises, I would give a cue to the player |
How to crop a square at the exact centre of an image in Photoshop? | Given a square image, how can I crop, at the exact center, of the image?
What if the image is not square itself?
What if I'm using Photoshop CS6 or some older version?
Is the procedure the same?
| If your image is not square:
Choose View > New Guide then tick the Vertical option and enter
50% in the box and click OK.
Choose View > New Guide then tick the Horizontal option and
enter 50% in the box and click OK.
This provides a guide intersection at the image center.
Grab the Marquee Selection Tool or ... | 1 | Choose View > New Guide then tick the Vertical option and enter 50% in the box and click OK |
Where to create a shared media folder? | I'd like to place all my family's media in one shared folder for everyone to use from any computer. Whether it's a PC or home server.
What is more appropriate:
Create it in my home folder (/home/lamcro/media/)
Create a new account called media (/home/media/)
or just Create a new folder (/media/)
As far as I know... | I would recommend creating and using a /srv mount point for "services provided by your system".
Personally, I have the following:
/srv
/srv/mm (for "multimedia")
/srv/mm/music (all shared music)
/srv/mm/photos (all shared photos)
...
...
I then mount these directories using NFS on al... | 0.888889 | /srv mount point for services provided by your system |
What's the best way to authenticate an user using a websocket? | I'm creating a multiplayer game(based in websockets) which runs directly from the browser and which has multiplayer functionality. Each player needs to have his own account(Username and password). When I was planning the game, I realized that the easiest way to migrate it to other platforms is writing it in HTML5. So, ... | If you want security, transmitting authentication data through TLS is a big start.
But let's assume the websocket is already set up over TLS.
A solution I would recommend would be based on a challenge-response mecanism :
The server would set up a random set of bytes (the challenge), set a timeout at the end of which... | 1 | a challenge-response mechanism is already set up over TLS |
Is it possible to cryptographically prove when was the last time a ciphertext was decrypted/encrypted? | I want to provide a service that encrypts and decrypts documents and I want to provide the users with proof that I haven't stolen their secret key and read their documents.
I know I can prove when a document was last modified with cryptographic timestamping. Is it possible to prove a document was or was not encrypted... | It is possible for Bob and Alice to store many files on some host file server using a host-proof protocol -- i.e., in such a way that even the sysadmins of that server cannot decrypt and read the plaintext of those files.
You may be interested in browsing the questions with the host-proof tag.
As far as I know, there ... | 1 | OpenPGP is a host-proof protocol that can decrypt and read plaintext of files . |
How do I know if which leg is the emitter or the collector? (Transistor) | I'm new to electronics and here's a newbie question that I would like to ask:
How do I know if which leg is the emitter or the collector in a Transistor (For both PNP and NPN) using only an analog multimeter?
| Useful information to know (complements the other answers) which applies to both NPN+PNP bipolar transistors and N-channel and P-channel MOSFETs:
TO92 transistors are almost always pinned-out as EBC (bipolar) / SGD (MOSFET) when you are facing the flat part of the transistor package and the leads are pointing down.
T... | 1 | NPN+PNP bipolar transistors and N-channel and P-channel MOSFETs |
Close all file descriptors in bash | Is there a way to close all the open file descriptors, without having an explicit list of them beforehand?
| To answer literally, to close all open file descriptors for bash:
for fd in $(ls /proc/$$/fd); do
eval "exec $fd>&-"
done
However this really isn't a good idea since it will close the basic file descriptors the shell needs for input and output. If you do this, none of the programs you run will have their ou... | 0.888889 | To close all open file descriptors for bash: for fd in $(ls /proc/$$ |
Populate a JSON into a table in real time with JQUERY | I'm looking for a library which do this :
Retrieve a JSON through an AJAX call
Populate table with the JSON
Update in real time the table with the JSON (call every x seconds) and only delete or hide the rows wich are deleted or insert the new rows.
/Editing after first answer
Ok i guess my first explanation was no... | If real-time updating is truly required, as Neal suggested, Comet or Stream-Hub would be one avenue worth checking into.
As for the interface, I recently have been using JQuery Templates, and when reconciling added / removed / updated records, I use JQuery selectors to clear & update, and use Templates to add in n... | 0.666667 | JQuery Templates JQuery Selectors Stream-Hub |
Will paprika taste good in my soup? | I've been making a soup that has an onion + garlic + carrot + celery + flour base, and then chunks of sweet potato and potato as well as barley added. I've been spicing it with salt, pepper, garlic powder, and basil. Now I want to substitute paprika for the basil. Would that ruin the soup?
| Paprika brings out the best in savory flavors. I'd go with something a little hotter to compliment the sweetness of the sweet potato - but not too hot, or you'll loose the regular spuds.
| 1 | Paprika brings out the best in savory flavors |
Is it possible to print on 0.035 mm copper foil with a laser printer? | I have seen 0.035 mm copper foil. Until now I have used toner transfer method to etch my PCBs. If one could print on this foil directly it would be almost to good to be true. Any experience or thoughts on that matter?
| A laser printer uses patterns of static electricity to control where the toner sticks to the paper. So the media cannot be conductive. Copper will not work.
| 1 | A laser printer uses static electricity to control where the toner sticks to the paper |
How to ask a question according to the specific sections? |
(1)I get up early in order to catch a bus.
(2)I get up early because I can catch a bus.
How to ask a question according to “in order to catch a bus ” and "because I can catch a bus"?
|
Because of (or on account of) what circumstance do you get up early?
is a question that (2) can answer, but (1) cannot. This takes advantage of the fact that in (2) you are indicating both a reason to get up early, and also a fact -- namely, that there is a bus to take (I 'can' catch a bus implies that there is a... | 0.777778 | What is a reason to get up early? |
Why did OCP build Robocop? | It seems like building the Robocop was a really stupid business approach:
You can't build them on industrial scale (to put it somewhat insensitively, OCP didn't have a ready supply of highly trained and freshly killed police officers)
So, Robocop seemed like a prototype that could never have entered production. Tota... | Robocop was their "Plan B". "Plan A" was ED-209. As explained by Johnson (in the script):
When ED209 ran into serious delays the old man ordered a backup plan. Probably to light a fire under Jones' ass. Old Bob here gets the assignment. Nobody in Security Concepts takes it seriously.
Note that part at the end whi... | 1 | Robocop's "Plan B" was ED-209 . |
Is it wise (and common) to publish in a peer-reviewed journal without an impact factor to prevent impairement of one's own mean impact factor? | I recently found out that a team of colleagues published in a journal without impact factor, though peer-reviewed. According to my supervisor this happens sometimes when the study cannot be published in a top journal, and then it could be better to do so than publish in a low profile journal whose impact factor would d... | This reasoning is Wrong and Bad in several ways.
First, computing "mean impact factor" for a person or group is insane and should be resisted at all costs. Even amongst IF-crazy groups, the metric is generally how many high-IF publications have been obtained (ignoring low-IF publications), not the fraction of high-I... | 1 | "mean impact factor" for a person or group is insane and should be resisted at all costs |
Maximal ideal in $\mathbb{Q}[x,y]$ | I am trying to prove that $(x,y)$ is a maximal ideal of $\mathbb{Q}[x,y]$. Since an ideal $I \subseteq R$ is maximal if and only if $R/I$ is a field, it suffices to prove that $\mathbb{Q}[x,y]/(x,y)$ is a field.
Let $\phi : \mathbb{Q}[x,y] \rightarrow \mathbb{Q}$ be the evaluation homomorphism that sends $p(x,y)$ to $p... | Take an element $p \notin (x, y)$. You can always represent it this way $p = xf + yg+ h$ where $f, g\in\mathbb{Q}[x,y], h \in \mathbb{Q}$. Then it follows that $h \neq 0$ since $p \notin (x, y)$. Then $h$, which is invertible is in $(x, y, p)$, which means that $(x, y, p) = (1)$. Then $(x, y)$ is maximal because the o... | 0.777778 | $p notin (x, y)$) |
How to delete application data on install and reinstall | How to delete application data on install/reinstall application, so I can have a clean working environment on every reinstall ?
I mean how to detect that this application has been reinstalled so I can clean the whole persistent store.
Thanks.
| In the 5.0 APIs there is a new class called CodeModuleListener which you could use to monitor when your modules are being uninstalled. Prior to 5.0 though, there are no hooks. However, here are a few ideas to think about and/or try:
Use the CodeModuleManager methods getModuleDownloadTimestamp() or getModuleTimestam... | 1 | Using CodeModuleListener to monitor when modules are being uninstalled |
Which is the older sense of the word "linguist"? | I have been listening to some rants on YouTube against people learning a bunch of languages calling themselves "linguists".
I'm personally interested in both linguistics and languages as a hobby but I have no official training and certainly no qualifications in either.
My instinct was that the ranter was kind of righ... | The earliest sense of linguist simply means a skilled speaker, such as a rhetorician (Online Etymology Dictionary):
linguist (n.)
1580s, “a master of language, one who uses his tongue freely,” a hybrid from Latin lingua “language, tongue” (see lingual) + -ist. Meaning “a student of language” first attested 1640s.... | 1 | The earliest sense of linguist means a skilled speaker, such as a rhetorician |
Solving a two point boundary problem for a piecewise system of equations | I'm trying to solve a two point boundary value problem with a piecewise system of equations like:
dx[t_] := Piecewise[{{0, y[t] <= 0}, {x[t]^(3/4) - x[t], y[t] > 0}}]
dy[t_] := Piecewise[{{0, y[t] <= 0}, {(1 - y[t])/x[t]^(1/4) + y[t], y[t] > 0}}]
NDSolve[{x'[t] == dx[t], y'[t] == dy[t], x[0] == 1, y[10] =... | There is no need to use Piecewise because both $x(t)$ as well as $y(t)$ remain non negative.
Furthermore, the equation for x is independent of y and can be solved analytically.
The result $x(t)$ is then put into the equation for $y(t)$ which will be solved numerically.
Finally we verify our first statement about the ... | 0.666667 | The non-negativity of the equation for $y(t)$ is solved numerically |
Best way to move live site local | I'm trying to move a big site that's currently live onto my local machine so I can edit locally. I'm using Wamp Server. I've tried using the Duplicator plugin but I'm getting several warnings and errors when I try to unpackage it locally. Is there a more foolproof way to do this?
Otherwise, would it be easier to move ... | Why didn't you try to copy your live website manually. It's not as easy as using a plugin but much more error proof. You will need to follow these steps.
Make a dump of MYSQL database on server.
mysqldump -u username -p -h localhost dbname > domain.sql
Create a archive of your WordPress website on server.
tar -... | 1 | How to copy your live website manually? |
Why are these files in an ext4 volume fragmented? | I have a 900GB ext4 partition on a (magnetic) hard drive that has no defects and no bad sectors. The partition is completely empty except for an empty lost+found directory. The partition was formatted using default parameters except that I set the number of reserved filesystem blocks to 1%.
I downloaded the ~900MB fil... | 3 or 4 fragments in a 900mb file is very good. Fragmentation becomes a problem when a file of that size has more like 100+ fragments. It isn't uncommon for fat or ntfs to fragment such a file into several hundred pieces.
You generally won't see better than that at least on older ext4 filesystems because the maximum ... | 0.777778 | Fragmentation becomes a problem when a file of 900mb has more like 100+ fragments |
Was the Second Doctor's "regeneration" actually a regeneration? | I recently saw a mix up of all of the Doctors regeneration scenes.
When the second Doctor changes to the third (from Patrick Troughton to Jon Pertwee in "The War Games, Part Ten" (1969)), it is forced on him as punishment before being exiled to earth. The Doctor was not critically injured or dying. The transformation ... | Yep, it was his first regeneration
| 1 | Yep, it was his first regeneration regeneration |
Two generated tones creates a side tone - how to avoid the side tone | I'm trying to create two tones at different frequencies. So I have one tone at 15000 Hz and one at 15400 Hz using Audacity. The problem i'm running into is there is a third tone created at a much lower frequency I can tell exists from both my ears and a spectrogram.
How can I get rid of the lower tone? Where does it c... | As far as hearing goes, there are non-linearities in the human cochlea that can produce perceived difference tones at certain volume levels and frequencies.
Quantization noise in small enough digital signals might also create enough non-linear mixing to show up in FFT results. Noise shaping in the quantization could ... | 0.888889 | Non-linearities in the human cochlea can produce perceived difference tones at certain volume levels and frequencies |
Why is CuSO4 used as electrolyte while purifying copper? | During the electrolytic purification of copper, the electrolyte is taken as copper(II) sulphate ($\ce{CuSO_4}$). Is there any particular reason for this? Could another salt of copper, say $\ce{CuCl_2}$ work?
I mean, I don't see any reason why it shouldn't. The only difference will be, that at the anode chlorine instea... | During copper electrorefining, impure $\ce{Cu}$ from the anode is oxidized and dissolved, while $\ce{Cu^2+}$ is reduced at the cathode, forming the deposit of refined copper. Because anodic impurities which are less noble than copper – most notably $\ce{Ni}$, $\ce{As}$ and $\ce{Sb}$ – also dissolve in the electrolyte, ... | 0.833333 | oxidation of anions from the electrolyte at the cathode |
What is the difference between "section" and "part"? | What is the difference between "section" and "part"?
The Longman Dictionary of Contemporary English says for "section":
one of the parts that something such as an object or place is divided into
and says for "part":
a piece or feature of something such as an object, area, event, or period of time
I k... | These are general words that don't have concrete definitions in the sense that you seem to be driving at. Both are used when some large "thing" is divided into smaller "things". There's no rule that a section is 1/10 of the whole while a part is 1/20 of the whole or any such.
Note that while "part" can be used general... | 0.888889 | "part" can be used to mean a subdivision, but also a discrete mechanical component within a larger assembly |
Is it possible to Cap a GridFS collection? | I'm trying to store my application results in a mongo database. There are some issues to this, first we generate a lot of data because it is raw image files, up to 50MB per record and 5 records per second at full speed, that's worst case though not typical. This isn't a problem using gridFS. In the mongod.cfg we are u... | To make a long story short: you can not cap GridFS in a useful way. Here is why:
When you store a file in GridFS, it is split into chunks of 255kB, by default in a collection named fs.chunks, which absolutely can be capped by doing
db.createCollection("fs.chunks",{capped:true, size:52428800})
The capping would appl... | 0.888889 | How to cap GridFS in a useful way |
jquery conflict with videobox and custom code | Ok I have a page that uses 3 plugins and custom code.
Fullscreenr
ScrollTo
VideoBox
my custom code is just to change css style of items in menu(I'll post that code aswell).
My issue is that Fullscreenr and ScrollTo were working fine but when I want to add VideoBox the video popup doesn't want to work all it does i... | You must use noConflict as you are also using mootools
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/videobox.js"></script>
<!-- IF I REMOVE FROM HERE DOWN VIDEO... | 0.888889 | Use noConflict as you are also using mootools |
Why was this grammar & formatting edit rejected? | About: http://stackoverflow.com/review/suggested-edits/1962857
Recently, I've been suggesting a lot of edits - to make the site better. Scrolling through the list of my suggestions, I saw that this was rejected: http://stackoverflow.com/review/suggested-edits/1962857 - mostly with the
This edit is too minor; sugg... | Most likely because of the unneeded inline code blocks. Those do not always make things easier to read. When used excessively for things that are easily identifiable as code, such as UITableView, they actually make the post harder to read. Reserve its use for segments of code that belong together or for keywords that w... | 0.888889 | Inline code blocks make the post harder to read |
TikZ: How to decorate a path with the open diamond arrow tip that "bends" with the path? | I have a curved path that I want to put an open diamond arrow tip on. Here is a MWE with my best attempt:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings}
\begin{document}
\begin{tikzpicture}[decoration={
markings,
mark=at position .5 with {\arrow[>=open diamond] {>}... | You can mark the curve with a node with diamond shape and customize its aspect ratio for your needs.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings,shapes}
\begin{document}
\begin{tikzpicture}[decoration={
markings,
mark connection n... | 1 | Mark the curve with a node with diamond shape |
Drywall - final joint compound coat | While remodeling an older house (where nothing is quite straight) we used fiber glass mesh joint tape and 3 coats of joint compound. The first coat was applied with a 4 inch knife, the second with an 8 inch and ending the third on a 12 inch knife. I can still see the texture from the mesh tape I used on some of the joi... | I know this isn't the answer you want to hear, but I don't think priming and painting will hide the tape.
Before you apply any more primer, I'd add another thicker coat of mud. Slather on the mud thick first - it doesn't have to be smooth. Then smooth it out by angling your 12" knife so it's almost parallel with the ... | 1 | Slather on mud thick first - it doesn't have to be smooth . |
How do native speakers 'guess' the pronunciation of the letters in a word they see for the first time? | I confess! Being a non-native speaker, I struggle a lot especially when I come across a new word. And I wonder how do native speakers pronounce perfectly even though they read the word for the very first time. There should be some rule/technique? I'm not sure.
Let's take a case.
If I see a word having 'ch' for the v... | By analogy with words you already know. In more detail, you guess mainly by recognizing morphemes, taking into account the three main spelling systems that exist within English and taking into account common phonetic pressures that alter pronunciations. Educated guessing cannot be reduced to rules, of course, but I can... | 0.888889 | How can I guess which language a word came from? |
Can I block with my Llanowar elves and then tap it for mana immediately afterward? | My opponent attacks with a 3/3. I block with my 1/1 Llanowar Elves, and have all of my land tapped from my last turn. Can I now tap my Llanowar Elves after it has been declared as a blocker to play Giant Growth on it, make it 4/4 until end of turn, and destroy my opponent's attacking creature when damage is dealt?
| Yes, this works just fine. Once a creature is declared as a blocker, it remains a blocker until it is specifically removed from combat (e.g. Regeneration) or the battlefield (e.g. Cloudshift).
One thing to note: once a creature is blocked, it remains blocked even if the blocker is removed before damage is dealt. Thi... | 0.777778 | Once a creature is declared as a blocker, it remains a blocked even if the blocker is removed before damage is dealt |
Mazda Air Mass Meter - where can I buy one? | I have a 1993 Mazda 323 estate (GLXI 1.6l petrol).
It's not been terribly reliable and has suffered from inconsistent idle - sometimes idling fast (~1500 rpm) and sometimes erratically and sometimes cutting out when stopped at lights.
The last mechanic I took it to said it was probably a problem with the air mass meter... | I don't know about Mazda, but some manufacturers still stock parts for older vehicles - it might be worth asking at the parts desk at your nearest dealer.
It's not the sort of part I'd expect a normal motor factor to stock, although they might still be able to get hold of one. Your best bet is probably to try one of t... | 0.888889 | Some manufacturers still stock parts for older vehicles . |
Do Cron_schedule table collects log cleaning status too? | Hi If magento fails to run the log cleaning process as per the configuration then where it does saves the error_log (or) failure status? Magento doesn't clean the log tables periodically.
Note: I can't set Cron from cpanel(WHM) to do this automatically, as I don't have option.
Any help will be appreciated
Thanks
| Normally Magento would push a cron error via email to the email address you have entered in the Admin for this. Optionally errors would be logged to exception.log in the var/log directory.
[EDIT]
You can monitor your cronjob activity with Aoe_Scheduler. That might also give you some more insight into whats going on.
... | 0.777778 | Magento pushes a cron error via email to the email address you entered in the Admin |
After what period of time does a PhD position count towards the two possible attempts in Germany? | I am not sure if this holds true everywhere, but here in Germany you only get two attemps at getting your PhD. I am currently wondering at which point it counts towards those two attempts. If I were to start a position and quit during the first few weeks, would it still count?
| I think you are conflating the issue of being a Wissenschaftliche Mitarbeiter (research personnel) with that of receiving a PhD. It is possible to work in a "research" position for an extended period of time without being part of a PhD process, so such positions obviously would not count towards "two attempts."
In add... | 1 | Restricting people to two "shots" in this manner would be unfair . |
Setting a basic footer to a UITableView | How is a basic footer set to a UITableView programmatically?
Just a centered text?
EDIT:
How can the bar color be set and the footer bar position fixed to the bottom of the screen or if the thumbs dont fill a screen, the footer isnt above the bottom of the screen.
| You can use UITableViewDataSource callback (just text):
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
Or UITableViewDelegate (any custom view you like):
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
| 0.888889 | UITableViewDataSource callback |
Which color scheme to choose for applications that require long work hours? | I'm working on a ERP / Accounting (lots of tables and data) web app and was wondering what color scheme would be appropriate for this type of application? Users will be sitting in front of their computers for 8+ hours enetering lots of data on daily basis and I would like to make that experience as comfortable as poss... | I've always felt that for long copy, reversed text is really difficult to read but for long hours it's a godsend. Consider how most programmers look at their environment. There is a good reason for this:
The JetBrains Darcula theme has been exceedingly popular as it is both high contrast and desaturated. You can off... | 1 | The JetBrains Darcula theme has been exceedingly popular . |
Why was this grammar & formatting edit rejected? | About: http://stackoverflow.com/review/suggested-edits/1962857
Recently, I've been suggesting a lot of edits - to make the site better. Scrolling through the list of my suggestions, I saw that this was rejected: http://stackoverflow.com/review/suggested-edits/1962857 - mostly with the
This edit is too minor; sugg... | I think I reject this edit on my bad day, maybe accepting it on my good day.
I accept the edit if it makes an obvious improvement : code formatting, repair broken url.
When it comes to grammar, spelling, the edit must cover the full post. From what I think, you have just correct the grammar. There is still room for i... | 1 | Correct grammar, spelling and grammar |
General error 1651 after a mysql migration | I finished migration from 5.1 to 5.6, and (with the same queries as before) mysql complains right away about:
General error: 1651 Query cache is disabled; restart the server with
query_cache_type=1 to enable it
I don't want the query cache enabled (that's an app with lots of writting), and my file my.ini looks ... | I think the SET SESSION query_cache_type = OFF is causing this. In the Query Cache Configuration page it states:
If you set query_cache_type at server startup (rather than at runtime with a SET statement), only the numeric values are permitted.
And since you are starting the server with cache disabled, there is ... | 1 | SET SESSION query_cache_type = OFF is causing this error |
Conflicting information about the running kernel version in FreeBSD | I asked a related question about uname before and now want to ask from another angle, because the following simple yet obvious conflicting outputs may mean there is something many people did not think of (me included). I'm running FreeBSD 9 RELEASE; please see the following commands:
# sysctl kern.bootfile
kern.bootfi... | You have probably upgraded the system from 9.1 to 9.2 but failed to reboot it.
You might also have simply booted a previous kernel, but given the output you've shown, this seems much less likely.
One other possibility comes to mind, that the system is actually inside a jail, running on a 9.1 system, so that while the... | 0.666667 | You upgraded the system from 9.1 to 9.2 but failed to reboot it |
Looking for a high temperature potentiometer | Does anyone know of any potentiometers that are rated up to 500 degrees F?
| Sure, the vitreous ceramic power type should be capable of 260°C, some are rated for it too.
This one, for example, is rated for 320°C, which is more than 600°F.
| 1 | the vitreous ceramic power type should be capable of 260°C, some are rated too . |
Python Condensing Code | My code is pretty long and I need help condensing it to make it more convenient. The code I have is suppose to do the set of instructions I commanded it to do on a fluke robot. I am using python. The robot is suppose to do the following code using it sensors. I need help condensing it.
EDIT:
My code:
from Myro impo... | This implementation works on the idea that you have an ARGB pixel, if you have an RGB pixel replace:
0xFFFFFFFF with 0xFFFFFF
What I am doing is this:
pixel = A R G B
A = 2 bytes
R = 2 bytes
G = 2 bytes
B = 2 bytes
so in hex that is:
pixel = 0xFF000000; # black
pixel = 0xFFFFFFFF; # white
A has to be FF (255)... | 0.888889 | pixel = A R G B A = 2 bytes R = 2 Bytes G = 2 partes |
Possessive-S/apostrophe in a list, including the first and second person | When adding possessive-S/apostrophe to a list, the rule is only the last person has the apostrophe if the item is shared, or everyone has one if they have the items each, e.g.
John and Mary's houses = the houses that belong jointly to John and Mary.
John's and Mary's houses = the houses that belong to John and Mary a... | If there is one house it is clear in any form, but if there are several houses, as you point out, then it can be ambiguous. "John, Mary, and my houses" would be different than "John's, Mary's, and my houses."
That being said, "Our houses are all on Oak Street," tells us little about ownership. I get that you are not t... | 0.888889 | "John, Mary, and my houses" can be ambiguous . |
Are there any way to get (75V 1A) output from 78V input | Is there any way to get 75 V 1 A output from 78 V input?
I found the TL783 high voltage adjustable regulator. But this can supply only 700mA output current.
I had forgot to tell the details.
Main purpose of this power supply is high precision sensor circuit.
Previously, when required 5V : Step down to 8v with a swi... | Maybe you ought to consider a buck-boost regulator like this device: -
It's not a "beginners project" but it will do exactly what you want I believe and work with voltage supplies well below your 75V output voltage level. Top input voltage is limited to 80V.
| 0.666667 | buck-boost regulator is limited to 80V output voltage |
Decompiler Bytecode and Obfuscators | Can we completely reverse-engineer the source code from java bytecode ? Why this feature is allowed in Java and How successful are java decompilers against obfuscators.?
|
Can we completely reverse-engineer the source code from java bytecode ?
Not completely, because some aspects of source code, such as whitespace, local variable names, and comments, are not preserved in bytecode. Otherwise, yes -- while you can't get the exact same source code out, you can almost always get somethi... | 0.777778 | Can we completely reverse-engineer the source code from java bytecode |
High-Tech Dungeon Crawling in Hard Sci-Fi | I've started playing Eclipse Phase with a group of friends. Most of them have a Dungeons and Dragon history, and love getting magic items and such. I've already made up my mind to take the party on more dungeon raids, but what specifically can I do in the way of loot? It is a hard science fiction setting; no magic. It'... | The biggest difference between fantasy and sci-fi notions of value is that: ideas have value
Therefore, besides the standard stuff players receive, they can also discover what amounts to IP.
One of the oddest forms of IP is actually Real Estate, as it's a purely symbolic agreement that X owns area Y, even though X ma... | 0.888889 | The biggest difference between fantasy and sci-fi notions of value is that: ideas have value |
Recieve datatable from code behind to Javascript two demintion array? | I have an application based on google map, in which I need to use a javascript matrix (2d array) for the map's parameters.
I have a datatable with the information at my code behind file:
..query code, getting value from the db..
SqlDataAdapter adp = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
adp.Fill(dt... | You can use Ajax for retrieve the data table as an array from the server.
public ArrayList ConvertDT(ref DataTable dt)
{
ArrayList converted = new ArrayList(dt.Rows.Count);
foreach (DataRow row in dt.Rows)
converted.Add(row);
return converted;
}
then array list convert into array and send ... | 0.666667 | Ajax retrieves data table as array from the server |
How do i measure the output voltage of lm35 with digital voltmeter? | I know this is a very stupid question.
Lm35 has 3 pins: Vcc, Analog output voltage, Gnd.
Is it ok to measure between analog output voltage and gnd? Im asking because Vcc and Gnd is a dc.
| That's how the IC works: it outputs an analog voltage proportional to the temperature in °C. Output is 10 mV/°C, so at 20 °C you'll get 200 mV.
Connect one pin of your voltmeter (analog or digital, doesn't matter) to the output, and the other to the ground pin, because that's the reference against which you want to me... | 1 | IC outputs an analog voltage proportional to the temperature in °C |
Java final variables changes at the execution time | I don't know the reason fo that. Maybe you could help me
So code here creating a frame with 8 sliders.
public class MyFrame extends JFrame {
ImagePanel imagePanel;
final int Minimum = 0;
final int Maximum = 10;
final int NumberOfSpheres = 8;
final int NumberOfScales = 10;
MyRandomAccessFile file;
final String[] s ... | When you declare reference as final, you can't change the reference, but you can change underlying object state.
You can't change
int[] array = somethingelse;
but
array[1] = 5;
is valid.
| 0.5 | When you declare reference as final, you can't change the reference |
What is the best icon to represent the shopping cart for an e-commerce store? | I'm looking for an icon that will clearly identify the "shopping cart" for an apparel store.
A shopping bag? A Cart? Is there any other specific icon?
If we go further, do you think it is better to display an icon? only text (bag / cart?) or both?
| The three icons I commonly see in use are:
A Cart (Amazon, Overstock, etc)
A Bag (JCPenny, LL Bean, etc.)
A Basket (err.. can't think of reference)
Most online apparel stores I see use the "Bag" reference and some form of icon for a bag.
| 1 | A Cart (Amazon, Overstock, etc.) A Bag (JCPenny, LL Bean) |
Volume scatter shader causes black spots | I am following Andrew price's video on making clouds but my clouds are rendering with black spots on them. I have tried turning up the maximum transparency value under light paths but there is no difference between 50 and 200.
What could be causing this?
| These are caused by self-intersecting bits of the cloud particles showing the backsides of faces to the outside world:
Rays going through the back of a face don't count as going into the volume, and so appear mostly transparent.
To fix this you have a couple options:
Lighten up on the displacement to avoid such i... | 0.888889 | Lighten up on the displacement to avoid such intersections |
How to use Java to read/write data to/from the header pins? | I just got Java running on my Raspberry Pi which took a lot more screwing around than i had hoped. I want to be able to read/write data to/from the header pins from Java. How can I do this? Do I need to write a driver or some sort with C first in order to get the data from the header pins? I am running an instance of S... | That should be possible in Java, as referenced here. The library which is used is called rpi-gpio-java and is available at this URL. As stated in the notes, to make it work, please make sure your application is run as root.
Note: Above project rpi-gpio-java is no longer available on google code. Alternate option is PI... | 0.777778 | rpi-gpio-java is no longer available on google code |
The places from my Google Maps do not show up in Google Maps Search | We have public Google Maps with lots of objects but when I do "Google Maps Search" these objects do not show up in the search results (even when I select 'user created maps only').
What should I do to make them appear?
Link to the map: http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=10787394760264... | It appears that Google removed some of the functionality for searching user created maps.
http://www.google.com/support/forum/p/maps/thread?tid=4f150fb453c99abd&hl=en
| 1 | Google removed some of the functionality for searching user created maps |
How do you make a binary image in Photoshop? | I am trying to make a binary image. I want more than just the look of the image to be black/white, but I want the actual file to be a binary file. Every pixel should be either black, or white.
I don't just want a monochrome image. I can't have varying shades of gray, every pixel needs to be black or white.
Is this p... | After using Image > Mode > Grayscale to convert to a grayscale image, you’ll be able to now select Image > Mode > Bitmap, which does exactly what you’re after.
Many of Photoshop’s functions aren’t available in bitmap mode, but hopefully that’s not an issue. If it is, you can run them when still in grayscale, then conv... | 1 | Image > Mode > Grayscale to convert to a grayscale image |
Does 'The plot thickens' make the game easier or harder? | Just curious for games going forward.
Because the expansion allows you to see how people have played on missions, can reveal people's cards, etc, it seems like these are all an advantage mostly to the resistance.
In people's experience - does it make it easier for the resistance?
| The Plot Thickens basically adds more opportunities to link players together, thus creating longer and more complex chains of information.
What I mean by chain of information is something like this:
Player A and Player B both were on a failed mission.
Player B knows Player C's role card.
Player C has declared players... | 0.888889 | The Plot Thickens creates more complex chains of information . |
Chaining deferreds | I have a lot of functions that currently look like this:
function LoadFromURL(url)
{
var d = $.Deferred();
$.get(url).then(function(text)
{
LoadFromText(text).then(function(obj)
{
d.resolve(obj);
},
function(err)
{
d.reject(err);
});... |
Is there a way that I can chain the result
Yes, that is the default behaviour of then!
function LoadFromURL(url) {
return $.get(url).then(LoadFromText);
}
I've seen some implementations of promises that allow this - returning a promise within 'then', means that the eventual result of the promise is used.... | 0.888889 | Returning a promise within 'then' |
Get list of all files by mask in terminal | I want to find all *.h,*.cpp files in folders with defined mask, like */trunk/src*. So, I can find separately *.h and *.cpp files:
find . -path "*/trunk/src/*.h"
find . -path "*/trunk/src/*.cpp"
What is the best way to get the file-list both of types (*.h and *.cpp)?
PS I'd like to pipe the list to grep.
| You can use -o for "or":
find . -path '*/trunk/src/*.h' -o -path '*/trunk/src/*.cpp'
which is the same as
find . -path '*/trunk/src/*' \( -name '*.h' -o -name '*.cpp' \)
If you want to run grep on these files:
find . \( -path '*/trunk/src/*.h' -o -path '*/trunk/src/*.cpp' \) -exec grep PATTERN {} +
or
find . ... | 0.888889 | Find . -path '*/trunk/src/*.h' |
Determining The Parameters Of A Wheatstone Bridge | Good day,
I am trying to use a Wheatstone bridge to condition a thermistor. The arrangement i have is shown in below.
I need the following specifications.
10V output max from the bridge at maximum temperature (50 degrees celcius)
0V output max from the bridge at minimum temperature (0 degrees celcius)
I have det... | With a 24 volt supply, the current thru the limb of the bridge containing the thermistor is: -
Nearly 11mA at 0C
Nearly 19mA at 50C
At 0C this produces a power in the thermistor of 132mW and 63mW at 50C. To me this is a problem. The self-heating of the thermistor will create a significant measurment error at 0C com... | 0.666667 | The self-heating of the thermistor will create a significant measurment error compared to 50C . |
How to install the gedit markdown-preview plugin on 14.04? | I've just installed the markdown preview plugin for gedit and I get the following error on the console when I try to activate it in the plugins tab:
Traceback (most recent call last): File
"/home/aarold/.local/share/gedit/plugins/markdown-preview/init.py",
line 25, in
import markdown ImportError: No mo... | This plugin is written for Python 2, but since gedit 3.8, only Python 3 plugins are supported. So some small changes are required.
Modify the installer (gedit-markdown.sh) to install the python3 markdown module:
This is a patch that you can apply on the existing file (or you can just copy the full modified version a... | 0.666667 | Install python3 markdown module in Python 2 |
End of preview. Expand in Data Studio
- Downloads last month
- 3