Programming :: Scripting : Change Markdown Links To Wikitext Links?
Feb 3, 2009
I have a personal wiki of notes, with now thousands of links in markdown format:
[link text](http://example.com)
but now that fckeditor is available for mediawiki (very beta), it has become much better to just stick with wikitext format. There are only a few conversions to do: tables, links, and bulleted lists. The lists are a fairly simple regex and fckeditor magically reformats the tables, so all I'm left with is the links. But I'm not a regex master. How do I reformat code...
View 12 Replies
ADVERTISEMENT
Dec 6, 2010
At my Uni, we use a web-based login for our internet connections. Its based off of Cisco, and every Wednesday night every computer on campus must re-enter their credentials to use the network.
Normally on my several computers I simply pull up the Terminal, point links to google.com using
Code:
And enter my credentials when Cisco redirects to the login page.
Literally, the process is
Code:
Then ENTER to accept the redirect, down arrow to skip over the logo image, USERNAME, ENTER, PASSWORD, ENTER, ENTER.
Naturally, this is EXTREMELY time consuming, as I have about 5 computers located around campus and must physically walk to the machines and login every single week.
My question is, How would I formulate a program that does the following;
1) checks for connectivity (i.e. is able to reach/resolve to the greater part of the internet) and
2) automatically fills in the credentials on the links login page?
View 2 Replies
View Related
Sep 15, 2010
I searched Google with "C++ puzzles" and some similar keywords. I found some *not* very satisfactory blogs. But I couldn't find any site dedicated to C/C++ puzzles !
Kindly list any excellent site or book dedicated for the above said purpose.
View 5 Replies
View Related
Feb 20, 2011
Is it possible to change permissions on symbolic links using the c programming language or any other for that matter? Now, I know what you are thinking, so let me provide some background.I know permission are meaningless. I know that typically permissions are set to 777.The project that I am working on does the following. On HPUX systems, a c binary recreates missing links from a stored image of the filesystem, if they are missing. The problem is that the permissions are 700 when the links are restored (should be 777). The c method to restore the symbolic links is "symlink()" which takes as its argument the target and linkname.The client wants 777 on the links. I do not know why the permissions are different. I would like to know if I can change permissions on the link by code, changing the mode?
Is this a bug somewhere in HPUX 10,x and 11.x os or "symlink" c library method, who knows?There are groups of nodes running HPUX, for example groupA, groupB etc.The problems appears in groupA but not in groupB. Seems the nodes are configured differently.While I would love to know if this is a configuration issue, it appears that way to me, there would be little I could do about it. Politics you know, but that's okay, in time someone would listen.
View 3 Replies
View Related
Aug 15, 2010
I am trying to figure out a way to pull http links out of text files and then output the results in a log. The text files are in folders like this inside a source directory.
/source
./folder1
...folder1.txt
./folder2
...folder1.txt
[Code]....
View 4 Replies
View Related
Mar 22, 2011
Im trying to extract the href of a <link> tag from a html page however as some links contain further preferences I seem to be unable to extract them, do you have any idea how I can write this: Link:
[Code]...
View 9 Replies
View Related
May 28, 2010
say you've got the following file structure:
Code:
ls -l *
lrwxrwxrwx 1 briank cg 1 2010-05-28 15:23 a -> b
lrwxrwxrwx 1 briank cg 3 2010-05-28 15:23 b -> d/c
d:
total 0
-rw-rw-r-- 1 briank cg 0 2010-05-28 15:23 c
code....
if I use python's os.readlink on 'b', it reports what I want, which is that it points to 'c'.
however, if I os.readlink('a'), it reports that 'a' points to 'b', which is true, but then 'b' points to 'c'.... so really, when I ask for 'a', I will eventually get 'c', but python isn't reporting that.
I know I can do an if test - if os.islink(os.readlink('a')): blah blah, but is there a more built-in or one-liner way of doing this? I'm looking to get to the last file in a list of symlinks, i.e. the regular file that they all point to.
View 3 Replies
View Related
Oct 20, 2010
I am trying to figure something out as part of something else I am going to do. I was just wondering the easiest and quickest way to run a loop at the Linux command line which will make x amount of symbolic links when I need them.
I am using Debian 5.
I figure its something as easy as ~# foreach statement, then I just do a loop with the command to make a sym link.
View 5 Replies
View Related
Sep 25, 2010
I try to fetch links from a URL using HTML::LinkExtor, but it always return 0 links even if the status code is 200 OK. I am running the following code in Ubuntu 9.04, just curious if the module is too old and its ways of HTTP request is disabled by some platforms.
Code:
#!/usr/bin/perl
use HTML::LinkExtor;
[code]...
View 2 Replies
View Related
Feb 20, 2011
I can see some soft links in /etc directory which are pointing to /etc/rc.d Directory contents.
Code:
lrwxrwxrwx. 1 root root 7 Jan 31 08:19 rc -> rc.d/rc
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc0.d -> rc.d/rc0.d
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc1.d -> rc.d/rc1.d
code....
Any body please tell me what is the purpose of these soft links in /etc directory ? I am using RHEL 5.4 ...
View 3 Replies
View Related
Jan 14, 2011
why scp command not copy links from local copmuter to other ( how to copy the links)as scp -rp dir linux:/dir_targetremark in dir I have files and links
View 1 Replies
View Related
Feb 17, 2010
Is there any links to Slackware 13 iso image? At official site there is a folder with subfolders, so I have to download them file by file.
View 6 Replies
View Related
May 26, 2011
Fedora 15, when I click on a link in Evolution email, Firefox opens OK, but does not go to the link but to the home page.Any work-arounds please or is this a bug?
View 8 Replies
View Related
Mar 10, 2010
All of a sudden, when I click on a link in Thunderbird, nothing happens, where it used to open a tab in Firefox. Left clicking and selecting "open in browser" also doesn't work.I checked in Firefox to make sure I had it set as my default browser, but when I click on an html file it opens in Konquerer. Is there another setting I should change?
View 1 Replies
View Related
Feb 23, 2010
I'm using Links on a Ubuntu server, and to view images I'm using Asciiview, which works well, but the association is not retained whenever I close links. How can I retain this association?
View 1 Replies
View Related
May 7, 2010
I have directory that contains some symbolic links:
user@host:include$ find .. -type l -ls
4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include
4737415 0 lrwxrwxrwx 1 user group 14 Dec 9 13:49 ../k0607-lsi6/linux -> ../../../linux
[code]....
View 5 Replies
View Related
Jul 26, 2010
I work in a lab when all the guys use PCs with Windows and access the lab linux servers via ssh.
I prefer linux, so I have a local installation of ubuntu 10.4 on my PC. I mount the home of our lab server using mount server:/home /mnt/home/. I can then access the files on the server (I had to change my local UID to match the one assigned to me on our server in order to be able to write to my home dir).
The problem is all the (symbolic) links I have on the server don't work when I access them through the mounted location. I guess the system simply tries following the link in my local /home instead on server:/home.
View 1 Replies
View Related
Jan 12, 2010
Whenever I click a website link to a .pdf I get this error message, "Could not launch Adobe Reader 8.1.2. Please make sure it exists in PATH variable in the environment. If the problem persists, please reinstall the application." Even though there is no Adobe Reader installed on my p.c.
I then have to right click the link and "Save link as How do I set the PATH variable so that Evince can open the document directly without first having to save the link?
View 4 Replies
View Related
May 26, 2010
Clicking on a link in an email does not work.Is there a setting I'm missing?TBird seems to work fine.
View 3 Replies
View Related
Jun 22, 2010
We run Ubuntu 10.04 Server for our solutions, but I'm having a bizarre problem with init.d boot scripts. I have a script for the Sangoma wanpipe drivers that I modified to add the LSB information so that "update rc.d wanrouter defaults" runs correctly. The symbolic links from rcN.d to init.However, when I reboot the system, all the rcN.d links have disappeared and wanrouter isn't automatically started!I've never seen this kind of behaviour from a Unix based system in 20+ years, so I'm baffled as to how to fix the problem.
View 1 Replies
View Related
Jul 10, 2010
I am trying to set up scripts to execute Luckybackup and make them easily available to all users of the computer. Following the recommendation of the web site (http://ubuntu-tutorials.com/2006/12/...-all-versions/) I tried to set up a folder (/usr/local/myprograms/luckybackup_scripts) containing the scripts, and to put symlinks pointing to the scripts in /usr/lock/bin.
The object of this design was to have my local programs clearly separate from any other programs, and to point to them with symlinks in /usr/local/bin. is because /usr/local/bin is automatically searched when a terminal command is issued so the user need not specify the whole path to the script.The problem that I ran into was that the system would not let me create symlinks to scripts in /usr/local/myprograms/luchybackup_scripts. While ths symlink was created, it was invalid and did point to any target. The only symlinks that I could create had to be in the same folder as the target, namely /usr/local/myprograms/luckybackup_scripts. I tried to create the links using Terminal and "sudo ln -s
View 4 Replies
View Related
Aug 7, 2010
Links from third party applications do not work any more. When I go to click on links from PDF,s or from Pino or KeePass nothing happens. I've tested different browsers Opera, Chrome, Midori etc same thing links just don't work from third party apps.
[URL]
View 3 Replies
View Related
Sep 15, 2010
I just installed Ubuntu 10.04.1 LTS i386 on my desktop after not having it on there for while then decided to do a clean install on my laptop, which had 10.04, but I had screwed a few things up on it... (and a fresh install is always nice
Anyway, no big deal, just kinda weird: Whenever I google something that I had just googled before on my desktop (ie, a program or something that I had installed, and wanted to install on my laptop also), the link for the result is purple, as if I had already visited that link. But I know I haven't because this is a completely fresh install, I reformatted and everything. The only thing I can think of is that somehow the history/clicked links got transferred to the live CD from my desktop, as I used the same disc for both installs, but this seems a bit improbable imo.
EDIT: I just realized that I did NOT use the same disc for both installs, I couldn't find the original so I burned the .iso onto another one for my laptop install....
View 4 Replies
View Related
Sep 19, 2010
When in Chrome or Firefox periodically I want to place a shortcut to a web page on my desktop. To do this I click on the button just to the left of the address and drag it up to the desktop. Sometimes this works but more often this creates a copy of the HTML page. And if the web page is HTTPS I get an error. I can drag to the Bookmarks Bar and it copies the link fine. Then I can drag it from the Bookmarks Bar to the desktop. I know I can create a launcher for the web page on my desktop but that's a lot of trouble. Why would dragging to the desktop work sometimes and not others? Are there any work arounds or fixes? I am using Ubuntu 10.4, Chrome 6.0.472.53 and FF 3.6.10.
View 7 Replies
View Related
Oct 3, 2010
Code:
The lines highlighted in red are symbolic links to the boot files. Yet, they are not used and, if deleted, the system still works.
Anyone know why they are there? Is it a leftover from Linux days gone by, or does SOMETHING use them?
View 2 Replies
View Related
Nov 19, 2010
A series of updates were suggested to update by update manager yesterday and I updated them. My computer crashed a few hours later and after rebooting there is this annoying problem with links. Nautilus can no longer open samba shares smb:// nor can it open web site addresses when I click on a link in evolution. I did some digging around and found that gvfs-bin was not installed and it was suggested on the forums that this might be the problem. I installed it but it made no difference. There's a related thread I posted to here [URL]
Also when you go to the "connect to server" option under places, the only thing listed as an option is "custom location". Even worse, my external hard disk doesn't automount anymore either.
I am using ubuntu 10.10 x64 bit.
View 1 Replies
View Related
Dec 1, 2010
I have a website I want to map all the links starting at a given page, and record where everything is linked. I want to record any broken links, and have a nice little hierarchy of link names when I'm done. I thought the package webcheck could do this for me but I'm not sure.
the server is windows 2003. Im interested in any means that can accomplish this task.
View 1 Replies
View Related
Mar 16, 2011
I know how to make symbolic links on the same or between two different partitions. But is it possible to make symbolic links between two different servers, that are on the same lan?
View 9 Replies
View Related
Jun 18, 2011
I'm trying to download firefox or chrome for windows so that I can use it in wine. Trouble is when I try to dowload a windows version of either I get spoonfed the download link for the linux version only, which I obviously already have. I dont mind dowloading it from somewhere else if I have to, but dowloading it from the developers is usually the best option.Why are these, and probably other, websites spoonfeeding us, and with no choice but to be spoonfed? As a computer user it's patronizing, but as a linux user its just insulting.
View 2 Replies
View Related
Oct 9, 2010
I have a linux server, and use symbolic links a fair amount. I'm also merging some of my php code
library to another location.
My question is, is there any way to get a list of symbolic links that point to a specific directory which I am going to be moving? that way I can manually go through them and re-point to the new location of the physical folder.
View 2 Replies
View Related