I saw JavaScript code which begins with with. That's a bit confusing. What does it do and how can it be used correctly?
with (sObj) return options[selectedIndex].value;
I tried to program a little Application
in C++, but i just keep getting Compile Error like this
(GGC)
initializer element is not a constant
Here's the Code:
http://bit.ly/aHH81e
lg
I'm doing an educational project in which 1) I record voice commands on a separate device and after appropriate processing etc... 2) I send 16-bit samples encapsulated in UDP packets over Ethernet to the PC.
After receiving the packets and "extracting" data (samples) from them, I need to assemble the samples to a WAV file.
Any example code? Any suggestions?
Hello, some one know how can I manipulate on some configuration over all projects in solution?
For example, I create new configuration "Releas64" that means: "No debug, 64 bit, all files goes to c:\binaries", but I need to go over all 30 projects in our solution for to set those settings for every project.
Is there some tool?
Thank you for ahead.
Hello all,
I am having an issue with an actionscript event that I am firing every time a flex componenet resizes. In the event, I am altering the height of the component (adding a bit of a buffer), which causes the event to loop in upon itself and continually add height to the component.
Is there an elegant way to have this event only fire once?
hello,
i m new to sharepoint and bit confuse,
i don't understand where coding take place in sharepoint as other asp.net application.
how it work if i have to create a page for adding record to database.
I've been trying to take apart this app which creates a search tree based on keywords, but I'm afraid its a bit too complex for me. Would anyone mind explaining it?
The format is off, so here's a pastebin (is pastie.org down?) version of it.
Any help is appreciated.
I have this loop
for (it= someCollection.iterator; it.hasNext(); )
{
//some code here
}
I changed it to:
for (it= someCollection.iterator;; )
{
if (!it.hasNext())
break;
//some code here
}
The second code ran a little bit faster in unit tests in junit on eclipse.
Is the second loop faster? I'm asking because the times given by Junit are not too exact, but they give an approximate value
Just wondering if there is any easy way to start a debugging session that lauches the server and the client by simply pressing F5.
As it stands I have to F5 to debug the server, then find the client project and right click-Debug, which is a bit fiddly.
Any tips to get this to work more smoothly?
I am just getting started with the Android SDK and I had a quick question. I am trying to set up a ListView with a rectangle of color on the left and then a bit of text for each row. I also want to make it so I can click each entry in the list and open a new activity to display some information (similar to the contact list). Anyone have any examples to help me out?
As more presentational html properties get deprecated the natural response for me was to make single property CSS classes such as .text-align-left{text-align:left}. My question is, is this preferred versus inline styles?
Stackoverflow actually uses quite a bit of inline styles.
PS: I know this isn't really a coding question and it is likely to incite debate but stackoverflow is the largest stack exchange for code and this question does have some use for future individuals.
I do not understand what is meant by the terms "compile time" and "run time" (or "runtime").
I'm also a bit confused about what "value type" and "reference type" mean, and how they relate to the 'times mentioned above.
Would someone please explain these things?
Ok this situation is a bit difficult. But I am trying to embed a Java Jar into a C# form. Not as a new window or new process.
The Jar will be a game that uses the LWJGL library.
The C# Form will be a "wrapper" for it with tools and more.
Anyone have any ideas? Is this even possible?
I have a div (.header) contained within other divs. When my page loads, momentarily just that one .header div "flashes" white as the page is loading, especially in in Firefox, but a little bit in IE8 too. I can't find what kind of CSS or lack thereof is causing this - there's no images or background color associated with that div. There is a logo.png within the .header. Thoughts?
http://dev.bwmsnow.co.nz/
In a custom subclass of CListBox, if I scroll down it sometimes gets into a weird state where double-clicking on a list item causes the list to scroll all the way back to the top. I have no double-click handler so I'm a bit confused what might be going on, any ideas?
I think I'm being a bit silly here, but I keep getting errors complaining about the SERVER_NAME key missing from the env hash, and I can't find any substantial documentation on Rack::SendFile..
so- how do I serve up files?
I have a practical exam in web technologies so html, css, javascript and (possibly) php. I'm still learning and just wondered if you guys had any advice. HTML im fine with, css sometimes takes me time to get right and javascript and php get a bit messy! It's open book, so what would you suggest taking with me?
I understand why data need to be aligned (and all the efforts made to accomplish it like padding) so we can reduce the number of memory accesses but this assumes that processor just can fetch addresses multiples of 4(supposing we are using a 32-bit architecture).
And because of that assumption we need to align memory and my question is why we can just access addresses multiple of 4(efficiency, hardware restriction, another one)? Which is the advantages of doing this? Why cannot we access all the addresses available?
hugs
Hi!
I've been having a bit of a problem with jQuery and XHTML.
Basically, I've got an object tag that contains a Web Page in its data attribute. Now, what I want is that when I click a button I get this web page and dinamically change the CSS file it's currently using.
I've tried to get the page by using jquery, but all I get is the object itself, not the webpage contained in the object.
Thanks!! :)
I am trying to write a script that I can give to user to have it automatically zip certain files of theirs and then load them onto an ftp site.
Anyone know where I could find information on writing a batch file for auto-zipping files using only what is available to a user running windows? I have been looking for quite a bit but I am struggling.
Thanks.
Hi
Complete novice question. I've used jQuery a bit, YUI not at all and know very little about it.
I work on a website thats IE specific, we're now looking at making it cross browser. jQuery seems great at hiding the differences between browsers from a javascript point of view. However in terms of css layout is it YUI that I should really be looking at?
thanks
Hi,
I am a bit new to reusable plugins for jquery. I have ran across this code several times and can't figure out exactly what is going on.
(function( $ ){
...
})( jQuery );
Can any one enlighten me?
Hi,
I'm looking for best practices and resources regarding design of workflow based applications. E.g.Best practice/guidance for:
How best to represent business object 'states' (position in workflow)
How to approach logging of transition between workflow states
State transition rules
I'm using .NET, but am rather looking for general guidance
I'm sorry that this is a bit general, I'm just hoping some people will have some experiences to share.
Are Swing applications really used nowadays? I don't find a place where they are used. Is it okay to skip the AWT and Swing package (I learned a bit of the basics though)?
This article explained how to do so
http://www.bit-101.com/blog/?p=853
but it doesn't seem to work with Flex SDK 4 as I got this error when building it with Flash Develop (latest version 3):
\Embedding/src/App.as:1: characters 0-7 : parse error Unexpected package
Build halted with errors (mtasc).
So how to correct ?