SecurityCentric is your source for Blog Aggregation in the Security industry

What is Mixed Dysarthria and Can I Get Disability If I Have It?

 Mark As Read    

Speech is probably the most essential aspect of communication. Communication is made harder when anything hinders your ability to speak. Dysarthria is a motor speech condition. Dysarthria is characterized by a distortion of your speech. Dysarthria causes your speech to be slurred, hard to understand or slow. You may also have difficulty controlling...

Disability Blog 15 hours, 5 min ago

House Passes HR 4310 with Cyber Measures

 Mark As Read    

Yesterday, after two long days of debate including the consideration of over 100 amendments the House passed H4310, the National Defense Authorization Act for Fiscal Year 2013, by a bipartisan vote of 299 to 120. The cyber provisions of the bill that I described in an earlier blog remain in the bill (one with a floor revision). Three cyber-related ...

Chemical Facility Security News 21 hours, 36 min ago

Developing and Testing a Facebook application

 Mark As Read    

Typically I develop my websites on trunk, then merge changes to a testing branch where they are put on a 'beta' website, and then finally they are merged onto a live branch and put onto the live website. With a Facebook application things are a bit tricky. As you can't view a Facebook application through a normal web browser (it has to go throu...

How to properly handle session and access token with Facebook PHP SDK 3.0?

 Mark As Read    

In the PHP 3.0 SDK there is no getSession() or any session handling from outside the Facebook api available. Some days ago the developers of facebook have also somehow updated the JavaScript sdk, according to this blog entry and this bug report . Within the last few days, a change was introduced into the hosted JS SDK which broke all compa...

Facebook Oauth Logout

 Mark As Read    

I have an application that integrates with Facebook using Oauth 2. I can authorize with FB and query their REST and Graph APIs perfectly well, but when I authorize an active browser session is created with FB. I can then log-out of my application just fine, but the session with FB persists, so if anyone else uses the browser they will see the p...

How does Facebook Sharer select Images?

 Mark As Read    

When using Facebook Sharer, Facebook will offer the user the option of using 1 of a few images pulled from the source as a preview for their link. How are these images selected, and how can I ensure that any particular image on my page is always included in this list? Source: Tips4all

Facebook Like-Button - hide count?

 Mark As Read    

In the setup dialog for the Like-Button, there are only two options for layout: Unfortunately, the numbers for the website of my employer is nowhere near 22'000, so the powers that be have decided that we should not show the number of "likes" until said number is a little more in our favour. As far as I know, I don't hav...

How to count all the lines of code in a directory recursively?

 Mark As Read    

We've got a PHP application and want to count all the lines of code under a specific directory and its subdirectories. We don't need to ignore comments, as we're just trying to get a rough idea. wc -l *.php That command works great within a given directory, but ignores subdirectories. I was thinking this might work, but it is returning 74, ...

Why main does not return 0 here?

 Mark As Read    

I was just reading ISO/IEC 9899:201x Committee Draft ” April 12, 2011 in which i found under 5.1.2.2.3 Program termination ..reaching the } that terminates the main function returns a value of 0. it means if you don't specify any return statement in main() , and if the program runs successfully, then at the closing brace } of main w...

C++ gdb GUI

 Mark As Read    

Briefly: Does anyone know of a GUI for gdb that brings it on par or close to the feature set you get in the more recent version of Visual C++? In detail: As someone who has spent a lot of time programming in Windows, one of the larger stumbling blocks I've found whenever I have to code C++ in Linux is that debugging anything using commandline g...

Difference between binary semaphore and mutex

 Mark As Read    

Is there any difference between binary semaphore and mutex or they are essentialy same? Source: Tips4all

How does this giant regex work?

 Mark As Read    

I recently found the code below in one of my directories, in a file called doc.php . The file functions or links to a file manager. It's quite nicely done. Basically, it lists all the files in the current directory, and it lets you change directories. It had access to all my files (add, rename, info, delete...). I don't remember installing it. ...

Modify Address Bar URL in AJAX App to Match Current State

 Mark As Read    

I'm writing an AJAX app, but as the user moves through the app, I'd like the URL in the address bar to update despite the lack of page reloads. Basically, I'd like for them to be able to bookmark at any point and thereby return to the current state. How are people handling maintaining RESTfulness in AJAX apps? Thanks in advance. Source: Tips4a...

Dear Jailbreaker, Apple Wants to Have a Word with You

 Mark As Read    

After banning the word "jailbreak" from its app store and music library, Apple today reversed course and again permits the term - slang for hacking into a device to download unauthorized content -- to appear on iTunes and its App Store.On Thursday bloggers noticed Apple had censored the word, using the Thin Lizzy album "Jailbreak" as an example. Fo...

threatpost 1 day ago

ASP.NET MVC controller actions that return JSON or partial html

 Mark As Read    

I am trying to create controller actions which will return either JSON or partial html depending upon a parameter. What is the best way to get the result returned to an MVC page asynchronously? Source: Tips4all

Safely turning a JSON string into an object

 Mark As Read    

Given a string of JSON data, how can you safely turn that string into a JavaScript object? Obviously you can do this unsafely with something like... var obj = eval("(" + json + ')'); ...but that leaves us vulnerable to the json string containing other code, which it seems very dangerous to simply eval. Source: Tips4all

Dynamically adding a form to a Django formset with Ajax

 Mark As Read    

I'd like to be able to automatically add new forms to a Django formset with an ajax function. I.e., the user clicks an "add" button and some javascript will add a new form (which is part of the formset) to the page. Thanks for the help in advance. :-) Source: Tips4all

How do HttpOnly cookies work with AJAX requests?

 Mark As Read    

JavaScript needs access to cookies if AJAX is used on a site with access restrictions based on cookies. Will HttpOnly cookies work on an AJAX site? Edit: Microsoft created a way to prevent XSS attacks by disallowing JavaScript access to cookies if HttpOnly is specified. FireFox later adopted this. So my question is: If you are using AJAX on a s...

.NET JIT potential error?

 Mark As Read    

The following code gives different output when running the release inside Visual Studio, and running the release outside Visual Studio. I'm using Visual Studio 2008 and targeting .NET 3.5. I've also tried .NET 3.5 SP1. When running outside Visual Studio, the JIT should kick in. Either (a) there's something subtle going on with C# that I'm missi...

What is the difference between Decimal, Float and Double in C#?

 Mark As Read    

What is the difference between Decimal , Float and Double in C#? When would someone use one of these? Source: Tips4all

If strings are immutable in .NET, then why does Substring take O(n) time?

 Mark As Read    

Given that strings are immutable in .NET, I'm wondering why they have been designed such that string.Substring() takes O( substring.Length ) time, instead of O(1)? i.e. what were the tradeoffs, if any? Source: Tips4all

How do you give a C# Auto-Property a default value?

 Mark As Read    

How do you give a C# Auto-Property a default value? I either use the constructor, or revert to the old syntax. Using the Constructor: class Person { public Person() { Name = "Default Name"; } public string Name { get; set; } } Using normal property syntax (with a default value) private string name = "Default ...

Virtual member call in a constructor

 Mark As Read    

I'm getting a warning from ReSharper about a call to a virtual member from my objects constructor. Why would this be something not to do? Source: Tips4all

how to create an "array of selectors' in objective-c

 Mark As Read    

i'm using the iphone sdk (3.0) and i'm trying to create an array of selectors to invoke a variety of methods within one class. Obviously, I'm doing something wrong (I think @selector isn't considered a class and so stuffing them into an NSArray isn't working). I tried this, but it's obviously wrong. Is there a simple way to have an arra...

iPhone: Setting Navigation Bar Title

 Mark As Read    

Hey all. I'm still pretty new to iPhone development, and I'm having a bit of trouble figuring out how to change the title of my Navigation Bar. On another question on this site somebody recommended using : viewController.title = @"title text"; but that isn't working for me...Do I need to add a UINavigationController to accomplish this? Or m...

UIButton: how to center an image and a text using imageEdgeInsets and titleEdgeInsets?

 Mark As Read    

If I put only an image in a button and set the imageEdgeInsets more close to the top, the image stays centered and all works as expected: [button setImage:image forState:UIControlStateNormal]; [button setImageEdgeInsets:UIEdgeInsetsMake(-15.0, 0.0, 0.0, 0.0)]; If I put only a text in a button and set titleEdgeInsets more close to the bottom...

Does UIGestureRecognizer work on a UIWebView?

 Mark As Read    

I am attempting to get a UIGestureRecognizer working with a UIWebview which is a subview of a UIScrollView. This sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires, but when numberOfTouchesRequired is set to one the selector doesn't fire. Here is my code: UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer...

How to listen for a Webview finishing loading a URL in Android?

 Mark As Read    

I have a webview that is loading a page from the Internet. I want to show a progressbar until the loading is complete. How do I listen for the completion of page loading of a WebView ? Source: Tips4all

Looking for a question that combines the understanding of few web technologies

 Mark As Read    

I am teaching a web development course at a CS department, I wrote most of the final test by now, each question focus on a specific feature or a specific technology, I wonder if you can think of/recommend a question that combine the knowledge of few technologies.. The course mostly covers: HTML, CSS, JS, HTTP, Servlets, JSP and JDBC. (as we...

Eclipse: Set maximum line length for auto formatting?

 Mark As Read    

I am working with Java. If I hit Ctrl + Shift + F in Eclipse Helios, it will auto format my code. At a certain point, it wraps lines. I would like to increase the maximum line length. How can I do this? Source: Tips4all

Very small programs to improve programming skills?

 Mark As Read    

I realize that to become a better programmer, you need to program! So obviously the more practice, the better you become. My problem is this. I am currently in university, and I find my course load is a bit daunting, and I don't have a lot of free time. I don't think I could really take on a big project, particularly I don't think I would have ...

How do I use jQuery to select all children except a select element

 Mark As Read    

I have a div (let's say the id is "container") with many elements in it, including a select element. I'd like to select all everything in the div except the select. Things I've tried: $("#container *:not(select)") $("#container *:not(#selectorid)") //put a div around the select and... $("#container *:not(#selectorcontainer)") $("#container *:no...

add "readonly' to (jQuery)

 Mark As Read    

How can i add "readonly" to a specific <input > ? .attr('readonly') does not work. Source: Tips4all

jQuery click off element event

 Mark As Read    

I have a floating div that gets displayed, and I want it to be hidden when the user clicks off the div. This would be similar to the .hover() funtion callback when hovering off an element. Only I want to do this for click. I tried just setting a click event for the body, which would hide the div, but that gave unexpected results. Anyone hav...

Rails date/time picker (hopefully jquery)

 Mark As Read    

Looking for a date and datetime picker that will integrate fairly seamlessly with Rails. I'm sure some people must be using something similar. I have tried the unobtrusive date picker plugin but it breaks with the latest release of Rails. calendar date select plugin uses prototype which I have removed from my a...

jQuery and "Organized Code'

 Mark As Read    

I've been struggling lately with understanding the best way to organize jQuery code. I asked another question earlier and I don't think I was specific enough ( found in this question here ). My problem is that the richer you make an application, the quicker your client side gets out of control. Consider this situation... //Let's start some j...

Pass parameters in setInterval function

 Mark As Read    

How to pass parameter while call a function using setInterval. viz. setInterval('funca(10,3)',500); is incorrect. Source: Tips4all

Use JavaScript to place cursor at end of text in text input element

 Mark As Read    

What is the best way (and I presume simplest way) to place the cursor at the end of the text in a input text element via JavaScript - after focus has been set to the element? Source: Tips4all

Fixed positioning in Mobile Safari

 Mark As Read    

Is it possible to position an element fixed relative to the viewport in Mobile Safari? As many have noted, position: fixed doesn't work, but Gmail just came out with a solution that almost is what I want “ see the floating menu bar on the message view. Getting real-time scroll events in JavaScript would also be a reasonable solution. Source: T...

apache rewrite rules issue for specific pages

 Mark As Read    

I have problem with my .htaccess redirections. When I type: http://www.domain.com/contact it goes to the index.php and not the contact.php here's my .htaccess: Redirect 301 /clients http://clients.domain.com RewriteEngine On SetEnvIf Host ^www. page=www SetEnvIf Host ^mob. page=mobile RewriteBase / SetEnvIfNoCase User-Agent "^Wget"...

.htaccess r=301 vs r=302

 Mark As Read    

I am creating rules in my .htaccess for mobile, or bad pages etc... I am using these rules: rewriterules badpage /goodpage.html [r=302] rewriterules iphone /iphone.html [r=301] Which one is better to use? I know is temporary and permanent, but when a temporary becomes permanent, my understanding is both do the same thing so same re...

.htaccess and params

 Mark As Read    

i digg on the internet about .htaccess and rewrite rules i need to do with my site. i saw something i dont understand and want to know what it means i am wondering what is the difference between the 2 regular expression that i need to use for my site among all others i need to use): RewriteRule ^home$ mainpage.php?id=$1 [QSA] and ...

.htaccess newbie issue using mod_rewrite

 Mark As Read    

I need to create SEO-friendly urls for my site. I found out I can use .htaccess to rewrite them. So I tried this: > http://www.domain.com/page/1/mypage > http://www.domain.com/user/2/myuser > http://www.domain.com/help/3/myhelp Now I am stuck with a common rule and I don't understand Ant to redirect traffic based on the name of the...

The evolving role of the CISO

 Mark As Read    

New study by IBM A study by IBM’s Center for Applied Insights concludes that there are now three ‘types’ of CISO: influencers, protectors and responders. Evolution towards the ‘influencer’ role is necessary, and happening. Security is now seen as a vital aspect of business, and the role and influence of the chief information security officer is co...

Shoaib Yousuf 1 day ago

Weekly Roundup: May 18, 2012 – Smartphone Security, Cyber Threat Trends and the Importance of Secure Development

 Mark As Read    

Trending Security News Security news stories this week focused on smartphone security and GPS tracking; our Security Development Conference in DC; and a report on security technology trends with a few stories also covering malware stats and cyber-attacks...(read more)

Defense Contractor Northrop Grumman Hiring For Offensive Cyber Ops

 Mark As Read    

Defense giant Northrop Grumman is hiring software engineers to help it carry out "offensive cyberspace operations," according to a recent job posting. Defense giant Northrop Grumman is hiring software engineers to help it carry out "offensive cyberspace operations," according to a recent job posting. ...

threatpost 1 day ago

ZTE Score M Android Phone Found to Have Backdoor Installed

 Mark As Read    

UPDATE--An Android handset produced by Chinese manufacturer ZTE has a backdoor installed that could enable an attacker to take control of an affected device remotely and run arbitrary code. The manufacturer has acknowledged the issue in the ZTE Score M, which includes a harcoded password, and says that it plans to push out a fix soon. read more...

threatpost 1 day ago

Global Payments Breach A Year Older Than First Reported

 Mark As Read    

Alerts issued by Visa and Mastercard earlier this week suggest that a breach at payment processor Global Payments dates to January 2011, a full year earlier than the company initially announced. Alerts issued by Visa and Mastercard earlier this week suggest that a breach at payment processor Global Payments dat...

threatpost 1 day ago

Facebook Class Action Lawsuit Seeks $15 Billion for Privacy Violations

 Mark As Read    

A class action lawsuit filed against the social networking giant combines 21 lawsuits from across the country. Separately, a German official has also expressed concerns about Facebook's privacy approach as well. - A class action lawsuit filed against Facebook in California is seeking a whopping $15 billion in damages for privacy violations tied ...

Security
Welcome!
SecurityCentric aggregates blogs for the Security industry.
Custom Feeds
Add any RSS feed to the information you read daily.
Blocked Feeds
Block feeds to remove blogs you’re not interested in.
Account Settings
Customize the site by adding or removing feeds.

About Us

SecurityCentric is your source for all your Security news.

Have a Suggestion for Us?
Know of a Security blog that we're missing? Let us know!

Share SecurityCentric.com