Universities aren't graduating cybersecurity experts fast enough to help the government head off security threats, according to the Department of Homeland Security's Cybersecurity director.
Nullable types vs Non-nullable types While developing our C# projects its frequent the null comparison operation to avoid null exceptions. This simple operation is mainly coded using the "var x = null" code example inside an if clause. However not all types of variables are nullable, which means that setting a variable to null is not allowed in every cases, it depends on what kind of type are you defining. But what if there was an extension to your non-nullable type that would convert your variable types to nullable? This extension really exists. As I said before in C# you have nullable types which represent all the values of an underlying type, and an additional null value and can be declared easily using "T?", where T is the type of the variable and for example the normal int type cannot be null, so its a non-nullable type, however if you define a "int?" your variable can be null, what you do is convert a non-nullable type to a nullable type. Example: int x=null; Not allowed int? x=null; Allowed While using nullable types you can check if a variable is null the same way you do it with nullable types: But what about setting a default value when a certain variable is null? In this cases the c# .net framework let you set a default value when you try to assign a nullable type to a non-nullable type, using the ?? operator. If you don't use this operator you can still catch the InvalidOperationException which is throw in this cases. For example without the ?? operator : Using the ?? operator your code becomes cleaner and more easy to read and you get a bonus, you can set a default value for multiple variables using the ?? in a chain set. That’s it, Thanks, Rui Machado rpmachado.wordpress.com
Create Manual Test Scripts 50% Faster with Oracle User Productivity Kit
Thursday, March 29, 2012
11:00 am – 12:00 pm ET
Click here to register now for this informative webinar.
Oracle UPK enhances the testing phase of the implementation lifecycle by reducing test plan creation time, improving accuracy, and providing the foundation for reusable training documentation, application simulations, and end-user performance support—all critical assets to support an enterprise application implementation.
With Oracle UPK:
Reduce manual test plan development time - Accelerate the testing cycle by significantly reducing the time required to create the test plan.
Improve test plan accuracy - Capture test steps automatically using Oracle UPK and import those steps directly to any of these testing suites eliminating many of the errors that occur when writing manual tests.
Create the foundation for reusable assets - Recorded simulations can be used for other lifecycle phases of the project, such as knowledge transfer for training and support.
With its integration to Oracle Application Testing Suite, IBM Rational, and HP Quality Center, Oracle UPK allows you to deploy high-quality applications quickly and effectively by providing a consistent, repeatable process for gathering requirements, planning and scheduling tests, analyzing results, and managing issues.
Join this live webinar and learn how to decrease your time to deployment and enhance your testing plans today!
We have a web application that gets deployed to multiple regions around our state. An instance of the application for each region. We maintain a staging and production (master) branch in our repository, but we were wondering what is the best way of maintaining each instances codebase. It's similar at the core, but we have to give each region the ability to make specific requests that may not make it into the core of the application.
Right now we have branches for each region, like region_one_staging, and region_one_production. At the rate we're growing we'll have hundreds of branches here in the next few years.
Is there a better way to do this?
Hi,
I have been doing Objective-C programming over the past few weeks, and I have learnt a lot. However, I see that there are other Web-companies offering services to consumers directly from their website that allow consumers to create their apps through a point and click and drag features without any code. Clearly they are more cost effective and fast than having a developer write an app. I was wondering if there are any advantages then of having a developer build an app for someone, other than the obvious advantage that its got a custom look and feel.
Could someone please clarify, since Im new and would like to evaluate whether it is worthwhile spending time towards learning a whole new development environment when someone could just use a webservice to make an app for multiple platforms
Thanks
Now that we have finished 6.5 it's time to really start gearing up for 6.6. We have many great feature ideas but we want to hear from you. To help with that, we're running a poll on the website where you can vote on the features you would like to see in the next version of the best MySQL ADO.Net Connector on the planet. You can find the poll at http://dev.mysql.com and scrolling near the bottom of the page.
Thanks for your time and please go vote.
Given the importance of information systems in today's business world, database administrators (DBAs) and other technology professionals often perform heroic deeds for their organizations. While many of these IT pros are too humble to acknowledge their worth, we profiled five real-world IT heroes to demonstrate their value to their organizations-and the industry at large. Many of our heroes are bloggers who share new ideas and developments with their colleagues. Our heroes are creative individuals who can accurately assess a situation and rally their colleagues to address pressing issues. These heroes are authors and known Oracle technology user group leaders.
Read their stories today and join them in leading a greater future for the IT industry.
Nowadays comunication between applications is an active topic with daily usage and a large amount of pratical appliances. While developing an app in witch I had to consume an OData I found out that combining Linq with my code made this operation pretty easy.The algorithm to consume OData starts with adding a service reference to Visual Studio:After adding the service reference in wich you define the uri to the service, we start building our code.In your code the algorithm is the following:Define the Uri to your OData ServiceDefine the context of your odata, wich contains all entities exposed by the service.Query the context using LinqPrint the resultEasy and simple.Example code:01public static void Main(string[] args){02 03 Uri serviceUri= newUri("http://example.host.odataservice.net/service.svc", UriKind.Absolute);04 ODataService.ServiceEntities context = newODataService.ServiceEntities (serviceUri);05 06 context.Credentials = newSystem.Net.NetworkCredential(Username,Password);07 08 var query = from ServiceObject in context.YourEntity09 select ServiceObject ;10 11 foreach (var myObject in query)12 {13 Console.WriteLine("\n Field1: {0} | Field2: {1}",14 myObject .Field1, myObject .Field2);15 16 }17}That’s it.Thank you,Rui Machadorpmachado.wordpress.com
If you're at VMworld 2014 next week in San Francisco, come drop by booth 205. We'll have folks from both the Oracle Solaris and Oracle ZFS Storage teams, so you can learn a lot more about what's new in Oracle Solaris 11.2, plus what the storage team has been up to, as they unleash their "it's perfect for virtualization" architecture, with a series of new VMware API
integrations, that crushes both the other big-name storage vendors and the all-flash start-ups.
We've been working really hard on SQL Source Control, and need your input. We're currently working on suggestions from our user forum and on an updated migrations feature that supports all source control systems and works across branches. We'd love it if you could spare 10 minutes to complete this survey. If you complete the survey by Friday June 14, you could win a $100 Amazon voucher. There are two up for grabs!
I bet some of you superusers have nice home server rooms.
Show us some pictures and tell us features/specs!
Air condition? Dust free? Mounted an ATX computer on the wall with zip ties? Show us!
Hi All,
How in DNS can i redirect all A and MX records from example.us to example.org?
Therefore:
Users who go to www.example.us will be forwarded to www.example.org
An email to webmaster@example.us will be forwarded to [email protected]
Thanks
Q.: How to get a cellular phone SMS "Long code" for use by U.S. carrier subscribers within U.S.?
Background: I'm building a web app that receives queries from/sends answers to cell phones. The app design (and business model) expects to communicate with cell devices via SMS, addressing the web app via an SMS "Long code" (VMN or MSISDN). The mobile phone subscribers will be sending/receiving within the U.S. and using U.S. carriers. Long codes are not available within the U.S. cellular services.
Since years I use in a site both Google Analytics and Whos.amung.us, both Google analytics and whos.amung.us javascripts are inserted in the same pages in the tracked part of the site.
In real-time visitors, why such an enormous discrepancy ? for example at the moment, Google analytics gives me 9 visitors, whos.amung.us indicates 59, a ratio of 6 times?
Why whos.amung.us is 6 times optimistic than Google Analytics in terms of the realtime visitors?
Google
whos.amung.us
My question is:
whos.amung.us does not detect robots while Google does?
GA ignores visitors from some countries, not whos.amung.us?
Some robots/bots execute whos.amung.us javascript for tracking?
While no robots/bots can execute the tracking javascript provided by Google Analytics?
To facilitate your analysis, I copy JS code used below:
Google analytics:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'MyGaAccountNo']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Whos.amung.us:
<script>var _wau = _wau || []; _wau.push(["tab", "MyWAUAccountNo", "c6x", "right-upper"]);(function() { var s=document.createElement("script"); s.async=true; s.src="http://widgets.amung.us/tab.js";document.getElementsByTagName("head")[0].appendChild(s);})();</script>
I've aleady signaled this to WAU staff some time ago, NR, I've not done this to Google as they don't handle this kind of feedback. Thank you for your explanations.
I want to block all subnets outside the US. I've made a script that has all of the US subnets in it. I want to disallow or DROP all but my list. Can someone give me an example of how I can start by denying everything?
This is the output from -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp state NEW
DROP icmp -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
And these are the rules
iptables --F
iptables --policy INPUT DROP
iptables --policy FORWARD DROP
iptables --policy OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp -i eth0 --dport 21 -m state --state NEW -j ACCEPT
iptables -A INPUT -p icmp -j DROP
Just for clarity, with these rules, I can still connect to port 21 without my subnet list. I want to block ALL subnets and just open those inside the US.
A bunch of IIS sites got hacked with a javascript malware pointing to ww.robint.us/u.js.
Google cache says more than 1,000,000 different pages got affected:
http://www.google.com/#hl=en&source=hp&q=http%3A%2F%2Fww.robint.us%2Fu.js
http://blog.sucuri.net/2010/06/mass-infection-of-iisasp-sites-robint-us.html
My question is: Did anyone here got hacked with that and still have any logs (or network dump) available for analysis? If you do, have you spotted anything interesting in there?
Sites as big as wsj.com got hacked and some people are saying that maybe a zero-day on IIS/ASP.net is in the wild...
Hi, all. I'm thinking of transferring my UK websites to a US hosting company, and they assure me they can host UK domains. However, as a bit of a n00b I don't understand the relationship between UK domain registration and US hosting. If anyone can explain this relationship I'd be very grateful. What pitfalls and problems should I be alert to? Many thanks.
How to get all the installed package list with there license, source url? Such as following only shows name of the package only.
$ dpkg --get-selections
acpi-support install
acpid install
adduser install
adium-theme-ubuntu install
aisleriot install
alacarte install
For example in Fedora/CentOS (RED HAT LINUX BRANCH), you can see that:
$ yum info busybox
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
Available Packages
Name : busybox
Arch : i686
Epoch : 1
Version : 1.18.2
Release : 5.fc15
Size : 615 k
Repo : updates
Summary : Statically linked binary providing simplified versions of system commands
URL : http://www.busybox.net
License : GPLv2
Description : Busybox is a single binary which includes versions of a large number
: of system commands, including a shell. This package can be very
: useful for recovering from certain types of system failures,
: particularly those involving broken shared libraries.
Follow up:
/var/lib/apt/lists$ ls
extras.ubuntu.com_ubuntu_dists_natty_main_binary-amd64_Packages
extras.ubuntu.com_ubuntu_dists_natty_main_source_Sources
extras.ubuntu.com_ubuntu_dists_natty_Release
extras.ubuntu.com_ubuntu_dists_natty_Release.gpg
lock
partial
security.ubuntu.com_ubuntu_dists_natty-security_main_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_main_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_multiverse_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_Release
security.ubuntu.com_ubuntu_dists_natty-security_Release.gpg
security.ubuntu.com_ubuntu_dists_natty-security_restricted_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_restricted_source_Sources
security.ubuntu.com_ubuntu_dists_natty-security_universe_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_natty-security_universe_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_main_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_multiverse_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_Release
us.archive.ubuntu.com_ubuntu_dists_natty_Release.gpg
us.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty_universe_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_multiverse_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_Release
us.archive.ubuntu.com_ubuntu_dists_natty-updates_Release.gpg
us.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_restricted_source_Sources
us.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_binary-amd64_Packages
us.archive.ubuntu.com_ubuntu_dists_natty-updates_universe_source_Sources
Hello serverfault
I work for a European media company and we are currently looking for colocation in the US. I know the European market quite well unfortunately that is not the case for the US. I'm hoping for you guys to help me out a bit with a few questions, it would be much appreciated!
I am looking for a data center that can deliver a high level of availability (tier 3 or better). The installation will be fairly large so capacity is important. Good internet connectivity/carrier presence. However most important is good customer support, skilled dedicated and responsive technical staff, since we won't have tech staff close by. I'm looking for a small and fast moving company that target internet businesses rather than big old enterprise hosting.
What locations should we go for given that we want to reach all of the US from a single site and still maintain decent latency? (do we need east and west coast?)
Where are the main internet hubs and should you try and get as close as possible?
Are there any good online resources I should look at?
Where do the large scale internet/media services colocate?
Lastly I would be very happy to get some actual recommendations for companies to talk to
P.S I'm happy to return the favor if anyone has question regarding data centers and colocation in Europe.
My laptop has a US keyboard, and I need to write some French, with accents.
I know there's a painful way to do it with combinations of the alt key and the ascii code alt-codes, but I was wondering if there was an easier way to do it.
PS: Since the question is closed (but the answers no great) I thought I'd add this addendum. Basically, you need to set the keyboard to US International and then you can do accents using 'e or 'a; see this link: http://support.microsoft.com/kb/97738
PS: Much much better solution: http://keyxpat.com.
I don't want to be offensive; people in India matter just as much as people in the US and also need work. However, I'm one of the people in the US.
Are there fewer programming jobs in the US because of competition from India? Are the programming jobs in the US less lucrative because of competition from India?
Is programming a good career choice in the US (in terms of being able to actually make a fair amount of money)?
I recently acquired a Pixus MP990 Canon Printer. It is from Japan (hence the "Pixus" rather than "Pixma"). It's been working well, however I just had to change an ink cartridge today, and every time I attempt to do so I get a u140 "ink tank cannot be recognized" error. These are genuine Canon ink cartridges purchased from Canon's USA website.
Is a region issue causing the rejection, and if so is there a way to change the region of the printer to the US?
Is there anything else I can do?
(I have made sure it's not the physical connection that is the problem - I've tried two different ink cartridges in their respective slots, and I still get the same problem.)