Posts Tagged ‘client’

Set different download locations for different filetypes using Opera

There is one thing about most browsers that really annoys me. It’s related to the download location. First of all it can take you half an hour to find how to change the default download location and after you find it you realize that you can setup only one download location for all types of files. Now this may seem a bit nitpicky, but when you download a lot files you certainly expect a little more sophisticated behavior from your browser. Of course you could always use a download client, but considering how advanced are our browsers it is kind of ridiculous to use such a client nowadays.

Introducing Opera’s download settings – a browser that lets users set their default download location for each filetype. In this short tutorial we will show you how to do just that.

First of all open Opera, click on the Opera button select Settings > Preferences:

Note: Alternatively, you can use Ctrl + F12.

A new window will open:

Navigate to the Advanced tab:

Select Downloads in the left-hand pane:

Here you can see a list of recognized files (listed with their MIME types) and the default download folder. However you can easily set a folder of your choice. Select a file type and click the Edit button. A new window will open:

Here you can directly choose the appropriate behavior for that file, including whether to be saved, opened with Opera, opened with a plug-in, opened with an application of your choice or saved to a specific location. To set a specific location for this kind of file, simply select the Save to disk radio button, check the Do not ask for folder, but save directly to option and choose the appropriate directory:

Click OK and click OK in the Preferences window.

VN:F [1.9.18_1163]
Rating: 6.7/10 (3 votes cast)

Creating host-specific PuTTY shortcuts

When using PuTTY with multiple hosts and/or with multiple sessions, there is always the problem of entering the same information many, many times. Now, you can always go for the key-based SSH login with PuTTY, which is a secure way of doing this, but here, we will present you an easier and simpler way of auto-login using PuTTY shortcuts.

First, you must obtain a copy of the PuTTY client (available here). Now, after downloading it, open PuTTY:

In the Host Name field enter the name of the host, set the port in Port and enter a name for the session in the Saved Sessions text field:

Click Save to save your profile. Now when you double-click on the entry in the Saved Sessions or click on it, click Load and click Open your PuTTY client will automatically connect to it. You can save every host you like in the Saved Sessions:

Now here is the really nice part. Create a shortcut to PuTTY and open its Properties:

Now after the current Target (after the if any, and don’t forget a space), you can add a few arguments to automatically log into a saved session. The possible arguments are:

-load “<session_name>” – for automatically loading a session. Note: <session_name> is a saved session name and not a hostname.

-l <username> – for automatically entering a username on the host.

-pw <password> – for automatically entering a password.

Note: Using the -pw option is not secure in any way. If you use it you are storing your password in plain-text. If you have any doubts about how secure your machine is, please refer to the key-based SSH login.

It is also possible to only use some of those arguments, so for example if you want to load a session and a username you can only use the -load and -l options. Or if you use the same credentials for more than one host (which is bad, bad, bad…), you can omit the -load option. So, an automatic login on the host specified in the session ABlog with username root and password badandtrivial will be:

“D:\<path_to_putty>\putty.exe” -load “ABlog” -l root -pw badandtrivial

Note: This method is not in any way secure. It is merely a method to speed up your work, but stores passwords in plain-text.

So after editing a shortcut’s properties you only click OK to save. You can easily have multiple shortcuts:

Still, secure or not, it can be used for any non critical information. It is not, in any way, more dangerous than storing passwords in browsers…

VN:F [1.9.18_1163]
Rating: 3.3/10 (3 votes cast)

50GB for free for iOS users

iDevice users can get 50GB of online storage for free by simply installing an app for their devices. The deal is offered by Box.net as blog stated. What is even more appealing is that the app is offered for free. The supported devices are iPhone, iPod Touch and iPad.

The users need only to download the app and create a free account. If they already have an account, merely signing in will give them the free 50GB.

The promotion is active until December 2, but your get to keep your space forever.

The best part of the promotion is that once you get the free space it is available from anywhere you log into your account, the service is not limited to your iOS device.

But what exactly is Box.net? It is a cloud-based service, providing storage in a way similar to Dropbox and SugarSync. Along with uploading, downloading and online access to you files, you can share them and stream video and audio to your mobile device.

The newest feature of the app allows users to stream their Box.net files from their iPhone 4S and iPad 2 to their Apple TV via wireless.

And of course there is always bad news. And here it is the one with Box.net’s promotion. Upload is via a web interface (which is not very convenient) or via your iDevice (which is limited to photos only). There is a client that is similar to the Box Sync client for Dropbox, but it’s available only for those who purchase Business or Enterprise editions.

That said, the lack of desktop client for Box.net, does minimize the appeal of the promotion, but after all it’s 50GB for free. So what do you think? Is the promotion worth it even without desktop synchronization or is manual upload to tough for you?

VN:F [1.9.18_1163]
Rating: 0.0/10 (0 votes cast)

Hacker group accuses German authorities of spying on Skype

The largest hacker group in Europe – “Chaos Computer Club” (CCC), managed to get their hands on and reverse-engineer a Trojan designed to intercept and siphon private data. In addition to that, the malware can be controlled remotely, and it can download and execute additional programs. Not only that, but CCC also discovered that the malware has significant flaws which makes all that functionality available to everyone on the Internet.

And how did the CCC get their hands on the malware? The club was involved in an investigation after the German lawyer Patrick Schladt, asked the CCC to examine a laptop, owned by his client. The client was charged with illegal export of pharmaceuticals.

According to Schladt, after the prosecutors provided screenshots of his client’s browser, he contacted the CCC. According to the law, German authorities need a permission to intercept VoIP calls and cannot do so by altering any code on the suspect’s computer.

According to Schladt German authorities and their malware, dubbed “State Trojan”, “went too far with logging”.

The CCC claims that the malware can monitor Skype, MSN Messenger and Yahoo Messenger as well as key-logging Firefox, IE and perhaps other browsers as well. It can also take screenshots and be updated as well.

The fact that the malware can be updated is extremely stressed in the CCC statement, because it infers an “upgrade path” – perhaps spying will become legal in the near future?

Another, point stressed in the CCC statement is the fact that the information the malware sends is poorly encrypted and the commands it receives are completely unencrypted.

A key point made by Schladt, is that using such a malware, may allow authorities to plant evidence on a target’s computer.

That said, and with consideration of the numerous entries in WikiLeaks considering governments using malware to spy on people, a question rises, “How many years was Orwell off?”

 

VN:F [1.9.18_1163]
Rating: 1.0/10 (1 vote cast)

AJAX Control ToolKIT ConfirmButton Extender Tutorial in ASP.NET 4.0 C#

Hi were you looking for an AJAX tutorial? Specifically on the ConfirmButton Extender Control?
Are you sure about that? Get the theme here?

Well it’s all about confirming today, and we are absolutely sure you have experienced this great and very useful control before. We are also quite positive you have also experienced an event where you wished this Control was enabled on an application or website.

Ever found yourself filling out a questionnaire form or application or profile, you just typed in what seems to be the longest questionnaire of all time to only have hit the delete button by mistake or the back button on your browser by mistake? And it prompted you with Are you sure you want to leave this page? If you do everything you just wrote will be lost in the internet forever.

Well if that has happened to you then you are lucky that it was using a ConfirmButton or at least a variation of it. So in short we will show you how to use AJAX ConfirmButton Extender, how to enable it and have it show a result or warning or whatever you may want to have it say.

Also if you’re ever in the market for some great Windows web hosting, try Server Intellect. We have been very pleased with their services and most importantly, technical support.

Now that I gave you the simple user guide explanation I will also give you a reference or more semi technical explanation.

The ConfirmButton is a simple extender that catches clicks on a button and displays a message to the user. If the “OK” button is clicked, the button or link functions normally. If not, the click is trapped and the button will not perform its default submit behavior; optionally, a client script is executed if the OnClientCancel property is set. This is useful for delete links or anything else that requires confirmation from the user.

The properties in italics are optional.

Default.aspx

<ajaxToolkit:ConfirmButtonExtender ID ="cbe" runat ="server" TargetControlID ="LinkButton1" ConfirmText ="Are you sure you want to click this?" OnClientCancel ="CancelClick" />

• TargetControlID – The ID of the Button control to extend.
• ConfirmText – The confirmation text to display. HTML entities can be used, such as
for a newline character.
• OnClientCancel – The client script to execute when the Cancel button is clicked in the confirm dialog box.
• ConfirmOnFormSubmit – true if the confirm dialog box should not be displayed until just before the form is submitted. This is useful if the page contains ASP.NET validator controls and the confirm dialog box should be displayed only after all validation checks pass.
• DisplayModalPopupID – Specifies the ID of a ModalPopup control to use to display the confirm dialog box instead of the default window.confirm window. When you use the DisplayModalPopupID property, the following conditions must be met:
• The ModalPopup control must be configured with the same TargetControlID value as the ConfirmButton extender. (It will work properly if the ConfirmButton extender is disabled.)
• The ModalPopup control must specify the OkControlID or the CancelControlID properties in order to identify the buttons that correspond to the the OK and Cancel buttons in the confirm dialog box.
• The ModalPopup must not specify a OnOkScript or OnCancelScript property.

ConfirmButton Client Reference
Sys.Extended.UI.ConfirmButtonBehavior Class
Events
• showing(handler) – Adds or removes an event handler for the showing event.
• Parameters – A function that represents the event handler.
• hidden(handler) – Adds or removes an event handler for the hidden event.
• Parameters – A function that represents the event handler.

Methods
• initialize() – Initializes the ConfirmButton behavior.
• dipose() – Disposes the ConfirmButton behavior.
• raiseShowing(eventArgs) – Raises the showing event.
• Parameters – A Sys.EventArgs object that represents event arguments for the showing event.
• raiseHidden(eventArgs) – Raises the hidden event.
• Parameters – A Sys.EventArgs object that represents event arguments for the hidden event.

Properties
• OnClientCancel – Gets or sets a string that contains client script that executes when the Cancel button is clicked in the confirm dialog box.
• ConfirmText – Gets or sets the confirmation text to display.
• Remarks – HTML entities can be used, such as
for a newline character.
• ConfirmOnFormSubmit – Gets or sets a Boolean value that specifies that the confirm dialog box should not be displayed until just before the form is submitted. This is useful if the page contains ASP.NET validator controls and the confirm dialog box should be displayed only after all validation checks pass.
• displayModalPopupID – Gets or sets a string that contains the ID of a ModalPopupBehavior control to use instead of the default window.confirm dialog box.
• postBackScript – Gets or sets a string that contains script to run in order to initiate a postback.

Sys.Extended.UI.ConfirmButtonHiddenEventArgs Class
• Summary – Defines arguments for the hidden event.
• Parameters – Boolean confirmed

Properties
• confirmed – Gets a Boolean value that indicates whether the user clicked OK.

Got that? Are you sure?

Did You Know?
We used over 10 web hosting companies before we found Server Intellect. They offer dedicated servers, and they now offer cloud hosting!

Default.aspx
As you can see we built a simple example of a confirm button
</script></head><body> <form id="form2" runat="server"> <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </cc1:ToolkitScriptManager> <asp:Label ID="Label1" runat="server" Text="Click this button to open AJAX Confirm box:" Font-Bold="true" Font-Size="16px"></asp:Label><br /><asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="btnConfirm" runat="server" Text="Confirm" OnClick="btnConfirm_Click" /> <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="btnConfirm" ConfirmText="Are you sure?
You want to run the server code." OnClientCancel="onCancel" ConfirmOnFormSubmit="false"> </cc1:ConfirmButtonExtender> <asp:Label ID="lblMessage" runat="server"></asp:Label><br /> </ContentTemplate></asp:UpdatePanel> </form></body></html>

We stand behind Server Intellect and their support team. They offer dedicated servers , and they are now offering cloud hosting!

Default.aspx.cs
We set the logic to pop up a label message in a modal window.
protected void btnConfirm_Click(object sender, EventArgs e) { lblMessage.Text = "You clicked the <b>OK</b> button of AJAX confirm"; } Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 2.0/10 (15 votes cast)

How to set Opera to use a proxy server

Proxy servers act as an intermediary for client requests. The basic mechanism is – the client connects to the proxy server and asks for a given resource, then the proxy server evaluates if the request is in accordance with its filtering rules and if it is, it delivers the resource to the client. Proxy servers have many purposes, including keeping the client anonymous, speeding up access to resources, applying access policies, usage logs, etc. Setting up a proxy server is extremely easy in Opera. Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 10.0/10 (1 vote cast)

Deactivate the Firefox 3.5 Geolocation feature

Many people worry about their privacy because of the new Firefox 3.5 feature called Geolocation. Well turning it off is really easy using a little about:config trick.

How it works: The Geolocation feature determines your location using the Google Locations Services. It uses your IP, information about nearby wireless access points and a client identifier which is assigned by google every two weeks.

First open Firefox. In the address bar enter about:config:
Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 0.0/10 (0 votes cast)

Asynchronous Socket Class Win32 API

I created this class while trying to avoid having recv hang/block indefinitely in a simple client application I was working on, without using MFC. recv can hang for a variety of reasons most common is untimely calling of recv or calling it when the remote server doesn\”t send data it was supposed to send, e.g.: because of a malformed request. Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 0.0/10 (0 votes cast)

Disable Thunderbird notifications for new emails

In this tutorial we will guide you in three easy steps how to disable new message notifications in Mozilla Thunderbird. Thought this feature could be quite useful in some cases I personally find it really disturbing and annoying. I guest it all depends by the volume of emails you receive on daily basis. If you are waiting an important email form a client or from your CEO for example it would be better if you respond as quickly as possible. However, in my inbox i get about four hundred emails per day. It is really bad when I\”m in a middle of a presentation with a possible client and you get a notification for incoming email from a direct competitor in the business segment. Not that it has happened to me , but I have heard stories. To avoid being the main character is such confusing incidents I will guide you how to disable the alerts for new messages in Mozilla Thunderbird.

Fist of all here is how the new email notifications look like in Thunderbird. Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 10.0/10 (3 votes cast)

Extensible Markup Language (XML)

Extensible Markup Language (XML)

As the popularity of the Web grew rapidly, HTML’s limitations became apparent. The lack of extensibility (the ability to change or add features) frustrated developers, and its ambiguous definition allowed erroneous HTML to proliferate. In response to these problems, the W3C added limited extensibility to HTML. This, however, was only a temporary solution – the need for a standardized, fully extensible and structurally strict language was obvious. XML was developed by the W3C. XML combines the power and extensibility of its parent language, Standard Generalized Markup Language (SGML), with the simplicity that the Web community demands.

Data independence, the separation of content from its presentation, is the essential characteristic of XML. Because an XML document describes data, any application conceivably can process an XML document. Recognizing this, software developers are integrating XML into their applications to improve Web functionality and interoperability.

XML flexibility and power make it perfect for the middle tier of client/server systems, which must interact with a wide variety of clients. Much of the processing that was once limited to server computers now can be performed by client computers, because XML’s semantic and structural information enables it to be manipulated by any application that can process text. This reduces server loads and network traffic, resulting in a faster, more efficient Web.

XML usage is not only limited to Web applications. XML is also being employed in databases – the structure of an XML document enables it to be integrated easily with database applications. As applications become more Web enabled, it seems likely that XML will become the universal technology for data representation. All applications employing XML would be able to communicate, provided that they could understand each other’s XML markup, or vocabulary.

Simple Object Access Protocol (SOAP) is a technology for the distribution of objects (marked up as XML) over the Internet. Developed primarily by Microsoft and Develop-Mentor, SOAP provides a framework for expressing application semantics, encoding that data and packaging it in modules. SOAP has three parts: The envelope, which describes the content and intended recipient of a SOAP message; the SOAP encoding rules, which are XML-based; and the SOAP Remote Procedure Call (RPC) representation for commanding other computers to perform a task. Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 0.0/10 (0 votes cast)