How can I submit a photo for the new weekly contest?

Question: I want to submit a photo for this week's contest, but I am not certain how. So, how, can I? And how big must the photo's maximum size be?
Answer: Stack Exchange has a built-in image uploader, which is easily available as soon as you start writing a post:

It supports images up to 2 MB, so you might want to resize your photo first. You can embed larger images if you host them elsewhere, but the benefit of smaller images is that users visiting the page don't need to download several MBs of photos. A possible downside is that (like all written content on Stack Exchange) it will fall under the CC BY-SA 4.0 license.
Best of both worlds: embed a smaller version of the photo in your post, and make it a link to the externally hosted unmodified original (well, of course RAW files won't work). For example, the following syntax
<code>[![enter image description here](https://i.stack.imgur.com/xZl6H.jpg)](https://i.ibb.co/nbm07NF/leeuw.jpg)
</code>
will produce this:

For more details about this syntax, see What's the recommended syntax for an image with a link?
Comment: All clear! Many thanks!
Answer: Unlike the old Featured Photo contest that limited images to 275 by up to 310 pixels, the new site layout's featured Photo of the Week sidebar doesn't limit image dimensions. So you can upload any image size (in terms of pixel count) you wish. The only limit is the Stack Exchange uploader's file size limit of 2 MB.


How do I completely uninstall Android?

Question: I'm trying to Install Android SDK with Eclipse on my computer. I did something wrong (I think I installed some Galileo components into Juno) and the Android plugins aren't working correctly.
When I deleted Eclipse directly and pulled it out of the .zip again, the plugins were all still installed. Does anyone know where they are, so I can delete them?
Comment: You need to specify whether you're running Windows, Mac OS X or Linux.
Comment: @Michael O yes- Windows 7, 64-bit.
Comment: See http://stackoverflow.com/q/17625622/632951 , though that is asking for Android **Studio**.
Comment: Install Plug-in Development Environment (PDE) then the [Plugin Registry](http://help.eclipse.org/juno/topic/org.eclipse.pde.doc.user/guide/tools/views/plugin_registry.htm?cp=4_3_8_0) will tell you where your plugins are.
Answer: If you are still trying out and not into serious development, go with android Studio. Its much more tailored for android development and is the one which has more active development going forward.
If you want to continue using eclipse, plugins are installed under plugins folder at eclipse installation.
Comment: I don't even remember what computer this question was for anymore. :P

IntelliJ really does make great IDEs.
Answer: For Windows, Eclipse plugins are stored in the plugins folder underneath the main Eclipse folder (which is wherever you put it).
Comment: It still is showing everything as installed.
Comment: Is there anywhere else that it keeps data?

How do I completely uninstall Android?


How to transfer files from CD/DVD onto iPad Pro?

Question: I need to access files from CDs and DVDs on my iPad Pro to print them. I use digital crafting files and can download them from Internet without issue, but on discs I own, I cannot work out how to transfer from the discs to the iPad.
Comment: Do you connect your iPad to your computer sometimes? Do you have iCloud on both the computer and the iPad? How/with which app do you open the files on the iPad?
Answer: There's no native way read a digital disc on an iPad, and I don't think a 3rd party manufacturer makes such a solution.
You will need to extract these files from the discs on a computer, macOS or Windows, then upload them to whatever cloud service you're using to make them available on the Internet to your iPad. If you don't have a cloud service, iCloud is one option, as nohillside mentions above, but there are others such as Dropbox or Google Drive. Dropbox and Drive have iOS apps to handle file transfers. I use all three cloud services on my iOS and macOS devices.
Disclaimer: I am not an employee of Apple, Dropbox nor Google.
Answer: I tried connecting a DVD drive to my iPhone 8 by an Apple Lightning to USB 3 Camera Adapter and I was not successful in reading any discs.  The adapter does work with the USB 3 flash drive I tried to make sure I didn't have a hardware failure elsewhere.
This was with an iPhone 8 and not an iPad Pro so perhaps not a valid test.  The iPad Pro is more "computer like" than the iPhone and so might support a DVD drive plugged into it.  If you have any USB DVD drives around then it doesn't hurt to try it.  Be aware that USB powered DVD drives are very picky about the ports they plug into, they take a lot of power and not all hubs or adapters will provide the power they need.  Use a drive that takes power from somewhere other than USB if you can.
If plugging in a DVD drive into the iPad does not work then you'll need something to be an intermediary.  An Apple computer with a DVD drive might work best as that means you can use AirDrop and not have to copy the files to some place in the middle.  Using a flash drive should work, copy the files off the DVD onto the flash drive with a computer and then move the flash drive to the iPad to copy them off there.  Copying the files to iCloud, Google Drive, DropBox, or other internet file service, as mentioned by other commenters, can work too.  If you have an AirPort, Time Capsule, or other similar file sharing capable wireless access point, then you should be able to share a flash drive or something to copy the files over.
If the files are not too big then maybe e-mail them to yourself and pick them out of the e-mail on your iPad.  That's appears to be a fairly common practice I've seen people use.
There's a lot of ways to try.  Good luck.


Animate Drawing of SVG Text

Question: I've had some background mostly in pixel-based graphics and web design. However, I've never came across SVGs. A Google search for this problem convinced me that the answer might be to use SVG for the first time!
What I'm trying to do is to create an animation from the drawing of text. So far, I found this and it looks pretty good, but the animated path is just a line, not text.
Is it even possible to create svg paths for text?
Can svg text be animated?
Are there any other ideas or approaches to this?
Comment: i did find a solution after a day of surfing , almost fits my needs :) https://github.com/dboudro/AnimateSVGText
Comment: It's not exactly what you are looking for but may help you find the right solution:
http://jonibologna.com/svg-text-along-a-path/
it's about animating svg text along a path - perhaps a good start.
Answer: The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.
In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.
Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.
The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked.  You can also animate the SVG lines in different ways by using a plugin like this one.
If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.
Answer: you can view this plugin :
http://www.pixel-conception.com/font_anim/
It do exactly that you want.
You can choose your font, define color, background, gradient, etc.

Animate Drawing of SVG Text


Event with team registration

Question: How do I create a fee for a team event without each team member being charged? ie one team costs $100 not $100 per person.
Answer: If you are OK with it being on the honor system (you can always check to be sure each team has a paying member), then create 2 Fee Labels 1) Team $100 2)Team Member $0. The teams will have to be sure that one member checks the Team Fee and the rest check Team Member.
It might make it easier if you check the box "Register Multiple Participants" It is under the Online Registration tab of the Event Setup. Then one team member can register the entire team and be sure that they pay the $100 only/at least once.
Note: This is on the honor system since all team members can select the $0 option. But you can check to be sure that they have paid before the event.
Comment: Does this need to mention that this involves "using a Price Set"
Comment: With jQuery on a .extra template you can hide the $0 option on the initial person registering and then hide the $100 for the additional registrations. They run on different templates so you would need a custom template for each.
Answer: If you are on Drupal or Backdrop, you can set this up using the webform_civicrm module. The webform can take team info and multiple team members info simultaneously and only charge the fee one time while also registering all contacts for the same event (that is a setting in the webform_civicrm interface).
At the same time, you can add relationship links in the webform to link all the contacts with a custom relationship (for example, "Team Member of/Team Member is" or something along those lines).

Event with team registration


How do I publish multiple web site projects in the same solution to one folder?

Question: I want to keep multiple web site projects in one solution and I want to publish them all together in one folder. What are the steps to do that? Can I publish the whole solution? I am guessing the solution is only a container that is holding different web site projects. I want to publish all these small web site projects into one place and I want to use a single page for the authentication for the whole application. How can I publish these multiple web sites at one location? Do I have to manage web.config?
Answer: It sounds like what you really need is a single web project (and I'd recommend web application projects rather than web "site" projects... but that's another topic).
If they all share common authentication and root folder, why separate them?
Comment: no i have seprate small projects right now , i want to put them together and use one authentication page for all of them
Answer: You could use an MsBuild on NAnt build script to do that.
Answer: I would seriously consider merging the projects into 1, especially if they will be using the same authentication system. Once merged, you would be able to use inherited MasterPages to easily give each section it's own "look-and-feel", while still maintaining the site's style.


Creating Web Services in VS 2005

Question: Why is that Web Service files (.asmx) have their code-behind placed in app_code folder by default unlike the regular .aspx files?
Answer: When you work with Web site projects, this is the style Visual Studio uses. It's not the case with Web application projects.
Answer: Generally asmx files are more like proxies for business objects and business objects don't belong to Web Site projects. Web service classes should be placed in a different project dedicated in business logic and not in presentation. aspx and aspx.cs on the other hand are complementary files correctly placed inside a web site project as their job is to present the data.

Creating Web Services in VS 2005


Is the assumption of indepence only for the sampled values informing the regression, or should it also apply to the cells of a prediction grid?

Question: I have 200 discrete, well-spaced plots with reasonably independent sampled values from which I've derived a regression equation.  If I use it to predict values on a similarly sized fishnet grid, how much does it matter that neighboring grid cells are correlated in the predictor and response variables and is there anything to be done about it?
Comment: Non independence will primarily affect tests of significance of the parameters in the model that you are trying to estimate (and/or tests of significance of the regression model).
Answer: The question is a little vague since I don't know exactly what model you are fitting.  But I would guess that neighbouring prediction cells are correlated because they have similar covariate values.
The observations $y_i$ should be independent, given the linear predictor.  Of course - this assumption should be checked.  Often you can do this with a plot of residuals (depending on the model) - these should show no discernable spatial pattern.  If there is a pattern consider adding a spatially structured random effect (see GAMs or Gaussian Random Fields)
Comment: In other words, the $y_i$ are nearly spatially independent.  The concern is predicting beyond those i locations, into areas where all of the various x's are locally correlated.  There are no residuals in those places.
Comment: Global Moran's I for the $y_i$ 0.14.  But, the predicted $\hat{y}_i$ have a Moran's I of 0.54.


DC and AC coupling peak-peak difference

Question: I have been measuring signals in an oscilloscope and I have stumbled upon a practical exercise of calculating the DC offset of a signal. Basically what I did was turn on the DC coupling, take the maximum voltage (eg. 2.36 volts) then turn on the AC coupling , take the maximum voltage again (e.g., 560mV) and finally DC offset= 2.360-0.560 Volts=1.8 Volts (or so I thought) Though the exercise continues and states that the DC coupling shows us peak-peak 1.04V and the AC coupling 890mV peak-peak. So my question is the following: If the DC offset is responsible for "lifting the signal" , how is it that the peak-peak is different for the same signal in the DC and AC coupling?
Answer: An oscilloscope's AC coupling feature removes the DC part of the signal by placing a capacitor in series with the signal.  This is essentially a High Pass Filter.  So some attenuation is expected.
Generic High Pass Filter:

In general, AC coupling is a convenient way to keep the scope trace on the screen when observing small signals "riding" on top of larger signals that are not of interest.  But, as you pointed out, to make an accurate amplitude measurement, DC coupling should be used along with the time it takes to recenter and adjust the oscilloscope's amplitude to make an accurate assessment of the smaller signal.
Comment: @stf2000 so you are saying that the difference  from 1.04V peak-peak on DC coupling from 890 mV peak-peak on AC coupling can be attributed to the attenuation and not something else?
Comment: This is likely true.  You can reinforce your observations by changing the frequency of the signal you are observing.  Since this is a High Pass Filter, the lower the frequency the more attenuation you should see when AC coupled.  Try lowering the frequency and repeating your test.

DC and AC coupling peak-peak difference


Alternatives to mortgage for mobile expats

Question: I know that buying a house, as opposed to renting, is often a very good financial decision: you have to live somewhere, and paying off a house instead of throwing money away on rent often makes alot of sense.  However, what changes if you're planning on moving every few years?  The realtor and closing cost fees are often high enough that you'll lose any principal you may have paid off.  Are there alternatives to this approach?  Is there some type of investment scheme that allows one to avoid paying rent costs while also still moving around?
Comment: If you have a "home base" - some area you regard as your permanent home, to which you eventually intend to return - you could look at buying a house there, and investigating house-swapping.  I don't know the legalities re income tax deductions, though.
Answer: If I were planning to move every few years, I'd seriously consider renting, rather than purchasing.
And remember - a home isn't an investment, it's a living expense.
Answer: Buying is not always better than renting, even if you aren't mobile! That depends on local market conditions.
If you're investing the money reasonably you may do as well as or better than the house-buyer, and your funds will be tremendously more liquid.
Answer: If you have a view on housing you can buy a real estate investment trust and use proceeds to pay rent. Downside is, depending on where you live, you'll have to pay tax on dividend income from REITs. So if you invest the same amount in a REIT as in a house you'll effectively loose some money due to the tax. You can also think of it this way: you wouldn't pay tax on the rent that you don't have to pay as a result of owning a house, but you pay tax on rent that other people pay you.
Answer: Remember that the rental market and the property market are markets.  For any given location and level of quality, if it were a clearly superior choice to buy over rent, then more people would buy, and less would rent, driving prices down for rentals.  The value of "owning" as opposed to paying rent and never owning is priced into that, at least at locations and levels of quality where owning is a possibility (and that is nearly always a possibility, even at very low levels of quality).
This is true even disregarding your personal circumstances, unless you're looking in an area that has a lot of people like you (San Francisco, perhaps).  Given your personal circumstances, you have strong incentives to be on the renting side, unless there are major pressures on the housing market that cause property to be far cheaper than it should.  This was true in 2009-2011, but is mostly not true anymore (though some areas have yet to fully come out of the crash).
Answer: I don't know any clever way to do what you're describing.  And, in a sense, you can see why there might not be one.  A mortgage isn't just a magical way to reduce your housing expenses; it's a tradeoff in which you agree to a long-term commitment in exchange for fixed costs (or at least costs with a prearranged structure) over that long term.  If you're unwilling to accept the obligation of paying for and maintaining the property over a long period, you can't really expect to reap the benefits of lowered costs.  Part of the reason people say buying is better is because people often do live in the same place for a long time, in which case, if they rent, they might miss out on savings they could have had if they bought instead.  If you're not going to live in the same place for a long time, buying may not actually be better for you.


Making curved text

Question: I am interested in help with making my font looking like the image I have downloaded.  I have made text in illustrator using glyphs, but am having a hard time figuring out how to shape it.
Answer: This type of distortion can be made using an envelope mesh.
Begin with some ordinary text or any grouped artwork, and in the main menu click Object > Envelope Distort > Make with Mesh
Set to 1 row and 1 column, hit OK. Then you can use the Direct Selection Tool (A) to select the corner anchors, move them, and to adjust the curve handles to create the kind of curve you want.

Making curved text


Jquery user control

Question: I have a problem with jquery not loaded in an asp user control.
I want simply to add the click event when a checkbox is clicked.
Here is my javascript file
$(document).ready(function() {
    var arr = jQuery(":checkbox[id*='drpAccountType']");
    for (i = 0; i < arr.length; i += 1) {
        $("#" + arr[i].id).click(function() { alert(this.id) });
    }
});
if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

The user control pre render events:
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
        ScriptManager.RegisterClientScriptInclude(Me, Me.GetType, "CheckboxdropdownScript", ResolveUrl("~/Scripts/CheckBoxDropDown.js"))
End Sub

the script is loaded fine but any usage of jQuery return undefined. Then only when the page is loaded I can excute the same code for the commande line in firebug. The jquery library is  loaded in the master page.
Whenever I'm using jquery within an asp user control I always find problems, and I always have to hack around to get it to work. I try all the entries in stackoverflow but I never found a one as general solution.
did any one found a simple solution to use jquery with master pages, user control in asp.net
I would appreciate  if someone can share such valuable information.
My manager is about to drop jquery from the application as we always waist lot of time just to find a workaround to have it to work with user controls.
Please help, I like jquery and I really want to use it for client script.
best regards
Answer: your script may be getting inserted into the page before the jquery library.  (You can verify this by checking the HTML output of your page.)
When script files execute JS inline, and especially when that JS depends on other libraries, it's safest to use RegisterStartupScript rather than RegisterClientScriptInclude. If you use this overload of RegisterStartupScript, you can construct a reference to the same external JS file and it'll run in the right place.
As an alternative, you could use <asp:ScriptReference/> tags in a ScriptManagerProxy in your user control rather than registering the script in Page_Load or Page_Init; in my experience, those scripts are added after scripts from the master page.
Comment: you should be able to use the overload of `RegisterStartupScript` at http://msdn.microsoft.com/en-us/library/z9h4dk8y.aspx to generate a reference to a JS file.  Doesn't have to be inline script!
Comment: I avoid RegisterStartupScript  simply because I have to construct the script using string builder which if the script is large it gets ugly and hard to maintain.
Answer: this is not exactly a direct answer but here are some jQuery ASP.net controls that might help:
http://clipperhouse.com/jQuery/
(Look for the bit about Callbacks.)
Also, you might not need the "for" loop if you simply give all your checkboxes a class name and use that as the selector.

Jquery user control


How to count visitor of one website from another website(which are on totally different domain)

Question: I want to count the visitor of a website(which is located totally different domain) from my website.Just like Alexa is counting the visitor of all website . How it can be done? Any idea or implementation please. Thanks in advance.
For all i clarify my question.
Suppose I want to count the visitor of www.yahoo.com. The total number of visitor, per day or per month etc. I know this will be very easy if i am the owner of www.yahoo.com, but if i have no connection with www.yahoo.com, then is it possible to know their visitor or any statistics?
Answer: Alexa uses statistics from it's toolbar to estimate the number of visits on a website. I would suggest using an API such as the Alexa API in order to find out this information as opposed to gathering it yourself.
Answer: You can count them on the client side using document.referrer and then if the prior domain matches your objective increment a number stored in localStorage and beacon this number back to the mothership with AJAX.
Answer: if you want to make stat to your own visitors  I use Some thing like This
Using javascript code  like google
when you register in google analytic you will have javascript code to add in your website
this code will connect to google in any visit to site
or using 1 pixel image this image hosted on your website
this image insert data to your visitor database Using Code Of Site
Like
if i have client and i want to collect information about his visitors
i will add client to my clients in database
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ id  + client_key   + client_name + client_email + client_website + STATUS      +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1   +  any key     +  Test       +  Test@domain +  http://www... + 1           +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

and  use his primary key as forign key in
visits table  which contain
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ id + client_id + time + ip + referrer  + systeminfo +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

and get image like


record sound from mic with headset

Question: i have a headset attached with a microphone. All this on a single cable and when i plugged this into the headset jack, i can hear sound perfectly. I have another port for mic. But i dont want to use it. I need to record sound from the mic on the headset through headset port. I dont think for buying a splitter for the headset/mic combo cable to work. When i checked the sound settings->Input(tab), there is an option "Record sound from" and it is selected to one and only in-built mic.
Comment:  Buy a special socket used in cellphones for combo headset and microphone from cellphone repair shop. Open the computer/laptop and replace the headset socket with the combo socket. Re-wire the computer so that microphone wires are connected to the combo socket. close the computer making sure everything is connected. Re-write any and all sound driver source code if needed. Compile the source code and test for bugs. Enjoy using the cellphone headset as headset and microphone. **In other words, it cannot be done!**
Answer: The headphone jack, or line out, has its voltage controlled by the computer. Software on the computer tells the sound card to produce certain sounds, and the sound card creates an oscillating voltage in the headphone jack.
The microphone jack does the opposite; it controls the computer through its voltage. An oscillating voltage is induced there by an external device, and that gets measured by the sound card and made readable by software.
They are incompatible; one cannot stand in for the other.
There is some compatibility between the actual devices that attach to each type of audio jack. A microphone and a speaker work in basically the same way, and provided that you use microphones and speakers with compatible impedance, you can sometimes plug a microphone in where a speaker should go and hear sound from the microphone; and you can sometimes plug a speaker in where a microphone should go and speak into the speaker as though it were a microphone.
This doesn't usually work very well. A computer-compatible microphone is lower voltage (amplitude) than a computer speaker. The primary practical application of this concept was in using old telephones, when they started to break down. If you have a landline phone today, you can still often yell into the speaker and make yourself (faintly) heard on the other end.
Since the microphone jack on your sound card only takes information in, and the line out jack on your sound card only puts information out, you're out of luck. This is a limitation in the sound card, and it cannot be overcome by an operating system (like Ubuntu).
On the other hand, if you tell us why you want to do this, it might be possible to figure out some other approach that would achieve your goals.

record sound from mic with headset


Project based Finder window presets

Question: Does anyone know of software that would allow me to pull up a set of finder windows based on a project type.  I'm a user experience manager who's constantly switching between projects and it would be awesome to be able to select "cart/checkout redesign" and it brings up all folders right where I left them.  Finder windows are just the start to this dream tool of mine.  Would love to be able to pull up everything right where I left them: files, applications, emails, etc.  Almost like having a different computer for each project.
I've researched the heck out of this and have found nothing like this.  Spaces doesn't do it.  There's lots of tools for managing windows but none that will pull up a set of windows and file locations based on a preset.  "Finder Window Manager" is an old piece of software that sounded promising, but it didn't work at all given what I'm looking for.
Comment: Have a look at [Default Folder X](http://www.stclairsoft.com/DefaultFolderX/) - it might go some way toward what you need. It doesn't do windows, but it does folder locations/defaults in switchable sets
Answer: Apple's solution for this is to use Mission Control (if you need multiple desktops) and Finder Tags for each file/project.
From there, you can use finder's tag filtering and/or smart folders to assemble your views.
Also, saving these to your Favorites and removing things you don't use make quick access to these "views" possible across finder and other app open/save dialogs.
Lastly, look at Divvy to automate window placement - it's very scriptable and you might use LaunchBar or another tool to speed actions if spotlight isn't action oriented enough for your automation.

Project based Finder window presets


If I have to submit a urine test does that automatically mean I'll get a background check

Question: I just had an interview and I was told and that I need to have a urinalysis completed I was not told anything about a background check will they later say it
Comment: Without a country tag, any answer to this will be meaningless. Depending on country and industry, this can be somewhere between legally required and super shady illegal.
Comment: It's going to depend on the employer and the position.  Some employers do a background check and no drug test.  Some do a drug test and no background check.  Some do both (and different companies have very different definitions of what a background check entails).
Comment: Only one country thinks urine tests are appropriate for normal jobs.
Answer:
If I have to submit a urine test does that automatically mean I'll get
a background check

No, it doesn't automatically mean that a background test will be required.
Drug tests and background tests are two separate things. In most locales, permission from you would be required before each.

I was not told anything about a background check will they later say
it

They may. In some domains, in some locales, it's routine.


Can I run games that require 8 GB RAM with 6 GB RAM and 4 GB Virtual RAM?

Question: My laptop has 6 GB RAM. Can I run games that need more than 6 GB ram if I utilize virtual memory? For example, Final Fantasy XV, which requires 8 GB of RAM according to the minimum system requirements.
Answer: Honestly, it really depends on the game, but generally, if a game requires more RAM than your machine has, it's going to struggle running on your machine.
Here are possible scenarios:

The game might refuse to install because you don't have enough RAM;
The game might install, but then refuse to start.
The game starts, but then has long loading times or hitching problems.
The game starts and runs like it should, or at least at an acceptable level.

If a game has a demo or another sort of free trial available, that is usually the best way to figure out whether a game might work on your system with less RAM.
I've done some googling around for your specific case. Final Fantasy XV has a demo you can download and install from the Steam store page to see if it will work on your system. According to a Steam discussion thread, there are people that have gotten it to work on a 4 GB system, but I don't know how reliable those reports are.
If you manage to get it to work with 6 GB of RAM, it is possible that you can get problems deeper into the game, when more things need to be loaded into the game. In the end, 6 GB of RAM is well on the low end these days, so if you have any option to affordably upgrade your RAM amount to 12 or even 16 GB of RAM, you probably should.
Comment: They probably got it to 'work' on 4GB by putting the page file on an SSD. And I'm assuming they either didn't have memory leak problems, or those were finally patched.
Answer: Virtual memory is designed to help in the situation where you have multiple processes, which together require more memory than you have available, but not all at once, by swapping memory that is not currently being used to a storage medium.
It will not help in this case, where you have one process which requires more memory than you have available.


Change Minecraft save location?

Question: I have a PC dual booted with Linux and Windows and Minecraft is installed on both. Now sometimes I play Minecraft in Linux and sometimes in Windows. I want to know if I could change the location where worlds are saved to a hard drive that is shared by both operating systems, so that I can use the same world on both operating systems.
Comment: I'm guessing you need a shared drive like an external hard drive or usb thumbdrive. I don't know much about dual-booting but it may be also possible to allocated a shared sector on C:? Yet another option is save to the cloud somehow like ZIPing worlds and putting them in your google drive/dropbox. However, that is a bit slow and tedious so maybe not a good option.
Comment: I do have a NTFS drive that us shared by both.. I just need to know how I can change save location to that drive
Comment: Oh okay I didn't realize that. So do you have minecraft installed two times, once for linux once for windows? If so, the solution is simple. Copy/save your saves folder on the shared drive. Delete minecraft from both OS. Download it again but when it asks for install location put it on the shared drive. Then copy your saves folder back into minecraft folder. From now on, when you create worlds they will be on both linux and windows.
Comment: @AshwinGupta Minecraft Install directory is not a thing in Linux, and affects only the launcher and runtime on Windows. The game itself will always install into `%appdata%\.minecraft` on Windows or `~/.minecraft` on Linux.
Answer: The Minecraft launcher allows you to change the folder it places your saves in (among other things) via the profile settings.

Create a "Minecraft" folder on a shared drive. Make sure you have read/write access to this folder from both Windows and Linux.

Start the Minecraft Launcher and click on Installations

Hover over the profile you want to change, click on ..., then Edit.

Enter the folder on your shared drive in the Box labeled "Game Directory". The game will now place saves, resourcepacks, screenshots and crash-reports (maybe some more folders) in this Directory.

Repeat on the other OS.
Comment: Thanks.. I tried and it works superbly.. Better than my method..
Comment: For those in 2020: Open the launcher, click the Minecraft tab on the left, then click the "installations" tab in the main pane. You should see something like "Latest release". Hover over it and you will see a gray button with 3 dots on the right. Click that and select "Edit". You can then specify the game directory and other properties
Comment: @pooshla Thanks for the heads-up. I have edited the answer to reflect the current launcher.
Answer: Create a folder called saves somewhere in your shared drive. (eg. D:\Xyz\saves). Move your worlds(if you have any saved) to this folder.
Then in Windows, create a symlimk to the folder:

Open elevated cmd.
Navigate to .minecraft folder:
cd %appdata%\.minecraft
Delete the saves folder from here.
In cmd, type:
mklink /D saves <path to saves folder>
eg. If your saves folder is D:\Xyz\saves, type:
mklimk /D saves D:\Xyz\saves

Now reboot to Linux. In Linux,

Go to the shared drive which has saves folder.
Right click on saves folder and make link.
Rename the link to saves.
Go to .minecraft folder in your home directory and delete the saves folder from there.
Move the saves link here.

Now both operating systems will share the saved worlds.
Note: Shared drive must be NTFS for mklink to work.
Answer: Yes there is. Go to your user account and find roaming. go into it. in there is .minecraft (unless you changed if u changed fine what you changed it to) then open it and there will be a file called "Saves". Copy that onto a hard drive. then when you go to Linux open that hard drive and drag the saves into your save location which is in your minecraft launcher than edit profile and near the top.

Change Minecraft save location?


QGIS Cloud Coordinate Display Issue

Question: I'm using QGIS 2.18.3 with the cloud plugin. The map that I've published using the plugin doesn't seem to be retaining the coordinate display setting that I specify in Project-Project Properties-Coordinate Display. Could this be a problem with the plugin, or is there some other place I have to specify the setting to get it to display correctly in a published map?  Other project properties seem to publish just fine.
Comment: I've opened a ticket with QGIS Cloud support.  If I get resolution, I'll post it here in case anyone encounters a similar issue.
Comment: It appears that the QGIS Cloud Plugin does not currently look at QGIS project properties and pull the coordinate settings.  It seems to use the project projection and displays the units for that projection as a default.  If you want decimalized degrees, you need to make sure the CRS for the project is a projection that supports them.  However, since the plugin doesn't pull the coordinate display settings, it also doesn't pull the precision, and displays degrees as rounded whole numbers.  I'm still working with their support.
Comment: The issue is fixed in QGIS CLoud plugin revision 1.4.4
Answer: Ok, I think I've gotten about as far as I can with QGIS Cloud Support on this issue.  For now, the project CRS in QGIS needs to support the desired QGIS Cloud coordinate display units, and they can't fix the rounding issue with 'decimal' degrees until they've looked at it a bit more closely to come up with a solution.

QGIS Cloud Coordinate Display Issue


Any problems with double step-down conversion?

Question: I would like to use this PMIC but the problem is the default values for the DC/DC and LDO converters are different than what I want to use. Unfortunately the custom OTP setting to get the values we want is too expansive. I was thinking to covert the values with a step down converter like this. Are there any problems with doing dual conversion, one happening in the PMIC and then again externally.
Answer: Why are you so stuck on using a PMIC that is not a good fit for your application?
There are a plethora of various types of PMIC parts available from multiple vendors. TI has parts with multiple DC-DC converters on board that can support 2, 3, 4 or more voltage outputs that are programable via precision feedback resistors.
Whilst it may seem convenient to use a part with lots of DC-DC converters in one package I find it better from a board layout standpoint to use PMICs with two channels and then use multiple chips if additional voltage rails are needed. It is just too hard to get an optimum layout trying to cram all the inductors, resistors and capacitors around a PMIC with more than two channels.
Comment: Double conversion is often done using an LDO linear regulator as the second stage. The LDO will work with minimal voltage differential between input and output which is what you want to avoid heavy power loss in the secondary regulator. The LDO would be the minimal footprint way to lower a DC voltage rail down. A regular type linear regulator typically requires at least 3V across the part to function properly.
Comment: Read the LDO data sheet carefully. Some LDOs require careful management and design of the output capacitiance versus load to ensure stable operation.
Comment: I'm  already using all of the converters but can't afford to do custom D.C. D.C. For one of the outputs, it's not worth it cost wise. Our board is high density and 25mm by 25mm, we have enough space to squeeze in the double conversion just for prototyping, but do you know if doing a double conversion is ok and what I would have to watch out for?


Has the mass of longitudinal and perpendicular spin 1 mesons been measured separately?

Question: This might be a silly question. When the mass of a spin 1 meson is measured, is there a way to check whether it is the same for all polarizations? Is such a meson mass the same for longitudinal and for transverse polarizations?
Comment: The mass of all polarizations of a massive particle is the same because of the rotational symmetry. The rotational symmetry of the laws of physics is equivalent via Noether's theorem to the angular momentum conservation law which is easily checked in all particle physics processes, indeed. The difference between the transverse and longitudinal polarization only makes sense relatively to a chosen direction of motion i.e. it depends on the reference frame but the laws of physics don't, so there can't be any dependence of this sort, either.
Comment: Related question from OP: http://physics.stackexchange.com/q/22182/2451
Comment: @LubošMotl: even if it does follow from rotational symmetry, we still ought to check, shouldn't we? Else we risk the parity embarrassment...
Comment: In the question of "is it measureable" I'd venture an unambiguous "yes". What existing data sets to look at is rather harder
Comment: I wonder whether ether type suppositions are involved in this question .
Answer: This is your second effort to get a response on this question.
As far as I know, there has not been a reason to expect that the mass of an elementary particle is a function of its  polarization , We implicitly accept that an elementary particle has one rest mass, as it has one spin and one charge.  You have not given a justification for the question.
Here is  the abstract of one experimental study by L3

Events from the e+e−  -> Z + gamma  process with hard initial-state radiation collected with the L3 detector at centre-of-mass energies between 183 GeV and 209 GeV are used to measure the mass of the Z boson. Decays of the Z boson into hadrons or muon pairs are considered and the Z mass is determined to be 91.272 +/-0  0.032 (stat.) +/-  0.033 (syst:) GeV, in agreement with the value measured at the Z resonance. Alternatively,assuming this measured value of the Z mass, the method determines the LEP centre-of-mass energy, found to be 175 +/-68 (stat.)+/-68 (syst) MeV lower than the nominal value.

In the center of mass system this sample has Z polarized with the opposite polarization to the gamma. If the longitudinal mass  were different than the averaged  mass already studied there would be no agreement with the standard value.
Here is also a preprint with a study of the polarization of the rho meson.
The mass is a given.
Comment: Dear Anna, just a detail: the OP asked about mesons. The Z-boson isn't a meson because it's not strongly interacting (like in QCD). Not that this difference between the 1st and 2nd question by the OP makes any difference for the question. ;-)
Comment: @LubošMotl Well, I tried to find a link for the rho meson but it was too hard, because those studies happened a long while ago.
Comment: I will not edit so as not to bring it up to first page again, but should like to point out that as far as the Z mass is concerned there is no difference within the errors measured between longitudinal and average masses, even if rotational invariance would not be a given for some far fetched reason.


Three kids from different planets meet their future selves as rulers of another planet

Question: There was this book series with three kids from three different planets/universes. One of the kids has blue skin and I think they end up meeting their future selves as the rulers of a planet they all meet up at. Anyone know this book series?
Comment: Welcome to the site.  I think you're going to have trouble finding an answer unless you add some more details.  The covers of the books, names of characters, plot lines, date of publication or when you read it, etc.  You haven't given us much information to work with.
Comment: possibly the same as https://scifi.stackexchange.com/questions/69463/teenagers-taken-from-their-worlds-attracted-to-colored-gems-which-give-them-spe
Answer: This is the Diadem series by John Peel.

The Diadem is a network of worlds, each tied in eternal circuits around the central core of magic. So long as the Triad is in control of the center, magic and the worlds are secure.
  But lately things have started to come undone. Someone must go the the center of the Diadem and set the worlds right again.
Score is a street-tough punk from New York City. Product of a broken home and an abusive crime-boss father called Bad Tony, Score has little to look forward to but a life and early death in the back alleys and underworld of the city.
Pixel comes from a world where The Matrix is the reality. The only human contact he knows is in Virtual Reality. He has never even been outside his house, and his parents are distant memories.
Helaine is the child of a lord in a medieval-style world. Using the name Renald, she disguised herself and learned to fight with the best of the knights, but to her father she is nothing but a pawn in the game of politics.
All three are plagued by vivid dreams of a book and a jewel. Soon, each are pulled from their worlds by powers and magics beyond their control.
They have been selected for a dangerous quest, one on which all worlds depend.

(source)
Comment: This was totally my first thought, too, though it didn't seem like enough information to say for sure. You'd think the magic would've been mentioned, at least. (Also, if I recall, they weren't technically the kids' "future selves" as...the kids were reincarnations of the former rulers? It's been a while.)
Comment: It's possible I'm wrong, but I figured the kid with blue skin was a dead giveaway.


How many days did Prophet Yunus / Jonah remained inside the whale?

Question: I want to ask does anybody know, How many days did Prophet Yunus / Jonah remained inside the whale until he was carried to the shore "according to the Quran"?
Answer: The Quranic story of Yunus 37:139-148 is very concise and it does not mention the length of time he spent inside the whale.
From Tafsir Ibn Kathir (English Translation):

واختلفوا في مقدار ما لبث في بطن الحوت، فقيل ثلاثة أيام، قاله قتادة.
وقيل سبعة، قاله جعفر الصادق رضي الله عنه، وقيل أربعين يوماً، قاله أبو
مالك. وقال مجاهد عن الشعبي التقمه ضحى، ولفظه عشية، والله تعالى أعلم
بمقدار ذلك
They differed as to how long he spent in the belly of the fish. Some
said three days; this was the view of Qatadah. Some said seven days;
this was the view of Jafar As-Sadiq, may Allah be pleased with him.
Some said forty days; this was the view of Abu Malik. Mujahid said,
narrating from Ash-Sha`bi, "It swallowed him in the morning and cast
him forth in the evening.'' And Allah knows best how long exactly was.
Comment: Sory what is Qatadah? I'm quite new to hadiths science. Tks
Comment: @Rextia Qatadah is a person's name. There were two major companions with this name or title: Abu Qatadah al-Ansari, and Qatadah ibn al-Numan.
Comment: Qatadah is the name of a person. Here it likely means  قتادة بن دعامة
Answer: How many days did Jonah stay inside the whale?
There are different narrations. From 9 hours, three days to forty days and this is not very clear. (1)
According to some narrations, Yunus was in the whale's belly for 40 days and nights, during which time the whale did not eat so that Yunus would not be harmed. The fortieth day has come. Jonah prayed to God again, facing three kinds of darkness: night, sea, and fish belly. After this incident, God answered his prayer. (2)
(2): Balami, History of Tabari, 1378, vol. 1, pp. 585-587.
(1)Ref:https://www.tasnimnews.com/fa/news/1395/10/06/1278987  (2): بلعمی، تاریخنامه طبری، ۱۳۷۸ش، ج۱، ص۵۸۵-۵۸۷.
Answer: Since it isn't possible to accurately answer this question from Islamic Tradition (God knows best), earlier revealed scripture should be consulted relying on Quran 10:94:

So if you are in doubt, [O Muhammad], about that which We have
revealed to you, then ask those who have been reading the Scripture
before you.

Verse Matthew 12:40 in the Enjeel answers this question concisely:

For as Jonah was three days and three nights in the belly of the
whale, so will the Son of man be three days and three nights in the
heart of the earth.

Thank you.


Identify font (Manda Naruto)

Question: I would like help identifying the font below (used by Manda in the Naruto manga, chapter #170). I cannot seem to find any font that replicates this one below (having looked through a number of font sites).
Answer: I am pretty sure that this is イナクズレ, a phototypesetting (filmsetting) font.
A bad news is that, despite its commonness in commercial printing, you are not likely be able to use this font on your computer, as its vendor has been negative to sell their typefaces separately from their machine. A good news is that, this year (2021), they finally announced to move into licensing them for DTP, so hopefully it will be available soon.

Identify font (Manda Naruto)


Automatically prefer Ethernet over WLAN

Question: Is is possible to force IP connections over the wired ethernet if it is connected and over wireless LAN if the wired ethernet is unavailabe (e.g. cable disconnected). Both network connections would be part of the same subnet.
Answer: You can set your laptop to "prefer" the Ethernet connection over the wireless. TechNet has a quick overview:

The short answer is that Windows (Vista, 7, 2008, and I'm pretty sure XP and 2003 does as well) [or should do] this by default. The key here is the network interface metric. When you have more than one default gateway defined [...] then the internet bound packets go out the interface with the lowest metric.
[...] You can, of course, permanently alter your metrics by editing your TCP/IP settings on your network adapter's advanced settings.
[...] You should know that Vista made a change to how we handle existing sockets – after plugging in, connections will not be switched over, you must re-establish the connection in order to make use of a wired connection. For example, if you're downloading something from a website and realize that it would go faster by plugging in, you'd have to cancel and start over after plugging in.  This is a change from XP and 2003.

For how to change these settings, have a look at this Microsoft KB article.
Comment: Works like a charm...
Comment: Thanks for the feedback. I know it takes a bit of tweaking but in the end it works.
Answer: The wireless network is not entirely disabled, but windows is already configured to prefer your wired network when available.  This happens via the routing table.  Your routing table will have an entry for both interfaces, but the metric for routes on the wired interface has a lower default than routes on the wireless, such that the wired network is checked first when evaluating where to send a packet.  You can view your routing table by opening a command prompt and entering route print.
Answer: I found a different MS Support article helpful fixing this issue in Windows 7.
It basically explains that you can:

Go to the Start menu.
Type view network connections in the Search programs and files box.
Choose View network connections in the search results.
Press Alt and go to the Advanced Options > Advanced Settings... menu item.
In the Advanced Settings window that opens, look for the Connections list at the top of the Adapters and Bindings tab, and use the up/down arrows to the right of it to change the priorities of your connections (from highest priority to lowest priority).
Click OK to save your changes.

Below is a screenshot of a typical Advanced Settings window with a connection selected in the Connections list and the up/down arrows to the right of the list enabled accordingly:
Comment: Does this actually work?  Mine is set up correctly and I have seen this instruction all over the Internet yet my laptop still is connected to WiFi even if the ethernet is plugged in.
Comment: @PeterTirrell: It worked for me on a Win 7 Pro 64-bit machine back when I answered; but I just noticed a situation on another Win 7 Enterprise 64-bit where it did not work: the routing metric was 20 for both the LAN and WLAN interfaces even though the LAN interface was bumped up in the *Advanced Settings* > *Adapters and Bindings* > *Connections* list as shown. To fix the problem I had to set the WLAN interface's routing metric to 30 (i.e. higher than 20). So your mileage may vary I guess.
Comment: Adapters and Bindings tab is missing!
Answer: A good internet connection manager is Lenovo Internet Connection (AKA Lenovo Access Connections). With this tool you can create profiles, and have them in an order of preferred networks (i.e. wired over wireless, etc). The profiles you create can be exported and used on other computers.
-Good Luck
Answer: in my case, even I gave high priority on wifi, it was not still connect to internet. I checked wifi adapter settings and see an option something like "allow other network users to connect through this computer's internet connection". it was not selected. after I selected it, my computer could start using internet successfully.
go network settings -> choose wifi -> right click -> wifi properties -> sharing -> select "allow other network users to connect through this computer's internet connection"

Automatically prefer Ethernet over WLAN


In-house ads for Gaming on Gaming?

Question: Is it intentional that the ads for gaming questions are show on Gaming.SE itself? I'm not seeing the benefit of that, so is this a bug or a feature?
Answer: Not ideal, but probably not really harmful enough to fix, since there are a lot of sites in rotation there.
Answer: All sites get shown on all sites when it comes to the Stack Exchange ads.
For what it's worth, it's not guaranteed that you'll necessarily see that question while you're on the site. Your example snapshot, for example, that's a question that's not immediately visible (though I imagine a slight bit of scrolling would change that). It thus isn't entirely redundant, and at times can be more useful to the site's audience to see questions they might have missed.

In-house ads for Gaming on Gaming?


Superfish Menu override CSS

Question: I am using superfish menu module with drupal 7.7 and I can't figure out how to override the CSS in space.css or any other superfish stylesheet.
If anyone knows how to, please share your input.
Answer: It supposed that the module has his own css, you need to edit those files but that is not a solution.
I recommend you to use some debugging tool like firebug and check what css you need to edit. Then write the css changes in your theme css file. With this logic if you update the module you will not loose all your custom changes.
Answer: I'd go with @byroncorrales answer and suggest that you use firebug or any web development tool to identify the styles that you need to modify. Also I believe that you have read the superfish module documentation and are adding the custom styles using the Extra CSS Class(es) and the Extra CSS. Apparently its merely a matter of CSS precedence and specificity that's giving you the trouble of not being able to override the CSS. You could refer this link to understand more on the issue and do some searching to identify and fix the issue as its been explained well in multiple places on multiple occassions.
Answer: In case you have an HTML already up and running; you can Select the Style option as "NONE" and just place your CSS in style.css of your custom theme.
If the CSS is written properly it will work seamlessly for superfish Menus, with just a few tweaks needed.

Superfish Menu override CSS


Two-dimensional wavelet analysis

Question: Could you tell me why wavelets without scaling functions can't be used for two-dimensional analysis? What is the role of scaling function?
Comment: Please tell what kind of wavelet transform you are thinking of. Continuous, discretized continuous, discrete or fast discrete? And real or complex valued? Why not also framelets, ridgelets or bandelets?
Answer: ,,A wavelet'' actually is two functions that are orthogonal to each other. That way, a signal can be split into two parts. One part is the wavelet proper, while the other is usually called ,,scaling function'' (sometimes ,,mother wavelet'' as well). When you have just one of both, you can not perform a meaningful wavelet transform.
Comment: If I am not wrong the scaling function is called father wavelet and the detail function mother wavelet

Two-dimensional wavelet analysis


SQL Query result via .net webservice to a non .net- Python client

Question: I wish to consume a .net webservice  containing the results of SQL Server query using a Python client. I have used the Python Suds library to interface to the same web service but not with a set of results. How should I structure the data so it is efficiently transmitted and consumed by a Python client. There should be a maximum of 40 rows of data, containing 60 bytes of data per row in 5 columns.
Answer: Suds is a library to connect via SOAP, so you may already have blown "efficiently transmitted" out of the window, as this is a particularly verbose format over the wire. Your maximum data size is relatively small, and so should almost certainly be transmitted back in a single message so the SOAP overhead is incurred only once. So you should create a web service that returns a list or array of results, and call it once. This should be straightforwardly serialised to a single XML body that Suds then gives you access to.


Increasing diode clipping influence

Question: I'm working on a guitar pedal distortion circuit and I've been experimenting with introducing diode clipping into the signal. My question is, how can I increase the influence this diode clipping has on the final sound? Right now it makes a very small change in the sound and i want to hear the diode clipping more.
Comment: Please don't redefine terms.  If "diode clipping volume" is an industry term then I'll just wince and move on.  If it's not, use "influence" or "effect", or whatever the industry term is.
Answer: IC1 is a voltage amplifier.  It's job (so it thinks) is to put a voltage on its output that is a bigger version of the voltage on its inputs.  R14 is a high enough resistance that IC1 can push it around at will -- basically, you've hooked a Mac truck up to a wet noodle, and you're wondering why the wet noodle isn't affecting the truck's behavior.
Try moving the common terminal of S3 to the other side of R9.  If you like what happens, you may also wish to experiment with reducing the resistance of R14.
Comment: As a simple hack exchange C5 and R9. After that you might need to change the values of R14 and the other resistors in the 'diode clipping' circuit.
Comment: "The Art of Electronics" by Horowitz & Hill.  Get the latest edition you can afford, but any will do.  It's basically about practical electronics for non-electronics majors, so it should be helpful.
Comment: Thanks for the insight Tim, I'm just getting started with things, I've been reading theory but also plugging things together to see how things interact. Any 'Getting Started' resources you'd recommend? So far I've worked through a few books -- Make : Electronics and Practical Electronics for Inventors is my main reference book.
Answer: Your diode clipper is in the wrong place to be effective. It should be after R9 not before it.
Discussion
It is hard to determine what audio source you are using (rhythm guitar?) how distortion is created and how much.   Perhaps you can experiment with GarageBand or Audacity and define a sound byte and post it then show how it was created in order to emulate it.

Play an undistorted recording and then modify it with this and other options and post the unmodified and modified tracks in an audio, then show settings.  We'll try to decipher the transfer function needed.
It seems you started by copying something from some unknown site and now want to improve it, except we cannot hear or see anything specific.
There are a few basic mechanisms for creating distortion;

expansion  ( done by your depletion mode FET biased in the off state)
compression ( done by diodes with soft limiting series resistors)
spectral shaped distortion ( shaping harmonics with filters )
asymmetric distortion with one polarity have more gain than the other.
even order harmonics
odd order harmonics  (square waves)
all harmonics
slight positive feedback
echo and feedback

The LM386 is a low gain amplifier 20 to 200 and thus limited flexibility.
Comment: Thank you for detailing the distortion mechanisms, that's really helpful. I didn't think of using recording software as a starting point. Thank you!

Increasing diode clipping influence


AsyncSockets - ReadToData - Doesn't work like expected

Question: It's my first specific question here on stackoverflow, cause I couldn't found any helpful solutions for my problem yet.
I need a low level socket connection between my iPhone and OSX Workstation (as TCP Server), to interchange some media data like pictures or audio files. So I think AsyncSockets is a good choise to get this to work. I've often used it for some tiny byte communication.
My Problem is, that I want to use a kind of a header/protocol to tell the server how much data bytes are still in pipe.
A simple communication like "hello world" is working fine, so there are no connection problems.
The mobile device (that wants to send a picture) does the following.
[self setHost:@"172.22.42.207"];
self.socket = [[[AsyncSocket alloc] initWithDelegate:self] autorelease];

NSError *err = nil;
[[self socket] connectToHost:self.host onPort:5009 error:&err];

...
NSData *t = UIImagePNGRepresentation(test);

NSString *header = [NSString stringWithFormat:@"%i", t.length];
NSMutableData *headerData = [[header dataUsingEncoding:NSUTF8StringEncoding] mutableCopy];
[headerData appendBytes:[AsyncSocket CRLFData] length:[[AsyncSocket CRLFData] length]];

[[self socket] writeData:headerData withTimeout:-1 tag:0];

The server is listening that way:
AsyncSocket *s = [[AsyncSocket alloc] initWithDelegate:self];
NSError *err = nil;
[s acceptOnPort:5009 error:&err];

if(err)
    NSLog(@"EPIC FAIL...\n%@", err);

....
- (void)onSocket:(AsyncSocket *)sock didAcceptNewSocket:(AsyncSocket *)newSocket
{
   NSLog(@"%s", __PRETTY_FUNCTION__);
   [newSocket readDataToData:[AsyncSocket CRLFData] withTimeout:-1 tag:0];
}

Now: If I use readData:withTimeout:tag it all works like a charm. But once I change the code to readDataToData:withTimeout:tag, to split the header from the other content, the onSocket:didConnectToHost:port: method is never called. Here are some pretty function logs (I placed them in every delegate method)
Client side:
2012-01-31 13:40:32.962 AVMobile[20643:10703] -[SLViewController onSocket:didConnectToHost:port:]
2012-01-31 13:40:32.964 AVMobile[20643:10703] -[SLViewController onSocket:didWriteDataWithTag:]

Server side:
2012-01-31 13:40:32.961 AVServer[20618:707] -[SLAppDelegate onSocket:didAcceptNewSocket:]

So, next idea... just compare the sending and receiving bytes, so:
Sending:    <33333736 35365cba>
Receiving:  <33333736 35365cba>

Yeah... now my final question: What am I doing wrong!?
Why isn't it working out for me :)?
Greetings & thanks!
sniperosx
Answer: Found a solution:
Just don't use -1 as timeout.
With -1 timeout the AsyncSocket is reading data until the other side is closing the connection, so in this range no delegate method is called.
Cheerz
sniperosx
[Closed]
Comment: It also worked if you use readDataWithTimeout instead of readDataToData on the server side.

[newSocket readDataWithTimeout:-1 tag:tag];


Is there any data to inform a view of the US Nationalization of O&G?

Question: I was wondering if there was any polling or data historic or otherwise to support a position on the US perspective of nationalizing oil and gas. The majority of the world's reserves are controlled by nationalized companies with some economists estimating upwards of 90%. I've seen a lot of data on nationalized health insurance (like NHS), but what is the American perspective on nationalizing the O&G industry and running it like Norway?
Answer:
Question:
Is there any data to inform a view of the US Nationalization of O&G?

Here is a poll.
Nationalize the Fossil Fuel Industry
Lots of opinions.

Nationalize the U.S. Fossil Fuel Industry to Save the Planet
Why we must nationalize Big Oil
Commentary: Top Dems Urge Biden To Nationalize Oil & Gas Industry – Michael Shellenberger
Nationalize All the Oil Companies
Nationalizing Fossil Fuel Industry Is a Practical Solution to Rising Inflation
On nationalizing oil
A Moderate Proposal: Nationalize the Fossil Fuel Industry
Out of Time: The case for nationalizing the fossil fuel industry

In my opinion will never happen.  Americans in general prefer market driven solutions.  When corporations become more powerful than the markets American's prefer to reform the market and reintroduce competition over nationalization as was done to Standard Oil in 1911 through the Sherman anti trust laws.
Outside of war time WWI, WWII and Korea, I can't remember any Nationalizations of industry other than Amtrak in 1971 and that take over was mostly voluntary.  Maybe airport security after 9/11 but that doesn't really fit either.
In general American's prefer and or got stuck with a government designed to move slowly require a lot of consensus and deliberation.  This is because the founding fathers all revolutionaries were concerned with the power of government.
Businesses especially those important for the economy require more nimble market driven solutions most Americans would say are outside their governments competence.
If their is one way to make the oil industry unprofitable it's to put it under government control.
Comment: i don't see any of these articles citing an opinion poll or the like about the popularity of the option, that's what i'm looking for. You state "Americans in general prefer market driven solutions." but you have no evidence that it is preferred here in this application. This may just be a lack of data, but in health care for instance you can specify 55% of voters support Medicare for All, and 68% of voters support a public health insurance option https://pro.morningconsult.com/articles/medicare-for-all-public-option-polling


New infectious diseases appear mainly as a result of chance mutations in pathogen genomes?

Question: I am reading the book 'Homo Deus: A breief History of Humankid' by Harari. He mentions the following statement highlighted in the picture below (picture provided for context). I would be appreciated if someone could (1) explain the meaning of it (I have very little background in Biology) and (2) the reason behind it.
Comment: Welcome to Biology.SE. The issue is that the text is really not rigorous and phrased in slightly vague term. Also, it is a little unclear what exactly your might be misunderstanding from the highlighted part. I don't think we can answer much else than simply giving you an intro course to evolutionary biology. I am therefore voting to close as too broad but maybe you'll be able to explain better what exactly is unclear to you in these few words.
Comment: For an very short and very introductory course, you might want to have a look at [Evo101](https://evolution.berkeley.edu/evolibrary/article/evo_01) by UC Berkeley
Answer: Mutations happen all the time when DNA is replicated. These random mutations are the building blocks for evolution under natural selection. So when a single nucleotide is changed, (or deleted or added), there are three possible outcomes. 1. the mutation is neutral, so nothing happens. 2. The mutation is lethal or mal-adaptive for the organism, in which case natural selection will remove the individuals carrying the mutation from the population, or 3. the mutation results in some change in function that helps the organism compete under natural selection. This 3rd kind is the rarest, but with pathogenic viruses and bacteria, with huge populations, the evolutionary test pool is much larger because there are so many new mutations being put to the test with every generation. So, for example, a mutation in a pathogen adapted to spread through chickens, could change the pathogen to be better adapted for spreading through humans.
Comment: I will be a bit picky and awfully pedantic (sorry) but I think a rigorous phrasing is important here. `the mutation results in some change in function that helps the organism compete under natural selection.` A) associating change of function with beneficial consequence, not not talking about a change in function in other cases is misleading. Change of function can go both ways. B) summarizing "higher fitness" to "helps the organism compete under natural selection" is misleading because 1) fitness differential does not necessarily require competition 2) NS is not a condition under which ...
Comment: competition occurs but the concept of fitness differential (+ heritability) itself. Also, it is clear that population size matters but it is not as easy as your answer might make it think. Also expressions like `evolutionary test pool` are very much undefined. The expression `random mutations` can also be very misleading (see the post [Are mutations random?](https://biology.stackexchange.com/questions/66183/are-mutations-random))
Comment: `These random mutations are the building blocks for evolution under natural selection.` Mutations are the ultimate source of genetic variance. It fuses evolution whether there is a selective pressure or not.
Comment: `adapted to spread through chickens, could change the pathogen to be better adapted for spreading through humans` I understand that this goes along the example of the text given by the OP but, IMHO, I think it would be good to avoid giving the misrepresentation to the OP that evolution for a pathogen is an event that necessarily allows a pathogen to jump from one host to the other and that all other evolutionary events would be of no interest or even would not be part of evolution.
Comment: @Remi.b I'd be glad to discuss this with you.


Is it bad that my stories are starting to seem the same?

Question: I have some stories planned but I have found that a bunch of them revolve around giant monsters and 1 or 2 similar characters. I don't really want to combine them, but I fear that I'll will be a hack or one trick pony if I make both. Is it bad to have similar stories?
Comment: Just consider the number of people who made good money out of a stream of similar books.  Too many to name.
Comment: I'd say if you want to write both, then write both. Whether you should _publish_ both, that's the real question. You won't know how good or different they are until they're written.
Comment: Plenty of authors do this. I would go ahead and write them: You learn by doing. Once you write first drafts, you will likely see how to improve them afterwards.
Answer: It really depends on how similar they are. Stephen King writes horror stories, with quite a few evil monsters in various books. His heroes are generally similar, regular good folk that get stuck in a bad situation.
But his monsters are different, and his characters are not identical even if they have similar personalities.
If your characters are too similar and your monsters are too similar, and the plot and how they defeat the monster are too similar, then yes, that is bad.
If I read the first story, and then immediately read the second story and it seems like just a rewrite of the first, then I am a disappointed reader. I was looking for something new, not just another take or another angle on the same story.
You do need to bring something original to every story you write, and chances are if you think the new story is just a rehash of the first story without any major innovation to make it different, you are right.
Come up with a new monster, and new heroes, and intentionally make them distinctly different from your first heroes. Make the guys girls, and vice versa. Change their strong suits, change their weaknesses. When that causes story problem, good. Work through them, and you'll have a new story.
Answer: Go through with it, and write both. Then pick the one you prefer, in order to publish.
I've had the same problem a few times. Naturally, your best bet is to work on them all to start, then slowly narrow the number down as you go. This only really works for discovery writers, like me, but someone could probably find a similar idea for a plotter.
A second option is to write other stuff intermittently, and then it won't look as if you're a one trick pony.
Answer: I think there are two main points to consider when approaching this issue and an additional consideration: 1: Monster/Hero details, 2: What the story is about, and 3: a possible connection between the stories.
There have been made some comments about how authors have often made multiple similar stories with great success. It seems like something very standard to the profession, but I believe some basic factors must be considered in order for it to make sense for you.
1: Monster/hero differences
I'm curious about how similar these "giant monsters" are. Are the challenges for the characters/heroes (between the stories) different in any ways or are they very similar?
I'd try to be very conscious of how they differ, since, as I see it, if people enjoy reading one of your stories, they are probably quite likely to enjoy another one of your stories if it is similar. That being said, the second story should probably stand out from the first in some way. This could be done in almost infinite ways, but if your premise "giant monsters vs a small crew" remains the same, you can cosider the following:

Different strengths/weaknesses assigned to the heroes (and their relations/collaborations)
Different challenges associated with the monsters; What are the monsters actually like, but also; how do the competences/skills of the heroes come into play with this.
Are there certain challenges associated with the environments? Either in a way that gives the monsters an advantage (home field/arena) or that are especially challenging to the heroes (or the other way around?)

These are just SOME things you could consider to make your stories different.
2: What is/are the story/stories actually about?
A recurring point being made on this site (and probably in many other places) is that your story isn't really about 'factual details' about the world/characters of your story (which we, as authors, can be very focused on), but rather that it's about characters and what they go through.
Regarding your question of similar stories, perhaps the two stories have different characters going through the same things, and then perhaps a way to make them unique would be to focus on differences like the ones exemplified above. If you can hide the similarities to a decent degree, maybe that's all you need. However, you may realise that your two stories in fact revolve around different issues, and if this is the case, you may easierly 'get away with the similarities'...
3: A possible connection between the stories
Could both of your stories be taking place in the same universe? Could one story be a sequel to the other, either with the same characters or different ones?
If it involves the same characters, the two previous sections are still relevant. Perhaps following (some of) the same characters will make part of work of creating the second story easier, but not necessarily. If you enjoy creating new characters - which has great impact on what makes sense in terms of development in your story, unless they're basically identical - then the story more easily includes different challenges, unless the challenges have nothing to do with/aren't affected be the strengths and weaknesses of your characters, which would be... unnatural, I think.
All in all, it seems to me that what seems similar to you may simply be what could be considered a genre og a setting. The stories could still be very different experiences to read, if you put in just a bit of work and stay true to how the differences would impact the events naturally.
Answer: No. Most of the time, every newbie writer would feel either one of these things, either their story will look like a plagiarized one of the stories they read, or like you said, revolve around the same plot or same kind of characters. But don't stop writing. Write as much you can, tear as much pages you want, your ideas and writing and the words you use will improve depending on the time you spend writing and the words and emotions you try to pour in your stories. Eventually you will be good, and won't feel this scenario.


Custom permission through UI

Question: Is there any extension that allow user to create permission through UI so that they can be used for defining permission for menu items or reports or form(eg form builder extension)
Comment: sounds like you sorted this. presumably you will add an answer when you get the extension published  - well done :-)
Comment: Not sure if i can publish this extension under https://civicrm.org/extensions without authority from core.
Comment: try pasting this in the ~extensions room: @bgm could you create a new extension repo on lan.civicrm.org/extensions? Called custompermissions (or something similar)
Answer: Pushed Custom permission extension, where you can create your own permission through UI by navigating to CiviCRM >> Administrator >> Customize Data and Screens >> Custom Permissions

Custom permission through UI


Is there a model for the given logical formula, and if not, why?

Question: I'm trying to determine whether there exists a model for the following logical formula: $(p_1 \to (p_2 \lor p_3)) \land(p_2 \to \neg p_3) \land ((p_1 \lor p_3) \to \neg p_2)$. Here's my understanding of the formula: If p1 is true, then either p2 or p3 must be true, and if p2 is true, then p3 must be false. However, this seems to create a conflict because if p1 is true, p2 cannot be false. Can anyone confirm whether a model exists for this formula or explain why it might not be possible? Thank you!
Answer: Set all variables to false, that way each implication has a false left-hand-side and thus it's satisfied.
Comment: Thank you for your response. I thought that (p2 → ¬p3) implied that if p3 is false, then p2 must be true. However, if setting all variables to false satisfies the formula, it seems I may have misunderstood the logic.
Answer: Be lazy: encode your problem in the input language of your favourite SAT solver and feed the resultung term to it. If it answers "SAT" it'll also provide a model. If not, then there's no model.


What's the exact usage of the term "foreign function interfaces"?

Question: I'm working on a project that requires using multiple programming languages. I'm confused about what term to use to specify the interfaces available to bind two languages, e.g JNI, ctypes, jpype, etc. I don't want to limit the meaning to say that the binding exists only between high level and low level languages(java-c or python-c). Most definitions mention this to be a criteria for a foreign function interface(FFI). What would be a better term to use? FFI, bridging technology or something else?
Answer: A foreign function interface is a mechanism by which code written for one runtime (or language) can call code written for another runtime (or language) within the same process. The code written in the foreign language has to satisfy the FFI in order to be called by the runtime. The levels of abstraction don't really matter. The fact that most FFIs are based on the C ABI is a product of its ubiquity, not inherent to the notion.
Many DSLs have an FFI into managed languages. Even if they share a runtime, restrictions on the signatures of the callees make it qualify.
Non FFIs include any sort of RPC mechanism that operates over a plain socket, rather than by directly jumping to the executable code (modulo JIT).
Answer: From the perspective of any particular language it is an external interface.


1x1 round plate with studs on both sides

Question: I apologize for the poor picture quality, but can anyone identify this piece I found in my collection. It's a 1x1 round plate with studs on both sides. It looks similar to Wheel Center Small with Stub Axles (Pulley Wheel)
 but it's smaller.
Comment: Do the studs say Lego?
Comment: The studs are the open/hollow kind, so there's no trademark.
Comment: My best guess is what @Joost already answered.
Answer: It looks like the double stud part of a 4081b Plate, Modified 1 x 1 with Light Attachment - Thick Ring where the 1x1 plate part broke off.

It comes in a couple of metallic colors
Does your part has a break mark?
Comment: Well, you can. But: some disassembly required.
Comment: yes, there appears to be a bit of a nub where something was broken off.  So, I guess Ican't just buy these on bricklink, right?
Answer: I don't know the make, but I have one of these and there is no sign of a break mark so seems to have been made like this.
Could possibly be one of these Cobi 1X1 1/3 Duo parts:


Effect of age on vocal range

Question: What happens to head voice on aging? Heard that low ranges will improve with aging, but what happens to head voice ? Is it possible to maintain my range for ever ?
Comment: It hasn't been possible for me to retain my range forever. I've lost maybe one or two half steps off my highest note. I'm almost 43.
Answer: First of all, there are many muscles and membranes and other tissues involved in the process of singing - from the muscles that control the diaphragm to the muscles that control parts of your face and tongue and all points in between.  And all muscles and tissues in the human body tend to atrophy and lose elasticity as we age.
To keep this answer shorter, I will focus primarily on the vocal folds and what happens to them as we age and how that can affect our singing range.
I know many older singers who still perform regularly and still seem to have the ability to hit the high notes.  I also know some who have suffered significant loss of range.
It is important to note that there are actually two primary categories of force that contribute to loss of range for singers as they get older - naturally occurring physiological changes that occur as part of the aging process - and user controlled factors that can damage the vocal folds and other components of the vocal apparatus.
For many older singers who have lost significant upper range, a great deal of such loss can be attributed to lifestyle choices such as smoking and/or drinking.  Abusing your voice by singing harsh vocals, singing too often without rest between performances, singing for too long at a time without a break, or failure to warm up the vocal chords properly before singing - can certainly result in a loss of range by damaging your vocal chords.  Many famous professional singers have actually lost their ability to sing at a relatively young age because of overuse or abuse (of their voice ..... and possibly substances that can lead to damage).
Obviously the better you care for your voice and the better you care for your overall health in general, the less likely you will be to suffer premature loss of range.
Now let's talk about the inevitable - aging and how it naturally impacts your range.  I would point out that some folks seem to maintain youthful vitality longer than others and genetics may play a factor.
The vocal folds (like all other muscles and ligaments) begin to atrophy as we age and lose elasticity.  This can affect range as well as volume, tone and control.  Also, changes to the tissues supporting the esophagus can affect our range.  Below is a quote from This Article :

Cartilages of the larynx gradually ossify, making adjustments for high pitches more difficult, resulting in a decrease in range, and in more noticeable register breaks. Changes in the epithelium or mucosa of the vocal folds leads to a "thinning" of the sound.

Research has indicated that over time - female voices will experience a gradual descent in range - settling at a fundamental frequency of around 195 Hz (according to a study published in June of 1963 by Robert E McGlone and Harry Hollien on Vocal Pitch Characteristics of Aged Women).
The male voice experiences a gradual lowering of fundamental frequency throughout young adulthood and middle age.  But according to several studies including one done in 2000 by Daniel R. Boone (University of Arizona) and Stephen C. McFarlane (University of Nevada Medical School) the fundamental frequency of the male voice actually begins to rise in late adulthood.
Many studies have also suggested that we can preserve our range and qualify of voice for a longer period and postpone the effects of aging, by proper use and care of our singing voice.  In other words, we can engage in an active and ongoing vocal fitness program to slow down the effects of aging on our voice - much the same way as a general exercise and fitness program can slow the effects of aging in other areas of our life.
A vocal exercise program might consist of regular singing within your comfortable range after a proper warm up and making sure to keep singing sessions short enough to avoid over use injury.  It would be wise to seek advice from a professional voice coach or instructor on proper technique.
Also, taking good care of your general overall health will help preserve your singing voice as well.
So the answer to your question is that your vocal range (including the range of your head voice), your control, and the quality of your voice will inevitably  change to some degree as you age.  But you can be proactive in preventing those changes from occurring prematurely.  And with an intentional, safe voice exercise routine, you can potentially prolong your ability to continue to enjoy your singing voice - well into your senior years!
Good luck and have fun.
Comment: The rise in male voices in late adulthood seems largely to be due to loss of muscle mass in the vocalis muscle.
Answer: The vocal folds and related musculature change with age, as do all tissues in the body.  Excercise will help maintain muscle tone, muscle mass, and tissue flexibility, but it is impossible to maintain your range forever, just as it is impossible for an athlete to maintain the same level of performance forever.
Comment: I think this is definitely true but do you happen to have any sources?  A somewhat more scientific question like this one would benefit from them.
Comment: @MatthewRead unfortunately, I am speaking only from personal experience.

Effect of age on vocal range


How to persist changes to boot2docker in docker-machine?

Question: I am using docker-machine which I use to manage VM running boot2docker with virtualbox as  driver. I need to mount directory to this VM. I was able to do that by adding the folder to shared folders list in settings of VM in Virtualbox Manager. Then using sudo mount -t vboxsf -o uid=1000,gid=50 <name of folder in VM settings> <folder name>. It worked & I added the command to create directory & mount without using relative address to etc/rc.local . The changes I made to VM don't persist when I restart the VM. What do I do?
I am working on Ubuntu 14.04.
Comment: Persist across what?
Comment: try https://github.com/SvenDowideit/boot2docker/blob/f37e262961a870c2c6876c63da4f409595bb2243/README.md#folder-sharing
Comment: @NathanielWaisbrot Persist in the VM running boot2docker
Answer: The persistent directories are documented here: https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md#local-customisation-with-persistent-partition
So you can add your mount command to bootlocal.sh under /var/lib/boot2docker/ directory.
Answer: Create a folder. Inside, create a Dockerfile. The first line should be FROM plus the name of the image which you currently use.
Then you can add the commands to modify the base image. In your case, put a copy of rc.local in the same folder as the Dockerfile
Now you can copy it into your new image with:
ADD rc.local /etc

You can then build your new image with docker build -t user1932582/myapp .
That creates a new image which you can run with docker run user1932582/myapp
Related:

http://docs.docker.com/reference/builder/


Shall i upgrade Database server from 2005 to 2012 without upgrading SSRS or web Application

Question: Shall i upgrade Database server from 2005 to 2012 without upgrading SSRS or web Application relying upon the database?
Will the SSRS reports and Web application continue to work?
Would be appreciated if you could respond quickly
Comment: Are you asking if this is a good idea, or if it is a supported configuraiton or if it will work irrespective of its support status?  Have you read the documentation that comes with the product, concerning compatibility and upgrades?  Is there a problem in there or an statement you don't understand?
Answer: Will suggest you to go through this whitepaper SQL Server 2012 Upgrade Technical Guide, to get a proper understanding on what all is needed for the activity.
There are many points which would be need to be think upon, i.e.

Just upgrading by keeping the compatibility level at a older version is not real upgrade. Evaluate at using some of the new features to increase productivity, performance, maintainability and scalability.

As the upgrade talks happens, get started with tracking if any deprecated features are being used. There are multiple ways to do this – I highly recommend using the " SQL Server: Deprecated Featurese" Perfmon counter to track it like a background task. As your application runs, this gives you a rough idea of how many deprecated features you might be using inside your application that might have an impact to your upgrade process. There is also a Trace Event for capturing Deprecated features with SQL Server Profiler which you can use but that will be to nail down which code is causing that perfmon spike.
Also before upgrading you should check Upgrade Advisor as a first step. This surely guides you of potential problems upfront and is one of the essential step too for any SQL Server upgrade process.
Also, you need to understand on the OS version. If you're current OS running sql server 2005 is good enough to run SQL server 2012.
Similarly, when you check for apps and SSRS, you need to test their functionality if they are designed to run and function as per the latest SQL server 2012 features.
So, before coming to conclusion you need to have a thorough testing done on test/dev/staging servers to test the above apps\reports.
Get everything documented and then layout a plan to decided a YES or NO.
Hope this helps.
Answer: I think that it is not good to uprgade only SQL Server. 2005 is out of support so I think you need to upgrade SSRS also.
If you update only SQL server you must check you apps, bacuse there are some issues with SQLs between versions. For example we use SQLs generated in concatenated strings and we have some issues when upgrading from 2000 to 2008.
In any case you must make test how apps work with the new version the new version.
So my answer is NO.