PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
5,843,667
04/30/2011 18:04:24
257,530
01/23/2010 19:31:51
733
48
format of bin files
is there format of bin files used by flasher?
binary
null
null
null
null
04/30/2011 18:26:26
not a real question
format of bin files === is there format of bin files used by flasher?
1
7,584,178
09/28/2011 13:41:00
969,172
09/28/2011 13:24:42
1
0
Dynamically create more than one instance of class and reference it
I want to dynamically create more than one instance of the BindingSource class to be public throughout my Form. If I use Dim o As Object = Activator.CreateInstance(GetType(BindingSource)) it will only create one instance of this class. How can I create multiple instances of this class and reference them uniquely. The number of instances needed is not known at design time, so I cannot do Dim o1 As Object = Activator.CreateInstance(GetType(BindingSource)) Dim o2 As Object = Activator.CreateInstance(GetType(BindingSource)) Dim o3 As Object = Activator.CreateInstance(GetType(BindingSource)) I hope I make sense... Regards Marius
oop
class
object
dynamic
null
null
open
Dynamically create more than one instance of class and reference it === I want to dynamically create more than one instance of the BindingSource class to be public throughout my Form. If I use Dim o As Object = Activator.CreateInstance(GetType(BindingSource)) it will only create one instance of this class. How can I create multiple instances of this class and reference them uniquely. The number of instances needed is not known at design time, so I cannot do Dim o1 As Object = Activator.CreateInstance(GetType(BindingSource)) Dim o2 As Object = Activator.CreateInstance(GetType(BindingSource)) Dim o3 As Object = Activator.CreateInstance(GetType(BindingSource)) I hope I make sense... Regards Marius
0
7,236,653
08/29/2011 22:17:55
482,473
10/21/2010 02:30:33
168
0
Ads reducing by more than half on Iphone?
For some odd season, the Ads, either IADs, or from ADmob not showing as often as it used to on my apps on IPhone. The number dropped by more than half. Obviously my revenue is tanking result of that, what could go wrong?
iphone
null
null
null
null
12/01/2011 00:53:23
off topic
Ads reducing by more than half on Iphone? === For some odd season, the Ads, either IADs, or from ADmob not showing as often as it used to on my apps on IPhone. The number dropped by more than half. Obviously my revenue is tanking result of that, what could go wrong?
2
4,774,734
01/23/2011 15:58:44
305,813
03/31/2010 08:24:06
149
6
how to build wcf notification service
I have this situation: I have some wcf services which do stuffs, and have wcf RegistryService which enables me to get data about people, addresses etc. The client application is a silverlight 4 application. I want this: that every time a client application updates a Registry (a person or an address) the service sends a change notification to all connected clients that the registry has changed. how to do that? thanks.
silverlight-4.0
wcf
notifications
null
null
null
open
how to build wcf notification service === I have this situation: I have some wcf services which do stuffs, and have wcf RegistryService which enables me to get data about people, addresses etc. The client application is a silverlight 4 application. I want this: that every time a client application updates a Registry (a person or an address) the service sends a change notification to all connected clients that the registry has changed. how to do that? thanks.
0
8,725,002
01/04/2012 10:04:36
300,372
03/23/2010 22:41:17
215
4
WPF text that follows / clips to a shape?
Ok, so I know how to clip text to a particular geometry, however the text doesn't automatically wrap based on the clip so how does one go about achieving an effect similar to the one shown below, given that you have the "tick" as a geometry / path? Is it a case of manually adding text boxes that fit for each line and then splitting the text based on what will / will not fit? ![Example image][1] [1]: http://i.stack.imgur.com/Xuw3V.gif
c#
wpf
text
textbox
textblock
null
open
WPF text that follows / clips to a shape? === Ok, so I know how to clip text to a particular geometry, however the text doesn't automatically wrap based on the clip so how does one go about achieving an effect similar to the one shown below, given that you have the "tick" as a geometry / path? Is it a case of manually adding text boxes that fit for each line and then splitting the text based on what will / will not fit? ![Example image][1] [1]: http://i.stack.imgur.com/Xuw3V.gif
0
7,198,125
08/25/2011 22:51:49
913,090
08/25/2011 22:51:49
1
0
How do I put string at the end of every line? (Python)
Hello I am fairly new to Python and I am wondering how could I add " Hello " to the end of every line Example: Super Cool Fun Output: Super Hello Cool Hello Fun Hello
python
string
null
null
null
08/26/2011 00:00:50
not a real question
How do I put string at the end of every line? (Python) === Hello I am fairly new to Python and I am wondering how could I add " Hello " to the end of every line Example: Super Cool Fun Output: Super Hello Cool Hello Fun Hello
1
10,525,044
05/09/2012 22:32:22
1,219,956
02/20/2012 00:27:35
1
0
How to rotate an object in 3D (along 3 axes) the proper way [tutorial]
ok this isnt actually a question, but i couldnt find any tutorials online that showed this method of rotating an object in 3D. so here is a mini tutorial on how to do it efficiently and properly. (because it took me a long time to get it right) OK so if your doing any sort of openGL or DirectX or something that requires rotating an object in 3D, you will come across a problem where you cant rotate an object properly. what i mean by properly is that when the object rotates, the axes seem to rotate with it, and your rotation looks odd/is wrong. since ive been doing iphone development, im going to show you this in opengl and objective c. step1: create an Up, Front and Right vector for your object, these will point to the front, right and upward direction of your object, so initialise them like so self.right = GLKVector3Make(1, 0, 0); self.up = GLKVector3Make(0, 1, 0); self.front = GLKVector3Make(0, 0, 1); step 2: setup some methods to do rotations on these vectors, you would need 3 methods like this to do each axis, this is just the X axis. - (void) rotateXInDegrees:(float)rot{ GLKMatrix3 temp = GLKMatrix3MakeRotation(GLKMathDegreesToRadians(rot), 1, 0, 0); self.right = GLKMatrix3MultiplyVector3(temp, self.right); self.up = GLKMatrix3MultiplyVector3(temp, self.up); self.front = GLKMatrix3MultiplyVector3(temp, self.front); } step 3: here is the elegant part, in your update method basically copy paste this matrix (in the code its flipped to what it actually is in mathematical terms, but thats how the parameters for this matrix function are set out) mvm = GLKMatrix4Make(self.right.x, self.right.y, self.right.z, 0, self.up.x, self.up.y, self.up.z, 0, self.front.x, self.front.y, self.front.z, 0, self.position.x, self.position.y, self.position.z, 1); you can leave out the position vector in that matrix if you dont plan on moving the object, just replace it with 0's. the reason for this matrix is explained here: http://www.songho.ca/opengl/gl_anglestoaxes.html this matrix will orient your object according to the vectors you have setup and throw in a translation for free! step4: multiply this matrix with you modelview matrix in your draw function self.effect.transform.modelviewMatrix = GLKMatrix4Multiply(self.modelViewMatrix, mvm); here mvm is your objects modelViewMatrix and self.modelViewMatrix is your global (or camera) modelViewMatrix and thats it! just use the functions you made to do rotations and this magic matrix will take care of all your rotational needs. there is of course quaternions but those are difficult to understand. maybe someone else can write a simple quaternion tutorial in reply to this.
opengl
3d
directx
rotation
guide
05/09/2012 23:07:21
not a real question
How to rotate an object in 3D (along 3 axes) the proper way [tutorial] === ok this isnt actually a question, but i couldnt find any tutorials online that showed this method of rotating an object in 3D. so here is a mini tutorial on how to do it efficiently and properly. (because it took me a long time to get it right) OK so if your doing any sort of openGL or DirectX or something that requires rotating an object in 3D, you will come across a problem where you cant rotate an object properly. what i mean by properly is that when the object rotates, the axes seem to rotate with it, and your rotation looks odd/is wrong. since ive been doing iphone development, im going to show you this in opengl and objective c. step1: create an Up, Front and Right vector for your object, these will point to the front, right and upward direction of your object, so initialise them like so self.right = GLKVector3Make(1, 0, 0); self.up = GLKVector3Make(0, 1, 0); self.front = GLKVector3Make(0, 0, 1); step 2: setup some methods to do rotations on these vectors, you would need 3 methods like this to do each axis, this is just the X axis. - (void) rotateXInDegrees:(float)rot{ GLKMatrix3 temp = GLKMatrix3MakeRotation(GLKMathDegreesToRadians(rot), 1, 0, 0); self.right = GLKMatrix3MultiplyVector3(temp, self.right); self.up = GLKMatrix3MultiplyVector3(temp, self.up); self.front = GLKMatrix3MultiplyVector3(temp, self.front); } step 3: here is the elegant part, in your update method basically copy paste this matrix (in the code its flipped to what it actually is in mathematical terms, but thats how the parameters for this matrix function are set out) mvm = GLKMatrix4Make(self.right.x, self.right.y, self.right.z, 0, self.up.x, self.up.y, self.up.z, 0, self.front.x, self.front.y, self.front.z, 0, self.position.x, self.position.y, self.position.z, 1); you can leave out the position vector in that matrix if you dont plan on moving the object, just replace it with 0's. the reason for this matrix is explained here: http://www.songho.ca/opengl/gl_anglestoaxes.html this matrix will orient your object according to the vectors you have setup and throw in a translation for free! step4: multiply this matrix with you modelview matrix in your draw function self.effect.transform.modelviewMatrix = GLKMatrix4Multiply(self.modelViewMatrix, mvm); here mvm is your objects modelViewMatrix and self.modelViewMatrix is your global (or camera) modelViewMatrix and thats it! just use the functions you made to do rotations and this magic matrix will take care of all your rotational needs. there is of course quaternions but those are difficult to understand. maybe someone else can write a simple quaternion tutorial in reply to this.
1
10,386,882
04/30/2012 16:13:25
371,184
06/19/2010 18:53:20
287
13
Sorting DataGridView by Column DisplayMember
I have a `DataGridView` with a few `DataGridViewComboBoxColumn`'s where the actual value is tied to an ID but the `DisplayMember` is the string counterpart in a lookup table. I'm trying to make it so when I sort by that column then the sort is done based on the `DisplayMember`, not the `ValueMember`. I know this was addressed in [this question][1] but the answer was less than in depth nor did I understand it. What I've tried thus far - Binding to the `SortCompare` event but discovered it isn't fired on a databound column. - Manually sorting on the `ColumnHeaderMouseClick` event but rows in a `DataGridViewRowCollection` are read-only and I can't programatically insert rows (while swapping) on a databound collection. - Creating a hidden `DataGridViewTextBoxColumn` where the cells are automatically set to the `DisplayMember` of the original column then attempting to sort that column instead. However, a databound collection cannot be sorted based on an unbounded column. **TL;DR** How can I sort a `DataGridView` based on the `DisplayMember` of a databound `DataGridViewComboBoxColumn`? [1]: http://stackoverflow.com/q/2895849/371184
c#
database
winforms
null
null
null
open
Sorting DataGridView by Column DisplayMember === I have a `DataGridView` with a few `DataGridViewComboBoxColumn`'s where the actual value is tied to an ID but the `DisplayMember` is the string counterpart in a lookup table. I'm trying to make it so when I sort by that column then the sort is done based on the `DisplayMember`, not the `ValueMember`. I know this was addressed in [this question][1] but the answer was less than in depth nor did I understand it. What I've tried thus far - Binding to the `SortCompare` event but discovered it isn't fired on a databound column. - Manually sorting on the `ColumnHeaderMouseClick` event but rows in a `DataGridViewRowCollection` are read-only and I can't programatically insert rows (while swapping) on a databound collection. - Creating a hidden `DataGridViewTextBoxColumn` where the cells are automatically set to the `DisplayMember` of the original column then attempting to sort that column instead. However, a databound collection cannot be sorted based on an unbounded column. **TL;DR** How can I sort a `DataGridView` based on the `DisplayMember` of a databound `DataGridViewComboBoxColumn`? [1]: http://stackoverflow.com/q/2895849/371184
0
1,590,219
10/19/2009 18:10:32
87,979
04/07/2009 07:59:09
1,377
54
url builder for python
I know about `urllib` and `urlparse`, but I want to make sure I wouldn't be reinventing the wheel. My problem is that I am going to be fetching a bunch of urls from the same domain via the `urllib` library. I basically want to be able to generate urls to use (as strings) with different paths and query params. I was hoping that something might have a syntax like: url_builder = UrlBuilder("some.domain.com") # should give me "http://some.domain.com/blah?foo=bar url_i_need_to_hit = url_builder.withPath("blah").withParams("foo=bar") # maybe a ".build()" after this Basically I want to be able to store defaults that get passed to `urlparse.urlunsplit` instead of constantly clouding up the code by passing in the whole tuple every time. Does something like this exist? Do people agree it's worth throwing together?
python
url
null
null
null
null
open
url builder for python === I know about `urllib` and `urlparse`, but I want to make sure I wouldn't be reinventing the wheel. My problem is that I am going to be fetching a bunch of urls from the same domain via the `urllib` library. I basically want to be able to generate urls to use (as strings) with different paths and query params. I was hoping that something might have a syntax like: url_builder = UrlBuilder("some.domain.com") # should give me "http://some.domain.com/blah?foo=bar url_i_need_to_hit = url_builder.withPath("blah").withParams("foo=bar") # maybe a ".build()" after this Basically I want to be able to store defaults that get passed to `urlparse.urlunsplit` instead of constantly clouding up the code by passing in the whole tuple every time. Does something like this exist? Do people agree it's worth throwing together?
0
8,998,053
01/25/2012 05:00:44
275,581
02/17/2010 20:35:17
1,141
46
Can I get Jersey to use natural JSON notation globally/as default?
I'm using Jersey to build a REST API to a service. I'd like to be able to accept and return both JSON and XML, and have this mostly working but I don't like the default "mapped" flavor of JSON that Jersey likes to spit out. I know about the newer "natural" notation (from http://jersey.java.net/nonav/documentation/latest/json.html, which I'll quote at length because it makes obvious the problems with the default "mapped" notation): > After using mapped JSON notation for a while, it was apparent, that a > need to configure all the various things manually could be a bit > problematic. To avoid the manual work, a new, natural, JSON notation > was introduced in Jersey version 1.0.2. With natural notation, Jersey > will automatically figure out how individual items need to be > processed, so that you do not need to do any kind of manual > configuration. Java arrays and lists are mapped into JSON arrays, even > for single-element cases. Java numbers and booleans are correctly > mapped into JSON numbers and booleans, and you do not need to bother > with XML attributes, as in JSON, they keep the original names and would like to use it everywhere, but I haven't been able to figure out how to. I'm instantiating/configuring Jersey via Tomcat's XML config files -- using what I believe is the normal dance with servlet/servlet-class/init-param tags -- but I haven't been able to find documentation on whether or how it's possible to specify JSONConfiguration options from there. I've also tried implementing my own ContextResolver which applies a JSONJAXBContext I instantiated from Java code, where I can apply JSONConfiguration.natural() (an example of this looks like [this answer](http://stackoverflow.com/a/2877953/275581)). This works, but only for types I explicitly list out in that code, and pass to the JSONJAXBContext constructor. Not only is this extra code to write and maintain, and change if I add more data classes, but it doesn't work for things like List<Foo>. Is there a way to tell Jersey to just use the natural notation instead of mapped notation, always and for all types?
java
json
jersey
jax-rs
null
null
open
Can I get Jersey to use natural JSON notation globally/as default? === I'm using Jersey to build a REST API to a service. I'd like to be able to accept and return both JSON and XML, and have this mostly working but I don't like the default "mapped" flavor of JSON that Jersey likes to spit out. I know about the newer "natural" notation (from http://jersey.java.net/nonav/documentation/latest/json.html, which I'll quote at length because it makes obvious the problems with the default "mapped" notation): > After using mapped JSON notation for a while, it was apparent, that a > need to configure all the various things manually could be a bit > problematic. To avoid the manual work, a new, natural, JSON notation > was introduced in Jersey version 1.0.2. With natural notation, Jersey > will automatically figure out how individual items need to be > processed, so that you do not need to do any kind of manual > configuration. Java arrays and lists are mapped into JSON arrays, even > for single-element cases. Java numbers and booleans are correctly > mapped into JSON numbers and booleans, and you do not need to bother > with XML attributes, as in JSON, they keep the original names and would like to use it everywhere, but I haven't been able to figure out how to. I'm instantiating/configuring Jersey via Tomcat's XML config files -- using what I believe is the normal dance with servlet/servlet-class/init-param tags -- but I haven't been able to find documentation on whether or how it's possible to specify JSONConfiguration options from there. I've also tried implementing my own ContextResolver which applies a JSONJAXBContext I instantiated from Java code, where I can apply JSONConfiguration.natural() (an example of this looks like [this answer](http://stackoverflow.com/a/2877953/275581)). This works, but only for types I explicitly list out in that code, and pass to the JSONJAXBContext constructor. Not only is this extra code to write and maintain, and change if I add more data classes, but it doesn't work for things like List<Foo>. Is there a way to tell Jersey to just use the natural notation instead of mapped notation, always and for all types?
0
6,795,407
07/22/2011 19:58:05
389,122
07/12/2010 01:23:57
198
2
What are the best practices for node.js?
I've been coding in node for a while, and often I wonder if the way I'm doing things are right/efficient. I'm sure there are many like me, so it would be awesome if experienced coders can enlighten us with some general node.js best practices. Thanks!
node.js
null
null
null
null
07/23/2011 01:01:22
not constructive
What are the best practices for node.js? === I've been coding in node for a while, and often I wonder if the way I'm doing things are right/efficient. I'm sure there are many like me, so it would be awesome if experienced coders can enlighten us with some general node.js best practices. Thanks!
4
10,682,735
05/21/2012 09:33:22
1,362,323
04/28/2012 03:24:35
3
1
JPA - using long array in IN operator throws cast exception
am new to JPA and am able to get it quickly, I had been trying a select query using "IN" operator in the query and had been getting the error as down. What I do is, i get a array of (long) message ids from a function and i use it to select the record based on those ids. Here is my query select t from MessageTable t where t.messageId IN (:id) query.setParameter("id", id); I had just shown you part of the code, in entity messageId is long and in Oracle DB its number. When i try as just as long variable it works, it doesn't seem to work when i pass long array. Had any one come across such a problem can some one help out. This is the error > 14:24:49,428 INFO [LongType] could not bind value '[J@14f76da' to > parameter: 1; [J cannot be cast to java.lang.Long
hibernate
jpa
jpa-2.0
null
null
null
open
JPA - using long array in IN operator throws cast exception === am new to JPA and am able to get it quickly, I had been trying a select query using "IN" operator in the query and had been getting the error as down. What I do is, i get a array of (long) message ids from a function and i use it to select the record based on those ids. Here is my query select t from MessageTable t where t.messageId IN (:id) query.setParameter("id", id); I had just shown you part of the code, in entity messageId is long and in Oracle DB its number. When i try as just as long variable it works, it doesn't seem to work when i pass long array. Had any one come across such a problem can some one help out. This is the error > 14:24:49,428 INFO [LongType] could not bind value '[J@14f76da' to > parameter: 1; [J cannot be cast to java.lang.Long
0
10,714,662
05/23/2012 06:35:20
1,048,630
11/15/2011 23:19:04
30
0
Sometimes it saves sometimes not in Django
i have a problem in this method when i try to call it from another file it saves perfectly in the db and the values are updated (the points are added to the contractor) but i don't understand how when i call it in another file (other than the first one ) it only save the value inside the method but once it was out of the method the value wasn't saved it returned back (checked by printing ) contractor = Contractor.objects.get(id=contractor_id) action = Action.objects.get(name=action_name) toBeAdded = action.points totalPoints = contractor.points+toBeAdded contractor.points = totalPoints contractor.save()
python
django
django-models
django-views
python-2.7
null
open
Sometimes it saves sometimes not in Django === i have a problem in this method when i try to call it from another file it saves perfectly in the db and the values are updated (the points are added to the contractor) but i don't understand how when i call it in another file (other than the first one ) it only save the value inside the method but once it was out of the method the value wasn't saved it returned back (checked by printing ) contractor = Contractor.objects.get(id=contractor_id) action = Action.objects.get(name=action_name) toBeAdded = action.points totalPoints = contractor.points+toBeAdded contractor.points = totalPoints contractor.save()
0
4,057,919
10/30/2010 08:38:39
388,388
07/10/2010 10:12:11
487
53
How to add a number to its own index
I will have a number which was taken as input from the use or i am storing a number assigned to a string as string s"1234567"; As for this the index of each string will be as 0,1,2,3,4 and so on I would like to add the number with that index as 1+0, 2+1 , 3+2 and so on like that
c#
null
null
null
null
10/31/2010 01:06:53
not a real question
How to add a number to its own index === I will have a number which was taken as input from the use or i am storing a number assigned to a string as string s"1234567"; As for this the index of each string will be as 0,1,2,3,4 and so on I would like to add the number with that index as 1+0, 2+1 , 3+2 and so on like that
1
8,632,524
12/26/2011 01:57:58
1,115,753
12/26/2011 01:46:03
1
0
Anyone know any good PHP totorials for a total newbie
Iam totally new to php but really want to learn and will learn. I' m not going to give up i have been learning from these tutorials http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/ http://www.homeandlearn.co.uk/php/php2p3.html I understand quite well till it gets to arrays and loops and if else. I understand the if else concept. Id like to find tutorials that show in more real world cases. My ultimate goal for myself in the next two months is to build a MySQL / PHP shopping cart..with a back-end for me the admin a front end and a Place for users to sign into there account. So id like to get tutorials..that teach you while your building some sort of website. That way you can learn WHY not just rules. Like a real world sort of thing. And not just echo hi this is my dumb dumb script. Also if you know php well how long did it take you to get a good grasp on it and feel comfortable? Also please note iam willing to pay for a good totrial if it is really good but id like to stick to free ones till i get better..I also need to learn mysql... I want this so i can learn how you structure a php mysql site while i learn php..Thank you for any advice. Merry Christmas all happy coding.
php
mysql
web-applications
null
null
12/26/2011 02:49:37
not a real question
Anyone know any good PHP totorials for a total newbie === Iam totally new to php but really want to learn and will learn. I' m not going to give up i have been learning from these tutorials http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/ http://www.homeandlearn.co.uk/php/php2p3.html I understand quite well till it gets to arrays and loops and if else. I understand the if else concept. Id like to find tutorials that show in more real world cases. My ultimate goal for myself in the next two months is to build a MySQL / PHP shopping cart..with a back-end for me the admin a front end and a Place for users to sign into there account. So id like to get tutorials..that teach you while your building some sort of website. That way you can learn WHY not just rules. Like a real world sort of thing. And not just echo hi this is my dumb dumb script. Also if you know php well how long did it take you to get a good grasp on it and feel comfortable? Also please note iam willing to pay for a good totrial if it is really good but id like to stick to free ones till i get better..I also need to learn mysql... I want this so i can learn how you structure a php mysql site while i learn php..Thank you for any advice. Merry Christmas all happy coding.
1
5,882,333
05/04/2011 10:58:36
106,435
05/13/2009 16:09:12
4,541
249
Good tutorials and resources for openstack
I am searching for simple tutorials and other resources for openstack. I am new to cloud programming and want to research, if openstack could be used in my company.
openstack
null
null
null
null
03/09/2012 20:26:05
not constructive
Good tutorials and resources for openstack === I am searching for simple tutorials and other resources for openstack. I am new to cloud programming and want to research, if openstack could be used in my company.
4
7,621,418
10/01/2011 16:16:05
577,875
01/16/2011 22:40:04
1
0
Game Development (for learning)
I study Software Engineering, but we're not very far yet in terms of programming skills, and seeing I have some prior skills the whole C terminal/console programming can get a bit boring. Basicly all tasks so far at university is something in the lines of "Something X, make a computation algorithm that solves X based on Y user input and output the answer". I've been looking around on the web and seen the site GameDev, but I still feel like I miss a few more basic things. I've never touched game development, but I'd like to get started from scratch (preferebly in C seeing it's the semester language), nothing fancy just some top-view game or basic 3d game where I can toy with things. Alternatively some C# stuff could be used too (next semesters language), but really anything will do! :) Any resources would be greatly appreciated, especially resources which focus on the initial stuff, but expect general programming knowledge.
c
null
null
null
null
10/01/2011 16:25:37
not constructive
Game Development (for learning) === I study Software Engineering, but we're not very far yet in terms of programming skills, and seeing I have some prior skills the whole C terminal/console programming can get a bit boring. Basicly all tasks so far at university is something in the lines of "Something X, make a computation algorithm that solves X based on Y user input and output the answer". I've been looking around on the web and seen the site GameDev, but I still feel like I miss a few more basic things. I've never touched game development, but I'd like to get started from scratch (preferebly in C seeing it's the semester language), nothing fancy just some top-view game or basic 3d game where I can toy with things. Alternatively some C# stuff could be used too (next semesters language), but really anything will do! :) Any resources would be greatly appreciated, especially resources which focus on the initial stuff, but expect general programming knowledge.
4
7,122,431
08/19/2011 13:41:05
830,891
07/06/2011 04:52:00
46
1
case statement logic
i hve a table something like st.No index.no itemid roll.no name counter with the doc 1 A 0074 101 aaa 1234 1 B 0075 101 aaa 1234 2 A 0076 102 bbb 1235 3 C 0078 103 ccc 1236 4 D 1179 104 ddd 1237 there is one more table called habits id index.no propID social_id habit date 1 A 101 10789 smoking 06/21/2011 1 B 102 10789 drinking 06/21/2011 2 A 102 10789 smoking regularly 08/14/2011 1 A 101 10789 smoking 07/21/2011 3 C 101 1079 smoking It is somthing similar but its complex in my senario. Now i have a case statement for all the students i have to find the smoking and drinking records. case when habit like ' smoking' then '778' when habit like 'not smoking' thebn '779' when isnull(cast(s.value as varchar(max)),''_=='') then '790' else '790' Now how can i achieve for each interaction with the doctor if the doc checked for the smoking then the value will go to one of the following bucket. suppose a doc dont check the smoking for each date of visit then it sill should go to the else bucket. I am using a left join between the tables to get all the students records. How can i get those students who visited the doctor and the doc didnt record any habit.
tsql
case
null
null
null
08/20/2011 00:53:23
not a real question
case statement logic === i hve a table something like st.No index.no itemid roll.no name counter with the doc 1 A 0074 101 aaa 1234 1 B 0075 101 aaa 1234 2 A 0076 102 bbb 1235 3 C 0078 103 ccc 1236 4 D 1179 104 ddd 1237 there is one more table called habits id index.no propID social_id habit date 1 A 101 10789 smoking 06/21/2011 1 B 102 10789 drinking 06/21/2011 2 A 102 10789 smoking regularly 08/14/2011 1 A 101 10789 smoking 07/21/2011 3 C 101 1079 smoking It is somthing similar but its complex in my senario. Now i have a case statement for all the students i have to find the smoking and drinking records. case when habit like ' smoking' then '778' when habit like 'not smoking' thebn '779' when isnull(cast(s.value as varchar(max)),''_=='') then '790' else '790' Now how can i achieve for each interaction with the doctor if the doc checked for the smoking then the value will go to one of the following bucket. suppose a doc dont check the smoking for each date of visit then it sill should go to the else bucket. I am using a left join between the tables to get all the students records. How can i get those students who visited the doctor and the doc didnt record any habit.
1
7,706,712
10/09/2011 21:35:53
980,430
10/05/2011 13:17:48
1
0
Fedora 15 , unable to install programmes
this is my first post, so lets get into it: my problem is with fedora 15 # uname -a Linux alienware 2.6.38.8-35.fc15.i686 #1 SMP Wed Jul 6 14:46:26 UTC 2011 i686 i686 i386 GNU/Linux and with installation of some programmes I have this kind of thing going on: Error: Package: mysql-server-5.5.10-2.fc15.i686 (fedora) Requires: mysql-libs(x86-32) = 5.5.10-2.fc15 Installed: mysql-libs-5.5.14-2.fc15.i686 (@updates) mysql-libs(x86-32) = 5.5.14-2.fc15 Available: mysql-libs-5.5.10-2.fc15.i686 (fedora) mysql-libs(x86-32) = 5.5.10-2.fc15 Error: Package: mysql-server-5.5.10-2.fc15.i686 (fedora) Requires: mysql(x86-32) = 5.5.10-2.fc15 Installed: mysql-5.5.14-2.fc15.i686 (@updates) mysql(x86-32) = 5.5.14-2.fc15 Available: mysql-5.5.10-2.fc15.i686 (fedora) mysql(x86-32) = 5.5.10-2.fc15 from the message it seems, that I am kind of ahead, but what to do with it, I encountered it also on many others, but this one is the most recent one and I desperately need this. Please someone help me to solve this. (I have tryed some things from the internet, but wont work at all... and reinstal is not the solution either.... what now ? :( )
mysql
package
fedora
null
null
10/09/2011 21:59:55
off topic
Fedora 15 , unable to install programmes === this is my first post, so lets get into it: my problem is with fedora 15 # uname -a Linux alienware 2.6.38.8-35.fc15.i686 #1 SMP Wed Jul 6 14:46:26 UTC 2011 i686 i686 i386 GNU/Linux and with installation of some programmes I have this kind of thing going on: Error: Package: mysql-server-5.5.10-2.fc15.i686 (fedora) Requires: mysql-libs(x86-32) = 5.5.10-2.fc15 Installed: mysql-libs-5.5.14-2.fc15.i686 (@updates) mysql-libs(x86-32) = 5.5.14-2.fc15 Available: mysql-libs-5.5.10-2.fc15.i686 (fedora) mysql-libs(x86-32) = 5.5.10-2.fc15 Error: Package: mysql-server-5.5.10-2.fc15.i686 (fedora) Requires: mysql(x86-32) = 5.5.10-2.fc15 Installed: mysql-5.5.14-2.fc15.i686 (@updates) mysql(x86-32) = 5.5.14-2.fc15 Available: mysql-5.5.10-2.fc15.i686 (fedora) mysql(x86-32) = 5.5.10-2.fc15 from the message it seems, that I am kind of ahead, but what to do with it, I encountered it also on many others, but this one is the most recent one and I desperately need this. Please someone help me to solve this. (I have tryed some things from the internet, but wont work at all... and reinstal is not the solution either.... what now ? :( )
2
4,494,922
12/20/2010 23:13:57
454,671
09/17/2010 04:17:12
87
1
Java algorithms
I am a server side Java programmer. In my recent job search, I have come across a few postings where they mention : ' Candidates with expereince in algorithm development will be preferred'. What exactly does this refer to? This is the posting for a Bank...so not a job for a research laboratory...just to clarify a bit. I asked my headhunter ...he does not have an idea about this. When we use Java in applications, we use the APIs that implement algorithms...so technically we are not developing algorithms. Right?
algorithm
null
null
null
null
12/21/2010 00:56:53
off topic
Java algorithms === I am a server side Java programmer. In my recent job search, I have come across a few postings where they mention : ' Candidates with expereince in algorithm development will be preferred'. What exactly does this refer to? This is the posting for a Bank...so not a job for a research laboratory...just to clarify a bit. I asked my headhunter ...he does not have an idea about this. When we use Java in applications, we use the APIs that implement algorithms...so technically we are not developing algorithms. Right?
2
4,802,628
01/26/2011 08:43:04
340,046
05/13/2010 08:02:38
93
10
Good Open Source Software to Analyse
I'm looking for an informative and important open source software product to do an investigation and analysis for my University project. What are some good open source projects to study on? I prefer something written in Java, C, C++ etc. Any recommendations?
java
c++
c
open-source
null
01/26/2011 10:29:40
not constructive
Good Open Source Software to Analyse === I'm looking for an informative and important open source software product to do an investigation and analysis for my University project. What are some good open source projects to study on? I prefer something written in Java, C, C++ etc. Any recommendations?
4
11,004,717
06/12/2012 20:53:49
1,359,182
04/26/2012 16:12:55
15
0
Conditional CSS for IE9 not working
In my website, I have a table of search results. It is center aligned in Firefox and Chrome but not IE9. I am using the following conditional CSS but apparently it is not working, it is still left aligned in IE9. <!--[if IE 9]> <style type="text/css"> .ie9fix { width: 75%; position: absolute; margin-left: auto; margin-right: auto; float: center; } </style> <![endif]--> What exactly do I need to change in my code to get the table center aligned?
css
internet-explorer
null
null
null
null
open
Conditional CSS for IE9 not working === In my website, I have a table of search results. It is center aligned in Firefox and Chrome but not IE9. I am using the following conditional CSS but apparently it is not working, it is still left aligned in IE9. <!--[if IE 9]> <style type="text/css"> .ie9fix { width: 75%; position: absolute; margin-left: auto; margin-right: auto; float: center; } </style> <![endif]--> What exactly do I need to change in my code to get the table center aligned?
0
10,080,625
04/09/2012 22:22:14
1,320,908
04/08/2012 23:42:03
1
0
Indexing data to search using tire elastic search
I am a beginer in tire and I need help! how can I index the data with an already existing application?
tire
null
null
null
null
04/11/2012 13:54:44
not a real question
Indexing data to search using tire elastic search === I am a beginer in tire and I need help! how can I index the data with an already existing application?
1
453,880
01/17/2009 19:33:16
2,044
08/19/2008 23:46:47
1,670
29
How many developers are there in the world?
What is the total number of software developers in the world? And to respond to the inevitable "How do you define a software developer?" -- I'll answer two ways: 1. Define it as "Anyone who writes code to make a computer do something he wants done". 2. Define it however you like and then answer the question References to studies or more authoritative sources of information would be greatly appreciated.
community
size
null
null
null
11/02/2011 21:44:43
off topic
How many developers are there in the world? === What is the total number of software developers in the world? And to respond to the inevitable "How do you define a software developer?" -- I'll answer two ways: 1. Define it as "Anyone who writes code to make a computer do something he wants done". 2. Define it however you like and then answer the question References to studies or more authoritative sources of information would be greatly appreciated.
2
5,105,577
02/24/2011 13:57:44
613,929
02/12/2011 04:41:30
56
1
alert before deleting sql databases through a winform application
I want that on a new installation of my .net winforms application, which uses sql server 2005 express , it would drop old databases if exist but before deleting them , it alerts that the databases are empty or not by showing a message box i.e. they contain tables or not , & then creates new databases. so whats the way to do this?
.net
sql
winforms
application
null
02/24/2011 19:58:44
not a real question
alert before deleting sql databases through a winform application === I want that on a new installation of my .net winforms application, which uses sql server 2005 express , it would drop old databases if exist but before deleting them , it alerts that the databases are empty or not by showing a message box i.e. they contain tables or not , & then creates new databases. so whats the way to do this?
1
7,986,744
11/02/2011 20:13:12
634,821
02/25/2011 20:24:45
428
12
Why is my code not compiling?
This is the method that gives me trouble: void A::normalizeUrls() { for (set<CUrl>::iterator it = _references.begin(); it != _references.end(); ++it) { if (it->isValid()) { auto curl_ref = it->normalize(); CUrl& curl_ref1 = it->makeFull(_baseUrl); } } } And here are CUrl::normalize and CUrl::makeFull CUrl& normalize (); CUrl& makeFull (CUrl&); And when I check the type of `curl_ref` - it's `CUrl`, not `CUrl&`. Why is that so, what am I missing? Thanks in advance!
c++
null
null
null
null
null
open
Why is my code not compiling? === This is the method that gives me trouble: void A::normalizeUrls() { for (set<CUrl>::iterator it = _references.begin(); it != _references.end(); ++it) { if (it->isValid()) { auto curl_ref = it->normalize(); CUrl& curl_ref1 = it->makeFull(_baseUrl); } } } And here are CUrl::normalize and CUrl::makeFull CUrl& normalize (); CUrl& makeFull (CUrl&); And when I check the type of `curl_ref` - it's `CUrl`, not `CUrl&`. Why is that so, what am I missing? Thanks in advance!
0
9,141,926
02/04/2012 15:24:54
273,456
02/15/2010 11:26:56
1,164
17
How to detect Android App that prevents phone from sleeping
I know this is not really a programming question, but please, if somebody knows the answer... I would be very happy! Since a few days, my Android phone (HTC Sensation) never goes to sleep anymore. Looking at Android 2.3 settings where you can see the battery details, I can see that the "Active" bar is completely SOLID - I definitely know that it used to be a bar with lots of fragmented smaller bars. Now: there MUST be an app that prevents the phone to go to sleep. But I cannot find a single answer using plain Google search as to how I can detect the malfunctioning app!! I am getting crazy, my standby time has been reduced to only a few hours - even in flight mode my battery drains constantly cause there is no sleep time any more! Does anybody know how to help?? THANKS!
android
application
sleep
battery
battery-usage
null
open
How to detect Android App that prevents phone from sleeping === I know this is not really a programming question, but please, if somebody knows the answer... I would be very happy! Since a few days, my Android phone (HTC Sensation) never goes to sleep anymore. Looking at Android 2.3 settings where you can see the battery details, I can see that the "Active" bar is completely SOLID - I definitely know that it used to be a bar with lots of fragmented smaller bars. Now: there MUST be an app that prevents the phone to go to sleep. But I cannot find a single answer using plain Google search as to how I can detect the malfunctioning app!! I am getting crazy, my standby time has been reduced to only a few hours - even in flight mode my battery drains constantly cause there is no sleep time any more! Does anybody know how to help?? THANKS!
0
2,218,100
02/07/2010 19:59:30
180,581
09/28/2009 17:23:15
144
3
Error avalanche in Boost.Spirit.Qi usage
I'm not being able to figure out what's wrong with my code. Boost's templates are making me go crazy! I can't make heads or tails out of all this, so I just had to ask. What's wrong with this? #include <iostream> #include <boost/lambda/lambda.hpp> #include <boost/spirit/include/qi.hpp> void parsePathTest(const std::string &path) { namespace lambda = boost::lambda; using namespace boost::spirit; const std::string permitted = "._\\-#@a-zA-Z0-9"; const std::string physicalPermitted = permitted + "/\\\\"; const std::string archivedPermitted = permitted + ":{}"; std::string physical,archived; // avoids reference to rvalue (any guesses why std::move doesn't work here?) std::string::const_iterator begin = path.begin(),end = path.end(); // splits a string like "some/nice-path/while_checking:permitted#symbols.bin" // as physical = "some/nice-path/while_checking" // and archived = "permitted#symbols.bin" (if this portion exists) // I could barely find out the type for this expression auto expr = ( +char_(physicalPermitted) ) [lambda::var(physical) = lambda::_1] >> -( ':' >> ( +char_(archivedPermitted) [lambda::var(archived) = lambda::_1] ) ) ; // the error occurs in a template instantiated from here qi::parse(begin,end,expr); std::cout << physical << '\n' << archived << '\n'; } The number of errors is immense; I would suggest people who want to help compiling this on their on (trust me, pasting here is unpractical). I am using the latest TDM-GCC version (GCC 4.4.1) and Boost version 1.39.00. As a bonus, I would like to ask another two things: whether C++0x's new `static_assert` functionality will help Boost in this sense, and whether the implementation I've quoted above is a good idea, or if I should use Boost's String Algorithms library. Would the latter likely give a much better performance? Thanks.
boost-spirit
c++0x
null
null
null
null
open
Error avalanche in Boost.Spirit.Qi usage === I'm not being able to figure out what's wrong with my code. Boost's templates are making me go crazy! I can't make heads or tails out of all this, so I just had to ask. What's wrong with this? #include <iostream> #include <boost/lambda/lambda.hpp> #include <boost/spirit/include/qi.hpp> void parsePathTest(const std::string &path) { namespace lambda = boost::lambda; using namespace boost::spirit; const std::string permitted = "._\\-#@a-zA-Z0-9"; const std::string physicalPermitted = permitted + "/\\\\"; const std::string archivedPermitted = permitted + ":{}"; std::string physical,archived; // avoids reference to rvalue (any guesses why std::move doesn't work here?) std::string::const_iterator begin = path.begin(),end = path.end(); // splits a string like "some/nice-path/while_checking:permitted#symbols.bin" // as physical = "some/nice-path/while_checking" // and archived = "permitted#symbols.bin" (if this portion exists) // I could barely find out the type for this expression auto expr = ( +char_(physicalPermitted) ) [lambda::var(physical) = lambda::_1] >> -( ':' >> ( +char_(archivedPermitted) [lambda::var(archived) = lambda::_1] ) ) ; // the error occurs in a template instantiated from here qi::parse(begin,end,expr); std::cout << physical << '\n' << archived << '\n'; } The number of errors is immense; I would suggest people who want to help compiling this on their on (trust me, pasting here is unpractical). I am using the latest TDM-GCC version (GCC 4.4.1) and Boost version 1.39.00. As a bonus, I would like to ask another two things: whether C++0x's new `static_assert` functionality will help Boost in this sense, and whether the implementation I've quoted above is a good idea, or if I should use Boost's String Algorithms library. Would the latter likely give a much better performance? Thanks.
0
6,027,882
05/17/2011 07:56:27
756,947
05/17/2011 07:56:27
1
0
Registry editor with win api visual c++
I'm Study in university and i have a sentence about aplication witch can wiew and edit the registry keys. I have found the half of this aplication its just wiewing the registry, but i need to edit its keys like regedit windows default program. the folowing link of this apllication is http://www41.zippyshare.com/v/21547426/file.html and the folowing code of dlg : // RegViewDlg.cpp : implementation file // #include "stdafx.h" #include "RegView.h" #include "RegViewDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif char *pTITLE[] = {" Name "," Type "," Value "}; /*typedef struct tagREGINFO { DWORD dwTYPE; DWORD dwVALUE; DWORD dwCOUNT; char sTITLE[MAX_PATH]; } REGINFO;*/ struct { HKEY hKey; LPCSTR name; } REGROOTS [] = { { HKEY_CLASSES_ROOT ,"HKEY_CLASSES_ROOT" }, { HKEY_CURRENT_USER ,"HKEY_CURRENT_USER" }, { HKEY_LOCAL_MACHINE ,"HKEY_LOCAL_MACHINE" }, { HKEY_USERS ,"HKEY_USERS" }, // { HKEY_PERFORMANCE_DATA ,"HKEY_PERFORMANCE_DATA"}, { HKEY_CURRENT_CONFIG ,"HKEY_CURRENT_CONFIG" }, // { HKEY_DYN_DATA ,"HKEY_DYN_DATA" }, { 0, NULL}, }; /*REGINFO * GetRegList(HKEY hKey, CString sName, bool ENUM_KEYS); void SetTreeCtrlEntry(CTreeCtrl &m_tree, REGINFO *pINFO); void AddTreeItem(CTreeCtrl &m_tree, HTREEITEM hItem, REGINFO pINFO); char * GetItemPath(CTreeCtrl &m_tree, HTREEITEM hItem); char * SwapItemPath(char *chPath); char * GetRegKey(HKEY &hKey, CTreeCtrl &m_tree, HTREEITEM hItem); void SetListCtrlEntry(CListCtrl &m_tree, REGINFO *pINFO); void AddListItem(CListCtrl &m_list, REGINFO pINFO);*/ ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CRegViewDlg dialog CRegViewDlg::CRegViewDlg(CWnd* pParent /*=NULL*/) : CDialog(CRegViewDlg::IDD, pParent) { //{{AFX_DATA_INIT(CRegViewDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CRegViewDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CRegViewDlg) DDX_Control(pDX, IDC_LIST1, m_list1); DDX_Control(pDX, IDC_TREE1, m_tree1); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CRegViewDlg, CDialog) //{{AFX_MSG_MAP(CRegViewDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_WM_SIZE() ON_NOTIFY(TVN_ITEMEXPANDING, IDC_TREE1, OnItemExpandingTree1) ON_NOTIFY(LVN_GETDISPINFO, IDC_LIST1, OnGetDispInfoList1) ON_NOTIFY(TVN_SELCHANGED, IDC_TREE1, OnSelchangedTree1) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CRegViewDlg message handlers BOOL CRegViewDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { CString strAboutMenu; strAboutMenu.LoadString(IDS_ABOUTBOX); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon // TODO: Add extra initialization here CRect pRect; m_list1.SetExtendedStyle(LVS_EX_FULLROWSELECT); m_list1.GetWindowRect(&pRect); for(int i = 0;i < 3;i++) m_list1.InsertColumn(i,pTITLE[i],LVCFMT_LEFT,(pRect.right - pRect.left)/3 - 1,0); m_tree1.ModifyStyle ( LVS_TYPEMASK, TVS_LINESATROOT | TVS_HASLINES | TVS_HASBUTTONS | TVS_EDITLABELS ); HTREEITEM hItem = m_tree1.InsertItem("REGISTRY",0,0,NULL,TVI_FIRST); REGINFO *pINFO = new REGINFO[1]; strcpy(pINFO[0].sTITLE,""); i = sizeof(REGROOTS)/(sizeof(UINT)+sizeof(LPCTSTR)) - 1; while(0 < i && i--) AddTreeItem(m_tree1,m_tree1.InsertItem(REGROOTS[i].name,0,0,hItem,TVI_FIRST),pINFO[0]); //TVHT_NOWHERE 0x0001 //TVHT_ONITEMICON 0x0002 m_tree1.Expand(hItem,TVHT_ONITEMICON); CImageList *m_pImage = new CImageList(); m_pImage->Create(16,16,true,0,1); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_CLOSE_FOLDER)); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_OPEN_FOLDER)); m_tree1.SetImageList(m_pImage,TVSIL_NORMAL); /* m_tree1.SetTextColor(RGB(50,255,0)); m_tree1.SetBkColor(RGB(0,0,0)); m_list1.SetTextColor(RGB(50,255,0)); m_list1.SetTextBkColor(RGB(0,0,0)); m_list1.SetBkColor(RGB(0,0,0));*/ // m_tree1.SelectItem(m_tree1.GetNextItem(m_tree1.GetNextItem(hItem,TVGN_ROOT),TVGN_CHILD)); /* REGINFO *pINFO = new REGINFO[1]; hItem = m_tree1.GetSelectedItem(); strcpy(pINFO[0].sTITLE,m_tree1.GetItemText(hItem)); AddTreeItem(m_tree1,m_tree1.GetNextItem(hItem,TVGN_ROOT),pINFO[0]);*/ // REGINFO *pINFO = GetRegList(HKEY_CLASSES_ROOT, ""); return TRUE; // return TRUE unless you set the focus to a control } void CRegViewDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CDialog::OnSysCommand(nID, lParam); } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CRegViewDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // Draw the icon dc.DrawIcon(x, y, m_hIcon); } else { CDialog::OnPaint(); } } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CRegViewDlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon; } void CRegViewDlg::OnOK() { // TODO: Add extra validation here //OnSysCommand(IDM_ABOUTBOX,NULL); HTREEITEM hItem = m_tree1.GetSelectedItem(); hItem = m_tree1.GetNextItem(hItem,TVGN_ROOT); while(hItem != NULL) { m_tree1.Expand(hItem,TVHT_ONITEMICON); hItem = m_tree1.GetNextVisibleItem(hItem); if(m_tree1.GetCount() % 256 == 0) if(AfxMessageBox("Stop Expanding",MB_OKCANCEL,NULL) == 1) break; } //CDialog::OnOK(); } void CRegViewDlg::OnCancel() { // TODO: Add extra cleanup here HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, true, GetCurrentProcessId()); if(!TerminateProcess(hProc, NULL)) { char err[MAX_PATH]; sprintf(err,"%s%s","TerminateProcess() error: ",strerror(GetLastError())); MessageBox(err,NULL,MB_OK); } //CDialog::OnCancel(); } void CRegViewDlg::OnSize(UINT nType, int cx, int cy) { CDialog::OnSize(nType, cx, cy); // TODO: Add your message handler code here CRect pRect; CDialog::GetWindowRect(&pRect); if(!(!IsIconic()&&pRect.left == 0&&pRect.top == 0)) { m_tree1.MoveWindow(0,0, (pRect.right - pRect.left)/3,pRect.bottom - pRect.top - 30,true); m_list1.MoveWindow((pRect.right - pRect.left)/3,0, 2*(pRect.right - pRect.left)/3 - 10,pRect.bottom - pRect.top - 30,true); m_list1.GetWindowRect(&pRect); for(int i = 0; i < 3; i++) m_list1.SetColumnWidth(i,(pRect.right - pRect.left)/3 - 1); } } void CRegViewDlg::OnItemExpandingTree1(NMHDR* pNMHDR, LRESULT* pResult) { NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; // TODO: Add your control notification handler code here REGINFO *pINFO = (REGINFO *)malloc(sizeof(REGINFO)); HTREEITEM hItem = m_tree1.GetNextItem(pNMTreeView->itemNew.hItem,TVGN_ROOT); if(hItem != pNMTreeView->itemNew.hItem) { hItem = m_tree1.GetChildItem(pNMTreeView->itemNew.hItem); while(hItem != NULL&&m_tree1.DeleteItem(hItem)) hItem = m_tree1.GetChildItem(pNMTreeView->itemNew.hItem); m_tree1.SelectItem(pNMTreeView->itemNew.hItem); hItem = m_tree1.GetSelectedItem(); strcpy(pINFO[0].sTITLE,m_tree1.GetItemText(hItem)); if(pNMTreeView->action == TVHT_NOWHERE) AddTreeItem(m_tree1,hItem,pINFO[0]); else { HKEY hKey; char *chPath = GetRegKey(hKey, m_tree1, hItem); pINFO = GetRegList(hKey, chPath, true); SetTreeCtrlEntry(m_tree1, pINFO); } } *pResult = 0; } void CRegViewDlg::OnGetDispInfoList1(NMHDR* pNMHDR, LRESULT* pResult) { LV_DISPINFO* pDispInfo = (LV_DISPINFO*)pNMHDR; // TODO: Add your control notification handler code here if (LVIS_SELECTED == m_list1.GetItemState (pDispInfo->item.iItem,LVIS_SELECTED)) pDispInfo->item.iImage = 0; else pDispInfo->item.iImage = pDispInfo->item.iItem; *pResult = 0; } REGINFO * CRegViewDlg::GetRegList(HKEY hKey, CString sName, bool ENUM_KEYS) { int KEY_COUNT = 0; DWORD cbData = 256; char *chBuf = new char[MAX_PATH]; REGINFO *pINFO = (REGINFO *)malloc(sizeof(REGINFO)); LONG lRes=RegOpenKeyEx(hKey,sName,NULL,KEY_ALL_ACCESS,&hKey); if(lRes == ERROR_SUCCESS) { if(ENUM_KEYS) MessageBeep(MB_OK); do { chBuf[0] = '\0'; cbData = 256; pINFO[KEY_COUNT].sTITLE[0] = '\0'; pINFO[KEY_COUNT].dwTYPE = 0; pINFO[KEY_COUNT].dwVALUE = 256; if(ENUM_KEYS) lRes = RegEnumKeyEx(hKey, KEY_COUNT, pINFO[KEY_COUNT].sTITLE, &pINFO[KEY_COUNT].dwVALUE,NULL,NULL,NULL,NULL); else { lRes = RegEnumValue(hKey, KEY_COUNT, chBuf, &pINFO[KEY_COUNT].dwVALUE,NULL, &pINFO[KEY_COUNT].dwTYPE, (BYTE *)pINFO[KEY_COUNT].sTITLE,&cbData); /* sName.Format("KEY_COUNT :%d\r\nsTITLE :%s\r\n%s\r\n%d\r\n%d\r\n%d",KEY_COUNT, pINFO[KEY_COUNT - 1].sTITLE,chBuf, pINFO[KEY_COUNT].dwVALUE, pINFO[KEY_COUNT].dwTYPE,cbData); AfxMessageBox(sName);*/ if(lRes != ERROR_SUCCESS) { strcpy(pINFO[KEY_COUNT].sTITLE,"NULL"); cbData = lRes;lRes = ERROR_SUCCESS; if(RegQueryValue(hKey,"",chBuf,&lRes) != ERROR_SUCCESS){} strcpy(chBuf,"???"); lRes = cbData; } sprintf(pINFO[KEY_COUNT].sTITLE,"%s\\%s", pINFO[KEY_COUNT].sTITLE,chBuf); } KEY_COUNT++; pINFO = (REGINFO *) realloc((void *)pINFO,sizeof(REGINFO)*(KEY_COUNT + 2)); if(pINFO == NULL) break; } while(lRes != ERROR_NO_MORE_ITEMS); } else KEY_COUNT = 1; RegCloseKey(hKey); pINFO[0].dwCOUNT = KEY_COUNT; pINFO[0].dwCOUNT--; if(ENUM_KEYS) MessageBeep(MB_ICONASTERISK); /* else AfxMessageBox("RETURN");*/ return pINFO; } void CRegViewDlg::SetTreeCtrlEntry(CTreeCtrl &m_tree, REGINFO *pINFO) { HTREEITEM hItem = m_tree.GetSelectedItem(); CImageList * m_pImage = m_tree.GetImageList(TVSIL_NORMAL); if(m_pImage != NULL) m_pImage->DeleteImageList(); m_pImage = new CImageList(); m_pImage->Create(16,16,true,0,1); int KEY_COUNT = 0; m_tree.ShowWindow(0); while(int(pINFO[0].dwCOUNT) != KEY_COUNT ) { AddTreeItem(m_tree, hItem, pINFO[KEY_COUNT]); KEY_COUNT++; } m_tree.ShowWindow(1); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_CLOSE_FOLDER)); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_OPEN_FOLDER)); m_tree.SetImageList(m_pImage,TVSIL_NORMAL); } void CRegViewDlg::AddTreeItem(CTreeCtrl &m_tree, HTREEITEM hItem, REGINFO pINFO) { hItem = m_tree.InsertItem(pINFO.sTITLE,0,0,hItem,TVI_ROOT); HKEY hKey; char *chPath = GetRegKey(hKey, m_tree, hItem); DWORD dwValue = 256; LONG lRes=RegOpenKeyEx(hKey,chPath,NULL,KEY_ALL_ACCESS,&hKey); if(lRes == ERROR_SUCCESS) { lRes = RegEnumKeyEx(hKey, 0, chPath, &dwValue,NULL,NULL,NULL,NULL); if(lRes == ERROR_SUCCESS) m_tree.InsertItem(chPath,0,0,hItem,TVI_LAST); } } char * CRegViewDlg::GetItemPath(CTreeCtrl &m_tree, HTREEITEM hItem) { char chBuf[MAX_PATH];chBuf[0] = '\0'; while(hItem != NULL) { sprintf(chBuf,"%s\\%s",chBuf,m_tree.GetItemText(hItem)); hItem = m_tree.GetParentItem(hItem); } return &chBuf[0]; } char * CRegViewDlg::SwapItemPath(char *chPath) { char chBuf[MAX_PATH]; if(chPath != NULL) { chBuf[0] = '\0'; char *str = strrchr(chPath,'\\'); while(str != NULL) { sprintf(chBuf,"%s%s",chBuf,str); chPath[strlen(chPath) - strlen(str)] = '\0'; str = strrchr(chPath,'\\'); } } return &chBuf[0]; } char * CRegViewDlg::GetRegKey(HKEY &hKey, CTreeCtrl &m_tree, HTREEITEM hItem) { char *chPath = new char[MAX_PATH]; sprintf(chPath,"~%s",GetItemPath(m_tree, hItem)); *chPath++; strcpy(chPath,SwapItemPath(chPath)); *chPath++; sprintf(chPath,"%s\\",chPath); chPath = strchr(chPath,'\\'); if(chPath != NULL) *chPath++; int i = sizeof(REGROOTS)/(sizeof(UINT)+sizeof(LPCTSTR)) - 1; while(0 < i && i--) if(strstr(chPath,REGROOTS[i].name)) break; hKey = REGROOTS[i].hKey; chPath = strchr(chPath,'\\'); if(chPath != NULL) *chPath++; else strcpy(chPath,""); return &chPath[0]; } void CRegViewDlg::OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult) { NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; // TODO: Add your control notification handler code here REGINFO *pINFO = (REGINFO *)malloc(sizeof(REGINFO)); HTREEITEM hItem = m_tree1.GetNextItem(pNMTreeView->itemNew.hItem,TVGN_ROOT); if(hItem != pNMTreeView->itemNew.hItem && pNMTreeView->action == TVHT_NOWHERE) { hItem = pNMTreeView->itemNew.hItem; HKEY hKey; char *chPath = GetRegKey(hKey, m_tree1, hItem); m_list1.DeleteAllItems(); pINFO[0].dwTYPE = 1; sprintf(pINFO[0].sTITLE,"\\Default"); AddListItem(m_list1, pINFO[0]); try { pINFO = GetRegList(hKey, chPath, false); SetListCtrlEntry(m_list1,pINFO); } catch(...) { pINFO = (REGINFO *)malloc(sizeof(REGINFO)); pINFO[0].dwCOUNT = 1; pINFO[0].dwTYPE = 1; sprintf(pINFO[0].sTITLE,"%s\\PROGRAM_ERROR",strerror(GetLastError())); SetListCtrlEntry(m_list1,pINFO); hItem = m_tree1.GetNextItem(pNMTreeView->itemNew.hItem,TVGN_PARENT); if(hItem != NULL) m_tree1.Expand(hItem,TVHT_NOWHERE); } } *pResult = 0; } void CRegViewDlg::SetListCtrlEntry(CListCtrl &m_list, REGINFO *pINFO) { CImageList * m_pImage = m_list.GetImageList(LVSIL_SMALL); if(m_pImage != NULL) m_pImage->DeleteImageList(); m_pImage = new CImageList(); m_pImage->Create(16,16,true,0,1); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_SELECT)); int KEY_COUNT = 0; m_list.ShowWindow(0); while(int(pINFO[0].dwCOUNT) != KEY_COUNT) { AddListItem(m_list,pINFO[KEY_COUNT]); if(pINFO[KEY_COUNT].dwTYPE == 1) m_pImage->Add(AfxGetApp()->LoadIcon(IDI_STRING)); else m_pImage->Add(AfxGetApp()->LoadIcon(IDI_BINARY)); KEY_COUNT++; } m_list.ShowWindow(1); m_list.SetImageList(m_pImage,LVSIL_SMALL); } void CRegViewDlg::AddListItem(CListCtrl &m_list, REGINFO pINFO) { LVITEM *lvItem = new LVITEM[1]; lvItem->pszText = new char[MAX_PATH]; lvItem->mask = LVIF_IMAGE | LVIF_TEXT; lvItem->iImage = I_IMAGECALLBACK; lvItem->state = 0; lvItem->stateMask = 0; lvItem->lParam = 0L; lvItem->iItem = m_list.GetItemCount(); lvItem->iSubItem = 0; sprintf(lvItem->pszText,"~%s",pINFO.sTITLE); lvItem->pszText = strchr(lvItem->pszText,'\\'); if(strstr(lvItem->pszText,"\\\\") != NULL) lvItem->pszText = strstr(lvItem->pszText,"\\\\"); if(lvItem->pszText != NULL) ((char *)lvItem->pszText)++; m_list.InsertItem(lvItem); char *chBuf = new char[MAX_PATH]; lvItem->iSubItem++; sprintf(lvItem->pszText,"%d",pINFO.dwTYPE); char *REGTYPES[] = { "REG_NONE","REG_SZ","REG_EXPAND_SZ","REG_BINARY","REG_DWORD", "REG_DWORD_LITTLE_ENDIAN","REG_DWORD_BIG_ENDIAN","REG_LINK", "REG_MULTI_SZ","REG_RESOURCE_LIST", "REG_FULL_RESOURCE_DESCRIPTOR","REG_RESOURCE_REQUIREMENTS_LIST"}; /* #define REG_NONE ( 0 ) // No value type #define REG_SZ ( 1 ) // Unicode nul terminated string #define REG_EXPAND_SZ ( 2 ) // Unicode nul terminated string // (with environment variable references) #define REG_BINARY ( 3 ) // Free form binary #define REG_DWORD ( 4 ) // 32-bit number #define REG_DWORD_LITTLE_ENDIAN ( 4 ) // 32-bit number (same as REG_DWORD) #define REG_DWORD_BIG_ENDIAN ( 5 ) // 32-bit number #define REG_LINK ( 6 ) // Symbolic Link (unicode) #define REG_MULTI_SZ ( 7 ) // Multiple Unicode strings #define REG_RESOURCE_LIST ( 8 ) // Resource list in the resource map #define REG_FULL_RESOURCE_DESCRIPTOR ( 9 ) // Resource list in the hardware description #define REG_RESOURCE_REQUIREMENTS_LIST ( 10 )*/ if(pINFO.dwTYPE < 11) sprintf(chBuf," [%s]",REGTYPES[pINFO.dwTYPE]); else sprintf(chBuf," [UNKNOWN]"); if(pINFO.dwTYPE == 11) sprintf(chBuf," [REG_QWORD]"); sprintf(lvItem->pszText,"%s%s",lvItem->pszText,chBuf); m_list.SetItem(lvItem); lvItem->iSubItem++; sprintf(lvItem->pszText,"%d",pINFO.dwVALUE); m_list.SetItem(lvItem); m_list.GetItemText(lvItem->iItem,0,chBuf,MAX_PATH); if(pINFO.dwTYPE == 1) { if(chBuf != NULL) { sprintf(lvItem->pszText,"~%s",pINFO.sTITLE); lvItem->pszText[strlen(lvItem->pszText) - strlen(chBuf) - 1] = '\0'; ((char *)lvItem->pszText)++; } else lvItem->pszText[0] = '\0'; m_list.SetItemText(lvItem->iItem,lvItem->iSubItem,lvItem->pszText); } } can anyone to help me to add this option in this app to editing the registry values? thank you anticipated.
c++
editor
registry
visual
null
05/17/2011 08:16:18
not a real question
Registry editor with win api visual c++ === I'm Study in university and i have a sentence about aplication witch can wiew and edit the registry keys. I have found the half of this aplication its just wiewing the registry, but i need to edit its keys like regedit windows default program. the folowing link of this apllication is http://www41.zippyshare.com/v/21547426/file.html and the folowing code of dlg : // RegViewDlg.cpp : implementation file // #include "stdafx.h" #include "RegView.h" #include "RegViewDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif char *pTITLE[] = {" Name "," Type "," Value "}; /*typedef struct tagREGINFO { DWORD dwTYPE; DWORD dwVALUE; DWORD dwCOUNT; char sTITLE[MAX_PATH]; } REGINFO;*/ struct { HKEY hKey; LPCSTR name; } REGROOTS [] = { { HKEY_CLASSES_ROOT ,"HKEY_CLASSES_ROOT" }, { HKEY_CURRENT_USER ,"HKEY_CURRENT_USER" }, { HKEY_LOCAL_MACHINE ,"HKEY_LOCAL_MACHINE" }, { HKEY_USERS ,"HKEY_USERS" }, // { HKEY_PERFORMANCE_DATA ,"HKEY_PERFORMANCE_DATA"}, { HKEY_CURRENT_CONFIG ,"HKEY_CURRENT_CONFIG" }, // { HKEY_DYN_DATA ,"HKEY_DYN_DATA" }, { 0, NULL}, }; /*REGINFO * GetRegList(HKEY hKey, CString sName, bool ENUM_KEYS); void SetTreeCtrlEntry(CTreeCtrl &m_tree, REGINFO *pINFO); void AddTreeItem(CTreeCtrl &m_tree, HTREEITEM hItem, REGINFO pINFO); char * GetItemPath(CTreeCtrl &m_tree, HTREEITEM hItem); char * SwapItemPath(char *chPath); char * GetRegKey(HKEY &hKey, CTreeCtrl &m_tree, HTREEITEM hItem); void SetListCtrlEntry(CListCtrl &m_tree, REGINFO *pINFO); void AddListItem(CListCtrl &m_list, REGINFO pINFO);*/ ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CRegViewDlg dialog CRegViewDlg::CRegViewDlg(CWnd* pParent /*=NULL*/) : CDialog(CRegViewDlg::IDD, pParent) { //{{AFX_DATA_INIT(CRegViewDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CRegViewDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CRegViewDlg) DDX_Control(pDX, IDC_LIST1, m_list1); DDX_Control(pDX, IDC_TREE1, m_tree1); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CRegViewDlg, CDialog) //{{AFX_MSG_MAP(CRegViewDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_WM_SIZE() ON_NOTIFY(TVN_ITEMEXPANDING, IDC_TREE1, OnItemExpandingTree1) ON_NOTIFY(LVN_GETDISPINFO, IDC_LIST1, OnGetDispInfoList1) ON_NOTIFY(TVN_SELCHANGED, IDC_TREE1, OnSelchangedTree1) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CRegViewDlg message handlers BOOL CRegViewDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { CString strAboutMenu; strAboutMenu.LoadString(IDS_ABOUTBOX); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon // TODO: Add extra initialization here CRect pRect; m_list1.SetExtendedStyle(LVS_EX_FULLROWSELECT); m_list1.GetWindowRect(&pRect); for(int i = 0;i < 3;i++) m_list1.InsertColumn(i,pTITLE[i],LVCFMT_LEFT,(pRect.right - pRect.left)/3 - 1,0); m_tree1.ModifyStyle ( LVS_TYPEMASK, TVS_LINESATROOT | TVS_HASLINES | TVS_HASBUTTONS | TVS_EDITLABELS ); HTREEITEM hItem = m_tree1.InsertItem("REGISTRY",0,0,NULL,TVI_FIRST); REGINFO *pINFO = new REGINFO[1]; strcpy(pINFO[0].sTITLE,""); i = sizeof(REGROOTS)/(sizeof(UINT)+sizeof(LPCTSTR)) - 1; while(0 < i && i--) AddTreeItem(m_tree1,m_tree1.InsertItem(REGROOTS[i].name,0,0,hItem,TVI_FIRST),pINFO[0]); //TVHT_NOWHERE 0x0001 //TVHT_ONITEMICON 0x0002 m_tree1.Expand(hItem,TVHT_ONITEMICON); CImageList *m_pImage = new CImageList(); m_pImage->Create(16,16,true,0,1); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_CLOSE_FOLDER)); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_OPEN_FOLDER)); m_tree1.SetImageList(m_pImage,TVSIL_NORMAL); /* m_tree1.SetTextColor(RGB(50,255,0)); m_tree1.SetBkColor(RGB(0,0,0)); m_list1.SetTextColor(RGB(50,255,0)); m_list1.SetTextBkColor(RGB(0,0,0)); m_list1.SetBkColor(RGB(0,0,0));*/ // m_tree1.SelectItem(m_tree1.GetNextItem(m_tree1.GetNextItem(hItem,TVGN_ROOT),TVGN_CHILD)); /* REGINFO *pINFO = new REGINFO[1]; hItem = m_tree1.GetSelectedItem(); strcpy(pINFO[0].sTITLE,m_tree1.GetItemText(hItem)); AddTreeItem(m_tree1,m_tree1.GetNextItem(hItem,TVGN_ROOT),pINFO[0]);*/ // REGINFO *pINFO = GetRegList(HKEY_CLASSES_ROOT, ""); return TRUE; // return TRUE unless you set the focus to a control } void CRegViewDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CDialog::OnSysCommand(nID, lParam); } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CRegViewDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // Draw the icon dc.DrawIcon(x, y, m_hIcon); } else { CDialog::OnPaint(); } } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CRegViewDlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon; } void CRegViewDlg::OnOK() { // TODO: Add extra validation here //OnSysCommand(IDM_ABOUTBOX,NULL); HTREEITEM hItem = m_tree1.GetSelectedItem(); hItem = m_tree1.GetNextItem(hItem,TVGN_ROOT); while(hItem != NULL) { m_tree1.Expand(hItem,TVHT_ONITEMICON); hItem = m_tree1.GetNextVisibleItem(hItem); if(m_tree1.GetCount() % 256 == 0) if(AfxMessageBox("Stop Expanding",MB_OKCANCEL,NULL) == 1) break; } //CDialog::OnOK(); } void CRegViewDlg::OnCancel() { // TODO: Add extra cleanup here HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, true, GetCurrentProcessId()); if(!TerminateProcess(hProc, NULL)) { char err[MAX_PATH]; sprintf(err,"%s%s","TerminateProcess() error: ",strerror(GetLastError())); MessageBox(err,NULL,MB_OK); } //CDialog::OnCancel(); } void CRegViewDlg::OnSize(UINT nType, int cx, int cy) { CDialog::OnSize(nType, cx, cy); // TODO: Add your message handler code here CRect pRect; CDialog::GetWindowRect(&pRect); if(!(!IsIconic()&&pRect.left == 0&&pRect.top == 0)) { m_tree1.MoveWindow(0,0, (pRect.right - pRect.left)/3,pRect.bottom - pRect.top - 30,true); m_list1.MoveWindow((pRect.right - pRect.left)/3,0, 2*(pRect.right - pRect.left)/3 - 10,pRect.bottom - pRect.top - 30,true); m_list1.GetWindowRect(&pRect); for(int i = 0; i < 3; i++) m_list1.SetColumnWidth(i,(pRect.right - pRect.left)/3 - 1); } } void CRegViewDlg::OnItemExpandingTree1(NMHDR* pNMHDR, LRESULT* pResult) { NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; // TODO: Add your control notification handler code here REGINFO *pINFO = (REGINFO *)malloc(sizeof(REGINFO)); HTREEITEM hItem = m_tree1.GetNextItem(pNMTreeView->itemNew.hItem,TVGN_ROOT); if(hItem != pNMTreeView->itemNew.hItem) { hItem = m_tree1.GetChildItem(pNMTreeView->itemNew.hItem); while(hItem != NULL&&m_tree1.DeleteItem(hItem)) hItem = m_tree1.GetChildItem(pNMTreeView->itemNew.hItem); m_tree1.SelectItem(pNMTreeView->itemNew.hItem); hItem = m_tree1.GetSelectedItem(); strcpy(pINFO[0].sTITLE,m_tree1.GetItemText(hItem)); if(pNMTreeView->action == TVHT_NOWHERE) AddTreeItem(m_tree1,hItem,pINFO[0]); else { HKEY hKey; char *chPath = GetRegKey(hKey, m_tree1, hItem); pINFO = GetRegList(hKey, chPath, true); SetTreeCtrlEntry(m_tree1, pINFO); } } *pResult = 0; } void CRegViewDlg::OnGetDispInfoList1(NMHDR* pNMHDR, LRESULT* pResult) { LV_DISPINFO* pDispInfo = (LV_DISPINFO*)pNMHDR; // TODO: Add your control notification handler code here if (LVIS_SELECTED == m_list1.GetItemState (pDispInfo->item.iItem,LVIS_SELECTED)) pDispInfo->item.iImage = 0; else pDispInfo->item.iImage = pDispInfo->item.iItem; *pResult = 0; } REGINFO * CRegViewDlg::GetRegList(HKEY hKey, CString sName, bool ENUM_KEYS) { int KEY_COUNT = 0; DWORD cbData = 256; char *chBuf = new char[MAX_PATH]; REGINFO *pINFO = (REGINFO *)malloc(sizeof(REGINFO)); LONG lRes=RegOpenKeyEx(hKey,sName,NULL,KEY_ALL_ACCESS,&hKey); if(lRes == ERROR_SUCCESS) { if(ENUM_KEYS) MessageBeep(MB_OK); do { chBuf[0] = '\0'; cbData = 256; pINFO[KEY_COUNT].sTITLE[0] = '\0'; pINFO[KEY_COUNT].dwTYPE = 0; pINFO[KEY_COUNT].dwVALUE = 256; if(ENUM_KEYS) lRes = RegEnumKeyEx(hKey, KEY_COUNT, pINFO[KEY_COUNT].sTITLE, &pINFO[KEY_COUNT].dwVALUE,NULL,NULL,NULL,NULL); else { lRes = RegEnumValue(hKey, KEY_COUNT, chBuf, &pINFO[KEY_COUNT].dwVALUE,NULL, &pINFO[KEY_COUNT].dwTYPE, (BYTE *)pINFO[KEY_COUNT].sTITLE,&cbData); /* sName.Format("KEY_COUNT :%d\r\nsTITLE :%s\r\n%s\r\n%d\r\n%d\r\n%d",KEY_COUNT, pINFO[KEY_COUNT - 1].sTITLE,chBuf, pINFO[KEY_COUNT].dwVALUE, pINFO[KEY_COUNT].dwTYPE,cbData); AfxMessageBox(sName);*/ if(lRes != ERROR_SUCCESS) { strcpy(pINFO[KEY_COUNT].sTITLE,"NULL"); cbData = lRes;lRes = ERROR_SUCCESS; if(RegQueryValue(hKey,"",chBuf,&lRes) != ERROR_SUCCESS){} strcpy(chBuf,"???"); lRes = cbData; } sprintf(pINFO[KEY_COUNT].sTITLE,"%s\\%s", pINFO[KEY_COUNT].sTITLE,chBuf); } KEY_COUNT++; pINFO = (REGINFO *) realloc((void *)pINFO,sizeof(REGINFO)*(KEY_COUNT + 2)); if(pINFO == NULL) break; } while(lRes != ERROR_NO_MORE_ITEMS); } else KEY_COUNT = 1; RegCloseKey(hKey); pINFO[0].dwCOUNT = KEY_COUNT; pINFO[0].dwCOUNT--; if(ENUM_KEYS) MessageBeep(MB_ICONASTERISK); /* else AfxMessageBox("RETURN");*/ return pINFO; } void CRegViewDlg::SetTreeCtrlEntry(CTreeCtrl &m_tree, REGINFO *pINFO) { HTREEITEM hItem = m_tree.GetSelectedItem(); CImageList * m_pImage = m_tree.GetImageList(TVSIL_NORMAL); if(m_pImage != NULL) m_pImage->DeleteImageList(); m_pImage = new CImageList(); m_pImage->Create(16,16,true,0,1); int KEY_COUNT = 0; m_tree.ShowWindow(0); while(int(pINFO[0].dwCOUNT) != KEY_COUNT ) { AddTreeItem(m_tree, hItem, pINFO[KEY_COUNT]); KEY_COUNT++; } m_tree.ShowWindow(1); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_CLOSE_FOLDER)); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_OPEN_FOLDER)); m_tree.SetImageList(m_pImage,TVSIL_NORMAL); } void CRegViewDlg::AddTreeItem(CTreeCtrl &m_tree, HTREEITEM hItem, REGINFO pINFO) { hItem = m_tree.InsertItem(pINFO.sTITLE,0,0,hItem,TVI_ROOT); HKEY hKey; char *chPath = GetRegKey(hKey, m_tree, hItem); DWORD dwValue = 256; LONG lRes=RegOpenKeyEx(hKey,chPath,NULL,KEY_ALL_ACCESS,&hKey); if(lRes == ERROR_SUCCESS) { lRes = RegEnumKeyEx(hKey, 0, chPath, &dwValue,NULL,NULL,NULL,NULL); if(lRes == ERROR_SUCCESS) m_tree.InsertItem(chPath,0,0,hItem,TVI_LAST); } } char * CRegViewDlg::GetItemPath(CTreeCtrl &m_tree, HTREEITEM hItem) { char chBuf[MAX_PATH];chBuf[0] = '\0'; while(hItem != NULL) { sprintf(chBuf,"%s\\%s",chBuf,m_tree.GetItemText(hItem)); hItem = m_tree.GetParentItem(hItem); } return &chBuf[0]; } char * CRegViewDlg::SwapItemPath(char *chPath) { char chBuf[MAX_PATH]; if(chPath != NULL) { chBuf[0] = '\0'; char *str = strrchr(chPath,'\\'); while(str != NULL) { sprintf(chBuf,"%s%s",chBuf,str); chPath[strlen(chPath) - strlen(str)] = '\0'; str = strrchr(chPath,'\\'); } } return &chBuf[0]; } char * CRegViewDlg::GetRegKey(HKEY &hKey, CTreeCtrl &m_tree, HTREEITEM hItem) { char *chPath = new char[MAX_PATH]; sprintf(chPath,"~%s",GetItemPath(m_tree, hItem)); *chPath++; strcpy(chPath,SwapItemPath(chPath)); *chPath++; sprintf(chPath,"%s\\",chPath); chPath = strchr(chPath,'\\'); if(chPath != NULL) *chPath++; int i = sizeof(REGROOTS)/(sizeof(UINT)+sizeof(LPCTSTR)) - 1; while(0 < i && i--) if(strstr(chPath,REGROOTS[i].name)) break; hKey = REGROOTS[i].hKey; chPath = strchr(chPath,'\\'); if(chPath != NULL) *chPath++; else strcpy(chPath,""); return &chPath[0]; } void CRegViewDlg::OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult) { NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; // TODO: Add your control notification handler code here REGINFO *pINFO = (REGINFO *)malloc(sizeof(REGINFO)); HTREEITEM hItem = m_tree1.GetNextItem(pNMTreeView->itemNew.hItem,TVGN_ROOT); if(hItem != pNMTreeView->itemNew.hItem && pNMTreeView->action == TVHT_NOWHERE) { hItem = pNMTreeView->itemNew.hItem; HKEY hKey; char *chPath = GetRegKey(hKey, m_tree1, hItem); m_list1.DeleteAllItems(); pINFO[0].dwTYPE = 1; sprintf(pINFO[0].sTITLE,"\\Default"); AddListItem(m_list1, pINFO[0]); try { pINFO = GetRegList(hKey, chPath, false); SetListCtrlEntry(m_list1,pINFO); } catch(...) { pINFO = (REGINFO *)malloc(sizeof(REGINFO)); pINFO[0].dwCOUNT = 1; pINFO[0].dwTYPE = 1; sprintf(pINFO[0].sTITLE,"%s\\PROGRAM_ERROR",strerror(GetLastError())); SetListCtrlEntry(m_list1,pINFO); hItem = m_tree1.GetNextItem(pNMTreeView->itemNew.hItem,TVGN_PARENT); if(hItem != NULL) m_tree1.Expand(hItem,TVHT_NOWHERE); } } *pResult = 0; } void CRegViewDlg::SetListCtrlEntry(CListCtrl &m_list, REGINFO *pINFO) { CImageList * m_pImage = m_list.GetImageList(LVSIL_SMALL); if(m_pImage != NULL) m_pImage->DeleteImageList(); m_pImage = new CImageList(); m_pImage->Create(16,16,true,0,1); m_pImage->Add(AfxGetApp()->LoadIcon(IDI_SELECT)); int KEY_COUNT = 0; m_list.ShowWindow(0); while(int(pINFO[0].dwCOUNT) != KEY_COUNT) { AddListItem(m_list,pINFO[KEY_COUNT]); if(pINFO[KEY_COUNT].dwTYPE == 1) m_pImage->Add(AfxGetApp()->LoadIcon(IDI_STRING)); else m_pImage->Add(AfxGetApp()->LoadIcon(IDI_BINARY)); KEY_COUNT++; } m_list.ShowWindow(1); m_list.SetImageList(m_pImage,LVSIL_SMALL); } void CRegViewDlg::AddListItem(CListCtrl &m_list, REGINFO pINFO) { LVITEM *lvItem = new LVITEM[1]; lvItem->pszText = new char[MAX_PATH]; lvItem->mask = LVIF_IMAGE | LVIF_TEXT; lvItem->iImage = I_IMAGECALLBACK; lvItem->state = 0; lvItem->stateMask = 0; lvItem->lParam = 0L; lvItem->iItem = m_list.GetItemCount(); lvItem->iSubItem = 0; sprintf(lvItem->pszText,"~%s",pINFO.sTITLE); lvItem->pszText = strchr(lvItem->pszText,'\\'); if(strstr(lvItem->pszText,"\\\\") != NULL) lvItem->pszText = strstr(lvItem->pszText,"\\\\"); if(lvItem->pszText != NULL) ((char *)lvItem->pszText)++; m_list.InsertItem(lvItem); char *chBuf = new char[MAX_PATH]; lvItem->iSubItem++; sprintf(lvItem->pszText,"%d",pINFO.dwTYPE); char *REGTYPES[] = { "REG_NONE","REG_SZ","REG_EXPAND_SZ","REG_BINARY","REG_DWORD", "REG_DWORD_LITTLE_ENDIAN","REG_DWORD_BIG_ENDIAN","REG_LINK", "REG_MULTI_SZ","REG_RESOURCE_LIST", "REG_FULL_RESOURCE_DESCRIPTOR","REG_RESOURCE_REQUIREMENTS_LIST"}; /* #define REG_NONE ( 0 ) // No value type #define REG_SZ ( 1 ) // Unicode nul terminated string #define REG_EXPAND_SZ ( 2 ) // Unicode nul terminated string // (with environment variable references) #define REG_BINARY ( 3 ) // Free form binary #define REG_DWORD ( 4 ) // 32-bit number #define REG_DWORD_LITTLE_ENDIAN ( 4 ) // 32-bit number (same as REG_DWORD) #define REG_DWORD_BIG_ENDIAN ( 5 ) // 32-bit number #define REG_LINK ( 6 ) // Symbolic Link (unicode) #define REG_MULTI_SZ ( 7 ) // Multiple Unicode strings #define REG_RESOURCE_LIST ( 8 ) // Resource list in the resource map #define REG_FULL_RESOURCE_DESCRIPTOR ( 9 ) // Resource list in the hardware description #define REG_RESOURCE_REQUIREMENTS_LIST ( 10 )*/ if(pINFO.dwTYPE < 11) sprintf(chBuf," [%s]",REGTYPES[pINFO.dwTYPE]); else sprintf(chBuf," [UNKNOWN]"); if(pINFO.dwTYPE == 11) sprintf(chBuf," [REG_QWORD]"); sprintf(lvItem->pszText,"%s%s",lvItem->pszText,chBuf); m_list.SetItem(lvItem); lvItem->iSubItem++; sprintf(lvItem->pszText,"%d",pINFO.dwVALUE); m_list.SetItem(lvItem); m_list.GetItemText(lvItem->iItem,0,chBuf,MAX_PATH); if(pINFO.dwTYPE == 1) { if(chBuf != NULL) { sprintf(lvItem->pszText,"~%s",pINFO.sTITLE); lvItem->pszText[strlen(lvItem->pszText) - strlen(chBuf) - 1] = '\0'; ((char *)lvItem->pszText)++; } else lvItem->pszText[0] = '\0'; m_list.SetItemText(lvItem->iItem,lvItem->iSubItem,lvItem->pszText); } } can anyone to help me to add this option in this app to editing the registry values? thank you anticipated.
1
9,471,676
02/27/2012 20:18:15
869,412
07/29/2011 13:03:29
323
4
Can you use the jquery validation plugin to test a string?
I've seen examples of using [jquery.validate][1] to validate form fields but I have a situation where I have an email address as a string in an object and thought it would be nice to leverage the code in jquery.validate to test it. Is there any way to do something like: `var isEmail = $.validate.email("abc@efg.com");` using the plugin? [1]: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
jquery
jquery-validate
null
null
null
null
open
Can you use the jquery validation plugin to test a string? === I've seen examples of using [jquery.validate][1] to validate form fields but I have a situation where I have an email address as a string in an object and thought it would be nice to leverage the code in jquery.validate to test it. Is there any way to do something like: `var isEmail = $.validate.email("abc@efg.com");` using the plugin? [1]: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
0
10,586,794
05/14/2012 15:54:38
1,071,527
11/29/2011 14:52:00
799
76
Intercept an HTTP request at browser end to alter some html content
I would like to do as follows. What would be the best way. An general answer will also be fine. I would like to Intercept an HTTP request at the client end to alter some html content. For Example, i goto CNN.com and rather that an article that displaying "Two LA Dogs marry", It should say "Rediculous Title blocked" It should be smooth that even a secure certificate wont be disturbed. I am using C#. Thanks!
c#
null
null
null
null
null
open
Intercept an HTTP request at browser end to alter some html content === I would like to do as follows. What would be the best way. An general answer will also be fine. I would like to Intercept an HTTP request at the client end to alter some html content. For Example, i goto CNN.com and rather that an article that displaying "Two LA Dogs marry", It should say "Rediculous Title blocked" It should be smooth that even a secure certificate wont be disturbed. I am using C#. Thanks!
0
9,165,595
02/06/2012 18:56:51
1,193,019
02/06/2012 18:41:45
1
0
.NET Field Validators broken in FF10
I have the following page, works perfectly in IE and Chrome, but not in FF. In FF the only fields where validation shows up are first and last names. Then if everything is filled out correctly the submit button does nothing. <script type="text/jscript"> function CheckControls(sender, args) { var tCell = document.getElementById('<%=tbxCell.ClientID%>'); var dCell = document.getElementById('<%=ddlCarrier.ClientID%>'); if (tCell.value.length == 0) { args.IsValid = true; return; } if (dCell.options[dCell.selectedIndex].value == 0) { args.IsValid = false; return; } args.IsValid = true; return; } function CheckControls2(sender, args) { var tCell = document.getElementById('<%=tbxCell.ClientID%>'); var dCell = document.getElementById('<%=ddlContactType.ClientID%>'); if (dCell.options[dCell.selectedIndex].value <= 1) { args.IsValid = true; return; } if (tCell.value.length == 0) { args.IsValid = false; return; } args.IsValid = true; return; } </script> <div style="padding:20px 0px 0px 75px"> <div style="float:left"> *First Name: <br /> <asp:TextBox runat="server" ID="tbxFirst" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ControlToValidate="tbxFirst" Text="<br />*Required Field" /><br /> *Last Name: <br /> <asp:TextBox runat="server" ID="tbxLast" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ControlToValidate="tbxLast" Text="<br />*Required Field" /><br /> Cell: <br /> <asp:TextBox runat="server" ID="tbxCell" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="tbxCell" Display="Dynamic" ErrorMessage="<br />*Blank or 10 Digits No Spaces" ValidationExpression="^$|^\d{10}$" runat="server" /><br /> <asp:Label ID="lblCellTaken" CssClass="errorCol" runat="server" Visible="false">This cell number is already in use.<br /></asp:Label> Cell Carrier: <br /> <asp:DropDownList id="ddlCarrier" runat="server" AppendDataBoundItems="True" DataSourceID="CarrierDataSource" DataTextField="CarrierName" DataValueField="ID"> <asp:ListItem Selected="True" Text="Select One" Value="0" /> </asp:DropDownList> <asp:CustomValidator runat="server" Display="Dynamic" ClientValidationFunction="CheckControls" ControlToValidate="ddlCarrier" ErrorMessage="<br />*Cell Number Requires Carrier" ID="cvCarrier" /><br /> Contact Method: <br /> <asp:DropDownList id="ddlContactType" runat="server" AppendDataBoundItems="True" DataSourceID="ContactTypeDataSource" DataTextField="ContactTypeName" DataValueField="ID"> <asp:ListItem Selected="True" Text="Select One" Value="-1" /> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Display="Dynamic" ControlToValidate="ddlContactType" Text="<br />*Required Field" InitialValue="-1" /> <asp:CustomValidator runat="server" Display="Dynamic" ClientValidationFunction="CheckControls2" ControlToValidate="ddlContactType" ErrorMessage="<br />*Text requires cell number" ID="cvContact" /><br /> <asp:UpdatePanel runat="server" ID="upTimes" UpdateMode="Conditional"> <ContentTemplate> <asp:Panel ID="pnlTimes" runat="server"> All Times Eastern<br /> Notification Start Time:<br /> <asp:DropDownList ID="ddlStartHours" runat="server"> <asp:ListItem Text="12" Value="0" /> <asp:ListItem Text="1" /> <asp:ListItem Text="2" /> <asp:ListItem Text="3" /> <asp:ListItem Text="4" /> <asp:ListItem Text="5" /> <asp:ListItem Text="6" /> <asp:ListItem Text="7" /> <asp:ListItem Text="8" /> <asp:ListItem Text="9" /> <asp:ListItem Text="10" /> <asp:ListItem Text="11" /> </asp:DropDownList> :<asp:DropDownList ID="ddlStartMinutes" runat="server"> <asp:ListItem Text="00" /> <asp:ListItem Text="15" /> <asp:ListItem Text="30" /> <asp:ListItem Text="45" /> </asp:DropDownList> <asp:DropDownList ID="ddlStartAMPM" runat="server"> <asp:ListItem Text="AM" /> <asp:ListItem Text="PM" /> </asp:DropDownList><br /> Notification Stop Time:<br /> <asp:DropDownList ID="ddlStopHours" runat="server"> <asp:ListItem Text="12" Value="0" /> <asp:ListItem Text="1" /> <asp:ListItem Text="2" /> <asp:ListItem Text="3" /> <asp:ListItem Text="4" /> <asp:ListItem Text="5" /> <asp:ListItem Text="6" /> <asp:ListItem Text="7" /> <asp:ListItem Text="8" /> <asp:ListItem Text="9" /> <asp:ListItem Text="10" /> <asp:ListItem Text="11" Selected="True" /> </asp:DropDownList> :<asp:DropDownList ID="ddlStopMinutes" runat="server"> <asp:ListItem Text="00" /> <asp:ListItem Text="15" /> <asp:ListItem Text="30" /> <asp:ListItem Text="45" Selected="True" /> </asp:DropDownList> <asp:DropDownList ID="ddlStopAMPM" runat="server"> <asp:ListItem Text="AM" /> <asp:ListItem Text="PM" Selected="true" /> </asp:DropDownList><br /> </asp:Panel> No Start/Stop Time:<br /> <asp:CheckBox ID="cbxNoTime" runat="server" AutoPostBack="true" oncheckedchanged="cbxNoTime_CheckedChanged" /><br /> </ContentTemplate> </asp:UpdatePanel> *Maximum Simultanious<br />Notifications:<br /> <asp:DropDownList runat="server" ID="ddlNumNotifications" > <asp:ListItem Value="-1">Pick One</asp:ListItem> <asp:ListItem Value="0">Unlimited</asp:ListItem> <asp:ListItem Value="1">1</asp:ListItem> <asp:ListItem Value="2">2</asp:ListItem> <asp:ListItem Value="3">3</asp:ListItem> <asp:ListItem Value="4">4</asp:ListItem> <asp:ListItem Value="5">5</asp:ListItem> <asp:ListItem Value="6">6</asp:ListItem> <asp:ListItem Value="7">7</asp:ListItem> <asp:ListItem Value="8">8</asp:ListItem> <asp:ListItem Value="9">9</asp:ListItem> <asp:ListItem Value="10">10</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" ControlToValidate="ddlNumNotifications" Text="<br />*Required Field" InitialValue="-1" /><br /> </div> <div style="width:50px;float:left">&nbsp;</div> <div style="float:left "> *Email: <br /> <asp:TextBox runat="server" ID="tbxEmail" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ControlToValidate="tbxEmail" Text="<br />*Required Field" /> <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="tbxEmail" ErrorMessage="<br />*Invalid Email Format" Display="Dynamic" /> <asp:Label ID="lblEmailInUse" CssClass="errorCol" runat="server" Visible="false"><br />This email is already in use.</asp:Label> <br /> *Confirm Email: <br /> <asp:TextBox runat="server" ID="tbxConfirmEmail" /><br /> <asp:CompareValidator runat="server" Enabled="true" ErrorMessage="*Emails Don't Match<br />" ControlToValidate="tbxConfirmEmail" ControlToCompare="tbxEmail" ID="cvEmails" CultureInvariantValues="true" Display="Dynamic" /> <asp:RequiredFieldValidator ID="rfvConfirmEmail" runat="server" Display="Dynamic" ControlToValidate="tbxConfirmEmail" Text="*Required Field<br />" Enabled="false" /> Password: <br /> <asp:TextBox runat="server" ID="tbxNew" TextMode="Password" MaxLength="20" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="<br />*Required Field" ControlToValidate="tbxNew" Display="Dynamic" /> <asp:PasswordStrength ID="PasswordStrength1" runat="server" TargetControlID="tbxNew" MinimumLowerCaseCharacters="1" MinimumNumericCharacters="1" MinimumUpperCaseCharacters="1" PreferredPasswordLength="8" StrengthIndicatorType="Text" RequiresUpperAndLowerCaseCharacters="true" DisplayPosition="RightSide" HelpStatusLabelID="lblPassHelper" TextStrengthDescriptions="Weak;Average;Strong;Excellent" TextStrengthDescriptionStyles="strenWeak;strenAverage;strenStrong;strenExcellent" /> <br /> <asp:TextBox ID="lblPassHelper" TabIndex="-1" ReadOnly="true" TextMode="MultiLine" CssClass="invisibleBox" runat="server" /><br /> Confirm Password: <br /> <asp:TextBox runat="server" ID="tbxConfirm" TextMode="Password" MaxLength="20" /> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tbxConfirm" ControlToValidate="tbxNew" Operator="Equal" Text="<br />*Passwords Must Match" /><br /> <asp:LinkButton Text="Create Account" ID="lbCreateAccount" runat="server" CssClass="darkLink" CausesValidation="true" onclick="lbSubmitUser_Click" /><br /> <asp:Label id="lblUpdatePassStatus" runat="server" /> </div> </div> <asp:LinqDataSource ID="CarrierDataSource" runat="server" ContextTypeName="DataLayer.FantasyDataContext" Select="new (ID, CarrierName)" TableName="CellCarriers"> </asp:LinqDataSource> <asp:LinqDataSource ID="ContactTypeDataSource" runat="server" ContextTypeName="DataLayer.FantasyDataContext" Select="new (ID, ContactTypeName)" TableName="ContactTypes"> </asp:LinqDataSource> <script type="text/javascript"> ValidatorHookupControlID('<%= tbxCell.ClientID %>', document.getElementById('<%= cvCarrier.ClientID %>')); ValidatorHookupControlID('<%= tbxCell.ClientID %>', document.getElementById('<%= cvContact.ClientID %>')); </script>
javascript
.net
validation
firefox
null
null
open
.NET Field Validators broken in FF10 === I have the following page, works perfectly in IE and Chrome, but not in FF. In FF the only fields where validation shows up are first and last names. Then if everything is filled out correctly the submit button does nothing. <script type="text/jscript"> function CheckControls(sender, args) { var tCell = document.getElementById('<%=tbxCell.ClientID%>'); var dCell = document.getElementById('<%=ddlCarrier.ClientID%>'); if (tCell.value.length == 0) { args.IsValid = true; return; } if (dCell.options[dCell.selectedIndex].value == 0) { args.IsValid = false; return; } args.IsValid = true; return; } function CheckControls2(sender, args) { var tCell = document.getElementById('<%=tbxCell.ClientID%>'); var dCell = document.getElementById('<%=ddlContactType.ClientID%>'); if (dCell.options[dCell.selectedIndex].value <= 1) { args.IsValid = true; return; } if (tCell.value.length == 0) { args.IsValid = false; return; } args.IsValid = true; return; } </script> <div style="padding:20px 0px 0px 75px"> <div style="float:left"> *First Name: <br /> <asp:TextBox runat="server" ID="tbxFirst" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ControlToValidate="tbxFirst" Text="<br />*Required Field" /><br /> *Last Name: <br /> <asp:TextBox runat="server" ID="tbxLast" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ControlToValidate="tbxLast" Text="<br />*Required Field" /><br /> Cell: <br /> <asp:TextBox runat="server" ID="tbxCell" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="tbxCell" Display="Dynamic" ErrorMessage="<br />*Blank or 10 Digits No Spaces" ValidationExpression="^$|^\d{10}$" runat="server" /><br /> <asp:Label ID="lblCellTaken" CssClass="errorCol" runat="server" Visible="false">This cell number is already in use.<br /></asp:Label> Cell Carrier: <br /> <asp:DropDownList id="ddlCarrier" runat="server" AppendDataBoundItems="True" DataSourceID="CarrierDataSource" DataTextField="CarrierName" DataValueField="ID"> <asp:ListItem Selected="True" Text="Select One" Value="0" /> </asp:DropDownList> <asp:CustomValidator runat="server" Display="Dynamic" ClientValidationFunction="CheckControls" ControlToValidate="ddlCarrier" ErrorMessage="<br />*Cell Number Requires Carrier" ID="cvCarrier" /><br /> Contact Method: <br /> <asp:DropDownList id="ddlContactType" runat="server" AppendDataBoundItems="True" DataSourceID="ContactTypeDataSource" DataTextField="ContactTypeName" DataValueField="ID"> <asp:ListItem Selected="True" Text="Select One" Value="-1" /> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Display="Dynamic" ControlToValidate="ddlContactType" Text="<br />*Required Field" InitialValue="-1" /> <asp:CustomValidator runat="server" Display="Dynamic" ClientValidationFunction="CheckControls2" ControlToValidate="ddlContactType" ErrorMessage="<br />*Text requires cell number" ID="cvContact" /><br /> <asp:UpdatePanel runat="server" ID="upTimes" UpdateMode="Conditional"> <ContentTemplate> <asp:Panel ID="pnlTimes" runat="server"> All Times Eastern<br /> Notification Start Time:<br /> <asp:DropDownList ID="ddlStartHours" runat="server"> <asp:ListItem Text="12" Value="0" /> <asp:ListItem Text="1" /> <asp:ListItem Text="2" /> <asp:ListItem Text="3" /> <asp:ListItem Text="4" /> <asp:ListItem Text="5" /> <asp:ListItem Text="6" /> <asp:ListItem Text="7" /> <asp:ListItem Text="8" /> <asp:ListItem Text="9" /> <asp:ListItem Text="10" /> <asp:ListItem Text="11" /> </asp:DropDownList> :<asp:DropDownList ID="ddlStartMinutes" runat="server"> <asp:ListItem Text="00" /> <asp:ListItem Text="15" /> <asp:ListItem Text="30" /> <asp:ListItem Text="45" /> </asp:DropDownList> <asp:DropDownList ID="ddlStartAMPM" runat="server"> <asp:ListItem Text="AM" /> <asp:ListItem Text="PM" /> </asp:DropDownList><br /> Notification Stop Time:<br /> <asp:DropDownList ID="ddlStopHours" runat="server"> <asp:ListItem Text="12" Value="0" /> <asp:ListItem Text="1" /> <asp:ListItem Text="2" /> <asp:ListItem Text="3" /> <asp:ListItem Text="4" /> <asp:ListItem Text="5" /> <asp:ListItem Text="6" /> <asp:ListItem Text="7" /> <asp:ListItem Text="8" /> <asp:ListItem Text="9" /> <asp:ListItem Text="10" /> <asp:ListItem Text="11" Selected="True" /> </asp:DropDownList> :<asp:DropDownList ID="ddlStopMinutes" runat="server"> <asp:ListItem Text="00" /> <asp:ListItem Text="15" /> <asp:ListItem Text="30" /> <asp:ListItem Text="45" Selected="True" /> </asp:DropDownList> <asp:DropDownList ID="ddlStopAMPM" runat="server"> <asp:ListItem Text="AM" /> <asp:ListItem Text="PM" Selected="true" /> </asp:DropDownList><br /> </asp:Panel> No Start/Stop Time:<br /> <asp:CheckBox ID="cbxNoTime" runat="server" AutoPostBack="true" oncheckedchanged="cbxNoTime_CheckedChanged" /><br /> </ContentTemplate> </asp:UpdatePanel> *Maximum Simultanious<br />Notifications:<br /> <asp:DropDownList runat="server" ID="ddlNumNotifications" > <asp:ListItem Value="-1">Pick One</asp:ListItem> <asp:ListItem Value="0">Unlimited</asp:ListItem> <asp:ListItem Value="1">1</asp:ListItem> <asp:ListItem Value="2">2</asp:ListItem> <asp:ListItem Value="3">3</asp:ListItem> <asp:ListItem Value="4">4</asp:ListItem> <asp:ListItem Value="5">5</asp:ListItem> <asp:ListItem Value="6">6</asp:ListItem> <asp:ListItem Value="7">7</asp:ListItem> <asp:ListItem Value="8">8</asp:ListItem> <asp:ListItem Value="9">9</asp:ListItem> <asp:ListItem Value="10">10</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" ControlToValidate="ddlNumNotifications" Text="<br />*Required Field" InitialValue="-1" /><br /> </div> <div style="width:50px;float:left">&nbsp;</div> <div style="float:left "> *Email: <br /> <asp:TextBox runat="server" ID="tbxEmail" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ControlToValidate="tbxEmail" Text="<br />*Required Field" /> <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="tbxEmail" ErrorMessage="<br />*Invalid Email Format" Display="Dynamic" /> <asp:Label ID="lblEmailInUse" CssClass="errorCol" runat="server" Visible="false"><br />This email is already in use.</asp:Label> <br /> *Confirm Email: <br /> <asp:TextBox runat="server" ID="tbxConfirmEmail" /><br /> <asp:CompareValidator runat="server" Enabled="true" ErrorMessage="*Emails Don't Match<br />" ControlToValidate="tbxConfirmEmail" ControlToCompare="tbxEmail" ID="cvEmails" CultureInvariantValues="true" Display="Dynamic" /> <asp:RequiredFieldValidator ID="rfvConfirmEmail" runat="server" Display="Dynamic" ControlToValidate="tbxConfirmEmail" Text="*Required Field<br />" Enabled="false" /> Password: <br /> <asp:TextBox runat="server" ID="tbxNew" TextMode="Password" MaxLength="20" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="<br />*Required Field" ControlToValidate="tbxNew" Display="Dynamic" /> <asp:PasswordStrength ID="PasswordStrength1" runat="server" TargetControlID="tbxNew" MinimumLowerCaseCharacters="1" MinimumNumericCharacters="1" MinimumUpperCaseCharacters="1" PreferredPasswordLength="8" StrengthIndicatorType="Text" RequiresUpperAndLowerCaseCharacters="true" DisplayPosition="RightSide" HelpStatusLabelID="lblPassHelper" TextStrengthDescriptions="Weak;Average;Strong;Excellent" TextStrengthDescriptionStyles="strenWeak;strenAverage;strenStrong;strenExcellent" /> <br /> <asp:TextBox ID="lblPassHelper" TabIndex="-1" ReadOnly="true" TextMode="MultiLine" CssClass="invisibleBox" runat="server" /><br /> Confirm Password: <br /> <asp:TextBox runat="server" ID="tbxConfirm" TextMode="Password" MaxLength="20" /> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tbxConfirm" ControlToValidate="tbxNew" Operator="Equal" Text="<br />*Passwords Must Match" /><br /> <asp:LinkButton Text="Create Account" ID="lbCreateAccount" runat="server" CssClass="darkLink" CausesValidation="true" onclick="lbSubmitUser_Click" /><br /> <asp:Label id="lblUpdatePassStatus" runat="server" /> </div> </div> <asp:LinqDataSource ID="CarrierDataSource" runat="server" ContextTypeName="DataLayer.FantasyDataContext" Select="new (ID, CarrierName)" TableName="CellCarriers"> </asp:LinqDataSource> <asp:LinqDataSource ID="ContactTypeDataSource" runat="server" ContextTypeName="DataLayer.FantasyDataContext" Select="new (ID, ContactTypeName)" TableName="ContactTypes"> </asp:LinqDataSource> <script type="text/javascript"> ValidatorHookupControlID('<%= tbxCell.ClientID %>', document.getElementById('<%= cvCarrier.ClientID %>')); ValidatorHookupControlID('<%= tbxCell.ClientID %>', document.getElementById('<%= cvContact.ClientID %>')); </script>
0
8,018,088
11/05/2011 03:55:30
1,030,729
11/05/2011 03:47:54
1
0
Is there a way to use two different BorderLayout layouts in the same program?
I am creating a pizza ordering program using a tabbed pane. One of the tabs is using BorderLayout to ask the drink choices, toppings, and crust type. The other is for ordering special items, I want to use another BorderLayout for this pane, yet I can't think of a way that I can use two of the same layouts in the same program. Any help would be appreciated. Thanks, Jeff Andrews import java.awt.*; import javax.swing.*; public class pizzamain { //----------------------------------------------------------------- // Sets up a frame containing a tabbed pane. The panel on each // tab demonstrates a different layout manager. //----------------------------------------------------------------- public static void main (String[] args) { JFrame frame = new JFrame ("Layout Manager Demo"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); JTabbedPane tp = new JTabbedPane(); tp.addTab ("Pizza/Drinks", new BorderPanel()); //tp.addTab ("Special Items", BoxLayout(frame, 4)); <---- (want this to be a BorderPanel as well. but with a different design to the layout) frame.getContentPane().add(tp); frame.pack(); frame.setVisible(true); } }
java
layout
null
null
null
11/10/2011 10:49:01
too localized
Is there a way to use two different BorderLayout layouts in the same program? === I am creating a pizza ordering program using a tabbed pane. One of the tabs is using BorderLayout to ask the drink choices, toppings, and crust type. The other is for ordering special items, I want to use another BorderLayout for this pane, yet I can't think of a way that I can use two of the same layouts in the same program. Any help would be appreciated. Thanks, Jeff Andrews import java.awt.*; import javax.swing.*; public class pizzamain { //----------------------------------------------------------------- // Sets up a frame containing a tabbed pane. The panel on each // tab demonstrates a different layout manager. //----------------------------------------------------------------- public static void main (String[] args) { JFrame frame = new JFrame ("Layout Manager Demo"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); JTabbedPane tp = new JTabbedPane(); tp.addTab ("Pizza/Drinks", new BorderPanel()); //tp.addTab ("Special Items", BoxLayout(frame, 4)); <---- (want this to be a BorderPanel as well. but with a different design to the layout) frame.getContentPane().add(tp); frame.pack(); frame.setVisible(true); } }
3
387,326
12/22/2008 20:51:41
17,560
09/18/2008 11:39:52
382
17
Unit testing - videos or pod casts
I am looking for podcast or videos on how to do unit testing. Ideally they should cover the basics & the more advanced topics
unit-testing
null
null
null
null
09/18/2011 02:55:47
not constructive
Unit testing - videos or pod casts === I am looking for podcast or videos on how to do unit testing. Ideally they should cover the basics & the more advanced topics
4
10,456,849
05/04/2012 22:19:12
1,359,280
04/26/2012 16:57:09
1
0
Discrete Structures
Suppose that five ones and four zeros are arranged around a circle. Between any two equal bits you insert a 0 and between any two unequal bits you insert a 1 to produce nine new bits. Then you erase the nine original bits. Show that when you iterate this procedure, you can never get nine Zeros. Hint: Work backward, assuming that you did end up with nine zeros.
structures
null
null
null
null
05/16/2012 12:33:22
not a real question
Discrete Structures === Suppose that five ones and four zeros are arranged around a circle. Between any two equal bits you insert a 0 and between any two unequal bits you insert a 1 to produce nine new bits. Then you erase the nine original bits. Show that when you iterate this procedure, you can never get nine Zeros. Hint: Work backward, assuming that you did end up with nine zeros.
1
10,094,287
04/10/2012 18:23:04
981,835
10/06/2011 08:48:23
22
0
How is memory managed in Python
Is garbage collection done in Python by itself or do we need to do it ourselves. I used to believe that Python used to manage all sort of memory issues itself and we need worry about memory management. The reason I am asking this is because I saw gc module in Python documentation http://docs.python.org/library/gc.html If memory management is handle by itself then whats the point of this module.
python
memory-management
garbage-collection
null
null
04/10/2012 18:27:16
not a real question
How is memory managed in Python === Is garbage collection done in Python by itself or do we need to do it ourselves. I used to believe that Python used to manage all sort of memory issues itself and we need worry about memory management. The reason I am asking this is because I saw gc module in Python documentation http://docs.python.org/library/gc.html If memory management is handle by itself then whats the point of this module.
1
7,403,242
09/13/2011 14:08:58
232,695
12/16/2009 06:38:23
383
15
Best approach for pessimistic locking
A few time ago I was struggling with a scenario in my application where needed to treat a pessimistic locking. Now, that I thought a little bit on this, I want to share my concern with stackoverflow.com. At first I want to specify that data what I'm talking about is stored in a database. Lets assume that in a client-server application, user needs to edit some data. But here comes a situation : at the same time, another user can also edit the same data. A solution to this problem: we can simple treat this situation with optimistic locking (everytime you update the data, there is a check that verifies if the data was modified during your editing, and if yes, you need to retake the step of editing). Now the problem comes when the user has very big forms to complete(not necessary big as volume how much big as time). If this situation comes a few times for the same user and the same form, it can became very frustrating. To treat this scenario we need a pesimistic locking - as long as somebdy is editing a specific data, this specific data must be locked for other clients to edit it. In a client-server application, we know that any database transaction can last at most up to user request duration. But in my scenario, there are at least two requests : 1. data retrieving for edit new data 2. data sending for update So, for this scenario what I presented, what do you think that are best approach(es)?
client-server
pessimistic-locking
null
null
null
07/19/2012 02:02:01
not constructive
Best approach for pessimistic locking === A few time ago I was struggling with a scenario in my application where needed to treat a pessimistic locking. Now, that I thought a little bit on this, I want to share my concern with stackoverflow.com. At first I want to specify that data what I'm talking about is stored in a database. Lets assume that in a client-server application, user needs to edit some data. But here comes a situation : at the same time, another user can also edit the same data. A solution to this problem: we can simple treat this situation with optimistic locking (everytime you update the data, there is a check that verifies if the data was modified during your editing, and if yes, you need to retake the step of editing). Now the problem comes when the user has very big forms to complete(not necessary big as volume how much big as time). If this situation comes a few times for the same user and the same form, it can became very frustrating. To treat this scenario we need a pesimistic locking - as long as somebdy is editing a specific data, this specific data must be locked for other clients to edit it. In a client-server application, we know that any database transaction can last at most up to user request duration. But in my scenario, there are at least two requests : 1. data retrieving for edit new data 2. data sending for update So, for this scenario what I presented, what do you think that are best approach(es)?
4
11,238,032
06/28/2012 04:22:16
1,222,393
02/21/2012 02:16:05
182
4
Create UILabel on any view controller from a method
I have a method that gets called if a video upload to Facebook has failed. If that method is called then I would like for a `UILabel` to briefly appear in any view controller that a user happens to be on at the time the upload fails. Is this possible? I asked a similar question earlier about a `UIAlertView`, but I realized that there are certain circumstances under which an alert could negatively impact user experience.
iphone
cocoa-touch
uilabel
null
null
null
open
Create UILabel on any view controller from a method === I have a method that gets called if a video upload to Facebook has failed. If that method is called then I would like for a `UILabel` to briefly appear in any view controller that a user happens to be on at the time the upload fails. Is this possible? I asked a similar question earlier about a `UIAlertView`, but I realized that there are certain circumstances under which an alert could negatively impact user experience.
0
11,256,234
06/29/2012 04:53:55
679,821
02/13/2011 04:49:23
31
0
my internet connection is lost immediately after login to my asp.net CRM site,what is the issue?
I have a crm website written in asp.net after I run in inside VS2010 and login to website all my connection is lost.Indeed, I have ping to sites like yahoo and google .But I am not able to browse any website in any of my browsers(i.e safari,IE,Firefox,Chrome).Sometimes it gives negxil error. I have not written that CRM website,actually my friend gave me to run it on my computer.After login I cleaned all the cookies and also check internet connection tab in IE tools option and checked if any proxy has been set but none of it happens. Please help thanks in advance
asp.net
null
null
null
null
06/29/2012 11:46:16
off topic
my internet connection is lost immediately after login to my asp.net CRM site,what is the issue? === I have a crm website written in asp.net after I run in inside VS2010 and login to website all my connection is lost.Indeed, I have ping to sites like yahoo and google .But I am not able to browse any website in any of my browsers(i.e safari,IE,Firefox,Chrome).Sometimes it gives negxil error. I have not written that CRM website,actually my friend gave me to run it on my computer.After login I cleaned all the cookies and also check internet connection tab in IE tools option and checked if any proxy has been set but none of it happens. Please help thanks in advance
2
6,952,815
08/05/2011 07:21:14
74,384
03/05/2009 19:00:30
351
1
Jquery image slider/gallery for images of different sizes
I have a few different sized images that I would like to display in a simple jquery gallery with forward and back navigation. Is there a jquery plugin that is made for this? Most of the ones I find are made for images that are the same size. Thanks!
jquery
image-gallery
null
null
null
07/05/2012 18:11:30
not constructive
Jquery image slider/gallery for images of different sizes === I have a few different sized images that I would like to display in a simple jquery gallery with forward and back navigation. Is there a jquery plugin that is made for this? Most of the ones I find are made for images that are the same size. Thanks!
4
2,280,162
02/17/2010 11:27:08
275,111
02/17/2010 09:51:22
1
0
error-Video submission queued for processing.
in drupal after uploading video in video module,and when viewing preview, this message is coming- Video submission queued for processing. Please wait: our servers are preparing your video for web displaying.
video
drupal
null
null
null
null
open
error-Video submission queued for processing. === in drupal after uploading video in video module,and when viewing preview, this message is coming- Video submission queued for processing. Please wait: our servers are preparing your video for web displaying.
0
7,763,236
10/14/2011 05:01:19
657,256
03/13/2011 05:40:03
20
1
UIImage from a URL that change by date
my question is simple, i want to load a UIImage from an URL, but this URL change programmatically by date. Example Today the url is "http://www.abc.com/2011-10-13/alfa.jpg" tomorrow is "http://www.abc.com/2011-10-14/alfa.jpg" the only thing that change is the date part, how can i figure my app load that "alfa.jpg" at current date everytime i start it? Thanks!
iphone
ios
uiimage
nsurl
null
null
open
UIImage from a URL that change by date === my question is simple, i want to load a UIImage from an URL, but this URL change programmatically by date. Example Today the url is "http://www.abc.com/2011-10-13/alfa.jpg" tomorrow is "http://www.abc.com/2011-10-14/alfa.jpg" the only thing that change is the date part, how can i figure my app load that "alfa.jpg" at current date everytime i start it? Thanks!
0
10,847,975
06/01/2012 09:44:20
1,425,804
05/30/2012 10:37:17
1
0
How to animate a image up and down smoothly. iphone
I want to animate a image up and down smoothly. Any one has idea how to do it..
iphone
ios
ipad
uianimation
null
06/07/2012 12:58:03
not a real question
How to animate a image up and down smoothly. iphone === I want to animate a image up and down smoothly. Any one has idea how to do it..
1
6,429,512
06/21/2011 17:34:27
559,744
01/01/2011 11:15:13
157
2
What can be implemented to prevent any tables from being changed?
Q2. You want to prevent changes to tables in one of the databases in your SQL Server instance since changes to any of the tables can cause the associated client application to stop functioning. What can be implemented to prevent any tables from being changed? a. A stored procedure b. A database‐level DDL trigger c. A DML trigger d. A server‐level DDL trigger thanks
sql
null
null
null
null
06/22/2011 13:57:57
not constructive
What can be implemented to prevent any tables from being changed? === Q2. You want to prevent changes to tables in one of the databases in your SQL Server instance since changes to any of the tables can cause the associated client application to stop functioning. What can be implemented to prevent any tables from being changed? a. A stored procedure b. A database‐level DDL trigger c. A DML trigger d. A server‐level DDL trigger thanks
4
7,801,777
10/18/2011 02:24:44
741,099
05/06/2011 05:03:32
640
2
Passing Multidimensional JSON Array to jQuery Function
I have a PHP array that I want to pass to the jQuery function that called it. However when I tried to retrieve the value of 'lat' the way i did below, I get the error `Cannot read property 'lat' of null`, obviously because I dont know how to access a multidimensional JSON array. Can anyone show me how? **PHP Array** Array ( [0] => Array ( [price] => 1600 [bedroom] => 1 [lat] => -71.119385 [lng] => 42.373917 [distance] => 6.65195429565453 ) [1] => Array ( [price] => 1800 [bedroom] => 1 [lat] => -71.104248 [lng] => 42.368172 [distance] => 4.957829810472103 ) } This gets encoded into **JSON** [{"price":"1600","bedroom":"1","lat":"-71.119385","lng":"42.373917","distance":"6.65195429565453"},{"price":"1800","bedroom":"1","lat":"-71.104248","lng":"42.368172","distance":"4.957829810472103"}] **jQuery** $(function() { $("#search_button").click(function(e){ e.preventDefault(); var search_location = $("#search_location").val(); $.getJSON('index.php/main/get_places', {search_location: search_location}, function(json){ $("#result").html(json.lat); console.log(json.lat); }); }); });
php
javascript
jquery
ajax
json
null
open
Passing Multidimensional JSON Array to jQuery Function === I have a PHP array that I want to pass to the jQuery function that called it. However when I tried to retrieve the value of 'lat' the way i did below, I get the error `Cannot read property 'lat' of null`, obviously because I dont know how to access a multidimensional JSON array. Can anyone show me how? **PHP Array** Array ( [0] => Array ( [price] => 1600 [bedroom] => 1 [lat] => -71.119385 [lng] => 42.373917 [distance] => 6.65195429565453 ) [1] => Array ( [price] => 1800 [bedroom] => 1 [lat] => -71.104248 [lng] => 42.368172 [distance] => 4.957829810472103 ) } This gets encoded into **JSON** [{"price":"1600","bedroom":"1","lat":"-71.119385","lng":"42.373917","distance":"6.65195429565453"},{"price":"1800","bedroom":"1","lat":"-71.104248","lng":"42.368172","distance":"4.957829810472103"}] **jQuery** $(function() { $("#search_button").click(function(e){ e.preventDefault(); var search_location = $("#search_location").val(); $.getJSON('index.php/main/get_places', {search_location: search_location}, function(json){ $("#result").html(json.lat); console.log(json.lat); }); }); });
0
11,627,438
07/24/2012 08:57:47
1,511,456
07/09/2012 08:47:17
28
0
where i can download google earth api for asp.net web application
I want to create a web application with Google earth. But i can't download the asp.net Google Earth API. Is there is any way to create a Google earth application? Please give some idea to create this application. Thanks in advance..
c#
asp.net
google-earth
null
null
07/24/2012 13:14:13
not a real question
where i can download google earth api for asp.net web application === I want to create a web application with Google earth. But i can't download the asp.net Google Earth API. Is there is any way to create a Google earth application? Please give some idea to create this application. Thanks in advance..
1
11,749,758
07/31/2012 22:10:35
1,098,960
12/15/2011 01:08:14
75
1
Getting the WCF SessionID in the Client
I am writing a WCF client and am using a ChannelFactory to create my proxy to my Service: var proxy = ChannelFactory<MyServiceInterface>.CreateChannel( new BasicHttpBinding(), new EndpointAddress("http://localhost:8000/")); How would I go about getting the SessionID? The proxy only has the basic Object methods as well as the ones defined in MyServiceInterface. Thank you in advance.
c#
wcf
soa
null
null
null
open
Getting the WCF SessionID in the Client === I am writing a WCF client and am using a ChannelFactory to create my proxy to my Service: var proxy = ChannelFactory<MyServiceInterface>.CreateChannel( new BasicHttpBinding(), new EndpointAddress("http://localhost:8000/")); How would I go about getting the SessionID? The proxy only has the basic Object methods as well as the ones defined in MyServiceInterface. Thank you in advance.
0
1,415,850
09/12/2009 19:01:49
168,188
09/03/2009 22:03:03
3
3
compile php5 on centos with --enable-pcntl
I am trying to enable pcntl on my php on centos. I see I am suppose to do a ./configure make build but have not ever done it. Could someone give me some direction?
centos
compilation
null
null
null
null
open
compile php5 on centos with --enable-pcntl === I am trying to enable pcntl on my php on centos. I see I am suppose to do a ./configure make build but have not ever done it. Could someone give me some direction?
0
8,534,331
12/16/2011 12:44:01
1,101,948
12/16/2011 12:36:22
1
0
Needed any sample website for performance testing like load testing
Can anyone please provide me link of any sample website on which I can practice for Load testing. Thanks in advance.
load-testing
null
null
null
null
12/20/2011 19:54:48
not a real question
Needed any sample website for performance testing like load testing === Can anyone please provide me link of any sample website on which I can practice for Load testing. Thanks in advance.
1
4,568,553
12/31/2010 06:32:55
357,314
06/03/2010 09:53:37
495
8
MVC in PHP - fat model or fat controller ?
From my understanding there are two ways this pattern is applied. The main difference is the the amount of business logic you write in the model or controller. Type 1 is a fat controller like in CodeIgniter. Type 2 is a fat model like in Zend. Is one of the approach better the the other and why?
php
mvc
zend-framework
codeigniter
null
01/23/2012 19:45:57
not constructive
MVC in PHP - fat model or fat controller ? === From my understanding there are two ways this pattern is applied. The main difference is the the amount of business logic you write in the model or controller. Type 1 is a fat controller like in CodeIgniter. Type 2 is a fat model like in Zend. Is one of the approach better the the other and why?
4
8,502,365
12/14/2011 09:44:33
1,028,877
11/04/2011 01:11:09
11
0
music player library
What is the best free music player .NET library that can play major music format such as AAC , MP3 , AIFF, WAV, .AIF, and .MID ? I have heard of Naudio but it can only play a few file format. Can someone give me any viable suggestions? I would prefer a free library.
c#
audio
mp3
itunes
music
12/15/2011 16:22:02
not constructive
music player library === What is the best free music player .NET library that can play major music format such as AAC , MP3 , AIFF, WAV, .AIF, and .MID ? I have heard of Naudio but it can only play a few file format. Can someone give me any viable suggestions? I would prefer a free library.
4
7,401,291
09/13/2011 11:44:15
176,484
09/21/2009 10:04:12
191
18
Getting the height of an image with jQuery from Flickr without loading the image file?
I'm currently working on a jQuery solution where I want to load images from a Flickr RSS-feed. I'm not satisfied with the default size I get from the feed though - I want the images I load to be equal to or higher than the **height** of the wrapper element I'm displaying them in. (Width is not a problem here.) According to their [API documentation][1], Flickr has an image size system that looks like this: s small square 75x75 t thumbnail, 100 on longest side m small, 240 on longest side - medium, 500 on longest side z medium 640, 640 on longest side b large, 1024 on longest side* o original image, either a jpg, gif or png, depending on source format * Before May 25th 2010 large photos only exist for very large original images This means that there is no guaranteed height - I need to check the height for each image I want to load. An example: if an image is a panorama and I load the large size, the height is probably still not enough to fill out my wrapper element. This is because the longest side will be the width and it will be 1024. To complicate things, the height of the wrapper can vary - not dynamically after the page has loaded, but from page to page. On some pages it's 300 pixels, on others it's 100 pixels and so on. As far as I understand the only way to get the height of an image file is to actually load it. So I have written some recursive code that loads an image, look's at its height and if it's not sufficient it calls itself again to load the next size. In the current version it starts with the smallest size and works its way up until it finds a suitable image or the biggest image possible. Here's the code: $.getJSON(ajaxContentURL, function(data) { var flickrImages = []; // An array of object with data pertaining Flickr's image sizes var flickrImageSizes = [{ size: "small square", pixels: 75, letter: "_s" }, { size: "thumbnail", pixels: 100, letter: "_t" }, { size: "small", pixels: 240, letter: "_m" }, { size: "medium", pixels: 500, letter: "" }, { size: "medium 640", pixels: 640, letter: "_z" }, { size: "large", pixels: 1024, letter: "_b"}]; $.each(data.items, function(index, item) { flickrImages.push(loadFlickrImage(item, 0)); }); function loadFlickrImage(item, sizeIndex) { var path = item.media.m; var imgSrc = path.replace("_m", flickrImageSizes[sizeIndex].letter); var tempImg = $("<img />").attr("src", imgSrc); tempImg.load(function() { // Is it still smaller? Load next size if (this.height < el.data("scrollableAreaHeight")) { // Load a bigger image, if possible if ((sizeIndex + 1) < flickrImageSizes.length) { loadFlickrImage(item, sizeIndex + 1); } else { return this; } else { return this; } }); } }); It's a litte rough around the edges, but I hope you get the picture. This works, but it just seems so wasteful to have to load so many versions of an image just to get the right size? Do you have any suggestions for improvements? I'm thinking that it should start by making a qualified guess at which could be the best size and load it first. Then it would see if it fits or if it's too small or too big and load the next or previous image on the size scale. That way you could reduce the amount of images to load just to get the right size. Even better: is there a way to find out the image sizes without loading the actual image files? Remember that I don't have access to the complete Flickr API - I'm just accessing a JSON-feed, [like this one][2]. I'd appreciate any feedback! Thanks in advance! [1]: http://www.flickr.com/services/api/misc.urls.html [2]: http://api.flickr.com/services/feeds/groups_pool.gne?id=34427469792@N01&format=json&jsoncallback=?
jquery
ajax
image
rss
flickr
null
open
Getting the height of an image with jQuery from Flickr without loading the image file? === I'm currently working on a jQuery solution where I want to load images from a Flickr RSS-feed. I'm not satisfied with the default size I get from the feed though - I want the images I load to be equal to or higher than the **height** of the wrapper element I'm displaying them in. (Width is not a problem here.) According to their [API documentation][1], Flickr has an image size system that looks like this: s small square 75x75 t thumbnail, 100 on longest side m small, 240 on longest side - medium, 500 on longest side z medium 640, 640 on longest side b large, 1024 on longest side* o original image, either a jpg, gif or png, depending on source format * Before May 25th 2010 large photos only exist for very large original images This means that there is no guaranteed height - I need to check the height for each image I want to load. An example: if an image is a panorama and I load the large size, the height is probably still not enough to fill out my wrapper element. This is because the longest side will be the width and it will be 1024. To complicate things, the height of the wrapper can vary - not dynamically after the page has loaded, but from page to page. On some pages it's 300 pixels, on others it's 100 pixels and so on. As far as I understand the only way to get the height of an image file is to actually load it. So I have written some recursive code that loads an image, look's at its height and if it's not sufficient it calls itself again to load the next size. In the current version it starts with the smallest size and works its way up until it finds a suitable image or the biggest image possible. Here's the code: $.getJSON(ajaxContentURL, function(data) { var flickrImages = []; // An array of object with data pertaining Flickr's image sizes var flickrImageSizes = [{ size: "small square", pixels: 75, letter: "_s" }, { size: "thumbnail", pixels: 100, letter: "_t" }, { size: "small", pixels: 240, letter: "_m" }, { size: "medium", pixels: 500, letter: "" }, { size: "medium 640", pixels: 640, letter: "_z" }, { size: "large", pixels: 1024, letter: "_b"}]; $.each(data.items, function(index, item) { flickrImages.push(loadFlickrImage(item, 0)); }); function loadFlickrImage(item, sizeIndex) { var path = item.media.m; var imgSrc = path.replace("_m", flickrImageSizes[sizeIndex].letter); var tempImg = $("<img />").attr("src", imgSrc); tempImg.load(function() { // Is it still smaller? Load next size if (this.height < el.data("scrollableAreaHeight")) { // Load a bigger image, if possible if ((sizeIndex + 1) < flickrImageSizes.length) { loadFlickrImage(item, sizeIndex + 1); } else { return this; } else { return this; } }); } }); It's a litte rough around the edges, but I hope you get the picture. This works, but it just seems so wasteful to have to load so many versions of an image just to get the right size? Do you have any suggestions for improvements? I'm thinking that it should start by making a qualified guess at which could be the best size and load it first. Then it would see if it fits or if it's too small or too big and load the next or previous image on the size scale. That way you could reduce the amount of images to load just to get the right size. Even better: is there a way to find out the image sizes without loading the actual image files? Remember that I don't have access to the complete Flickr API - I'm just accessing a JSON-feed, [like this one][2]. I'd appreciate any feedback! Thanks in advance! [1]: http://www.flickr.com/services/api/misc.urls.html [2]: http://api.flickr.com/services/feeds/groups_pool.gne?id=34427469792@N01&format=json&jsoncallback=?
0
10,363,161
04/28/2012 11:44:39
1,362,813
04/28/2012 11:37:04
1
0
Modal plugin of Bootstrap 2 is not displayed by the center
I use bootstrap modal plugin. But modal dialog is not shown in center. Why? my mistake? http://dl.dropbox.com/u/573972/stackoverflow/bootstrap/modal.html <!DOCTYPE html> <head> <meta charset="utf-8"> <title>test</title> <meta name="description" content=""> <meta name="author" content=""> <!-- Mobile Specific--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- CSS--> <link rel="stylesheet" href="bootstrap.min.css"> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7/jquery.min.js'></script> </head> <body> <div id="login" class="modal"> <div class="modal-header"> <h3>Login to Room fuga</h3> </div> <div class="modal-body"> hogehoge </div> </div> <script src="bootstrap.min.js"> </script> <script> $('#login').modal(); </script> </body> </html>
jquery
bootstrap
null
null
null
null
open
Modal plugin of Bootstrap 2 is not displayed by the center === I use bootstrap modal plugin. But modal dialog is not shown in center. Why? my mistake? http://dl.dropbox.com/u/573972/stackoverflow/bootstrap/modal.html <!DOCTYPE html> <head> <meta charset="utf-8"> <title>test</title> <meta name="description" content=""> <meta name="author" content=""> <!-- Mobile Specific--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- CSS--> <link rel="stylesheet" href="bootstrap.min.css"> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7/jquery.min.js'></script> </head> <body> <div id="login" class="modal"> <div class="modal-header"> <h3>Login to Room fuga</h3> </div> <div class="modal-body"> hogehoge </div> </div> <script src="bootstrap.min.js"> </script> <script> $('#login').modal(); </script> </body> </html>
0
6,690,559
07/14/2011 08:40:32
844,147
07/14/2011 08:40:32
1
0
Count the number of <br>'s with jQuery
How can I count the number of `<br>` tags from a `<pre>` element ? (using jQuery)
javascript
jquery
html
br
null
null
open
Count the number of <br>'s with jQuery === How can I count the number of `<br>` tags from a `<pre>` element ? (using jQuery)
0
7,153,777
08/22/2011 21:24:08
886,545
08/09/2011 18:27:37
18
1
Ordered List in XML in Android?
I am trying to make an ordered list from XML in a textview. This list would be bulleted and properly justified with subheadings. Unfortunately, it seems that the support for this in the xml is minimal. I have tried the following in strings.xml: <ol> <li> item 1\n <li>sub-item1\n</li> <li>sub-item2\n</li> </li> <li>item2\n</li> <li>item3</li> </ol> with various permutations having ol around each item etc etc. The result typically shows subitem2 and item 2 being indented away from the bullet. I have been really scratching my head on this one. Any guidance on this would be great.
android
html-lists
null
null
null
null
open
Ordered List in XML in Android? === I am trying to make an ordered list from XML in a textview. This list would be bulleted and properly justified with subheadings. Unfortunately, it seems that the support for this in the xml is minimal. I have tried the following in strings.xml: <ol> <li> item 1\n <li>sub-item1\n</li> <li>sub-item2\n</li> </li> <li>item2\n</li> <li>item3</li> </ol> with various permutations having ol around each item etc etc. The result typically shows subitem2 and item 2 being indented away from the bullet. I have been really scratching my head on this one. Any guidance on this would be great.
0
11,671,419
07/26/2012 14:22:52
1,417,294
05/25/2012 11:42:15
1
1
cut copy paste as in windows forms designer
I am trying to implement the cut, copy, paste operations where the users can copy/paste the windows form controls created by them. Its something similar to Visual studio windows forms designer where the users can copy/paste the controls in the designer. How can I achieve this functionality? Thanks, Neo
c#
winforms
null
null
null
07/27/2012 12:22:03
not a real question
cut copy paste as in windows forms designer === I am trying to implement the cut, copy, paste operations where the users can copy/paste the windows form controls created by them. Its something similar to Visual studio windows forms designer where the users can copy/paste the controls in the designer. How can I achieve this functionality? Thanks, Neo
1
6,391,651
06/17/2011 20:48:23
803,928
06/17/2011 20:44:51
1
0
javascript function on click not working
I have a function which prints bar code and I want to make a click event, but when I am calling my function using javascript on click, its not working, please find the code below? I am able to view it on page without onclick. I want to call get_object(id) <script type="text/javascript" src="code39.js"></script> <div id="externalbox" style="width:5in"> <div id="inputdata" >110091</div> </div> <script language="javascript" type="text/javascript"> function get_object(id) { var object = null; if (document.layers) { object = document.layers[id]; } else if (document.all) { object = document.all[id]; } else if (document.getElementById) { object = document.getElementById(id); } return object; } get_object("inputdata").innerHTML=DrawCode39Barcode(get_object("inputdata").innerHTML,0); </script> <button type="button" button data-theme="b" id="submit" onclick "get_object("110091")">theater</button>
javascript
jquery
html5
null
null
07/17/2011 04:54:12
not a real question
javascript function on click not working === I have a function which prints bar code and I want to make a click event, but when I am calling my function using javascript on click, its not working, please find the code below? I am able to view it on page without onclick. I want to call get_object(id) <script type="text/javascript" src="code39.js"></script> <div id="externalbox" style="width:5in"> <div id="inputdata" >110091</div> </div> <script language="javascript" type="text/javascript"> function get_object(id) { var object = null; if (document.layers) { object = document.layers[id]; } else if (document.all) { object = document.all[id]; } else if (document.getElementById) { object = document.getElementById(id); } return object; } get_object("inputdata").innerHTML=DrawCode39Barcode(get_object("inputdata").innerHTML,0); </script> <button type="button" button data-theme="b" id="submit" onclick "get_object("110091")">theater</button>
1
6,502,086
06/28/2011 05:44:10
816,819
07/21/2010 04:27:08
6
1
Help Me optimize my code
Please help me optimize this page. Please give me suggestions to improve performance of this page. Best place to place javascripts? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>:: testurl.com :: testurl's Choice ::</title> <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, projection" /> <link rel="stylesheet" href="css/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="css/main.css" type="text/css" /> <![if !IE]><LINK rel="shortcut icon" href="images/favicon.ico"><![endif]> <!--[if IE]><link rel="stylesheet" href="css/ie.css" type="text/css" media="screen, projection"/><![endif]--> </head> <body> <div id="page" class="container unauthenticated"> <!-- Header DIV Start --> <div id="header" class="span-20"> <div class="header_bg"> <div class="frLogo"><a href="http://testurl.com">testurl.com</a></div> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxxx"; /* 468x60, created 6/20/11 */ google_ad_slot = "4025949233"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone></g:plusone> <div style="background-color:#FFFF00; font-weight:bolder;color:black; width:100%;text-align:center; width:99.5%; text-decoration:none; line-height:30px; border-bottom:1px solid #bacdb7; border-top:1px solid #bacdb7; margin-top:4px;border:4px ridge brown;" class="lf"><strong><font size="+1" color="#00000f"><marquee width="100%" scrolldelay="100" direction="left"><a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/eeee" title="Click here to get JNTU-UPDATES (Common Channel For All The 3 Regions) SMS Alerts on your mobile for FREE!">Click here to get JNTU-UPDATES (Common Channel For All The 3 Regions) SMS Alerts on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/eeeeee" title="Click here to get JNTU-HYDERABAD updates directly on your mobile for FREE!">Click here to get JNTU-HYDERABAD updates directly on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/eeeee" title="Click here to get JNTU-KAKINADA updates directly on your mobile for FREE!">Click here to get JNTU-KAKINADA updates directly on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/JNTUeeee-UPDATES" title="Click here to get JNTU-ANANTAPUR updates directly on your mobile for FREE!">Click here to get JNTU-ANANTAPUR updates directly on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/testurl-Jobs" title="Click here to get the Latest Job Updates/Alerts directly on your mobile for FREE!">Click here to get the Latest Job Updates/Alerts directly on your mobile for FREE!</a></marquee></font></strong> </div> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxxxxx"; /* 728x15, created 6/20/11 */ google_ad_slot = "1844434075"; google_ad_width = 728; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </div> <!-- Header DIV End --> <!-- Main Content Area Start --> <div class="span-20"> <div class="span-20"> </div> <div class="span-3 left addContainer"> <div class="frAdds"> <!-- Javascript tag: --> <!-- begin ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Skyscraper - 120 x 600 --> <script language="JavaScript"> var zflag_nid="xxx"; var zflag_cid="weqweqw132123/231123"; var zflag_sid="213213"; var zflag_width="120"; var zflag_height="600"; var zflag_sz="8"; </script> <script language="JavaScript" src="http://d8.zedo.com/jsc/d8/fo.js"></script> <!-- Start of StatCounter Code --> <script type="text/javascript"> var sc_project=xxxxxxxxxx; var sc_invisible=1; var sc_security="xxxxxx"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script> <!-- End of StatCounter Code --> <!-- end ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Skyscraper - 120 x 600 --> </div> <div class="frAdds"><script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxx"; /* 120x600, created 8/15/10 */ google_ad_slot = "5276530012"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> </div> <div class="span-14 mainContainer left"> <!-- Top Container Content Area Start --> <div class="topContainer mainContainer"> <h4 class="heading">LATEST UPDATES</h4> <iframe src="wp-content/latestposts.php" marginwidth="0" marginheight="0" border="0" height="100%" width="100%" scrolling="no" id="latestframe1"> </iframe> </div> <!-- Top Container Content Area End--> <!-- Fixed Add Start --> <div class="frAddBlock"> <!-- Javascript tag: --> <!-- begin ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Super Banner - 728 x 90 --> <script language="JavaScript"> var zflag_nid="1233"; var zflag_cid="123123/323/21323"; var zflag_sid="169"; var zflag_width="728"; var zflag_height="90"; var zflag_sz="14"; </script> <script language="JavaScript" src="http://d8.zedo.com/jsc/d8/fo.js"></script> <!-- end ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Super Banner - 728 x 90 --> </div> <!-- Fixed Add End--> <!-- bottom Container Content Area Start --> <div class="bottomContainer"> <ul> <li><a href="http://testurl.com/jntu/jntu-hyderabad-academic-calender-of-234-years-b-techb-pharm-promotion-rules-for-academic-year-2011-12/" target="_blank">JNTU-HYDERABAD : Academic Calendar of 2,3 &#038; 4 Year&#8217;s B.Tech/B.Pharm &#038; Promotion Rules For Academic Year 2011-12.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-third-convocation-notification-for-all-ug-pg-and-ph-d-candidates-who-qualified-for-degree-in-2011/" target="_blank">JNTU-ANANTAPUR : Third Convocation Notification For All UG, PG and PH.D Candidates Who Qualified For Degree in 2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-4-2-b-techb-pharmacy-r07-advance-supple-exams-april-2011-results/" target="_blank">JNTU-ANANTAPUR : 4-2 B.Tech/B.Pharmacy (R07) Advanced Supple Exams April-2011 Results.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-b-pharmacy-23-4-years-regularsupple-i-ii-sems-all-regulations-aprilmay-2011/" target="_blank">JNTU-HYDERABAD : B.Pharmacy 2,3 &#038; 4 Years Regular/Supple (I &#038; II Sem&#8217;s) &#8211; All Regulations &#8211; April/May-2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-promotions-rules-from-ii-to-iii-year-iii-to-iv-year-for-the-academic-year-2011-2012/" target="_blank">JNTU-KAKINADA : Promotions Rules from II to III Year &#038; III to IV Year for the Academic Year 2011 -2012.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-m-tech-i-semester-r09-r05-regularsupplementary-examination-april-2011-results/" target="_blank">JNTU-KAKINADA : M.Tech I Semester [R09 &#038; R05] Regular/Supplementary Examination April-2011 Results.</a></li> <li><a href="http://testurl.com/results/rmcaat-rmcaat-exam-result-2011/" target="_blank">(RMCAAT) RMCAAT Exam Result 2011.</a></li> <li><a href="http://testurl.com/results/krishna-university-mbamca-i-semester-janfeb-2011-results/" target="_blank">Krishna University : MBA/MCA I Semester Jan/Feb 2011 Results.</a></li> <li><a href="http://testurl.com/results/bangalore-university-ba-vi-semester-results/" target="_blank">Bangalore University : BA VI Semester Results.</a></li> <li><a href="http://testurl.com/results/mbosp-ssc-examination-result-2011/" target="_blank">(MBOSP) SSC Examination Result 2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-course-structure-syllabus-for-download-b-tech-ece-eee-petroleum-engg-chemical-engg-petrol-chemical-engg-ii-year-r10-students/" target="_blank">JNTU-KAKINADA : Course Structure &#038; Syllabus for Download &#8211; B.Tech ECE, EEE, Petroleum Engg, Chemical Engg &#038; Petrol-chemical Engg &#8211; II Year R10 Students.</a></li> <li><a href="http://testurl.com/results/punjab-board-of-school-education-matriculationclass-x-examination-2011-results-matriculation-examination-additionaldiccompartmentopen-school-march-2011/" target="_blank">Punjab Board of School Education : Matriculation(Class X) Examination 2011 Results &#038; Matriculation Examination Additional/Dic/Compartment/Open School March 2011.</a></li> <li><a href="http://testurl.com/results/nagarjuna-university-m-sc-food-nutritional-science-rank-card-download/" target="_blank">Nagarjuna University : M.Sc Food &#038; Nutritional Science Rank Card &#8211; Download.</a></li> <li><a href="http://testurl.com/hall-tickets/lpcet-2011-hall-tickets-for-download/" target="_blank">LPCET-2011 : Hall-Tickets for Download.</a></li> <li><a href="http://testurl.com/hall-tickets/diet-cet-2011-marks-rank-card/" target="_blank">DIET-CET 2011 : Marks &#038; Rank Card.</a></li> <li><a href="http://testurl.com/results/diet-cet-2011-final-key/" target="_blank">DIET-CET 2011 Final KEY.</a></li> <li><a href="http://testurl.com/results/rpet-rpet-exam-result-2011/" target="_blank">(RPET) RPET Exam Result 2011.</a></li> <li><a href="http://testurl.com/hall-tickets/anu-pgcet-2011-hall-tickets-integrated-mba-download/" target="_blank">ANU PGCET-2011 Hall Tickets (Integrated MBA) &#8211; Download.</a></li> <li><a href="http://testurl.com/hall-tickets/ou-pgcet-hall-tickets-2011-download/" target="_blank">OU PGCET HALL TICKETS &#8211; 2011 &#8211; Download.</a></li> <li><a href="http://testurl.com/time-tables-2/aposs-supplementary-examinations-timetable/" target="_blank">APOSS &#8211; Supplementary Examinations &#8211; TIMETABLE.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-mca-examination-recountingrevaluation-results-january-2011/" target="_blank">JNTU-HYDERABAD : MCA Examination Recounting/Revaluation Results &#8211; January 2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-b-techb-pharmacy-3-2-semester-r07-regular-exams-results-aprilmay-2011/" target="_blank">JNTU-ANANTAPUR : B.Tech/B.Pharmacy 3-2 Semester (R07) Regular Exams Results-April/May-2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-mba-mca-iii-iv-v-sem-reg-supple-julyaug-2011-exams-notifications/" target="_blank">JNTU-ANANTAPUR : MBA &#038; MCA III, IV &#038; V Sem Reg &#038; Supple July/Aug-2011 Exams Notifications.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-ii-iii-b-pharmacy-ii-semester-r07nr-or-regularsupplementary-examination-results-aprilmay-2011/" target="_blank">JNTU-KAKINADA : II &#038; III B.Pharmacy II Semester [R07,NR &#038; OR] Regular/Supplementary Examination Results April/May-2011.</a></li> <li><a href="http://testurl.com/eamcet/eamcet-2011-medicine-expected-ranks-based-on-eamcet-marks/" target="_blank">EAMCET 2011 Medicine Expected Ranks based on Eamcet Marks</a></li> <li><a href="http://testurl.com/eamcet/eamcet-2011-engineering-expected-ranks-based-on-eamcet-marks/" target="_blank">EAMCET 2011 Engineering Expected Ranks based on Eamcet Marks</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-b-tech-3-2-semester-regularsupplementary-exams-r07-r05-rr-nr-april-2011-results/" target="_blank">JNTU-HYDERABAD : B.Tech 3-2 Semester Regular/Supplementary Exams (R07, R05, RR &#038; NR) April-2011 Results.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyd-b-tech-3-2-semester-regularsupplementary-exams-r07-r05-rr-nr-results-april-2011-are-out/" target="_blank">JNTU-HYD : B.Tech 3-2 Semester Regular/Supplementary Exams (R07, R05, RR , NR) Results-April 2011 Are Out</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-ii-b-tech-ii-semester-regularsupplementary-examinations-r07-r05-rr-may-2011-results/" target="_blank">JNTU-KAKINADA : II B.Tech II Semester Regular/Supplementary Examinations (R07, R05 &#038; RR)- May-2011 Results.</a></li> <li><a href="http://testurl.com/loans/axis-bank-education-loan/" target="_blank">Axis Bank &#8211; Education Loan</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-mechanical-engineering-r09-course-structure-and-all-four-years-syllabus-2011-12/" target="_blank">JNTU-ANANTAPUR : Mechanical Engineering (R09) Course Structure and All Four Years Syllabus 2011-12.</a></li> <li><a href="http://testurl.com/loans/state-bank-of-india-sbi-education-loan/" target="_blank">State Bank Of India &#8211; SBI &#8211; Education Loan</a></li> <li><a href="http://testurl.com/general/free-complimentary-passes-for-celebrity-cricket-league-vizag-hyderabad/" target="_blank">Free Complimentary Passes for Celebrity Cricket League @ Vizag &#038; Hyderabad</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-b-tech-aeronautical-engg-iii-year-i-semester-r09-syllabus-course-structure/" target="_blank">JNTU-HYDERABAD : B.Tech Aeronautical Engg III Year I Semester (R09) Syllabus &#038; Course Structure.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-pharm-d-iii-year-regular-exams-rc-results/" target="_blank">JNTU-ANANTAPUR : Pharm.D III Year Regular Exams RC Results.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-4-2-recountingrevaluation-results-april-2011/" target="_blank">JNTU-HYDERABAD : 4-2 B.Tech Recounting/Revaluation Results &#8211; April-2011.</a></li> <li><a href="http://testurl.com/eamcet/73-score-0-26-of-them-%e2%80%98qualify%e2%80%99-eamcet-exam/" target="_blank">73 score 0, 26 of them ‘qualify’ EAMCET exam</a></li> <li><a href="http://testurl.com/eamcet/chaitanya-narayana-students-top-eamcet/" target="_blank">Chaitanya, Narayana students top Eamcet</a></li> <li><a href="http://testurl.com/eamcet/senior-inspired-eamcet-topper/" target="_blank">Senior inspired Eamcet topper</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-3-2-b-tech-regularsupplementary-examinations-r07-r05-rr-may-2011-results/" target="_blank">JNTU-KAKINADA : 3-2 B.Tech Regular/Supplementary Examinations (R07, R05 &#038; RR) &#8211; May-2011 Results.</a></li> <li><a href="http://testurl.com/eamcet/a-p-eamcet-2011-results-are-released/" target="_blank">A.P EAMCET-2011 Results Are Released.</a></li> <li><a href="http://testurl.com/eamcet/eamcet-2011-toppers-list-with-marks-engineering-medicine/" target="_blank">EAMCET-2011 Toppers List With Marks (Engineering &#038; Medicine).</a></li> </ul> </div> <!-- bottom Container Content Area End--> </div> <div class="span-3 left addContainer"> <div class="frAdds"> <script type="text/javascript">var section=qweqw;var width=120;var height=600;var enc=1;var clicktag="";var pop=0;</script><script type="text/javascript" src="http://cdn.atomex.net/static/js/ads-min.js"></script><noscript><iframe src="http://ads.atomex.net/cgi-bin/adserver.fcgi/ad?section=qweqw&width=120&height=600&type=iframe&clickTag=" height="600" width="120" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" ></iframe></noscript> <!-- END TAG --> </div> <div class="frAdds"><script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxx"; /* 120x600, created 8/15/10 */ google_ad_slot = "5276530012"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> </div> </div> <!-- Main Content Area End --> <div class="span-20"> © Copyright 2011 testurl.com. All Rights Reserved. </div> </div> </body> </html>
javascript
html
performance
null
null
06/28/2011 11:34:57
off topic
Help Me optimize my code === Please help me optimize this page. Please give me suggestions to improve performance of this page. Best place to place javascripts? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>:: testurl.com :: testurl's Choice ::</title> <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, projection" /> <link rel="stylesheet" href="css/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="css/main.css" type="text/css" /> <![if !IE]><LINK rel="shortcut icon" href="images/favicon.ico"><![endif]> <!--[if IE]><link rel="stylesheet" href="css/ie.css" type="text/css" media="screen, projection"/><![endif]--> </head> <body> <div id="page" class="container unauthenticated"> <!-- Header DIV Start --> <div id="header" class="span-20"> <div class="header_bg"> <div class="frLogo"><a href="http://testurl.com">testurl.com</a></div> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxxx"; /* 468x60, created 6/20/11 */ google_ad_slot = "4025949233"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone></g:plusone> <div style="background-color:#FFFF00; font-weight:bolder;color:black; width:100%;text-align:center; width:99.5%; text-decoration:none; line-height:30px; border-bottom:1px solid #bacdb7; border-top:1px solid #bacdb7; margin-top:4px;border:4px ridge brown;" class="lf"><strong><font size="+1" color="#00000f"><marquee width="100%" scrolldelay="100" direction="left"><a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/eeee" title="Click here to get JNTU-UPDATES (Common Channel For All The 3 Regions) SMS Alerts on your mobile for FREE!">Click here to get JNTU-UPDATES (Common Channel For All The 3 Regions) SMS Alerts on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/eeeeee" title="Click here to get JNTU-HYDERABAD updates directly on your mobile for FREE!">Click here to get JNTU-HYDERABAD updates directly on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/eeeee" title="Click here to get JNTU-KAKINADA updates directly on your mobile for FREE!">Click here to get JNTU-KAKINADA updates directly on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/JNTUeeee-UPDATES" title="Click here to get JNTU-ANANTAPUR updates directly on your mobile for FREE!">Click here to get JNTU-ANANTAPUR updates directly on your mobile for FREE!</a> *** <a target="_blank" href="http://labs.google.co.in/smschannels/subscribe/testurl-Jobs" title="Click here to get the Latest Job Updates/Alerts directly on your mobile for FREE!">Click here to get the Latest Job Updates/Alerts directly on your mobile for FREE!</a></marquee></font></strong> </div> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxxxxx"; /* 728x15, created 6/20/11 */ google_ad_slot = "1844434075"; google_ad_width = 728; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </div> <!-- Header DIV End --> <!-- Main Content Area Start --> <div class="span-20"> <div class="span-20"> </div> <div class="span-3 left addContainer"> <div class="frAdds"> <!-- Javascript tag: --> <!-- begin ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Skyscraper - 120 x 600 --> <script language="JavaScript"> var zflag_nid="xxx"; var zflag_cid="weqweqw132123/231123"; var zflag_sid="213213"; var zflag_width="120"; var zflag_height="600"; var zflag_sz="8"; </script> <script language="JavaScript" src="http://d8.zedo.com/jsc/d8/fo.js"></script> <!-- Start of StatCounter Code --> <script type="text/javascript"> var sc_project=xxxxxxxxxx; var sc_invisible=1; var sc_security="xxxxxx"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script> <!-- End of StatCounter Code --> <!-- end ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Skyscraper - 120 x 600 --> </div> <div class="frAdds"><script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxx"; /* 120x600, created 8/15/10 */ google_ad_slot = "5276530012"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> </div> <div class="span-14 mainContainer left"> <!-- Top Container Content Area Start --> <div class="topContainer mainContainer"> <h4 class="heading">LATEST UPDATES</h4> <iframe src="wp-content/latestposts.php" marginwidth="0" marginheight="0" border="0" height="100%" width="100%" scrolling="no" id="latestframe1"> </iframe> </div> <!-- Top Container Content Area End--> <!-- Fixed Add Start --> <div class="frAddBlock"> <!-- Javascript tag: --> <!-- begin ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Super Banner - 728 x 90 --> <script language="JavaScript"> var zflag_nid="1233"; var zflag_cid="123123/323/21323"; var zflag_sid="169"; var zflag_width="728"; var zflag_height="90"; var zflag_sz="14"; </script> <script language="JavaScript" src="http://d8.zedo.com/jsc/d8/fo.js"></script> <!-- end ZEDO for channel: testurl_banner , publisher: testurl , Ad Dimension: Super Banner - 728 x 90 --> </div> <!-- Fixed Add End--> <!-- bottom Container Content Area Start --> <div class="bottomContainer"> <ul> <li><a href="http://testurl.com/jntu/jntu-hyderabad-academic-calender-of-234-years-b-techb-pharm-promotion-rules-for-academic-year-2011-12/" target="_blank">JNTU-HYDERABAD : Academic Calendar of 2,3 &#038; 4 Year&#8217;s B.Tech/B.Pharm &#038; Promotion Rules For Academic Year 2011-12.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-third-convocation-notification-for-all-ug-pg-and-ph-d-candidates-who-qualified-for-degree-in-2011/" target="_blank">JNTU-ANANTAPUR : Third Convocation Notification For All UG, PG and PH.D Candidates Who Qualified For Degree in 2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-4-2-b-techb-pharmacy-r07-advance-supple-exams-april-2011-results/" target="_blank">JNTU-ANANTAPUR : 4-2 B.Tech/B.Pharmacy (R07) Advanced Supple Exams April-2011 Results.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-b-pharmacy-23-4-years-regularsupple-i-ii-sems-all-regulations-aprilmay-2011/" target="_blank">JNTU-HYDERABAD : B.Pharmacy 2,3 &#038; 4 Years Regular/Supple (I &#038; II Sem&#8217;s) &#8211; All Regulations &#8211; April/May-2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-promotions-rules-from-ii-to-iii-year-iii-to-iv-year-for-the-academic-year-2011-2012/" target="_blank">JNTU-KAKINADA : Promotions Rules from II to III Year &#038; III to IV Year for the Academic Year 2011 -2012.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-m-tech-i-semester-r09-r05-regularsupplementary-examination-april-2011-results/" target="_blank">JNTU-KAKINADA : M.Tech I Semester [R09 &#038; R05] Regular/Supplementary Examination April-2011 Results.</a></li> <li><a href="http://testurl.com/results/rmcaat-rmcaat-exam-result-2011/" target="_blank">(RMCAAT) RMCAAT Exam Result 2011.</a></li> <li><a href="http://testurl.com/results/krishna-university-mbamca-i-semester-janfeb-2011-results/" target="_blank">Krishna University : MBA/MCA I Semester Jan/Feb 2011 Results.</a></li> <li><a href="http://testurl.com/results/bangalore-university-ba-vi-semester-results/" target="_blank">Bangalore University : BA VI Semester Results.</a></li> <li><a href="http://testurl.com/results/mbosp-ssc-examination-result-2011/" target="_blank">(MBOSP) SSC Examination Result 2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-course-structure-syllabus-for-download-b-tech-ece-eee-petroleum-engg-chemical-engg-petrol-chemical-engg-ii-year-r10-students/" target="_blank">JNTU-KAKINADA : Course Structure &#038; Syllabus for Download &#8211; B.Tech ECE, EEE, Petroleum Engg, Chemical Engg &#038; Petrol-chemical Engg &#8211; II Year R10 Students.</a></li> <li><a href="http://testurl.com/results/punjab-board-of-school-education-matriculationclass-x-examination-2011-results-matriculation-examination-additionaldiccompartmentopen-school-march-2011/" target="_blank">Punjab Board of School Education : Matriculation(Class X) Examination 2011 Results &#038; Matriculation Examination Additional/Dic/Compartment/Open School March 2011.</a></li> <li><a href="http://testurl.com/results/nagarjuna-university-m-sc-food-nutritional-science-rank-card-download/" target="_blank">Nagarjuna University : M.Sc Food &#038; Nutritional Science Rank Card &#8211; Download.</a></li> <li><a href="http://testurl.com/hall-tickets/lpcet-2011-hall-tickets-for-download/" target="_blank">LPCET-2011 : Hall-Tickets for Download.</a></li> <li><a href="http://testurl.com/hall-tickets/diet-cet-2011-marks-rank-card/" target="_blank">DIET-CET 2011 : Marks &#038; Rank Card.</a></li> <li><a href="http://testurl.com/results/diet-cet-2011-final-key/" target="_blank">DIET-CET 2011 Final KEY.</a></li> <li><a href="http://testurl.com/results/rpet-rpet-exam-result-2011/" target="_blank">(RPET) RPET Exam Result 2011.</a></li> <li><a href="http://testurl.com/hall-tickets/anu-pgcet-2011-hall-tickets-integrated-mba-download/" target="_blank">ANU PGCET-2011 Hall Tickets (Integrated MBA) &#8211; Download.</a></li> <li><a href="http://testurl.com/hall-tickets/ou-pgcet-hall-tickets-2011-download/" target="_blank">OU PGCET HALL TICKETS &#8211; 2011 &#8211; Download.</a></li> <li><a href="http://testurl.com/time-tables-2/aposs-supplementary-examinations-timetable/" target="_blank">APOSS &#8211; Supplementary Examinations &#8211; TIMETABLE.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-mca-examination-recountingrevaluation-results-january-2011/" target="_blank">JNTU-HYDERABAD : MCA Examination Recounting/Revaluation Results &#8211; January 2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-b-techb-pharmacy-3-2-semester-r07-regular-exams-results-aprilmay-2011/" target="_blank">JNTU-ANANTAPUR : B.Tech/B.Pharmacy 3-2 Semester (R07) Regular Exams Results-April/May-2011.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-mba-mca-iii-iv-v-sem-reg-supple-julyaug-2011-exams-notifications/" target="_blank">JNTU-ANANTAPUR : MBA &#038; MCA III, IV &#038; V Sem Reg &#038; Supple July/Aug-2011 Exams Notifications.</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-ii-iii-b-pharmacy-ii-semester-r07nr-or-regularsupplementary-examination-results-aprilmay-2011/" target="_blank">JNTU-KAKINADA : II &#038; III B.Pharmacy II Semester [R07,NR &#038; OR] Regular/Supplementary Examination Results April/May-2011.</a></li> <li><a href="http://testurl.com/eamcet/eamcet-2011-medicine-expected-ranks-based-on-eamcet-marks/" target="_blank">EAMCET 2011 Medicine Expected Ranks based on Eamcet Marks</a></li> <li><a href="http://testurl.com/eamcet/eamcet-2011-engineering-expected-ranks-based-on-eamcet-marks/" target="_blank">EAMCET 2011 Engineering Expected Ranks based on Eamcet Marks</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-b-tech-3-2-semester-regularsupplementary-exams-r07-r05-rr-nr-april-2011-results/" target="_blank">JNTU-HYDERABAD : B.Tech 3-2 Semester Regular/Supplementary Exams (R07, R05, RR &#038; NR) April-2011 Results.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyd-b-tech-3-2-semester-regularsupplementary-exams-r07-r05-rr-nr-results-april-2011-are-out/" target="_blank">JNTU-HYD : B.Tech 3-2 Semester Regular/Supplementary Exams (R07, R05, RR , NR) Results-April 2011 Are Out</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-ii-b-tech-ii-semester-regularsupplementary-examinations-r07-r05-rr-may-2011-results/" target="_blank">JNTU-KAKINADA : II B.Tech II Semester Regular/Supplementary Examinations (R07, R05 &#038; RR)- May-2011 Results.</a></li> <li><a href="http://testurl.com/loans/axis-bank-education-loan/" target="_blank">Axis Bank &#8211; Education Loan</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-mechanical-engineering-r09-course-structure-and-all-four-years-syllabus-2011-12/" target="_blank">JNTU-ANANTAPUR : Mechanical Engineering (R09) Course Structure and All Four Years Syllabus 2011-12.</a></li> <li><a href="http://testurl.com/loans/state-bank-of-india-sbi-education-loan/" target="_blank">State Bank Of India &#8211; SBI &#8211; Education Loan</a></li> <li><a href="http://testurl.com/general/free-complimentary-passes-for-celebrity-cricket-league-vizag-hyderabad/" target="_blank">Free Complimentary Passes for Celebrity Cricket League @ Vizag &#038; Hyderabad</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-b-tech-aeronautical-engg-iii-year-i-semester-r09-syllabus-course-structure/" target="_blank">JNTU-HYDERABAD : B.Tech Aeronautical Engg III Year I Semester (R09) Syllabus &#038; Course Structure.</a></li> <li><a href="http://testurl.com/jntu/jntu-anantapur-pharm-d-iii-year-regular-exams-rc-results/" target="_blank">JNTU-ANANTAPUR : Pharm.D III Year Regular Exams RC Results.</a></li> <li><a href="http://testurl.com/jntu/jntu-hyderabad-4-2-recountingrevaluation-results-april-2011/" target="_blank">JNTU-HYDERABAD : 4-2 B.Tech Recounting/Revaluation Results &#8211; April-2011.</a></li> <li><a href="http://testurl.com/eamcet/73-score-0-26-of-them-%e2%80%98qualify%e2%80%99-eamcet-exam/" target="_blank">73 score 0, 26 of them ‘qualify’ EAMCET exam</a></li> <li><a href="http://testurl.com/eamcet/chaitanya-narayana-students-top-eamcet/" target="_blank">Chaitanya, Narayana students top Eamcet</a></li> <li><a href="http://testurl.com/eamcet/senior-inspired-eamcet-topper/" target="_blank">Senior inspired Eamcet topper</a></li> <li><a href="http://testurl.com/jntu/jntu-kakinada-3-2-b-tech-regularsupplementary-examinations-r07-r05-rr-may-2011-results/" target="_blank">JNTU-KAKINADA : 3-2 B.Tech Regular/Supplementary Examinations (R07, R05 &#038; RR) &#8211; May-2011 Results.</a></li> <li><a href="http://testurl.com/eamcet/a-p-eamcet-2011-results-are-released/" target="_blank">A.P EAMCET-2011 Results Are Released.</a></li> <li><a href="http://testurl.com/eamcet/eamcet-2011-toppers-list-with-marks-engineering-medicine/" target="_blank">EAMCET-2011 Toppers List With Marks (Engineering &#038; Medicine).</a></li> </ul> </div> <!-- bottom Container Content Area End--> </div> <div class="span-3 left addContainer"> <div class="frAdds"> <script type="text/javascript">var section=qweqw;var width=120;var height=600;var enc=1;var clicktag="";var pop=0;</script><script type="text/javascript" src="http://cdn.atomex.net/static/js/ads-min.js"></script><noscript><iframe src="http://ads.atomex.net/cgi-bin/adserver.fcgi/ad?section=qweqw&width=120&height=600&type=iframe&clickTag=" height="600" width="120" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" ></iframe></noscript> <!-- END TAG --> </div> <div class="frAdds"><script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxx"; /* 120x600, created 8/15/10 */ google_ad_slot = "5276530012"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> </div> </div> <!-- Main Content Area End --> <div class="span-20"> © Copyright 2011 testurl.com. All Rights Reserved. </div> </div> </body> </html>
2
11,537,740
07/18/2012 08:59:09
281,005
02/25/2010 07:48:46
410
35
Printing more HTML pages (different URLs) by one click
How could I work out to print more HTML pages (I have bills generated) by one click? I know one of the solution is to build one PDF with these pages, then print it, but I am wondering if there is another solution. Exporting these pages to PDF is a bit hard, as the format of the PDF would not remain the same. It's not exact.
php
html
pdf
printing
null
07/19/2012 11:44:27
not a real question
Printing more HTML pages (different URLs) by one click === How could I work out to print more HTML pages (I have bills generated) by one click? I know one of the solution is to build one PDF with these pages, then print it, but I am wondering if there is another solution. Exporting these pages to PDF is a bit hard, as the format of the PDF would not remain the same. It's not exact.
1
196,972
10/13/2008 08:05:02
1,896
08/19/2008 07:43:22
181
9
Convert string to proper case with javascript
Is there a simple way to convert a string to proper case? E.g. `john smith` becomes `John Smith`. I'm not looking for something complicated like [John Resig's solution][1], just (hopefully) some kind of one- or two-liner. [1]: http://ejohn.org/blog/title-capitalization-in-javascript/
javascript
null
null
null
null
null
open
Convert string to proper case with javascript === Is there a simple way to convert a string to proper case? E.g. `john smith` becomes `John Smith`. I'm not looking for something complicated like [John Resig's solution][1], just (hopefully) some kind of one- or two-liner. [1]: http://ejohn.org/blog/title-capitalization-in-javascript/
0
3,988,337
10/21/2010 14:08:19
475,850
10/14/2010 13:59:00
34
0
How to keep ExpandableListView in expanded status??
I use > SimpleExpandableListAdapter in my > ExpandableListActivity When user click the group row, the children list is expanded and show, when user click each child item in the expanded list, user will be navigated to the next second_Activity. Currently, when user click the back button to go back from second_Activity to the ExpandableListActivity, the expandable list is initialized as un-expanded, I would like the expandable list keep in expanded status, so that user know previously which item he has selected. How to do that? Which method from ExpandableListActivity should be override?
android
null
null
null
null
null
open
How to keep ExpandableListView in expanded status?? === I use > SimpleExpandableListAdapter in my > ExpandableListActivity When user click the group row, the children list is expanded and show, when user click each child item in the expanded list, user will be navigated to the next second_Activity. Currently, when user click the back button to go back from second_Activity to the ExpandableListActivity, the expandable list is initialized as un-expanded, I would like the expandable list keep in expanded status, so that user know previously which item he has selected. How to do that? Which method from ExpandableListActivity should be override?
0
2,423,951
03/11/2010 09:52:59
181,771
09/30/2009 11:50:25
383
7
Please Recommend a Good .NET Oriented REST book
I'm Curious if somebody could recommend a book about REST that isn't "[Effective REST Services Via .NET: For .NET Framework 3.5 (Microsoft .Net Development)][1]". One of my colleagues read it and he wasn't too impressed with it. Can anyone suggest a better one? Thanks Dave [1]: http://www.amazon.co.uk/Effective-REST-Services-Via-NET/dp/0321613252/ref=sr_1_2?ie=UTF8&s=books&qid=1268300860&sr=8-2
rest
books
recommendation
null
null
06/13/2012 13:31:52
not constructive
Please Recommend a Good .NET Oriented REST book === I'm Curious if somebody could recommend a book about REST that isn't "[Effective REST Services Via .NET: For .NET Framework 3.5 (Microsoft .Net Development)][1]". One of my colleagues read it and he wasn't too impressed with it. Can anyone suggest a better one? Thanks Dave [1]: http://www.amazon.co.uk/Effective-REST-Services-Via-NET/dp/0321613252/ref=sr_1_2?ie=UTF8&s=books&qid=1268300860&sr=8-2
4
8,780,769
01/08/2012 20:00:01
263,929
02/01/2010 22:59:30
81
1
Realtime voice recognition?
Most voice recognition solutions on Android seem to rely on remote servers. I'm interested in allowing the player to issue simple "left", "right" and "turn back" commands to a vehicle. The recognition would need to be very fast (internet is thus out of the question), but only needs to be able to distinguish between three commands.
android
voice-recognition
null
null
null
01/09/2012 20:12:12
not a real question
Realtime voice recognition? === Most voice recognition solutions on Android seem to rely on remote servers. I'm interested in allowing the player to issue simple "left", "right" and "turn back" commands to a vehicle. The recognition would need to be very fast (internet is thus out of the question), but only needs to be able to distinguish between three commands.
1
11,217,020
06/26/2012 22:49:01
651,174
03/09/2011 08:26:41
2,313
58
Uncaught Refernce Error with inline javascript
I have the following function: if ($(this).find('#sel').length == 0) { var before = $(this).text(); var title_id = $(this).parent().attr('id'); $(this).html("<select id='sel' onchange='selectdone(this, title_id=title_id)> ...</select>"); } From this I get `Uncaught ReferenceError: title_id is not defined`. Why isn't the `onchange` function inside on line 4 not picking up on the variable that I've defined previously? How would I rewrite the above correctly?
javascript
jquery
null
null
null
null
open
Uncaught Refernce Error with inline javascript === I have the following function: if ($(this).find('#sel').length == 0) { var before = $(this).text(); var title_id = $(this).parent().attr('id'); $(this).html("<select id='sel' onchange='selectdone(this, title_id=title_id)> ...</select>"); } From this I get `Uncaught ReferenceError: title_id is not defined`. Why isn't the `onchange` function inside on line 4 not picking up on the variable that I've defined previously? How would I rewrite the above correctly?
0
9,045,080
01/28/2012 12:00:32
1,168,610
01/25/2012 06:43:18
8
0
MaxSteps and Computing time issue for Solving Differential equation in Mathematica
When we solve differential equation numerically using NDSolve then sometimes we get error like **NDSolve::mxst:** _Maximum steps reached_ According to mathematica doc the solution is to increase MaxSteps. For example if you used MaxSteps -> 100 and limit of x 0 to 100 but Mathematica calculated upto the x=50 then increasing steps MaxSteps -> 200 will solve your problem. My problem is what i got from mathematica is - **During evaluation of In[212]:= NDSolve::mxst: Maximum number of 10000 steps reached at the point x == 2.1685790754404513`*^-14.** So even if i want to got from limit 0 to 2 for x then my steps should be 10^14 times larger . It will take a huge huge computing time. How much it may take for core i3 processor? **Is there any other way to compute quickly or solve this problem of maxsteps in any other way?**
performance
math
mathematica
null
null
01/28/2012 15:47:59
off topic
MaxSteps and Computing time issue for Solving Differential equation in Mathematica === When we solve differential equation numerically using NDSolve then sometimes we get error like **NDSolve::mxst:** _Maximum steps reached_ According to mathematica doc the solution is to increase MaxSteps. For example if you used MaxSteps -> 100 and limit of x 0 to 100 but Mathematica calculated upto the x=50 then increasing steps MaxSteps -> 200 will solve your problem. My problem is what i got from mathematica is - **During evaluation of In[212]:= NDSolve::mxst: Maximum number of 10000 steps reached at the point x == 2.1685790754404513`*^-14.** So even if i want to got from limit 0 to 2 for x then my steps should be 10^14 times larger . It will take a huge huge computing time. How much it may take for core i3 processor? **Is there any other way to compute quickly or solve this problem of maxsteps in any other way?**
2
3,702,469
09/13/2010 16:37:55
446,548
09/13/2010 16:37:55
1
0
What language would you use for this theoretical site?...
StackOverflow, I need to create a simple website/webpage. Basically, think of a questionnaire. So I need to create a webpage that has many forms. For example, Think, "Are you Male or Female?". If "Female" is choosen, I would like a form to pop under asking "Are You pregnant?". But this webpage will have many more questions. I know about HTML, but what about the server-side of the coding? What language should I write that in? Should I start with a designing tool like Dreamweaver? With regards to hosting, which language will be the most efficient, and thus cost me less money in processing power (servers)? Any advice would be appreciated.
server
null
null
null
null
09/13/2010 16:49:31
not a real question
What language would you use for this theoretical site?... === StackOverflow, I need to create a simple website/webpage. Basically, think of a questionnaire. So I need to create a webpage that has many forms. For example, Think, "Are you Male or Female?". If "Female" is choosen, I would like a form to pop under asking "Are You pregnant?". But this webpage will have many more questions. I know about HTML, but what about the server-side of the coding? What language should I write that in? Should I start with a designing tool like Dreamweaver? With regards to hosting, which language will be the most efficient, and thus cost me less money in processing power (servers)? Any advice would be appreciated.
1
6,143,121
05/26/2011 18:09:08
317,797
04/15/2010 17:39:09
99
19
How Can I Fix "boot failed. efi dvd/cdrom" in VMware and VirtualBox?
If you see "boot failed. efi dvd/cdrom" in either VMware or VirtualBox, you can easily fix the issue. The problem is the virtual machine is booting with an EFI boot loader. In VMware, edit <your virtual machine name>.vmx file and comment-out/remove "firmware=efi". In VirtualBox's Settings->System->Motherboard uncheck "Enable EFI (special OSes only).
vmware
virtualbox
boot
dvd
null
06/25/2011 10:13:00
not a real question
How Can I Fix "boot failed. efi dvd/cdrom" in VMware and VirtualBox? === If you see "boot failed. efi dvd/cdrom" in either VMware or VirtualBox, you can easily fix the issue. The problem is the virtual machine is booting with an EFI boot loader. In VMware, edit <your virtual machine name>.vmx file and comment-out/remove "firmware=efi". In VirtualBox's Settings->System->Motherboard uncheck "Enable EFI (special OSes only).
1
7,487,758
09/20/2011 15:32:07
8,981
09/15/2008 17:23:48
432
4
Yet another question on cross site scripting (XSS)
I have been combing the net in search of knowledge of how to go about putting together a solution to prevent XSS on our site. I know that [stackoverflow][1] has many questions and responses on the topic but there is still no real clear picture as to how to approach this. So, here is another attempt to solicit information on this topic. We have an older site which is built on a JSP Model 1 framework. The site has a captive audience - that is you have to register to be provided a username/password. The amount of data that user can actually enter is pretty limited - search criteria, bid prices and posting inventory to sell. I have been looking at the usage of a [XSS filter][2] to apply across the site. Some concerns have been raised as to that the source code is not provided with this solution and there are questions about how secure it is. I have also seen where taglibs have been used along with adding logic on the server side. I have also solicited the network ops team to see if there are any appliances plugged into the firewall that addresses the issue or parts of it and if it is applied to this application. So, what have others used to address this issue on their public facing sites and lessons learned? Thanks [1]: http://stackoverflow.com/search?q=xss [2]: http://www.servletsuite.com/servlets/xssflt.htm
java
xss
servlet-filters
xss-prevention
null
09/21/2011 08:12:04
off topic
Yet another question on cross site scripting (XSS) === I have been combing the net in search of knowledge of how to go about putting together a solution to prevent XSS on our site. I know that [stackoverflow][1] has many questions and responses on the topic but there is still no real clear picture as to how to approach this. So, here is another attempt to solicit information on this topic. We have an older site which is built on a JSP Model 1 framework. The site has a captive audience - that is you have to register to be provided a username/password. The amount of data that user can actually enter is pretty limited - search criteria, bid prices and posting inventory to sell. I have been looking at the usage of a [XSS filter][2] to apply across the site. Some concerns have been raised as to that the source code is not provided with this solution and there are questions about how secure it is. I have also seen where taglibs have been used along with adding logic on the server side. I have also solicited the network ops team to see if there are any appliances plugged into the firewall that addresses the issue or parts of it and if it is applied to this application. So, what have others used to address this issue on their public facing sites and lessons learned? Thanks [1]: http://stackoverflow.com/search?q=xss [2]: http://www.servletsuite.com/servlets/xssflt.htm
2
10,044,069
04/06/2012 13:20:56
613,318
02/11/2011 16:03:36
209
7
jQuery datePicker does not work
After clicking on input field the datepicker does not popup. Pls help, ASAP. $(document).ready(function() { var sds = document.getElementsByClassName("f_sd"); for(var i = 0; i < sds.length; i ++){ sds[i].id = i+":sd"; var id = "#"+i+":sd"; $(id).datepicker(); } });
javascript
jquery
datepicker
null
null
04/09/2012 09:04:39
too localized
jQuery datePicker does not work === After clicking on input field the datepicker does not popup. Pls help, ASAP. $(document).ready(function() { var sds = document.getElementsByClassName("f_sd"); for(var i = 0; i < sds.length; i ++){ sds[i].id = i+":sd"; var id = "#"+i+":sd"; $(id).datepicker(); } });
3
11,505,033
07/16/2012 13:09:27
663,289
03/16/2011 21:04:55
19
0
SharePoint (PS2010) External Content Type - Field Available Values
New to Extnernal Content Types, however using Sharepoint Designer 2010 I have created an ECT with a Read Item, Read List and Create. I have got this list now displayed in my Sharepoint (actually Project Server) site and can add items. However I want there to be a lookup choice for some fields (I have a RAG choice and I don't want users typing in words, but rather select Red/Green/Amber from a list). Has anyone got any information on this? I can't seem to find anything.
sharepoint
lookup
ms-project-server-2010
external-contenttype
null
null
open
SharePoint (PS2010) External Content Type - Field Available Values === New to Extnernal Content Types, however using Sharepoint Designer 2010 I have created an ECT with a Read Item, Read List and Create. I have got this list now displayed in my Sharepoint (actually Project Server) site and can add items. However I want there to be a lookup choice for some fields (I have a RAG choice and I don't want users typing in words, but rather select Red/Green/Amber from a list). Has anyone got any information on this? I can't seem to find anything.
0
7,388,109
09/11/2011 14:34:20
81,398
03/23/2009 12:30:04
1,244
33
Available Android themes for apps?
Are there any (archive of) themes/styles readily available that I can just use when I develop an app for Android, beside the ones that comes distributed with Android SDK?
android
null
null
null
null
02/09/2012 00:24:30
not constructive
Available Android themes for apps? === Are there any (archive of) themes/styles readily available that I can just use when I develop an app for Android, beside the ones that comes distributed with Android SDK?
4
5,919,934
05/07/2011 08:24:05
742,845
05/07/2011 08:24:05
1
0
SQL errors in C++
I have met some errors in my source code. I want to use sqlite3 below but it happened errors. (Please see a comment of '//some error happened') Why does it happen..? How to fix it? Please let me know... #define SQL_CONNECTION_COUNT 16 #define SQL_DB_NAME “sample.db” extern pnConnInfo g_connections[]; sqlite3 *sqlGetConnection() { int threadID = pthread_self(); //get current thread’s ID for (int i=0; i<SQL_CONNECTION_COUNT; i++) { if (g_connections [i].threadID == threadID) return g_connections [i].hConnection; } for (int i=0; i<SQL_CONNECTION_COUNT; i++) { if (g_connections [i].threadID == 0) { int rc = sqlite3_open(SQL_DB_NAME, &g_connections [i].hConnection); if (rc) //some error happened return NULL; g_connections [i].threadID = threadID; return g_connections [i].hConnection; } } return NULL; }
c++
sqlite3
null
null
null
05/08/2011 01:15:02
not a real question
SQL errors in C++ === I have met some errors in my source code. I want to use sqlite3 below but it happened errors. (Please see a comment of '//some error happened') Why does it happen..? How to fix it? Please let me know... #define SQL_CONNECTION_COUNT 16 #define SQL_DB_NAME “sample.db” extern pnConnInfo g_connections[]; sqlite3 *sqlGetConnection() { int threadID = pthread_self(); //get current thread’s ID for (int i=0; i<SQL_CONNECTION_COUNT; i++) { if (g_connections [i].threadID == threadID) return g_connections [i].hConnection; } for (int i=0; i<SQL_CONNECTION_COUNT; i++) { if (g_connections [i].threadID == 0) { int rc = sqlite3_open(SQL_DB_NAME, &g_connections [i].hConnection); if (rc) //some error happened return NULL; g_connections [i].threadID = threadID; return g_connections [i].hConnection; } } return NULL; }
1
375,725
12/17/2008 19:25:52
16,853
09/17/2008 21:33:16
753
45
How does OSGi manage interaction of components running in separate JVMs?
I have been trying to understand a bit more about the wider picture of OSGi without reading thru the entire specification. As with so many things, the [introduction][1] to what OSGi actually is was probably written by someone who had been working on it for a decade and perhaps wasn't best placed to put themselves in the mindset of someone who knows nothing about it :-) Looking at Felix's example `DictionaryService`, I don't really understand what is going on. Is OSGi a distinct instance of a JVM into which you load bundles which can then find each other? Obviously it is **not** *just* this because other answers on StackOverflow are explicit that OSGi can solve the dependency problem of a distributed system containing modules deployed within distinct JVMs (plus the FAQ keeps talking about *networks*). In this latter case, how does a component running in one JVM interact with another component in a separate JVM? Can the two components "use" each other as if they were running within the same JVM (i.e. via local method calls), and how does OSGi manage the marshalling of data across a network (do you have to use `Serializable` for example)? Or does the component author have to use some other distinct mechanism (either provided by OSGi or written themselves) for communication between remote components? Any help much appreciated! [1]: http://www.osgi.org/About/FAQ#q6
osgi
null
null
null
null
null
open
How does OSGi manage interaction of components running in separate JVMs? === I have been trying to understand a bit more about the wider picture of OSGi without reading thru the entire specification. As with so many things, the [introduction][1] to what OSGi actually is was probably written by someone who had been working on it for a decade and perhaps wasn't best placed to put themselves in the mindset of someone who knows nothing about it :-) Looking at Felix's example `DictionaryService`, I don't really understand what is going on. Is OSGi a distinct instance of a JVM into which you load bundles which can then find each other? Obviously it is **not** *just* this because other answers on StackOverflow are explicit that OSGi can solve the dependency problem of a distributed system containing modules deployed within distinct JVMs (plus the FAQ keeps talking about *networks*). In this latter case, how does a component running in one JVM interact with another component in a separate JVM? Can the two components "use" each other as if they were running within the same JVM (i.e. via local method calls), and how does OSGi manage the marshalling of data across a network (do you have to use `Serializable` for example)? Or does the component author have to use some other distinct mechanism (either provided by OSGi or written themselves) for communication between remote components? Any help much appreciated! [1]: http://www.osgi.org/About/FAQ#q6
0
7,375,662
09/11/2011 01:01:04
573,283
01/12/2011 20:01:22
584
27
Rails validation problem
I've got a User model with three fields, :email, :display_name and :handle. Handle is created behind the scenes from the :display_name. I'm using the following validations: validates :display_name, :presence => :true, :uniqueness => { :message => "Sorry, another user has already chosen that name."}, :on => :update validates :email, :presence => :true, :uniqueness => { :message => "An account with that email already exists." } I use the handle as the `to_param` in the model. If the user fails the validation by submitting a :display_name that already exists, then tries to change it and resubmit the form, Rails seems to use the new handle as the validation for the email -- in other words, it assumes that the email doesn't belong to the current user and validation on the email then fails. At this point, Rails assumes that the changed display name/handle is the one to use for the look up and the update action can't complete at all, because it can't find the user based on the new handle. Here's the update method: def update @user = User.find_by_handle(params[:id]) @handle = params[:user][:display_name] @user.handle = @handle.parameterize ... end This problem doesn't happen when the validation first fails on a duplicate email, so I'm assuming it's something about the way I've written the update method -- maybe I should try setting the handle in the model?
ruby-on-rails
null
null
null
null
null
open
Rails validation problem === I've got a User model with three fields, :email, :display_name and :handle. Handle is created behind the scenes from the :display_name. I'm using the following validations: validates :display_name, :presence => :true, :uniqueness => { :message => "Sorry, another user has already chosen that name."}, :on => :update validates :email, :presence => :true, :uniqueness => { :message => "An account with that email already exists." } I use the handle as the `to_param` in the model. If the user fails the validation by submitting a :display_name that already exists, then tries to change it and resubmit the form, Rails seems to use the new handle as the validation for the email -- in other words, it assumes that the email doesn't belong to the current user and validation on the email then fails. At this point, Rails assumes that the changed display name/handle is the one to use for the look up and the update action can't complete at all, because it can't find the user based on the new handle. Here's the update method: def update @user = User.find_by_handle(params[:id]) @handle = params[:user][:display_name] @user.handle = @handle.parameterize ... end This problem doesn't happen when the validation first fails on a duplicate email, so I'm assuming it's something about the way I've written the update method -- maybe I should try setting the handle in the model?
0
10,943,100
06/08/2012 04:34:02
964,507
09/26/2011 06:37:21
23
0
Hibernate and mysql timeout issue
I have been having trouble with Hibernate and Mysql timeout error.I am also using properties of c3p0(connection provider). After my Hibernate/MySQL have been running after 8 hours(which is default timeout value in Mysql), I have the exception. But it doesn't help. property for auto reconnect also not working. Here is my Hibernate Configuration: <property name="connection_provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> **<property name="connection.autoReconnect"> true</property> <property name="connection.autoReconnectForPools">true</property>** <property name="connection.is-connection-validation-required">true</property> <property name="c3p0.validate">true</property> <property name="current_session_context_class">thread</property> <property name="cache.use_query_cache">false</property> <property name="cache.use_second_level_cache">false</property> <property name="c3p0.idle_test_period">20</property> <property name="c3p0.timeout">40</property> <property name="c3p0.max_size">100</property> <property name="c3p0.min_size">1</property> <property name="c3p0.acquireRetryAttempts">10</property> <property name="c3p0.maxPoolSize">100</property> <property name="c3p0.maxIdleTime">300</property> <property name="c3p0.maxStatements">50</property> <property name="c3p0.minPoolSize">10</property> <property name="c3p0.preferredTestQuery">select 1;</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql://localhost:3306/doqeap</property> <property name="connection.user">root</property> <property name="connection.password">arosys123</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.jdbc.batch_size">0</property> <mapping></mapping> please help me to sort out this problem. Thanks
mysql
hibernate
null
null
null
null
open
Hibernate and mysql timeout issue === I have been having trouble with Hibernate and Mysql timeout error.I am also using properties of c3p0(connection provider). After my Hibernate/MySQL have been running after 8 hours(which is default timeout value in Mysql), I have the exception. But it doesn't help. property for auto reconnect also not working. Here is my Hibernate Configuration: <property name="connection_provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> **<property name="connection.autoReconnect"> true</property> <property name="connection.autoReconnectForPools">true</property>** <property name="connection.is-connection-validation-required">true</property> <property name="c3p0.validate">true</property> <property name="current_session_context_class">thread</property> <property name="cache.use_query_cache">false</property> <property name="cache.use_second_level_cache">false</property> <property name="c3p0.idle_test_period">20</property> <property name="c3p0.timeout">40</property> <property name="c3p0.max_size">100</property> <property name="c3p0.min_size">1</property> <property name="c3p0.acquireRetryAttempts">10</property> <property name="c3p0.maxPoolSize">100</property> <property name="c3p0.maxIdleTime">300</property> <property name="c3p0.maxStatements">50</property> <property name="c3p0.minPoolSize">10</property> <property name="c3p0.preferredTestQuery">select 1;</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql://localhost:3306/doqeap</property> <property name="connection.user">root</property> <property name="connection.password">arosys123</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.jdbc.batch_size">0</property> <mapping></mapping> please help me to sort out this problem. Thanks
0
7,559,625
09/26/2011 18:35:43
948,001
09/16/2011 01:37:17
1
0
Interface Guidance Required
I face a big problem in creating the interfaces of the desktop applications.. Can anybody guide me the right direction what i`m lagging? I am a satisfied amateur level coder. but still i face a lot of difficulties in designing a correct friendly interface. Help me.. what i do?
c#
asp.net
null
null
null
09/26/2011 19:02:21
not a real question
Interface Guidance Required === I face a big problem in creating the interfaces of the desktop applications.. Can anybody guide me the right direction what i`m lagging? I am a satisfied amateur level coder. but still i face a lot of difficulties in designing a correct friendly interface. Help me.. what i do?
1
6,805,505
07/24/2011 07:29:57
663,724
03/17/2011 05:17:05
269
3
How to Edit Or Modify a Stored Procedure ??
I have created a Stored Procedure with the name getRecords 1 month ago, I want to edit that Stored procedure getRecords , Please tell me how to modify the Stored procedure
plsql
null
null
null
null
07/24/2011 10:08:28
not a real question
How to Edit Or Modify a Stored Procedure ?? === I have created a Stored Procedure with the name getRecords 1 month ago, I want to edit that Stored procedure getRecords , Please tell me how to modify the Stored procedure
1
6,422,525
06/21/2011 08:40:09
364,651
06/11/2010 14:52:46
333
11
Problem with OAuth in accessing Google Contacts
I am trying to import the contacts of a person using google contacts API in the following PHP code . It uses OAuth 1.0 protocol : <?php $consumer_key="www.spats.in"; $secret="***********************"; $mt = microtime(); $rand = mt_rand(); $nonce = md5($mt.$rand); $url="https://www.google.com/accounts/OAuthGetRequestToken"; $params="oauth_callback=www.spats.in/nssc2/gmailContactsImport.php". "&oauth_consumer_key=$consumer_key". "&oauth_nonce=$nonce". "&oauth_signature_method=HMAC-SHA1". "&oauth_timestamp=".time(). "&oauth_version=1.0". "&scope=https://www.google.com/m8/feeds/"; $base_string = "GET&".urlencode($url).'?'.urlencode($params); $signature = base64_encode(hash_hmac('sha1', $base_string, $secret, true)); $params.="&oauth_signature=".$signature; $result=file_get_contents($url."?".$params); echo $result; ?> However, on executing the php code, the result is as follows : signature_invalid base_string:GET&https%3A%2F%2Fwww.google.com%2Faccounts%2FOAuthGetRequestToken&oauth_callback%3Dwww.spats.in%252Fnssc2%252FgmailContactsImport.php%26oauth_consumer_key%3Dwww.spats.in%26oauth_nonce%3D36bc2ce5f00b79300d753bb94dc924df%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1308644840%26oauth_version%3D1.0%26scope%3Dhttps%253A%252F%252Fwww.google.com%252Fm8%252Ffeeds%252F What is the problem with the signature? I can't seem to figure it out.
php
google-contacts
null
null
null
05/26/2012 03:40:59
too localized
Problem with OAuth in accessing Google Contacts === I am trying to import the contacts of a person using google contacts API in the following PHP code . It uses OAuth 1.0 protocol : <?php $consumer_key="www.spats.in"; $secret="***********************"; $mt = microtime(); $rand = mt_rand(); $nonce = md5($mt.$rand); $url="https://www.google.com/accounts/OAuthGetRequestToken"; $params="oauth_callback=www.spats.in/nssc2/gmailContactsImport.php". "&oauth_consumer_key=$consumer_key". "&oauth_nonce=$nonce". "&oauth_signature_method=HMAC-SHA1". "&oauth_timestamp=".time(). "&oauth_version=1.0". "&scope=https://www.google.com/m8/feeds/"; $base_string = "GET&".urlencode($url).'?'.urlencode($params); $signature = base64_encode(hash_hmac('sha1', $base_string, $secret, true)); $params.="&oauth_signature=".$signature; $result=file_get_contents($url."?".$params); echo $result; ?> However, on executing the php code, the result is as follows : signature_invalid base_string:GET&https%3A%2F%2Fwww.google.com%2Faccounts%2FOAuthGetRequestToken&oauth_callback%3Dwww.spats.in%252Fnssc2%252FgmailContactsImport.php%26oauth_consumer_key%3Dwww.spats.in%26oauth_nonce%3D36bc2ce5f00b79300d753bb94dc924df%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1308644840%26oauth_version%3D1.0%26scope%3Dhttps%253A%252F%252Fwww.google.com%252Fm8%252Ffeeds%252F What is the problem with the signature? I can't seem to figure it out.
3
3,986,909
10/21/2010 11:27:15
210,102
11/13/2009 01:14:24
8,582
465
typedef for enum from template base class
Followup on an answer from last night - I was hoping more comments would answer this for me but no dice. Is there a way to achieve this without inheritance that does not require the cumbersome usage in the penultimate line of code below, which writes the value to `cout`? struct A { enum E { X, Y, Z }; }; template <class T> struct B { typedef typename T::E E; }; // basically "import" the A::E enum into B. int main(void) { std::cout << B<A>::E::X << std::endl; return 0; }
c++
templates
enums
null
null
null
open
typedef for enum from template base class === Followup on an answer from last night - I was hoping more comments would answer this for me but no dice. Is there a way to achieve this without inheritance that does not require the cumbersome usage in the penultimate line of code below, which writes the value to `cout`? struct A { enum E { X, Y, Z }; }; template <class T> struct B { typedef typename T::E E; }; // basically "import" the A::E enum into B. int main(void) { std::cout << B<A>::E::X << std::endl; return 0; }
0
8,567,300
12/19/2011 20:43:16
1,106,682
12/19/2011 20:36:49
1
0
Content Management System in java for streaming movies and looking at comics
I am looking for a CMS in java that would enable me to stream movies, let users play games and read books or comics from my web application... Could you recommend a java CMS that could work for me?? I have been looking up different ones for some time now....
java
content-management-system
null
null
null
12/19/2011 21:52:36
off topic
Content Management System in java for streaming movies and looking at comics === I am looking for a CMS in java that would enable me to stream movies, let users play games and read books or comics from my web application... Could you recommend a java CMS that could work for me?? I have been looking up different ones for some time now....
2
11,643,530
07/25/2012 05:55:02
1,502,136
07/04/2012 17:00:52
49
0
C++ how to pass variable into function?
void webparser() { stringstream ss; ss << "lynx -dump 'http://somesite.com/q?s=" << currency << "=X' > file.txt"; system(ss.str().c_str()); } How do i pass e.g "GBPUSD" into webparser if i want use GBPUSD as a char chArray[]; and then assign the passed value as variable currency in my case Thanks, no return is require.
c++
null
null
null
null
07/27/2012 04:18:51
not a real question
C++ how to pass variable into function? === void webparser() { stringstream ss; ss << "lynx -dump 'http://somesite.com/q?s=" << currency << "=X' > file.txt"; system(ss.str().c_str()); } How do i pass e.g "GBPUSD" into webparser if i want use GBPUSD as a char chArray[]; and then assign the passed value as variable currency in my case Thanks, no return is require.
1
7,856,492
10/21/2011 23:57:15
261,188
01/28/2010 17:20:19
8,524
343
Install PSCX with PowerShell
I want to install the [PowerShell Community Extensions][1] using only the command-line. I don't want to use a UI, no right-click extract, double-clicking an MSI file. I have to do this process on dozens of computers. However, all of the instructions I've found involve all of this clicking and downloading. I'm looking for a series of PowerShell commands that can complete the installation. Ideal solution would be completely self-contained: download file X & install. I would like to avoid copying local versions to the given server. Requirement of Admin access is fine. [1]: http://pscx.codeplex.com/
powershell
installation
pscx
null
null
10/25/2011 02:28:42
off topic
Install PSCX with PowerShell === I want to install the [PowerShell Community Extensions][1] using only the command-line. I don't want to use a UI, no right-click extract, double-clicking an MSI file. I have to do this process on dozens of computers. However, all of the instructions I've found involve all of this clicking and downloading. I'm looking for a series of PowerShell commands that can complete the installation. Ideal solution would be completely self-contained: download file X & install. I would like to avoid copying local versions to the given server. Requirement of Admin access is fine. [1]: http://pscx.codeplex.com/
2
7,316,163
09/06/2011 07:11:06
930,113
09/06/2011 07:04:18
1
0
Like Links, auto grouping
On my website you can like multiple links which is expected these days, however if someone likes multiple pages/links on one day is there a way to make it so they group together on the users profile simler to fb pages?
like
facebook-social-plugins
null
null
null
null
open
Like Links, auto grouping === On my website you can like multiple links which is expected these days, however if someone likes multiple pages/links on one day is there a way to make it so they group together on the users profile simler to fb pages?
0
11,323,435
07/04/2012 06:21:19
1,407,672
05/21/2012 10:47:42
250
20
InputStreamReader encoder
My problem is fairly simple: new InputStreamReader(is, "UTF-8"); Makes β and ・look like question marks. Which encoder should I use to see those characters correctly?
java
android
inputstreamreader
null
null
null
open
InputStreamReader encoder === My problem is fairly simple: new InputStreamReader(is, "UTF-8"); Makes β and ・look like question marks. Which encoder should I use to see those characters correctly?
0
5,339,436
03/17/2011 13:09:24
604,448
02/05/2011 14:44:03
20
0
Call view intially in django
How to call view initially in django when application startup.
python
django
null
null
null
03/17/2011 14:53:48
not a real question
Call view intially in django === How to call view initially in django when application startup.
1
1,453,720
09/21/2009 09:57:36
166,372
09/01/2009 04:28:24
131
9
Is LOC correct parameter for project estimation?
Is LOC correct parameter for project estimation? there are so many scenarios where complexity takes much more time for a single line of code, other than LOC what could be the suggested parameter for project estimation?
documentation
programming-languages
null
null
null
01/17/2012 13:22:36
not constructive
Is LOC correct parameter for project estimation? === Is LOC correct parameter for project estimation? there are so many scenarios where complexity takes much more time for a single line of code, other than LOC what could be the suggested parameter for project estimation?
4
4,781,383
01/24/2011 11:23:55
50,173
12/30/2008 13:49:05
2,586
162
Avoid getting logger instance in each class I want to log with.
How do I avoid calling GetLogger on every class I want to use logging? I'd rather prefer some static class with static property, which initializes correct logger instance based on callers class type. Current configuration --------------------- Currently i have log4net config file, which is loaded with every assembly I need logging in. From AssemblyInfo.cs: [assembly: log4net.Config.XmlConfigurator( ConfigFile = Balticovo.SharePoint.BalticovoConfiguration.Log4NetConfigFilePath, Watch = true)] Then in my class i have a `ILog Log` variable which i initialize. ILog log = log4net.LogManager.GetLogger(this.GetType()); ... Log.Error(errorStr); But I would rather like Logging.Log.Error(errorStr);
c#
logging
log4net
global-variables
null
null
open
Avoid getting logger instance in each class I want to log with. === How do I avoid calling GetLogger on every class I want to use logging? I'd rather prefer some static class with static property, which initializes correct logger instance based on callers class type. Current configuration --------------------- Currently i have log4net config file, which is loaded with every assembly I need logging in. From AssemblyInfo.cs: [assembly: log4net.Config.XmlConfigurator( ConfigFile = Balticovo.SharePoint.BalticovoConfiguration.Log4NetConfigFilePath, Watch = true)] Then in my class i have a `ILog Log` variable which i initialize. ILog log = log4net.LogManager.GetLogger(this.GetType()); ... Log.Error(errorStr); But I would rather like Logging.Log.Error(errorStr);
0
7,923,590
10/27/2011 23:22:49
1,001,348
10/18/2011 14:36:34
1
0
Django inline admin max_num, extra not working
I have extended the User model as explained <a href="http://pyxx.org/2008/08/18/how-to-extend-user-model-in-django-and-enable-new-fields-in-newforms-admin/"> here </a> and in many other sites. However, when defining the User Profile Inline in admin.py, no matter what values I use for max_num or extra, in the admin site it will always show one inline for the user profile I have already created and another blank one (User Profile #2). The only way it does a difference is if I use extra=-1 in which case I only get the blank form. I have searched a lot in the Internet but found no solution. I am using Django 1.2.3 I appreciate your help.
python
django
null
null
null
02/23/2012 18:39:10
not a real question
Django inline admin max_num, extra not working === I have extended the User model as explained <a href="http://pyxx.org/2008/08/18/how-to-extend-user-model-in-django-and-enable-new-fields-in-newforms-admin/"> here </a> and in many other sites. However, when defining the User Profile Inline in admin.py, no matter what values I use for max_num or extra, in the admin site it will always show one inline for the user profile I have already created and another blank one (User Profile #2). The only way it does a difference is if I use extra=-1 in which case I only get the blank form. I have searched a lot in the Internet but found no solution. I am using Django 1.2.3 I appreciate your help.
1
3,514,605
08/18/2010 16:58:10
424,305
08/18/2010 16:58:10
1
0
malloc: *** error for object 0x1001002e0: pointer being freed was not allocated
please help me I am running the code of api microtik, but I have this error malloc: *** error for object 0x1001002e0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug any body could help me?
c++
null
null
null
null
08/18/2010 17:16:07
not a real question
malloc: *** error for object 0x1001002e0: pointer being freed was not allocated === please help me I am running the code of api microtik, but I have this error malloc: *** error for object 0x1001002e0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug any body could help me?
1
7,073,981
08/16/2011 05:34:13
858,862
07/23/2011 01:03:10
39
2
Best for for android app developer
I know this question was already asked here, but answers got outdated (it was 1,5 years ago). What's the best phone for android app developer? Probably looking for unmodified OS, not terribly expensive and supporting all the currently widely used features like accelerometer, camera etc. Thanks in advance for help!
android
application
phone
null
null
08/16/2011 15:50:32
not constructive
Best for for android app developer === I know this question was already asked here, but answers got outdated (it was 1,5 years ago). What's the best phone for android app developer? Probably looking for unmodified OS, not terribly expensive and supporting all the currently widely used features like accelerometer, camera etc. Thanks in advance for help!
4
8,045,484
11/08/2011 03:07:24
110,856
05/22/2009 02:06:48
443
6
Automatically binding multiple interfaces to one impl in Guice
I have a design like the own shown below, with one interface extending multiple parent interfaces, and one implementation of that interface. ![Class diagram][1] In my client classes I want to depend only on one or more of the parent interfaces, rather than the `ZooKeeperClient`. I feel like this is a better design as it reduces the surface area of my client class's dependencies, and it also makes it easier to mock things in tests. e.g. @Inject public Foo(ServiceUpdater su) { // ... } However, in order to achieve this I need to manually add bindings from each interface to the implementation class: bind(ServiceCreator.class).to(ZooKeeperClientImpl.class) bind(ServiceDeleter.class).to(ZooKeeperClientImpl.class) bind(ServiceUpdater.class).to(ZooKeeperClientImpl.class) // ... bind(ZooKeeperClient.class).to(ZooKeeperClientImpl.class) Is there any way I can avoid this repetition and tell Guice to bind the whole hierarchy at once? Something like... bind(ZooKeeperClient.class/* and its parents*/).to(ZooKeeperClient.class) If not, is there something wrong with my design here? Am I doing something un-Guicy? [1]: http://i.stack.imgur.com/5tvjs.png
java
guice
null
null
null
null
open
Automatically binding multiple interfaces to one impl in Guice === I have a design like the own shown below, with one interface extending multiple parent interfaces, and one implementation of that interface. ![Class diagram][1] In my client classes I want to depend only on one or more of the parent interfaces, rather than the `ZooKeeperClient`. I feel like this is a better design as it reduces the surface area of my client class's dependencies, and it also makes it easier to mock things in tests. e.g. @Inject public Foo(ServiceUpdater su) { // ... } However, in order to achieve this I need to manually add bindings from each interface to the implementation class: bind(ServiceCreator.class).to(ZooKeeperClientImpl.class) bind(ServiceDeleter.class).to(ZooKeeperClientImpl.class) bind(ServiceUpdater.class).to(ZooKeeperClientImpl.class) // ... bind(ZooKeeperClient.class).to(ZooKeeperClientImpl.class) Is there any way I can avoid this repetition and tell Guice to bind the whole hierarchy at once? Something like... bind(ZooKeeperClient.class/* and its parents*/).to(ZooKeeperClient.class) If not, is there something wrong with my design here? Am I doing something un-Guicy? [1]: http://i.stack.imgur.com/5tvjs.png
0
2,918,236
05/27/2010 03:10:02
348,093
05/23/2010 01:49:52
31
3
I have two choices of Master's classes this fall. Which is the most useful?
Choice #1: CST 798 DATA VISUALIZATION Course Description: Basically, this is a course on the "Processing" language: http://processing.org/ Choice #2: CST 711 INFORMATICS Course Description: (From catalog): Informatics is the science of the use and processing of data, information, and knowledge. This course covers a variety of applied issues from information technology, information management at a variety of levels, ranging from simple data entry, to the creation, design and implementation of new information systems, to the development of models. Topics include basic information representation, processing, searching, and organization, evaluation and analysis of information, Internet-based information access tools, ethics and economics of information sharing.
homework
graduate-school
null
null
null
05/27/2010 04:56:58
off topic
I have two choices of Master's classes this fall. Which is the most useful? === Choice #1: CST 798 DATA VISUALIZATION Course Description: Basically, this is a course on the "Processing" language: http://processing.org/ Choice #2: CST 711 INFORMATICS Course Description: (From catalog): Informatics is the science of the use and processing of data, information, and knowledge. This course covers a variety of applied issues from information technology, information management at a variety of levels, ranging from simple data entry, to the creation, design and implementation of new information systems, to the development of models. Topics include basic information representation, processing, searching, and organization, evaluation and analysis of information, Internet-based information access tools, ethics and economics of information sharing.
2
8,727,295
01/04/2012 13:00:26
706,293
04/13/2011 15:02:59
353
28
Verify a process is running from code behind
I have developed a console application in C# that runs every minute, activated by a scheduled task. How could I verify that a specific process, whose name "should" be always the same, is running and, if not, start it?
process
null
null
null
null
null
open
Verify a process is running from code behind === I have developed a console application in C# that runs every minute, activated by a scheduled task. How could I verify that a specific process, whose name "should" be always the same, is running and, if not, start it?
0
116,654
09/22/2008 18:34:53
10,559
09/15/2008 23:56:53
186
9
Best non-C++ language for metaprogramming?
C++ is probably the most popular language for [static metaprogramming][1] and [Java doesn't support it][2]. Are there any other languages besides C++ that support static metaprogramming? Which ones are the best (for learning, for efficiency, for maintenance, for embedded systems, whatever)? [1]: http://stackoverflow.com/questions/112277/best-intro-to-c-static-metaprogramming [2]: http://stackoverflow.com/questions/112320/is-static-metaprogramming-possible-in-java
metaprogramming
c++
java
null
null
05/22/2012 12:23:49
not constructive
Best non-C++ language for metaprogramming? === C++ is probably the most popular language for [static metaprogramming][1] and [Java doesn't support it][2]. Are there any other languages besides C++ that support static metaprogramming? Which ones are the best (for learning, for efficiency, for maintenance, for embedded systems, whatever)? [1]: http://stackoverflow.com/questions/112277/best-intro-to-c-static-metaprogramming [2]: http://stackoverflow.com/questions/112320/is-static-metaprogramming-possible-in-java
4
10,895,116
06/05/2012 09:50:07
408,872
08/02/2010 17:04:30
43
4
magento dataflow: how to call action once before processing any row
**Context:** Magento 1.7.0.0 version. I have to import csv data, with magento dataflow advanced profiles. I have made an Adapter that implements Mage_Dataflow_Model_Convert_Adapter_Abstract. I've implemented saveRow() method for processing each row, ok. **Next step:** I want to run some code before any row is processed: something like save() or beforeSave() method... *How can I do it*? I guess that I have to implement save() method from Mage_Dataflow_Model_Convert_Adapter_Abstract and to add something on the the Actions XML section on my Import Profile: <!-- adapter: loading data from local csv file--> <action type="dataflow/convert_adapter_io" method="load"> <var name="type">file</var> <var name="path">var/import</var> <var name="filename"><![CDATA[blabla.csv]]></var> <var name="format"><![CDATA[csv]]></var> </action> <!-- parsing: transform into database entities --> <action type="dataflow/convert_parser_csv" method="parse"> <var name="delimiter"><![CDATA[,]]></var> <var name="enclose"><![CDATA[']]></var> <var name="fieldnames">true</var> <var name="store"><![CDATA[0]]></var> <var name="number_of_records">1</var> <var name="adapter">mymodule/convert_adapter_blabla</var> <var name="method">saveRow</var> </action> Any suggestions will be welcome, thanks! :)
php
xml
magento
import
dataflow
null
open
magento dataflow: how to call action once before processing any row === **Context:** Magento 1.7.0.0 version. I have to import csv data, with magento dataflow advanced profiles. I have made an Adapter that implements Mage_Dataflow_Model_Convert_Adapter_Abstract. I've implemented saveRow() method for processing each row, ok. **Next step:** I want to run some code before any row is processed: something like save() or beforeSave() method... *How can I do it*? I guess that I have to implement save() method from Mage_Dataflow_Model_Convert_Adapter_Abstract and to add something on the the Actions XML section on my Import Profile: <!-- adapter: loading data from local csv file--> <action type="dataflow/convert_adapter_io" method="load"> <var name="type">file</var> <var name="path">var/import</var> <var name="filename"><![CDATA[blabla.csv]]></var> <var name="format"><![CDATA[csv]]></var> </action> <!-- parsing: transform into database entities --> <action type="dataflow/convert_parser_csv" method="parse"> <var name="delimiter"><![CDATA[,]]></var> <var name="enclose"><![CDATA[']]></var> <var name="fieldnames">true</var> <var name="store"><![CDATA[0]]></var> <var name="number_of_records">1</var> <var name="adapter">mymodule/convert_adapter_blabla</var> <var name="method">saveRow</var> </action> Any suggestions will be welcome, thanks! :)
0
2,162,978
01/29/2010 15:37:14
100,516
05/03/2009 22:15:07
1,347
92
Why sql-script isn't executed?
CREATE TABLE PERMISSIONS( ID BIGINT NOT NULL PRIMARY KEY, NAME VARCHAR(255) NOT NULL, UNIQUE(ID) ) CREATE TABLE ROLES( ID BIGINT NOT NULL PRIMARY KEY, NAME VARCHAR(255) ) I want to run this in MySql. When I try to execute separately each create-query everything works fine but they don't work together. I thought that separator was missed and tried to put semicolon after each query but MySql says that I have syntax mistake near ";" . Where is the mistake?
sql
ddl
mysql
null
null
null
open
Why sql-script isn't executed? === CREATE TABLE PERMISSIONS( ID BIGINT NOT NULL PRIMARY KEY, NAME VARCHAR(255) NOT NULL, UNIQUE(ID) ) CREATE TABLE ROLES( ID BIGINT NOT NULL PRIMARY KEY, NAME VARCHAR(255) ) I want to run this in MySql. When I try to execute separately each create-query everything works fine but they don't work together. I thought that separator was missed and tried to put semicolon after each query but MySql says that I have syntax mistake near ";" . Where is the mistake?
0
11,651,602
07/25/2012 14:06:25
597,657
01/31/2011 23:28:20
14,363
525
p in hexadecimal
I just wonder why this compiles? and what does it mean since it does compile? System.out.println(0xp0); // p? **OUTPUT:** 0.0
java
null
null
null
null
null
open
p in hexadecimal === I just wonder why this compiles? and what does it mean since it does compile? System.out.println(0xp0); // p? **OUTPUT:** 0.0
0
6,125,332
05/25/2011 13:37:09
765,738
05/23/2011 09:25:15
8
0
how to set data time as a parameter in a method?
HI, I have a method that needs to contain a data time as a parameter. how can i write this? `string data_time(c_time time); ? is it correct?.` And secondly in the: string data_time(c_time time) { i would like to save the hour, second, minute, month and year in different string values. how to do this? need some help. i am working in ubuntu.. thx }
c++
ubuntu
null
null
null
null
open
how to set data time as a parameter in a method? === HI, I have a method that needs to contain a data time as a parameter. how can i write this? `string data_time(c_time time); ? is it correct?.` And secondly in the: string data_time(c_time time) { i would like to save the hour, second, minute, month and year in different string values. how to do this? need some help. i am working in ubuntu.. thx }
0
11,236,227
06/27/2012 23:34:52
1,426,436
05/30/2012 15:44:07
68
1
How to use sudo with rcp command to copy files from linux host to HP-UX host?
I'm having this issue where when I try to use sudo to rcp some files from a Linux host to an HP-UX host (note that the destination directory requires root access to write to), I get the following error from HP-UX's side: remshd: Login incorrect. I should note that the passwords for the Linux host and the HP-UX host are different. The command doesn't seem to give me a chance to enter the proper HP-UX password and automatically defaults to this error.
linux
bash
hp-ux
null
null
06/28/2012 03:12:37
off topic
How to use sudo with rcp command to copy files from linux host to HP-UX host? === I'm having this issue where when I try to use sudo to rcp some files from a Linux host to an HP-UX host (note that the destination directory requires root access to write to), I get the following error from HP-UX's side: remshd: Login incorrect. I should note that the passwords for the Linux host and the HP-UX host are different. The command doesn't seem to give me a chance to enter the proper HP-UX password and automatically defaults to this error.
2
8,267,466
11/25/2011 10:11:11
993,462
10/13/2011 12:34:46
16
1
dynamic array in php
I have two arrays: $students=array('student1','student2','student3','student4'); $date=array('date1','date2','date3'); $student1=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) $student2=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) $student3=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) $student4=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) I need generate an dynamic array, no manually how is in my example. The count for $students and $date change dynamically.<br> For each student: I want to load each date value in a grid dinamically.<br> I want to insert each date value in the database dinamically.<br> I want to update each date value in a database dinamically.<br> can you help me? Thanks.
php
dynamic-arrays
null
null
null
null
open
dynamic array in php === I have two arrays: $students=array('student1','student2','student3','student4'); $date=array('date1','date2','date3'); $student1=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) $student2=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) $student3=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) $student4=array( 'date1'=>'15/04/20', 'date2'=>'20/05/15', 'date3'=>'18/11/10' ) I need generate an dynamic array, no manually how is in my example. The count for $students and $date change dynamically.<br> For each student: I want to load each date value in a grid dinamically.<br> I want to insert each date value in the database dinamically.<br> I want to update each date value in a database dinamically.<br> can you help me? Thanks.
0