Monday, September 4, 2017

How to Understand the Connect of Cloud Computing and SDN

Like virtualization, Software Defined Networking (SDN) technology is something that’s very much crucial for cloud computing’s further adoption. Over the last few months, its drastic development has led to a quite significant roadblock in terms of bandwidth. One aspect that many of us tend to forget about the cloud is that it’s not completely digital. At one or the other place in the world, there has to be a data center or physical server that works like the backbone of cloud computing.






What Does This Mean for Cloud Vendors?

For maintaining its pace with the astounding cloud growth, they have to develop an increasing number of data centers, placing them globally to decrease latency to the maximum possible extent for global clients. Many of them are making use of a cloud infrastructure for themselves for managing these facilities and connecting them together.

Naturally, it places an increasing demand on the networks. So, the present networking technology is quickly evolving as one of the greatest blocks in the cloud computing field. The issue is that networking hardware resources have not emerged to maintain their pace with the cloud even though computing hardware have. In simple words, it can neither by easily deployment nor scalable.

SDN Steps In

The challenges in front of network operators are vast as they are expected to emerge in pace with the demand by customers. The main challenges are to meet the increasing demand for bandwidth and the quick deployment of new services for customers.

This implies that network operators don’t just need a scalable network, but also a brilliant one. This is where SDN steps in.

The requirement for programmable networks, which can be stipulated at the push of a key evolved after the proliferation of personal devices and cloud apps – two of the biggest trends that together are driving a basic changeover in the relationship between business strategy and IT.


SDN gives a chance to speed up the delivery of information as well as cut costs.

Basically, a SDN is to conventional networking what the cloud is to a conventional computing platform. The methods using which, SDN is controlled, are fully different from the controlling hardware – this permit more comprehensive and complete optimization of software as well as hardware. It also gives precisely the flexibility and scalability level needed for further cloud computing evolution.

In addition to adequate bandwidth for non-stop functioning and the right automation technology, SDN indicates yet another step to a fully digital infrastructure for vendors as well as clients. With respect to network operations, SDNs present many of the similar advantages like cloud computing confers to the enterprise. Enhanced flexibility and agility will permit more efficient usage of networking resources, while the decrease in operating costs could possibly result in even greater innovation and significant savings on the client’s part.

Consider any system – the whole is just as resourceful as its component elements – the cloud is no exception to this rule.

While it’s true that cloud computing is one of the most powerful and efficient tools for any business, at the same time, its complete potential cannot be realised if loaded with conventional networking hardware.

This is exactly why SDN has such a vital and close connection with the cloud.

Without SDN, cloud computing just cannot continue its evolution, and the link between cloud computing and software defined networking is very strong.



REF..

Wednesday, January 4, 2017

15 Health Benefits of Grapes Juice




1) Flavonoids found in grape juice raise the level of HDL (good) cholesterol. This prevents blockage of arteries and the heart remains healthy.

2) Resveratrol found in grape juice prevents the formation of tumors in the body. So this prevents cancer. Purple-colored grape juice prevents breast cancer.

3) By drinking this juice, the levels of nitric oxide is increased in the body which reduces the formation of clots in blood vessels. This reduces chances of heart attacks.

4) Drinking grape juice daily helps in lowering blood pressure.

5) Grape juice has anti-aging properties and it also helps to reduce weight.

6) Antioxidants present in grape juice repair damaged cells and also prevent them from further damage.

7) Cough and acidity remain away from the person who drinks grape juice regularly.

8) Taking grape juice in the morning without sugar helpsin curing migraine. It is a good home remedy for migraine.

9) Grape juice cures blood disorders and is a very good purifier of blood. It flushes out harmful toxins from the body.

10) Grape juice also cures constipation problem as it acts as a good laxative.

11) Red colored grape juice has strong antiviral and antibacterial properties. So it saves from different infections.

12) Grape juice has been found to be very effective in asthma treatment due to its eminent therapeutic value.

13) Antioxidants present in grape juice can help in preventing aging related problems like Alzheimer’s disease.

14) The purple grape juice helps in fighting atherosclerosis.

15) Antioxidants present in grape juice boost the immune system.

Saturday, October 29, 2016

Object Oriented Databases

Object Oriented Databases

Object Oriented Databases



Object oriented databases are also called Object Database Management Systems (ODBMS). Object databases store objects rather than data such as integers, strings or real numbers. Objects are used in object oriented languages such as Smalltalk, C++, Java, and others. Objects basically consist of the following:

Attributes - Attributes are data which defines the characteristics of an object. This data may be simple such as integers, strings, and real numbers or it may be a reference to a complex object.
Methods - Methods define the behavior of an object and are what was formally called procedures or functions.
Therefore objects contain both executable code and data. There are other characteristics of objects such as whether methods or data can be accessed from outside the object. We don't consider this here, to keep the definition simple and to apply it to what an object database is. One other term worth mentioning is classes. Classes are used in object oriented programming to define the data and methods the object will contain. The class is like a template to the object. The class does not itself contain data or methods but defines the data and methods contained in the object. The class is used to create (instantiate) the object. Classes may be used in object databases to recreate parts of the object that may not actually be stored in the database. Methods may not be stored in the database and may be recreated by using a class.

Comparison to Relational Databases

Relational databases store data in tables that are two dimensional. The tables have rows and columns. Relational database tables are "normalized" so data is not repeated more often than necessary. All table columns depend on a primary key (a unique value in the column) to identify the column. Once the specific column is identified, data from one or more rows associated with that column may be obtained or changed.

To put objects into relational databases, they must be described in terms of simple string, integer, or real number data. For instance in the case of an airplane. The wing may be placed in one table with rows and columns describing its dimensions and characteristics. The fusalage may be in another table, the propeller in another table, tires, and so on.

Breaking complex information out into simple data takes time and is labor intensive. Code must be written to accomplish this task.

Object Persistence

With traditional databases, data manipulated by the application is transient and data in the database is persisted (Stored on a permanent storage device). In object databases, the application can manipulate both transient and persisted data.

When to Use Object Databases

Object databases should be used when there is complex data and/or complex data relationships. This includes a many to many object relationship. Object databases should not be used when there would be few join tables and there are large volumes of simple transactional data.

Object databases work well with:


CAS Applications (CASE-computer aided software engineering, CAD-computer aided design, CAM-computer aided manufacture)
Multimedia Applications
Object projects that change over time.
Commerce

Object Database Advantages over RDBMS

Objects don't require assembly and disassembly saving coding time and execution time to assemble or disassemble objects.
Reduced paging
Easier navigation
Better concurrency control - A hierarchy of objects may be locked.
Data model is based on the real world.
Works well for distributed architectures.
Less code required when applications are object oriented.

Object Database Disadvantages compared to RDBMS

Lower efficiency when data is simple and relationships are simple.
Relational tables are simpler.
Late binding may slow access speed.
More user tools exist for RDBMS.
Standards for RDBMS are more stable.
Support for RDBMS is more certain and change is less likely to be required.
ODBMS Standards

Object Data Management Group
Object Database Standard ODM6.2.0
Object Query Language
OQL support of SQL92
How Data is Stored

Two basic methods are used to store objects by different database vendors.

Each object has a unique ID and is defined as a subclass of a base class, using inheritance to determine attributes.
Virtual memory mapping is used for object storage and management.
Data transfers are either done on a per object basis or on a per page (normally 4K) basis.


Tuesday, August 30, 2016

Benefits of Software-Defined Networking

And since SDN supports Layer 1 through Layer 3 networking models, there's no need to buy expensive networking devices. In other words, the use of SDN in a production environment can help reduce the costs involved in purchasing expensive hardware.




Overhead Reduction: In a physical environment, the isolation for the customer workloads requires configuring VLANs on separate networking devices, including routers, switches, etc. Since most of the networking is done at the SDN, it is easy for service providers to isolate the customer virtual machines from other customers by using various isolation methods available in the SDN.

Physical vs. Virtual Networking Management:Physical environments necessitate collaboration among different teams to get a task done. For example, if you require some modification at a physical networking device, it would often take a considerable amount of time and teamwork in most organizations before the task can be accomplished.

SDN provides you the ability to control the virtual and physical networking by using a central management tool. A virtual administrator can process the necessary changes without needing to collaborate with different teams.

Managing Virtual Packet Forwarding: SDN can help you forward the virtual packets to a software or physical device running on the network. For example, if a virtual machine needs to access the internet, it becomes easy for virtual administrators to provide the necessary configuration to the virtual machine with minimal effort.

Reduced Downtime: Since SDN helps in virtualizing most of the physical networking devices, it becomes easy to perform an upgrade for one piece rather than needing to do it for several devices. SDN also supports snapshotting the configuration, which helps you quickly recover from any failures caused by the upgrades.

Isolation and Traffic Control: Cloud service providers can benefit from centralizing the networking control using a central management tool. At the same time, SDN provides several isolation mechanisms such as configuring ACLs and firewalls at the virtual machine NIC level. You can also define the traffic rules using the SDN management console, which helps in providing full control over the network traffic.

Extensibility: Since SDN is software-based, it is easy to use SDN API references for vendors to extend the capabilities of an SDN solution by developing applications to control the behavior of networking traffic.

Central Networking Management Tool:SDN can deliver all your networking needs in one product, enabling you to control every piece of an organization's network using a central management tool.

Network administrators often find it difficult to manage a physical router's configuration, and it quickly becomes time consuming and tedious when more than one physical router needs to be managed. SDN simplifies the management of physical routers by providing the management APIs in the SDN console

Friday, August 26, 2016

What is Apex?

Oracle Application Express (Oracle APEX), formerly called HTML DB, is a rapid web application development tool for the Oracle database. Using only a web browser and limited programming experience, you can develop and deploy professional applications that are both fast and secure. Oracle application express combines the qualities of a personal database, productivity, ease of use, and flexibility with the qualities of an enterprise database, security, integrity, scalability, availability and built for the web. Application Express is a tool to build web-based applications and the application development environment is also conveniently web-based. Watch this Application Express Positioning flash demonstration and then try Application Express simply by signing up for an account at apex.oracle.com.




What types of applications can you build with Application Express?
Application Express is a productive tool to build applications that report on database data. Reports are typically hyper text linked with other reports allowing users to navigate through database data in the same way they navigate web sites. Columns in reports can be easily linked to other reports, charts, and data entry forms and it is all done declaratively. An extensive charting engine allows SQL queries to be represented graphically and that allows data to be more effectively communicated. Application Express is also very adept at editing database data and supports a large number of declarative form controls including radio groups, checkboxes, select lists, shuttles, text editors, and date pickers.


When to use Application Express?
Due to its ease of use, Application Express is designed to build opportunistic and departmental applications quickly. These application are deployed on the web with superior performance. Historically, departments, prototypes, and small projects have relied on desktop databases to provide an agile development tool for these smaller scale SMB or departmental application development needs. Desktop databases can become very fragmented because they keep data in too many places, they can be vulnerable or inappropriate for use with sensitive information, and they are typically not web friendly. The browser based design time interface, the declarative programming framework, and simple wizards make Application Express a natural replacement for multi-user desktop databases applications such as Microsoft Access.

SQL Savvy application developers also appreciate the ease with which you can create database applications with little or no web experience. You don't need to learn scripting languages or complex deployment frameworks, you simply write a few queries and choose from ready built user interface themes and form controls to create highly professional, secure, and scalable applications.

Declarative Programming
With Application Express, coding is declarative. That means that no code is generated, no code is compiled, and you interact with wizards and property sheets. The SQL language is used to define reports and charts, so some knowledge of SQL is very helpful. You can optionally write snippets of code using PL/SQL, if procedural logic is needed. Declarative code yields fewer differences between developers and this consistency makes Application Express applications easy to maintain and manage.

Architecture
The Application Express engine renders applications in real time from data stored in database tables.  When you create or extend an application, Oracle Application Express creates or modifies metadata stored in database tables.  When the application is run, the Application Express engine then reads the metadata and displays the application.  Application Express lives completely within your Oracle database.  It is comprised of nothing more than data in tables and large amounts of PL/SQL code.  The essence of Oracle Application Express is approximately 215 tables and 200 PL/SQL objects containing 300,000+ lines of code.

To provide stateful behavior within an application, Oracle Application Express transparently manages session state in the database.  Application developers can get and set session state using simple substitutions as well as standard SQL bind variable syntax.

To access the Oracle Application Express engine within the Oracle database you must configure the Oracle HTTP Server(Apache) containing the mod_plsql plug-in . The plugin functions as communication broker between the Web server and the Oracle Application Express objects in the Oracle database. This maps browser requests into database stored procedure calls. The following graphic illustrates the Oracle Application Express architecture using Oracle HTTP Server and mod_plsql.

Oracle Application Express using the Oracle HTTP Server (Apache) with mod_plsql
With Oracle Database 11.1, you can remove Oracle HTTP Server (Apache) from the architecture and replace it with the embedded PL/SQL gateway. The embedded PL/SQL gateway runs in the XML DB HTTP server in the Oracle database and includes the core features of mod_plsql, but does not require the Oracle HTTP Server powered by Apache. The graphic below illustrates the Oracle Application Express architecture using the Embedded PL/SQL Gateway.

Oracle Application Express using the Embedded PL/SQL Gateway
Converting Applications
Oracle Application Express Application Migration Workshop (Application Migration) enables you to convert Oracle Forms and Microsoft Access applications and generate an Oracle Application Express application from the retrieved objects.

Oracle Forms modernization projects are often undertaken to convert legacy applications to the latest Oracle Database version and enable developers to satisfy user demands for greater user interactivity and Web 2.0 capabilities




Key Features
The sections that follow describe key features of Oracle Application Express, including:

Reporting
Forms
Charting
PDF Printing
Web Services
Spreadsheet Upload
Session State Management
User Interface Themes
Flow Control & Navigation
Conditionality on all Components
External Interfaces & Extensibility
Declarative BLOB Support
Optional Runtime-Only Installation
Security
SQL Workshop Tools
Supporting Objects Utility
Performance
Packaged Applications
Hosted Development

Saturday, July 30, 2016

Six Benefits Of IPv6

With IPv6, everything from appliances to automobiles can be interconnected. But an increased number of IT addresses isn't the only advantage of IPv6 over IPv4. In honor of World IPv6 Day, here are six more good reasons to make sure your hardware, software, and services support IPv6.
With IPv6, everything from appliances to automobiles can be interconnected. But an increased number of IT addresses isn't the only advantage of IPv6 over IPv4. In honor of World IPv6 Day, here are six more good reasons to make sure your hardware, software, and services support IPv6.


More Efficient Routing
IPv6 reduces the size of routing tables and makes routing more efficient and hierarchical. IPv6 allows ISPs to aggregate the prefixes of their customers' networks into a single prefix and announce this one prefix to the IPv6 Internet. In addition, in IPv6 networks, fragmentation is handled by the source device, rather than the router, using a protocol for discovery of the path's maximum transmission unit (MTU).
More Efficient Packet Processing
IPv6's simplified packet header makes packet processing more efficient. Compared with IPv4, IPv6 contains no IP-level checksum, so the checksum does not need to be recalculated at every router hop. Getting rid of the IP-level checksum was possible because most link-layer technologies already contain checksum and error-control capabilities. In addition, most transport layers, which handle end-to-end connectivity, have a checksum that enables error detection.
Directed Data Flows
IPv6 supports multicast rather than broadcast. Multicast allows bandwidth-intensive packet flows (like multimedia streams) to be sent to multiple destinations simultaneously, saving network bandwidth. Disinterested hosts no longer must process broadcast packets. In addition, the IPv6 header has a new field, named Flow Label, that can identify packets belonging to the same flow.
Simplified Network Configuration
Address auto-configuration (address assignment) is built in to IPv6. A router will send the prefix of the local link in its router advertisements. A host can generate its own IP address by appending its link-layer (MAC) address, converted into Extended Universal Identifier (EUI) 64-bit format, to the 64 bits of the local link prefix.
Support For New Services
By eliminating Network Address Translation (NAT), true end-to-end connectivity at the IP layer is restored, enabling new and valuable services. Peer-to-peer networks are easier to create and maintain, and services such as VoIP and Quality of Service (QoS) become more robust.
Security
IPSec, which provides confidentiality, authentication and data integrity, is baked into in IPv6. Because of their potential to carry malware, IPv4 ICMP packets are often blocked by corporate firewalls, but ICMPv6, the implementation of the Internet Control Message Protocol for IPv6, may be permitted because IPSec can be applied to the ICMPv6 packets.

Tuesday, May 10, 2016

What is RemoteApp?

RemoteApp enables you to make programs that are accessed remotely through Remote Desktop Services appear as if they are running on the end user's local computer. These programs are referred to as RemoteApp programs. Instead of being presented to the user in the desktop of the Remote Desktop Session Host (RD Session Host) server, the RemoteApp program is integrated with the client's desktop. The RemoteApp program runs in its own resizable window, can be dragged between multiple monitors, and has its own entry in the taskbar. If a user is running more than one RemoteApp program on the same RD Session Host server, the RemoteApp program will share the same Remote Desktop Services session.


Why use RemoteApp?

RemoteApp can reduce complexity and reduce administrative overhead in many situations, including the following:
  • Branch offices, where there may be limited local IT support and limited network bandwidth.
  • Situations where users need to access programs remotely.
  • Deployment of line-of-business (LOB) programs, especially custom LOB programs.
  • Environments, such as "hot desk" or "hoteling" workspaces, where users do not have assigned computers.
  • Deployment of multiple versions of a program, particularly if installing multiple versions locally would cause conflicts.
****Run app in other os(Mac Linux FreeBsd Android Windows Phone......)

Monday, April 25, 2016

12 Foods That Lower Cholesterol Naturally

1. Oats
If you're looking to lower your cholesterol, the key may be simply changing your morning meal. Switching up your breakfast to contain two servings of oats can lower LDL cholesterol (the bad kind) by 5.3% in only 6 weeks. The key to this cholesterol buster is beta-glucan, a substance in oats that absorbs LDL, which your body then excretes. Banish bland oats with this dessert-worthy ginergersnap oatmeal recipe.

2. Red wine
Scientists are giving us yet another reason to drink to our health. It turns out that high-fiber Tempranillo red grapes, used to make red wine like Rioja, may actually have a significant effect on lowering cholesterol levels. A study conducted by the department of metabolism and nutrition at Universidad Complutense de Madrid in Spain found that when individuals consumed the same grape supplement found in red wine, their LDL levels decreased by 9%. In addition, those who had high cholesterol going into the study saw a 12% drop in LDL. So go ahead and drink a glass for that lowering cholesterol benefit.

3. Salmon & fatty fish
Omega-3 fats are one of the natural health wonders of the world and have been shown to ward off heart disease, dementia, and many other diseases. Now these fatty acids can add yet another health benefit to their repertoire: lowering cholesterol. According to research from Loma Linda University, replacing saturated fats with omega-3s like those found in salmon, sardines, and herring can raise good cholesterol as much as 4%. (Here's everything you need to know about buying the healthiest fish possible.)


Are you at risk for the #1 cause of heart-related death?

4. Nuts
If you're looking for that perfect snack food that lowers cholesterol levels, research shows that you should get cracking! In a study published by the American Journal of Clinical Nutrition, people who noshed on 1.5 ounces of whole walnuts 6 days a week for 1 month lowered their total cholesterol by 5.4% and LDL cholesterol by 9.3%. Almonds and cashews are other good options. However, while nuts are heart healthy, they're also high in calories, so practice portion control—1.5 ounces is about a shot glass and a half. Use a shot glass to measure out your portion so you can see exactly how it looks.



5. Tea


Photo by gojack/Getty Images

While tea has become well known for its cancer-fighting antioxidants, it is also a great defense against LDL cholesterol levels. According to research conducted with the USDA, black tea has been shown to reduce blood lipids by up to 10% in only 3 weeks. These findings were concluded in a larger study of how tea may also help reduce the risk of coronary heart disease. (Here's how to make the perfect cup of tea every time.)

MORE: The Healthiest Teas To Drink From Morning To Night

6. Beans
Beans, beans—they really are good for your heart. Researchers at Arizona State University Polytechnic found that adding ½ cup of beans to soup lowers total cholesterol, including LDL, by up to 8%. The key to this heart-healthy food that lowers cholesterol is its abundance of fiber, which has been shown to slow the rate and amount of absorption of cholesterol in certain foods. Try black, kidney, or pinto beans; each supplies about one-third of your daily fiber needs.

7. Chocolate
Yes! Chocolate is one of the foods that lowers cholesterol. This powerful antioxidant helps build HDL cholesterol levels. In a 2007 study published in AJCN, participants who were given cocoa powder had a 24% increase in HDL levels over 12 weeks, compared with a 5% increase in the control group. Remember to choose the dark or bittersweet kind. Compared to milk chocolate, it has more than 3 times as many antioxidants, which prevent blood platelets from sticking together and may even keep arteries unclogged.

8. Margarine
Switching to a margarine with plant sterols, such as Promise activ or Benecol, could help lower cholesterol. Plant sterols are compounds that reduce cholesterol absorption; a study published in AJCN found that women who had a higher plant sterol–based diet were able to lower total cholesterol by 3.5%.

9. Garlic
Aside from adding zing to almost any dish, garlic makes the list of foods that lower cholesterol; it's also been found to prevent blood clots, reduce blood pressure, and protect against infections. Now research finds that it helps stop artery-clogging plaque at its earliest stage by keeping cholesterol particles from sticking to artery walls. Try for two to four fresh cloves a day of this powerful cholesterol fighting food.





10. Olive oil


Photo by Okea/Getty Images

Good news: This common cooking ingredient can help your health. Olive oil is full of heart-healthy monounsaturated fatty acids (MUFAs), which lower LDL cholesterol—and have the welcome side effect of trimming belly fat. Use it to make your own salad dressings, marinate chicken and fish, or roast vegetables.

11. Spinach
This popular green food that lowers cholesterol contains lots of lutein, the sunshine-yellow pigment found in dark green leafy vegetables and egg yolks. Lutein already has a "golden" reputation for guarding against age-related macular degeneration, a leading cause of blindness. Now research suggests that just ½ cup of a lutein-rich food daily also guards against heart attacks by helping artery walls "shrug off" cholesterol invaders that cause clogging. Look for bags of baby spinach leaves that you can use for salads or pop in the microwave for a quick side dish.

MORE: 3 Recipes To Take Your Love Of Spinach To A Whole New Level

12. Avocado
Avocados are a great source of heart-healthy monounsaturated fat, a type of fat that may actually help raise HDL cholesterol while lowering LDL. And, more than any other fruit, this delectable food packs cholesterol-smashing beta-sitosterol, a beneficial plant-based fat that reduces the amount of cholesterol absorbed from food. Since avocados are a bit high in calories and fat (300 calories and 30 g fat per avocado), use them in moderation. (We suggest these 8 unique and insanely tasty avocado recipes.)

Thursday, April 21, 2016

integrating barcode scanner into php application?

PHP can be easily utilized for reading bar codes printed on paper documents. Connecting manual barcode reader to the computer via USB significantly extends usability of PHP (or any other web programming language) into tasks involving document and product management, like finding a book records in the database or listing all bills for a particular customer.

Following sections briefly describe process of connecting and using manual bar code reader with PHP.



What is a bar code reader (scanner)

Bar code reader is a hardware pluggable into computer that sends decoded bar code strings into computer. The trick is to know how to catch that received string. With PHP (and any other web programming language) the string will be placed into focused input HTML element in browser. Thus to catch received bar code string, following must be done:

just before reading the bar code, proper input element, such as INPUT TEXT FIELD must be focused (mouse cursor is inside of the input field). once focused, start reading the code when the code is recognized (bar code reader usually shortly beeps), it is send to the focused input field. By default, most of bar code readers will append extra special character to decoded bar code string called CRLF (ENTER). For example, if decoded bar code is "12345AB", then computer will receive "12345AB". Appended character (or ) emulates pressing the key ENTER causing instant submission of the HTML form:



<form action="search.php" method="post">
    <input name="documentID" onmouseover="this.focus();" type="text">
</form>


PHP can be easily utilized for reading bar codes printed on paper documents. Connecting manual barcode reader to the computer via USB significantly extends usability of PHP (or any other web programming language) into tasks involving document and product management, like finding a book records in the database or listing all bills for a particular customer.

Following sections briefly describe process of connecting and using manual bar code reader with PHP.

The usage of bar code scanners described in this article are in the same way applicable to any web programming language, such as ASP, Python or Perl. This article uses only PHP since all tests have been done with PHP applications.
What is a bar code reader (scanner)

Bar code reader is a hardware pluggable into computer that sends decoded bar code strings into computer. The trick is to know how to catch that received string. With PHP (and any other web programming language) the string will be placed into focused input HTML element in browser. Thus to catch received bar code string, following must be done:

just before reading the bar code, proper input element, such as INPUT TEXT FIELD must be focused (mouse cursor is inside of the input field). once focused, start reading the code when the code is recognized (bar code reader usually shortly beeps), it is send to the focused input field. By default, most of bar code readers will append extra special character to decoded bar code string called CRLF (ENTER). For example, if decoded bar code is "12345AB", then computer will receive "12345AB". Appended character (or ) emulates pressing the key ENTER causing instant submission of the HTML form:

<form action="search.php" method="post">
    <input name="documentID" onmouseover="this.focus();" type="text">
</form>
Choosing the right bar code scanner

When choosing bar code reader, one should consider what types of bar codes will be read with it. Some bar codes allow only numbers, others will not have checksum, some bar codes are difficult to print with inkjet printers, some barcode readers have narrow reading pane and cannot read for example barcodes with length over 10 cm. Most of barcode readers support common barcodes, such as EAN8, EAN13, CODE 39, Interleaved 2/5, Code 128 etc.

For office purposes, the most suitable barcodes seem to be those supporting full range of alphanumeric characters, which might be:

code 39 - supports 0-9, uppercased A-Z, and few special characters (dash, comma, space, $, /, +, %, *)
code 128 - supports 0-9, a-z, A-Z and other extended characters
Other important things to note:

make sure all standard barcodes are supported, at least CODE39, CODE128, Interleaved25, EAN8, EAN13, PDF417, QRCODE.
use only standard USB plugin cables. RS232 interfaces are meant for industrial usage, rather than connecting to single PC.
the cable should be long enough, at least 1.5 m - the longer the better.
bar code reader plugged into computer should not require other power supply - it should power up simply by connecting to PC via USB.
if you also need to print bar code into generated PDF documents, you can use TCPDF open source library that supports most of common 2D bar codes.


installing scanner drivers

Installing manual bar code reader requires installing drivers for your particular operating system and should be normally supplied with purchased bar code reader.

Once installed and ready, bar code reader turns on signal LED light. Reading the barcode starts with pressing button for reading.








step 3
Conclusion

It seems, that utilization of PHP (and actually any web programming language) for scanning the bar codes has been quite overlooked so far. However, with natural support of emulated keypress (ENTER/CRLF) it is very easy to automate collecting & processing recognized bar code strings via simple HTML (GUI) fomular.

The key is to understand, that recognized bar code string is instantly sent to the focused HTML element, such as INPUT text field with appended trailing character ASCII 13 (=ENTER/CRLF, configurable option), which instantly sends input text field with populated received barcode as a HTML formular to any other script for further processing.



Monday, April 11, 2016

Fatty Liver Disease

Some fat in your liver is normal. But if it makes up more than 5%-10% of the organ's weight, you may have fatty liver disease. If you're a drinker, stop. That's one of the key causes of the condition.

There are two main types of fatty liver disease:




Alcoholic liver disease (ALD)
Nonalcoholic fatty liver disease (NAFLD)

Alcoholic Liver Disease (ALD)

You can get alcoholic liver disease from drinking lots of alcohol. It can even show up after a short period of heavy drinking.

Genes that are passed down from your parents may also play a role in ALD. They can affect the chances that you become an alcoholic. And they can also have an impact on the way your body breaks down the alcohol you drink.

Other things that may affect your chance of getting ALD are:

Hepatitis C (which can lead to inflammation in your liver)
Too much iron in your body

Being obese

Nonalcoholic Fatty Liver Disease (NAFLD)

It's not clear what causes this type of fatty liver disease. It tends to run in families.

It's also more likely to happen to those who are middle-aged and overweight or obese. People like that often have high cholesterol and diabetes as well.

Other causes are:

Medications
Viral hepatitis
Autoimmune or inherited liver disease
Fast weight loss
Malnutrition

Some studies show that too much bacteria in your small intestine and other changes in the intestine may be linked to nonalcoholic fatty liver disease.


Diagnosis of Fatty Liver Disease
You might find out that you have the disease when you get a routine checkup. Your doctor might notice that your liver is a little larger than usual.

Other ways your doctor might spot the disease are:

Blood tests. A high number of certain enzymes could mean you've got fatty liver.

Ultrasound. It uses soundwaves to get a picture of your liver.


Treatment of Fatty Liver Disease


There is no specific treatment. But you can improve your condition by managing your diabetes, if you have it.

If you have alcoholic liver disease and you are a heavy drinker, quitting is the most important thing you can do. Talk to your doctor about how to get help. If you don't stop you could get complications like alcoholic hepatitis or cirrhosis.

Even if you have nonalcoholic fatty liver disease, it can help to avoid drinking. If you are overweight or obese, do what you can to gradually lose weight -- no more than 1 or 2 pounds a week.

Eat a balanced and healthy diet and get regular exercise. Limit high-carb foods such as bread, grits, rice, potatoes, and corn. And cut down on drinks with lots of sugar like sports drinks and juice.

http://www.webmd.com/hepatitis/fatty-liver-disease?page=2











Sunday, February 14, 2016

What is webuzo?

Webuzo is a single user control panel/Application Manager which allow users to deploy popular web applications like Word Press, Zoomla and  drupal etc  with a single click. No Sys Admin level expertise are required to install such applications, you have to focus on using the application instead of maintaining that applications, it is an cPanel like  control panel.Webuzo is ideal for use in Enterprises, Small and Medium business environments, almost 240 web applications are supported by Webuzo. It is also suitable for web developers as  along-with web applications, system applications like MongoDB, Apache, NGINX, Java etc. can also be installed.List of available app plug-ins which are supported by Webuzo are available In  this link.



BEST FEATURE
you can build 

WIKI
BLOG
MAIL SERVER 
FOURM


Tuesday, February 2, 2016

what is BigBlueButton advantage & disadvantage

BigBlueButton is the open source video based web conferencing system for on-line learning. We can easily integrate it with various on-line learning platforms like WordPress, and Moodle etc. Also, we can have multiple sessions with voice and video support, live chat, you can share documents like pdf or ppt. It requires webcam, head phone from your desktop for live sessions and each session can be recorded for later playback

Best Feature

Public and Private Chat
The Chat window enables all participants to conduct public or private chats
See all Participants
The Voice window shows all the users that are currently connected to the voice conference bridge, either by calling in directly or using the built-in voice over IP client.
See each other
Share video over the web using a built or external webcam. Multiple participants and a presenter can be sharing their video simultaneously
Share any PDF or Office documents
 presenter is able to upload any PDF or Office document. You can upload multiple documents and switch between them during the presentation. All participants see the current slide as the presenter moves through their presentation.
Share your Desktop

As a presenter you have the capability of sharing your desktop with others in the conference. When you share your desktop, BigBlueButton will launch a Java Applet that asks for your permissions to run. You have the option of sharing a portion of your desktop or the entire screen.

.
Minimum requirements:
  • Minimum 4 GB RAM. But, less then 4 GB memory can make the session slow.
  • Must be installed on a minimum of Quad-Core System.
  • Minimum 500 GB Disk Storage for recording Purpose.
  • Ubuntu 14.04 64 bit System (Server with GUI is preferred)
  • Stop or do not install https services, as 80  ports must be free.
  • Good Internet Speed.
  • Latest Adobe Flash player must be installed on Browser.





Friday, December 11, 2015

Top 15 Healthy Foods for People with Kidney Disease

Researchers are discovering more and more links between chronic diseases, inflammation and “super foods” that may prevent or protect against undesirable fatty acid oxidation, a condition that occurs when the oxygen in your body reacts with fats in your blood and your cells. Oxidation is a normal process for energy production and many chemical reactions in the body, but excessive oxidation of fats and cholesterol creates molecules known as free radicals that can damage your proteins, cell membranes and genes. Heart disease, cancer, Alzheimer’s disease, Parkinson’s disease and other chronic and degenerative conditions have been linked to oxidative damage.

However, foods that contain antioxidants can help neutralize free radicals and protect the body. Many of the foods that protect against oxidation are included in the kidney diet and make excellent choices for dialysis patients or people with chronic kidney disease (CKD). Eating healthy foods, working with a renal dietitian and following a renal diet made up of kidney-friendly foods is important for people with kidney disease because they experience more inflammation and have a higher risk for cardiovascular disease.

1. Red bell peppers

1/2 cup serving red bell pepper = 1 mg sodium, 88 mg potassium, 10 mg phosphorus
Red bell peppers are low in potassium and high in flavor, but that’s not the only reason they’re perfect for the kidney diet. These tasty vegetables are also an excellent source of vitamin C and vitamin A, as well as vitamin B6, folic acid and fiber. Red bell peppers are good for you because they contain lycopene, an antioxidant that protects against certain cancers.

Eat red bell peppers raw with dip as a snack or appetizer, or mix them into tuna or chicken salad. You can also roast peppers and use them as a topping on sandwiches or lettuce salads, chop them for an omelet, add them to kabobs on the grill or stuff peppers with ground turkey or beef and bake them for a main dish.

2. Cabbage

1/2 cup serving green cabbage = 6 mg sodium, 60 mg potassium, 9 mg phosphorus
A cruciferous vegetable, cabbage is packed full of phytochemicals, chemical compounds in fruit or vegetables that break up free radicals before they can do damage. Many phytochemicals are also known to protect against and fight cancer, as well as foster cardiovascular health.

High in vitamin K, vitamin C and fiber, cabbage is also a good source of vitamin B6 and folic acid. Low in potassium and low in cost, it’s an affordable addition to the kidney diet.

Raw cabbage makes a great addition to the dialysis diet as coleslaw or topping for fish tacos. You can steam, microwave or boil it, add butter or cream cheese plus pepper or caraway seeds and serve it as a side dish. Cabbage Rolls Made with Turkey are a great appetizer, and if you’re feeling fancy, you can stuff a cabbage with ground meat and bake it for a flavorful meal bursting with nutrients.

3. Cauliflower

1/2 cup serving boiled cauliflower = 9 mg sodium, 88 mg potassium, 20 mg phosphorus
Another cruciferous vegetable, cauliflower is high in vitamin C and a good source of folate and fiber. It’s also packed full of indoles, glucosinolates and thiocyanates—compounds that help the liver neutralize toxic substances that could damage cell membranes and DNA.

Serve it raw as crudités with dip, add it to a salad, or steam or boil it and season with spices such as turmeric, curry powder, pepper and herb seasonings. You can also make a nondairy white sauce, pour it over the cauliflower and bake until tender. You can pair cauliflower with pasta or even mash cauliflower as a dialysis diet replacement for mashed potatoes.

4. Garlic

1 clove garlic = 1 mg sodium, 12 mg potassium, 4 mg phosphorus
Garlic helps prevent plaque from forming on your teeth, lowers cholesterol and reduces inflammation.  

Buy it fresh, bottled, minced or powdered, and add it to meat, vegetable or pasta dishes. You can also roast a head of garlic and spread on bread. Garlic provides a delicious flavor and garlic powder is a great substitute for garlic salt in the dialysis diet.

5. Onions

1/2 cup serving onion = 3 mg sodium, 116 mg potassium, 3 mg phosphorus
Onion, a member of the Allium family and a basic flavoring in many cooked dishes, contains sulfur compounds which give it its pungent smell. But in addition to making some people cry, onions are also rich in flavonoids, especially quercetin, a powerful antioxidant that works to reduce heart disease and protects against many cancers. Onions are low in potassium and a good source of chromium, a mineral that helps with carbohydrate, fat and protein metabolism.

Try using a variety of onions including white, brown, red and others. Eat onions raw on burgers, sandwiches and in salads, cook them and use as a caramelized topping or fry them into onion rings. Include onions in recipes such as Italian Beef with Peppers and Onions.

6. Apples

1 medium apple with skin = 0 sodium, 158 mg potassium, 10 mg phosphorus
Apples have been known to reduce cholesterol, prevent constipation, protect against heart disease and reduce the risk of cancer. High in fiber and anti-inflammatory compounds, an apple a day may really keep the doctor away. Good news for people with kidney disease who already have their share of doctor visits.

This kidney diet winner can be paired with the previous good-for-you food, onions, to make a unique Apple Onion Omelet. With versatile apples you can eat them raw, make baked apples, stew apples, make them into apple sauce, or drink them as apple juice or apple cider.

7. Cranberries

1/2 cup serving cranberry juice cocktail = 3 mg sodium, 22 mg potassium, 3 mg phosphorus
1/4 cup serving cranberry sauce = 35 mg sodium, 17 mg potassium, 6 mg phosphorus
1/2 cup serving dried cranberries = 2 mg sodium, 24 mg potassium and 5 mg phosphorus
These tangy, tasty berries are known to protect against bladder infections by preventing bacteria from sticking to the bladder wall. In a similar way, cranberries also protect the stomach from ulcer-causing bacteria and protect the lining of the gastrointestinal (GI) tract, promoting GI health. Cranberries have also been shown to protect against cancer and heart disease.

Cranberry juice and cranberry sauce are the most frequently consumed cranberry products. You can also add dried cranberries to salads or have them as a snack.

8. Blueberries

1/2 cup serving fresh blueberries = 4 mg sodium, 65 mg potassium, 7 mg phosphorus
Blueberries are high in antioxidant phytonutrients called anthocyanidins, which give them their blue color, and they are bursting with natural compounds that reduce inflammation. Blueberries are a good source of vitamin C; manganese, a compound that keeps your bones healthy; and fiber. They may also help protect the brain from some of the effects of aging. Antioxidants in blueberries and other berries have been shown to help slow bone breakdown in rats made to be low in estrogen.

Buy blueberries fresh, frozen or dried, and try them in cereal or , topped with whipped topping, in a fruit smoothie. You can also drink blueberry juice.

9. Raspberries


1/2 cup serving raspberries = 0 mg sodium, 93 mg potassium, 7 mg phosphorus
Raspberries contain a phytonutrient called ellagic acid which helps neutralize free radicals in the body to prevent cell damage. They also contain flavonoids called anthocyanins, antioxidants which give them their red color. An excellent source of manganese, vitamin C, fiber and folate, a B vitamin, raspberries may have properties that inhibit cancer cell growth and tumor formation.

Add raspberries to cereal, or puree and sweeten them to make a dessert sauce or add them to vinaigrette dressing.

10. Strawberries

1/2 cup serving (5 medium) fresh strawberries = 1 mg sodium, 120 mg potassium, 13 mg phosphorus
Strawberries are rich in two types of phenols: anthocyanins and ellagitannins. Anthocyananins are what give strawberries their red color and are powerful antioxidants that help protect body cell structures and prevent oxidative damage. Strawberries are an excellent source of vitamin C and manganese and a very good source of fiber. They are known to provide heart protection, as well as anti-cancer and anti-inflammatory components.

Eat strawberries with cereal, smoothies and salad,or slice and serve them fresh or top them with whipped topping. If you’d like a more elaborate dessert, you can make strawberry pudding or sorbet, or puree and sweeten them to serve as a dessert.

11. Cherries

1/2 cup serving fresh sweet cherries = 0 mg sodium, 160 mg potassium, 15 mg phosphorus
Cherries have been shown to reduce inflammation when eaten daily. They are also packed with antioxidants and phytochemicals that protect the heart.

Eat fresh cherries as a snack or make a cherry sauce to serve with lamb or pork. Cherry juice is another way to consume this tasty food.

12. Red grapes

1/2 cup serving red grapes = 1 mg sodium, 88 mg potassium, 4 mg phosphorus
Red grapes contain several flavonoids that give them their reddish color. Flavonoids help protect against heart disease by preventing oxidation and reducing the formation of blood clots. Resveratrol, a flavonoid found in grapes, may also stimulate production of nitric oxide which helps relax muscle cells in the blood vessels to increase blood flow. These flavonoids also provide protection against cancer and prevent inflammation.

Buy grapes with red or purple skin since their anthocyanin content is higher. Freeze them to eat as a snack or to quench thirst for those on a fluid restriction for the dialysis diet. Add grapes to a fruit salad or chicken salad. Try a unique kidney diet recipe for Turkey Kabobs that feature grapes. You can also drink them as grape juice.

13. Egg whites

2 egg whites = 7 grams protein, 110 mg sodium, 108 mg potassium, 10 mg phosphorus
Egg whites are pure protein and provide the highest quality of protein with all the essential amino acids. For the kidney diet, egg whites provide protein with less phosphorus than other protein sources such as egg yolk or meats.

Buy powdered, fresh or pasteurized egg whites. Make an omelet or egg white sandwich, add pasteurized egg whites to smoothies or shakes, make deviled egg snacks,or add whites of hard-boiled eggs to tuna salad or garden salad to add extra protein.

14. Fish

3 ounces wild salmon = 50 mg sodium, 368 mg potassium, 274 mg phosphorus
Fish provides high-quality protein and contains anti-inflammatory fats called omega-3s. The healthy fats in fish can help fight diseases such as heart disease and cancer. Omega-3s also help lower low-density lipoprotein or LDL cholesterol, which is bad cholesterol, and raise high-density lipoprotein or HDL cholesterol, which is good cholesterol.

The American Heart Association1 and American Diabetes Association2 recommend eating fish at least two times a week. Fish highest in omega-3s include albacore tuna, herring, mackerel, rainbow trout and salmon.

1American Heart Association: Fish and Omega-3 Fatty Acids

2American Diabetes Association: Seafood – A Smart Choice for Diabetes

15. Olive oil

1 tablespoon olive oil = less than 1 mg sodium, less than 1 mg potassium, 0 mg phosphorus
Olive oil is a great source of oleic acid, an anti-inflammatory fatty acid. The monounsaturated fat in olive oil protects against oxidation. Olive oil is rich in polyphenols and antioxidant compounds that prevent inflammation and oxidation.

Studies show that populations that use large amounts of olive oil instead of other oils have lower rates of heart disease and cancer.

Buy virgin or extra virgin olive oil because they are higher in antioxidants. Use olive oil to make salad dressing, in cooking, for dipping bread or for marinating vegetables.

Talk to your renal dietitian about incorporating these top 15 foods for a kidney diet into your healthy eating plan. Keep in mind that these foods are healthy for everyone—including family members and friends who do not have kidney disease or are not on dialysis. When you stock your kitchen with delicious, healthy, kidney-friend foods that’s one big step to helping you do well on your kidney diet. Get more kidney diet management help with DaVita Diet Helper™
SEE MORE

Saturday, October 24, 2015

MPLS advantages & disadvantages

MPLS advantages



Why are companies using MPLS? Here are some MPLS advantages:

Outsourced routing
 With MPLS, the carrier handles WAN routing. This means users don't have to, which makes MPLS operationally simpler than managing a large routed network. This means, in turn, that companies can keep fewer WAN/router engineers on staff.
Any-to-any connectivity
 Applications, like voice and video, feature any-to-any traffic patterns. MPLS makes it easy to interconnect sites with each other to handle these types of traffic patterns.
Built-in support for Quality of Service (QoS)
. Virtually all commercial MPLS services feature multiple levels of QoS, meaning that users can specify latency, jitter and packet loss minimum thresholds for each type of traffic (voice, video, 
email, bulk file transfers, etc.)
 This means that, for example, the MPLS network treats latency-sensitive traffic, like voice and video, preferentially over less-sensitive traffic.
Service-level agreements (SLAs)
with delivery guarantees. Like most commercial-caliber services, MPLS comes with guarantees from the carrier when it comes to installation times and availability. That's in contrast to consumer-grade Internet, which is typically offered on a best-effort basis.


Where in the WAN is MPLS used?

How are companies using MPLS? Unsurprisingly, given these MPLS advantages, the most common use for MPLS is to connect branch offices to data centers and interconnect branch offices to each other. Sixty-seven percent of benchmark participants use MPLS for this purpose. Just over half -- 52% -- are using it to interconnect data centers, and 20% say they're using it to connect remote sites.


MPLS advantages compared to WAN connectivity alternatives

As noted, MPLS is great at -- and widely used for -- interconnecting data centers and branches, and branches to each other. That level of connectivity comprises Tier 2 in the WAN architecture. What about the other two tiers?

For Tier 1 -- interconnnecting data centers -- the most common alternative to MPLS is carrier Ethernet. Carrier Ethernet is an umbrella term that covers point-to-point Ethernet, metro Ethernet, and any-to-any topologies like virtual private LAN service (VPLS). The common denominator to all these services is that they operate at Layer 2 -- where the enterprise handles all routing.

The big advantage to carrier Ethernet services is that the bandwidth is low cost (relative to the data rate) and the services are easy to set up. The downside is that carrier Ethernet services don't scale to the same order of magnitude of sites as MPLS. Because MPLS is a routed network, it can support tens of thousands of sites (and more). Carrier Ethernet, in contrast, is effectively a giant bridged network, which can't scale easily beyond a few hundred sites. So, for a small set of high-bandwidth sites like data centers, carrier Ethernet may be a better fit than MPLS. And, in fact, the most common use for Ethernet is in this Tier 1 scenario: interconnecting data centers.

At the opposite end of the WAN there's Tier 3: connecting to remote and small offices. Most companies already use Internet services to connect at least some of their remote and small offices to the WAN. Sometimes these are business-caliber Internet services (with SLAs); other times they're consumer-grade "best effort" offerings. To ensure privacy, companies may deploy encryption, including secure socket layer (SSL), IPsec, or proprietary application-layer security.

The big benefits the Internet confers over MPLS in this Tier-3 scenario are cost and ubiquity. Internet services are typically considerably cheaper than MPLS (though commercial-grade services, with SLAs, can approach MPLS in cost). And it's rare to find a location that doesn't feature at least some flavor of Internet access.

The downside? Unreliability. Consumer-grade Internet services, in particular, can be spotty, both in service quality (where the service is working, but poorly) or outright availability (where there's an outage).

So for locations where best-effort services is good enough, QoS isn't required, and ubiquity trumps reliability, Internet services make a good alternative.

The bottom line? MPLS advantages include the connectivity of data centers to branch offices, or branches to each other. For point-to-point links requiring a lot of bandwidth, or remote offices where cheap connectivity is the most important factor, Carrier Ethernet and Internet services, respectively, are solid alternatives.


SEE MORE

Thursday, August 20, 2015

How To Install Axigen Mail Server on Windows server

step1==>DOWNLOAD APP
you need primary domain :Active Directory , DNS (AAA,MX)
***if you setup AXIGEN on internet :ip static DNS  ,ACD , FIREWALL recommended(iptables)
***you can use dynamic ip for AXIGEN server but use DDNS 

step2==>





TYPE: http://host:9000
USER:admin
PASS:admin password (you typed )
SAMPlE:





GOOD LUCK 




Wednesday, August 19, 2015

How To Prevent DDOS Attack By PHP




According the PHP part of the question;
Although I don't rely on PHP for this, it could be implemented but needs to consider all these
possiblities or more;

Attacker may change IP for each request
Attacker may pass parameter(s) to URI that target site doesn't care these parameter(s)
Attacker may restart the session before expiry ...
Simple pseudo;

<?php                                                                        
// Assuming session is already started                      
$uri = md5($_SERVER['REQUEST_URI']);          
$exp = 3; // 3 seconds                                              
$hash = $uri .'|'. time();                                            
if (!isset($_SESSION['ddos'])) {                              
    $_SESSION['ddos'] = $hash;                              
                                                                                   
}                                                                              
                                                                                   
list($_uri, $_exp) = explode('|', $_SESSION['ddos']);
if ($_uri == $uri && time() - $_exp < $exp) {
    header('HTTP/1.1 503 Service Unavailable');
    // die('Easy!');
    die;
}

// Save last request
$_SESSION['ddos'] = $hash;
?>

BY qeremy
SEE MORE

Tuesday, August 11, 2015

Allow Sendmail or Postfix Traffic



#iptables -A INPUT -i eth0 -p tcp --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
#iptables -A OUTPUT -o eth0 -p tcp --sport 25 -m state --state ESTABLISHED -j ACCEPT      


How to define a static route for an external IP address on iptables

I'm putting a new router on our network to help manage our private network connections and to better control routing to the outside. I've decided to simplify this question by removing references to a second private network on our router (but please be aware that there are reasons for this question so the answer is not to leave the old router the default gateway).

I have the following routing in my iptables on our router:



# Allow established connections, and those !not! coming from the public interface
# eth0 = public interface
# eth1 = private interface #1 (129.2.2.0/25)
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW ! -i eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow outgoing connections from the private interface
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

# Masquerade (NAT)
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

# Don't forward any other traffic from the public to the private
iptables -A FORWARD -i eth0 -o eth1 -j REJECT

This configuration means that users will be forwarded through a modem/router that has a public address - this is all well and good for most purposes, and in the main it doesn't matter that all computers are hidden behind the one public IP.

However, some users need to be able to access a proxy at 192.111.222.111:8080 - and the proxy needs to identify this traffic as coming through a gateway at 129.2.2.126 (the old router) - it won't respond otherwise.

I tried adding a static route on our router with:


route add -host 192.111.222.111 gw 129.2.2.126 dev eth1

I can successfully ping 192.111.222.111 from the router. When I trace the route, it lists the 129.2.2.126 gateway, but I just get * on each of the following hops (I think this makes sense since this is just a web-proxy and requires authentication).

When I try to ping this address from a host on the 129.2.2.0/25 network it fails.

Should I do this in the iptables chain instead? How would I configure this routing?


Here is the interfaces configuration for the router:


auto eth0
iface eth0 inet static
    address     150.1.2.2
    netmask     255.255.255.248
    gateway     150.2.2.1

auto eth1
iface eth1 inet static
    address     129.2.2.125
    netmask     255.255.255.128
And here is the routing table (without my static route added):

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         eth1202.sa.adsl 0.0.0.0         UG    100    0        0 eth0
localnet        *               255.255.255.0   U     0      0        0 eth1
129.2.2.0       *               255.255.255.128 U     0      0        0 eth1


To restate - I want traffic from 129.2.2.7 (for example) to now route through our router (129.2.2.125). But this router needs to then forward 8080 requests with the destination of 192.111.222.111 - which is somewhere the other side of the old router (129.2.2.126 - which is not manageable by us).

SEE MORE

5 ways to overcome appetite

1. Eat breakfast

We often hear breakfast is the most important meal of the day because it provides us with the energy and nutrients needed to improve our concentration at home, work, or school. Breakfast is also important in helping us maintain a healthy body weight and stops us from binge eating on snack foods high in fat and sugar long before it’s time for lunch. A 2013 study found adults who skip breakfast tend to have more body weight, hypertension, insulin resistance, and elevated fasting lipid concentrations. This leaves people prone to overeating later in the day and increases their risk of

developing obesity-related diseases.

2. Snack on Healthy Foods

When the uncontrollable hunger pangs begin to set in, it’s important to consume healthy snacks that can help us avoid food cravings. Consuming healthy snacks like “fruits, vegetables, lean proteins (e.g. chicken breast, fish) are great, because they contain lots of vitamins, minerals, and other nutrients that our body can use in a healthy way,” said Dr. Lindsey Hoskins, a psychologist in Bethesda, Md., to Medical Daily in an email. She suggests replacing sugary drinks like juices and diet coke with water because it's a great way to feel full without consuming as many calories.

The more we eat addictive foods such as sugars, salts, fats, and carbohydrates, the more we want them. Consuming healthy fats can decrease sugars slowly to help avoid major cravings and prevent the body from experiencing rapid fluctuations in blood sugar levels. Hoskins believes if we train ourselves to enjoy healthier foods that aren’t as addictive, this can be an essential tool to cut down on binge eating.

3. Use Smaller Plates

While this may be playing tricks on your mind, it’s for a good cause — your health. Eating on smaller plates can help curb your appetite because, quite frankly, we all know the larger the plate, the more likely we are to overeat. A 2006 study found children and adults serve themselves based on a size-contrast illusion, meaning they serve and consume more cereal when given a larger plate compared to those given a smaller plate. Plate and spoon size on the serving and consumption of ice cream was also evaluated.

At home, portions are a key factor for stopping the family from overeating at family dinners. “Plate accordingly... don't make dinner 'a la carte’” Dr. Dale Fernandez, a chiropractor at the Back to Wellness Center in Los Angeles, Calif., told Medical Daily in an email. Rather, Fernandez said, place food items on everyone’s plates in the kitchen in appropriate portions. All the serving dishes should be kept in the kitchen and not on the table, as many of us do. “Seconds are never necessary,” he said.

4. Exercise

Physical activity can make us work up a sweat and even reduce our reaction to food signals post workout. Exercise is a great way to elevate our mood, help get our mind off food, and alleviate any stress. A 2012 study found exercise significantly reduced neuronal response to food, which could be detected in different areas of the brain. It also led to a significant decrease in activation in the parts of the brain that are associated with food craving, reducing incentive motivation, and reduced anticipation for food. Reduce your hunger pangs by getting a moderate amount of physical activity every day.

5. Mindful Eating

Overeating is a struggle that can be overcome with mindful eating techniques. Mindful eating includes pacing ourselves at meals and avoiding doing something distracting while we eat, such as sitting in front of the television or working on the computer. These distractions will interfere with our ability to perceive portion size, which can actually cause us to overeat. However, Kristen Smith, dietician in Atlanta, Ga., told Medical Daily in an email, those who eat fast and hardly chew their food don’t allow for the brain to recognize the flavor, nor give the food enough time to reach the stomach, and send a signal that it’s full. “I recommend to spend at least 20 minutes per meal and chew food to an applesauce consistency prior to swallowing,” Smith said.


SEE MORE