tag:blogger.com,1999:blog-88507709691692664712024-02-20T08:45:25.332+00:00Informatic Tips and HelpTips and help for windows, Mac Os, and developing programs ( like MIPS , visual studio , iphone ). Have tips for c#, c, cshell, perl, java, assemblyUnknownnoreply@blogger.comBlogger49125tag:blogger.com,1999:blog-8850770969169266471.post-30505473717597753582018-02-09T10:56:00.000+00:002018-02-09T10:56:09.631+00:00Bankera, a interesting cryptoBankera has recently accelerated the search ... already has tokens cost € 0.018 each. And until February will increase to 0.024 €. Anyone who wants to invest in this ICO has to think about not losing the train, because the cheaper tokens have already been.<br />
They intend to have a banking service (payments, loans, deposits, investments) but in the world of crypto-coins. Team that already has an exchange and already operates VISA prepaid cards.<br />
And if they have the HODL strategy for a long time (1 to 2 years) the 2 cents now that can quickly reach 1 € each token, would give a valuation of 50x or more ... Just send ETH, DASH or NEM for Spectrocoin and exchange for BNK. Register here:https://bankera.com/?ref=352479615Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-45868596478869082622018-02-09T10:52:00.002+00:002018-02-09T10:53:13.221+00:00Alternative Exchange - BinanceHi there,<br />
<br />
like i said in the previous post i will now talk about <a href="https://www.binance.com/?ref=22825535">Binance</a>.<br />
<a href="https://www.binance.com/?ref=22825535">Binance</a> is a exchange where you can buy a lot of alternative coins.<br />
To start, you can register at <a href="https://www.binance.com/?ref=22825535">https://www.binance.com/?ref=22825535</a><br />
<br />
If you need help you can view this youtube video, they explain how to create and verify the account (the verification is also a fast process) <a href="https://www.youtube.com/watch?v=okI6ZnNUOoU">https://www.youtube.com/watch?v=okI6ZnNUOoU</a><br />
<br />
After that you can buy a lot of alternative coins.<br />
<br />
In Binance, you can only buy coins if you already have coins like Bitcoin of Ethereum.<br />
So what i recommend is, buy some coins in <a href="https://www.coinbase.com/join/5a5dcc6829393903cda3bfbc">Coinbase</a>, and after that you can transfer the coins to Binance.<br />
You can see this video how to send coins to Binance: <a href="https://www.youtube.com/watch?v=6TJLlf6Xqyk">https://www.youtube.com/watch?v=6TJLlf6Xqyk</a><br />
<br />
Is a easy process and it can take around to 5-10 minutos to send the bitcoins or Ethereum to Binance.<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-86428721795246939862018-02-09T10:43:00.001+00:002018-02-09T10:53:50.818+00:00Start buying some bitcoinsEveryone is talking about bitcoins, so i investigate and create a account in Coinbase to buy some bitcoins, litecoins and ethereum.<br />
<br />
After i did some research one of the best exchange to start buying bitcoins or litecoins is the <a href="https://www.coinbase.com/join/5a5dcc6829393903cda3bfbc">Coinbase</a>.<br />
You can register at <a href="https://www.coinbase.com/join/5a5dcc6829393903cda3bfbc">coinbase</a> from here <a href="https://www.coinbase.com/join/5a5dcc6829393903cda3bfbc">https://www.coinbase.com/join/5a5dcc6829393903cda3bfbc</a><br />
<br />
If you register via this link when you buy 100€ of coins in their house they will give for free 8€.<br />
<br />
If you need help during your sign up you can view this youtube video <a href="https://www.youtube.com/watch?v=yxVNob1JNtU">https://www.youtube.com/watch?v=yxVNob1JNtU</a><br />
<br />
After you have your account create you need to validade your identity, before you can start buying some coins (this is a fast process and can take only some minutes to validate).<br />
<br />
After that you can send money to <a href="https://www.coinbase.com/join/5a5dcc6829393903cda3bfbc">coinbase</a> via transfer or if you want to start fast you can buy with credit card (here you will have some fees)<br />
<br />
In the next post i will talking about another exchange to buy another coins.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-36169691560663580712013-09-18T22:27:00.000+01:002013-09-18T22:27:26.265+01:00Create a Web Service Client with JAX-WSThis example shows how to create a web service client using JAX-WS reference implementation and its tool 'wsimport'.
JAX-WS RI can be downloaded from Sun (http://java.sun.com).
To create the web service client we need an existing web service, so we will use the one created in the example 'Create a simple Web Service':
Click here to go to the '<a href="http://informatictips.blogspot.pt/2013/09/create-simple-web-service.html">Create a simple Web Service</a>' example
So we assume the web service is deployed on our local computer and it listens to port 8080.
Go to the bin directory in the jax-ws ri installation directory and run the command wsimport.bat (if Windows, else wsimport.sh) and pass the url to the wsdl-file as a parameter.
wsimport http://localhost:8080/JavaDbExamplesWeb/JavadbWebServiceService?WSDL
There are a number of options you can pass to the wsimport utility so you might want to run wsimport -help to find out more.
For example, you might want to use the option -keep to prevent the wsimport utility to delete the .java files after compilation.
Now the utility has read the wsdl-file, created the necessary classes and compiled them for us to use.
We can now create the class that will use them and call the web service.
<pre class="brush: java">
package com.javadb.examples;
import com.javadb.ws.example.JavadbWebService;
import com.javadb.ws.example.JavadbWebServiceService;
/**
*
* @author www.javadb.com
*/
public class Main {
public void callWebService() {
/* Note, the JavadbWebServiceService class has two constructors.
* The default one that we use here uses the wsdl-location that was
* specified at the time of the generation of the client classes,
* i.e. localhost. If the service is deployed at
* another location you need to use the constructor:
* public JavadbWebServiceService(URL wsdlLocation, QName serviceName)
*/
JavadbWebServiceService service = new JavadbWebServiceService();
JavadbWebService port = service.getJavadbWebServicePort();
String currentTime = port.getTime();
System.out.println("Current time is: " + currentTime);
}
public static void main(String[] args) {
new Main().callWebService();
}
}
</pre>
Note that you need the genereated classes and the jax-ws libraries in the classpath when you compile and run the above class.
That is easiest done by pointing them out in your project properties in the IDE.
The output looks something like this:
<b>Current time is: 15:54
</b>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8850770969169266471.post-61979144719625625172013-09-18T22:25:00.000+01:002013-09-18T22:46:15.714+01:00Create a simple Web ServiceThis code example shows how to create a simple web service. We use the annotation @WebService to declare the class as a such.
The annotation @WebMethod is provided at method level to declare it as an operation for the web service.
The operation getTime of the JavadbWebService simply returns the current time.
<br />
<pre class="brush: java">package com.javadb.ws.example;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import javax.jws.WebMethod;
import javax.jws.WebService;
/**
*
* @author www.javadb.com
*/
@WebService()
public class JavadbWebService {
@WebMethod
public String getTime() {
Calendar calendar = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
return (sdf.format(calendar.getTime()));
}
}
</pre>
The result of a call to the operation getTime produces something like this:
<b>14:15
</b>
This is the SOAP request and response to the web service:
<br />
<pre class="brush: xml"><s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:header>
<s:body>
<ns2:gettime xmlns:ns2="http://example.ws.javadb.com/">
</ns2:gettime></s:body>
</s:header></s:envelope>
<s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:body>
<ns2:gettimeresponse xmlns:ns2="http://example.ws.javadb.com/">
<return>14:15</return>
</ns2:gettimeresponse>
</s:body>
</s:envelope>
</pre>
<br />
<br />
Article from <a href="http://www.blogger.com/www.javadb.com/create-a-simple-web-service">www.javadb.com/create-a-simple-web-service</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-89895666945167170612013-09-18T22:17:00.001+01:002013-09-18T22:46:05.316+01:00Using a Message Handler to alter the SOAP Header in a Web Service ClientSometimes you need to insert information in the soap header when calling a web service. Perhaps the service needs authentication information that needs to be set.
This example shows how to set the security information for a Web Service that is deployed on a Weblogic server using JAX-WS and SAAJ.
First we need to create the actual handler which implements the SOAPHandler interface.
Next we need to create the class that implements the HandlerResolver interface. This class decides what handlers should be called and in what specific order. The handler above is added to this class.
Finally we need to add the HandlerResolver instance to the Web Service Client.
By default the SOAP header is empty, but this is what we want the header to look like on the outbound call (the call to the web service):
<br />
<pre class="brush: html">
<s:header>
<wsse:security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:usernametoken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:username>TestUser</wsse:username>
<wsse:password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TestPassword</wsse:password>
</wsse:usernametoken>
</wsse:security>
</s:header>
</pre>
In our handler we need to do the implementation of a few methods but it is only the handleMessage() method that is of essence here.
This is what our handler class looks like:
<br />
<pre class="brush: java">package com.javadb.ws.example;
import java.util.Set;
import javax.xml.namespace.QName;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.soap.SOAPMessageContext;
/**
*
* @author www.javadb.com
*/
public class HeaderHandler implements SOAPHandler<soapmessagecontext> {
public boolean handleMessage(SOAPMessageContext smc) {
Boolean outboundProperty = (Boolean) smc.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
if (outboundProperty.booleanValue()) {
SOAPMessage message = smc.getMessage();
try {
SOAPEnvelope envelope = smc.getMessage().getSOAPPart().getEnvelope();
SOAPHeader header = envelope.addHeader();
SOAPElement security =
header.addChildElement("Security", "wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd");
SOAPElement usernameToken =
security.addChildElement("UsernameToken", "wsse");
usernameToken.addAttribute(new QName("xmlns:wsu"), "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd");
SOAPElement username =
usernameToken.addChildElement("Username", "wsse");
username.addTextNode("TestUser");
SOAPElement password =
usernameToken.addChildElement("Password", "wsse");
password.setAttribute("Type", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
password.addTextNode("TestPassword");
//Print out the outbound SOAP message to System.out
message.writeTo(System.out);
System.out.println("");
} catch (Exception e) {
e.printStackTrace();
}
} else {
try {
//This handler does nothing with the response from the Web Service so
//we just print out the SOAP message.
SOAPMessage message = smc.getMessage();
message.writeTo(System.out);
System.out.println("");
} catch (Exception ex) {
ex.printStackTrace();
}
}
return outboundProperty;
}
public Set getHeaders() {
//throw new UnsupportedOperationException("Not supported yet.");
return null;
}
public boolean handleFault(SOAPMessageContext context) {
//throw new UnsupportedOperationException("Not supported yet.");
return true;
}
public void close(MessageContext context) {
//throw new UnsupportedOperationException("Not supported yet.");
}
}
</soapmessagecontext></pre>
The handler resolver that is to contain the SOAP handler above looks like this:
<br />
<pre class="brush: java">package com.javadb.ws.example;
import java.util.ArrayList;
import java.util.List;
import javax.xml.ws.handler.Handler;
import javax.xml.ws.handler.HandlerResolver;
import javax.xml.ws.handler.PortInfo;
/**
*
* @author www.javadb.com
*/
public class HeaderHandlerResolver implements HandlerResolver {
public List<handler> getHandlerChain(PortInfo portInfo) {
List<handler> handlerChain = new ArrayList<handler>();
HeaderHandler hh = new HeaderHandler();
handlerChain.add(hh);
return handlerChain;
}
}
</handler></handler></handler></pre>
Finally we need to add the handler resolver to our web service client class.
<br />
<pre class="brush: java"> JavadbWebServiceService service = new JavadbWebServiceService();
HeaderHandlerResolver handlerResolver = new HeaderHandlerResolver();
service.setHandlerResolver(handlerResolver);
JavadbWebService port = service.getJavadbWebServicePort();
//Call web service
String currentTime = port.getTime();
System.out.println("Current time is: " + currentTime);
</pre>
To find out how to generate the web service client classes check out this example:
<a href="http://informatictips.blogspot.pt/2013/09/create-web-service-client-with-jax-ws.html">Create a Web Service Client with JAX-WS
</a>
<br />
<br />
This is an article from <a href="http://www.javadb.com/using-a-message-handler-to-alter-the-soap-header-in-a-web-service-client">http://www.javadb.com/using-a-message-handler-to-alter-the-soap-header-in-a-web-service-client</a>Unknownnoreply@blogger.com176tag:blogger.com,1999:blog-8850770969169266471.post-14811083437162027852012-03-09T12:18:00.002+00:002012-03-09T12:18:36.218+00:00Configure FTP ( Firewall ) - Windows Server 2008 R2In the first place i tried this option :
<blockquote>Windows Firewall and non-secure FTP traffic
Windows firewall can be configured from command line using netsh command. 2 simple steps are required to setup Windows Firewall to allow non-secure FTP traffic
1) Open port 21 on the firewall
netsh advfirewall firewall add rule name="FTP (no SSL)" action=allow protocol=TCP dir=in localport=21
2) Activate firewall application filter for FTP (aka Stateful FTP) that will dynamically open ports for data connections
netsh advfirewall set global StatefulFtp enable
</blockquote>
but this only let me to connect sucessfully (with credentials), but allways gives me D ECONNABORTED - Connection aborted
Erro: Failed to obtain the folder list
so i search over the internet and found this tip,
<blockquote>You need to allow the ftp server through the firewall. The default entry in the firewall is incorrect. Assuming you already have the correct ports open, you also need to do the following:
Search for 'firewall' in the start menu search
Click on 'Allow a program through Windows Firewall'
There is a default entry for 'FTP Server', however this is NOT the one you need. In fact, if you have a look at the windows service for the FTP server, it is invoked via svchost.exe. Click on the 'Allow another program...' button, and enter C:\Windows\System32\svchost.exe.
Once you have added this entry, tick the checkbox for both Home/Work and Public profiles.
This will allow you to successfully use the FTP server with the firewall turned on.</blockquote>
and now i can connect and get the folder listUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-91394787717100876682011-08-12T01:14:00.001+01:002011-08-12T01:17:03.866+01:00Remove aplications in LaunchpadIf you upgraded to Mac OS Lion you certainly know Launchpad <div class="separator" style="clear: both; text-align: center;"><a href="http://chaosspace.de/wp-content/uploads/2011/07/Launchpad-Icon.png" imageanchor="1" style="clear:right; float:right; margin-left:1em; margin-bottom:1em"><img border="0" height="128" width="128" src="http://chaosspace.de/wp-content/uploads/2011/07/Launchpad-Icon.png" /></a></div><br />
, the “home for your apps” like Apple says.<br />
A huge disadvantage of the Launchpad is that every app that is located in your Applications folder is in Launchpad. That means that you will see every .app like helper programs like uninstallers or updaters and these apps can’t be hidden easily from Launchpad because there are no such preferences.<br />
So someone developed the Launchpad-Control<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://chaosspace.de/wp-content/uploads/2011/07/128.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="128" width="128" src="http://chaosspace.de/wp-content/uploads/2011/07/128.png" /></a></div><br />
<br />
<br />
Launchpad-Control is a small tool which allows you to easily hide/unhide apps (and groups) from launchpad in Mac OS X Lion.<br />
Update #1: This tool is now a system preference pane! No need to have an additional app on your mac. Once you open the file it “installs” itself into the system preferences where it can be found under “Launchpad”. Isn’t that great?<br />
Features<br />
▪ It’s a system preference pane (update #1)<br />
▪ Displays a table with all apps that are in Launchpad<br />
▪ Checkboxes for every app allow you to easily specify apps you want to hide or show<br />
▪ Backups/Restores your original database file<br />
▪ It’s completely free!<br />
Download<br />
<a href="http://chaosspace.de/download.php?id=Launchpad-Control">Download Launchpad-Control now</a>. It’s free!<br />
<br />
Source: <a href="http://chaosspace.de/dev/launchpad-control-hide-apps-from-launchpad/">http://chaosspace.de/dev/launchpad-control-hide-apps-from-launchpad/</a><br />
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-2387923863654916112011-08-10T14:43:00.002+01:002013-09-18T22:41:52.201+01:00Embed Code Syntax in your postsSteps to Add it to Blogger:<br />
To highlight your code you just need to follow this steps:<br />
<br />
1. You need to login to you account;<br />
<br />
2.After that, go the Blogger Dashboard ->Design->Edit HTML. <br />
<br />
The first step is making a backup of your current theme; <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Sk3wjCrkWcA/Tij8YOWRq5I/AAAAAAAAAao/WWMgCDzEYYE/s1600/deit.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="530" src="http://4.bp.blogspot.com/-Sk3wjCrkWcA/Tij8YOWRq5I/AAAAAAAAAao/WWMgCDzEYYE/s1600/deit.PNG" width="728" /></a></div>
<br />
<br />
<br />
<br />
3. Now you need to copy the fowling code, and this is importing, copy it to Above/Before tag.<br />
<br />
<br />
<pre class="brush: java;"> <link href='http://alexgorbatchev.com.s3.amazonaws.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com.s3.amazonaws.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script src='http://alexgorbatchev.com.s3.amazonaws.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com.s3.amazonaws.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/sh/current/scripts/shBrushVb.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js' type='text/javascript'/>
</pre>
<br />
4. Now we nee to include this scripts, copy this code to Above/Before the tag.<br />
<br />
<pre class="brush: java;"> <script language='javascript'>
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.config.clipboardSwf = &#39;http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf&#39;;
SyntaxHighlighter.all();
</script>
</pre>
<br />
5. When you need to insert code, you just need to insert this tag, and paste it inside the tag:<br />
<br />
<pre class="brush: java;"> <pre class="brush: BRUSH-NAME">
Paste Your Code Here
</pre>
</pre>
<br />
<br />
The "BRUSH-NAME" needs to be changes, so when your code is from a certain type, just change it to the right tag. For example, if is a xml code, change it to "BRUSH-NAME" with xml. All the code should be Escaped (Visit this Page to make your Code Escaped)<br />
<br />
Note that there are a lot of different brush types that you can use:<br />
• actionscript3, as3<br />
• bash, shell<br />
• c#, c-sharp, csharp<br />
• coldfusion, cf<br />
• cpp, c<br />
• css<br />
• delphi, pascal, pas<br />
• diff, patch<br />
• erl, erlang<br />
• groovy<br />
• java<br />
• perl<br />
• php<br />
• plain<br />
• powershell<br />
• python<br />
• ruby<br />
• scala<br />
• sql<br />
• vb<br />
• xml, html<br />
The source list can be found at <a href="http://alexgorbatchev.com/pub/sh/">http://alexgorbatchev.com/pub/sh/</a><br />
<br />
<br />
<br />
This is some features you can do:<br />
<br />
<pre class="brush: xml;highlight: [1,3];">This Line is Highlighted
This Line is not Highlighted
This Line is again Highlighted
</pre>
<br />
You can hide the toolbar, if you want:<br />
<br />
<pre class="brush: xml; toolbar: false;">
If You observe ,there is no Toolbar
</pre>
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-34363111011933295352011-07-30T01:48:00.003+01:002011-08-12T01:14:49.542+01:00Add subtitles in quicktime (Mac OS)<div>By default Quicktime does not put the subtitles in movies. To insert subtitles when you watch movies, you must install a program called Perian.<br />
<br />
Download - <a href="http://perian.org/"> Perian Site</a><br />
<br />
If we want to see movies in wmv Quictime or Mac OS have to install a necessary codec, Flip4Mac<br />
<br />
Download – <a href="http://windows.microsoft.com/en-US/windows/products/windows-media-player/wmcomponents">Site</a><br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-31895380577212190602011-07-30T01:48:00.002+01:002011-07-31T12:12:28.350+01:00Menu Asp.NET and the browsers Chrome / SafariThere is an existing problem in the ASP.NET Menu control, which makes the menu not rendered correctly in these browsers and derivatives (AppleWebKit). What actually happens is that the server detects the user's user agent (client) and then mount the menu according to this, however, compared to Safari / Chrome and its derivatives, does not recognize them as browsers that are capable, and so the whole menu is 'destroyed'<br />
<br />
So there are some ways to inform the ASP.NET existence of these browsers, I'll explain some ways that might lead to you:<br />
<br />
Form 1: You create a folder App_Browsers, and within that create a file eg 'safari.browser, which should contain the following:<br />
The way is then alert the Asp.NET the existence of these browsers. And this just create a folder and a file.<br />
<br />
If you no longer exist, create a folder in your project App_Browsers. And inside it create a file called safari.browser, which should contain the following:<br />
<br />
<pre class="brush: xml"><browsers>
<browser refID="safari1plus">
<controladapters>
<adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" />
</controlAdapters>
</browser>
</browsers>
</pre><br />
Form 2: You can add this piece of code to the MasterPage's Page_Load event<br />
<br />
<pre class="brush: csharp">if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}
</pre><br />
Form 3: Add this method in the MasterPage,<br />
<br />
<pre class="brush: csharp">protected void Page_PreInit(object sender, EventArgs e)
{
// This is necessary because Safari and Chrome browsers don't display the Menu control correctly.
// All webpages displaying an ASP.NET menu control must inherit this class.
if (Request.ServerVariables["http_user_agent"].IndexOf("Safari", StringComparison.CurrentCultureIgnoreCase) != -1)
Page.ClientTarget = "uplevel";
}
</pre><br />
Form 4: Another method is adding this method in the MasterPage<br />
<br />
<pre class="brush: csharp">protected override void AddedControl(Control control, int index)
{
// This is necessary because Safari and Chrome browsers don't display the Menu control correctly.
// Add this to the code in your master page.
if (Request.ServerVariables["http_user_agent"].IndexOf("Safari", StringComparison.CurrentCultureIgnoreCase) != -1)
this.Page.ClientTarget = "uplevel";
base.AddedControl(control, index);
}
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-13826430317965371242011-02-17T14:58:00.000+00:002011-02-17T14:58:10.638+00:00The truth about working in the IT industryThe truth about working in the IT industry<br />
<br />
1. We work weird (night) shifts…<br />
Just like prostitutes.<br />
<br />
2. They pay you to make the client happy…<br />
Just like a prostitute.<br />
<br />
3. The client pays a lot of money, but your employer keeps almost every penny…<br />
Just like a prostitute.<br />
<br />
4. You are rewarded for fulfilling the client's dreams…<br />
Just like a prostitute.<br />
<br />
5. Your friends fall apart and you end up hanging out with people in the same profession as you…<br />
Just like a prostitute.<br />
<br />
6. When you have to meet the client you always have to be perfectly groomed…<br />
Just like a prostitute.<br />
<br />
7. But when you go back home it seems like you are coming back from hell…<br />
Just like a prostitute.<br />
<br />
8. The client always wants to pay less but expects incredible things from you…<br />
Just like a prostitute.<br />
<br />
9. When people ask you about your job, you have difficulties to explain it…<br />
Just like a prostitute.<br />
<br />
10. Everyday when you wake up, you say: "I'm not going to spent the rest of my life doing this."<br />
Just like a prostitute................<br />
....Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8850770969169266471.post-70082907783492384592011-01-24T13:59:00.002+00:002011-07-31T01:18:24.147+01:00Rounded courners CSSCantos Redondos com css / Rounded Corners with css<br />
<br />
<pre class="brush: css">border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-29979147906111787222011-01-18T17:46:00.002+00:002011-07-31T01:19:09.885+01:00CSS Hack for IE VS Firefox VS Safari VS Opera<pre class="brush: css">/* Firefox */
@-moz-document url-prefix()
{
.arrowlistmenu { margin-top:-10px }
}
/* Safari */
@media screen and (-webkit-min-device-pixel-ratio:0)
{
.arrowlistmenu { margin-top:-10px }
}
/* Opera */
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
{
.arrowlistmenu { margin-top:-10px }
}
/* IE 7 */
html > body #ie7
{
*.arrowlistmenu { margin-top:-10px }
}
/* IE 6 */
body #ie6
{
_.arrowlistmenu { margin-top:-10px }
}
With stylesheets
<blockquote><!--[if IE 7]>
<style type="text/css">
</style>
<![endif]-->
<!--[if IE 6]>
<style type="text/css">
</style>
<![endif]--> </blockquote></pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-44283582808481670402010-07-16T16:38:00.002+01:002011-07-31T01:20:48.321+01:00Send appointments to a list of Recipients (exchange 2007) via c#To use this code, you need to install <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1">http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1</a> , this will create a dll, that you need to import to the project<br />
<br />
<br />
<pre class="brush: csharp">try
{
// TODO: Write implementation for action
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(ssAuthentication.ssSTAuthentication.ssUsername, ssAuthentication.ssSTAuthentication.ssPassword, ssAuthentication.ssSTAuthentication.ssDomain);
service.Url = new Uri(ssAuthentication.ssSTAuthentication.ssServiceUrl);
Appointment appointment = new Appointment(service);
appointment.Subject = ssSubject;
appointment.Body = ssDescription;
appointment.Start = ssStartDate;
appointment.End = ssEndDate;
appointment.Location = ssLocation;
for (int i = 0; i < ssRecipients.Length; i++)
{
appointment.RequiredAttendees.Add(ssRecipients[i].ssSTListOfEmails.ssEmail);
}
appointment.Save(SendInvitationsMode.SendOnlyToAll);
}
catch (Exception e)
{
ssErrors = "The error is: " + e.ToString();
}
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-28061232511359939482010-07-16T16:27:00.002+01:002011-07-31T01:22:44.380+01:00Send email (exchange 2007) via c#To use this code, you need to install <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1">http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1</a> , this will create a dll, that you need to import to the project<br />
<br />
<pre class="brush: csharp">//connection to ExchangeServer
try
{
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(ssAuthentication.ssSTAuthentication.ssUsername, ssAuthentication.ssSTAuthentication.ssPassword, ssAuthentication.ssSTAuthentication.ssDomain);
service.Url = new Uri(ssAuthentication.ssSTAuthentication.ssServiceUrl);
// Create an e-mail message and identify the Exchange service.
EmailMessage message = new EmailMessage(service);
// Add properties to the e-mail message.
message.From = ssSender;
message.Subject = ssEmailSubject;
message.Body = ssEmailDescription;
for (int i = 0; i < ssRecipient.Length; i++)
{
message.ToRecipients.Add(ssRecipient[i].ssSTListOfEmails.ssEmail);
}
// Send the e-mail message and save a copy.
message.Send();
}
catch (Exception e)
{
ssErrors = "The error is: " + e.ToString();
}
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-55725639474715007102010-07-12T16:28:00.003+01:002011-07-31T01:24:22.580+01:00Access to email exchange from c#To use this code, you need to install<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1">http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1</a> , this will create a dll, that you need to import to the project <br />
<br />
<pre class="brush: csharp"> ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(user, password, domain);
service.Url = new Uri("https://domain/EWS/Exchange.asmx");
Mailbox mb = new Mailbox(email_to_access);
FolderId fid1 = new FolderId(WellKnownFolderName.Inbox, mb);
//reads the emails
FindItemsResults <Item> <item>findResults = service.FindItems(fid1, new ItemView(50));
foreach (Item item in findResults.Items)
{
item.Load();
EmailMessage m = (EmailMessage)item;
if (!m.IsRead)
{
//Set Isread.
m.IsRead = true;
m.Update(ConflictResolutionMode.AutoResolve);
}
}
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-16710210399012426922010-07-12T16:26:00.002+01:002011-07-31T01:25:42.083+01:00Access to a appoitment from the Exchange calendar in c#To use this code, you need to install<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1">http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1</a> , this will create a dll, that you need to import to the project <br />
<br />
<pre class="brush: csharp">ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(user, password, domain);
service.Url = new Uri("https:/domain/EWS/Exchange.asmx");
Mailbox mb = new Mailbox(email_to_access);
DateTime startDate = new DateTime(2010, 1, 1);
DateTime endDate = new DateTime(2011, 1, 31);
CalendarView calView = new CalendarView(startDate, endDate);
calView.PropertySet = new PropertySet(BasePropertySet.IdOnly, AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.IsRecurring, AppointmentSchema.AppointmentType);
FindItemsResults <Appointment> <appointment>findResults = service.FindAppointments(WellKnownFolderName.Calendar, calView);
foreach (Appointment appt in findResults.Items)
{
if (appt.AppointmentType == AppointmentType.Occurrence)
{
// Calendar item is an occurrence in a recurring series.
}
else if (appt.AppointmentType == AppointmentType.Exception)
{
// Calendar item is an exception in a recurring series.
}
}
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-40764122908428966592010-06-24T23:27:00.001+01:002011-07-31T01:26:24.694+01:00Check if a number is odd or even in c#Ver os números primos em c#<br />
<br />
<pre class="brush: csharp">static void CheckOddEven(int num)
{
if (num % 2 == 0)
{
Console.Write("\nYour number is even.\n");
}
else
{
Console.Write("\nYour number is odd.\n");
}
}
static void Main(string[] args)
{
int num = 0;
string answer = "Y";
while(answer== "Y")
{
Console.Write("Please enter a number and I will tell you whether it is odd or even.\n");
//convert input to int
num = int.Parse(Console.ReadLine());
//call method to check if the number is odd or even
CheckOddEven(num);
//ask if the user wants to continue or quit
Console.Write("Do you wanna check another number? Y/N\n");
answer= Console.ReadLine().ToUpper();
}
}
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-6015997640930692752010-06-24T23:20:00.000+01:002010-06-24T23:20:58.597+01:00Convert a phrase to binary in c#Para converter uma frase para binario em c#<br />
<br />
<span class="Apple-style-span" style="color: #444444; font-family: 'Trebuchet MS'; font-size: 13px; line-height: 16px;"></span><br />
<pre style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;"><span style="color: blue;">static void </span><span style="color: black;">Main(</span><span style="color: blue;">string</span><span style="color: black;">[] args)
{
String str </span><span style="color: blue;">= </span><span style="color: grey;">"The phrase to be converted!!!"</span><span style="color: blue;">;
</span><span style="color: black;">Console.WriteLine(String2Binary(str))</span><span style="color: blue;">;
</span><span style="color: black;">Console.ReadKey()</span><span style="color: blue;">;
</span><span style="color: black;">}
</span><span style="color: blue;">private static </span><span style="color: black;">String String2Binary(String str)
{
String return </span><span style="color: blue;">= null;
foreach </span><span style="color: black;">(var letter </span><span style="color: blue;">in </span><span style="color: black;">str)
return +</span><span style="color: blue;">= </span><span style="color: black;">(Convert.ToString(letter,</span><span style="color: maroon;">2</span><span style="color: black;">)).PadLeft(</span><span style="color: maroon;">8</span><span style="color: black;">, </span><span style="color: grey;">'0'</span><span style="color: black;">) + </span><span style="color: grey;">" "</span><span style="color: blue;">;</span><span style="color: black;">
</span><span style="color: blue;">return </span><span style="color: black;">return</span><span style="color: blue;">;
</span><span style="color: black;">}</span></pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-61973787524808846352010-06-24T22:02:00.003+01:002010-06-24T22:04:41.152+01:00Latex Parte III<span class="Apple-style-span" style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px;"></span><br />
<div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Modifying text styles</i></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">To modifying some text, to make it italic, bold..., we need to add a tag, like in the next examples.</div><ul style="color: #697c83; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">To insert bold text, use \textbf{text here}</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">To insert italic text, use \emph{text here}</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">To insert monospace text, use \texttt{text here} </li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">To use verbatim text within a sentence, use \verb|your text here|.Note: any delimiter can be used.</li>
</ul><br />
<br />
<span class="Apple-style-span" style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px;"></span><br />
<div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Figures and tables</b></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">Figures and tables are LaTeX environments, however the final position of the elements depends on the latex's style algorithm, thats why they are called float elements.</div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Figures</i></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">To insert a figure, use</div><blockquote style="border-left-color: rgb(202, 218, 231); border-left-style: solid; border-left-width: 2px; color: #999999; font-style: italic; margin-bottom: 0px; margin-left: 25px; margin-right: 25px; margin-top: 0px; padding-bottom: 0px; padding-left: 8px; padding-right: 0px; padding-top: 0px;"><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">\begin{figure}[hbtp]<br />
\caption{Figure name}<br />
\begin{center}<br />
\includegraphics{filename.pdf}<br />
\end{center}<br />
\label{your-reference-key}<br />
\end{figure}</div></blockquote><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">In the above markup,</div><ul style="color: #697c83; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">\begin{figure} tells that is a figure environment</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">[hbtp] tells how LaTeX will place the figure :</li>
<ul><li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">(here (h), bottom (b), top(t), page(p)). </li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">If the current space where the figure is called, don't have space, it will be placed in the next page, if you want to force the location, simple choose \begin{figure}[h], omitting b, p and t. The order in which h,b,t and p are specified determines where LaTeX tries to place the float first.</li>
</ul>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">\caption{Figure name} name of the figure</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">\begin{center} tells to center the figure in the document. Note: don't forget to close the tag center.</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">\includegraphics{…} location of the file</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">\label{your-reference-key} is a label that you can use to refer to the figure in the text. For example, if you label your figure “fig1″ then you can reference it later on by typing \ref{fig1}</li>
</ul><div><span class="Apple-style-span" style="color: #697c83;"><br />
</span></div><div><span class="Apple-style-span" style="color: #697c83;"><br />
</span></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Tables</i></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">A floated table in LaTeX consists of two environments: table, the actual floated entity in the text, and tabular, the data contained in the table. For example, </div><br />
<br />
<br />
<br />
\begin{tabular}{|c|c|}<br />
\hline BIT & Significado se igual a 1 \\<br />
\hline URG & O campo Urgent Pointer È v·lido \\<br />
\hline ACK & O campo Acknowledgement Number È v·lido \\<br />
\hline PSH & Este segmento pede um push \\<br />
\hline RST & Reinicia a comunicaÁ„o \\<br />
\hline SYN & Sincroniza os n˙meros de sequÍncia \\<br />
\hline FIN & O emissor chegou ao fim do fluxo de informaÁ„o \\<br />
\hline<br />
\end{tabular}<br />
<br />
<br />
<span class="Apple-style-span" style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px;"></span><br />
<div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">everything except the code between \begin{tabular} … \end{tabular} is the same as the figure. Here’ s how the<br />
tabular environment works:</div><ul style="color: #697c83; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">\begin{tabular}{c|cc} tells LaTeX to start a new tabular environment with two centered columns. The bar (“|”) after the first “c”, tells that have a vertical border. We can use {lcrr} to create columns: </li>
<ul><li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">the first left aligned, the second centered, and the third and fourth right aligned</li>
</ul>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">The table cells are separated by a “&” and the table rows are separated by a “\\”</li>
</ul><div><span class="Apple-style-span" style="color: #697c83;"><br />
</span></div><div><span class="Apple-style-span" style="color: #697c83;">This is not the the table example, but can be also used in the tables.</span></div><ul style="color: #697c83; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">The \hline creates a horizontal line</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">\multicolumn{2}{c}{Example} creates a row that spans all two columns, and gonna be centered, and contains the text “Example”</li>
<li style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 2px;">There are more options, but this is allmost what you need to create tables.</li>
</ul><div><span class="Apple-style-span" style="color: #697c83;"><br />
</span></div><div><span class="Apple-style-span" style="color: #697c83;"><br />
</span></div><div><span class="Apple-style-span" style="color: #697c83;"></span><br />
<span class="Apple-style-span" style="color: #697c83;"></span><br />
<span class="Apple-style-span" style="color: #697c83;"></span><br />
<span class="Apple-style-span" style="color: #697c83;"><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Annotations</b></div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">In LateX we can import some annotations, footnotes, references, table of contents, and bibliographies.</div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Footnotes</i></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">To insert a footnote, we just have to insert \footnote{Footnote text here}.</div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Cross references</i></div><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">To insert a reference on a table or figure, we just have to type \ref{your-reference-key} where “your-reference-key” is the argument to the \label{your-reference-key} command.</div></span><span class="Apple-style-span" style="color: #697c83;"><br />
</span></div><div><span class="Apple-style-span" style="color: #697c83;"></span><br />
<span class="Apple-style-span" style="color: #697c83;"></span><br />
<span class="Apple-style-span" style="color: #697c83;"></span><br />
<span class="Apple-style-span" style="color: #697c83;"><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Table of contents</i></div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">To insert a table of contents, simply put \tableofcontents at the beginning of your document. (You must run LaTeX twice to get the table of contents and references to work correctly.</div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><br />
<i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Bibliography</i></div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">To create a bibliography,we just have to use the next form:<i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"></i></div><blockquote style="border-left-color: rgb(202, 218, 231); border-left-style: solid; border-left-width: 2px; color: #999999; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; font-style: italic; line-height: 20px; margin-bottom: 0px; margin-left: 25px; margin-right: 25px; margin-top: 0px; padding-bottom: 0px; padding-left: 8px; padding-right: 0px; padding-top: 0px;"><div style="margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">\begin{thebibliography}{99}<br />
….<br />
\bibitem{key1} Disarray, General. 2006. “\LaTeX{}: from beginner to \TeX pert.” \emph{General Disarray Blog}. Available online at \textt{http://generaldisarray.wordpress.com}. ….<br />
\end{thebibliography}</div></blockquote><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">We have to type he bibliography entry, and to refer a item we must use \cite{key}. The {99} tells that the maximum is 99 entries in the bibliography.</div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">To build the bibliography we can use bibTex, is more efficient to build one, so we dont have to hardcode the references.</div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><br />
<span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;">An website that helps a lot in latex is</span><span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;"> </span><span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;"><a href="http://aprendolatex.wordpress.com/">http://aprendolatex.wordpress.com/</a></span><span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;">, is in portuguese, but have a lots of exemples to improve your latex documents</span><span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;"><br />
</span><span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;"><br />
</span><span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;"><br />
</span><span class="Apple-style-span" style="color: black; font-family: Times; font-size: medium; line-height: normal;">Sources: http://generaldisarray.wordpress.com/2006/04/20/latex-from-beginner-to-texpert/</span></div><div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"><br />
</div></span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-75415708633680328442010-06-22T16:32:00.010+01:002010-06-22T16:58:43.346+01:00Latex Part II<b><i>LaTeX commands</i></b><br />
<br />
LaTeX commands generally begin with a backslash and take the form \command[options]{argument}. For example,<br />
<blockquote>\section{Introduction}</blockquote>This will create a section, with the name Introduction.<br />
If we want to insert a coment, we just need to insert a '%' character, and everything you type to the end of the line will be commented.<br />
To insert the '%' , just insert a backslash: \%<br />
<span class="fullpost"><br />
<br />
<i>The preamble</i><br />
Everything we type before the line “\begin{document}” is part of the preamble. The typical preamble look like this:<br />
<br />
<blockquote>\documentclass{article}<br />
\usepackage{graphicx}<br />
\title{Test}<br />
\author{Test}<br />
\date{}</blockquote>In the example above:<br />
<br />
<ul><li>\documentclass{article} tells LaTeX that the document is an article. Other classes include book, letter and slides</li>
<li>\usepackage{graphicx} tells LaTeX to use the graphicx package, which allow users to insert graphics in the documents</li>
<li>\title{} and \author{} define the title and author</li>
<li>\date{} tells LaTeX to write the today date. \date{June 2010} would print “June 2010? as the date. </li>
</ul>The \documentclass{} command can contain some options, for example, \documentclass[11pt,twocolumn]{article} would organize body of the document into two columns and the options are separated by a comma. Other options include:<br />
<br />
<ul><li>oneside or twoside – change margins for a one or two-sided document</li>
<li>landscape – change the document from landscape to portrait</li>
<li>titlepage or notitlepage – define whether there is a separate title page, or if the title, author and date info are show at the top of the article</li>
</ul><br />
<i>Document structure</i><br />
A document’s structure is defined using \section{} commands. LaTeX is based on well-structured documents. The structure tags are :<br />
<br />
<ul><li>\section{Name}</li>
<li>\subsection{Name}</li>
<li>\subsubsection{Name}</li>
<li>\paragraph{Name}</li>
</ul>If you want to insert a unnumbered section, you can use the command \section*{Name}. In the next section, the numbering will continue as normal.<br />
The \paragraph{}is used if you want to insert a heading for a paragraph.<br />
<br />
The next image will show the comands explained before:<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://img249.imageshack.us/img249/583/sections1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://img249.imageshack.us/img249/583/sections1.png" /></a></div><br />
<i>Lists items</i><br />
<br />
If we want to <i>itemize</i>(create bulleted) or <i>enumerate</i>(numbered lists), <span class="short_text" id="result_box"><span style="background-color: white;" title="">just do as we do in the following example:<br />
<br />
<span class="short_text" id="result_box"><span style="background-color: white;" title="">To itemize: </span></span><br />
</span></span><br />
<blockquote><span class="short_text" id="result_box"><span style="background-color: white;" title="">\begin{itemize}</span></span><br />
<span class="short_text" id="result_box"><span style="background-color: white;" title="">\item First thing</span></span><br />
<span class="short_text" id="result_box"><span style="background-color: white;" title="">\item Second thing</span></span><br />
<span class="short_text" id="result_box"><span style="background-color: white;" title="">\item Third thing</span></span><br />
<span class="short_text" id="result_box"><span style="background-color: white;" title="">\end{itemize}</span></span></blockquote><span class="short_text" id="result_box"><span style="background-color: white;" title=""><br />
To enumerate: </span></span><br />
<br />
<blockquote><span class="short_text" id="result_box">\begin{enumerate}</span><br />
<span class="short_text" id="result_box">\item First numbered thing</span><br />
<span class="short_text" id="result_box">\item Second numbered thing</span><br />
<span class="short_text" id="result_box">\end{enumerate}</span></blockquote><span class="short_text" id="result_box"><br />
<br />
<i>The graphicx package</i><br />
The graphicx package allows you to insert images into the document. To use it, we have to import it, to do that we just type the command \usepackage{graphicx} in your document preamble. After that, to insert a image we just need to type:<br />
</span><br />
<br />
<blockquote>\includegraphics[options]{filename.png}</blockquote>The images supports many filetypes, including PDF, PNG and JPG. The options include:<br />
<br />
<br />
<ul><li>width=Xin</li>
<li>height=Xin</li>
<li>scale=X (where x is between 0 and 1)</li>
</ul><br />
<i>The geometry package</i><br />
Formating in latex can be easy, but changing the defaults formats can be a little bit difficult. The geometry package can changes somes aspects of the document, for example if we want to change the margin to 1, we just need to type the next command:<br />
<br />
<br />
<blockquote>\usepackage[margin=1in]{geometry}</blockquote><br />
Continues in next post.<br />
<br />
An website that helps a lot in latex is <a href="http://aprendolatex.wordpress.com/">http://aprendolatex.wordpress.com/</a>, is in portuguese, but have a lots of exemples to improve your latex documents<br />
<br />
<br />
Sources: http://generaldisarray.wordpress.com/2006/04/20/latex-from-beginner-to-texpert/<br />
<br />
</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-67256243431037522302010-06-22T10:06:00.006+01:002010-06-22T16:48:12.112+01:00Latex Part I<b><i>LaTeX commands</i></b><br />
<br />
LaTeX commands generally begin with a backslash and take the form \command[options]{argument}. For example,<br />
<blockquote>\section{Introduction}</blockquote>This will create a section, with the name Introduction.<br />
If we want to insert a coment, we just need to insert a '%' character, and everything you type to the end of the line will be commented.<br />
To insert the '%' , just insert a backslash: \%<br />
<span class="fullpost"><br />
<br />
<i>The preamble</i><br />
Everything we type before the line “\begin{document}” is part of the preamble. The typical preamble look like this:<br />
<br />
<blockquote><span class="abc">\documentclass{article}</span><br />
<span class="abc">\usepackage{graphicx}</span><br />
<span class="abc">\title{Test}</span><br />
<span class="abc">\author{Test}</span><br />
<span class="abc">\date{}</span></blockquote><span class="abc">In the example above:<br />
</span><br />
<br />
<ul><li>\documentclass{article} tells LaTeX that the document is an article. Other classes include book, letter and slides</li>
<li>\usepackage{graphicx} tells LaTeX to use the graphicx package, which allow users to insert graphics in the documents</li>
<li>\title{} and \author{} define the title and author</li>
<li>\date{} tells LaTeX to write the today date. \date{June 2010} would print “June 2010? as the date. </li>
</ul><span class="abc">The \documentclass{} command can contain some options, for example, \documentclass[11pt,twocolumn]{article} would organize body of the document into two columns and the options are separated by a comma. Other options include:<br />
</span><br />
<ul><span class="abc">
<li>oneside or twoside – change margins for a one or two-sided document</li>
<li>landscape – change the document from landscape to portrait</li>
<li>titlepage or notitlepage – define whether there is a separate title page, or if the title, author and date info are show at the top of the article</li>
</span></ul><span class="abc"><br />
<i>Document structure</i><br />
A document’s structure is defined using \section{} commands. LaTeX is based on well-structured documents. The structure tags are :<br />
</span><br />
<ul><span class="abc">
<li>\section{Name}</li>
<li>\subsection{Name}</li>
<li>\subsubsection{Name}</li>
<li>\paragraph{Name}</li>
</span></ul><span class="abc">If you want to insert a unnumbered section, you can use the command \section*{Name}. In the next section, the numbering will continue as normal.<br />
The \paragraph{}is used if you want to insert a heading for a paragraph.<br />
<br />
The next image will show the comands explained before:<br />
<br />
</span><br />
<div class="separator" style="clear: both; text-align: center;"><span class="abc"><a href="http://img249.imageshack.us/img249/583/sections1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://img249.imageshack.us/img249/583/sections1.png" /></a></span></div><br />
<i>Lists items</i><br />
<i><br />
</i><br />
If we want to <i>itemize</i>(create bulleted) or <i>enumerate</i>(numbered lists), <span class="short_text" id="result_box"><span style="background-color: white;" title="">just do as we do in the following example:</span></span><br />
<span class="abc"><br />
<span class="short_text" id="result_box"><span style="background-color: white;" title="">To itemize: </span></span><br />
</span><br />
<blockquote><span class="abc">\begin{itemize}</span><br />
<span class="abc">\item First thing</span><br />
<span class="abc">\item Second thing</span><br />
<span class="abc">\item Third thing</span><br />
<span class="abc">\end{itemize}</span></blockquote><span class="abc"><br />
To enumerate: <br />
</span><br />
<blockquote><span class="abc">\begin{enumerate}</span><br />
<span class="abc">\item First numbered thing</span><br />
<span class="abc">\item Second numbered thing</span><br />
<span class="abc">\end{enumerate}</span></blockquote><span class="abc"><br />
<br />
<i>The graphicx package</i><br />
The graphicx package allows you to insert images into the document. To use it, we have to import it, to do that we just type the command \usepackage{graphicx} in your document preamble. After that, to insert a image we just need to type:<br />
</span><br />
<blockquote><span class="abc">\includegraphics[options]{filename.png}</span></blockquote><span class="abc">The images supports many filetypes, including PDF, PNG and JPG. The options include:<br />
</span><br />
<ul><span class="abc">
<li>width=Xin</li>
<li>height=Xin</li>
<li>scale=X (where x is between 0 and 1)</li>
</span></ul><span class="abc"><br />
<br />
<i>The geometry package</i><br />
Formating in latex can be easy, but changing the defaults formats can be a little bit difficult. The geometry package can changes somes aspects of the document, for example if we want to change the margin to 1, we just need to type the next command:<br />
</span><br />
<blockquote><span class="abc">\usepackage[margin=1in]{geometry}</span></blockquote><span class="abc"><br />
Continues in next post.<br />
<br />
An website that helps a lot in latex is <a href="http://aprendolatex.wordpress.com/">http://aprendolatex.wordpress.com/</a>, is in portuguese, but have a lots of exemples to improve your latex documents<br />
<br />
<br />
Sources: http://generaldisarray.wordpress.com/2006/04/20/latex-from-beginner-to-texpert/<br />
<br />
</span></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-75786997035705422872010-06-18T18:01:00.001+01:002010-06-18T18:04:50.270+01:00Sexta feira... WTF<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/vd6bQ1MMwF8&hl=pt_PT&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vd6bQ1MMwF8&hl=pt_PT&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br />
<br />
<br />
Um video para descansar...se conseguirem :P<br />
<br />
" Camila e mariana Davalos "Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8850770969169266471.post-90684122939040656942010-06-17T23:09:00.001+01:002010-06-17T23:17:53.893+01:00CShell script - Delete accounts in linux from fileNext script delete account in linux from a file<br />
<div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><br />
<span class="Apple-style-span" style="font-size: medium;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: medium;">#! /usr/bin/perl </span><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: medium;">-w </span></span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: medium;">use strict;</span></span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"><br />
</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">my $i=""; </span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">my $FInput; </span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">my @arrContas=();</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"><br />
</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">if(@ARGV != 1)</span><br />
<span class="Apple-style-span" style="font-size: medium;">{</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"> print("Sintaxe: ./delete_Accounts.pl </span><ficheiro_de_logins><span class="Apple-style-span" style="font-size: medium;">\n"); exit 1;</span></ficheiro_de_logins></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">}</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"><br />
</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">if(!open($FInput,"$ARGV[0]")) </span><br />
<span class="Apple-style-span" style="font-size: medium;">{</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"> print("Error reading the input file\n"); exit 1;</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">}</span><br />
<span class="Apple-style-span" style="font-size: medium;"><br />
</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">@arrContas=<$FInput>;</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">close($FInput);</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">for $i (@arrContas) </span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;">{</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"> chomp($i); </span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"> `userdel --remove $i`; </span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span" style="font-size: medium;"> print("Account $i sucessful deleted\n");</span></div><div style="font: 10.1px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"><span class="Apple-style-span"><span class="Apple-style-span" style="font-size: medium;">}</span></span></div><span class="fullpost"> </span>Unknownnoreply@blogger.com0