I am not sure what language or how to do this, but I am looking to have a word on a page, and when clicked, it will reveal more underneath. If it is clicked again, that stuff will hide away again? Any ideas?
Hi!
Is there a maximum number of assembly language instructions to be loaded into the fragment program unit?
I have an algorithm on to port from cpu to gpu and apparently it doesn't fit on the gpu.
After several Google searches, it appears that the way to create PDFs in Rails from HTML and CSS (versus a new markup language) is to use Prince.
With licensing at $3800 for my non-big-commercial app, I'm wondering if this is, in fact, consensus or people have an alternative they can share the whats and hows.
Previous post
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %
<%
MvcApplication1.Models.FeaturesRepository _model = new MvcApplication1.Models.FeaturesRepository();
%
<% foreach (var md in _model.GetAllFeatures())
{ %
<%--<% if (md.int_ParentId == 0)
{ %--%
<%= md.vcr_FeaturesName %
<%--<% } %--%
<% } %
It is with reference to the previous post above.Is there something wrong with the foreach loop(The result is correct but it is displaying the series of Add,Add,Add,Add,Add,Add...,which is the last record of the getallfeatures.
Im trying to make a program that captures a video from the webcam and sound from the microphone but im getting stuck at the part where ive try to make a movie out of still images
ive heard you need to use directshow but it doesnt jet work for me
Does someone know a good piece of example code that captures video and sound and can encode it to a file (divx or something like that) ?
or some suggestions where to look so i can build it myself
(if a other programming language is better for this im happy to know it early. )
I need an advice about USB programming in linux. i have to design a USB monitoring program that 'll keep checking usb ports of a linux cent os. as soon as a usb or external hard disk is connected, this program will shoot an email to some specific person about detail of usb (as size, mount on, time). when usb is disconnected, it will again shoot an email to some person with same kind of information. mean while this program will also write logs in syslog/messages with name of programing for easy tracking.
Now I want ask that what is best way to develop this program. as I'm new to this field so i know nothing about it? either i should use perl, bash scripting or some other language? I have no idea what is right way to adopt coz this program will keep running all the time to keep a check on usb ports. I know few commands in like lsusb, fdisk (to check attached usb) and df -h (to get detail of usb) but dont know how i can achieve using these commands that i am thinking.
also one more thing that in future i also need to modify this program for ubuntu and Citrix XenServer and it should be same everywhere.
That is detect when the user makes web part changes and selects to exit editing the page.
I want to be able to capture a page event, then create a SharePoint task to instruct a user to translate that page to another language (note that MOSS and variations is not an option because the client wants to use the free version of SharePoint). So the customer wants essentially the same WSS site in multiple languages.
Given an image with a large dimension ( 1.000 x 1.000). What is a good approach to find a small image (e.g. 50 x 50) in the big one?
The smaller image can be rotated and differ in the size, but only with a 1:1 ratio.
It's not related to any programming language - I'm just interested in pattern recognition.
Thank you.
How to handle the case where the token 'for' is used in two different situations in the language to parse? Such as statement and as a "parameter" as the following example:
echo for print example
for i in {0..10..2}
do
echo "Welcome $i times"
done
Output:
for print example
Welcome 0 times
Welcome 2 times
Welcome 4 times
Welcome 6 times
Welcome 8 times
Welcome 10 times
Thanks.
What are the linux developper tools to do the things i do with .NET in my windows environnement :
I would like to port my client server application that runs under winform/nhibernate/sql server.
Language c#
Database SQL server
ORM Nhibernate
Source control SVN / Tortoise
Unit testing Nunit
Continuous integration Cruise Control
Should i go java and eclipse ?
Python and ???
Ruby and ???
Is there some IDE that allow me to manage all these processes under linux ?
I can only translate my application to my language using TcxLocalizer at runtime, but I need this working also in design-time.
Does anyone has some suggestion?
Thanks in advance
Language : C++
Platform : Windows Server 2003
I have an exe calling a DLL, in which when I allocate (new) the memory for class A (which is in DLL) it returns me a non-local heap pointer.
I try to new other classes which are in DLL and "new" returns a valid heap pointer for them, its only Class A which is not being allocated properly.
I am on windows and validating the heap by this function call :
_CrtIsValidHeapPointer ( (const void *) pPtr )
I am seriously confused why this only happens with new-ing Class A and no other class ?
(All Native Code)
I want to loop through a Python list and process 2 list items at a time. Something like this in another language:
for(int i = 0; i < list.length(); i+=2)
{
// do something with list[i] and list[i + 1]
}
What's the best way to accomplish this?
I know: You and me hate COBOL. I took a look at a lot of code examples and it didn't take me long to know why everybody tries to avoid it.
So I really have no idea:
Why was COBOL ever used?
I mean: Hey - there was Fortran before it, and Fortran looks like a jesus-language compared to COBOL.
This isn't argumentative but historical as I'm young and didn't even know about COBOL before 4 months.
Hey,
I'm new to python so I really don't know the language very well.
the following example was taken from here http://docs.python.org/library/json.html
>>> import json
>>> json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]')
[u'foo', {u'bar': [u'baz', None, 1.0, 2]}]
what does the u mean? and how do i know which elements are available in the dictionary?
I am using visual studio 2008 with vb as my language. I have a databound multiextended listbox. I need to get the selected value for each item that is selected. I have searched for two weeks trying to find and answer. Can anyone help? I would greatly appreciate it.
What are the location detecting tecniques for IP adresses?
I know to look at the
$_SERVER['HTTP_ACCEPT_LANGUAGE'] (not accurate but mostly useful to detect location, for example if an IP range's users set French to their browser then it means that this range belongs to France
gethostbyaddr($_SERVER['REMOTE_ADDR'])
then may be to whois gethostbyaddr($_SERVER['REMOTE_ADDR'])
sometimes
$HTTP_USER_AGENT (Firefox's user agent string has language code, not accurate but mostly can be used to detect the location)
But what about cities?
Dear All,
I need to parallelize a CPU intensive Java application on my multicore desktop but I am not so comfortable with threads programming. I looked at Scala but this would imply learning a new language which is really time consuming. I also looked at Ateji PX Java parallel extensions which seem very easy to use but did not have a chance yet to evaluate it. Would anyone recommend it? Other suggestions welcome.
Thanks in advance for your help
Bill
The Go language creators write:
Go doesn't provide assertions. (...) Programmers use them as a crutch to
avoid thinking about proper error
handling and reporting.
What is your opinion about this?
I need to programatically encrypt a directory of files, like in a .zip or whatever. Preferably password protected obviously.
How can I accomplish this, and WHAT IS the BEST encryption way to do it, if applicable?
Programming language doesn't matter. I am dictioned in all syntax.
I am wondering what the idiomatic way to render special language characters is using Handlebars.js templates. When I render the normal html I can use something like the Spanish lowercase e, é, and it renders as expected. When I pass the same text as a string to my Handlebars template I just see the characters é.
I have tried creating a Handlebars helper that used jquery to render the text using .html() then returning the .html() of the tmp element and I get the same results.
I have a server running a Virtual Desktop Managed Pool, what I would like to do is when a user logs in I would like a script to check the number of available VMs and if below a threashold add additional VMs to the pool.
The script to check the load and add to the pool is not the problem, I have that already figured out:
$collectionName = "Test1";
$rdvh = "vmHost.example.com";
$minAvailableVMs = 2;
Import-Module RemoteDesktop;
$pool = Get-VirtualDesktopCollection -CollectionName $collectionName;
$availableVMs = $pool.Size - ($pool.Size * $pool.PercentInUse / 100);
$status = Get-VirtualDesktopCollectionJobStatus $collectionName
#only add new servers if we are below the threashold and in the JOB_COMPLETEED state
if($availableVMs -lt $minAvailableVMs -and $status.Status -eq [Microsoft.RemoteDesktopServices.Management.VirtualDesktopCollectionJobStatus]::JOB_COMPLETED)
{
Add-RDVirtualDesktopToCollection -CollectionName $collectionName -VirtualDesktopAllocation @{"$rdvh" = 1}
}
The problem I am having is, how do I run the above script on the Virtualization Host/Connection Broker/Some other server when a user connects?.
I don't think it would be appropriate to run this as a logon script inside the VM, I think there is a way to do this on the management side but I don't know the new scripting interface in Server 2012 R2 well enough to know which commandlets I should look for to schedule this.
EDIT: I know System Center is perfect for this but I do not have a license and was denied when I asked for it to be added to the budget.
Is it possible that the iPhone can somehow send data or some control command to the computer's com ports via USB cable? Maybe use inline assembly language for instance? Thanks!
From the article Anders Hejsberg interview, "the way we do overload resolution in C# is different from any other language"
Can somebody provide some examples with C# and Java?
Hi,
I have some PHP code that sends a section of html code including some inline Javascript code by curl to google. When i get it back from Google translated into the language that i chose, the Javascript code has been translated too.
Any ideas as to how i can stop Google translating my inline JavaScript code?
Thanks,
M