Computing desk | ||
---|---|---|
< January 16 | << Dec | January | Feb >> | January 18 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I installed in our company intranet the MediaWiki: 1.8.2. I added various articles with link to files on file servers in out intranet using the standard wikitext tag for external links
"[file://\\server\share\dir\filename.ext Anchor Text]". Most users are not familar with the Wikitext synthax, so I installed FCKEditor V0.7.2 (2006) based on the instructions found at the MediaWiki Site [1].
Now are all external links to files on pages in the old Wikitext format rendered as plain text and not as link as if it is done when you use the "<nowiki>" tag. I am looking for solutions from config settings (wiki/editor) or code changes. I can't link to the files via "http://" or "ftp://". Conversion to full HTML (for FCKEditor) is also not an option.
Thanks you. --roy<sac> Talk! .oOo. 02:10, 17 January 2007 (UTC)
Does anyone know where to find UV cathode lights that plug that would plug into wall sockets. I can find many that plug into 4 pin molex connectors, but I was interested in setting one of these up outside of a PC. —The preceding unsigned comment was added by 24.231.205.94 (talk) 05:45, 17 January 2007 (UTC).
Is there a way to turn on a power supply that is not connected to a computer at all? Perhaps one that is connected to only one component. —Preceding unsigned comment added by 24.231.205.94 (talk • contribs)
I am trying to get a train tunnel image done for a Wikipedia article, I am using CorelDRAW 12. I have managed to draw the tunnel cross section, but am having trouble filling it in with a colour. I can fill in an ordinary shape (eg a circle) just fine, but I can't fill in the tunnel. I have tried "combining" and "welding" the tunnel cross section, but still it is impossible to fill with colour. I made the cross section from a circle and a few lines and the shape looks closed to me (seemingly the nodes meet up ok), it looks a bit like this - but I can't manage to fill in the outline, as they have done with green in the example. I tried searching for help with this problem but found nothing - maybe it is something simple that I am missing. Thanks for any ideas.--Commander Keane 07:42, 17 January 2007 (UTC)
I'm considering purchasing a wireless print server however I'm confused by the lack of product selection on the market. Are there any substantial problems with this technology that I should know about before I make the purchase? Is there a reason why most of the prices I'm seeing are in the $100 range, meanwhile routers cost as little as $35. Should I instead just be buying a brand new printer with built-in wireless capability (even though I have a pretty decent all-in-one printer)? Maybe I'm just missing something, but I was just surprised that I couldn't find many of these for more reasonable prices at places like Newegg, TigerDirect, and Amazon. Anyhow, any comments and/or recommendations are greatly appreciated.
Thanks, Jon —The preceding unsigned comment was added by 65.31.137.54 (talk) 09:08, 17 January 2007 (UTC).
I am learning C, and I am having trouble with the singly linked list. Elements are created and inserted in a loop, but when the loop returns to define another element, the old address is reused, which is highly undesirable, because changing a value at this address changes 2 values.
The program below inserts 0, 1 and 2 in a linked list, and the second insertion is overwritten by the third. I would appreciate if someone could point out my error. I suspect it has less to do with the linked list and more to do with variable scope. 130.225.96.2 12:01, 17 January 2007 (UTC)
struct listelem{ int data; struct listelem* nextElem; }; int main(){ struct listelem a; struct listelem* plast =&a; //Pointer to last element in list. a.data=0; int i; for(i=1;i<=2;i++) { //Executed twice, with i=1,i=2 struct listelem b; //Both get the same address for b, printf("&b=%p\n",&b); //as shown in this line plast->nextElem=&b; //This saves the address of b outside the scope plast=&b; b.data=i; //The first time b.data is written is lost. } printf("Should be 0,1,2, but is %d,%d,%d\n",a.data, (a.nextElem)->data, (a.nextElem->nextElem)->data); }
Output:
&b=0xbf8c5320 &b=0xbf8c5320 Should be 0,1,2, but is 0,2,2
listelem
and the ones in main()
. Then we see that you have effectively declared int a.data
and (in the loop) int b.data
. You should not expect these two storage locations to store three numbers! You are almost right that the problem is one of scoping; it's actually one of variable lifetime. The statement struct listelem b;
in the loop should not be thought of as creating an object but rather defining a period of time (here, the extent of one iteration of the loop) during which an object exists. b is in fact created, but it is fated to be destroyed when its iteration of the loop finishes. (a is fated too: it dies when main()
returns. If you have more than one function in your program, this matters a lot.) Even if the "two" bs got different addresses, the first one would not exist after its iteration completed. (To demonstrate this with your program, call some complicated function (like, say, fopen()
) after your loop but before printing. Then all your data except that in a — which is actually just garbage on the stack then — will be most likely replaced by data used during the function call.) The solution here — the creation of objects with indefinite lifetimes and (closely related) in arbitrary numbers known only at run time — is called dynamic memory allocation; in C one uses malloc()
. --Tardis 17:12, 17 January 2007 (UTC)pb=malloc(sizeof(struct listelem));
(and made corresponding changes) and it appears to work. 130.225.96.2 09:12, 18 January 2007 (UTC)sub esp, 8
, add esp, 8
--wj32 talk | contribs 01:30, 19 January 2007 (UTC)Is there a way to download a realvideo file, for which I only have the URL (i.e., no hyperlink that links to the page; needs to be typed into the address bar), but without having the browser trying to visit the file as though it were a page and automatically downloading it into a temp directory? An example URL would be: http://ocw.mit.edu/ans7870/8/8.01/f99/videolectures/wl99lec1-80k.rm
It is not a streaming video. Of course, I could put it here and click "save target as", but that would be a bit convoluted, considering that I will want to do this repeatedly. BenC7 12:20, 17 January 2007 (UTC)
javascript:document.write('<a href="http://ocw.mit.edu/ans7870/8/8.01/f99/videolectures/wl99lec1-80k.rm">Test</a>');
Greetings. I'm a fairly new Linux user, and I'm wondering if there is any easy way to "pause" long output from a command so that it doesn't get "scrolled away"? I've been piping the commands to "head" (so like "ls --all | head", with variants), but that's not really a good long-term solution. Any tips? Oskar 18:37, 17 January 2007 (UTC)
more
is a simple pager, and less
does things like let you move backwards and forwards. --Transfinite 19:00, 17 January 2007 (UTC)Another option is to just let it fly by, then scroll back and read the relevant bits. To do this, you must have a window with a scroll bar and enough lines in it to capture your output. If I recall correctly, the command is something like "xterm -sb -sl 3000 &", to create an X terminal with a scroll bar and 3000 lines in the buffer as a spawned subprocess. I use 3000 because that's about the limit where one pixel on the scroll bar equals one page of scrolling. In other words, if you go much beyond that, it will tend to scroll backwards more than a page at a time, and you will miss things. StuRat 19:50, 17 January 2007 (UTC)
How would I download the TI Reader to my TI89 Titanium? I've already got the TI connect software in working order, and the computer does recognize and communicate with the calculator, but I haven't been able to transfer any apps to the calculator. (If it's any help to repliers, the computer OS is Windows XP, and the calculator OS is Version 3.10, 07/18/2005, Advanced Mathematics Software, Hardware Version 4.00). Alphabetagamma 05:26, 18 January 2007 (UTC)
So today I fired up the ol' Skype and it turns out you need Skype Credit to make calls (I thought this wasn't starting until tomorrow). Basically, are there any other computer applications that will allow you to make free calls across the USA? Thanks! NIRVANA2764 22:07, 17 January 2007 (UTC)