I have an ASF file which contain 8 audios and 1 video. Now i want to merge this file with other of same ASF type. Is it possible to do with windows media SDK.
My language is VC++
Please give some help
Hi,
Trying to create a view page in my asp.net-mvc app.
I have a strongly typed view, and I have also ovverriden the MVCPage class also.
For some reason when I load the page it says it can't load the type:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Line 2: Inherits="Blah.MyViewPage<Blah.ViewDataForBLahPage>" %>
public class MyViewPage<TViewData> : ViewPage<TViewData> where TViewData : class
public class ViewDataForBlahPage : MyViewData
I have a timezone name and I want the name of the timezone double its offset.
For instance, Asia/Dubai is +4, I want to double that to +8... and have it resolved to Asia/HonkKong
Language: PHP
Here's a sample of what it would look like:
$timezone = "Asia/Dubai"
$offset = $timezone->getOffset();
$offset *= 2;
$timezone = $offset->getTimeZone();
Output: Asia/HonkKong
Hello !
I made some searches on Google, and I read some posts, articles and benchmarks about Ruby on Rails being slow and I am planning to build one website that will have a good amount of users inserting data and there will be some applications to process this data (maybe in Ruby, you can help me choosing the language).
What is the real performance of Ruby on Rails with large traffic ?
Thank you !
Hi there.
Looking at using a template system for a new project, it's only a small site and don't want to use the overhead and 'complexity' of smarty. I don't really like template systems that force you to make use of another language just to make it easier for designers (apparently).
Something like this
http://www.namepros.com/code/517342-php5-template-class.html
is what Im looking at but something which is a bit more robust and proven.
Let's say we have a memory-intensive class like an Image, with chainable methods like Resize() and ConvertTo().
If this class is immutable, won't it take a huge amount of memory when I start doing things like i.Resize(500, 800).Rotate(90).ConvertTo(Gif), compared to a mutable one which modifies itself? How to handle a situation like this in a functional language?
I was wondering if somebody could highlight the advantages of programming in F# in comparison to my regular object-oriented programming language such as C#.
PS: Sorry if I sound like a person who just got out of the cave.
HI all,
my xml consist of words in few different language,latin words etc.
i am able to parse these latin characters n all except the fact,that i am not able parse only "&"
This is wat i am getting @gdb
Entity: line 223: parser error : xmlParseEntityRef: no name Ull always be mine 4 now & 4ever.Ull always be mine 4 u r my treasure.Ull
Any hint to overcome this
regards
shishir
I had printer on network and I tried to install it as driver on pc on network it installed but the letters with bad language note . that I installed win7 on pc
any one help me
Hey guys,
I've got a pretty much vanilla install of SOLR 1.4 apart from a few small config and schema changes.
<requestHandler name="standard" class="solr.SearchHandler" default="true">
<!-- default values for query parameters -->
<lst name="defaults">
<str name="defType">dismax</str>
<str name="echoParams">explicit</str>
<str name="qf">
text
</str>
<str name="spellcheck.dictionary">default</str>
<str name="spellcheck.onlyMorePopular">false</str>
<str name="spellcheck.extendedResults">false</str>
<str name="spellcheck.count">1</str>
</lst>
</requestHandler>
The main field type I'm using for Indexing is this:
<fieldType name="textNoHTML" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<charFilter class="solr.HTMLStripCharFilterFactory" />
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
</analyzer>
</fieldType>
now, when I perform a search using
"q=search+term&hl=on"
I get highlighting, and nice accurate scores.
BUT, for wildcard, I'm assuming you need to use "q.alt"? Is that true? If so my query looks like this:
"q.alt=search*&hl=on"
When I use the above query, highlighting doesn't work, and all the scores are "1.0".
What am I doing wrong? is what I want possible without bypassing some of the really cool SOLR optimizations.
cheers!
Hello,
I would like to iterate through a table and break it into relvant parts based on the number of visits. I have tried several things but cannot seem to get it to work.
I have included the code.
for(i in 1:6){
paste("testing.visit",i,"\n",sep="") <- subset(testing,visit_no==2)
}
But I get the following error.
Error in paste("testing.visit", i, "\n", sep = "") <- subset(testing, :
target of assignment expands to non-language object
Thank you,
Brandon
I work a lot with Wordpress and I'm trying to customize some of my themes, all of which are written in PHP. I've been trying to learn this language for a little while, but I'm not an experienced coder (My knowledge only includes HTML with some CSS). Can you recommend a guide/book/tutorial/etc that would work for a beginner?
Hello all ,
i am using ResourceBundle and i want to give the user an option
to select a language for the GUI.
i want to get a list of all resource files that are under a specific package.
i don't know what resource i will have since this application based on plug-ins
is there an option to ask from java to search all available resources under a package ?
(if no i guess the plug-in should give all available local for it)
thank you all
Hi Experts,
I am looking for examples of share calendar and share event using google calendar API in any programming language java, .net, java script.
Thanks,
Aqeel
I've seen some discussion on why c# does not implement multiple inheritance but very little as to why it isn't supported in vb. I understand that both c# and vb are compiled down to intermediary language and so they both need to share similar restrictions.
The lack of multiple inheritance in VB seems to have been given as one reason for the lack of the feature in dot net. Does anyone know why VB doesn't support multiple inheritance? I'm hoping for a bit of history lesson and discussion on why this was never considered for VB.
I don't like debugging in a debugger, because I think it is often below the abstraction layer of the programming language and it is often not reproducible. I favor usign unit tests when possible and I think they are a good way, but it is not always that easy to implement them. Do you know about any other alternative approaches to avoid the use of debugger?
First time I saw a class Kase, I was scratching my head.
My guess it's something to do with a conflict of the keyboard case. BTW, since when, for which language(S), it becomes a norm?
I've been checking out the Nitrogen Project which is supposed to be the most mature web development framework for Erlang.
Erlang, as a language, is extremely impressive. However, with regards to Nitrogen, what I am not too keen about is using Erlang's rather uncommon syntax (unless you're native in PROLOG) to build UIs.
What is your experience with it as opposed to other mainstream web frameworks such as Django or Rails?
What are the things a script should do to ensure that files have been FTPed correctly? Following are the things I have in mind:
1) use high level scripting language like python or perl instead of shell script for a more comprehensive functionality and error handling
2) check that the file exists at the destination after FTP
3) check destination file size. This is a little bit difficult because file size will change if the source and destination are running different OS. Any tips on how to go about this?
How can I measure programmatically (not query the OS, but measure) the size and order of associativity of L1 and L2 caches (data caches)?
Assumptions about system:
It has L1 and L2 cache (may be L3 too, may be cache sharing),
It may have a hardware prefetch unit (just like P4+),
It has a stable clocksource (tickcounter or good HPET for gettimeofday).
There are no assumptions about OS (it can be Linux, Windows, or something non-standard), and we can't use POSIX queries.
Language is C. And compiler optimizations may be disabled.
i have made a firewall project in c language on linux operating system ,now i want to know how to make setup of this project so that i can run this application on other system by installing it ?please give an example...........
Thanks in advance
i have made a firewall project in c language on linux operating system ,now i want to know how to make setup of this project so that i can run this application on other system by installing it ?please give an example...........
The question might look subjective but considering Microsoft:
Owns the Xbox 360 platform
Owns the Windows platform
Have their own game studio (MGS)
Own other 3rd party developers
Is a major publisher
makes me wonder why Microsoft doesn't push their flagship language to prove that not only you can cut down significant development time, and therefore money, but also show that you can release a next gen title where the real time interactivity doesn't suffer.
If Microsoft were to do this once, I am sure many AAA developers would jump on that wagon too.
How would you explain traits to a new C++ programmer?
How would you explain traits to a C programmer?
How would you explain traits to a Java/Ruby/Python/C# or any other OOP language programmer?
I am building a mini language translator out of XML nodes and Actionscript 3.
I have my XML ready. It contains a series of nodes with two children in them. Here is a sample:
<translations>
<entry>
<english>man</english>
<cockney>geeza</cockney>
</entry>
<entry>
<english>woman</english>
<cockney>lily</cockney>
</entry>
</translations>
The AS3 part consist of one input box named "textfield_txt" where the English word will be typed in. An output text field for the translation called "cockney_txt". Finally, one button to execute the translation called "generate_mc".
The idea is to have actionscript look through the XML for key English words after the user types it in the "textfield", cross-freferences the children then returns the Cockney translation as a value.
The trouble is, when I test it I get no response or error messages- it's completely silent. I'm not sure what I'm doing wrong.
At present, I have setup a conditional statement to tell me whether the function works or not. The result is, no it's not! Here's the code below. I hope someone can help.
Cheers!
generate_mc.buttonMode=true;
var English:String;
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("Language.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void {
myXML = new XML(e.target.data);
}
generate_mc.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent) {
English = textfield.text;
cockney_txt.text = myXML.translations.entry.cockney;
if(textfield.text.toLowerCase() == myXML.translations.entry.english.toLowerCase){
//return myXML.translations.entry.cockney;
trace("success");
}else{
trace("try again!"); // ***I get this as a result
}
}