Hi boys, im newest... I've got a simple question... wich is better? Python or C++? I wanna study computational science, and i like algorithms and TAD analyses... what do you prefer?
Im trying to compare these two chars but on win 32 Visual Studio 2008:
if(mychar1 == 'ä' || mychar2 == 'Ä')
Erromess:
Debug Assertion Failed!
File:f\dd\vctools\crt_bld\self_x86\crt\src\xstring
Line 1575
Expression: string subscript out of range
i have a gridview as follows:
Sub marks result
eng 56 p
maths 45 f
science 67 p
S.S 78 p
im using the mail function to send the marks to the student. how to convert these gridview rows to the table rows or how to pass the gridview datas into mail function as
'message'
Hi,
I use codeigniter's database abstarction, and im doing a transaction with it. My problem is, that i have several inserts into several tables, but i need the insert id from the first insert query. Is there any way to store the last insert id for more than one following insert?
Hi im having a few problems rotating a string, i found that you need graphics.rotate() but when i change the rotation, i cannot even see the string. It appears the pivot point has completely thrown me. Also i saw an example with transform but i decided i did not need this?
If my string was a graph label, reading top to bottom and i needed to rotate it 180 degrees so that it read bottom to top, how would i do this?
Thanks in advance
Im using the MbMenu jQuery plugin.
http://plugins.jquery.com/project/mbMenu
http://pupunzi.open-lab.com/2009/01/18/mbmenu/
I am probably being ridiculously stupid but I wish to have multiple menus on the same page, but not load them from external files (the html structure of the menu already exists on the page).
To me the only place you define what menu is linked to the element you call buildMenu on is the 'template' construction which is a external file.
Thanks.
LEts say you have a normal textview, with "Stackoverflow" written in it, I would like to know if it it possible to rotate the textview about -90°, to have the S at the bottom and the W at the top of the screen?
of course, i could write my text in an image, rotate it and use it that way, but im interested in text right now.
thank you
The site im working on is an Ajax enabled ASP.net/C# project and i have a URL like this:
http://localhost:2531/(S(lfcvqc55wkabpp55o1x4pvq5))/Logon.aspx
How do you get rid of the (S(lfcvqc55wkabpp55o1x4pvq5)) portion of the URL? I have a feeling its a web.config parameter however I'm not really sure what you call this part, GUID, Session ID?
i need to get images from a webpage source.
i can use cfhttp method get and use htmleditformat() to read the html from that page, now i need to loop through the content to get all image url's(src)
can i use rematch() or refind() etc... and if yes how??
please help!!!!!
if im not clear i can try to clarify..
(im new to java)
from my searches for Serialization in Java most of the examples document writing to a file or reading from one.
my question is lets say i have a serializable class AppMessage.
I would like to transmit it as byte[] over sockets to another machine where it is rebuilt from bytes received.
how could i achieve this please?
thanks for your insight in advance.
I want to read a rectangular area, or just one pixel from my screen. As if screenshot button was pressed, but it wouldnt copy the whole screen necessary. So im not talking just about my own program window pixels.
How i do this?
Hey,
Currently i try to create some of my database export work more automated and i decided to go with exporting data from MySql database to .doc file in php.
So im doing some database work and store complete html to a $str variable and then write/make new file:
$fp = fopen($file, 'w+');
fwrite($fp,$str);
fclose($fp);
The problem here is not creating .doc file, but when i download and view that .doc file it's not in UTF-8 it's in unicode.
Hey im new to database design and having trouble trying to figure this one out. I have two tables Team and Fixtures. Team has rows of football teams and Fixture has 2 of those football teams in each row (home and away team). I want to link team id to home_team and away_team but it doesnt allow me to. Please tell me how i can solve this.
Here is an image of my tables/relationships
http://i49.tinypic.com/288qwpg.jpg
right now c++ is giving me this error: error C2087 'color' missing subscript first time i get this and i dont know what to do .< hope any1 can help me
struct Color{
float r;
float g;
float b;
};Color color[][];
and im using it here
for(int i=0;i<cubes;i++)
{
color[i][0].r = fRand();color[i][0].g=fRand(.5);color[i][0].b=fRand();
...etc
im using asp.net c#.
I want to check if the current url has anything after the domain name.
e.g for the if the current url
www.example.com/
or
www.example.com
i want to set a bool to true.
if it has anything after i want to set it to false. e.g.
www.example.com/stuff
should return false.
I am learning HTML and I have a good book to learn with but my cousin told me that I should pick a fun project to learn how to program but im not sure what I should do.
what is the most fun project to do when you are learning HTML?
Sorry I dont know the correct terminology to use but I have a 3x3 matrix like this
1 3 4
5 4 5
2 2 5
and I want get the highest score by picking a value from each row/column but I cant pick the same row or column more than once , so the answer in this case is
3 + 5 + 5 = 13 (row0,col1 + row1,col0 + row2,col2)
4 + 5 + 5 = 14 is not allowed because would have picked two values from col2
I'm using Java, and typically the matrix would be 15 by 15 in size.
Is there a name for what Im trying to do, and whats the algorithm
thanks Paul
Hi everybody,
My issue is as follows :
I have stored a few pictures into the sqlite database, using the blob format, which seems to work ok. now i want to get my pictures out of the DB and put then back into images... to complicate the matter, their format is variable (png, jpg, maybe something else, im not sure)
Is there a way of doing so in android?
thank you
im curious as to know, why tests are written? why would bother writing it ? why not just compile and run the code or view it in your browser, click around and test out stuff.
i mean i can understand, a crawler that checks your web app's functions....but why is tests written, maintained and treated as important as the main feature codes ? is it crucial to always write and use tests ?
Hello
I have this problem when I do an ajaxrequest that I lose my onchange events from
my inputfields. Well I have done this function that would reinit the events to those inputs
but Im not sure if that is the best way to do it..
Hi guys i have a table with shifts history along with emp ids
im using this code to retrieve a list of employees and their total shifts by specifying the range to count from:
SELECT ope_id, count(ope_id)
FROM operator_shift
WHERE ope_shift_date >=to_date( '01-MAR-10','dd-mon-yy') and ope_shift_date
<= to_date('31-MAR-10','dd-mon-yy')
GROUP BY OPE_ID
which gives
OPE_ID COUNT(OPE_ID)
1 14
2 7
3 6
4 6
5 2
6 5
7 2
8 1
9 2
10 4
10 rows selected.
NOW how do i choose the employee with the highest no of shifts under the specified range date, please this is really important
Hi,
at the moment im trying to figure out how i can manage to play a wave file in C# by filling up the secondary buffer with data from the wave file through threading and then play the wave file.
Any help or sample coding i can use?
thanks
Hello everyone
I have been coding procedural php for a while and I feel I got a pretty good hang of it.
I feel like learning something new. Any ideas on what is good/hot to know?
I have read some about zend mvc and it seems interesting, but im not sure..
I feel like procedural php is so unorganized and hard to debug when the project grows big.
help me out thanks
Im currently working on the GUI for an ASP.NET MVC application using Visual Studio 2005. The visual webpage designer (for the views) is awful.
Any input on what other people use would be most appreciated!