Spring LDAP 2.1.0 Released

2016-05-18 19:13:05

On behalf of the community, I’m pleased to announce the release of Spring LDAP 2.1.0.RELEASE. The highlights of this release include:#380 - Support for Spring Data Hopper#384 - Early support for Spring IO Platform 2.1#351 - Support for commons-pool2#370 - Support property placeholders in XML Namespace#392 - Document Testing SupportMigrated from JIRA to GitHub IssuesAdded Gitter ChatFor complete details of 2.1 refer to the changelog for 2.1.0.RC1 and 2.1.0.RELEASEIf you have feedback on this release, I encourage you to reach out via StackOverflow, GitHub Issues, or via the comments section. You can also ping me @rob_winch or Joe (our latest full-time Spring Security team member) @joe_grandja on Twitter.

Senate committee questions Facebook over news selection

2016-05-11 05:24:06

A U.S. Senate committee launched an inquiry on Tuesday into how social media website Facebook selects its news stories after a report that company employees blocked news about conservative issues from its "trending" list.The Senate Committee on Commerce, Science and Transportation asked Facebook Chairman and Chief Executive Mark Zuckerberg in a letter to answer questions about the company's news curation practices and its trending topics section.The investigation comes after Gizmodo reported on Monday that a former Facebook employee claimed workers "routinely suppressed news stories of interest to conservative readers," while "artificially" adding other stories to the trending list.U.S. Senator John Thune, the chairman of the committee, told reporters Tuesday his primary concern was that Facebook may be engaging in deceptive behavior if employees meddled with what trending news was displayed.“If you have a stated policy, which your followers or your audience knows to be the case, that you use an objective algorithm for trending topics -- you better follow that policy,” Thune said. “It’s a matter of transparency and honesty and there shouldn’t be any attempt to mislead the American public.”The letter to Facebook includes requests for information on the organizational structure for the "Trending Topics feature." Adam Jentleson, deputy chief of staff to Democratic Senator Harry Reid, balked at the request in a statement provided to Reuters."The Republican Senate refuses to hold hearings on [Supreme Court nominee] Judge [Merrick] Garland, refuses to fund the president’s request for Zika aid and takes the most days off of any Senate since 1956, but thinks Facebook hearings are a matter of urgent national interest," Jentleson said.A Facebook spokesman said it had received Thune's request for more information about how "Trending Topics" works. "As we investigate, we will also keep reviewing our operational practices around Trending Topics — and if we find they are inadequate, we will take immediate steps to fix them," the spokesperson said.Tom Stocky, the vice president of search at Facebook, responded to the allegations Monday night in a lengthy post published to the social media site saying there are "strict guidelines" for trending topic reviewers who "are required to accept topics that reflect real world events." He added that those guidelines are under "constant review" and that his team would "continue to look for improvements." Katie Drummond, the editor-in-chief of Gizmodo, called her publication's story "accurate" in a statement released to Reuters Tuesday.Gizmodo's report alarmed several social media users, with some conservatives in particular criticizing Facebook for alleged bias."'If a Conservative Speaks - and Facebook Censors Him - Does He Make a Sound?'" Wisconsin Governor Scott Walker (@ScottWalker) wrote on Twitter Tuesday, with a link to a National Review story that detailed the allegations against Facebook. (Reporting By Amy Tennery; additional reporting by Dustin Volz in Washington; Editing by Alan Crosby)

Diving into Visual Studio 2015 (Day #1) : Code Assistance

2016-05-10 02:10:07

In this series, I’ll cover how development with Visual Studio 2015 can increase your productivity and enable you to write cleaner and more optimized code.Download PDF_Article.zip - 1.2 MBIntroductionI have always been a great admirer of Visual Studio IDE (Interactive Development Environment). Visual Studio has proved to be the best IDE for me and I use it for almost all my coding as well as debugging work. My love for the IDE has forced me to start a series of articles to explain what Visual Studio 2015 now offers to a developer in terms of cross-platform development, cloud-based development, code assistance, refactoring, debugging, and more. The power of Visual Studio is not only limited to development and coding but it offers a one-stop solution to all the requirements needed during coding, development, code analysis, or deployment. I’ll use Visual Studio Enterprise 2015 throughout the series and explain how one can leverage Visual Studio to be more productive. In this section of the series, I’ll cover how development with Visual Studio 2015 can increase your productivity and enable you to write cleaner and more optimized code.Code AssistanceIn earlier versions of Visual Studio, you must have seen that whenever you write a buggy code, the code editor provides suggestion with the help of a tool tip. This feature has improved a lot and is shown as a light bulb icon in the Visual Studio code editor. This option provides you with the real-time suggestions while coding in Visual Studio code editor to improve code quality or fix the coding issues. It helps you in identifying syntax errors, provides useful code hints and assists you with static code analysis. I am using a sample code to explain the enhancements, for that I have created a console application in my Visual Studio and named it VisualStudio2015ConsoleApplication.Syntax Error SuggestionsSuppose there is syntax error in your code like I purposely did in the below image:The light bulb icon immediately shows up when you click your mouse over the erroneous variable having a red line and displays an issue summary, an error code with a link to documentation. It also displays a possible list of code fixes and refactorings. In the above example, I am writing an add method, taking two parameters a and b, but I am trying to return a result as a+bh. Now since "bh" is not declared anywhere in the method or passed as a parameter, the light bulb icon shows up and provides certain possible options or suggestions about how this variable can be taken care of. It suggests generating a variable named "bh", create a field or property as well.If you hover on the error line you’ll be shown a light bulb icon showing error and potential fixes.Note that you can also use Ctrl+. to see the error using your keyboard. If you click on Show potential fixes, you’ll get the same options as shown in the first image. Alternatively, if by any chance you doubt the light bulb icon and build your console application, you’ll again be shown the same error as follows:The syntax error assistance displays a light bulb icon, a description of the error, and a link to show possible fixes as well. When you click on the error code i.e. CS0103 you’ll be redirected to the documentation of the error code. It also offers to preview changes once you go for any of the suggestions provided by the light bulb icon. So if I click on Preview changes it shows me the preview of the option that I have chosen as shown below.Now we don’t have to go to the code and explicitly define that variable. Just click on Apply button and Visual Studio takes care of everything. Therefore, the first option that I chose is now reflected in my code.I remember that I used to do these on the fly modifications to improve productivity using ReSharper. We saw that we got the same error on compiling the application which proves that light bulb icon’s code suggestion can help us write error free code before even compiling the application and getting to know about the actual error after a compile. Therefore, we don’t have to wait to compile the application to know about compile time error. You can test different scenarios to explore the syntax error suggestions given by the light bulb icon in our day to day programming.Code SuggestionsLet’s take another scenario. Suppose I define an interface named ICalculator and add a class named Calculator and inherit the calculator.cs class from that interface.Interface1: interface ICalculator 2: { 3: int Add(int a, int b); 4: int Subtract(int a, int b); 5: int Multiply(int a, int b); 6: float Divide(float a, float b); 7: } Class1: public class Calculator : ICalculator 2: { 3: } You’ll see that there will be a red error line under the ICalculator interface named in calculator class. You can get to see the light bulb icon in the same way as shown in previous example i.e. hover or click on error. Here you’ll see that light buld icon is assisting us with some additional conceptual information, like that the interface that we are using contains several methods that needs to be implemented in the Calculator class.Therefore, we see that light bulb not only assists us in finding syntax errors but also suggests a conceptual or logical resolution of mistakes we make in our programming. When you show on "Show potential fixes link" it will show all the possible fixes for this error in a detailed user-friendly manner with an option to resolve and fix it with preview as well.In the above image, you can see that the code assistance is providing an option to either implicitly and explicitly implement an interface ICalculator, and if we analyse we can clearly say that these are the only possible options that a developer may opt for in this scenario. Moreover, it shows the error does link referring to its description. If you choose the first option and choose preview changes link, you’ll see the following preview and you can choose to apply that if it is what you need.So click apply and we get the following class with all the interface methods having default implementations. 1: public class Calculator : ICalculator 2: { 3: public int Add(int a, int b) 4: { 5: throw new NotImplementedException(); 6: } 7: 8: public float Divide(float a, float b) 9: { 10: throw new NotImplementedException(); 11: } 12: 13: public int Multiply(int a, int b) 14: { 15: throw new NotImplementedException(); 16: } 17: 18: public int Subtract(int a, int b) 19: { 20: throw new NotImplementedException(); 21: } 22: } Likewise, the light bulb icon provides numerous code suggestion options while development and coding following which we can increase the productivity of writing code without unnecessarily compiling the application and writing the code manually.Refactoring SuggestionsThe light bulb icon is not only limited to code suggestions and syntax error suggestions but also comes with a great capability of refactoring techniques. When I added the calculator class, the class was added with few default namespaces as shown below.In the above scenario as we can see there are a few namespaces added by default in the class that are currently not used. When you hover the mouse over those namespaces, the light bulb icon shows up with some refactoring suggestions as shown below.The above image shows the suggestion of Lightbulb icon asking to remove "unnecessary usings." We see here that Visual Studio is smart enough to know what refactoring is required in the code and accordingly can suggest the developer to optimize the code. If you apply the suggestion it will remove the unnecessary "usings" from your code. You can also select to fix all occurrences of this issue in the current document, the project, or the solution. If we just want to make this local change, we can select Remove Unnecessary Usings here, and the unused usings are removed.Quick Suggestions and RefactoringNow when I go to my Calculator.cs class and define the Add method as follows.1: public int Add(int a, int b) 2: { 3: int c = a + b; 4: return c; 5: } It is the correct way of defining an add method, but on second thought, what if I want to refactor or optimize this method? Visual Studio 2015 provides us with the facility to do quick refactoring of code with suggestions using an option enabled in the context menu of the editor. Just right-click on "c" and you’ll get to see an option at the top of the context menu saying "Quick Actions and Refactorings…".Note that in above code block, Visual Studio didn’t suggest anything implicitly and due to some syntax error but we have the option to choose and ask for Visual Studio’s help explicitly to know if a particular written code could be enhanced, optimized, refactored more or not. There could be cases that choosing this option too does not show any suggestion to improve code, which means your code is already refactored and optimized. But in the above-mentioned scenario, if we select the "Quick Actions and Refactorings…" option, VS gives us two options to further optimize the code.or,If we have a glance over both the options, the first says to skip using temporary variable and just return (a+b) (which is a good suggestion by the way) and the second option says to extract a method out of the code and put (a+b) in any other method and return from there. Now in these situations, it is the choice of the developer on what option he chooses. I choose the first option and apply the changes that it showed me in preview and I got following code which looks better that the earlier one.1: public int Add(int a, int b) 2: { 3: return a + b; 4: } Note that these are the small examples that I am taking to just explain the power of Visual Studio 2015. There could be complex and tricky scenarios where you may actually need a lot of help through these features.ConclusionI took few representative examples from a large set of possible scenarios where Code assistant of Visual Studio 2015 can help you. You can explore the IDE and play around to see more such situations where you feel the change from earlier versions of Visual Studio to this one. In the next section, I’ll talk about Live Static Code Analysis. For more technical articles you can reach out to my personal blog, CodeTeddy.Referenceshttps://app.pluralsight.com/courses/visual-studio-2015-first-look-ide

Mercury poised for rare 'transit' across sun's face on Monday

2016-05-09 18:04:06

CAPE CANAVERAL, Fla. Stargazers will have a rare opportunity on Monday to witness Mercury fly directly across the face of the sun, a sight that unfolds once every 10 years or so, as Earth and its smaller neighboring planet come into perfect alignment. The best vantage points to observe the celestial event, known to astronomers as a transit, are eastern North America, South America, Western Europe and Africa, assuming clouds are not obscuring the sun. In those regions, the entire transit will occur during daylight hours, according to Sky and Telescope magazine.But Mercury is too small to see without high-powered binoculars or a telescope, and looking directly at the sun, even with sunglasses, could cause permanent eye damage. Fortunately NASA and astronomy organizations are providing virtual ringside seats for the show by live-streaming images of the transit in its entirety and providing expert commentary.The tiny planet, slightly larger than Earth’s moon, will start off as a small black dot on the edge of the sun at 7:12 a.m. Eastern (1112 GMT). Traveling 30 miles (48 km) a second, Mercury will take 7.5 hours to cross the face of the sun, which is about 864,300 miles (1.39 million km) in diameter, or about 109 times larger than Earth.“Unlike sunspots, which have irregular shapes and grayish borders, Mercury’s silhouette will be black and precisely round,” Sky and Telescope said in a press release. The event will come into view in the western United States after dawn, with the transit already in progress. The show will end at sunset in parts of Europe, Africa and most of Asia.NASA Television, available on the Internet, will broadcast live video and images from the orbiting Solar Dynamics Observatory and other telescopes. The show includes informal discussions with NASA scientists, who will answer questions submitted via Twitter using the hashtag #AskNASA.Other options for armchair astronomers include: - SkyandTelescope.com plans a live webcast with expert commentary, beginning at 7 a.m. EDT/1100 GMT.- Slooh.com, which offers live telescope viewing via the Internet, will host a show on its website featuring images of Mercury taken by observatories around the globe. - Europe’s Virtual Telescope, another robotic telescope network, will webcast the transit at www.virtualtelescope.eu Scientists will take advantage of Mercury’s transit for a variety of science projects, including refining techniques to look for planets beyond the solar system. “When a planet crosses in front of the sun, it causes the sun’s brightness to dim. Scientists can measure similar brightness dips from other stars to find planets orbiting them,” NASA said.Mercury's last transit was in 2006 and the planet will pass between the sun and Earth again in 2019. After that, the next opportunity to witness the event will not come until 2032. (Editing by Frank McGurty and James Dalgleish)

Uber, Lyft spend big, lose big in Texas vote on driver fingerprinting

2016-05-08 15:54:05

AUSTIN, Texas On-demand ride companies Uber and Lyft suffered an embarrassing defeat in a Saturday election in Austin as voters backed a measure requiring fingerprint background checks for drivers.The two companies spent more than $8 million to repeal a city ordinance requiring the fingerprint-based criminal checks and launched what turned into the most expensive race in the Texas capital's history. Voters said by a margin of 56 to 44 percent they wanted the fingerprint checks to stay. The companies outspent their opponents by 80-to-1 and when the votes were tallied their campaign contributions broke down to being more than $200 for each vote in favor of their position. "Disappointment does not begin to describe how we feel about shutting down operations in Austin," Uber's Austin general manager Chris Nakutis said in a statement.The stakes were high for the privately held Uber [UBER.UL] and Lyft, which say their background checks are already rigorous and ensure safety. "Unfortunately, the rules passed by City Council don't allow true ridesharing to operate," Lyft said, adding it will suspend operations in Austin as of Monday. The loss could prod other cities to require fingerprint criminal background checks, encouraged that they can survive a bruising electoral battle with the ride-hailing services, analysts said. The costly municipal election in Austin came as other cities consider imposing fingerprint-based background checks on drivers. The Austin election marked the first time a major U.S. city put the regulations to a vote, which happened after a petition drive by Ridesharing Works for Austin, the political action group underwritten by Uber and Lyft.Residents were asked to decide whether a transportation ordinance passed by the City Council in December should be repealed and replaced with one backed by the on-demand ride companies.The city ordinance calls for all ride-hailing service drivers to have fingerprint-based criminal background checks, while the ride-hailing companies backed one that does not. The group supporting mandated fingerprinting said the heavy spending was a signal that the Uber and Lyft campaign was motivated more by corporate profits than passenger safety.Other places battling over fingerprints include Atlanta and Houston, which along with New York is one of the two major U.S. cities where Uber operates even though its drivers are required to undergo the fingerprint background checks. (Reporting by Jon Herskovitz)

Older Post
Lufthansa reports near miss with drone over Los Angeles
SpaceX rocket booster makes breakthrough landing at sea
Einstein's gravitational waves detected in scientific milestone