mounting content of pendrive to mobile phone via bluetooth

Question: what should I do in order to view the contents of pendrive (which is mounted on pi)on mobile phone  android, when connected with blue tooth (blue tooth module is connected on gpio). A new file should be created in file manager.. someone suggested me obexpushd to send the file in that usb port how does it works? i am using raspbian on pi..  need further help..
Comment: Welcome to raspberrypi stack exchange. In order to help you, a bit more information would be helpful. What operating system are you running on your pi and on your phone? What is a pendrive? Also, in order for this question to be helpful to others, proper capitalization, parenthetization and punctuation would be in order. Also include what you tried so far and how the results differed from the expected ones. Setting -1 for time being.
Comment: Sorry, I think this got even more confusing. Do you want to mount it or browse it of manipulate the files on it? If you tell us what you want to achieve, it will be a lot easier to answer.
Comment: @Bex my main goal is to view the contents of pendrive which is connected to the pi on mobile phone and i want to acheive this through bluetooth (as i am using bluetooth module with pi)
Comment: Ok - so what do you want to do with it once you view it?
Comment: @Bex I want to read the data of pendrive on mobile and also edit(delete, copy, paste)it's contents from mobile
Answer: If I understand your question correctly, you have a USB mass storage device (pendrive) connected to your RPi, and you want to use the file manager on an Android mobile phone to connect to the RPi and read and write files on USB device.
The normal Bluetooth way of doing this would be using the OBEX File Transfer Profile (OBEX FTP). It ought to be possible, but is complicated. To make it work, you need to check the following:

Your pendrive is mounted read-write, with correct permissions to let your bluetooth software access it.
Your bluetooth software supports both your bluetooth hardware module and OBEX FTP.
Your bluetooth software is configured correctly to enable the OBEX FTP profile and to allow files to be read and written to the pendrive using the profile.
Your Android phone and RPi are properly paired and can connect over bluetooth.
Your Android file manager supports OBEX FTP.

Your HC-05 bluetooth module connects to the RPi's Broardcom UART and appears as serial port /dev/ttyAMA0.  You can use this port to configure the bluetooth module, as per this blog
Once the module is configured, install bluez. You can install this with
sudo apt-get install bluetooth bluez-utils blueman

I think that you will need to use hciattach to allow bluez to recognize the bluetooth module connected to the UART, then set up the bluetooth connection as normal (google for a tutorial), then use obexd to provide the OBEX FTP service.  All the software you need to make it work properly and let you transfer files is probably in the bluez bluetooth stack.
Unfortunately, I can't see much documentation for this online, and I haven't got the hardware to test it myself, so you will have to read the documentation and man pages for the bluez utilities quite carefully.  Good luck!
Answer: Well just my theory....
If you can do IP-over-Bluetooth then create a FTP server on Pi which has your pendrive mounted on shared mount point,then you should be able to access your pendrive via FTP IP on your phone
Answer: @JRI our android system is based on linux so it will support OBEX FTP?? Is'nt that already installed in phones or will we have to download that package on phones? or any software from store?
Comment: @JRI  i am using raspbian os on pi & using hc-05 bluetooth module ..do i have to use a seperate bluetooth s/w to control the bluetooth module as you said above??
Comment: @shruti - I think all Bluetooth hardware will support OBEX FTP, but the software to make it work isn't normally installed on phones by default. There are lots of Android OBEX FTP apps in the [Play Store](https://play.google.com/store/search?q=obex%20ftp&c=apps) though.


Does NSView have anything analogous to UIView's setNeedsLayout/layoutSubviews methods?

Question: Do I put such things into the display method?  Or is there something analogous?
Comment: I think it's a different question.  One is asking how to tell the window to redisplay everything from scratch.  The other is asking about layout only.
Comment: This question has nothing to do with windows. It's related to NSView.
Comment: possible duplicate of [cocoa -- What is the proper way to tell an NSWindow to redisplay its contents?](http://stackoverflow.com/questions/4676412/cocoa-what-is-the-proper-way-to-tell-an-nswindow-to-redisplay-its-contents)
Comment: Indeed: this is a different question.
Answer: As of OSX 10.7:
- (void)layout is equivalent to layoutSubviews
There is now an identical setNeedsLayout.
Override this method if your custom view needs to perform custom layout not expressible using the constraint-based layout system. In this case you are responsible for calling setNeedsLayout: when something that impacts your custom layout changes.
You may not invalidate any constraints as part of your layout phase, nor invalidate the layout of your superview or views outside of your view hierarchy. You also may not invoke a drawing pass as part of layout.
You must call [super layout] as part of your implementation.
Comment: This is for constraint-based layout only (aka `Auto Layout`)
Answer: Analogous to layoutSubviews is the resizeSubviewsWithOldSize: method of NSView. I guess, analogous to setNeedsLayout would be calling resizeSubviewsWithOldSize:[self frame].size directly.
Answer: resizeSubviewsWithOldSize: seems like it does nothing. Never gets called at all for me. Maybe it's because I use autolayout and the documentation says it's related to autoresizing.
NSView's layout appears to be the same as UIView's layoutSubviews. They're both overridable if you want to do some special work to replace or in addition to autoresizing or autolayout.
Calling this on UIView
[view setNeedsLayout];

seems to be the same as this on NSView
view.needsLayout = YES;

Which begs the question, why is "setNeedsLayout" even a function name? Like, really, you decided to remove the parameter from a setter function, and keep the "set" in the title? Why not "scheduleLayout"? This would obviate the need for Stack Overflow questions like this.
Comment: Thanks for posting your findings.
Comment: The reason is because there's no such thing as a write-only property and they don't want you querying this status. Why this distinction exists across platforms I can't say, pick one Apple!
Answer: Sometimes, resizeSubviewsWithOldSize doesn't get called.
Then, try overriding resizeWithOldSuperviewSize.


How can cloudflare read encrypted request without private key?

Question: We have Cloudflare in our production server and the encryption level is full, not flexible.
This webpage said Cloudflare can decrypt the request. But we didn't give our server's private key to cloudflare. How this even possible? Does this mean anyone can decrypt the request without target's private key?
Answer: One of the ways you use cloudflare is by setting the NS records for your domain to cloudflare's name servers which in turn resolve www.mydomain.com to their IP addresses. This means that when you go to www.mydomain.com setup with cloudflare, it hits one of their servers. The SSL certificate for that domain is not yours, it's theirs. Check the SSL certificate for your website, you'll see that it was issued to something.cloudflaressl.com and your domain is just one of the many in the Subject Alternative name.
The "Full SSL" setup just means that all client traffic to cloudflare is over SSL (using their certificate), and all traffic between cloudflare and your actual server is over SSL as well (using a certificate matching your server name).
As you can see, cloudflare by definition decrypts all traffic for your website but it can do so because cloudflare technically is your website. Your actual server is just something cloudflare grabs data from when it doesn't have it cached. If you think about it, how else would it cache anything?
Answer: There are a number of different ways you can configure cloudflare:

You can set cloudflare as your DNS provider, most CA considers proof of DNS control as valid proof of domain control. This allows cloudflare to create a valid DV certificate with your domain name.
You can give cloudflare your private key, this allows you to use OV or EV certificate.
In higher level plans, you can use keyless SSL, This allows you to use OV and EV without surrendering your keys.

In all cases, yes, cloudflare can intercept and modify any data that passes through it. This is necessary because the main way Cloudflare works is as an edge caching layer, web application firewall, and captcha. All these capabilities requires them to able to see the content of requests as they come and/or modify your pages.
There are a number of ways you can limit the authority of a CDN provider like cloudflare, if you use cloudflare to serve static files, you can serve your main site direct and use subresource integrity or add your own encryption to prevent modifications of files served via cloudflare. If you use a native application as your client (e.g. an Android app), you could pin your site's certificate, or you could require OV or EV certificate.
If you run your main domain via cloudflare, then cloudflare is effectively as powerful as your hosting provider.
Comment: Note that even with "keyless" SSL, you still have to allow them to MITM and read the connection. It just means they don't have access to the private key itself.


How to pass playbook tags to ansible-container?

Question: I created playbooks with tags.
I want to use ansible-container to test my playbooks.
According to the Ansible documentation on ansible-container build,
it is possible to add playbook parameters, but it doesn't work.
ansible-container build --  --tags "pre-install, install"

I get the following error:

ansible-container_1     | ERROR! the playbook: [--tags, could not be found
  ansible_ansible-container_1 exited with code 1
Comment: Why is `docker` a tag of this question?
Answer: Remove the space between tags:
--tags 'pre-install,install' instead of --tags 'pre-install, install'


Short horror story I read in the 70's where the protagonist witnesses a monster disguised as a human eat someone

Question: A guest at a hotel or bed and breakfast accidently sees into an open door in another room. He sees a human turn into a monster and devour another guest. The monster turns back into a human and is unaware the guest saw it all.
Comment: Hi, welcome to SF&F.  Where did you read this?  Was it in an anthology or a magazine?  Do you recall any other stories you read at the same time?
Comment: This rings a faint bell,  do you recall if it was it set in a hotel in  the Swiss Alps?
Answer: I believe that this could be T.H. White's The Troll that can be found in The Maharajah and other Stories (1981).
The narrator is repeating a story his father had told him, about his fishing trip to Lapland, in the far north of Sweden.
Staying at a railroad hotel, he awoke from a nightmare wherein blood was seeping under the connecting door to the next room, and he felt compelled to look through the keyhole to ease his mind. Unfortunately what he saw was a troll eating a fellow guest.
His first thought was that he was going mad, especially when he sees that the resident in the next room is a mild-mannered professor; but the 'professor' gives him a brief glimpse of his real self, and informs the father that he will be next on the menu!
Father is so indoctrinated by the mundane world that he is literally incapable of dealing with this, and goes to bed as usual. Fortunately when the troll enters the room, he touches the fathers rosary, and is destroyed.
Comment: This may be it. Good job. If not it is awful close. I remember all the guest met for dinner and the monster, now human, was not aware he was seen. The advantage to the man who know all.  Thanks
Comment: @WilliamCasey T. H. White's collection *The Maharajah and Other Stories* can be borrowed (for free but registration required) from the Internet Archive: https://archive.org/search.php?query=the%20maharajah%20white Please have a look at it and let us know if it's the right story. If it is, you can "accept" Barnaby's answer by clicking on the gray check mark next to it, which will then turn green. (Yes, all the guests meet for dinner, including the monster in human guise.)
Comment: I think your comment about the Alps gave my memory a nudge, so Thanks!
It is not a collection I would recommend ... but the story *Nostradamus* always stuck in my mind.
Comment: Dammit! That's what I was trying to remember myself when I was asking about the Alps - I had a feeling it was either a troll or a yeti
Comment: Thanks all for helping me find this story.  Good work.


Colorbox within HTTPS page

Question: I am trying to use colorbox within an HTTPS-page.
When I open colorbox, the page is not HTTPS any more because there are unsecured files being loaded...
Does anybody have a solution for this problem?
Thanks in advance!
Greetz,
  Mike
Answer: if you're having the same issue as me, I managed to fix the problem by doing the following:

Open the following file "jquery-colorbox.php"
On line 45, replace the text "WP_PLUGIN_URL" with
"/wp-content/plugins/"
When finished, line 45 should look like:
define('JQUERYCOLORBOX_PLUGIN_URL', '/wp-content/plugins/' .
JQUERYCOLORBOX_PLUGIN_NAME);

Save and upload to your server, and you should be back in action.
Answer: The problem is that your colorbox javascript file is being loaded with "http" instead of "https". So you need to review how it is being loaded and either change that or you can try using "//example.com/path/to/colorbox.js" (no http or https), in order to be available over ssl and non-ssl.

Colorbox within HTTPS page


Fixing awkward gap between drywall and brick

Question: I installed this L channel on the drywall as tight as I could but the brick is so wavy I'm left with this awkward gap. What's the solution to fill this? Scribing the drywall isn't something I want to do. Am I stick cutting out these bricks and putting them in flush?
Comment: I read that the foam is against code for chimneys and flammable. Someone might try to use the chimney someday and that may cause the house to burn down.
Comment: It would help if we could see what we're looking at. Is that a fireplace or what? What else exists nearby for trim? What room is this?
Comment: What the heck, I swear the original image was a view of the thing as a whole. It's an old coal chimney that comes through our kitchen. It used to be covered in plaster and now my wife wanted to expose it.
Answer: Buy a grout bag and fill it with mortar. Squeeze the grout into the area between the metal corner and the brick.  Making sure the gap is full an level. Let it dry to a point where you can scratch the joint with a stick or tool that has the finish that you like.
Comment: I'd paint first, but yeah.
Comment: This would only work for small gaps. We don't know how deep those holes are. You also have to take into consideration movement. Grout will crack.
Answer: I would fill the gaps with spray foam about 3/4 the way, let it expand and dry and then then go back with drywall mud and fill the remaining void. If any of the spray foam comes out, cut it out a bit so you have a place for the mud to fill.
Comment: Sounds reasonable. The only concern would be that the white from the drywall mud would contrast too much. But maybe it gets painted later...
Comment: Yeah, it would get painted at the same time and color as the wall so it looks like the wall seamlessly follows the edge of the brick.
Comment: Essentially, you're using the foam as a backer for the plaster/mortar/whatever. Yeah, should work, though you may need to carve excess foam backm


Editing a pattern in Illustrator

Question: I have a tiled pattern in Illustrator which appears in the Swatches. It's a simple pattern of wiggly line segments with black strokes and no fills. I want to edit this pattern so that the lines are green. I've followed Adobe's instructions on https://helpx.adobe.com/in/illustrator/using/create-edit-patterns.html
but whenever I exit the Edit mode, the pattern becomes blank. This also happens when I do the "save a copy" command. Suggestions? Thanks
Comment: If you edit the pattern by double clicking the swatch and entering Pattern Editing mode- then change the stroke color- then click Done or Save a Copy- it will change the Swatch. Did you try and make a shape and fill it with the newly colored swatch ? Hard to say more without seeing more of your project.
Comment: The video won't display for me. Says "502 Bad Gateway". Also I think it might help if you share a screenshot showing the problem.  It's hard to make guesses without seeing anything. Thanks.
Comment: The method I tried was exactly as you stated it. Have you tried this in the latest Illustrator? I have a feeling it may be a bug that crept in.  Is there some way to send you the pattern so that you can test it? I don't see any instructions here about adding images.
Comment: Just figured it out - you have to edit the original post. Hope this helps.
Comment: Drag pattern out of the swatch panel and drop it in the canvas. Edit then drag back
Comment: I did that, and at least the pattern didn't disappear! But now, when I draw an object larger than the original swatch and apply the new pattern, the pattern isn't continuous. There's a kind of regular tiling of the new pattern, with rows of blank space. But then, when I apply the parent pattern, the pattern fills the space - which is what I want. So: close, but no cigar. (Yet.)
Answer: This may be somewhat of an X/Y problem. I think there may be something, which you are unaware of, that is causing your issues or there is an unfamiliarity with how pattern tiling works.
Note I'm not using the "bleeding edge" version of AI here, so it is feasible that there may be issues with that version. I wouldn't know. If any of the below fails then I may suspect a possible issue with the software itself.

Create the art and drag it to the Swatches Panel to create the pattern swatch. It's not going to line up perfectly.

Deselected all and then Double-Click the pattern swatch in the Swatches Panel to enter Pattern Editing Mode
From here you can reduce the tile size, then delete or reposition individual objects so they all align well, Pattern duplicates are dimmed for greater editing clarity.

Then merely click the Done link at the top of the Document Window and you should see the pattern applied with your edits...

If you see nothing in Pattern Editing mode, and the artwork is not white, there could possible be a software issue. But not necessarily...
Try Select > Select all to see if anything gets selected. Also, make certain you are zoomed out at least to see the entire artboard.
Entering Pattern Editing mode, centers the art on the artboard while you edit. If you are zoomed in, entering Pattern Editing mode won't zoom out, meaning the artwork may simply be out of view.
Comment: I've edited the elements so that they'll line up at the edges, but how do I change the tile size so they fit together? I've added a screenshot to the original question.
Comment: @CSyrett -- clicking the little button at the top of the **Pattern Editing Panel** will allow you to change the tile size.
Comment: You get the cigar! Odd that none of this is described in the online instructions. Even odder is the fact that doing this (simply changing the colors of the strokes in the pattern) was far, far simpler and easier in FreeHand, 20 years ago!
Comment: It's pretty simple in AI.. once you understand it... I believe it's all in the [**Help Files**](https://helpx.adobe.com/illustrator/using/create-edit-patterns.html). I'm not going to get into the whole AI v Freehand thing. That war was over 20 years ago when Freehand died. To the best of my recollection Freehand didn't have anything such as live pattern editing -- but I could be misremembering.
Comment: Ah - I won't get into it either, except to point out that FH didn't just die, it was killed. To me there isn't really a "versus". I use AI every day, and I love it! For example, the Live Paint tools are a lifesaver for us mapmakers. But when I have rush work, I'm back on my old Mac with the lean mean basic tools that get the job done in half the time. A hearty thank you, Scott, for all your help!

Editing a pattern in Illustrator


How can I pass object to procedure from trigger?

Question: I am using mysql 5.6.
After insert or update, inside the trigger I am calling procedure, So how can i  pass NEW and OLD object from trigger to procedure ?
Answer: I found this: SOURCE

There is great reason why you should never call stored procedures from
  within triggers.
Triggers are, by nature, stored procedures. Their actions are virtually hard to roll back. Even if all underlying tables are InnoDB,
  you will experience a proportional volume of shared row locks and
  annoying intermittency from exclusive row locks. Such would be the
  case if triggers were manipulating tables with INSERTs and UPDATEs
  being stagnated to perform heavy duty MVCC inside each call to a
  trigger.
Don't forget that Triggers require overhead. In fact, According to MySQL Stored Procedure Programming, page 256 under the head "Trigger
  Overhead" says the following:
It is important to remember that, by necessity, triggers add overhead
  to the DML statement to which they apply. the actual amount of
  overhead will depend upon the nature of the trigger, but --- as all
  MySQL triggers execute FOR EACH ROW --- the overhead can rapidly
  accumulate for statements that process large numbers of rows. You
  should therefore avoid placing any expensive SQL statements or
  procedural code in triggers. An expanded explanation of trigger
  overhead is given on pages 529-531. The concluding point from that
  section states the following:
The lesson here is this: since the trigger code will execute once for
  every row affected by a DML statement, the trigger can easily become
  the most significant factor in DML performance. Code inside the
  trigger body needs to be as lightweight as possible and -- in
  particular -- any SQL statements in the trigger should be supported by
  indexes whenever possible.

Check RolandoMySQLDBA answer.


Audio routing between Android and PC produces white noise

Question: I am trying to send audio between windows and android, I was successfully able to do that windows to windows but when I stream audio from android, it produces a white noise only. I think it is an issue with the AudioFormat in android and Windows because when I changed the sample Bits to 8 I guess, I heard the voice in one side of my headphones but then it went away too.
On Android Side
<code>        int BUFFER_MS = 15; // do not buffer more than BUFFER_MS milliseconds
        int bufferSize = 48000 * 2 * BUFFER_MS / 1000;
        AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, 48000, 2,
                AudioFormat.ENCODING_PCM_16BIT, bufferSize, AudioTrack.MODE_STREAM);

        byte[] buffer = new byte[bufferSize];
        int bytesRead;
        audioTrack.play();
        while (socket.isConnected()) {
            bytesRead = inputStream.read(buffer, 0, buffer.length);
            audioTrack.write(buffer,0,bytesRead);
        }
</code>
On Windows Side
<code>        AudioFormat format = getAudioFormat();
        DataLine.Info info = new DataLine.Info(TargetDataLine.class, format);

        // checks if system supports the data line
        if (!AudioSystem.isLineSupported(info)) {
            throw new LineUnavailableException(
                    "The system does not support the specified format.");
        }
        TargetDataLine audioLine = AudioSystem.getTargetDataLine(format);

        audioLine.open(format);
        audioLine.start();

        byte[] buffer = new byte[BUFFER_SIZE];
        int bytesRead;

        while (socket.isConnected()) {
            bytesRead = audioLine.read(buffer, 0, buffer.length);
            outputStream.write(buffer,0,bytesRead);
        }
</code>
and getAudioFormat function is
<code>AudioFormat getAudioFormat() {
    float sampleRate = 48000;
    int sampleSizeInBits = 16;
    int channels = 2;
    boolean signed = true;
    boolean bigEndian = true;
    return new AudioFormat(sampleRate, sampleSizeInBits, channels, signed,
            bigEndian);
}
</code>
Only hearing a white noise, if someone can help please do.
Answer: Okayyyy So I found out the problem. I just had to put bigEndian to false -_-
It's the byte order difference. I don't understand why it's different in android and pc but seems like it does the trick.


How do we define "up and down" in space?

Question: Every model of the solar system seems to follow a specific orientation in which the upper side of the system is Earth's north half and the lower side of the system is Earth's southern half. So is North and South in space, or up and down based on Earth's up and down?
Comment: You might possibly find this question and my answer interesting, as it deals with fictional examples of up and down in outer space and discusses the fictional and imaginary physics needed for up and down in space to be real. https://scifi.stackexchange.com/questions/231826/is-there-a-specific-orientation-that-starships-must-be-in-in-the-star-trek-and-s
Comment: @M.A.Golding Yeah, that was actually my question too. X) I needed to learn the basics of how directions/orientation is determined in space so I could better understand how it would work in sci-fi, and additionally, Astronomy Stack Exchange was where I could get scientific, real answers, while I could get the Star Trek-universe or sci-fi answers on Sci-fi Stack Exchange.
Comment: Down is where the Enemy's Gate is.
Comment: @CarlWitthoft I looked that quote up and found that it was from "Ender's Game." I remember watching the movie years ago--and then I got hooked on reading the summary in Wikipedia and reading the "Ender's Game wiki" thing.
Comment: Does this answer your question? ["Up" and "down" in Space](https://astronomy.stackexchange.com/questions/10702/up-and-down-in-space)
Answer: For humans up and down is related to gravity. So you would need to choose a reference first. If you are in outer space and your feet point to the sun and your head to Jupiter, you'd be rightside up (if the sun is the center) and upside down (if Jupiter is the reference).
North and south do not have any physical relationship with up and down. Neither in our planet, nor in space.
In space you have to choose a coordinate system. In those systems you have a reference plane, latitude and longitude. For latitude (+90 to -90) the positives numbers are those that would correspond to the north of the equatorial plane.


Finding outlier values for non-normally distributed data

Question: I have univariate data (38 is the sample size).The distribution is certainly not normal. How can I find the outliers? I used z-score but am not getting a desired result.
Comment: One of many definitions of outliers is that they are values surprising on the current model of the data. As you are clear that a normal distribution is an implausible model, you should assess your data in the context of a better model (lognormal? gamma? we can't tell). There is no canonical, universal definition of outliers that makes them unambiguously identifiable. Conversely, $z$ scores tell you little or nothing here as they are based on mean and SD which may well be unhelpful summaries any way. For better advice, post your data. For more advice, see several threads here on outliers.
Comment: How could there be a non-parametric test for an outlier?
Comment: Compare http://stats.stackexchange.com/questions/78063/replacing-outliers-with-mean for the origin of a similar statement.
Comment: Thanks for your reply Nick Cox. Well here are my data: 2668,  159, 1167,  765,  491,  979, 1216,  403, 1459,  980,  271,
        591,  215,  296,  871,  523, 1105,  698,  852,  409,  493,  252,
        818,  743,  731,  439,  488,  306,  546, 1170,  201,  350, 1963,
        653,  597,  377,  345,  758. Do I need non parametric tests? If so,what tests should i use?
Comment: well..by that i meant if I should consider detecting outliers without assuming that the data follows any sort of distribution.What does the data suggest?
Comment: Usually, but not invariably, non-parametric would mean using ranks. But typically outliers have low or high ranks (depending on how you count and where the problem is) and that doesn't distinguish them from other values that have low or high ranks.
Answer: Given some data, my first line of attack is always a plot. A quantile plot shows (ordered) values plotted against cumulative probabilities, or if you like an implicit rank. Here the original data are clearly all positive and collectively positively skewed (left-hand panel), but a logarithmic scale is thereby suggested. When that is tried (right-hand panel), the data look like a very respectable sample from a lognormal distribution, i.e. the logarithms look like a very respectable sample from a normal distribution. Here "very respectable" means very close to the straight line fit which a perfect sample would show.

I see no reason to shout "outlier" here, but every reason to work with a logarithmic transformation or a logarithmic link function.
Comment: so,you are saying that the data doesn't contain outliers?
Comment: The whole point is that calling outliers depends on a model for the data, which in turn depends on subject-matter knowledge. Clearly I know nothing about the scientific or practical context for the data and how far a logarithmic scale makes sense for analyses. But if you press me for an emphatic Yes or No, I give an emphatic No, with as already said a rider that you must think on logarithmic scale.


Clicktracking tools

Question: Does anybody have any recommendations for affordable clicktracking tools. An initial search brought me to crazyegg, but I am curious if there are tools out there, that dont cost me a lot of money, but let me better understand, how people surf my site, apart from google analytics and friends.
Comment: I'm in love with google analytics. I know its not what you are looking for but they are able to do this through onclick event to register and EventTrack or you can even set up and collect your own custom variables.
Comment: Crazyegg's basic subscription is $9/month and you can try it for free for 30 days. How is that expensive? (I never used it by the way, but I'm thinking of using clicktale for a future project)
Answer: one I'm aware of is clickheat: http://www.labsmedia.com/clickheat/index.html . It's fairly easy to setup and use, but doesn't give you a lot of insights.
The best part (IMO) is that you don't need to process the clicks on the server-side in realtime, but is able to parse logs. Hence you can setup an url that quickly returns a status 204 (no content) and records the clicks.
Update: I forgot to say it's GPL software, free as in speech and as in beer. And you're not giving your valuable data away to third parties.
Answer: Try Clicktale, which also records mouse movemnt of visitors, creates click/mouse move heatmaps, and even more. You can use it for usability testing as well.
Answer: This is more useful information rather than a full answer I suspect, but too long for a comment.
I'm currently trialing ClickDensity where there's a 30 day trial period so you can see if it does what you want - then it's only $5/month for unlimited pages on 1 site. You add a bit of javascript to your top level home page. If you use wordpress like I do then you can just add it to a footer section.
I can see that while the hovermap info is ok, the clickmap and the heatmap do not merge information well from users who each had their browser set at different widths - thus for rows of buttons - it's not easy to tell which button was really clicked.
However - you can fix this partially by getting it to 'follow targets' when showing reports, but this then seems to lose information not associated with certain types of clickable targets - so for example clicks on my carousel are lost, but button clicks are shown correctly positioned.
Similar issues occur when users have a different text size to the browser you view the results on - but I guess that's...more challenging.
It's worth looking at because of the free (no credit card) trial and low monthly cost option, but I'm definitely going to be looking at other options - including labsmedia Clickheat mentioned above or below - although I can see that this too also does not merge information 100% correctly for differently sized user screens and text sizes.

Clicktracking tools


Is it possible to launch another app in iOS 8 using Swift?

Question: Is it possible to launch any app from within another app?
For example, in my application, I want the user to push a button and launch another app (don't close the current app, just open another app and switch to it).
How can I do it in iOS 8 using Swift?
Comment: possible duplicate of [Can an iPad app directly launch another app?](http://stackoverflow.com/questions/3443346/can-an-ipad-app-directly-launch-another-app)
Answer: The only way to do this is to use a deep link, which the developer of an app must have created.
The iOS SDK does not allow your app to interact with other apps unless it uses the new Extensions framework introduced with iOS 8. However, this extension only allows you to provide content and capabilities of your own app within another: you cannot force another app to open.
What you've described is only possible with deep links that are fairly uncommon and must be defined by the developer of the app you are trying to open.
So, for example, a link in your app could open the Pocket application, which allows you to save articles for later reading, with a pocket:// link (as opposed to http:// or https://) and, similarly, the Pebble Smartwatch application can be opened with a pebble:// link. However, these are links that are defined by the developers of those applications and this technique does not apply to all apps.
Answer: I think you are looking for Apple URL Schemes. If the third-party app have any URL Schemes defined, then you can use the following code to open it:
if let url  = URL(string: "http://stackoverflow.com/questions/24728854/is-it-possible-to-launch-another-app-in-ios-8-using-swift/") // Change the URL with your URL Scheme
{
    if UIApplication.shared.canOpenURL(url)
    {
        UIApplication.shared.openURL(url)
    }
}

Comment: You can clean this up a bit by using `URL` instead of `NSURL`, force unwrapping it once in the init (or, better yet, add an `if let url = url` to the conditional), and dropping the `== true`.
Comment: What if you don't know the URL Schemes for the other app?
Comment: @Eenvincible: If you don't know then you can't use. Usually the app developer publish such information. There are plenty of webpages which lists available url schemes.
Answer: Others have described the right idea already here but with some issues around handling the URL and the function to call. UIApplication.shared.open(_ url:) is deprecated, and replaced with a new version with a completion handler.
As others have mentioned, you need the recipient app to have defined a URL scheme. Provided they have, you can do something like this:
func launchTwitterApp() {
    guard let url = URL(string: "twitter://user?id=12345") else {
        preconditionFailure("There was something wrong with our url, this shouldn't happen")
    }
    UIApplication.shared.open(url, completion: { success in
        if success {
            print("We opened the Twitter app.")
        }
        else {
            print("Something went wrong. We might not have the necessary app or the right url.")
        }
    })
}

Answer: No matter what language you are using (Obj-C/Swift), you can always use openURL to open a URL scheme to launch a app (if the URL is provided).
Answer: We can do this by creating custom URL of that app and after that we can open custom URL on click event of a button.
let kCustomURLScheme = "DemoDriver://Daffomac.DemoDriver"

func openCustomApp() {

    let Url = NSURL(string: kCustomURLScheme)
    if UIApplication.shared.canOpenURL(Url! as URL)
    {
        UIApplication.shared.openURL(Url! as URL)

    } else {
        //redirect to safari because the user doesn't have Instagram
        UIApplication.shared.openURL(NSURL(string: kCustomURLScheme)! as URL)
    }

}


What is this game with a 12x8 pegboard and 59 double sided pegs?

Question: I was wondering if anyone knows what this game is.
It has 59(maybe missing 1) pegs that are red on one side and wood color on the other.
It is a 12 x 8 Pegboard Game.
There are no markings on the inside or outside and it folds like a briefcase.
Everything is made of wood except the handle, rubber feet, and latches.
Comment: The lack of markings is odd.  That seems to hint at home built.  Is that a possibility?
Comment: it is a possiblity
Comment: Have one exactly like this so its not home made, I also wonder what the heck it is
Comment: Are you so sure this is a game? It probably is, but it might not be.
Answer: your pegboard looks like an earlier or a later edition of the plastic pegboard we have at the psychology museum. All pegs have two colors like yours. Among other things these and other pegboards were developed for testing dexterity in recruitment contexts and for testing and training eye-hand-coordination in neuropsychology. In neuropsychology it helps to assess neurological damages. Our version has the imprint "U.S.E.S. PEGBOARD". The abbreviation stands for "United States Employment Services". We got our exemplar donated though from the psychological laboratory of the Otto Wagner Hospital in Vienna, a psychiatry.
Comment: Wow!  Great answer.  (Hopefully the OP will be able to switch the accepted answer to this post.  Clearly, these are almost certainly the same thing.
Answer: A lot of games that originate from primitive cultures have hand-made wood-sculpted boards, are played with pretty pebbles from the local beach or forest, and have countless variations to the rules (like Mancala). To me this looks like one of those games, but from a somewhat more recent time.
There are infinitely many games you could play on this 12x8 board with double sided pieces, so I hope you have a game in mind but can't remember the title. Here's some guesses:

Five Stones is an old five-in-a-row game with some restrictions that is played on a 12x8 board, but it doesn't require double sided pieces.
City can be played on a 12x8 board, but it only requires 24 pieces to play.
It could be a Reversi/Othello variant, but those usually require as many pieces as positions on the board.
It could be a variation on Halma, although that doesn't require double sided pieces.
Konane has no board size defined in its rules, but requires as many pieces as positions on the board.

This is my best attempt at an answer to a question that I fear has no single answer. If you feel that these don't answer your question, please explain in your question why not, and I can delete this answer.
Comment: I've eliminated all of my single options, but it could be that this was made with the intention of allowing multiple games to be played on the same board.
Comment: From your Konane link - you need as many pieces as positions. Also, there is no need for double sided pieces.
Comment: hum... Sounds like you eliminated all of your options
Comment: Maybe if you listed listed some of those games, but you didn't even list games that exist. Rather than doing so, you listed speculative variants that use boards other than the one being asked about. But even that would be off-topic. The question isn't "what other games might be playable on board". I don't see how your noise is of any use at all. it just makes the question appear answered when you simply posted an off-topic comment.
Comment: SE is about improving questions and answers to provide *the community's* best, not any one person's
Answer: I just did a Massachusetts state assessment test for the local Boston insulators union and this board was given to us to test manual dexterity. The test was broken down into two parts, each 30 seconds long. The first test we had to remove the pegs from one side to the next using both hands, the second test we had to flip the pegs one by one using only one hand.
By the way, the board we used looked exactly like the one posted by Sascha Frank
Answer: Although this is a non-standard board size, you could play Pente with this set.
Answer: As Bostonian previously stated....
I also took a mechanical aptitude and spacial relations test for a Boston Trades Union (Plumbers and Gasfitters) and as part of the Manual Dexterity portion of the exam, the U.S.E.S. Pegboard was used as the exam was proctored by MA Div. of Career Resources. (following the written portion of the exam)
Answer:
This honestly looks like a simple connection game.  (See m,n,k games).

They used to have games like this at "folksy" restaurants when I was a kid. (The peg board resembles a cribbage-type board, although it's obviously not a cribbage board.)
It might be a proto-version of TwixT, without the strings.
Although it's possible it could be a jumping game, like Konane, I'd be surprised if it was for a jumping game like Halma or Checkers, where a checker board is pretty standard.
The lack of context may be for the purpose of generalization--it is not a single game, but can be used for a variety of connection games and jumping games.
Answer: I recently purchased five of these from excess inventory (surplus) sales from a correctional institute.  These were used in inmate mental status.  I paid $1.00 each for them.


Would lots of hydrogen in a atmosphere cause Fire Storm

Question: Basically Group A Breaths in water and out Hydrogen, Group B in Hydrogen and out water like us and trees but water and hydrogen instead of oxygen and carbon dioxide. Would the hydrogen in the atmosphere cause Firestorms?
plenty of oxygen is around. the humidity is very high would there be Storms raging in the sky like a Thunder Storms? but with burning hydrogen instead of Water vapor
Thanks
Comment: How much oxygen is around?
Comment: If the atmosphere is oxygen dominated, there will be no free hydrogen. If the atmosphere is hydrogen dominated, there will be no free oxygen. Why? They will react as soon as the minor gas is added, and it will not be able to accumulate.
Comment: Hi WindWelder, and welcome to Worldbuilding! We could use a little more information to help you get the best answers, because it seems like we already get firestorms on Earth without the extra hydrogen. Are you worried about your [atmosphere as a whole igniting](https://worldbuilding.stackexchange.com/questions/47424/how-to-ignite-the-atmosphere)? Or whether the fire storms we get on Earth will be larger with the extra hydrogen? I suspect we'll need an atmospheric composition breakdown to give you accurate answers.
Comment: I Would like the storms to happen but not Burn the whole atmosphere. I would like humans to be able to walk on the surface without Hazmats if they cant then that's okay. The content of the Atmosphere is up for grabs.
Comment: Greetings and welcome to the madhouse!  Your query is in the close queue because it's been flagged as a duplicate.  Please check out the linked query to see if that answers your question.  If not, please edit your query in order to clarify why it's different and what it is you're looking for that isn't addressed in the other question.  In the mean time, please study the [tour] and the [help] so you can get a good idea how this forum works!
Answer: Hydrogen will burn at only 4% concentration, but you will need 18-60% concentration for an explosion. However, you will not reach this limit unless your creatures are in an enclosed space. Hydrogen is much lighter than air and will simply float away before you get to this level.
With storms raging, the excess hydrogen may increase the flammability of objects, but ultimately all of that will wind will only further dilute the already diluted hydrogen gas.
Answer: Frame Challenge
As pointed out in the comments, free oxygen or free hydrogen cannot stably exist in an atmosphere dominated by the other gas.  Something less reactive, however, has possibilities.
Enter methane.
The Fire Swamps
Due to distance from the solar system's primary star and a thick, water-rich atmosphere, temperatures on Flareworld are remarkably consistent, resulting in a belt of swamps reaching from high to low latitudes all around the planet.
Dominating a particular strata of those swamps is a variety of bacteria which aggressively breaks down dead plant matter, excreting methane at a biologically astonishing rate.  These bubbles of methane build pressure beneath the surface of the swamp, occasionally breaking the surface with a distinctive "popping" noise.  Mostly the bubbles contribute to the insulating atmosphere of the planet, but the frequent lightning storms often ignite "methane bursts" with predictably spectacular effects.

(Whether the limited seas on this planet are populated by Shrieking Eels is quite a different story.)
Comment: Conversely, the Hydrogen-Methane option allows for a methanogenic biology for native organisms. It would not produce firestorms however.


Access Adapter items of Recyclerview

Question: I'm using Recyclerview to show a list. I want to delete some items like IOS. In my listview template I have added a button to delete item which is invisible by default. In my activity I have another button attached at bottom (Not part of listview) and on tap of this button I want to make all delete buttons of listview visible.
My Question is how can I get reference to all delete buttons of listview in activity and is it the right way to do this?
Thanks
Answer: In your question title you say RecyclerView, but in your text you say ListView.  The solution is similar either way, but it's best to be perfectly clear what you're doing.
In either case, there are at least two different solutions.
First, you could use a boolean flag to determine if all the the item buttons should be showing or not.  You check this flag at the time the item view is inflated or created and toggle the button accordingly.  If the boolean flag is ever changed, the easiest thing to do is tell the RecyclerView/ListView that the underlying data has changed and to redraw all the views.  Call notifyDatasetChanged on the adapter.
The other thing you can do at the time the item buttons should change is iterate all the visible item views, find the button, and change its visibility.  With RecyclerView, you can do this, and with ListView you can do this.
Answer: Assuming you have ViewHolders set up, you already have references to all the buttons in your list. All you have to do is to make them visible for every item in the list with a simple loop.
In case you haven't implemented ViewHolders I suggest you check out the documentation and take a look at some simple tutorials on how to use them.
On a side note. If I understood correctly you're making a bottom tab for your app and since you referenced iOS I gotta say this; Remember that Android and iOS are two unique operating systems with their own ways of handling things. Check out Googles pure Android documentation.

Access Adapter items of Recyclerview


Smart Card (SIM) clocking requirements

Question: I'm trying to implement a SIM card interface using TI TM4C123XL. I have a question about a clock. TI MCU seems to provide possibility to interface smart cards but don't let me multiply clock without multiplying baud rate. So it seems to me I will have to generate the clock using timer myself. So, how precise should a clock be? Should clock be synchronised with data? If so, how? What is its purpose?
Answer: First, everything is specified in ISO7816-3. You should really read it (I won't provide any links because the standard is not free, but you can still easily find it on the web). Now, regarding your specific questions:
Yes, you need to generate the clock that will be applied to the CLK pin. This clock does not need to be accurate. There is, however, a maximum and minimum value specified in the standard (1MHz min and 5MHz max - see chapter 5.2.3).
Yes, the clock needs to be synchronized with the data. At startup, there should be a ratio of 372 between the CLK frequency and the baud rate. Then, you can negociate higher speeds using the PPS protocol (this allows you to change this ratio, and also eventually use clock frequencies above 5MHz).
The original purpose of this clock was, basically, to be used as the main clock for the MCU. Smart cards were invented at a time when it was impractical to embed an internal oscillator within such a small MCU, so there had to be an external clock source. Now, most smart cards chips embed their own oscillator, because they can work at much higher speeds than the provided 1~5MHz clock, but the external clock is still used for synchronization of the communication (just because the standard requires it).
Comment: I've already succesfully finished this project
Comment: @Artūras Jonkus: maybe this is a useful link: http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-3.aspx
Comment: At first I couldn't find this specification, only the priced ones. A bit more research worked, however, thank you.

Smart Card (SIM) clocking requirements


Working RAID 1 returns "ERROR: pdc: wrong # of devices in RAID set"

Question: I'm using Ubuntu GNOME 16.04.1 LTS 64-bits.
I have made with mdadm a RAID 1 with 2 2-TB-disks for normal storage (without any OS nor bootloader), which are /dev/sda1 and /dev/sdb1 (both with exactly the same partition size: 1.8 TB). The / partition is in /dev/sdc1 so I don't think it will affect.
Both seem to work perfectly since I have stored about 120 GB without any problem, cat /proc/mdstat still returns this:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md127 : active raid1 sda1[0] sdb1[1]
      1932603392 blocks super 1.2 [2/2] [UU]
      bitmap: 0/15 pages [0KB], 65536KB chunk

unused devices: <none>

The problem is, that every time I run update-grub, it returns these "ERRORs":
ERROR: pdc: wrong # of devices in RAID set "pdc_cjdebbggeg" [1/2] on /dev/sdb
ERROR: pdc: wrong # of devices in RAID set "pdc_cjdebbggeg" [1/2] on /dev/sdb

I wouldn't like to lose any of my stored data, so... What should I do? Should I leave them as long they seem to work fine? Or mark /dev/sdb1 as "fail", detach, format somehow and reattach?
Thank you in advance.
Comment: Where is grub installed?
Comment: @ElderGeek GRUB was installed in `/dev/sdc`, an independient drive
Answer: It sounds like its complaining about just having the wrong number of devices in your RAID array. RAID 1 is simply mirroring a single hard drive. Can you reinstall and rearrange things so you have a single disk being mirrored to the second?
Comment: I have just installed it, with only 2 devices in RAID 1. And it actually is mirroring the first one to the second, it is working fine. But the error is still there.

Working RAID 1 returns “ERROR: pdc: wrong # of devices in RAID set”


What plugin development paradigm differences have occurred between version 3.5 and now?

Question: I have books that are not at the current version of WordPress, but they might still be of some value.  If I learned to develop on 3.5 or 4.0, for example, but later on 4.x+, would it be completely different to work on the newest version?
Comment: But, if you really don't want new books, I'd suggest working on the latest version of WP using your old books and work out what's been updated or changed as you go.  The books on my bookshelf are still a good introduction to learning to code for WP the right way even though they deal with version 3.0.
Comment: @AndyMacaulay-Brook I thought it might be too broad, but I didn't know another way to ask this type of question.
Answer: This is a pretty broad question, but I will still try to answer it.
WordPress is a mature platform so you won't see many changes between 3.5 and the current version that would require you to learn from scratch. The basics of WordPress are still the same with some additional features that will make your life easier added since 3.5. You might stumble upon a function call or action/filter hook that has been deprecated, but there aren't many of them and, as long as you develop with WP_DEBUG enabled you will be fine.
WordPress books or online courses are a good starting point to get a grasp of basics (how the loop works, templating hierarchy etc.) and these haven't changed. Beyond that, WordPress Codex is your best friend and, regardless of WordPress version, you will spend most of your time there. Just remember to always use/develop the most recent version of WordPress.


what is the mathematical problem in each block which is difficult to solve?

Question: in blocks page it says each block has a solution to solve difficult mathematical puzzle, what is that difficult mathematical puzzle?
Comment: related: [What exactly is Mining?](http://bitcoin.stackexchange.com/q/148/5406)
Answer: That difficult mathematical puzzle is finding a block that can legally follow the previous block. To follow the previous block, a block must meet a set of requirements. First, it must contain the hash of the previous block. That means you can't even start solving the problem until the previous block is found.
The key one is that the hash of the block must meet a target. For example, the hash of a recently-found block is:
<code>000000000000000049f4701e8ac6dc62abd4a951363535697f1553963429a28e
</code>
Notice all those zeroes at the beginning? You would have to try quadrillions of candidate blocks before you find one with a hash with so many leading zero bits.
Answer: There is no 'problem' or 'puzzle' that's being solved. It's merely a search for some pseudo-random value that is kind of meaningless by itself, it just serves a specific purpose within the context of Bitcoin.
You can think of it as an artificial lottery of sorts. Everybody who participates tries to guess a number. Whoever is the first to guess right, wins the block and receives the prize in bitcoins, and the lottery moves on to the next round. More participants means more numbers to choose from, so the average time it takes before somebody guesses a winning number remains at 10 minutes.
Again, this process is completely meaningless by itself. It's just an approach to enforce an effort requirement, so that nobody can claim an alternative blockchain without doing at least the same amount of work as the rest of the network. This is the way the trustworthiness and non-ambiguity of the transaction history is secured.
Answer: Using SHA256 to hash a string of data is easy, but you can't predict what the hash will be. In the case of bitcoin and it's derivatives, you are trying to find a block header which has a hash below a certain number, represented by the difficulty (more info on this: https://en.bitcoin.it/wiki/Block_hashing_algorithm)
Here is a SHA 256 hash calculator if you'd like to try hashing random bits of text and see how many 0s you can get in the front: http://www.xorbin.com/tools/sha256-hash-calculator
It's tough! Thank goodness we don't have to mine by hand anymore!


how to add a "Search" section to People And Groups?

Question: When you want to give permissions , you go to Site Settings >> People and Groups.. And you will see the groups. But there is no search section. When we want to  search a group , we are getting group by name. But how can we add a search panel to find what we search in website?
Answer: There is no such functionality in sharepoint to search something in peoples and groups, you have a option to search a user or group to check whether they exist in sharepoint and what permission they has. by using site setting -> under Users and permissions -> Site Permissions -> on ribbon you can see check permissions.
If you want, you can perform this action using powershell.


changing current directory from child process

Question: How would you arrange for a shell script to be executed in a child process, while still being able to change the current directory of the invoking shell?
Answer: You can not.
The environment of the parent shell is copied to the child process when the child is started, and from that point on, they are distinct and utterly separate. The child process will not be able to directly modify the environment of the parent.
The only way for the child to influence its parent is for it to send a message to the parent and for the parent to act on it:
<code>eval "$( bash -c 'echo "cd /"' )"  # message through command string to stdout
</code>
or
<code># message through USR1 signal triggers predefined action

trap 'cd /' USR1
bash -c 'kill -s USR1 "$PPID"'
</code>


Setting up Ubuntu and Windows 7 dual boot with preinstalled Windows 7 without Windows CD

Question: I don't have the Windows CD with me, and I don't mind making and using the Ubuntu CD, but Windows 7 is already installed on my computer.
Now I want to get Ubuntu so that I can have the Ubuntu + Windows 7 dual boot option on boot.
What should I do? Does Unetbootin fulfill my needs? If I must have a Windows 7 CD, what kind of CD do I need to make?
Answer: The UbuntuLive CD which you can download from the Ubuntu Website will give you the option of installing alongside your existing Windows 7 installation without damaging it.
It's always good to back up your data files, just in case anything goes wrong!
Answer: You don't need the Windows disk to install Ubuntu.

download the Ubuntu 64bit image from http://ubuntu.com/download/desktop
either burn it on a DVD (not a CD), or on a USB disk (via UnetBootIn or LiliUSB)
Reboot your computer on this Ubuntu disk
install Ubuntu the standard way
if any issue, follow these advice for UEFI systems


How is the queue scene rating calculated?

Question: I noticed that all rides have a "Queue scene rating" on their Overview tab. I also noticed that guests will pay about 50% more for rides with a good queue scene rating. How exactly is this rating calculated?
Answer: After lots of experimentation in sandbox mode I think that I can say this:

Every building part and scenery object has a scene value and an effect radius. These values can be vastly different, but do not necessarily correlate with price or size.
Each of these objects affects all queue tiles within its radius. The total scenery value of each queue tile is the sum of the objects which affect it.
Effect radius is limited horizontally but not vertically. That means scenery can be placed far above or below the queue and still affect it fully.
The scene rating of a ride is the average of all tiles of its queue.

That means in effect:

Rides with short queues are easier to style than rides with long queues
Compact and winding queues gain more score from each tile than long, stretched ones.
Placing scenery very close to the queue is good for two reasons. First, more scenery objects can affect the queue and second, each object will affect more queue tiles.
When you don't care at all about aesthetics or realism, you can move all the scenery exactly below the queues and a hundred meter below ground.

Update Version 1.1.3: While the patchlog says that "Various improvements have been made to how guests assess ride queues", none of these seem to have invalidated any of the above points.
Comment: That's interesting that there is no vertical restriction for the effect radius.
With regard to the queue styles, do you mean that an "S" queue will give more score than an "I" queue of similar height, i.e 3 tiles straight?
Comment: @BanhMiDacBiet When you place the scenery inside the bends of the s-curve, then the score will likely be higher.
Comment: Ah, because then it'll "touch" every queue tile around it. In time someone will most likely find optimal queue scenery placement in relation to scenery objects. But that's no fun.
Comment: Not sure if it's correct or not but I'd heard or got it into my head that the jewel treasure chest is the most valuable scenery you can place in a queue.


Can anyone suggest some gems/libraries to build a Facebook game using rails?

Question: I have started to explore the world of developing Facebook games. I want to start off with what I know ie Ruby on Rails. ( I dont want to use flash)
Can Facebook games be built using RoR? Is there good game engine to start off building Facebook games? Can anyone suggest some gems and techniques?
Answer: facebook sdks
This is a link that will provide you sdks that you can use for facebook app.
If you want to create any app that wont be needing any user info then you can use absolutely any programming language.Because facebook app is just a iframe embedded in fb.
But if you access use data in order to use in your app then you have to use sdks provided by fb.
Comment: I am not worried about connecting with FB.. My question is how to kick start game development on the server side.. for eg Game engines, Rule engines.. ect..


Why can Superman break the kryptonite handcuffs in Injustice?

Question: Kryptonite makes Superman weak, so why was he able to easily break the cuffs with kryptonite on them?
Comment: Could you add the exact issue number and maybe a screenshot as well? I haven't read them all.
Comment: how can he lift an entire landmass made of kryptonite in the superman returns movie?
Comment: Regime Superman commissioned the [5-U-93-R pills](https://injustice.fandom.com/wiki/5-U-93-R) that temporarily give humans Kryptonian-level strength and durability. Perhaps these pills (or something similar) can boost the power of a weakened Kryptonian.
Answer: Kryptonite is a crystalline material, and has consistently been shown as such.
Crystals and crystalline materials tend to have great amounts of strength in some respects while being astoundingly fragile in others.  It's entirely possible that the kryptonite cuffs were improperly made, perhaps being rushed into production when Superman needed to be restrained.
Even with his strength reduced to levels more in common with a relatively strong human, it's possible that he was able to simply exert enough strength to shatter the material.  Crystals tend to have poor shear strength, and constructing a circular object out of crystal would seem likely to leave quite a bit of weakness, especially since kryptonite seems to be fairly brittle.
Answer: It may be that not all Kryptonite is created equal.  Some may be "industrial strength", other samples not as powerful.  Suggestive of that possibility is a scene in Adventure Comics 372, in which Lightning Lord, of the Legion of Super Villains, is bombarding Kryptonite with Lightning in an attempt convert it into "an even deadlier variety.  Also, while I can't cite a specific issue but I do remember a Superboy story in which he intentionally exposed himself to Green K to build up an immunity to those specific pieces to use them later against Kryptonian villains.  Perhaps the cuffs were made of pieces that he had already been exposed to.


You may now start monero-wallet-cli. What should do I next?

Question: My monero says  "You are now synchronized with the network. You may now start monero-wallet-cli" then I started "monero-wallet-cli" but it shows Starting Refresh...
I tried to start mining with 'start_mining' command but it says insert wallet address <addr> [<threads>]
I have my wallet address, I tried to copy and paste but it doesn't work, and what is THREADS? How check my wallet is correct to mined?
What commands need to do next?
Comment: try downloading the gui wallet https://getmonero.org/2017/03/29/monero-gui-beta-2-released.html you can run a node, use the wallet, and mine all in the same place without using commands. THREADS=the number of threads your cpu has which can increase mining performance
Answer: I was need to start my wallet 1st and then typed: 'start_mining 4'
It solved my problem started mining with using 4 CPUs, don't need add command from 'monerod'


Can I place hi-res pdf's into InDesign and export for printing?

Question: I am placing high resolution pdf's into my InDesign doc. The file size of these pdf's are about 60MB. Once I export a X1A PDF from InDesign the file size is around 4MB. My question is will these print fine, why is the file size so small.
Comment: Yeah it should render OK - what is the nature of the pdf and the intended output, are you exporting to hires (300dpi print file?)
Answer: In general...
InDesign treats placed (linked) PDFS the same as it does placed images. It references the original file upon output, then applies any in-applications transformations which have occurred, such as scaling, rotating, etc.
If your PDF is of print quality, and you haven't used any unruly transformations to the placed PDF in InDesign - such as enlarging it 200% - then yes you can use high quality PDFs and they will output as high quality. In fact, if the nature of the PDF is vector, then even enlarging it will not degrade its quality.
I often place reader-spread PDFs in a new InDesign document to create printer imposition. It's so much easier much of the time.
All of this, of course, depends upon the quality of the original PDF. You can't create a press-ready PDF from InDesign is you are placing web-resolution PDFs. The same rules or guidelines for general image quality is true for PDFs as well.


Backfeeding generator with solar

Question: I'm connecting a 30 amp double pole breaker into my panel to run a generator. I'm also putting in an interlock kit for the main 150 breaker. I have solar no breaker in the panel. Just line taps. Do I need to turn the solar system off when running on generator power? I'm just concerned when the grid power returns. If I leave the solar alone it should go back to the grid? Till I stop the generator and switch back the interlock. Does this sound right? Any comments will be appreciated... Thank you
Comment: Not really, cause my solar don't have no breakers in the panel.. but thanks for reading my question and responding
Answer: It sounds like you have a grid-tie solar system that uses vampire taps on the incoming service wires.  I'm not a fan, but okay.
Since the solar will be on the utility side of the main breaker, and since you say you are using a generator interlock so the main must be off while on generator, the solar will be connected to the utility side and will not talk to the generator.
Regardless, the solar isn't going to talk to the generator even if it was on the generator side.  There is a standard all grid-tied solar inverters must meet, called UL 1741.  It is paying close attention to power stability, because it must quickly disconnect if the utility grid goes away.  It will not power up on a generator because generator power isn't stable enough.  There is a special type of inverter called a grid-forming inverter able to create that stable power and trick the panels into powering up.  Such an inverter requires a battery or it won't work.    But nobody who's into generators is into inverter+battery+solar, so it's a non-seller.
Comment: Thank you very much.  Your comments are what I was thought.  Just making sure. (And you just did)  thanks again for your thoughts.
Answer: We used Trace inverters that would control between solar PV input, bring in generator input, output to the loads we needed and charge the battery bank as needed, or draw from the battery bank if required.
Oh and some of our "generator" input was from hydro ie 3.5kW and we also had wind turbines...
Expensive though but good kit - no affiliation just a happy user...
Link to an example: https://www.unitron.com.br/catalogos/trace-series-inverter-charger

Backfeeding generator with solar


Why aren't all rocks in space orbiting bigger rocks?

Question: Why do only big rocks (planets) have satellites, and not small ones? Why doesn't cosmic dust orbit rocks that are many times heavier than the dust grains? If dust is still too heavy then what about molecules, atoms, or any particle for that matter? The mass difference should be millions of millions times; isn't it enough for orbiting? The Moon is 1% of the Earth's mass, yet we don't see 1kg rocks orbiting 100kg ones.
Answer: I want to expand a bit on David Zaslavsky's point #1: "A random dust grain probably won't be going at the right velocity to be captured into orbit around a bigger rock (like an asteroid)." Without the assistance of a third body, it's actually impossible for an object to be gravitationally "captured" in an orbit by another: if it wasn't already in orbit before, there's no way for it to start orbiting.
The reason is just conservation of energy. If the object wasn't already in an orbit, then it was moving too fast, given its distance, to be in an orbit. (To put it the other way around, it was too far away, given its speed.) Even if the little guy was moving in just the right direction to come close to the big guy, it won't be captured: it will move in on a hyperbolic path, approach the other object once, and then fly away again, simply because it has too much energy to be captured. The only way to produce an orbit is for a third body to interact with the system and siphon off some energy at the right time.
That can happen, but unless the density of things flying around is high, it's rare. And if the density is high, then subsequent collisions, which will disrupt the orbit, will also be common.
Answer: The mass difference has practically nothing to do with whether two things can orbit each other. You can have two objects of the same mass in orbit (e.g. binary star systems), or you can have two objects of wildly different masses in orbit (the Earth and a piece of space junk), or anything in between. There are a lot of factors involved, for example:

A random dust grain probably won't be going at the right velocity to be captured into orbit around a bigger rock (like an asteroid).
When dust grains do orbit asteroids, there will probably be a lot of them, so they're going to collide with each other and lose energy, so they fall out of orbit rather quickly.
Planets tend to be pretty isolated, so things can orbit them without getting disturbed by other planets. In contrast, smaller rocks like asteroids are often found in large groups, so a dust grain couldn't orbit just one - it would also be affected significantly by the gravity of other asteroids in the vicinity.
Comment: OK, David, I disagree that you have captured the main point. The OP was asking about small bodies orbiting 100-kilogram bodies. You know that this is impossible and has nothing to do with the 3 details you wrote. The gravitational acceleration coming from 100-kilogram objects is so tiny that the orbital speed would have to be essentially zero for a reasonable radius comparable to 1 AU or similar solar-system-like distances, or smaller. 100 kilograms is $10^{22}$ times lighter than the Earth, so the required orbital velocities for the same $r$ are $10^{11}$ times lower.
Comment: The gravitational influence of a 100 kg body 1 AU from the Sun, its Hill Sphere, is about 40 meters; not trivial. However, as Luboš pointed out, a dust particle would need a near-zero relative velocity to orbit it.
Comment: @Lubos: no, it's not impossible for something like a 1 kg mass and a 100 kg mass to be in orbit. As you said, it would just require an unreasonably low velocity, which is exactly what point #1 is about.
Comment: Not only is the sphere of influense very small, and the orbital velocities very small, but the perturbation needed to knock it out of orbit is also very small. Small bodies are affected by solar radiation pressure (and the radiation pressure of reradiated heat), and these tend to push them around. That means the stability of tiny objects orbitting other tiny objects is poor.
Answer: <code>An intriguing picture of small solar systems comes to mind.
</code>
Nevertheless,  Luboš is correct that for any recognizable system the velocities of capture would be so low as to make the question moot.
As a rough example , equating centripetal gravitational with centrifugal forces, a particle orbiting a 100 kg mass 100 meters away from it would need a velocity order of magnitude of ten microns per second, something that would hardly be observable: the orbit of 628 meters would take 1.7*10^4 hours to complete.
In any case, in real life in our space around the sun it is a many body problem, as David suggests above, so statistical and chaotic behaviours will enter the problem and destroy any small scale regularity. Only in deep outer space outside the sun's field such an orbit might be undisturbed and observed by a patient observer :).
The reason for such small velocities is the weakness of the gravitational constant G. The velocity of a stable orbit is proportional to the square root of G. The mass of the orbiting particle does not matter as it is eliminated in equating  centripetal and centrifugal forces.
Answer: The reason why we don't see dust particles orbiting comparably tiny rocks within the solar system is just that the rest of the solar system interferes due to how slow such an orbit has to be:

the presence of other massive bodies perturbs the orbits of dust particles.
the solar radiation deorbits particles smaller than about 1mm.
the solar radiation pressure is a significant force for particles smaller than 1µm, also destabilising orbits that slow.
it's simply really difficult to observe any occurrences of such orbits that do exist (temporarily) within the solar system bounds, both because the systems are tiny, and because they are slow.

There is no reason why such small-scale "planetary" systems can't exist in the interstellar space.
Answer: This is a very late answer, but no answer has been selected yet.

Why do only big rocks (planets) have satellites, and not small ones?

Almost 100 asteroids have satellites, and some of them are rather small. For example, asteroid 54509 YORP has a mass of  only 1×1010 to 4×1010 kilograms. That sounds like a lot, but that's a body with a mean radius of only 120 meters. I mentioned 54509 YORP because it appears to be a confirmation of the YORP effect. Radiation pressure made the asteroid spin faster and faster until it split into a couple of pieces. Another proposed source for those satellites of small bodies is collisions. Yet another is capture, but that is rather difficult, particularly for small bodies.
Whether these satellites of small bodies are stable over millions and millions of years is a different question. There are a number of reasons to think that they are not.

Small bodies have small mass and hence a small gravity field.
There are two key concepts to look at here, the Hill sphere and the Laplace sphere of influence (SOI). The two concepts give different indicators of the stability of the orbit of an object orbiting a small body that in turn is orbiting a larger body. Assuming a circular orbit about some larger body (e.g. the Sun), the Hill sphere is given by $a\left(\frac m {3M} \right)^{1/3}$ while the SOI is given by $a\left(\frac m M \right)^{2/5}$. Here, $a$ is the orbital radius, $m$ is the mass of the smaller body, and $M$ is the mass of the larger body. An object of 106 orbiting the Sun at 3 astronomical units (the asteroid belt) has a Hill sphere of 2.5 km and a SOI of 86 meters. Either way, that's rather small radius over which an even smaller rock can have a stable orbit.
Small bodies have small mass and hence deviate strongly from being spherical.
The recently visited asteroid 25143 Itokawa and comet 67P/Churyumov-Gerasimenko (both shown below) illustrate this point perfectly. These aren't at all spherical. A better description is a lumpy Russet potato. The non-spherical nature of the gravity fields of these small objects means that the orbit of a body orbiting these small bodies will not be stable. For a marked account of this effect, read the article Bizarre Lunar Orbits from nasa.gov.

25143 Itokawa, image credit JAXA, via Wikipedia commons

Comet 67P/Churyumov-Gerasimenko, image credit ESA/Rosetta/MPS for OSIRIS Team MPS/UPD/LAM/IAA/SSO/INTA/UPM, via nasa.gov

Why doesn't cosmic dust orbit rocks that are many times heavier than the dust grains? If dust is still too heavy then what about molecules, atoms, or any particle for that matter?

Extremely small particles are ejected from the solar system thanks to solar radiation pressure. Slightly larger (but still very small) particles spiral inward into the Sun thanks to the Poynting-Robertson effect. Slightly larger particles, up to small rock size, will spiral in or out thanks to the Yarkovsky effect. Once the Sun lit 4.6 billion years ago, solar radiation and the solar wind have been clearing the solar system of tiny pieces of stuff. New tiny pieces of junk are continuously created thanks largely to collisions in the asteroid belt. We see the inward-spiralling dust that results from these collisions as the zodiacal light.

The mass difference should be millions of millions times; isn't it enough for orbiting? The Moon is 1% of the Earth's mass, yet we don't see 1kg rocks orbiting 100kg ones.

If you haven't done so already, read the article referenced above on Bizarre Lunar Orbits. What happened to PFS-1 and PFS-2 is truly bizarre.
Understand that and you'll be well on the way to understanding why superclusters can have multiple galaxy groups "orbiting" them, galaxy groups can have multiple galaxies "orbiting" them, galaxies can have multiple stars orbiting them, stars can have planets orbiting them, and planets can have moons orbiting them, but moons cannot have satellites orbiting them. Planets and asteroids are where the hierarchy ends.


Using a relay to control a lamp

Question: Okay, so I'm using an Arduino Uno R3 and I wanted to start of my own home automation project. I have a 4 channel 12V relay board and I normally connect it to a 12V 500mA adapter. What is the maximum wattage bulb (or CFL) that I can power with this configuration?
Comment: The ampere rating should be printed on the relays. `Watts = Amps x Voltage`
Comment: @Gerben. Thanks for the heads up! It says 5A 240V AC and the coil is 12V DC.
Comment: Than that's 1000Watt if you're on 220V AC, 500Watt if your on 110V AC (e.g. US). Good luck finding a 1000Watt CFL :-P
Answer: Unless you feel like starting a fire, none. Find a 220V 2A relay with a 5V coil and use that instead, switching the hot wire and not the neutral.
Comment: Huh? If the OP builds a circuit to switch 12v (with a flyback diode) why would the relay board in question start a fire?
Comment: @DuncanC: There aren't many CFL bulbs that run on 12V, and the asker hadn't given the contact specifications yet.

Using a relay to control a lamp


Find matrix of bilinear form on Lie algebra?

Question: I have a bilinear form $$\sigma_V:L\times L\rightarrow \mathbb{k}$$ $$\sigma_V(x,y)=tr(\rho_V(x)\rho_V(y)) \forall x,y \in L$$
and am looking for the matrix of this form. I am in the algebra $$L= \mathfrak{sl} _2(\mathbb{k})$$ in the standard basis $(x,y,h)$ and the representation $V=\mathbb{k}^2$ which is the standard representation of $\mathfrak{sl}_2(\mathbb{k})$. I know $\sigma_V$ is symmetric and L-invariant but am not sure how to go about finding its matrix? I found lots of information on the Killing form but as $V$ is not the adjoint representation it seems this is not the Killing form. Am I wrong? How do I go about finding the matrix?
Comment: The standard representation can be regarded as a map $L \to \mathfrak{gl}(V)$, and so we can view its images as endomorphisms of $V$.
Answer: For a simple Lie algebra, any two non degenerate invariant bilinear forms are multiples of each other. Indeed, the Killing form is just $4$ times the trace form for $\mathfrak{sl}_2(K)$. In general we have $tr(ad(x)ad(y))=2n \cdot tr(x)tr(y)$ for the Lie algebra $\mathfrak{sl}_n(K)$. So the matrix of $\sigma_V$ above is just the matrix of the Killingform multiplied by $\frac{1}{4}$. This can be verified directly, of course, with $\rho(x)=\begin{pmatrix} 0 & 1 \cr 0 & 0 \end{pmatrix}$, $\rho(y)=\begin{pmatrix} 0 & 0 \cr 1 & 0 \end{pmatrix}$ and
$\rho(h)=\begin{pmatrix} 1 & 0 \cr 0 & -1 \end{pmatrix}$. For example, $\sigma_V(x,x)=tr(\rho(x)\rho(x))=tr(0)=0$, $\sigma_V(x,y)=tr(\rho(x)\rho(y))=tr(diag(1,0))=1$, etc.


Question about Servers, Ports and banner grabbing

Question: These quarantine i took some networking lessons because i had the time to understand them properly. However, i have some questions and curiosities. First one: Is it possible to banner grab a service other than http or ftp, for example VNC. I remember i seen somewhere on a blog, a pentester was searching for VNC servers without authentication and he passed the parameter "authentication=false" to the shodan engine. Now where does shodan got that in the first place? From the banner, or from somewhere else?
Answer: A banner is simply metadata about a service. It can contain whatever information you decide it should contain. Shodan decided that for VNC it includes information about whether the service has authentication disabled. For HTTP it means headers, for FTP it means welcome string and results from running a few commands, etc. You can generate a banner for any service but the content will be different based on who generated the banner and the type of service.


how to bulk add one line in the first paragraph of all posts

Question: I want to add a sentence at the beginning of all posts of content directly into the post_content WordPress database. How do I? Either through the function.php or the MySQL command.
Answer: Rather than insert it directly into the db, why don't you add it to the content when displayed using the_content filter?  That way, you don't make any db changes you might want to undo later.
add_filter( 'the_content', 'my_extra_line' );
function my_extra_line( $content ) {

    if ( "post" == get_post_type() ) {
        // If the content is a post, add an extra line to the content.
        $content = "My extra line of content. " . $content;
    }

    return $content;
}

Comment: thank you for the answer, I just want to know as basic knowledge if later it is needed. if there is a way please tell how
Answer: I'd go for solution posted by @butlerblog - it's a lot easier to manage and change in the future and it's better WP practice.
But... If you're asking... Here are the ways you can do this:
1. WP way:
function prepend_content_to_posts() {
    $to_prepend = 'This will be prepended';

    $posts = get_posts( array( 'posts_per_page' => -1 ) );
    foreach ( $posts as $post ) {
        wp_update_post( array(
            'ID' => $post->ID,
            'post_content' => $to_prepend . $post->post_content
        ) );
    }
}

Then you'll have to call that function. Be careful not to call it twice - it will add your content twice in such case.
2. MySQL way:
UPDATE wp_posts
    SET post_content = CONCAT('<YOUR STRING TO PREPEND>', post_content)
    WHERE post_type = 'post' AND post_status = 'publish'

Be careful to change table prefix according to your config.
Comment: Thank you for sharing your knowledge, I have tried it and managed to add the first paragraph through mysql. but through the function has not been successful because the syntax error appears, unexpected ';', expecting ')'. this knowledge might be useful to me in the future. for now it seems like your suggestion and @butlerblog are the current solution. thank you
Comment: @LinkNetwork Ah, thanks for your notice. You're right, there was a typo in PHP code. I've corrected that and both solutions should work now :)


Unclear use of the word "our"

Question: When we say "Our team worked hard", then is it expected to refer the speaker + his own team OR the speaker  + listener + their team together? Because in both these cases OUR is common word to be used!
Answer: The ability to distinguish between the inclusive we and the exclusive we is referred to as clusivity and is a feature lacking in English.  Without additional context, you're correct that it's impossible to determine whether you intended to include the listener in the pronoun or not, although in many cases knowledge of the basic scenario you're describing can be enough to clarify (e.g. if you and the listener were never on a team together or at least a hard working one).  However, should it fail to be clear based on such knowledge you're pretty much stuck either adding in a clarifying phrase or simply avoiding the use of our by spelling out who you mean.
Answer: It depends greatly on context. If the sentence were preceded by a statement defining the team, or including/excluding the listener, then this would be clarified, but otherwise, the phrase is unclear.
In what situation was the phrase used?
Comment: No specific insident as such. But I was just thinking that whenever we use this phrase without any context, then we need to explain more to clarify. e.g. if I am talking to my x-colleague and I want to tell him that "our team won an award!". What he may think is - the team when he was working with me won the award. And I may mean that our (me and my new team) won it. So I need to explain a bit to convey the message properly.
Answer: If you want to be sure to exclude the listener, you can say "My team" instead of "our team".
Comment: That's a good suggestion.. but what if it is about 'efforts'? I cannot say my efforts here, as it is not only my own.

Unclear use of the word "our"


Locked Balance of an Account in Acala

Question: Is it possible to retrieve the locked balance of an account from the account data queried from api.query.system.account? If not, what is the right way to do so? I'm looking for the stash locked in bonds, democracy, election and vesting.
Answer: The locked values are stored in balances.locks and the vesting information in vesting.vesting.
The locks has identifiers that point to the specific pallets that performed the locks.

Locked Balance of an Account in Acala


Is a Prologue a Chapter?

Question: Many agents ask for the first 3 chapters. Is a prologue a chapter? So send the prologue & chapters One & two?
Comment: Hi Bill, welcome to writing.se! Take the [tour] and visit the [help] for more information. This is an excellent first question. Thanks for participating and happy writing!
Answer: Your best to confirm with the particular person as there isn't full standardization.
From the submissions guidelines of the publisher Edge Science Fiction and Fantasy, they consider it separate.

What to Submit

Required Extras (see below)
Query/Cover Letter (see below)
Synopsis (see below)
Title Page (see below)
Prologue (optional) (see below)
Chapters One, Two, Three (do not send more chapters) (see below)
Answer: The best way is to clarify this question with an agent you work with. According to the majority of editorial guidelines, a prologue is not considered a chapter, so you should send chapters 1-3.
Unfortunately, there is not a general standardization. Publishers usually provide their own submissions guidelines.
Comment: As they are, by the question, submitting to agents; they don't have one they are working with, I imagine.

Is a Prologue a Chapter?


Can't format my SD Card in my Android

Question: I'm having this weird issue that I can't find any solutions online. A few days ago my SD card was showing that it was corrupted and I had to format it to get it to work, losing all my data (which was fine). It worked well after formatting (I formatted it on my phone itself). Today it began to show as 'Corrupted' again. Every time I try to format it shows this java.util.concurrent. TimeoutException: Thread Binder:2980_4 gave up waiting for partitionPublic after 180000ms error.
Can anyone help me fix this? It's a Samsung 16GB card and I've been using it for almost 2 years without any issues until now. Also my phone's a Samsung Galaxy J7 Prime. OS: Oreo 8.1
Comment: The tray is fine. So are you sure the card is unusable now?
Comment: if not a loose tray causes this, card is probably end of life (emmc wear-out)
Answer: Got similar problem a few days ago after upgrading to LineageOS 17.1.
Best option to be sure if your card is corrupted or not : Put it in your PC (Windows, Mac or Linux, doesn't matter) and try to format it. If it fails from computer, consider SD card is corrupted.
If you do not have a computer or an SD card tray in your computer, try to root your phone and format the card using Aparted app (available from Play Store, but requires root)
Good luck with this
Comment: Thanks for the detailed reply bro!. I'll let you know when I can get this done.

Can't format my SD Card in my Android


What does initiative do?

Question: I am playing Knights of Pen and Paper, but i do not know what initiative does and how it affects battles. What is initiative and what does it do?
Answer: Initiative determines fight order. The higher the initiative, the earlier that character gets to act. There might be a random component as well, to provide some variation.
Comment: There *is* a random component for the record.  What it is I am not sure, but I've seen my highest initiative people go last, the order is not the same every time etc.

What does initiative do?


How Do I Reset a Tripp Lite PDU

Question: I am working on reselling a tripp lite PDU for my company, and I need to know how to reset it to default factory settings. In other threads it says to push the reset pin, however there is no pinhole on the unit to push. Please if anybody has any ideas I am working with a Tripp Lite PDUMV30HVNET.
Thanks!
Answer: The reset pin on that unit is near the panel with the Ethernet and Serial interfaces. See the manual.

If you previously had connectivity to the unit, you can also do this from the web and serial interfaces. But in the end, it's a PDU. Is there any company-specific information contained within?
Comment: That is the thing... There is no pin on the unit. The manual that is on the product page shows an incorrect image for the ports on the back. So no, there is no reset pin which I can use. Got any other ideas?
Comment: I'd 1). Call Tripp-Lite support or 2). grab a serial cable and perform a software reset or 3). just sell the unit as-is... Let the new owner figure it out.
Answer: User manual for PDUMV30HVNET
Assuming this is your unit, there looks like a little reset button above the Config port.  Barring that working (try holding it in with a paperclip for 20 seconds), you should be able to connect a console cable into that Config port, and connect using a terminal.
Details:

Use the console cable. Plug into a machine and launch a terminal program. Reboot the PDU. When you see the device post it will display the config and allow you to press a key within 5 seconds to change the config.
The default Root Password is TrippLite.
From there you will be prompted with questions.
One of them asks if you want to Restore Factory Defaults. Say Yes.

Source here.  Good luck!
Comment: I ended up calling customer support, and they told me that I would need a proprietary cable that only they could supply to me in order to connect to said PDU. Which sucks big time. Also, there is not any company specific info on the PDU, but I work for a refurbishing center and we are attempting to reset this PDU to its factory defaults in order to resell it. Anybody got any other ideas on how I could do this while I am still missing the cable?
Comment: I had assumed that it was a standard serial (null modem) cable.  If it's not, it should be one of these:

http://www.tripplite.com/products/series/sid/777

They look to be about $10 or less.  Hopefully your business can absorb this cost, if necessary :)  Also, they seem to be widely available online, not just from the manufacturer, that's good.

How Do I Reset a Tripp Lite PDU


What happens if a change the SIM card to my phone?

Question: Will Android add the contacts of the new SIM card to my Google Account?
What else could happen?
Comment: If your contacts are in your Google account, just sync your Google account.
Comment: The Moto 5GS by default does not support saving contacts to the SIM, any contacts on the SIM are displayed in the contact list but unless you use a third party application you cannot save or move contacts to the SIM card.
Answer: You'd probably have a different phone number, and possibly a different contract/data plan for your device. If your device is SIM-locked, you might have no service at all (i.e. no calls, SMS, internet) if the SIM card is from the "wrong" provider.
Apart of that, nothing would happen: contacts on the SIM card are not synchronized with any account.


do all players win star realms pirates co-op

Question: OK, with the Star Realms Pirates of the Dark Star co-op challenge, if a player dies but at least one other remaining team member still beats the Pirates, is it a team win or an individual win? e.g. if Bob and Sally play, and Bob is eliminated, but Sally still hangs on and wins it, is it a team victory, or was it just Sally who won?
Answer: By the nature of it being a co-op then everybody wins.  I can't anything specific in those rules to say an eliminated player doesn't win so I wouldn't rule that just those surviving are winners.  It seems very against the spirit of a co-op game to try and claim you won solo unless thats specifically in the rules such as Archipelago where everyone wins/loses and if players win there is a 'grand winner' amongst them.


How to convert multipoint layer to polyline layer in QGis

Question: How can I convert a multipoint layer to polylines layer in QGis. I am looking for a tool equal as the GeoWizards (convert > Multipoint to polyline) for ArcGis.
Answer: In the processing toolbox, you can run the SAGA module Convert points to line(s).
You can choose an order column, and a separation column.
Comment: Dear AndreJ, thank you but it doesnt work. It may work for points but I have a multipoint layer that I need to convert to polylines. What I have is a  multipoint layer, with hundreds registers, where each register (each line) is a path (formed by diferent geographic points but all of these points have the same date and the same ship identification. What I need is to convert these multipoints to polylines (one polyline for date and  ship identification).
Comment: If what you have are multipoints with the same attributes, how do you define the point's order to create each polyline?


No brakes after bleeding all lines

Question: Replaced a couple of brake lines and two wheel cylinders, and been bleeding the brakes and still don't have any brakes. Is my master cylinder gone? Not sure what to do now.
Comment: Can someone answer my question about my bake issues?
Comment: How did you bleed the brakes: pressure, vacuum, or manually? Did you bleed all four wheel cylinders, starting with the one farthest from the master cylinder and finishing with the one closest to the master cylinder? Is the brake fluid reservoir now full? What do you mean by "no brakes?" Does the foot pedal go smoothly to the floor? Something else? Car make, year, and model would be useful information as well.
Comment: Were you filling the brake fluid reservoir as you bled the brakes?
Comment: Did you replace (or disconnect) the master cylinder? If so, you may need to bench bleed it before bleeding the lines.
Answer: What does "no brakes" mean - no braking power at all? Less than what you had before R&R? Same as what you had before R&R?
When a brake line is replaced and a section of brake system is thus completely dry, when you start to bleed the brakes, initially the pedal will offer barely any or no resistance as the fluid fills the empty space in the brake lines. As you are continuing to bleed the brakes (correctly), the pedal will be gradually increasing in firmness as air is purged from the lines. If you haven't experienced this, either you didn't bleed correctly or you have another problem in the braking system.
Proper bleeding procedure:

This requires two people or a power bleeder to maintain pressure in the brake system. There are various "one man bleeder" systems sold in auto parts stores - I don't know whether they work as well as two people or a power bleeder.
Any time any bleeder is opened at all, brake system must be pressurized. This means either someone needs to have their foot on the brake or power bleeder must be applying positive pressure to the system.
Bleed from the furthest caliper from the master cylinder to the closest. Which one is furthest depends on the car and its brake line layout. Consult the car repair manual.
If the car has ABS, a specific procedure generally must be followed to bleed the ABS module. Consult the repair manual for the vehicle.
As pointed out, the master cylinder is supposed to be bench bled if it's replaced. You may be able to get away without doing so but it makes bleeding the entire system more time consuming.
Verify you see air bubbles during the bleeding process.
Verify air bubbles cease coming out when you think bleeding is finished. I do this by bleeding every corner again in the proper sequence when I think bleeding is done.

No brakes after bleeding all lines


Can floor tiles be installed on walls?

Question: I am building a home and would like to install floor tiles on wall also, please let me know if it possible to install floor tiles on walls?
Comment: What kind of floor tiles?
Comment: The floor kind. ;)
Comment: Yes.. Make sure you using a strong tile backing and not plasterboard!
Answer: Yes, it is possible to install floor tiles on walls.
Answer: Yes you can use almost any tile on either wall or floor, the only things that differentiate the two would be

Texture and surface smoothness - rough tiles are made for floors to be anti slip when wet
Design and pattern - the design is often more suited to floors or walls
material thickness and strength - the stronger (hence thinner) materials are more compatible for walls since they will be lighter and less likely to fall off.  (ie porcelain or ceramic)

The important thing is that you use a wall adhesive for walls and floor cement for floors, since the wall cement will have more adhesion strength to hold up the tile.
Answer: As the The Evil Greebo said it is possible one of the factors to consider is the weight of floor tiles on wall as they are generally thicker/heavier. Hence they can be more difficult to lay on the wall.
Comment: I thought the depth of my answer should reflect the depth of the question. ;)

Can floor tiles be installed on walls?