Why does my bathroom shower have too much water pressure?

Question: I have the same shower head, nothing has changed except the pressure.  It sprays so hard that it hurts, and in 10 minutes the hot water is almost gone.
What can I do to fix this?
Answer: The simplest way to reduce pressure would be to use the water turn off valves usually located in the wall or under the floor near the shower controls. Turn both  the hot and cold shut offs back to apx half or simply turn on your shower as you would normally use it, then adjust the valves until you have a flow and pressure you like. Playing around with the hot and cold will effect the temp of the water related to your shower control settings. You may have to experiment a bit, but you can control both the max pressure and temp this way.
The other way to adjust pressure and temp on a one handle shower control is sometimes done inside the valve body. For this adjustment, you should have the installers manual. It will show you how to adjust the position of limit disks inside the valve body. These are common on newer scald resistant shower units.
Answer: If your shower pressure suddenly increased, the cause is likely to
be a problem with the low flow shower head flow restrictor.
Unscrew the shower head and look inside for a misaligned washer
or something else that looks out of place.
Also soak the entire shower head in vinegar for an hour or two.
This will loosen any deposits that could caused the washer to seat
incorrectly.  Put the washer or other device back in the shower head
and place back on the shower.  This worked very well for me and
I did not have to buy a new low flow shower head.
Paul
Answer: This happened to me. ONLY the master shower was affected. The pressure got so great, the water hurt and the wind it generated blew my shower curtain around wildly. I took off the Moen shower head and cleaned it with vinegar. Inside the shower head was a tiny little o-ring not seated all the way. I nudged it back till it was fully seated. Re-installed the shower head and all fixed!
Comment: Hello, and welcome to Home Improvement. Thanks for the answer; keep 'em coming!
Answer: Well most new shower heads have a flow regulator to meet conservation standards.  These highly impair water flow.
If you just experience a (dramatic) increase in pressure it is very likely that you flow regulator stopped working correctly.  Maybe it broke, became unscrewed, or whatever.
To stop the flow you would need to find a replacement regulator (probably from manufacturer) or just get a new shower head.


Qualify for Olympic Judo

Question: How do you qualify to participate in Olympic Judo?
How does the world ranking system contribute to a Judoka's qualifications?
What power does a country have to select its participants?
Comment: It would be good to refer to a particular country because the choosing between athletes that qualify due to world rank / competition points does differ between federations
Answer: According to this page on the 2020 Olympics:

The first way to qualify for the Olympics, is to be one of the best judokas in the world, and be among the top 18 in the IJF's rankings. All best 18 of all categories have an automatic bid to the Olympics, unless there are two athletes from the same country in those positions. In that case, the country's Olympic Committee will determine who gets the spot. Athletes who are not in the world's top 18 in their weight categories can still qualify through a continental quota.

For 2024, it looks like the same system is in place, but with a lower total of 372 judokas rather than 386.

The quotas for Paris 2024 will be allocated in line with the IJF World Ranking list during the Olympic Qualification period. It means all World Tour events held between 24 June 2022 and 23 June 2024 will impact the quota allocation. At the end of this period, for each of the seven weight categories, the top 17 countries represented in the world ranking will each receive a quota.
Following that, 100 quotas will be allocated based on continental representation. Each continent has a certain number of quota places that are allotted to athletes with the highest number of points, regardless of gender and weight category, with a limit of one continental quota per NOC.
Each continent also has one Team Invitation place. This quota place can help a team that only has five athletes qualified for Paris 2024 to qualify a sixth athlete, in order to build a team for the mixed team event.
Finally, 15 quota places will be allocated by a tripartite commission following the principle of universality.
The highest number of athletes an NOC can qualify to the Olympic Games Paris 2024 in judo is 14 (one per weight category).
Comment: In Germany, as far as I am aware, the coaching staff and ultimately the head coach decide who is going to the Olympics and other major tounaments with participation restrictions when two (or more but that is not a thing for Germany) athletes of the same weight class qualify.
Answer: An athlete competes in the International Judo Federation (IJF) world tour and accumulates points based on finish from IJF ranking.
IJF has a document describing qualification for Paris 2024.

The top 17 athletes in each weight category qualify directly, subject to the limit of 1 athlete per country.

Athletes across all weight categories and genders are ranked according to their World Ranking points, and the top athletes from continents qualify:

Continent
Men
Women
Total

Africa
12
12
24

Europe
13
12
25

Asia
10
10
20

Oceania
5
5
10

Pan America
10
11
21

Total
50
50
100

• Maximum one (1) athlete per NOC can qualify through continental
qualification across all weight categories and genders.

• If a continent fails to use its full allocation, any remaining quota place will be allocated according to the IJF World Ranking List of the Olympic Qualification period to the highest ranked athlete not yet qualified, irrespective of the continent, in the respective gender, respecting the maximum quota of one (1) athlete per NOC per event.

Team qualification: each continent can send one additional athlete for a country that can almost field a team (6 athletes) but has qualified only 5.

Host Country: the host country (France) automatically qualifies one athlete for each gender weight category.

There are 15 universality places. These are not well described, but I presume these are spots for athletes from un/under-represented countries who would not otherwise qualify for the event.

If a country qualifies more than one athlete in a weight category in the top 17, that country has to choose who goes. Recent examples for the Tokyo Olympics included:

Maruyama v. Abe There was a match to decide who went to the Tokyo Olympics.
Klimkait and Deguchi was decided by finishes at the World Championships.

Qualify for Olympic Judo


Google chart redraw/scale on window resize

Question: How do I redraw/rescale a google linechart on window resize?
Comment: this should really be a built in feature of the visualization api!
Answer: To redraw only when the window resize is completed and avoid multiple triggers, I think is better create an event:
//create trigger to resizeEnd event
$(window).resize(function() {
    if(this.resizeTO) clearTimeout(this.resizeTO);
    this.resizeTO = setTimeout(function() {
        $(this).trigger('resizeEnd');
    }, 500);
});

//redraw graph when window resize is completed
$(window).on('resizeEnd', function() {
    drawChart(data);
});

Answer: The original code by Google simply does this at the end:
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);

Changing it with a little javascript you can scale it when the window resizes:
function resize () {
    var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
    chart.draw(data, options);
}

window.onload = resize;
window.onresize = resize;

Comment: It might be worth mentioning that when you fetch "data" over ajax , triggering a XHTTPRequest on EVERY window resize 'step' might be a bit stressfull on your server, I think it would be better to somehow cache the results of the ajax request and reuse that data, but your solution works for me! +1
Comment: `window.onload = resize();` is equivalent to `resize(); window.onload = undefined;`
Comment: wasnt working for me, needed to delete old rezults from div before drawing again: $('#chart_div').empty();
Comment: Comments totally miss the point if you ask me. Is there no way to re-render the chart without re-passing `data`? The data didn't change, the window size did.
Comment: It works as you describe it when making the window bigger, but if you shrink the window you need to first empty the chart div, as Mantas D pointed out.  $('#chart_div').empty();  This will allow the browser to shrink the div, before redrawing the chart.
Comment: I like this solution. I don't like timers or recursive functions on client side, why consistently use CPU power?
Answer: Since the window.resize event fires multiple times on each resize event, I believe that the best solution is to use smartresize.js and use smartdraw(). This limits the number of chart redraw's per window.resize.
By using the provided js you can do it as simply as this:
// Instantiate and draw our user charts, passing in some options (as you probably were doing it)
var chart = new google.visualization.LineChart(document.getElementById('div_chart'));
chart.draw(data, options);

// And then:
$(window).smartresize(function () {
    chart.draw(data, options);
});

Comment: misspell "otions" -> "options"
Answer: This is the simplest way I can work out of doing this without causing too much stress to the browser:
    var chart1 = "done";

$(window).resize(function() {
if(chart1=="done"){
chart1 = "waiting";
setTimeout(function(){drawChart();chart1 = "done"},1000);
}
});

All it does is wait 1 second before the chart reloads and doesn't let the function call again in this waiting period. as window resize functions are called multiple times any time you change the window size this helps make the function only actually work once each time you change the window size, the rest of the calls get stopped by the if statement.
I hope this helps
Comment: Excellent for its simplicity.
Answer: There is no option in Google Visualization API to make Google Charts responsive.
But we can make Google Charts responsive as Window Resizes. To make Google Chart responsive there is jQuery library available at GitHub - jquery-smartresize licensed under MIT License, which has the ability to resize graphs on window resize event.
This project on GitHub has two script files :-
jquery.debouncedresize.js: adds a special event that fires once after the window
has been resized.

&
jquery.throttledresize.js: adds a special event that fires at a reduced rate (no
more double events from Chrome and Safari).

Here are two examples of responsive charts...

Responsive Google Pie Chart
Responsive Google Bar Chart

We can change the bottom padding of visualization_wrap to match the desired aspect ratio of chart.
Calculate as Height / Width x 100
For a 16x9 display it would be 9/16 = 0.5625 x 100 = 56.25%
For a square it'd be 100%

We can customize chartarea option of Google Chart to ensure that labels don't get cut off on resizing.
Answer: Redraw/rescale a Google linechart on window resize:
$(document).ready(function () {
    $(window).resize(function(){
        drawChart();
    });
});

Comment: This is really inefficient since you just have to call chart.draw(data, options); again. This will fetch all information and do repetetive and unnecessary work.
Comment: how to force redraw example on click we force to call resize function.
Answer: I personally prefer the following approach, if You can live with using addEventListener, and don't mind lack of support for IE < 9.
var windowResizeTimer;
window.addEventListener('resize', function(e){
    clearTimeout(windowResizeTimer);
    windowResizeTimer = setTimeout(function(){
        chart.draw(data, options);
    }, 750);
});

Note the use of the setTimeout() and clearTimeout() functions and the added delay of 750 milliseconds, which makes this slightly less intensive when multiple resize events fire in quick succession (which is often the case for browsers on desktop when resizing using a mouse).
Answer: I've been stuck on the same thing for days and I found out that adding an event works best.
window.addEventListener("resize", drawChart);

Just add this line after declaring your function and it will work fine.
Replace drawChart with the name of your function.
Answer: Try with these approaches
window.dispatchEvent(new Event('resize'))

Chartkick.charts["<id of chart element like chart-1>"].redraw()

Answer: Using Tiago Castro's answer, I have implemented a line chart to show the demonstration.

google.load('visualization', '1', {
  packages: ['corechart', 'line']
});
google.setOnLoadCallback(drawBackgroundColor);

function drawBackgroundColor() {
  var data = new google.visualization.DataTable();
  data.addColumn('number', 'X');
  data.addColumn('number', 'Compute Time');
  data.addColumn('number', 'Compute Times');
  console.log("--");
  data.addRows([
    [0, 0, 0],
    [10, 10, 15],
    [20, 20, 65]
  ]);
  console.log(data);
  var options = {
    height: 350,
    legend: {
      position: 'bottom'
    },
    hAxis: {
      title: 'Nb Curves'
    },
    vAxis: {
      title: 'Time (ms)'
    },
    backgroundColor: '#f1f8e9'
  };

  function resize() {
    var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
    chart.draw(data, options);
  }
  window.onload = resize();
  window.onresize = resize;

}


Can only one of the husband and wife attain moksha before the completion of seven lifetimes?

Question: It is said one gets married for seven lifetimes. What might happen if only one person of the couple attains Moksha and the other doesn't during these seven lifetimes?
Answer: As per the Kāraṇāgama, the belief about husband and wife's togetherness for seven lifetimes might be construed null & void.

Chapter 2 (dvitīyaḥ paṭalaḥ), kriyāpādaḥ, Kāraṇāgama
महादेव उवाच:
सङ्कल्पाधिकृतिस्तासां नास्ति स्वगर्येषु कर्मसु । सिद्धा
विमोक्षाधिकृतिर्न निरोद्धं हिशक्यते ॥ ६० ॥

Bhagvān Shiva said -

It is not right for a woman to do will for the deeds which are
intended to reach Heaven but for the Salvation, right is ready for
her. None can prevent so.

.......
पतिपत्नीत्वसम्बन्धो न नित्यः कल्पितो हि सः ।
नारीिनरत्वादिकमप्यैहजन्मिकमीरितम् ॥ ६२ ॥

Relation of wife and husband is not an ever-lasting—thing. That is the
thing of supposition. It is said that to be a woman or man is also of
this incarnation only.

नैव स्त्री न पुमानेष नैव चायं नपुंसकः ।
यद्यच्छरीमाधत्ते तेन तेन स लिप्यते ॥ ६३ ॥

This soul (Atma) is neither a woman, a man nor an impotent one. It
wears that and that body in which and which it dwells.

नारीत्वमैहिकं
वाऽपि भार्यात्वं कल्पितं तथा । निरुन्धतः कथं तन्व्याः पन्थानं
मोक्षगामिनम् ॥ ६४ ॥

To be a woman is the subject of this incarnation. Like this, to be a
wife is also. How can these items of the subject (womanhood, entity of
wife) prevent the path of salvation for her?

English Translation by Shri R.M. Prabhulinga Shastri

To Conclude:
What might happen if only one person of the couple attains Moksha and the other doesn't during these seven lifetimes?
Purely basic to the above excerpt from the Kāraṇāgama, both the jivas residing in the husband and the wife's body are independent of each other in regards to attaining Moksha or Salvation.


Windows 10 explorer: drag file into subfolders

Question: On Windows 10, I'd like to be able to drag files into a folder and also subfolders within that folder, as can be done on OS X. Is this possible in Windows? Right now I have to drag it into a folder, go into that folder manually, and repeat until I drag the file into the desired subfolder.
Answer: Click on the  Start button
Go to  Control Panel
Click on  Appearance and Personalization
Select Folder Options
Under Navigation Pane, place a checkmark on "Automatically expand to current folder"
Click OK
Comment: This isn't exactly the path for Windows 10. Nonetheless, I went to file explorer options and didn't see an option for automatically expanding to current folder?
Answer: This is a bit late but I potentially just answered a similar questions so thought I'd link it here as well.
If you have the Navigation Pane enabled you should just be able to drag an item over a folder in the pane and after a second or so it will expand the tree allowing you to hover over a sub directory to do the same thing (or place it in any of these sub directories directly).
There is also an alternative method which requires installing additional software that adds into windows explorer, which I attempted to explain in the following post:
Drag and Drop Items into Subfolders from Desktop Without Opening an Explorer Window?


What's quicker: serving a static HTML file from the filesystem or from MemCache?

Question: What's quicker: serving a static HTML file from the filesystem or from MemCache?
Also, is there scaling and/or other concerns I should be aware of?
Answer: It depends on the site. I'm sure if you benchmarked a simple small static web page that's not dynamic versus a database powered memcached site the former would be "quicker", but this can totally differ depending on the variables at hand, there are just too many factors to take into account to give you a simple yes or no answer.
Answer: Like any performance-related issue: benchmark. It's highly dependent on architecture, server setup, network, disk, etc. This question sounds simple enough to benchmark in a few mins with a load testing tool.
Answer: It depends on whether the filesystem is local or over the network.  It also depends on what your network connection speeds are.
Data will change based on how the file is used and whether or not the web servers are in a cluster (and if the individual web servers need to generate the file once and then cache it).
I'd be willing to bet that serving a local file from the filesystem is going to be faster than using Memcache to serve the file (especially if it's a fast SATA drive) -- simply because you're cutting out the network layer of the equation.
Even when installed locally, your app would need to use the network stack to access Memcache, and that's going to involve some overhead.


Are Korra and Asami a couple?

Question: In the finale of The Legend of Korra, Korra and Asami step into the spirit portal holding hands and looking deeply into each others eyes. It almost felt like they are going to kiss right before it cut away. Are they supposed to be a couple now? Nowhere in the show before this point were we hinted that Korra and Asami had any kind of romantic interest toward each other.
Comment: Also, the hints were subtle, but there WERE hints that they were attracted to each other.  Korra blushes when Asami calls her pretty in Book 4, Asami is the only one Korra writes to during her recovery, etc.  They could have meant nothing, but given the ending, it's not actually accurate to say it came out of nowhere.  They'd been hinting at it since at least early Book 3.
Comment: @Nerrolken +1, This is exactly what I was getting at in my answer. In Bryan's tumblr post he affirms that there were hints, but people may not have realized it because they weren't considering a same-sex relationship to be within the realm of possibility. The hints were there, but were brushed off by many as friendship. I definitely picked up on them as I watched the series.
Comment: I would like to point out that there is more than enough evidence in the show that they are ready to start a relationship:  deep friendship, and some hints (already mentioned) at sexual attraction.  A lot of people feel surprised when they see the finale since they are interpreting it as meaning that they have been in a relationship for some time already, but it is much more natural to view it as the beginning of a relationship.
Comment: @Whelt Yeah, I picked up on them too, but I never dreamed they'd actually go there.  :P  I also liked the little nod in the finale, where Bolin says at Varrick's wedding that "even the longest of long shots have a chance at happiness together."  There's no way that that wasn't a hint at what was about to happen.
Comment: (This question was later also asked on Anime.SE: http://anime.stackexchange.com/q/24013/)
Answer: Yes. Absolutely they are a couple.
According to the show's writer Mike DiMartino;

Our intention with the last scene was to make it as clear as possible
  that yes, Korra and Asami have romantic feelings for each other.

And backed up by the show's co-creator Bryan Konietzko

Korrasami is canon.
You can celebrate it, embrace it, accept it, get over it, or whatever
  you feel the need to do, but there is no denying it. That is the
  official story. We received some wonderful press in the wake of the
  series finale at the end of last week, and just about every piece I
  read got it right: Korra and Asami fell in love. Were they friends?
  Yes, and they still are, but they also grew to have romantic feelings
  for each other.
Comment: @Paul - As clear as possible *within the confines of a children's TV show*
Comment: Hmmm. If your goal is to make something "as clear as possible", saying it outright, or even not cutting away before the kiss might achieve that goal more effectively.
Answer: Yes. From the co-creator/writer himself.
You say there were no hints, but I say go back and look at some of the Book 4 episodes again. You may notice it now that you're looking for it.
Answer: Yes:

The comic The Legend of Korra: Turf Wars (2017) #1 (where I got these images) is pretty telling. On their Spirit World vacation they kiss. Asami says that she realized how much Korra meant to her during the three years Korra was gone. Korra says that she realized her feelings after she was poisoned when Asami was there for her.
Plus, this is what they tell Korra's parents when they got back:
Comment: Great answer, Yanni
Answer: Yes, they are definitely a couple. The question of whether or not the relationship was properly foreshadowed is what gets most people exercised. I would say that this criticism must take into account more than narrative issues; it must also consider the practical reality that the writers believed Nickelodeon would only let them go so far in depicting a same-sex romance. In the end, the writers tested their assumption and found it was only partly true. Thus, Nickelodeon allowed them to hint that Korra and Asami had developed romantic feelings for each other while not allowing them to show the two women kissing. Presumably, this concern with what the network would accept affected the more traditional romantic arc that would have been done in the show if there were not issues around showing a same-sex romance. As it is, the series ends with Korra and Asami getting ready to explore feelings that each has developed for the other on their own. In other words, they are not a couple when they enter the Spirit World; they are when they leave because, in the course of their time there, they have discussed and admitted that they do have romantic feelings for each other.
Comment: This seems more like a commentary on the writing process than an actual answer to the question asked.
Answer: I would have to say no, they are not a couple. They were not a couple at any point in the show, and every incident that hints towards them being more than friends at any point in the show needs far more justification to say they're romantically tied rather then being just friends.
I don't say this because I don't like the idea of them being a couple. I actually really like the idea of them being together. I say this because the "hints" and "evidence" is inadequate to prove they were more than just friends. Every other couple or crush on the show is talked about and stated in very clear terms. Think about how every other character talks and reacts around people they like. Clear, obvious, no subtlety. With Korra and Assami, you need to pick apart scenes and do some mental gymnastics to "prove" it.
I feel like the creators saying they were (or became a couple after the show ended) is a cop-out. They claimed to have an LGBT couple, yet did nothing within the show to... show, it.
So I say again, they are not a couple, and anything someone could say to show otherwise could just as easily be due to the close bond they shared after being kidnapped together.
Comment: But the creators said they were a couple, yes? While I can and will criticize the show's writers for being unwilling to show a same-sex relationship (if that is what was going on), they have apparently confirmed it, and were dropping hints within the show. I mean, Dumbledore's still gay, even though he did not have a relationship with anyone on-page. And I'm not totally sure that is what was going on, since Mike DiMartino said the last scene was intended to make it "as clear as possible" that Korra and Asami had a romantic connection (as indicated in the top answer).
Comment: Stephen King can say Andy Dufresne got arrested or murdered the moment after Shawshank Redemption ends, but that doesn't mean it happened.
My issue is they seem to want the recognition without the risk.
That, and from a storytelling point of view, there's nothing within the show except that very last scene of Korra and Asami holding hands as they go into the spirit world to suggest they're anything more than friends.
Comment: Some readers would say it does. ;) But in this case, the writers' statement does not contradict the show at all. While I might wish for more explicit representation, the show is entirely consistent with the idea of a budding romance between Korra and Asami. (Keep in mind, they are not a couple throughout the series: they start falling in love toward the end).

Are Korra and Asami a couple?


How do I check for floating vertices non connected edges?

Question: I'm doing a very basic tutorial and trying to recreate a model which has basic geometry, figuring out the best way to use edge flow and to tie up any NGONs.
The model seemed to be behaving very odd as I was trying to make cuts to an NGON. I've only just realised I had vertices and the odd edge overlapping in the NGON from previous attempts at doing this.
I know it was just sloppy work, but is there a way of quickly checking your model for any floating vertices and/or edges?
Answer: Try this. It removes disconnected vertices and edges.


In xperf (Windows ETW) what's the difference between the 'CPU Sampling by Process' and 'CPU Usage by Process' graphs in the xperf viewer?

Question: The values are tracking very closely, however the 'CPU Sampling by Process' appears to be less fine grained in it's data. I can't find anything in the documentation to differentiate these two.
Answer: CPU Usage seems to include Context Switches and allows you to filter by Thread Priority, thus it seems to be more related to threads while CPU Usage is more related to processes due to the aggregation that occurs.
See the list of Sample Analyzer Graphs at the left side,
when comparing take attention of the words "aggregated" and "context switches" is the description.


stand up independent version of Magento 2

Question: I'm an entry level web designer and my boss just asked me to research if it was possible to "stand up and independent version of Magento 2". I'm very new to CMS and have no clue where to start this process, if it's at all possible. Does someone know what he is asking for and if it's doable? Any/all help is greatly appreciated!
Answer: Magento 2 has two options.

Magento 2 Commerce Edition: Includes Support and extra feautures, costs $22,000+ annually
Magento 2 Open Source Edition: Free open source code, requires some programming knowledge, fully customizable

I'm guessing your boss is talking about setting up a community edition of Magento. You would be able to make any changes to the code that you'd like.
You're boss may also be asking if its like Linux where you can take the code and create your own version that can then be resold. In which case, no there is not really anyone doing that, that I know of.
Ask your boss to explain what he's saying. Let me know if this helps!


Filtered dropdown for author?

Question: My site has a long list of authors.  I understand the html is a select list.  However, is there any way, javascript or other, to make this a filter-able list, i.e. with a search box at top of the dropdown?
Answer: I don't know if this counts as an answer, but I wanted to share in case it is helpful. It looks like you can, although there's an important caveat in that this method needs some fixing to make work.
Here's a blog post that describes how to set up the Select2 JavaScript library to make the user dropdown searchable.
There's too much code to repeat here, I think, but in short, it works like this:

Hook into the wp_dropdown_users function to include the JavaScript files and replace the HTML with something that will work with #2
Create an AJAX call that can return the list of users into the HTML in #1
Write the JavaScript to integrate the dropdown with Select2 and make the AJAX call

This is conveniently packaged in a plugin available on GitHub, here.
The caveat: It's quite old and doesn't appear to work anymore, but it may only take some debugging to get it going again. In the Block Editor, it does nothing, but in the Classic Editor, it seems to almost work.

Filtered dropdown for author?


non divergence form vs divergence form operator

Question: Can the non divergence form operator $\mathcal{L}u= u_{xx}+u_{yy} + u_x=\Delta u + u_x$ be put in divergence form? In general, can any constant coefficient non divergence form operator be put into divergence form?
Comment: http://home.iitk.ac.in/~tmk/courses/minicourse/FAPDE/BasicPDE.pdf
Answer: Yes. To put an operator into divergence form we multiply $Lu$ by a function $\varphi $ and integrate by parts to get rid of the second derivatives of $u$. This works as long as the coefficients of second derivatives are sufficiently smooth, and constant functions are very smooth.


license and protect php script

Question: I am interested to use http://www.phplicengine.com to protect my php code and license my php script but have no clue how good it is. is here a PHPLicengine user who may help me please?
Comment: For best results, pretend you're on Jeopardy and phrase your post in the form of a question.  What kind of help are you looking for?
Comment: check out: http://www.ioncube.com they have a way to do it
Answer: PHP code cannot be encrypted because at some point you have to eval() the string that will be producing the output.So there isn't a way to actually keep people from stealing your code if you let it get off your servers.
For the most part, trying to protect the code is useless. People make money off of code by either A) Working for someone, B) Providing updates/support to only valid paying customers, or C) Somehow make the data the software uses go through their own servers to get to the client.
Any other attempt to protect the code requires legal counsel and action.
Answer: By itself, a system like PHPLicengine is useless. Your PHP script will still be a plain text PHP script, so someone can just strip the license code out (it'll take 1/10th as long as it took you to integrate), and do whatever they like with it.
PHP script encoders (like IonCube, Zend Encoder) have the ability to pre-compile PHP scripts into bytecode. They require the web server to have a PHP extension to decode and run the compiled scripts.
They basically do the same thing as obfuscators in Java / .NET - create an obfuscated binary version that still runs, but is more difficult to decompile or modify.
There are problems with this approach - not all web hosts have the appropriate PHP extension installed, and each script encoder needs it's own. Even those that do will typically have only one (IonCube and Zend are the most common). Typically, your customers won't be able to install the appropriate PHP extension, since they don't own or control their web server, so only having an obfuscated version available might prevent some customers from using (and therefore buying) your software.
Judging from the FAQs on the PHPLicengine website, the licensing portions of their license system are encoding using IonCube anyway, so that pretty much forces you into using IonCube.
Comment: Besides, at least a Zend Decoder exists and is working great :)
Answer: You can compile php code. It is not a simple process though. Take a look at Bcompiler or byte compiler on the php.net site.
http://us.php.net/manual/en/intro.bcompiler.php
Answer: i suggest You can use cron for check license every hour if system found fake licence key plugin for code destroyed.
but if you sale your plugin to 20000 user there are difficult to handle it...
Comment: Add `!` before the license checking line - i just broke your licensing system.
Answer: I've never heard of PHPLicengine - for encryption/protection, I normally rely on either Zend Guard or ionCube. I've also heard good things about PHPAudit.
However, whilst these (especially Zend) are all "big names" in the PHP script protection business, they cannot protect your script against really serious crackers (I know both Zend and IonCube have been broken before: however, this was several versions ago and the resulting output was obfuscated anyway as both systems, for speed, reduced variables/function names to minimal length and removed comments).
Answer: You can protect your code with ioncube
I haven't used it, but I know one host that supports it: mittwald
Answer: Hi all you can try with them to encrypt with license key your php code/source/script
I have found on internet this service you can try it is cheap
https://www.facebook.com/pages/Encrypt-with-License-Key-any-PHP-Code/1408496709369712
Comment: Have you tried it out..?

license and protect php script


GCC map file address for ISR different than memory value

Question: An address for an ISR shown in the GCC map is 0x00001328.
<code>.text.USART0_RX_IRQHandler
            0x00001328       0xe4 ./Source/interrupts_new.o
            0x00001328                USART0_RX_IRQHandler
</code>
However, the value actually loaded into the ISR vector at 0x0000006C is 0x00001329.
0x00000060  000012ED 00001301 00001315 00001329  í...........)...
This is the first time I've noticed this (or even looked). Is the ok ?  Is this an alignment issue, or a Thumb issue ?
Thanks.
Answer: It shows the uC that the ISR uses the THUMB instruction set.
Even addresses - ARM, odd - THUMB.
Everything is correct
The actual routine is at the addr & 0xffffff0c address  - ie with the last two bits zeroed.


How To Root An Android Phone?

Question: I was looking here and there and i can't find any answers how to root my samsung galaxy s6 i was trying to root fully i was trying kingoroot,iroot,kingroot i can't so i find a different way to root my phone i just plug my computer and just download some files and show those steps that how to root a android phone? it says you need to root but a way to root the way is to enable bootloader so i have no option in my settings now guys how i will root my phone guys help me out of this thing!
Answer: Every phone is rooted diferently. It depends on the phone and current ROM installed. Normally the steps are as follows:

Enable USB debugging in the developer options for your phone. Sometimes the bootloader is also unlocked from the developer options.
Unlock the boot loader.
Install a custom recovery(TWRP, CWM).
Flash the root software with the custom recovery.

For your phone there seem to have been changes in the root process. You can try this video and report if you find any problem.

How To Root An Android Phone?


Can you ask questions about batch scripting?

Question: According to the about page on Stack Overflow, it is a Q&A site for programming. From what I've heard, batch is not a recognized programming language, neither does writing a batch file count as programming. So, is asking questions related to Windows batch still officially accepted at Stack Overflow? Or should they be asked over at Super User?
Comment: Writing a batch file certainly _can_ count as programming. It depends what exactly you're doing.
Comment: I believe that this should be on MSO  rather than MSE.
Answer: There are 2225 questions tagged batch on SO.  The tag wiki excerpt begins:

The batch tag is predominantly used for Windows batch file questions. However, every now and then a question related to SQL and batch inserts crops up. Batch files are scripts executed by the Windows command processor (cmd.exe) or, in older times, by the DOS shell (command.com).

There are 383 questions tagged batch on SU.
Depending on the question, it would probably  be on topic for either.
Related: Should the batch file programming questions be moved from SO to SF?
Not an identical issue, but in a similar vein: "shell" or "shell-scripting"?
Answer: Batch and shell scripting languages are DSL's. If a batch or shell question is about the mechanics and constructs of the language itself or about consuming an API (like you can do in PowerShell) then it's definitely on-topic for Stack Overflow.
However, if it's a question about a batch or shell script but the real question is about calling a particular OS command line utility then it's possibly better suited on SU or SF.
For example, if someone has a batch or PowerShell script where the real problem is how to use DISKPART on Windows then I'd probably push that over to Server Fault. The real question is about how to use DISKPART.
Similarly, if it's a bash script and the script isn't working because the usage of a particular Unix tool is incorrect then I'd probably pass that to Unix and Linux.


How to Save files with a FileUpload Interface (GUI) to a chosen location in asp.net?

Question: This comes down to simply saving to a specific location in asp.net.
Similar to using 'Save as...' in any standard program like Microsoft Word.
The GUI I'm looking for is exactly the same as the GUI for the FileUpload control in asp.net.
However, the FileUpload control only allows you to upload files to your running program.
All I want is to select a location to Save a file that is created within the program.
I've already written the following code:
<code>        protected void btnSaveYourBuild_Click(object sender, EventArgs e)
        {
</code>
// Section A
<code>        System.Drawing.Image chosenGoldenLineTop = GetSystemDrawingImage(ImageGoldenLineTop);
        System.Drawing.Image chosenGoldenLineBottom = GetSystemDrawingImage(ImageGoldenLineBottom);
        System.Drawing.Image chosenImageTop = GetSystemDrawingImage(ImageTop);
        System.Drawing.Image chosenImageJungle = GetSystemDrawingImage(ImageJungle);
        System.Drawing.Image chosenImageMid = GetSystemDrawingImage(ImageMid);
        System.Drawing.Image chosenImageAdc = GetSystemDrawingImage(ImageAdc);
        System.Drawing.Image chosenImageSupp = GetSystemDrawingImage(ImageSupp);
</code>
// Section B
<code>        Bitmap B = new Bitmap(chosenGoldenLineBottom.Width, chosenGoldenLineBottom.Height + chosenImageSupp.Height + chosenGoldenLineTop.Height);
        using (Graphics g = Graphics.FromImage(B))
        {
            g.DrawImage(chosenGoldenLineTop, 0, 0, 1540, 49);
            g.DrawImage(chosenImageTop, 0, chosenGoldenLineTop.Height, 308, 560);
            g.DrawImage(chosenImageJungle, chosenImageTop.Width, chosenGoldenLineTop.Height, 308, 560);
            g.DrawImage(chosenImageMid, chosenImageTop.Width + chosenImageJungle.Width, chosenGoldenLineTop.Height, 308, 560);
            g.DrawImage(chosenImageAdc, chosenImageTop.Width + chosenImageJungle.Width + chosenImageMid.Width, chosenGoldenLineTop.Height, 308, 560);
            g.DrawImage(chosenImageSupp, chosenImageTop.Width + chosenImageJungle.Width + chosenImageMid.Width + chosenImageAdc.Width, chosenGoldenLineTop.Height, 308, 560);
            g.DrawImage(chosenGoldenLineBottom, 0, chosenGoldenLineTop.Height + chosenImageTop.Height, 1540, 53);
        }
</code>
// Section C
<code>            B.Save(System.IO.Path.Combine(
            Environment.GetFolderPath(
            Environment.SpecialFolder.Desktop),
            "Team Awesome v3" + ".png"));
           // Saves on the desktop
        }
</code>
I've devided the big batch of code into 3 section for your ease, A, B and C.
Simply said:
Section A gets 7 images.
Section B combines the 7 images into 1 bigger image.
Section C saves the image to the desktop.
I'm very pleased with that already. But, I'm sure Users would like to be able to Select a specific location to save this 1 bigger image at, at least I would.
Now, the solution I'm trying to find is either a Control that can Save the 1 bigger image to a user chosen location, that could replace Section C.
OR
A Control that selects a specific location and is able to give back a Path to which I can save the 1 bigger image, replacing only a single argument of Section C.
I've tried an array of many different things, that turned out ineffective or failed at first attempt. Such as the FileDialog system (which is unavailable in asp.net), and the FileUpload Control, which only uploads a file to the programm and not the other way around.
Note how one could try to get a Path from the FileUpload control and try to create an illusion to the User that he's saving the file. But, one does not simply insert the FileName editing (before saving, like in any normal case) into the FileUpload control, neither can you actually select a Directory, you'd have to Select a File and cut off the FileName in the Path, resulting in a Confusing experience for the User.
I've spend around 17 hours trying to find a solution, but I've failed.
Could you help me?
Answer: User save are browser dependent , asp.net works in sandbox for security reasons cant change that. Maybe a plugin/add-on on browser can help you achieve functionality, but its still highly unlikely with solution you are trying.

with a browser add-in you can achieve it by let it listen to the web url and then give  prompt to user to save file which will actually cut-paste the file saved in user system(say temp folder).
But again a browser addin will be needed to installed on user browser which is both optional for users and written differently for each browser.
regards
Comment: That seems quite difficult.

Allright, then I have 3 options considering the feedback:
1."Finding a specific add-on that is universal and enables my wished for functionality"

2."Making 2 buttons, 1 of which Saves the image to the desktop like now, and the other which (along with a textbox) allows the user to fill in a specific Path to which the image will be saved"

3."Wait for alternative solutions"

For now I'll wait for alternative solutions, since I only asked this  1 hour ago. Thereafter I'll either use those answers or go with Option 2.

Thx for your effort Alok ;)


If I transfer files from a school computer to my own will the school have access to my computer?

Question: I have some files I want from my school computer to my own computer and I want to know if I do will the school have access to my computer (Using a usb ofc) my school computer also has restrictions and i am wondering that, if I transfer a file (like an image, png etc) if the restrictions will be added to my personal computer
Answer: If you transfer files then it shouldn't, in and of itself, give your school access to your personal computer. The previous statement is mostly for non-executable files. When it comes to executables, you have to check their digital signature and the files' origins. Even executables won't give them access, most of the time. BUT, I remember, once, when I was in middle school, I was curious about DeepFreeze and I executed my school's customized DeepFreeze installer on my personal computer. I ended up having to get a teacher to come to my home and disable it, because I didn't have the password to do it myself.
Nevertheless, executables can also harbor malware, so you should be aware of that, too. Executables, in Windows, end in .exe, .vbs, etc.
Comment: So if I transfer a folder with photos and txt files the school does not get access to my computer
Comment: @lilshine No, they won't.
Comment: Ok thanks for the help :D
Answer: No. Copying files to your computer does not give anyone any access to your computer. Neither any technical restrictions will be propagated to your computer. If there are any legal restrictions, they can still be applicable, but it is off topic on Security SE.
There are basically two scenarios for somebody to get access to your computer (not considering exploits of bugs in OS or some software):

Active access: Make sure your provider does not block incoming requests. Install SSH, RDP or similar service. Give credentials to somebody who wants to access your computer. Then this party can access your computer whenever they want.
Passive access: You install a client that enables remote access like LogMeIn or TeamViewer. For somebody to get access you have always to initiate an access session. Then you invite the other party to access your computer. The other party cannot get access without you first initiating a remote access session.


Is it possible to add a driver to my kernel without flashing a new kernel?

Question: Is it possible to load a driver as a kernel module into my Galaxy S10, Magisk rooted without having to build a new kernel and flash it?
Comment: None of those have anything to do with being able to load drivers without reflashing a new kernel
Answer: Drivers are built as kernel modules i.e. .ko files which can be loaded with modprobe but for that you have to rebuild kernel with the required module, or it should be compatible with installed kernel if built separately.
The installed kernel should be built with CONFIG_MODULES=y in order to load modules. Make sure the version of kernel source code tree or that of header files match with installed kernel version. Otherwise dependencies may break resulting in Unknown symbol in module type of errors. Also, if kernel is signed (CONFIG_MODULE_SIG_FORCE), modules must be signed with the same key to avoid required keys not available error.


What are the various attributes or qualities of Lord Narayana as per the scriptures?

Question: What are the various attributes or qualities of Lord Narayana as per the scriptures, for eg. omniscience, omnipotence, etc.?
Answer: Lord Vishnu has infinite attributes. He is called "Aprameya" meaning who is undefinable. He is beyond the reach of shastras, our senses to define hm completely. Hence, we cannot get a complete idea on what are his attributes completely. We can define him and his attributes based on what is said in the texts, our experiences but that would be equal to a drop in the ocean.
However, Vishnu Sahasranama stotram present in the Anushasana Parva, Mahabharata gives thousand names of Lord Vishnu which are indicative of his attributes.

yāni nāmāni gauṇāni vikhyātāni mahātmanaḥ|
  ṛṣibhiḥ parigītāni tāni vakṣyāmi bhūtayē ||
I am giving for the benefit of all, those names of His which are far-famed, which are indicative of His attributes, and which find a place in the exalted hymns of the ṛṣis.

You can have a look at the names and attributes given in the Vishnu Sahasranamam with a commentary of Adi Shankaracharya on shivkumar.org.
Parthasarathy, K.E. adds Adi Shankaracharya and Sri Parashara Bhattar's commentaries in his book Sri Visnu Sahasranamam.
There are many names and attributes which are not listed in the Vishnu Sahasranama because the ones named in the stotram are popular ones. So, the number of attributes are limitless.
Comment: yes, It's impossible to know Vishnu completely. Even one line of Vishnu Stuti says the same... _"Lakshmi Kantama Kamal Nayanama **Yoghridyanigamyama**"_ Here the meaning of highlighted text is, _"It's impossible to know him completely Even for the greatest Saints/Maharishis of all time"_.
Comment: @Rishabh It's impossible to know but the meaning of the text you quoted is "One who is consort of Lakshmi, lotus eyed, the one who is the destination Yogis try to reach through their dhyanam (meditation) ".
Comment: I searched on google long ago about meaning of complete Vishnu Stuti coz I use to sing it on fast. [Here is the link](https://vnktchari.blogspot.com/2015/09/vishnu-stuti-lyrics-and-meaning-prayers.html#.WzsMnyDhW1s) in which I found the meaning. I don't know how much this site is correct about the meaning but this site says the same which I quoted. Let me know if this site is wrong coz I don't want to keep wrong info regarding Vishnu Stuti (And I told meaning of only highlighted text) :)
Comment: AS already mentioned by few as above, we have to believe that every body had their grand-grand father,though we have not seen them in person,but we believe the information passed on to us by our father/mother or known relative/thru friend circle.
similarly,when we refer to SRIMADBHAGAVATHA-3-15-36/37/38.Sanakaadi munis claims they met lord Srimannarayana & exchanged their views.
Comment: They also narrates the design of the abode of lord Srimannarayana.Should we not consider that,there is a well established link with King PARIKSHIT at the end of DWAPARA YUGAM,who also mentions that he could speak to sanakadi munis,King parikshit is the grand son of ARJUNA (PANDAVAs)in Mahabharatha. ONE EXAMPLE : we ourselves can question; can we see our own internal wish [MANAS], we all sure, that we can experience. Similarly, to an electric current in a conductor.which you cannot see but you get a shock when you touch it.
Answer: True, Vishnu is limitless as confirmed by these verses in Srimad Bhagavatam.
In Bhagavatam 1.18.3, we find

O ṛṣis, who are as powerfully pure as the sun, I shall try to describe to you the transcendental pastimes of Viṣṇu as far as my knowledge is concerned. As the birds fly in the sky as far as their capacity allows, so do the learned devotees describe the Lord as far as their realization allows.

In Bhagavatam 11.26.30, Krishna says

What more remains to be accomplished for the perfect devotee after achieving devotional service unto Me, the Supreme Absolute Truth, whose qualities are innumerable and who am the embodiment of all ecstatic experience?


ACPL-C79B problem

Question: This is my first post on this forum. I have a problem with an isolation amplifier and i hope there's someone here who can help me out.
Let me explain my situation. I use an ACPL-C79B from Avago to isolate measurement signals. At the input there's a AD8226 In-AMP, which buffers the measurement signal (0-60mV or 0-200mV) to the ACPL.

The power supply is 15V, but because i want to keep the input offset from the AD8226 as low as possible, i create a virtual ground. The virtual ground is created at 10V. So i have 15V to 10V = 5V positive voltage, and 0 to 10 = -10V negative voltage. It's shown below.

The ACPL is powered with the 5V positive voltage from this virtual ground (at the primary side). At the secondary side it is also powered with 5V, but from a floating power source.
The datasheet of the ACPL-C79B shows: 60mV input -> 0.5V output. When i use a new ACPL, the output voltage is exactly 0.5000. Perfect! But after a while, the output becomes 0,4860 (still 60mV input). I tried multiple chips (there not very cheap), they all give the same result after a while.
I can't find the problem. Please ask me, if there's something not clear.
(Because the ACPL creates a differential signal, the output voltage (0.5V) is Vout+ - Vout-. This is measured on the chip directly.)
(The filter between the AD8226 and the ACPL is not used!)
Has anyone an idea, what causes the problem?
Could it be the virtual ground?
Could it be the input signal? Because the - of the input is connected with the virtual ground.
Comment: To debug this, first try with a real +5, GND and -10 volt power supply. I haven't read the datasheet for your circuits but in your circuit, your virtual ground will randomly vary due to the thermal coefficients of R1 and R4, and the input voltage offset of IC1 which can also vary with temperature. Since it drifts after a while, this may be the problem.
Comment: Such capacitance on opamp is not a good idea. Remove it.
Answer: Please insert 7805 regulator that supplies only the ACPL for the stability of the IC.
Refer to the datasheet.
Comment: Please add more information to your answer. It is too short for being helpful. Some more lines should be spent to improve the readability and to explain, why you came to the conclusion.

ACPL-C79B problem


Can I travel on other forms of U.S. identification traveling from US to BVI and back?

Question: US passport is with French Consulate to obtain a student visa. I am traveling to the BVI's the day after I submit my application. Can I use my Massachusetts driver's license and U.S. birth certificate to travel, or my Canadian passport?
Comment: inconceivable. **You need a passport**
Answer: I am assuming you plan to fly there. While the authorities of the British Virgin Islands will accept a birth certificate and driver's license for entry, the US government requires that you have a Western Hemisphere Travel Initiative-compliant document to travel in or out of the US by air. Unless you happen to have a Trusted Traveler Program card "(NEXUS, SENTRI or FAST)" or fall into an unusual exception (US military traveling on official orders, U.S. Merchant Mariner traveling on official business), that document will be a US passport.
If you can plan ahead, you can obtain a second US passport so you can travel while your first passport is with the French consulate (or pay a passport service to get one for you), but the process is somewhat costly and cumbersome.
Comment: A US passport card, at $30, would be a less expensive alternative if the traveler plans to travel by sea (for example by flying to the US Virgin Islands and traveling to and from the British Virgin Islands by sea).
Comment: @phoog I couldn't find a definitive source that says you can enter the British Virgin Islands by sea with a US Passport card (if you can with a driver's license and birth certificate, you logically should be able to with a passport card of course), but yeah, there's more options if you're going by sea.
Comment: At least the birth certificate and the DL will get the traveler into the BVI and the passport card will get him back to the USVI, if the BVI don't accept the passport card (I agree that it would be somewhat illogical for them not to).
Comment: She does have a canadian passport, can she use that to get back into the states with her other US forms of ID? Yes she is traveling by air
Answer: I recently traveled by car from Canada to the US and asked US customs officer my question. The answer is yes you can travel from the US to the BVI by air on a Canadian passport, that states you were born in the US.
Comment: Your question did not in its original form indicate that you are a dual citizen.


How to repair crack in a pillar exterior panel

Question: I am considering purchasing a 1972 Monte Carlo with a crack in the metal of the a pillar panel. I was wondering if it is possible to repair such damage or if I should avoid this vehicle.
Comment: Welcome to Motor Vehicle Maintenance & Repair!
Answer: If you have the mad welding skills, this can be repaired. If not, you're looking at a HUGE repair bill. One of the issues here is that the A-pillar is very much structurally important for the vehicle. This area really needs to be done correctly so it will retain it's structural integrity. The glass would need to come out (obviously). You also need to think about what else you'd find which has rusted away inside ... the part you can't see. Considering where it's at and the condition it's in, you can pretty much assume there's been water pouring down the A-pillar when it rains, every time it rains. I'm betting there's a huge amount you can't see.
My opinion? If you don't have the skills to do the work, pass. That is, unless you got some deep pockets.
Comment: I'd be willing to bet the entire car is rust being held together by a small amount of remaining metal.
Comment: PS: I put a 402BBC/TH400 out of 72 Monte into my 72 Chevelle ... that thing was awesome :o)
Comment: Steel does not generally crack like that , rust cracks.
Comment: This type of rust was quite common on GM vehicles of the era. One of the primary causes was the vinyl tops had a cloth backing that retained moisture. Typically the lower corners of the rear windowws suffered the same fate. Check the entire roof and the glass openings before before trying to repair that one spot.


How to get a ZAV

Question: I am an IT professional with 13.5 years of experience in Infrastructure domain. I am interested in relocating to Germany and been contacted by one of the firms in India who can help me get a job there,however they need a ZAV certificate first and ask me to register for it online.
Can you please help me how can I get the ZAV certificate by myself.Wat is the process.
Answer: Hello I have recently applied to equivalence from ZAB.
Here are the steps.
Apply for the Anabin [equivalence certificate for bachelors and above degrees] on this link at KMK site.

The required docs for this can be found here.
This is THE MOST IMPORTANT document and is needed in most of the cases because even if you find your university is listed here, your exact degree name might not be. In cases both are listed, this step may be skipped for the visa interview but you'll still need it for applying for the blue card later so better apply for it asap.
Tick the blue card option while filling the form for applying for this. This way you'll receive the certificate within a week of payment submission.
Pay the fee of 200 Euros (paid by the employer in work visa cases)
Comment: Welcome, samar! Can you clarify where the required docs can be found? At the first link? In (b), what is the most important document? Is it the degree equivalence document?
Comment: for work visa in Germany, the equivalence of your foreign degree is considered an important document, I have applied work visa from Pakistan and now waiting for ZAB for the Statement of Comparability document as German Embassy has asked for it even though I have the contract of employment as well.
Comment: For a standard work visa (not Blue card)  from India, do we still need a recognized degree as per anabin?

How to get a ZAV


What prevents a smart contract from going into an infinite loop?

Question: What is the equivalent of gas in preventing DoS attacks? What happens if an attacker writes a recursion that never stops in Plutus? Someone asked the question before.
Answer: One of the features of Plutus contracts is that fees of all valid Plutus contracts must be able to be determined at compile time. That means that anything for which this cannot be determined is not a valid Plutus contract. Therefore, contracts containing infinite loops are not valid.
Answer: The execution costs of a contract need to be covered by the included transaction fees. Additionally, a collateral needs to be included. The value of the collateral determines the script execution budget. As soon as execution costs exceed the collateral:

script execution is aborted,
the transaction is not accepted (i.e. does not make it to the blockchain),
the collateral is collected by the validating node.

Because it is impossible to determine in advance if a program/script will succeed or not (halting problem), the script needs to be executed to find out. Because script execution is deterministic on Cardano, the constructor of the transaction can, however, make sure that transaction fees and collateral have the correct values. Execution failure and collateral collection are therefore only to protect against ill intentioned actors, and do not impact well behaving actors.
In this blogpost you can find more about the collateral mechanism on Cardano: link


Blog URL Crashes Internet Explorer

Question: I have a blog through Blogger - http://www.concertexperiencepeeps.com. Whenever I try to view my blog through Internet Explorer it crashes the page and will not allow me to view it. It works fine on Safari though. I cannot figure out why. Any ideas would be appreciated. Thanks@!
Answer: Just a thought, but did you try taking the special lightning (⚡) symbols out, at least from the title tags?

Blog URL Crashes Internet Explorer


Relation between boolean blind SQLi and time blind SQLi?

Question: I am part of a team which developing web app penetration testing framework, and I am taking care of SQLi detection. When I tested multiple known vulnerable local sites found Boolean Blind flaw always occur with Time Blind flaw. I want to know is my conclusion is correct or is there a situation where a Boolean Blind can occur without Time Blind?
Answer: Whilst I don't think I can provide a concrete example my inclination would be to say that it is possible that there would be an instance of SQLi where boolean based injection would be possible and time-based would not.
The reason being that time-based injection usually relies on modifying the syntax of the query to add additional statements (e.g. WAITFOR DELAY) which may not be supported in every part of a query in every DBMS, whereas boolean based injection relies on inserting logical operators which are more likely to be universally supported.
Answer: There are two terms that we are talking about here:

Boolean Blind : In this technique, we aim to detect sqli by passing values into the input parameters which will return true or false. For eg, if I give  the input as 10=10 or A||B, then the application will return the results after executing that expression. If it does, then it is vulnerable to SQLi.
Time Blind: This is used to detect vulnerablity by forcing the application to wait for some time and then return the results. Fo eg, WaitFor Delay.

Both the above techniques are a part of Blind SQL Injection technique.


How do I know what Ubuntu AMI to launch on EC2?

Question: When I want to launch an instance of Ubuntu on EC2, how do I find the right one?  There are thousands of public images that have "Ubuntu" in their name.  I am only interested in running the Official Ubuntu images.  How do I now which AMI is the right one?
Comment: also see http://unix.stackexchange.com/questions/24402/how-can-i-find-a-ubuntu-package-to-use-with-amazon-ec2
Answer: The success of Ubuntu as a platform and Ubuntu's commitment to refreshing AMIs means that there are literally thousands of of images on Amazon EC2 with "ubuntu"in their name. That, combined with and the lack of Ubuntu on the "Quick Start" menu makes selecting the right AMI a non-trivial task.
Some General Ubuntu Information
You already may be aware of these items, but I want to point them out for those who are just getting started with Ubuntu or EC2.

Ubuntu releases every 6 months. Each release has a version number and a codename. The most important thing to note here is that every 2 years a LTS (Long Term Support) release is made. If you want stability and support for 5 years, select an LTS release. If you want the newest packages, select the most recent release. See the wikipedia entry for more information.
At the time of this writing, there are 5 "regions" in Amazon EC2. Each region represents a geographical location. Each region has its own AMI ids. Inside each region there are 2 architectures (x86_64, i386) and 2 "root store" types (EBS or instance). That means that for each build Ubuntu releases, we generate 20 ami ids.

Easiest: Find AMIs From Your Web Browser
You can choose your interface for selecting images. Go to either:

https://cloud-images.ubuntu.com/locator/
At the bottom of this page, you can select the region, release, arch or root-store. You're only shown the most recent releases here. When you've made your selection, you can copy and paste the ami number, or just click on it to go right to the EC2 console launch page for that AMI.

or

https://cloud-images.ubuntu.com/server/releases/

Select Your release by number or code-name
Select 'release/': We keep historical builds around for debugging, but the 'release/' directory will always be the latest.
Select your AMI from the table and click to launch in the console or copy and paste a command line.

Search through the Amazon EC2 Console
The EC2 Console is a graphical way to sort through AMIs and select one to launch. To Launch an Official Ubuntu Image here, follow the steps below.

Select the region you want in the top left, under 'Navigation'
Example: "Us East (Virginia)"

Click "AMIs"
Do not click "Launch Instance" [see note below]

for 'Viewing', select "All Images"

Limit the results to Ubuntu Stable Release images by typing ubuntu-images/
You should expand the 'AMI Name' field as wide as possible (maybe shrink the others).

Limit the results to a specific release by appending '.*'.
For example: ubuntu-images/.*10.04

Limit the results to a given arch by appending '.*i386' or '.*amd64'
Note: If you want to run a m1.small or c1.medium, you need 'i386'. If you want to run a t1.micro, you will need to select an 'ebs' image.

Sort your results by AMI Name and make selection
By sorting by AMI name, you can more easily see the newest AMI for a given set. Each AMI ends with a number in the format YYYYMMDD (year,month,day). You want the most recent one.

Verify the Owner is 099720109477!
Any user can register an AMI under any name. Nothing prevents a malicious user from registering an AMI that would match the search above. So, in order to be safe, you need to verify that the owner of the ami is '099720109477'.

If "Owner" is not a column for you, click "Show/Hide" at the top right and select "Owner" to be shown.

Click on the AMI name, then Click 'Launch'

Notes

Web Console 'Launch Instance' dialog: I saw no way in the 'Launch Instance' dialog to see the Owner ID. Because if this, I suggest not using that dialog to find "Community AMIs". There is simply no way you can reliably know who the owner of the image is from within the console. For advanced users, I will blog sometime soon on a way to find AMIs programmatically [Hint].

Source 1: ubuntu-smoser.blogspot.com
Source 2: ubuntu.com
Comment: Could you please precise the difference between `hvm-instance` and `hvm-ssd` ?  I'm afraid "instance" means "paravirtual", but am not sure, and can't find info about it.
Also, it can be useful to note that `https://cloud-images.ubuntu.com/locator/` offer filters... at the bottom of the page
Answer: New and improved version.
# needed as json list returned by ubuntu site is mal-formed
remove_last_comma() { sed '
        $x;$G;/\(.*\),/!H;//!{$!d
    };  $!x;$s//\1/;s/^\n//'
}

curl -s "https://cloud-images.ubuntu.com/locator/ec2/releasesTable" \
    | remove_last_comma \
    | jq -c '.aaData[] | select(contains(["16.04", "us-west-2", "hvm:ebs"]))' \
    | grep -o 'ami-[a-z0-9]\+' | head -1

Basically grabs raw data used for ubuntu's ami finding page, and uses jq to parse out the row I want then a grep to pull out the value. Much faster than the old version.

-- original version
Here's another example. I just wrote this to fetch the latest trusty AMI id. It uses the aws cli tool to query the API, using the fact that the names sort in date order to get the latest.
name=$(\
    aws --region us-west-2 ec2 describe-images --owners 099720109477 \
        --filters Name=root-device-type,Values=ebs \
            Name=architecture,Values=x86_64 \
            Name=name,Values='*hvm-ssd/ubuntu-trusty-14.04*' \
    | awk -F ': ' '/"Name"/ { print $2 | "sort" }' \
    | tr -d '",' | tail -1)

ami_id=$(\
    aws --region us-west-2 ec2 describe-images --owners 099720109477 \
        --filters Name=name,Values="$name" \
    | awk -F ': ' '/"ImageId"/ { print $2 }' | tr -d '",')

It works in 2 parts. The first part gets all the AMIs for ubuntu trusty that meet the various criterion (ebs, x86_64, and the name pattern). It pulls out the Name and sorts by it. The names are formatted so that sorting them sorts by date so the last one will be the newest one. This name is then assigned to the 'name' variable.
The second part uses that name to request the AMI ID for the AMI with that name. It parses out just the id and assigns it to 'ami_id'.
Comment: This should accomplish something similar, but using a JMESPath query expression: `aws --region us-west-2 ec2 describe-images --owners 099720109477 --filters Name=root-device-type,Values=ebs Name=architecture,Values=x86_64 Name=name,Values='*hvm-ssd/ubuntu-trusty-14.04*' --query 'sort_by(Images, &Name)[-1].ImageId'`
Comment: Can you please explain what this does?
Comment: Added the explanation to the answer.
Answer: using ruby aws-sdk, you can programatically discover the latest Ubuntu AMI like this
    ec2 = AWS::EC2.new

    root_device_type = "ebs"
    ami_owner = '099720109477'
    ami_name = "*ubuntu/images/#{root_device_type}/ubuntu-precise-12.04*"  # hardcoded to ubuntu 12.04. You can apply your own criteria here.

    AWS.memoize do
      linux_ami = ec2.images.with_owner(ami_owner).
        filter("root-device-type", root_device_type).
        filter("architecture", "x86_64").        # use 'i386' for 32 bit and 'x86_64' for 64 bit
        filter("name", ami_name)
        # this only makes one request due to memoization
      begin
        return linux_ami.to_a.sort_by(&:name).last
      rescue
        abort red "Error discovering latest AMI. Terminating."
      end
    end

Answer: You can use https://cloud-images.ubuntu.com/locator/ec2/ which provide a comprehensive comparison based on version, release date etc.
Search for the version, region you want and sort based on release date to get the latest version.
Answer: I thought it would be useful to demonstrate how to do this using with Ansible by using the ec2_ami_find module.
At the time of writing (2017-06-07) in the ap-southeast-2 region AWS will suggest these Ubuntu LTS images if you start an EC2 instance manually from the console:

Ubuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-96666ff5
Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-807876e3

This is in line with their recommendations to use HVM virtualization and EBS backed SSD Volumes.

For the best performance, we recommend that you use current generation
  instance types and HVM AMIs when you launch your instances.

To get the same AMIs that AWS recommend you can use the following tasks:
- name: Find the most recent xenial AMI
  ec2_ami_find:
    aws_access_key: "{{ vault_aws_access_key }}"
    aws_secret_key: "{{ vault_aws_secret_key }}"
    region: "{{ config_region }}"
    name: "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"
    owner: 099720109477 # canonical ownerid
    virtualization_type: hvm
    sort: name
    sort_order: descending
    sort_end: 2
  register: ami_find_xenial

- name: Newest Xenial AMI
  debug:
    msg: "{{ ami_find_xenial.results[0].ami_id }}"

- name: AWS recommend Xenial AMI
  debug:
    msg: "{{ ami_find_xenial.results[1].ami_id }}"

- name: Find the most recent trusty AMI
  ec2_ami_find:
    aws_access_key: "{{ vault_aws_access_key }}"
    aws_secret_key: "{{ vault_aws_secret_key }}"
    region: "{{ config_region }}"
    name: "ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*"
    owner: 099720109477 # canonical ownerid
    virtualization_type: hvm
    architecture: x86_64
    sort: name
    sort_order: descending
    sort_end: 3
  register: ami_find_trusty

- name: Newest Trusty AMI
  debug:
    msg: "{{ ami_find_trusty.results[0].ami_id }}"

- name: AWS recommend Trusty AMI
  debug:
    msg: "{{ ami_find_trusty.results[2].ami_id }}"

Which gives the following output:
TASK [Load secrets from Vault] *****************************************************************************************************************************************************************************
ok: [localhost]

TASK [Find the most recent xenial AMI] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [Newest Xenial AMI] ***********************************************************************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "msg": "ami-1e01147d"
}

TASK [AWS recommended Xenial AMI] **************************************************************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "msg": "ami-96666ff5"
}

TASK [Find the most recent trusty AMI] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [Newest Trusty AMI] ***********************************************************************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "msg": "ami-993e2bfa"
}

TASK [AWS recommended Trusty AMI] **************************************************************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "msg": "ami-807876e3"
}

If you compare the AMI ids returned by the playbook you can see AWS do not recommend the latest available image but rather the second or third latest. I don't know what criteria/heuristic they are using here.
Answer: There is a comprehensive list of available Official AMIs on the Ubuntu Cloud Portal. You an find additional resources regarding Canonical's Official EC2 AMI releases in the Ubuntu Help: EC2 Starts Guide and a raw directory of all the AMIs released by Canonical in Ubuntu EC2 Images
Answer: Simple and fast AWS CLI answer
aws ec2 describe-images \
  --filters "Name=name,Values=ubuntu/*" \
  "Name=architecture,Values=x86_64" \
  --owners 099720109477 \
  --max-results 5

This lists all Ubuntu images in the current region, from the official Ubuntu company. The max-results filter means the query doesn't take a couple minutes to download the ocean.
As a human, you can manually inspect the results to find the ImageId that makes sense for your application.
The above query only returns two matches -- it's very easy and fast to get the image ID and move on!
Answer: This is an old thread but it still appears quite often.
There is a more detailed and official page here to get the latest image of all the Ubuntu versions on AWS: https://canonical-aws.readthedocs-hosted.com/en/latest/aws-how-to/instances/find-ubuntu-images/


InfoPath Horizontal Repeating Table

Question: How do you create Horizontal Repeating Tables in InfoPath 2013? I've found answers for 2010, but none of the solutions work in 2013
Answer: Check your form's compatibility. You can set a repeating section (under the section's properties) to repeat horizontally in InfoPath 2010 or 2013, but only if you are using a filler form.
Comment: Can you expand on what a filler form is? Can you do this with a web-based form?
Comment: A Filler Form is a template meant to be filled out InfoPath Filler. So, no, I'm afraid this is not possible in a browser (web-based) form - the option just isn't there in the control properties.

InfoPath Horizontal Repeating Table


TortoiseSVN Repo-Browser with DisplayLink workaround

Question: Using TortoiseSVN's Repo Browser crashes DisplayLink consistently.  Does anyone know of a workaround for this or alternative SVN clients?  I have latest versions of both.
Comment: I have versions:
- TortoiseSVN: v. 1.9.7
- DisplayLink:
Software Package: DisplayLink Graphics
Software Package Version: 8.2.2210.0
Software Package Date: 23rd June 2017

DisplayLink Ethernet Driver Version: 8.2.1629.0
DisplayLink Audio Driver Version: 8.2.1638.0

Windows 10 Build 14393 onwards:
 - DisplayLink Graphics Driver Version: 8.2.2139.0
 - DisplayLink Graphics Driver Date: 20th June 2017
Answer: because of you're version of Windows and DisplayLink driver in use, the driver doesn't see what application is running or how it is running. I wish I could have commented to get the details, but I don't have enough points to, yet.
Like for any crash, I suggest you collect the crash data and send it for analysis. DisplayLink has a Customer Support Tool collecting memory dumps and, they can analyse the stack to see.
Your configuration, with identical version numbers, has been reproduced but not the crash. DisplayLink uses TortoiseSVN internally.


Ebubuntu in elementary OS

Question: Can we install edubuntu tools  in elemaentry OS by typing sudo apt-get install ubuntu-edu-secondary ? will the system crash?
Answer: You can install the package in question using the command line as it is available in eOS without having to add any additional repos.
So far as crashes, I installed the package on an install of Loki running on a virtual machine and played around with it for a while and had no ill effects with the OS whatsoever. The Potato Guy app was cool! I also screwed around with the Pencil app and a couple others.
Lastly, depending upon your machine and speed of your internet connection, there was a large number of packages downloaded and installed which took some time to accomplish. If you have a slow connection, count on having time for a coffee break!
Good Luck!!!
P.S.-Before I installed the above, I had installed the 'software-properties-common' package as I had to do that before installing elementary Tweaks as well as some other apps. You may need to do so as well.

Ebubuntu in elementary OS


How do I get past the 4th phase of jack-in-the-box?

Question: I've been trying to beat the jack-in-the-box of Castle of Illusion, and I'm stuck in the 4th phase (where he sticks out all 4 springs and swings them around).
How do I beat the boss' 4th phase?
Answer: Youtube searching (and realizing you're probably talking about the 2013 game) gives me a video where the proper course of action seems to be to, um, jump over the springs.


Merge layers with different geometry

Question: I need to merge two different layers but they don't have the same geometry, in particular one contains points and one is a polygon (province). Is it possible to do so by converting them to the same geometry and what is the best way to do it?
Answer: You can't merge the two different geometry types into typical GIS file.
I think what you're looking for is "Join Attributes by Location." That will join the attributes of the point file into those of the polygon file, based on spatial intersection.
Answer: Assuming a provincial centroid wont cut it, I would just buffer the points to an appropriate distance for your purpose and use those polygons to merge with the provincial boundary.
Comment: I see, there is likely a more direct route but could you use a join from the points to the buffer and then merge?
Comment: Thank you for response, the problem is that buffers around the points don't have in the attribute table the original data of the points, in fact it is empty. I need to keep them in order to count the elements after merging.

Merge layers with different geometry


Candrakirti - what was his most important contribution?

Question: I'd like to look more on Candrakirti, and have a few questions about him. What was/is Candrakirtis most important contribution to Buddhist philosophy?

If you were to start reading Candrakirtis own works, where would you
start?
Can anyone give me a good tip for a comprehensive introduction to
Candrakirti?
Answer: There are different interpretations of Candrakirti, even among Madhyamika-Prasangika scholars. That said, Prasangika scholars generally hold that Buddhapālita (470 AD - 550 AD) gave the first Prasangika presentation in the form of a commentary to Nagarjuna and Aryadeva, but is not the founder of the Prasangika school. Bhāviveka (500 AD - 578 AD) then refuted Buddhapālita and is  to be regarded as the founder of the Madhyamika-Svatantrika school. It is thought that they did not debate face to face because Buddhapālita belonged to a lower class. Candrakirti (600 AD - 650 AD) then established the Madhyamika-Prasangika school by way of refuting Bhāviveka so-called Svatantrika positions. Candrakirti is held to be the founder of the Prasangika school (over Buddhapālita) because he established it through properly refuting another. It is sometimes thought that Candrakirti was Buddhapālita's reincarnation. It is also sometimes thought that he debated Bhāviveka face to face (although their commonly established date of their birth and death would not allow it)
As I said, there are different readings of Candrakirti, even among Madhyamika-Prasangika scholars. These differences are significant, and are in relation to:

The notion of other-emptiness & self-emptiness;
The nature of emptiness (whether it is an affirming or a non-affirming negation)
The way emptiness is realized (implicitly or explicitly)
The meaning of 'prasanga' and that of 'svatantra', and so forth.

I suggest that, first of all, you study the context and the possible meanings of the so-called Svatantrika / Prasangika distinction. Sara McClintock & Georges Dreyfus's The Svatantrika-Prasangika Distinction: What Difference Does a Difference Make? is interesting.
The two main Prasangika positions are:

Gorampa's
Tsongkhapa's.

Gorampa is known for criticizing Tsongkhapa's positions: he goes as far as to say that Tsongkhapa is in fact a proponent of Svatantrika tenets. Thus, studying Tsongkhapa in order to know what Gorampa refutes would be most relevant.
In relation to studying Tsongkhapa, I advise you to read Tsongkhapa along with his main disciples: Gyaltsab Je and Khedrup Je. Khedrup Je is usually easier than Gyaltsab Je. Tsongkhapa's commentary to Candrakirti was translated by Geshe Kelsang Gyatso, I will thus not expound on that. Also, from a Geluk perspective, we do not usually study Tsongkhapa's (or any Prasangika commentery to Candrakirti). We study Svatantrika commentaries to Candrakirti's Madhyamakavatara (i.e. Haribhadra, and so forth). Our gateway to the Prasangika system is other. It is Tsongkhapa's commentary to Nagarjuna (the Ocean of Reasoning), it is the Special Insight chapter of the Lam Rim Chen Mo, along with Tsongkhapa's Final Exposition of Wisdom, Gyaltsab Je's commentary to Shantideva (Shantideva also presented as a Prasangika himself). Having studied them, having understood them thoroughly, you could go a step further and read Candrakirti's root text (Madhyamakavatara) for yourself, and also read Gorampa's positions and his followers.
In relation to studying Gorompa, you may read
Ju Mipham, whose presentations accord with Gorampa's. Ju Mipham's commentary to  Chandrakirti's Madhyamakavatara is most relevant.


Is ぴえん a childish-sounding word?

Question: The written word ぴえん seems popular lately, but does it sound childish? I feel like only people under 20 might use this, or someone trying to appear cute. Is this impression accurate?
Comment: I think the article is accurate. It's the variant of びえん、えーん、うわーん、ひえーん, and stuff like that.
Comment: It's mostly [tweme](https://www.urbandictionary.com/define.php?term=tweme) to me.
Answer: Real small children don't use ぴえん, so "childish" may not be the right adjective to describe this. It's a fairly recent slangy buzzword used mainly by (female) teenagers and some otaku. As of late 2020, it's already becoming outdated. 男女問わず幅広い世代に浸透した is definitely an overstatement. Someone who are over 25 and use words like these intentionally would probably look like a try-hard (it depends on their personality, of course).

Is ぴえん a childish-sounding word?


Cannot start new project with Android Studio

Question: I just started using Linux Ubuntu, and downloaded and maybe set up Android Studio.
When I launch it, it does successfully, though it took hours to come here. But it gives me now :
Your Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later. You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs
I tried to do so and at SDKs I added Android SDK. But when I clicked "ok", the prompt was dismissed but nothing happened, that is, not added.
I tried "Android SDK" two items below SDKs, because Android SDK was empty. But this time, Apply button and OK button doesn't respond. When I look at command line at the moment this error was being displayed.
[ 550663]  ERROR - llij.ide.plugins.PluginManager - Android Studio (Preview) 0.4.6  Build #AI-133.1028713
[ 550663]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_05
[ 550663]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
[ 550664]  ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
[ 550670]  ERROR - llij.ide.plugins.PluginManager - OS: Linux

It looks like there isn't relavant answer to this. All the questions tend to end with  concluding "That's easy. Go Config, project default, project structure, and add Android SDK and Voila! You're good to go." Unfortunately no voila to me, so I here post this.
If anyone has an idea.
Answer: I have fix this ishue on Ubuntu 14.04, Android Studio 0.8 ::
sudo chmod 775 -R {your path}/android-studio/

In my case Studio were placed in /usr/local/android-studio ::
/usr/local/android-studio/android-studio/

Comment: I had a similar problem and this worked for me. Thank you @Biosonic
Answer: I'm using Android Studio 5.7 and jdk 7 in Ubuntu 14.04 without problems.
I'm not expert but i thought you was using an old android studio version and a new jdk version.
I searched:
You are using android studio 0.4.6 based on IntelliJ 13.0
http://tools.android.com/recent/androidstudio050released
And IntelliJ adds support for JDK 8 in 13.1 version
http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-released/
So try to upgrade Android Studio to 5.0 (based on 13.1) or better downgrade JDK version to 7 if you dont need it, perhaps not completely supported.
Comment: I thought I just downloaded the newest version but it may have been not. It solved when I re-downloaded the same(as I believe so) as I was using.
Answer: I was having a similar issue but on a clean install of Ubuntu 14.04, a fresh download of Android Studio 0.5.7, Oracle Java 8, Gradle 1.12 and the Android ADT Bundle 20140321. Every time I tried to bring up the Project Defaults to set the Android SDK location an exception appeared on the console with the same message you posted.
Before starting I set the various tool HOME environment variables to where those tools were installed, (which could be optional if you're installing all of these through the Ubuntu package manager..)
export GRADLE_HOME=/opt/DEV/gradle
export JAVA_HOME=/opt/DEV/jdk
export ANDROID_HOME=/opt/DEV/adt-bundle-linux-x86_64-20140321/sdk
export PATH=$PATH:$GRADLE_HOME/bin:$JAVA_HOME/bin:$ANDROID_HOME/tools

Then,

From the quick start dialog (presented when you first open Android Studio if you don't have a project already created) disable the Android Plugins found under Configure -> Plugins. Also disable any plugins Android Studio recommends when you disable the Android ones.
Restart Android Studio when prompted.
Add the Java JDK via Configure -> Project Defaults -> Project Structure -> Platform Settings: SDKs
Apply changes, head back into Configure -> Plugins and re-enable the Android Plugins.
Restart Android Studio when prompted.
Set the Android SDK Location and JDK Location under Configure -> Project Defaults -> Project Structure. When I did it, it was pre-filled so I just hit Apply.
Restart Android Studio
The SDK Manager is now a visible button under Configure and you can now create a new Android Project.

Upon creating a new Android Project, Android Studio then went off and download the various dependencies and Gradle 1.10. Annoying that it downloaded Gradle again, but at least Android Studio started to work after that.


Reading writing nfc tags

Question: I have just start reading and writing nfc tags using google nexus one . I have gone through several site like this. They have mostly given for a single string writing. Is that possible to write more data . For example in my case i have to write person id , place and timings .Is there any example like this ?  Thanks in advance
Answer: You can put whatever information you want - there are no limits for that. The only limitation is a space available on particular tag type which is different for different tag types. For the tag compatibility check the documentation, e.g. Nokia supports all NFC forun tags 1-4 + Mifare classic, while Nexus S might have some limitations here (http://developer.android.com/sdk/android-2.3.3.html).
You are free to use whatever data format you like to save on the NFC tag - but there are certain standards pushed by NFC Forum - just search internet for for NDEF/RTD terms.
The most widely used NFC tag is currently MIFARE Ultralight, but Broadcom BCM20203 NFC Tag might be option as well, but I am not sure if it is distributed or not.
BR
STeN
www.mautilus.com
Answer: I have created an Eclipse plugin for creating NDEF types of NFC payloads you might be interested in.
Also see the NDEF Tools for Java project for an Android boilerplate project for detecting, reading and writing NFC tags.

Reading writing nfc tags


How do you run SimpleTest from Hudson?

Question: I'm doing some work with CakePHP and want to use Hudson. I can run all kinds of plugins but I don't see anything for SimpleTest. Until Cake 2.0 comes out and they move to PHPUnit, I'd like to figure out how to run SimpleTest with Hudson.
Answer: This is an old question, but I thought I'd give my input...
We are still stuck on cake 1.3 and are using Jenkins. We use stagehand-test runner to run the tests and generate the junit report.
You can have your ant build run something like the following:
cakerunner --cakephp-app-path=src/app --log- junit=build/test-results/junit.xml -R src/app/tests
Then in Jenkins you will need to use the 'Publish JUnit test result report' instead of "Publish testing tools result report" where PHPUnit and other frameworks are listed.
I made a similar question not too long ago.
Answer: Are you having trouble running SimpleTest or are you having trouble getting Hudson to parse the test output so you can track tests and failures?
Regarding parsing, it looks like SimpleTest can generate some form of XML output (see Test reporter documentation), but it's not clear to me whether the Hudson xUnit plugin can parse it.
I would start by trying the xUnit plugin. If the SimpleTest XML output is not compatible out of the box, it's probably easiest to extend/modify the SimpleTest XML reporter to output a xUnit compatible format. A previous question about the expected XML unit test schema has some useful links regarding the expected format.

How do you run SimpleTest from Hudson?


about GO terms's name

Question: Did anyone know whether the GO terms can include more detail information? Like I can get the DotPlot of the GO terms as below:

The problem is that some of the genes, in the GO terms, is more about sinoatrial-node (SAN). So whether there is any method that we can do to dig deeper into the GO terms?
Answer: The various Gene Ontologies are arranged as Direct Acyclical Graphs. This means that each term can have children and parents. When a gene is annotated with a GO term, it also inherits all of that term's parents. Therefore, when you run a GO enrichment analysis, it is very common that you find the broader terms enriched since those are the ones shared by most genes.
For example, the Biological Process (BP) GO term GO:0003163 sinoatrial node development has the following tree:
 GO:0008150 biological_process
      GO:0048856 anatomical structure development
      GO:0032501 multicellular organismal process
          GO:0032502 developmental process
          GO:0007275 multicellular organism development
              GO:0048731 system development
              GO:0009888 tissue development
                  GO:0048513 animal organ development
                  GO:0072359 circulatory system development
                  GO:0060537 muscle tissue development
                      GO:0048738 cardiac muscle tissue development
                      GO:0007507 heart development
                      GO:0014706 striated muscle tissue development
                          GO:0003161 cardiac conduction system development
                              GO:0003163 sinoatrial node development
                                  GO:0060921 sinoatrial node cell differentiation

This means that any gene annotated with GO:0003163 will also be annotated with every one of the terms above it in the tree, all the way to the top of the graph. All genes with at least one BP GO term will also be annotated with GO:0008150, the root of the tree.
As you can see, your "muscle tissue development (GO:0060537)" is also there and is a parent of "sinoatrial node development". However, if you just ran an enrichment analysis (I ave no idea what you did since you haven't actually told us anything), then what will have happened is that there are many genes annotated with various different child terms of GO:0060537, but since all child terms will inherit the parent annotations, what you see is the parent and not the specific term you are looking for.
So yes, there are far more specific terms that what you show, but whether or not they appear in your results will depend on what you are doing.
Comment: Hi terdon, Thank you so much for your reply. Now it make more sense to me. And I would like to know how I can do to specific the GO terms like how can I show my child terms as I got the parent annotations? Here is my code on getting the DotPlot "cluster0_all_gene_ego<-enrichGO(cluster0_all_gene,keyType = 'SYMBOL', OrgDb = org.Mm.eg.db, ont = "BP", pAdjustMethod = "BH",pvalueCutoff = 1,qvalueCutoff = 1)
dotplot(cluster0_all_gene_ego)". So what's the next step I need to do to dig out the chid terms? Much appreciated for your answer.
Comment: @hua sorry, I don't speak R and anyway, this can't really be sorted in the comments. Please ask a new question about this. The problem will probably be your enrichment. There is likely no enrichment for more specific terms, that's why you see the parents. If you have term `A` which has the children `A1, `A2` and `A3`, and you have a gene annotated with each of the children, then only the parent will be enriched since all three will be annotated with the parent as well as the child term, but he child terms will not be overrepresented.
Comment: Hi terdon, I use the clusterProfiler, and I don't know what kind of the package or GO terms you use?
Comment: @hua please ask a new question. These sites are not supposed to work as forums, comments should only be used to ask for a clarification. Everything else should be in its own question. And I haven't worked with GO terms in more than 5 years now, and I almost never use R, I'm not the right person to ask. So ask a new question where the right person can see it :)
Answer: This ends up not being a question of what method to use, but rather how detailed the GO term database you're using is. GO terms are maintained by the Gene Ontology Consortium and are relatively broad for the most part, with a few more specific molecular signaling pathways included. If you search for the ontologies for "atrial" you'll find a number of relevant GO terms. The question mostly becomes whether those are sufficient for your needs. If they are, make sure you include "biological process" in your GO analysis. If not, you might have to make your own group of relevant genes.

about GO terms's name


How do I remove this stubborn ceiling light fixture?

Question: Please check the photograph of the light fixture.  All the bulbs have gone out and I cannot get the glass out to replace them. I unscrewed the decorative thing at the bottom. After that I unscrewed another bolt with washer but the glass is not moving. I'm not sure what to do after that. I'm trying to move the decorative thing on top of glass also, but it's moving at all.
Comment: The glass is probably being retained simply by friction and accumulated grime, if you've removed the hardware. You're lucky it hasn't fallen and broken... Try rotating it gently to see if you can determine what it's catching on.
Comment: Could you please provide a closer picture of the threaded tube/washer/fittings at the bottom of the glass? I am almost 100% certain that once all nuts and finials are removed from that threaded tube, the glass will come off. Be careful it does not fall on your head.
Comment: Photography tip. Point the camera so the middle point in the image is over an area with some sharp edges, like the fancy moulding at the top, then shoot and crop later. On some cameras / phones you can select a suitable point to focus on instead - by tapping the view-screen or moving an X-Y control. On some cameras you can lock focus with a half press, then move the camera to frame the object and press fully.
Comment: Maybe the gold clips to the back plate in addition to the center screw.  The picture is not very clear.
Answer: The light fixture should have come loose after loosening that nut.
Try the following:

Get a step ladder or ladder and place it directly bellow the light.
Get on the ladder :)
Determine if the fixture is 2 separate pieces or 1 whole piece (glass + gold decorative ring)
Carefully grab the light fixture with both hands and firmly turn the light fixture a few degrees in either direction. Be careful as the glass from the light fixture should come free.

If it does not it could be stuck ceiling due to paint or grime as someone mentioned in the comments.
If this is the case, try being a little more aggressive in your rotation, again being careful as it can slide free.
Answer: Use a credit card as a prying tool on the stubborn glass dome to separate it from the fixture base. Slip the credit card in between the seam like you're slicing a piece of cake.
It should come off easily that way.
Answer: The nut in the center should be all that is holding the glass. I think you need to look closely at the edge of the glass where it contacts the fixture for traces of an adhesive someone may have used and maybe pry gently with a plastic tool keeping the nut and washer on the threads like in the picture. Other than that I'm not sure without damaging the fixture.