coding

HTML e-mail template testing - for web and mobiles

Hi all, I am not sure that this is the right place for this question so if not please advice me where to ask. I am currently building a HTML e-mail template with sophisticated design and I am wondering how & where to test it. In "how & where" I mean which are the most common mail applications for desktop and mobile devices. So is ther...

Segmentation Fault when deleting complete linked list

Hello, I'm trying to delete whole linked list but getting segmentation fault and not able to detect what is the real problem. When I tried debugging using gdb, it is able to remove the first node but throw segmentation fault when deleting second node. Please suggest me what can be the possible reason. #include <iostream> using namespac...

Algorithm to generate all permutation by selecting some or all charaters

Hello All, I need to generate all permutation of a string with selecting some of the elements. Like if my string is "abc" output would be { a,b,c,ab,ba,ac,ca,bc,cb,abc,acb,bac,bca,cab,cba }. I thought a basic algorithm in which I generate all possible combination of "abc" which are {a,b,c,ab,ac,bc,abc} and then permute all of them. S...

What are the Best Program Languages to Learn from scratch and Why

I have been working with PHP and Wordpress sites for a long time, but Im thinking about trying to learn more than just the basics. Im wanting to learn some program languages so I can develop my own applications and startups. What are the best languages to learn and why? ...

How to handle NULL values in mysql/php?

In MSSQL Server, we make queries for null values like below: SELECT name, ISNULL(about, ''), contact FROM `user_profile` WHERE userid=1 But when I am trying to do the same with MYSQL then it gives error. What is the logical and easy way to handle NULL values in php/mysql scenario. Thanks ...

How would you access Eclipse JDT index?

How do I access the index that eclipse uses to do Java search, import, etc? ...

4D matrix calculation, Matlab coding problem

hey guys, I got some difficulty here. It is purely coding algorithm problem. Okay, the program is shown below: for f=1:(nFrames-1) h=histogram(imgYuv(:,:,1,f)); j=histogram(imgYuv(:,:,1,f+1)); X=abs(h-j)/256; %normalize the difference S=sum(X); end Basically, I want to calculate the difference between two adjacent elem...

MATLAB coding problem

Hey guys, I got this error message when I tried to trigger the function below. Can anybody help me out? Thanks! >> changeYuv('tilt.yuv',352,288,1:40,40); ??? Index exceeds matrix dimensions. Error in ==> changeYuv at 32 j=histogram(imgYuv(:,:,1,k+1)); >> [x,y,z,a]=size(imgYuv) x = 288 y = 352 z = 3 a = 40...

How to write coding for video

What is the coding to check whether the nested if statement is true or not? if (treeViewItem.IsSelected == true) { img3_a.Visibility = Visibility.Hidden; img3_b.Visibility = Visibility.Hidden; Video.Source = new Uri(@".\step_3.wmv", UriKind.Relative); Video.Play(); ...

[C#] How to write this statement into coding?

[C#] How to write this statement into coding? I declare my Video Time Value as "VideoTime.Value" **if (Video Time Value is equal to 4 sec) { MessageBox.Show("Video Paused"); }** ...

[C#] How to write this statement into coding?

Possible Duplicate: [C#] How to write this statement into coding? [C#] How to write this statement into coding? I declare: MediaElement as "Video" Slider as "VideoTime" if (The video has played until 4 sec out of 10sec of that video) { *video will be stopped } Thanks ...

[C#] Possible to add a marker on the video/time slider in Microsoft Expression Blend?

I want to add a marker on the slider in Microsoft Expression Blend, for example, when I play the whole video (total got 4 different parts), there will be 3 markers on/below/near the video slider to show the user when/where is the next part of the video. Is it possible to do that and how? Thanks. ...

My preallocation of a matrix gives out of memory error in MATLAB

I use zeros to initialize my matrix like this: height = 352 width = 288 nFrames = 120 imgYuv=zeros([height,width,3,nFrames]); However, when I set the value of nFrames larger than 120, MATLAB gives me an error message saying out of memory. The original function is [imgYuv, S, A]= changeYuv(fileName, width, height, idxFrame, nFram...

Criteria to judge code quality in interviews

Hello, During Technical interviews involving coding question what criteria do people use to evaluate code. Assuming there are multiple ways to code the same problem, what metrics can be used to evaluate and compare the answers objectively. The Interview is typically 1 hour long Some of the things I use are Correctness Brevity and...

image pixel values storage in XML using Matlab

Hi ppl. I'm currently working on storing pixels in XML format using Matlab. The problem is that I have no idea about data storage under XML. Can any expert please give me some guidelines? Any relevant materials are welcome and appreciated. Thanks!! ...

Which edition of Art of Computer Programming should I buy?

I want to purchase Knuth's Art of Computer Programming but I'm unsure of which edition to buy. What's the latest edition? Should I go with the latest edition or is another edition better? ...

how to open a matlab p-code file

Does anybody know how I can see the code of a matlab p-code file? ...

After having 2 years experience in Software Testing is it worth taking risk to move to Development

I have 2 years of experience in Software Testing. I have worked on both Manual as well as Automation forms of testing. But, this time I have a got a chance in my company to become a Software Developer. I know opportunities like these rarely come in life and I want to make use of it. I could not get any job early in my career in the field...

Best python/Django code generator?

Hello, very quick question. I am wondering if there are any software Django software that generates python coding automatically. If there are any, please let me know. ...