how can I make this menu here have the default be the "about" tab?
http://www.sohtanaka.com/web-design/examples/horizontal-subnav/
so when your mouse isnt hovering over any of them, its on the about tab?
Hello,
I tried Google Guice the first time and find it very nice.
But, when I reached the part of Built-in Bindings I do not understand the examples.
For me it looks like I can use it for logging like an interceptor, but I don't know how.
Could someone of you explain this type of Binding and how I can use it? And maybe (if it's possible) use it for logging?
Properties seem to be a powerful feature of Subversion. The manual provides some interesting examples of using them. But how do YOU use this feature in your projects?
i have a litle project for which i would like to remove all files outside of and not needed by the c:\windows operating system. therefore i need to create a list of what i want to keep i.e. boot.ini c:\windows etc and then delete everything else. i have seen examples using forFile, but i can be sure that extension will be on the machine. does anyone have any ideas how i can create the exclude list and then do the delete?
I have a web application that's branded according to the user that's currently logged in. I'd like to change the favicon of the page to be the logo of the private label, but I'm unable to find any code or any examples of how to do this. Has anybody successfully done this before?
I'm picturing having a dozen icons in a folder, and the reference to which favicon.ico file to use is just generated dynamically along with the HTML page. Thoughts?
I'd like to merge 2 XML streams (strings) in Java, necessarily by XSLT (that I could change the transformation), but the problem is that the XMLs come as a string. There are many examples, but through the files.
Can this be done without saving them in files?
Thanks.
None of the scribe examples I've seen actually mention the best way to take logs/logfiles and send them to scribe. I could configure a logrotate script that has a postrotate section that "cats" the rotated file to scribe (but then I get minutes latency at best).
The other option is to keep a "tail -f= | my_scribe_sender" and hope that the process never gets killed. However then you really can't guarantee that you're not missing/duplicating data.
I am just starting with cpp and I've been following different examples to learn from them, and I see that buffer size is set in different ways, for example:
char buffer[255];
StringCchPrintf(buffer, sizeof(buffer), TEXT("%s"), X);
VS
char buffer[255];
StringCchPrintf(buffer, 255*sizeof(char), TEXT("%s"), X);
Which one is the correct way to use it?
I've seen this in other functions like InternetReadFile, ZeroMemory and MultiByteToWideChar.
I am having trouble configuring my NAS. I have a DSL router with WIFI (192.168.1.1) in my flatmates room. In my room I have a server with two NICS:
1) wlan0 (192.168.1.2) that connects to the DSL router via wireless
2) em1 (192.168.0.1) that connects to the NAS (192.168.0.20) with a crossover cable.
I have Fedora 17 and I have enable packet forwarding. My IP configuration is as follows:
WLAN0 inet 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
EM1 inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
My routing table looks like:
Destination Gateway G enmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 em1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
I have enable a static route in the DSL server:
Status Network Destination Subnet Mask Interface Gateway Remove Edit
Active 192.168.0.0 255.255.255.0 LAN 192.168.1.2
From my server I can ping the DSL router and the NAS. From the NAS I can ping both NICS of the server. However the NAS is unable to ping the DSL router or any address in the Internet.
Any idea of what is wrong. Thank you in advance
Hello,
I need to rename all the files in a directory. Some examples of the source filenames are:
alpha--sometext.381928
comp--moretext.7294058
The resultant files would be renamed as:
alpha.sometext.381928
comp.moretext.7294058
The number of characters before and after the -- is not consistant.
The script needs to work on current installations of Ubuntu and FreeBSD. These are lean LAMP servers so only the necessary packages have been installed.
Thanks
Hello, I was wondering if you can add a link to a website in a C++ program running in the CMD Prompt type window (No GUI)
If it's possible can some one please give me a few examples?
Thanks.
Hello All,
I would like to brighten an image on my webpage on mouseover using css or javascript.
Ive seen some examples using opacity and filters in styles but they dont seem to work for me.
Thanks in advance
CP
I'm learning Perl, and in a lot of the examples I see errors are handled like this
open FILE, "file.txt" or die $!;
Is die in the middle of a script really the best way to deal with an error?
I heard this term recently. What are subscription applications(for a mobile platform). Does this term fall under standard usage? Are there any examples of such a mobile application?
Thanks.
I'm new to PHP and I'm confused seeing some examples calling a function with a @ prefix like @mysql_ping().
What is it for? Googling / searching is not much of a help since @ gets discarded and 'alias' is not good enough keyword.
I am trying to create an app which uses a combination of jQuery templates and Backbone.js
I have very little experience in both of them (though I know jQuery)
Could you please provide some good examples where jQuery templates and Backbone.js are used effectively.
Also I am loooking at using JSON for the model/data and trying to persist the data (I use Java at the backend)..So looking for ideas on how that can be integrated?
Thank you.
I'm wondering if it would make sense to do some low level or OS stuff(a project) using Java. Reason why I ask is because I would like to expand my knowledge in Java and I'm into doing stuff like file compressor, bulk file renamer, etc. Are there any examples out there that I can look at or play with? Or should I just be using C or C++ instead?
Thanks!
i have a menu, it contains multiple items, each menu item will retrieve data from the database.
i want to do it without the page refresh, i want like an area that will change when the user clicks on the menu link.
How should i send data to the php script and how should i get it from there and preview it on the page.
if you can send me any information, references or examples that will be great
Thanks in advance.
I am a Java developer but up to now have not had any hands on experience using the Spring framework.
Does anyone know of anyone good online tutorials that explain the basics and offer good examples and sample code.
I'm am trying to figure out how the Oracle "Layered Architecture Model" works, and I am very confused about what the business, data, and presentation do, and how they relate to each other. I have seen many diagrams showing how this should work, but some real world examples would be useful?
Did not have luck with these examples:
Javascript File remove
Javascript FSO DeleteFile Method
Deleting a File
There are no special permissions on the file.
Is there a way to do this in JQuery?
The requirement is - a certain file must be deleted from the web directory when another page is loaded. There is no security issue as this is on a closed network.
Any help is appreciated.
Thanks.
Hi,
I'm very new to JQuery, but I was told the one of the cool things about it is you can query a mysql database right from an html page(or in my case a smarty template)with out needing php.
I have not found any examples of this so I am asking if someone has one? Thanks