manish-mohania
Members-
Content Count
57 -
Joined
-
Last visited
Everything posted by manish-mohania
-
@FouGilang Yes, I meant the same thing as on link provided by you. Thank you for that quick link. For the "new topic" link/button, I was thinking if I could get a direct link when I access forums/forums.html(Open Discussion). Anyways, I can do it by opening the appropriate forum as has been mentioned by BCD. @BCD I visited Kontera Publisher Knowledgebase; http://amobee.com/ They do mention that: But they didn't mention anything about the forfeitment of payment if $100 in 6 months condition is not met. It would be great if they lift that $100 in 6 months condition. However, I think I would create an account in Knotera. I guess there is no loss doing it. Let's see If I earn some money . And yes, thanks for the "new topic" button suggestion. Earlier in a hurry, I accidently posted this topic in Introductions forum. I hope somebody (may be only moderators) with right permissions would correct that. Is there a way to move a topic from one forum to another ?
-
Hi all,I need some help.1) I was looking at menu options in my control panel. I found this Ad Revenue Sharing option.Menu- Ad Revenu Sharing - Your advertising settingsDoes somebody has an idea what it is ?2) Also, I could not find a "new topic" button right away. To start a new thread; first I have to open an existing post and then click "new topic" button to start a new topic/thread. Is there a direct link/button to do it ?Thank you.** Edit **This topic is been posted in Introduction forum, accidently. Please, move it to question/queries forum.** End Edit **
-
Symbolic Links: Super Shortcuts For Linux
manish-mohania replied to rob86's topic in General Discussion
yes very true ... symbolic links are cool in linux and linux very much uses these links. For e.g: when it switches run-levels i.e : 1. when it goes from text mode to graphical mode 2. when it goes from single user mode to multi-user mode. 3. when it is shutting down or restarting. When it needs to start a new service or kill a running service while switching runlevels; it uses symbolic links to actual services(program) to do it. To know more on how it is done, take a look at: http://tldp.org/LDP/intro-linux/html/sect_04_02.html Also, it is used to upgrade a part of system without affecting other parts of systems. For e.g you have library xyz-1.0.so. You can create a symbolic link xyz.so to this lib xyz-1.0.so i.e : xyz.so -> xyz-1.0.so. Other programs can use this symbolic link to access this library, later when you need to upgrade your library to version 2.0, you will just need to update symbolic link to this library and other programs will start to use your new library. These are few of many cases when linux itself uses symbolic links. -
Just Can't Figure Out Whether It's Worth It To Learn & Use Vim
manish-mohania replied to rob86's topic in Software
@All Having a bit of knowledge of VIM is useful whether you use it for programming or not. Sometimes it is the only choice when you run your linux in rescue mode or in text mode. Also, you will find it in all linux. Today's computing environment is getting very powerful, so running GUI IDE's is not a problem now. I remember when I had 128M RAM and how it was not possible for me to use Eclipse on my system. These IDE's are very easy to use, you just have to point and click. Also, these IDE's have an advantage of coming with certain integrated tools like debugger and build tools, integration with CVS, database explorer. So they are sort of all in one package. One disadvantage(or advantage ??) of these IDE's is that they are geared toward doing one particular task or you can say are more specifically bound to one programming platform or development environment. I hope you can feel what I am trying to say. A little bit of learning is also involved in these tools. As an Editor, VIM and Emacs are excellent but as rob86 said only when you are comfortable with keyboard and can memorize all the commands. They provide syntax highlighting, can work on logical entities like function blocks, autocomplete etc ... They also come with a few integrated tools. One can use tools seperately from command line, why need integrated tools .. . For beginners, learning programming languages; these editors are good since in initial stages you will want to know what is happening behind the screens and the tools that are being used. Now, I mostly use graphical tools/IDE's and VIM occasionally as they make me more productive. I am not a supporter of one particular tool/IDE/editor. For me if a tool is easy to use and makes me productive enough I use it -
It is good you want to make your script work, this way you will learn fast and better. I think one way of learning can be to study somebody else's code. I couldn't understand what this script was trying to do, but I think it was cleverly finding a way to avoid searching tags like this logic: 1. Let's suppose your searchKey is a tag, then its html representation would be : <searchKey> some example text </searchKey> Now, html.indexOf('>', positionOfSearchKey) < html.indexOf('<', positionOfSearchKey) 2. Let's suppose your searchKey is not a tag, then its html representation would be: <someTag> some example containing searchKey in text </someTag> Now, html.indexOf('>', positionOfSearchKey) > html.indexOf('<', positionOfSearchKey) Hence, by checking these two cases, you can differentiate if the searchKey is a tag or not. you can replace searchKey with <span class="highlight">searchKey</span> Define a css style : .highlight { background-color: yellow; font-weight: bolder; } I hope this would run correct. please, let me know if it works ..
-
let me know if you can use this script I found on internet: http://www.nsftools.com/misc/SearchAndHighlight.htm
-
Before I provide a solution for your problem, I must clarify a few things : There are 2 types of nodes : 1. Element Node 2. Text Node nodeType property of node can be used to determine the type of node. nodeValue property of node can be used to retrieve the text associated with the text node. please visit : http://www.javascriptkit.com/domref/nodetype.shtml In text: <p> Hello, <b>Manish</b> ... this is an example </p> 1. p,b are element nodes. 2. p has three child nodes: a) Text Node: Hello, Element Node: b c) Text Node: ... this is an example 3. b has one child node. a) Text Node: Manish please, visit : http://www.howtocreate.co.uk/tutorials/javascript/dombasics I) To solve your first problem, you must search only in text nodes. II) To solve your second problem, .. yes, you must wrap your search keyword in a span tag. for e.g : <p> Hello, <b>Manish</b> ... this is an <span class="highlight">example</span> </p>
-
Stick With One Os, Dual-boot, Or Triple-boot?
manish-mohania replied to rayzoredge's topic in Operating Systems
I have recently moved to Linux (Debian 5.0 Lenny) and I am not dual or triple booting. I think Linux has more softwares than any other OS, that you can expect to get from a standard operating system.free/open source alternatives exists for other softwares. sometimes they are more feature rich/stable/superior in performance than their non-free/closed counterparts.I use Linux for web development. I use wine; to test my websites on Internet Explorer(worst browser in compliance with standards) and Safari. It is a misconception that Linux users have to use command line to do their work. I don't use it and in fact I never required it, but yes ... Linux command line is way much better that Windows command line.As far as support for new devices is concerned. It becomes available after sometime. You have to understand that Linux is developed by volunteers.By the way, why don't you ask your hardware vendor to give device driver for Linux ? you are paying for the device, right ?why don't you ask your game vendor to develop games for Linux platform ?why do you want to settle with buggy/low grade Operating System which comes with a license that do not allow to gift your OS to your friend/relative ?Software/Hardware Vendors exists to meet our needs/requirement; It is not the other way round. -
@SofiaComp Let's suppose you are using the shoutbox; since there can be many users using shoutbox and not only you, you will want to know the messages sent by the others even when you are not sending any message. In this case you need the auto-update. @shadowx, nabb I have heard a lot about shoutbox feature, but It never occurred to me that it should run this way. It is very interesting to know this alternative viewpoint. My solution (I do not know if it really would work ), quite similar to Nabb : In Ajax, we have two methods: 1. First method, which sends a request to the server. 2. Second method, which is called when a response is recieved from the sever for a request made to server. As, it is an asynchronous call it is not necessary that second method will get called immediately. What we can do is : 1. when a request to the server to fetch a new message is made, then it(server) should put the request in wait/queue mode and should not return the response until and unless there actually is a new message. 2. When a new message arrives then server should return response for all the pending requests which will get caught by the second method. Second method then should refresh the client window(or div) and then call the first method again. I am not sure if 1. and 2. can happen, especially the 2; but I think in java we can use a single servlet that handles the request and use wait and notify method calls to get it done. Earlier, when we didn't have the ajax; remember, we used to chat on yahoo using the java applet. I don't know how they used to do it, but if it can bring down the server load then why can't we build a shoutbox as java applet ... just a thought ??
-
@mahesh2k yes, I visited these sites. browsershots provides so screenshots for so many browsers and OSes. Thank you for providing me this reference. I wonder how these people do it. @Baniboy, @mahesh2k I have yet to see the IDE's, choice is overwhelming . I guess most of them would be provided by my distribution, if not then I know I can directly download them from their site and look for help on installing here. By the way which one you use and which one is your favourite ? @The Simpleton Thank you !!! yeah, you are right !!! When I first installed linux, even I was missing windows but from initial experiences and the support I am getting for linux, I think I would keep it on single boot for now. Let's see what lies in future . yup, for those who are die hard fan of computer games, it is a real trouble but not for me . I love to play table-tennis instead.
-
Thank you for the references and advice. I will look in to these IDE's and see which suits me best. I am lucky to have a pretty common hardware, so I didn't get any hardware driver problem I have found ies4linux on net, which uses wine to run ie6, ie5 on linux. I think I should give it a try and see if it works for me. ies4linux is free but ie itself require license. I think I would never be able to set up completely free/open source system. Thanks again !!!
-
yeah !!! when I was doing my graduation, I also wanted to show off like this but I couldn't do it as for this thing to work I need to have a public ip-address. I live in delhi/india, here when I connect to internet I am assigned a private ip-address dynamically by my ISP. So, in short I am a part of very large private network and all my internet request goes through the ISP which has the outgoing public ip-address. If any one knows how I can make this setup work then I would anyway be able to showoff now Well ... We found other use for this proxy thing. We 6 friends used this proxy setting to share Internet connection. We created our own private network and forward all internet requests from this private network to a proxy server(private) which was connect to the internet, that proxy server in turn forwarded all request to the ISP and so it all worked. This proxy server provided added security since it was acting as firewall to other computer on the network. So, I think even if internet proxy servers got banned, we poor ones have uses for private proxy servers and I think if a thing exists then concept related to this thing exists, which may help somebody ..
-
Hi all,For past few days I am trying to migrate completely from windows to linux. I have chosen debian for this purpose, since I found it more stable than the other popular distribution like fedora (I have used no other distribution except for fedora ). Uptil now I am very impressed with this distribution. I got sick of virus attacks in windows. Earlier I used to dual boot fedora/windows, but I didn't use fedora much. This time I have given whole share of my drive to debian and have not installed windows at all.As it had to happen , I ran in to trouble, mainly due to my lack of preperation for this migration. I should have discussed the pros and cons of migration from windows to linux here.I want to use my machine for web development :1. I do not know how do I test my site for Internet Explorer2. Is there exists an application like Dreamweaver for linux ? basically I want an IDE which should allow me to code and preview changes like Dreamweaver.I am using GIMP (GNU Image Manipulation Program) for editing images and as a replacement for Photoshop CS2. I would not need more than it, since I am not a graphics designer kind of a person. However, I would like to know how close it is to Photoshop CS2.There are some other things that I want to know but first things first
-
@Nameless_ yeah !!! sometimes a single faulty module can damage the whole thing. Also, I found that it has a slightly steep learning curve. I had to painfully explore things and go through the documentation a lot, but good thing is that I was able to make things work out Anyways, for navigational bar, create a menu entry in primary links. please visit : /admin/build/menu/ via menu: admin -> Administer -> Site building -> Menus you will see three types of menus: 1. Navigational Menu> It is this menu, we used to reach this page. 2. Primary Links 3. Secondary Links These menus, are the links that you see at the top of the page. Appearance and Location of these menus change with the theme but usually they are found at the top. You can however alter the location,appearance by customising the theme. It is better to create a new theme from an existing theme or sub-theme an existing theme. please, see drupal theme guide for more information on creation/customization of them. please, visit: https://www.drupal.org/project/project_theme for free themes
-
Renaming the folder won't help. If you want to uninstall a module, simply delete the folder. So, in your case, delete : <drupal-install-folder>/modules/<archive-module-folder> Also, new modules are installed in the following folder: <drupal-install-folder>/sites/all/modules Try installing the archive module in this folder and re-inable it from the admin panel. Also, please insure that you have downloaded the module for your version of drupal.
-
yup, I agree with mahesh2k ... jee is a specification to build server side, distributed, enterprise applications. ( it is a sun's way of saying that if you build your application this way then you will be able to build more secure, scalable application, which usually are the needs/requirements of an enterprise.) jsp/servlets is only a part of jee specification. It is used to form the presentation layer in multi-tier architectures. A desktop application may use swing for the same purpose and swing is not part of jee (it is not a server side component).
-
Who Is The Hottest Girl In The World? Hottest girl ever?
manish-mohania replied to nosoup4u's topic in General Discussion
For me she is Drew Barrymore ... I loved her movie, fifty first dates .. :-) -
As mentioned in previous posts, best way is to first install xp then linux. However, you can install winxp after the linux installation. Steps involved would be : 1. Install WinXp 2. Boot from Fedora bootable CD. 3. Boot Fedora in maintenance mode. 4. Reinstall Grub, with an entry for winXP in grub.conf file. title Other rootnoverify (hd0,0) chainloader +1 I have provided all these steps in very overview type manner. It would be better if you do the installation with somebody already aware of dual boot. It would even be better if you can avoid the installation and can access your personal data from Linux itself. Use the mount command to do that in super user mode: mount /dev/sda1 /windows Note: 1. /windows should exists and preferably empty. 2. /dev/sda1 represents the partition that contains your personal data. It may be /dev/sda2, /dev/sda3 ... depending upon the partition that you used for your personal data. let us know what partition type(Fat32, ntfs) you are using for your personal data. Accessing it on Linux should not be a problem.
-
What Is The Best Language For .exe And How To Compile It
manish-mohania replied to damoon's topic in Programming
@damoon hey, buddy why only *.exe ... you know php, why do you not want to write in php ? . Do you want speed ? what kind of applications you want to build ? as a matter of fact *.exe exists for windows os, and there are other oses like linux which do not care for extensions. you can create desktop based gui in php also, see : http://gtk.php.net/ -
Learning Java Programming From The Scratch JAVA
manish-mohania replied to damoon's topic in Programming
Since, you know PHP, HTML, it will be a breeze for you to learn java : you can start with online sun java tutorials: http://docs.oracle.com/javase/tutorial/ I think you want to know web development in java, so you will want to know JSP, Servlets. and of-course bring your queries here while learning java -
What Is The Best Language For .exe And How To Compile It
manish-mohania replied to damoon's topic in Programming
There is no best language as such. It all depends on what you want to be done, under what constrainsts and under what available resources .. However, if you are new to programming languages start with python, java. If you intend to do systems programming, start with C/C++ You will find many books/online-tutorials on the above mentioned languages and feel free to have your queries here .. -
It should generate a headers already sent error message. Reason: header() method should not be used after you have outputted the html. In this particular case is the form. http://in.php.net/manual/en/function.header.php
-
Let's suppose you have a long string of several sentences, each ending with a period * You may want to break this long string in to paragraphs, such that, each paragraph contains five sentences. You can do this way : $example_string = 'Hi, this is manish. I love to play table-tennis.'; /* take a very long strong with many sentences */$sentences = explode('.', $example_string); /* explode the string in to an array with * specified as delimiter */foreach($sentences as $i => $s) { /* iterate through the array with index as $i, sentence without * as $s */ if ($i % 5 == 0) { print '<br />'; /* if you are outputting plain text and not html text then use - '\n' instead. */ } print $s.'. '; /* sentence followed by a period * and space */} I hope, you are clear, how this is done in PHP.