tag:blogger.com,1999:blog-57616323387718213922024-03-09T00:05:11.845+06:00I am Looking for YouMaroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-5761632338771821392.post-79908990536698983542009-10-19T23:41:00.003+07:002009-10-20T00:03:14.633+07:00LG KP500 is working as a modem in Ubuntu!<span style="font-family: arial;">Last few months I was missing the smooth internet of Ubuntu. I could not connect my LG Cookie mobile as a modem, so I had to stuck into XP. Today I logged into Ubuntu (9.04) without any hope and guess what, I am writing this post from Ubuntu. </span><br /><span style="font-family: arial;">I dont know how the mobile is connected as modem, may be I have installed some package earlier or may be because I have upgraded the mobile firmware. </span><br /><span style="font-family: arial;">But my mobile is detected as VX4400/VX6000 :P</span><br /><br /><span style="font-family: courier new;">maroof@marahmed:~$ lsusb</span><br /><span style="font-family: courier new;">Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</span><br /><span style="font-family: courier new;">Bus 002 Device 003: ID 1004:6000 LG Electronics, Inc. VX4400/VX6000 Cellphone</span><br /><span style="font-family: courier new;">Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub</span><br /><span style="font-family: courier new;">Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub</span><br /><br />The packages you must need are wvdial and ppp (and may be your mobile driver. I guess I have installed the VX4400 driver, can't remember). <a href="http://sustosn.org/?p=6">This article</a> says it all about configuration. Thanks BDOSN :D.<br /><br />But still it didn't worked until I changed the DNS server IPs in /etc/ppp/resolve.conf file. I have used the OpenDNS IPs. You can use any free DNS server IP. But the internet speed seems slower :(. May have to tweak something. Good luck and happy browsing.Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com1tag:blogger.com,1999:blog-5761632338771821392.post-36148714744028758572009-06-10T13:29:00.004+06:002009-06-10T13:44:25.378+06:00Now I think Greasemonkey is worthyI got this link on <a href="http://us.lifehacker.com">lifehacker</a>. Until yesterday I wondered why people are fan of greasemonkey. Now I know,<br /><br /><a href="http://www.daniels.net.nz/2009/05/31/block-facebook-quizzes-from-your-news-feed/">http://www.daniels.net.nz/2009/05/31/block-facebook-quizzes-from-your-news-feed/</a>Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com1tag:blogger.com,1999:blog-5761632338771821392.post-68013285595477182112009-04-14T10:34:00.002+06:002009-04-14T10:49:11.940+06:00My experience with Mint 6.0 xfceA couple of weeks back in installed Linux mint in my already dual boot laptop (xp pro and Ubuntu 8.10) so it became triple boot. My XP was turtle fast, ubuntu was rabbit fast but i wanted something like kutta fast. so i went for the XFCE version. after installing i had very few chance to use it but during that time my experience wasn't very good. Most problems occurred with firefox. Sometimes the whole desktop was taken by the window hiding the taskbar, so i had to move to another desktop to do something. This was so annoying. At last I decided to remove it and stick to ubuntu (slow and steady wins the race :D). But that required to configure grub again. after a lot of searching i found that after login in to ubuntu, <br />$sudo grub-install '(hd0)'<br />is enough to replace the grub of mint. Then you can format the partition of mint with gparted or fdisk.Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com3tag:blogger.com,1999:blog-5761632338771821392.post-71757744512108608252009-01-20T23:54:00.003+06:002009-01-21T00:06:28.310+06:00Installed Ubuntu 8.10I have ordered the Ubuntu 8.10 CD online and it shipped within one month. WOW. I like everything free :P. I got the CD today evening and installed it by just clicking 3 times and writing 2 words and its marvelous. <br />I could have installed it months ago by downloading the iso image but the only fear in my mind was i wont be able to connect to the Internet through my phone modem, but surprisingly it not only worked right away but also connects to the Internet much quicker than in XP. The speed is also seems better (moner bhool :D). <br />I am overwhelmed !!Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com2tag:blogger.com,1999:blog-5761632338771821392.post-11951932310691852742009-01-14T21:13:00.004+06:002010-04-05T23:12:15.186+06:00ha ha ha !! i didn't knowDouble clicking on the tab bar of firefox (or other modern! browsers) !!!! :PMaroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com0tag:blogger.com,1999:blog-5761632338771821392.post-42687271338688601862008-12-28T01:30:00.006+06:002008-12-28T02:09:37.914+06:00Buying digital camera in BangladeshI badly need a digital camera (but I dont know why, may be hudai).<br />My choice of compact digital cameras:<br />1. Panasonic Lumix DMC-TZ5 (for its zoom)<br />2. Canon PowerShot SD880 IS (for its excellent build and canon rocks)<br />3. Panasonic Lumix DMC-FX35 (for its wide lens and picture quality)<br />4. Canon PowerShot SD1100 IS (for its usability and value)<br />5. Canon PowerShot A590 IS (for its price and manual control)<br /><br />Now I doubt if TZ5 is available in Bangladesh. The price may be much more higher. (my budget is less than 20000 Tk). So "No" vote to number one.<br />The second one is available and the price is about 26000 tk is Canon showroom. (have to check outside market). So "No" vote wins again.<br />I would be real happy if I can get the FX35 in local market (and also hope the price will be around 15000 Tk). I went to Bashundhara city today but could not check on Panasonic models as the market was about to close. If price difference is not much then I will go for the FX37.<br />The next option is SD1100. about 20000 Tk in shoroom and about 16000 Tk outside.<br />But I think I will choose A590 for its manual control and price (16000 Tk in showroom and 11000 Tk in outside), moreover I would like to use CHDK.<br /><br />So the final "Ha" vote goes to <br />if available,<br /> Panasonic Lumix DMC-FX35 <br />else<br /> Canon PowerShot A590 IS<br /><br />Currently I am using my Sony Ericsson K550i with modded Super Cam driver. <a href="http://www.facebook.com/photo.php?pid=1613711&l=08640&id=524151699">Images</a> are not that much bad I guess (dont forget to vote :P).Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com3tag:blogger.com,1999:blog-5761632338771821392.post-7313652221701672222008-09-25T22:09:00.002+06:002008-09-25T22:58:56.249+06:00AutoHotKeyI have been a novice to <a href="http://www.lifehacker.com">LifeHacker</a> and everybody praises autohotkey there. The features are very much alluring to me. This is the tool I should make most use of. But alas I still could not make any use of it. If I can make use of it then everybody in my team will be so happy to get rid of sending the hidden numbers(!).<br />OK now here is the problem:<br />I have to copy a number from outlook (Ctrl+c)<br />Move to the next window (Alt+Tab) <br />Select the existing text of a input field (Ctrl+A)<br />Paste the copied text there (Ctrl+v)<br />Submit the form (Enter)<br />Take a screen shot of the window (Alt+PrintScreen)<br />Move back to Outlook (Alt+tab)<br />Press reply of the current mail (Ctrl+r)<br />Paste the screen shot from the clipboard (Ctrl+v)<br />Send the mail (Ctrl+Enter)<br />Done.:P<br /><br />Now I have made a script to do that. But its not working. When i run the script the Windows behave strangely and sometimes I had to restart the computer :(. Here is my script,<br /><code><br />^h::<br />Send ^c!{tab}^a^v{enter}!{PrintScreen}!{tab}^r^v^{enter}<br />return<br /></code><br /><br />I think I have to use more advanced tricks like checking if the window is active or not. Gedu amare bacha...Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com2tag:blogger.com,1999:blog-5761632338771821392.post-7170231115019030442008-09-19T20:49:00.003+06:002008-09-19T20:57:03.580+06:00using ClearTypeI have been using a LCD (i mean notebook) for about six months now, but have not heard about clear type font ! It is disabled in XP as default. Today i have found a article in <a href="http://downloads.pcworld.com/pub/new/office/spreadsheet/ODIR.exe">pcworld</a> about it and it makes me feel like "how stupid i was and bill gates still is:p"Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com2tag:blogger.com,1999:blog-5761632338771821392.post-38051754392781218082007-04-30T20:37:00.000+06:002007-09-29T22:44:28.922+06:00forcing file save dialog in web browser<div align="justify"><span>Sometimes we want to download a file from the web browser in stead of opening the contents of the file. If the file is a text or xml file then the default operation for the browser is to open it. Then we have to save the file by File->Save As. But what will happen if you want to invoke the save dialog box of the browser if you click the link. then you have to manually force the response header to tell the browser that this is not a known MIME type. you can set </span><br /><span><span>content-type="application/octet-stream"<br /><br /></span></span><span><span>most of the browser will invoke the default save dialog. but the MSIE will not. halai poora foul. To invoke it from IE you have to add another varialble to the response header.<br /></span></span><span><span>content-disposition="attachment"<br /></span></span><span><br /><div align="left"><div align="justify"><div align="justify"><div align="justify"><span>these codes can be added </span><span>from html. but most of the times the file is generated in the server end. so here is the java code which reads a<br />file from the server and passes the file contents to the client through the response header.</span><br /><br /><span style="font-family: courier new;">FacesContext fc = FacesContext.getNewInstance();</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">HttpServletResponse response = (</span></div></div></div></div></span><span style="font-family: courier new;"><span>HttpServletResponse) fc.getExternalContext().getResponse();</span><span><br /></span><span>OutputStream out = null;</span><span><br /></span><span>InputStream in = null;<br /><br />response.setContentType("application/x-mydownload");<br />response.setHeader("content-disposition=", "attachment;filename=\"myFile.txt\"");</span><span><br /></span><span>try {</span><span><br /></span><span>out = response.getOutputStream();</span><span><br /></span><span>in = new FileInputStream(new File("inputfile.txt");</span><span><br /></span><span>int i = 0;</span><span><br /></span><span>while((i=in.read()) != -1) {</span><span><br /></span><span>out.write((byte)i);</span><span><br /></span><span>}</span><span><br /></span></span><span style="font-family: courier new;"><span>out.flush();</span><span><br /></span><span>out.close();</span><span><br /></span><span>fc.responseComplete(); //this is important</span></span><span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">} catch (IOException e) {</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">System.out.println("exception occured: "+ e.getMessage());</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">} finally {</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">try{</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">if(in != null) {</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">in.close();</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">} catch(Exception ex) {</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">ex.printStackTrace();</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">}</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">}</span><span style="font-family: courier new;"><br /></span><span style="font-family: courier new;">}</span><br /></span><span><span><br /></span></span><span><span><br /></span></span><span><span><br /></span></span><span><span><br /></span></span></div>Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com0tag:blogger.com,1999:blog-5761632338771821392.post-49487214362931551682007-04-25T21:40:00.000+06:002007-04-30T20:36:47.769+06:00HAWpaPER<div align="center"><strong>Congestion Control: A study on BECN and MaxNet</strong><br /></div><div align="center">Maroof Ahmed<br />100605077F<br />Department of Computer Science and Engineering (CSE)<br />Bangladesh University of Engineering and Technology (BUET)<br /></div><div align="justify"><br /><strong>Abstract</strong><br />Congestion is one of the main barriers of proper utilization of packet switched network. Many important researches are done on congestion control mechanisms and still going on. In this paper I will try to focus on a couple of those researches. One is the Backward Explicit Congestion Notification (BECN) technique and the other one is the MaxNet, which ensures MaxMin fairness for reduced transmission rate of sources.<br /><br /><strong>Introduction</strong><br />Congestion is a very common thing in a packet switched network. The switches have to maintain some of queue for transmitting data. It has to process the data of the input queue and put them in proper the output queue. If the arrival rate at the input queue is more than the processing rate than congestion occurs.<br /><br />In this paper at first I have discussed about what congestion is and what techniques can be followed to control congestion. Then I have studied about a popular congestion control mechanism BECN for ATM Network. And then another internet congestion control mechanism MaxNet is discussed. At last the concluding remarks are given.<br /><br /><strong>What is Congestion?</strong><br />Congestion is an important issue in packet-switched network. Congestion in the network may occur if the load on the network- the number of packets sent to the network- is greater than the capacity of the network- the number of packets a network can handle. Congestion control refers to the mechanisms and techniques to control the congestions and keep the load below the capacity [1].<br /><br /><strong>Congestion Control Mechanisms</strong><br />Congestion can be prevented, before it happens or it may be removed after it is detected. In general we can divide congestion control mechanism into two broad categories: open loop congestion control (prevention) and closed looped congestion control (removal).<br /><br />In open loop congestion controls there are some popular policies that can be applied to prevent congestion before it happens. In these mechanisms congestion control is handled by either the source or the destination. Some policies are retransmission policy, window policy, acknowledgment policy, discarding policy, admission policy etc.<br /><br />Closed loop congestion control mechanism try to alleviate congestion after it happens. Several mechanisms have been used by different protocols. Some popular mechanisms are back pressure, choke point, implicit signaling, explicit signaling, backward signaling, forward signaling etc.<br /><br /><strong>Congestion Control for ATM Network</strong><br />Congestion control in an ATM network is achieved by exchange of feedback information, carried by the data cell headers or resource management cells. Two feed back congestion control schemes have been proposed to the ATM Forum [2]: rate-based flow control and credit-based flow control.<br /><br />Rate based schemes make use of feedback information from the network to adjust the rate that the source of each virtual connection (VC) can send cells to the network. BECN has advantages of fast response and fault tolerant against some end system abnormalities. Unlike FECN in which end system does most processing, BECN requires more switch hardware in order not only to generate BECN RM cells but also to filter the information on congestion to prevent over reactive in sending the RM cells.<br /><br />Credit based flow control schemes operate a link-by-link control by using the information contained in a credit cell (a special RM cell) returned from the receiver to the sender on each link. It adjusts the number of cells to be sent to the receiver to meet the its ability to accept new cells hence avoiding buffer overflow.<br /><br /><strong>BECN</strong><br />Backward explicit congestion notification (BECN) is a congestion avoidance technique. BECN provides a simple and effective traffic management for ATM LAN.<br /><br />In the LAN all the attached stations share a single resource the shared medium. to transmit, will a station contends for access to the shared medium via the medium excess (MAC) protocol . If the network is heavily loaded it will apply back pressure, through the (MAC) protocol, to stations requesting access. Once a station has successfully gained access to the shared and now you medium it may transmit it’s data without fear of causing network congestion since all stations can receive from at the data rate of the shared medium. The most frequently discussed traffic management approach in ATM network is to determine the traffic characteristics of the source and to allocate resources accordingly you when the call is admitted to the network. this approach is best suited if the traffic is voice or compressed video, that means traffic sources can be accurately characterized in advance of transmission.<br /><br />In ATM switch there is a queue to hold the incoming traffic. If the queue exceeds a certain threshold value, then it sends congestion notification cells back to the sources of the virtual channels currently submitting traffic to it. The sources that receive BECN cells on a particular virtual channel, it must reduce its transmission rate for the indicated virtual channel. if no BECN cells are received on a particular virtual channel for a certain period of time a source may gradually restore its transmission rate on that virtual channel [3].<br /><br />In the pictorial representation of BECN in ATM network (Fig 1) we can understand it better. The sources (S) are sending packets to transmitter (T). After a transmission delay the packets reach at receiver (R). If the length of the destination queue exceeds a certain threshold value the Filter (F) generates BECN cells. With no filtering one BECN cell is generated for each incoming cell and returned to the source transmitter of the incoming cell.<br /><br /><div align="center">:p<br /></div><br />Fig 1: BECN in ATM Network<br /><br /><strong>MaxNet</strong><br />In the Internet all the bottlenecked links contribute in the aggregated congestion signal that controls source rate. But MaxNet is such an architecture [5] that uses only one link, the most severely bottlenecked link, to control the source rate. It produces MaxMin fairness for sources with general homogeneous utility function.<br /><br />In a MaxNet network, the congestion signal, qi, communicated to source i, is the maximum of all link prices on the end-to-end transmission path, as illustrated in Figure 2. Let pl be the price at link l and Li be the set of links source i uses. Then<br /><div align="center">qi = max{pl, l in Li}<br /><br />:p<br /></div><br />Fig 2: MaxNet logical feedback loop<br /><br /><br />The source, l, maximizing pl is termed the controlling link of the path. If multiple sources achieve the maximum, then one is selected arbitrarily. To determine qi, the packet format must include sufficient bits to communicate the complete congestion price. Each link replaces the congestion price in the packet with its own congestion price if its own price is larger than the one in the packet. The congestion signal is relayed back to the source by the destination host in acknowledgment packets.<br /><br />The behavior of source i is governed by an explicit demand function, Di(•), such that its transmit rate is<br />xi = Di(qi)<br />for a congestion signal qi. The link Active Queue Management (AQM) algorithm is the well studied integrator process:<br />pl(t + 1) = pl(t) + (yl(t) - cl)ρl<br />where yl(t) = ∑i:lεLixi(t) is the aggregate arrival rate for link l at time t, ρl is the control gain and cl is the target capacity of link l which is related to its physical capacity Cl by the target utilization<br />0 < µl < cl =" µlCl."<br /><br /><strong>Conclusion</strong><br />In the conclusion I can say that more efficient and dedicated congestion mechanism should be developed for better use of network bandwidth. Further research can be done on multilayered and hybrid congestion control mechanisms. In the future I have plan to stimulate the congestion control mechanisms I have discussed here.<br /><br /><strong>References</strong><br />[1]Forouzan B.A., “Data Communications and Networking”, 7th ed, page-636<br />[2] Qin Li and Zheng Wang, “A Comparison Study of Congestion Control for ABR Service in ATM Networks”<br />[3] Peter Newman, “Backward Explicit Congestion Notification for ATM Local Area Networks”<br />[4] Frank Akujobi, Ioannis Lambadaris, Rupinder Makkar Nabil Seddigh, Biswajit Nandy, “BECN for Congestion Control in TCP/IP Networks: Study and Comparative Evaluation”<br />[5] Bartek Wydrowski, Moshe Zukerman, “MaxNet: A congestion control architecture”<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com0tag:blogger.com,1999:blog-5761632338771821392.post-87900239543289661422007-01-14T20:19:00.000+06:002007-01-14T20:34:55.593+06:00life goes on<span style="color:#ff0000;">I am back after a long time. In beteen many things happened which changed my life. I got a job as Trainee Software Engineer in Technovista Ltd. I am going to office regularly now. But now I am sad about the road misshap, which claimed two valuable lives of our senior brothers and severly injured another. Though I have never met them, I feel sorry for them as they were very young and about to start their real life. This is so pathetic. May Allah almighty bless their souls.</span>Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com1tag:blogger.com,1999:blog-5761632338771821392.post-68341030157722601222006-12-22T11:47:00.000+06:002006-12-22T12:27:29.940+06:00SS7<span style="color: rgb(255, 0, 0);">Next day I have to face an interview (actually two) in huawei technologies. So I am studying for it. Yesterday I have studied about SS7. this is Control channel signaling system no 7. </span><br /><span style="color: rgb(255, 0, 0); font-style: italic; font-family: arial;">The standard defines the procedures and protocol by which network elements in the public </span><span style="color: rgb(255, 0, 0);"><span style="font-style: italic;"><span style="font-family: arial;">switched telephone network (PSTN) exchange information over a digital signaling network to effect wireless (cellular) and wireline call setup, routing and control</span>.</span> This signaling is used to control the calls between PCN (personal communication network) and PSTN (public service telecommunication network). it includes some nodes like ssp(service switching point), scp(service control point) and signal transfer point. the ss7 protocol layers contains 3 MTP (message transfer protocol), SCCP (signaling connection control protocol), TCAP (transaction capabilities application part), ISUP (integrated services digital network user part), OMAP (operations, maintenance and administration part) and MAP (mobile application part).</span><br /><span style="color: rgb(255, 0, 0);">MTP level-1: same as physical layer of OSI</span><br /><span style="color: rgb(255, 0, 0);">MTP level-2: same as data link layer of OSI</span><br /><span style="color: rgb(255, 0, 0);">MTP level-3 + SCCP: same as network layer of OSI, SCCP dose global title translation </span><br /><span style="color: rgb(255, 0, 0);">ISUP: presentation+session+transport layer of OSI, also part of application and network layer</span><br /><span style="color: rgb(255, 0, 0);">tacap+omap+map: application layer of OSI</span><br /><br /><br /><span style="color: rgb(255, 0, 0);">I hope this info will help my other friends who will also face the interview today and tomorrow.</span>Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com0tag:blogger.com,1999:blog-5761632338771821392.post-41223661949761582082006-12-19T22:42:00.000+06:002006-12-19T22:55:07.284+06:00Ready 1 2 3 Start<span style="color: rgb(255, 0, 0);">Hmm</span><br /><span style="color: rgb(255, 0, 0);">Starting my blog. I am a very simple person from Bangladesh. I think you all know Bangladesh very well now as Prof Dr Yunus got the Nobel peace price this year. I am really proud of this fact.I want to do something for my country, but the circumstances dose not permit me to do whatever I want. So I am just a watcher of the flow of my life.</span>Maroofhttp://www.blogger.com/profile/02267589372374810191noreply@blogger.com0