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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
357,775 | 12/10/2008 22:04:41 | 386,102 | 11/16/2008 17:06:38 | 6 | 5 | Affine Transformations vs Keyframing | This may be a silly question to a graphics guru (which I am not), but what's the difference between affine transformations and keyframing? I'm reading about the former in the iPhone cookbook, and she states that 'Affine transforms enable you to change an object's geometry by mapping that object from one view coordinate system into another'. This reminds me of when I played with Adobe After Effects, and you'd set the start, 'in between', and finishing positions, and would get a nice visual animation. They called it keyframing. So what's the difference this and affine transormations. Is it a 2D vs 3D thing? Thanks all. | iphone | core | graphics | cocoa | null | null | open | Affine Transformations vs Keyframing
===
This may be a silly question to a graphics guru (which I am not), but what's the difference between affine transformations and keyframing? I'm reading about the former in the iPhone cookbook, and she states that 'Affine transforms enable you to change an object's geometry by mapping that object from one view coordinate system into another'. This reminds me of when I played with Adobe After Effects, and you'd set the start, 'in between', and finishing positions, and would get a nice visual animation. They called it keyframing. So what's the difference this and affine transormations. Is it a 2D vs 3D thing? Thanks all. | 0 |
7,985,637 | 11/02/2011 18:42:01 | 523,168 | 11/28/2010 20:02:52 | 721 | 12 | How to show and hide if user is logged? | I create a composition component:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:cs="http://java.sun.com/jsf/composite/composite">
<h:panelGroup rendered="#{not empty userc.userb.user.id}">
<h:panelGrid columns="3">
<h:outputText value="Welcome, " />
<h:outputLink value="profile.xhtml">
<h:outputText value="#{userc.personb.person.name}" />
</h:outputLink>
<h:form>
<h:commandLink action="#{userc.logout}">Log out</h:commandLink>
</h:form>
</h:panelGrid>
</h:panelGroup>
<h:panelGroup rendered="#{empty userc.userb.user.id}">
<h:outputLink value="pages/login.xhtml">Login</h:outputLink>
</h:panelGroup>
</ui:composition>
My intention is to hide the first `panelGroup` if the user is not logged, if he does then I hide the second panelGroup then show the first one.
I'm trying do this but doesn't work.
Any idea ? | jsf | jsf-2.0 | null | null | null | null | open | How to show and hide if user is logged?
===
I create a composition component:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:cs="http://java.sun.com/jsf/composite/composite">
<h:panelGroup rendered="#{not empty userc.userb.user.id}">
<h:panelGrid columns="3">
<h:outputText value="Welcome, " />
<h:outputLink value="profile.xhtml">
<h:outputText value="#{userc.personb.person.name}" />
</h:outputLink>
<h:form>
<h:commandLink action="#{userc.logout}">Log out</h:commandLink>
</h:form>
</h:panelGrid>
</h:panelGroup>
<h:panelGroup rendered="#{empty userc.userb.user.id}">
<h:outputLink value="pages/login.xhtml">Login</h:outputLink>
</h:panelGroup>
</ui:composition>
My intention is to hide the first `panelGroup` if the user is not logged, if he does then I hide the second panelGroup then show the first one.
I'm trying do this but doesn't work.
Any idea ? | 0 |
11,668,103 | 07/26/2012 11:17:17 | 1,554,418 | 07/26/2012 11:10:29 | 1 | 0 | How to fetch particular tables data in source code using php | Suppose a web page having 10 tables,from the source code that web page i wanted to fetch the 8th table's data and store it into array using php.
Any help is appreciated | php | null | null | null | null | 07/27/2012 12:01:31 | not a real question | How to fetch particular tables data in source code using php
===
Suppose a web page having 10 tables,from the source code that web page i wanted to fetch the 8th table's data and store it into array using php.
Any help is appreciated | 1 |
5,058,711 | 02/20/2011 17:33:38 | 625,444 | 02/20/2011 17:33:38 | 1 | 0 | trying to intiate a class with a constructor that takes an argument | class token
{
private:
char m_chIcon; //actual ascii char that shows up for this token
location m_cPlayerLocation; // every token has a location
token() {}
public:
token(char icon) : m_chIcon(icon) {}
};
class board
{
private:
token m_cPlayer('@');
};
I have tried with and without initialization lists. From what I have looked into so far, it seems the compiler thinks I am trying to declare a function with the return type token. I also tried using a name other than token to see is that was a conflict.
also I am getting the error on this line:
token m_cPlayer('@');
Error: expected type specifier
and then any other reference further down the line of m_cPlayer
Error: expression must have class type
I have removed other surrounding code from what I posted that I don't believe is causing errors. | c++ | class | null | null | null | null | open | trying to intiate a class with a constructor that takes an argument
===
class token
{
private:
char m_chIcon; //actual ascii char that shows up for this token
location m_cPlayerLocation; // every token has a location
token() {}
public:
token(char icon) : m_chIcon(icon) {}
};
class board
{
private:
token m_cPlayer('@');
};
I have tried with and without initialization lists. From what I have looked into so far, it seems the compiler thinks I am trying to declare a function with the return type token. I also tried using a name other than token to see is that was a conflict.
also I am getting the error on this line:
token m_cPlayer('@');
Error: expected type specifier
and then any other reference further down the line of m_cPlayer
Error: expression must have class type
I have removed other surrounding code from what I posted that I don't believe is causing errors. | 0 |
8,946,994 | 01/20/2012 19:42:37 | 1,121,334 | 12/29/2011 14:15:47 | 3 | 0 | java(android) - unexpected error TabHost | I want to use TabHost, but my app has stopped unexpectedly. I don't really know, what the problem is, i'am a beginner android programmer.
I use 4 java classes, one for TabHost, and three another classes.
UnitCount class:
package com.eqsec.csaba;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.app.TabActivity;
public class UnitCount extends TabActivity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TabHost tabHost = getTabHost(); // The activity TabHost
TabHost.TabSpec spec; // Resusable TabSpec for each tab
Intent intent; // Reusable Intent for each tab
// Create an Intent to launch an Activity for the tab (to be reused)
intent = new Intent().setClass(this, Hosszusag.class);
// Initialize a TabSpec for each tab and add it to the TabHost
spec = tabHost.newTabSpec("hosszusag").setIndicator("Husszusag")
.setContent(intent);
tabHost.addTab(spec);
// Do the same for the other tabs
intent = new Intent().setClass(this, Tomeg.class);
spec = tabHost.newTabSpec("tomeg").setIndicator("Tömeg")
.setContent(intent);
tabHost.addTab(spec);
intent = new Intent().setClass(this, Urtartalom.class);
spec = tabHost.newTabSpec("urtartalom").setIndicator("Űrtartalom")
.setContent(intent);
tabHost.addTab(spec);
tabHost.setCurrentTabByTag("hosszusag");
}
}
I have 3 another classes called Urtartalom.class, Hosszusag.class, Tomeg.class.
Should i change anything in android manifest? Thanks! | android | class | android-manifest | android-tabhost | null | 01/20/2012 20:22:07 | too localized | java(android) - unexpected error TabHost
===
I want to use TabHost, but my app has stopped unexpectedly. I don't really know, what the problem is, i'am a beginner android programmer.
I use 4 java classes, one for TabHost, and three another classes.
UnitCount class:
package com.eqsec.csaba;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.app.TabActivity;
public class UnitCount extends TabActivity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TabHost tabHost = getTabHost(); // The activity TabHost
TabHost.TabSpec spec; // Resusable TabSpec for each tab
Intent intent; // Reusable Intent for each tab
// Create an Intent to launch an Activity for the tab (to be reused)
intent = new Intent().setClass(this, Hosszusag.class);
// Initialize a TabSpec for each tab and add it to the TabHost
spec = tabHost.newTabSpec("hosszusag").setIndicator("Husszusag")
.setContent(intent);
tabHost.addTab(spec);
// Do the same for the other tabs
intent = new Intent().setClass(this, Tomeg.class);
spec = tabHost.newTabSpec("tomeg").setIndicator("Tömeg")
.setContent(intent);
tabHost.addTab(spec);
intent = new Intent().setClass(this, Urtartalom.class);
spec = tabHost.newTabSpec("urtartalom").setIndicator("Űrtartalom")
.setContent(intent);
tabHost.addTab(spec);
tabHost.setCurrentTabByTag("hosszusag");
}
}
I have 3 another classes called Urtartalom.class, Hosszusag.class, Tomeg.class.
Should i change anything in android manifest? Thanks! | 3 |
9,607,730 | 03/07/2012 19:22:59 | 1,255,521 | 03/07/2012 19:12:09 | 1 | 0 | Why does Debug build fails whereas Release build succeed? | I went through so many topics asking about "Why does release build fail and not debug?", but I'm across a situation where it's reverse.
Here release build works fine but Debug mode build breaks.
What are possible reasons or situations where this can happen?
Any reply is appreciated.
Thanks in advance. | c++ | visual-studio-2005 | null | null | null | 03/08/2012 02:36:41 | not a real question | Why does Debug build fails whereas Release build succeed?
===
I went through so many topics asking about "Why does release build fail and not debug?", but I'm across a situation where it's reverse.
Here release build works fine but Debug mode build breaks.
What are possible reasons or situations where this can happen?
Any reply is appreciated.
Thanks in advance. | 1 |
11,331,959 | 07/04/2012 15:29:32 | 1,411,750 | 05/23/2012 05:26:24 | 1 | 0 | Loading registered dll from python | I have registered the xceedzip.dll (admin cmd run -> regsvr32 xceedzip.dll)
I would like to access the .net classes inside this dll from python.
In particular, I need to uncompress a continuous data stream from a multicast feed. The data comes in a xceedzip compressed form, and require the uncompress method to be executed on the data to unpackage it. for reference: http://doc.xceedsoft.com/products/XceedSco/
Any pointers on how to achieve this would be appreciated. This won't have a 1-step ready ctypes solution to my understanding. This is because the Uncompress method lives in a class of a .net namespace.
I am informed that the win32com library might be able to achieve this, but would like some guidance before i put my nose to that grindstone.
Thanks, | .net | python | windows | dll | null | null | open | Loading registered dll from python
===
I have registered the xceedzip.dll (admin cmd run -> regsvr32 xceedzip.dll)
I would like to access the .net classes inside this dll from python.
In particular, I need to uncompress a continuous data stream from a multicast feed. The data comes in a xceedzip compressed form, and require the uncompress method to be executed on the data to unpackage it. for reference: http://doc.xceedsoft.com/products/XceedSco/
Any pointers on how to achieve this would be appreciated. This won't have a 1-step ready ctypes solution to my understanding. This is because the Uncompress method lives in a class of a .net namespace.
I am informed that the win32com library might be able to achieve this, but would like some guidance before i put my nose to that grindstone.
Thanks, | 0 |
556,238 | 02/17/2009 10:32:35 | 26,859 | 10/10/2008 15:18:20 | 427 | 41 | Hibernate : Foreign key constraint violation problem | I have a com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException in my code (using Hibernate and Spring) and I can't figure why.
My entities are Corpus and Semspace and there's a many-to-one relation from Semspace to Corpus as defined in my hibernate mapping configuration :
<class name="xxx.entities.Semspace" table="Semspace" lazy="false" batch-size="30">
<id name="id" column="idSemspace" type="java.lang.Integer" unsaved-value="null">
<generator class="identity"/>
</id>
<property name="name" column="name" type="java.lang.String" not-null="true" unique="true" />
<many-to-one name="corpus" class="xxx.entities.Corpus" column="idCorpus"
insert="false" update="false" />
[...]
</class>
<class name="xxx.entities.Corpus" table="Corpus" lazy="false" batch-size="30">
<id name="id" column="idCorpus" type="java.lang.Integer" unsaved-value="null">
<generator class="identity"/>
</id>
<property name="name" column="name" type="java.lang.String" not-null="true" unique="true" />
</class>
And the Java code generating the exception is :
Corpus corpus = Spring.getCorpusDAO().getCorpusById(corpusId);
Semspace semspace = new Semspace();
semspace.setCorpus(corpus);
semspace.setName(name);
Spring.getSemspaceDAO().save(semspace);
I checked and the corpus variable is not null (so it is in database as retrieved with the DAO)
The full exception is :
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`diaz/Semspace`, CONSTRAINT `FK4D6019AB6556109` FOREIGN KEY (`idCorpus`) REFERENCES `Corpus` (`idCorpus`))
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:642)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:373)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:639)
at xxx.dao.impl.AbstractDAO.save(AbstractDAO.java:26)
at org.apache.jsp.functions.semspaceManagement_jsp._jspService(semspaceManagement_jsp.java:218)
[...]
The foreign key constraint has been created (and added to database) by hibernate and I don't see where the constraint can be violated. The table are innodb and I tried to drop all tables and recreate it the problem remains... | mysql | hibernate | spring | java | null | null | open | Hibernate : Foreign key constraint violation problem
===
I have a com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException in my code (using Hibernate and Spring) and I can't figure why.
My entities are Corpus and Semspace and there's a many-to-one relation from Semspace to Corpus as defined in my hibernate mapping configuration :
<class name="xxx.entities.Semspace" table="Semspace" lazy="false" batch-size="30">
<id name="id" column="idSemspace" type="java.lang.Integer" unsaved-value="null">
<generator class="identity"/>
</id>
<property name="name" column="name" type="java.lang.String" not-null="true" unique="true" />
<many-to-one name="corpus" class="xxx.entities.Corpus" column="idCorpus"
insert="false" update="false" />
[...]
</class>
<class name="xxx.entities.Corpus" table="Corpus" lazy="false" batch-size="30">
<id name="id" column="idCorpus" type="java.lang.Integer" unsaved-value="null">
<generator class="identity"/>
</id>
<property name="name" column="name" type="java.lang.String" not-null="true" unique="true" />
</class>
And the Java code generating the exception is :
Corpus corpus = Spring.getCorpusDAO().getCorpusById(corpusId);
Semspace semspace = new Semspace();
semspace.setCorpus(corpus);
semspace.setName(name);
Spring.getSemspaceDAO().save(semspace);
I checked and the corpus variable is not null (so it is in database as retrieved with the DAO)
The full exception is :
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`diaz/Semspace`, CONSTRAINT `FK4D6019AB6556109` FOREIGN KEY (`idCorpus`) REFERENCES `Corpus` (`idCorpus`))
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:642)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:373)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:639)
at xxx.dao.impl.AbstractDAO.save(AbstractDAO.java:26)
at org.apache.jsp.functions.semspaceManagement_jsp._jspService(semspaceManagement_jsp.java:218)
[...]
The foreign key constraint has been created (and added to database) by hibernate and I don't see where the constraint can be violated. The table are innodb and I tried to drop all tables and recreate it the problem remains... | 0 |
11,659,752 | 07/25/2012 22:40:39 | 1,068,477 | 11/27/2011 23:47:59 | 10 | 1 | SUSE Enterprise 11.2 and tmpfs and /var/run | Trying to mount /var/run and /var/lock via tmpfs. Using SUSE Ent 11.2 | suse | tmpfs | null | null | null | 07/26/2012 11:14:47 | off topic | SUSE Enterprise 11.2 and tmpfs and /var/run
===
Trying to mount /var/run and /var/lock via tmpfs. Using SUSE Ent 11.2 | 2 |
10,614,515 | 05/16/2012 08:17:00 | 1,348,163 | 04/21/2012 10:29:31 | 0 | 0 | procedure in pl/sql | i am facing a little problem with this question.. i have done what i know
Help if you can
a) Create a procedure ‘insert_History’ that inserts a new record into the ‘History’ table.
b) Write a small PL/SQL program that calls the "insert_History" procedure to insert the three records based on the facts given below:
i. Mark jackop hired 01/05/2009 as ‘SH-CLERK’ got a new position of a sales representative (Job_ID = ‘SA-REP’) on 04/06/2009. Assume that the end date for the previous position is ‘31/05/2009’.
table: history---> emp_id , start_date , end_date , job_id, dep_id
table: employee ----> emp_id , name,job_id,dep_id
this what i have done !
create or replace
procedure insert_History(emp_id in integer , job_id in number)
is
begin
update History
set ?????? = insert into history(.....)
where employees.emp_id= emp_id;
end;
| sql | oracle | stored-procedures | plsql | sql-developer | null | open | procedure in pl/sql
===
i am facing a little problem with this question.. i have done what i know
Help if you can
a) Create a procedure ‘insert_History’ that inserts a new record into the ‘History’ table.
b) Write a small PL/SQL program that calls the "insert_History" procedure to insert the three records based on the facts given below:
i. Mark jackop hired 01/05/2009 as ‘SH-CLERK’ got a new position of a sales representative (Job_ID = ‘SA-REP’) on 04/06/2009. Assume that the end date for the previous position is ‘31/05/2009’.
table: history---> emp_id , start_date , end_date , job_id, dep_id
table: employee ----> emp_id , name,job_id,dep_id
this what i have done !
create or replace
procedure insert_History(emp_id in integer , job_id in number)
is
begin
update History
set ?????? = insert into history(.....)
where employees.emp_id= emp_id;
end;
| 0 |
4,548,360 | 12/28/2010 18:25:27 | 434,051 | 10/22/2009 09:12:01 | 3,968 | 5 | Can I compile ffmpeg using CigWin so that I would get redistributable dll's of it? | So my point is to compile ffmpeg (I know that autobild tools or minGW can be used but I want cigWin) using gcc to have a library (like .dll or, better .lib) usable from my windows visual studio C++ appication. Is it possible and what are main instructions on how to do such thing? | gcc | compiler | cygwin | ffmpeg | null | null | open | Can I compile ffmpeg using CigWin so that I would get redistributable dll's of it?
===
So my point is to compile ffmpeg (I know that autobild tools or minGW can be used but I want cigWin) using gcc to have a library (like .dll or, better .lib) usable from my windows visual studio C++ appication. Is it possible and what are main instructions on how to do such thing? | 0 |
6,493,774 | 06/27/2011 13:41:31 | 817,471 | 06/27/2011 13:41:31 | 1 | 0 | Sending coordinates to an URL POST each five minutes | I need to send coordinates to a web server in each five minutes. I'm doing this way:
In the -(void) mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation I have variables (declared in the .h file) receiving the information I want to send by the post.
And I have a NSTimer calling a method wich initiates this:
{
ASIFormDataRequest * request = [ASIFormDataRequest requestWithURL:myURL];
[request setDelegate:self];
[request setPostValue:myValue forKey:@"myKey"];
[request addRequestHeader:@"Content-Type" value:[NSString stringWithFormat:@"application/x-www-form-urlencoded; charset=%@", @"UTF-8"]];
[request startAsynchronous];
}
The app crashes when the timer calls the function to send data.
Anyone, please, can help me? | iphone | objective-c | ios | null | null | null | open | Sending coordinates to an URL POST each five minutes
===
I need to send coordinates to a web server in each five minutes. I'm doing this way:
In the -(void) mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation I have variables (declared in the .h file) receiving the information I want to send by the post.
And I have a NSTimer calling a method wich initiates this:
{
ASIFormDataRequest * request = [ASIFormDataRequest requestWithURL:myURL];
[request setDelegate:self];
[request setPostValue:myValue forKey:@"myKey"];
[request addRequestHeader:@"Content-Type" value:[NSString stringWithFormat:@"application/x-www-form-urlencoded; charset=%@", @"UTF-8"]];
[request startAsynchronous];
}
The app crashes when the timer calls the function to send data.
Anyone, please, can help me? | 0 |
11,173,102 | 06/23/2012 21:24:15 | 1,250,537 | 03/05/2012 18:43:12 | 21 | 3 | Haskell code examples - small to medium | I am reading hs-webdriver a wrapper for selenium browser automation library. I have read one Haskell book in the past, and am almost done with Learn You A Haskell. The hs-webdriver is a little difficult for me to follow, probably because almost all of it relies on a monad for sending http requests. Can you guys point me towards smaller pieces of real haskell code, so I can build up to the level of maturity of hs-webdriver? Probably other standard library modules you found helpful to read when you were first learning haskell. I know scheme well and clojure somewhat well. I think I have some more getting used to type classes, type constructors, and monads until I feel fully comfortable. | haskell | null | null | null | null | 06/23/2012 21:27:48 | not constructive | Haskell code examples - small to medium
===
I am reading hs-webdriver a wrapper for selenium browser automation library. I have read one Haskell book in the past, and am almost done with Learn You A Haskell. The hs-webdriver is a little difficult for me to follow, probably because almost all of it relies on a monad for sending http requests. Can you guys point me towards smaller pieces of real haskell code, so I can build up to the level of maturity of hs-webdriver? Probably other standard library modules you found helpful to read when you were first learning haskell. I know scheme well and clojure somewhat well. I think I have some more getting used to type classes, type constructors, and monads until I feel fully comfortable. | 4 |
5,509,667 | 04/01/2011 05:55:31 | 439,219 | 09/03/2010 18:16:54 | 187 | 0 | Hidden Service in Android? | i used the following source in creating a service
http://marakana.com/forums/android/examples/60.html
but the thing is, the mp3 file is running, but as soon as i terminate the application (The gui with the start and stop buttons) the service terminates too !
i dunno if i understood this correctly, but on android developers site it says the following
When a service is started, it has a lifecycle that's independent of the component that started it and the service can run in the background indefinitely, even if the component that started it is destroyed.
shouldn't the sound still be playing even after the application is terminated using any task manager?
sorry, im new to java and android at the same time.
thanks. | android | null | null | null | null | null | open | Hidden Service in Android?
===
i used the following source in creating a service
http://marakana.com/forums/android/examples/60.html
but the thing is, the mp3 file is running, but as soon as i terminate the application (The gui with the start and stop buttons) the service terminates too !
i dunno if i understood this correctly, but on android developers site it says the following
When a service is started, it has a lifecycle that's independent of the component that started it and the service can run in the background indefinitely, even if the component that started it is destroyed.
shouldn't the sound still be playing even after the application is terminated using any task manager?
sorry, im new to java and android at the same time.
thanks. | 0 |
7,869,420 | 10/23/2011 21:40:16 | 242,751 | 01/03/2010 17:00:55 | 692 | 8 | File Cache Library for PHP | Could you recommend me any good PHP written File-Cache library which is up2date (PHP >= 5)? | php | caching | null | null | null | 02/08/2012 14:33:55 | not a real question | File Cache Library for PHP
===
Could you recommend me any good PHP written File-Cache library which is up2date (PHP >= 5)? | 1 |
4,320,851 | 12/01/2010 03:10:04 | 525,996 | 12/01/2010 02:48:50 | 1 | 0 | Sell software or run business on it? | I have an good idea that will provide service based on html5 and I have made a demo app for it.
**Support** the idea is a really good idea and I think it will be used by many people, and what should I do next step? Sell it to some internet website or run business on it? No matter do what, I wonder how to find the entrance to it. Is there some forums or community to provide the opportunity for those ordinary developer to contribute their idea.
I think most developer maybe have some good idea, but they don't know what should they do after make the idea become true. | startup | product | market | null | null | 12/01/2010 03:35:48 | off topic | Sell software or run business on it?
===
I have an good idea that will provide service based on html5 and I have made a demo app for it.
**Support** the idea is a really good idea and I think it will be used by many people, and what should I do next step? Sell it to some internet website or run business on it? No matter do what, I wonder how to find the entrance to it. Is there some forums or community to provide the opportunity for those ordinary developer to contribute their idea.
I think most developer maybe have some good idea, but they don't know what should they do after make the idea become true. | 2 |
3,867,949 | 10/05/2010 21:37:33 | 274,077 | 02/16/2010 05:01:01 | 35 | 0 | What is everyone's take on "documentary" (i.e. not functional) comments? | So we have fancy version control systems these days where we can comment on changes made to code. Is it any longer relevant to put similar "documentary" comments in your code? For example, in a file called Helper.cs:
/*
* Filename: Helper.cs
* Author: Will Johansson
* Created: 7/1/2010
* Purpose: Internal helper functionality for XYZ.
* Change history:
* 10/5/2010: Final 1.0 commit. Fixed x, y, z.
* 9/24/2010: Added functionality Z.
* 7/1/2010: First version. Added functionalities X and Y.
*/
If not, how would you do it? Leave it to the VCS? Add tags in code like RCS/CVS/SVN for history information? Do it manually? Would you include all the above information, or add more, or remove some?
Additionally, can TFS do something similar to RCS/CVS/SVN as mentioned?
| version-control | tfs | documentation | comments | null | 10/07/2010 02:06:41 | not constructive | What is everyone's take on "documentary" (i.e. not functional) comments?
===
So we have fancy version control systems these days where we can comment on changes made to code. Is it any longer relevant to put similar "documentary" comments in your code? For example, in a file called Helper.cs:
/*
* Filename: Helper.cs
* Author: Will Johansson
* Created: 7/1/2010
* Purpose: Internal helper functionality for XYZ.
* Change history:
* 10/5/2010: Final 1.0 commit. Fixed x, y, z.
* 9/24/2010: Added functionality Z.
* 7/1/2010: First version. Added functionalities X and Y.
*/
If not, how would you do it? Leave it to the VCS? Add tags in code like RCS/CVS/SVN for history information? Do it manually? Would you include all the above information, or add more, or remove some?
Additionally, can TFS do something similar to RCS/CVS/SVN as mentioned?
| 4 |
8,867,057 | 01/15/2012 02:12:04 | 992,173 | 10/12/2011 19:47:25 | 97 | 1 | Multiple Django sites on a single SSL certificate using a single IP with Apache | Is it technically possible to setup multiple Django sites using a single SSL certificate on a single IP address with Apache?
Below is an excerpt from my SSL config:
Alias /media/ x:/home/djang-apps/myapp
WSGIScriptAlias / x:/home/djang-apps/myapp/apache/django.wsgi
<Directory x:/home/djang-apps/>
Order allow,deny
Allow from all
</Directory>
One of the issues I've come up against is since I only have a single IP address I have only 1 virtual host therefore how can I reference the varius media folders that contain the css/images/js etc for each Django website as well as the WSGIScriptAlias for each site? | django | apache | ssl-certificate | vhosts | null | 01/16/2012 06:53:39 | off topic | Multiple Django sites on a single SSL certificate using a single IP with Apache
===
Is it technically possible to setup multiple Django sites using a single SSL certificate on a single IP address with Apache?
Below is an excerpt from my SSL config:
Alias /media/ x:/home/djang-apps/myapp
WSGIScriptAlias / x:/home/djang-apps/myapp/apache/django.wsgi
<Directory x:/home/djang-apps/>
Order allow,deny
Allow from all
</Directory>
One of the issues I've come up against is since I only have a single IP address I have only 1 virtual host therefore how can I reference the varius media folders that contain the css/images/js etc for each Django website as well as the WSGIScriptAlias for each site? | 2 |
11,137,128 | 06/21/2012 11:26:25 | 1,104,791 | 12/18/2011 18:30:52 | 85 | 0 | Single developer work flow | I'm a single developer and am unsure on what the most suitable work flow for me is. I know there is lots of talk of complex systems of multiple branch git repos but it seems overly complex for me.
I am developing a PHP site and use Sublime Text 2. I use a Git repo on Github just as a backup only. I have a dev server where I need to test the site often and a production server where it will be deployed at a later date. Both servers are on Amazon AWS. I'm looking for the best work flow to allow for easy testing on the dev server and then onto the production server.
Any advice? | php | git | svn | version-control | null | 06/21/2012 11:44:31 | off topic | Single developer work flow
===
I'm a single developer and am unsure on what the most suitable work flow for me is. I know there is lots of talk of complex systems of multiple branch git repos but it seems overly complex for me.
I am developing a PHP site and use Sublime Text 2. I use a Git repo on Github just as a backup only. I have a dev server where I need to test the site often and a production server where it will be deployed at a later date. Both servers are on Amazon AWS. I'm looking for the best work flow to allow for easy testing on the dev server and then onto the production server.
Any advice? | 2 |
3,203,585 | 07/08/2010 12:35:50 | 386,361 | 07/08/2010 07:42:52 | 1 | 0 | How to show all friend in friend list? | if an user login in his/her account then he will see all of his friends profile picture in his home page as like orkut,i hane one table name fsb_friendlist containing friendlist_memberid and friendlist_friendid,and another table name fsb_profile containg profile_userid,profile_name,profile_image,etc now how can i show user's friend in the home page? | php | null | null | null | null | 07/08/2010 12:42:37 | not a real question | How to show all friend in friend list?
===
if an user login in his/her account then he will see all of his friends profile picture in his home page as like orkut,i hane one table name fsb_friendlist containing friendlist_memberid and friendlist_friendid,and another table name fsb_profile containg profile_userid,profile_name,profile_image,etc now how can i show user's friend in the home page? | 1 |
8,816,041 | 01/11/2012 08:07:53 | 771,311 | 05/26/2011 12:41:09 | 246 | 4 | Interesting: implementing jquery autoComplete with jqgrid without overriding the exciting searchOptions |
Oleg - are you here???
I am using jqGrid, were i set in colModel my searchoption according to the type
Like this:
var columnModel = [{ name: 'ID', index: 'ID', sortable: true,searchoptions: { sopt: ['gt']}},
{ name: 'FirstName', index: 'FirstName', sortable: true, searchoptions: { sopt: ['cn']} },
{ name: 'LastName', index: 'LastName', sortable: true ,searchoptions: { sopt: ['ge']}}
];
Now after i load the grid i want to use the fallowing code in order to add auticomplete to the search box of the grid:
for (var i = 0; i < columnModel.length; i++) {
var nameCol = columnModel[i].name;
myGrid.jqGrid('setColProp', nameCol,
{
searchoptions: {
dataInit: function (elem) {
$(elem).autocomplete({
source: function (request, response) {
autoFillSearch(request, response, $(elem).attr('name'));
},
minLength: 1
});
}
}
});
}
myGrid.jqGrid('filterToolbar', { stringResult: true, searchOnEnter: true });
the autoFillSearch function is like this:
function autoFillSearch(request, response, columnToSearchName) {
var paramters = {
colName: columnToSearchName,
prefixText: request.term
};
$.ajax({
url: './ViewNQueryData.asmx/AutoCompleteSearch',
type: 'POST',
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(paramters),
success: function (data) {
response($.each(data.d, function (index, value) {
return {
label: value,
value: index
}
}));
}
});
}
The problem is that new the colModels have the search option that were created the second time and dont have my specific "sopt" i want them to have....
I there any way of changing the second searchoption so that it will get the "sopt" option from the original colMadel?
Thank you in advance.
| jquery-ui | search | jqgrid | jquery-autocomplete | null | null | open | Interesting: implementing jquery autoComplete with jqgrid without overriding the exciting searchOptions
===
Oleg - are you here???
I am using jqGrid, were i set in colModel my searchoption according to the type
Like this:
var columnModel = [{ name: 'ID', index: 'ID', sortable: true,searchoptions: { sopt: ['gt']}},
{ name: 'FirstName', index: 'FirstName', sortable: true, searchoptions: { sopt: ['cn']} },
{ name: 'LastName', index: 'LastName', sortable: true ,searchoptions: { sopt: ['ge']}}
];
Now after i load the grid i want to use the fallowing code in order to add auticomplete to the search box of the grid:
for (var i = 0; i < columnModel.length; i++) {
var nameCol = columnModel[i].name;
myGrid.jqGrid('setColProp', nameCol,
{
searchoptions: {
dataInit: function (elem) {
$(elem).autocomplete({
source: function (request, response) {
autoFillSearch(request, response, $(elem).attr('name'));
},
minLength: 1
});
}
}
});
}
myGrid.jqGrid('filterToolbar', { stringResult: true, searchOnEnter: true });
the autoFillSearch function is like this:
function autoFillSearch(request, response, columnToSearchName) {
var paramters = {
colName: columnToSearchName,
prefixText: request.term
};
$.ajax({
url: './ViewNQueryData.asmx/AutoCompleteSearch',
type: 'POST',
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(paramters),
success: function (data) {
response($.each(data.d, function (index, value) {
return {
label: value,
value: index
}
}));
}
});
}
The problem is that new the colModels have the search option that were created the second time and dont have my specific "sopt" i want them to have....
I there any way of changing the second searchoption so that it will get the "sopt" option from the original colMadel?
Thank you in advance.
| 0 |
8,812,307 | 01/10/2012 23:54:30 | 1,117,826 | 12/27/2011 15:08:42 | 13 | 0 | Ruby on rails, form isn't passing part of a parameter | I'm trying to invite new users to a web application. I have the following code:
= f.fields_for(:memberships, Membership.new(:user => User.new( :account => Account.new( :invited_by => current_profile))), :child_index => 'new_membership') do |ff|
= ff.fields_for :user do |user_fields|
= user_fields.fields_for :account do |account_fields|
= account_fields.hidden_field :invited_by_id
%div{:class => "label_top field"}
= account_fields.label :email
- if account_fields.object.new_record?
= account_fields.text_field :email
- else
= account_fields.object.email
%div{:class => "label_top field"}
= user_fields.label :first_name
= user_fields.text_field :first_name
%div{:class => "label_top field"}
= user_fields.label :last_name
= user_fields.text_field :last_name
= ff.hidden_field :pending
On my website, members of the site have two parts: an account and the type of account. First you create an account and then your type is defined later. In this case, we're working with a user type account. Users and accounts are two different models. This code create a user membership to a project. If the the user is not signed up to the website yet, this particular form creates the membership and also creates a new account of the type user.
The user part of the model seems to work (ie first and last name are being saved), however, the account part of the model (email) is not being saved. Any recommendations? My guess is that the e-mail parameter is not being passed correctly to the Account model, though not quite sure how to check which parameters are being sent either.
| ruby-on-rails | forms | params | null | null | null | open | Ruby on rails, form isn't passing part of a parameter
===
I'm trying to invite new users to a web application. I have the following code:
= f.fields_for(:memberships, Membership.new(:user => User.new( :account => Account.new( :invited_by => current_profile))), :child_index => 'new_membership') do |ff|
= ff.fields_for :user do |user_fields|
= user_fields.fields_for :account do |account_fields|
= account_fields.hidden_field :invited_by_id
%div{:class => "label_top field"}
= account_fields.label :email
- if account_fields.object.new_record?
= account_fields.text_field :email
- else
= account_fields.object.email
%div{:class => "label_top field"}
= user_fields.label :first_name
= user_fields.text_field :first_name
%div{:class => "label_top field"}
= user_fields.label :last_name
= user_fields.text_field :last_name
= ff.hidden_field :pending
On my website, members of the site have two parts: an account and the type of account. First you create an account and then your type is defined later. In this case, we're working with a user type account. Users and accounts are two different models. This code create a user membership to a project. If the the user is not signed up to the website yet, this particular form creates the membership and also creates a new account of the type user.
The user part of the model seems to work (ie first and last name are being saved), however, the account part of the model (email) is not being saved. Any recommendations? My guess is that the e-mail parameter is not being passed correctly to the Account model, though not quite sure how to check which parameters are being sent either.
| 0 |
1,884,061 | 12/10/2009 21:13:45 | 105,744 | 05/12/2009 21:17:51 | 2,826 | 143 | C# - Delegate with ref parameter | Is there any way to maintain the same functionality in the code below, but without having to create the delegate? I'm interfacing with a 3rd-party API that contains a number of various DeleteSomethingX(ref IntPtr ptr) methods and I'm trying to centralize the code for the IntPtr.Zero check.
private void delegate CleanupDelegate(ref IntPtr ptr);
...
private void Cleanup(ref IntPtr ptr, CleanupDelegate cleanup)
{
if (ptr != IntPtr.Zero)
{
cleanup(ref ptr);
}
} | c# | .net | delegates | ref | pointers | null | open | C# - Delegate with ref parameter
===
Is there any way to maintain the same functionality in the code below, but without having to create the delegate? I'm interfacing with a 3rd-party API that contains a number of various DeleteSomethingX(ref IntPtr ptr) methods and I'm trying to centralize the code for the IntPtr.Zero check.
private void delegate CleanupDelegate(ref IntPtr ptr);
...
private void Cleanup(ref IntPtr ptr, CleanupDelegate cleanup)
{
if (ptr != IntPtr.Zero)
{
cleanup(ref ptr);
}
} | 0 |
11,487,306 | 07/14/2012 20:51:18 | 1,491,893 | 06/29/2012 18:10:58 | 3 | 0 | How do you open up a gallery from a button? | I have a button made and when clicked I would like it to open up a gallery. How would I do this? | android | button | gallery | photo | open | 07/18/2012 02:32:54 | not a real question | How do you open up a gallery from a button?
===
I have a button made and when clicked I would like it to open up a gallery. How would I do this? | 1 |
9,842,122 | 03/23/2012 15:38:32 | 1,162,039 | 01/21/2012 08:00:53 | 1 | 0 | MySQL install in Ubuntu | I am trying to install MySQL in Ubuntu using the command
sudo apt-get install mysql-server
when I do so, I am getting the following error, it is something to do with Unmet dependencies. I don't know how to rectify this, could some one help me please? Thank you!!
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server: Depends: mysql-server-5.1 but it is not going to be installed
phpmyadmin: Depends: php5-mysql but it is not going to be installed or
php5-mysqli but it is not installable
Depends: php5-mcrypt but it is not going to be installed
Depends: dbconfig-common but it is not going to be installed
Depends: libjs-mootools (>= 1.2.4.0~debian1-1) but it is not going to be
installed
Recommends: php5-gd but it is not going to be installed
Recommends: mysql-client
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
| mysql | null | null | null | null | 03/23/2012 15:44:52 | off topic | MySQL install in Ubuntu
===
I am trying to install MySQL in Ubuntu using the command
sudo apt-get install mysql-server
when I do so, I am getting the following error, it is something to do with Unmet dependencies. I don't know how to rectify this, could some one help me please? Thank you!!
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server: Depends: mysql-server-5.1 but it is not going to be installed
phpmyadmin: Depends: php5-mysql but it is not going to be installed or
php5-mysqli but it is not installable
Depends: php5-mcrypt but it is not going to be installed
Depends: dbconfig-common but it is not going to be installed
Depends: libjs-mootools (>= 1.2.4.0~debian1-1) but it is not going to be
installed
Recommends: php5-gd but it is not going to be installed
Recommends: mysql-client
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
| 2 |
6,561,174 | 07/03/2011 04:56:56 | 655,969 | 03/11/2011 20:50:57 | 71 | 1 | Visual Studio - Windows Forms or Wpf? | I'm curious, what are the differences between Windows Forms and Wpf? And does either give the programmer a greater advantage? | c# | wpf | winforms | visual-studio | null | 07/03/2011 05:11:12 | not constructive | Visual Studio - Windows Forms or Wpf?
===
I'm curious, what are the differences between Windows Forms and Wpf? And does either give the programmer a greater advantage? | 4 |
9,547,396 | 03/03/2012 15:49:32 | 964,135 | 01/23/2011 17:25:57 | 8,574 | 270 | What does, 'AL lib: pulseaudio.c:612: Context did not connect: Access denied' mean? | I'm getting the following error when running a simple OpenAL program:
> AL lib: pulseaudio.c:612: Context did not connect: Access denied
Interestingly, if I try playing audio then it plays correctly, although it sounds slightly distorted.
Below is the code that produces the error. It also happens if I initialize with ALUT.
#include <AL/al.h>
#include <AL/alc.h>
#include <string.h>
int main() {
ALCdevice* dev;
ALCcontext* ctx;
dev = alcOpenDevice(NULL);
ctx = alcCreateContext(dev, NULL);
alcMakeContextCurrent(ctx);
// cleanup
alcMakeContextCurrent(NULL);
alcDestroyContext(ctx);
alcCloseDevice(dev);
return 0;
}
What does the error mean? Can I fix it? | c++ | c | openal | pulseaudio | null | null | open | What does, 'AL lib: pulseaudio.c:612: Context did not connect: Access denied' mean?
===
I'm getting the following error when running a simple OpenAL program:
> AL lib: pulseaudio.c:612: Context did not connect: Access denied
Interestingly, if I try playing audio then it plays correctly, although it sounds slightly distorted.
Below is the code that produces the error. It also happens if I initialize with ALUT.
#include <AL/al.h>
#include <AL/alc.h>
#include <string.h>
int main() {
ALCdevice* dev;
ALCcontext* ctx;
dev = alcOpenDevice(NULL);
ctx = alcCreateContext(dev, NULL);
alcMakeContextCurrent(ctx);
// cleanup
alcMakeContextCurrent(NULL);
alcDestroyContext(ctx);
alcCloseDevice(dev);
return 0;
}
What does the error mean? Can I fix it? | 0 |
9,499,289 | 02/29/2012 12:36:04 | 1,157,979 | 01/19/2012 08:08:25 | 1 | 14 | Improve application speed? | Hi am we are using an application built with mysql and php, we get huge number of data transaction in and out of system. The queries are optimized to the best. till when a group task is done e.g 100 people login at same time , the system becomes dead slow.
can some one please suggest a way to solve this problem. tnx in advance... | php | mysql | null | null | null | 02/29/2012 12:39:59 | not a real question | Improve application speed?
===
Hi am we are using an application built with mysql and php, we get huge number of data transaction in and out of system. The queries are optimized to the best. till when a group task is done e.g 100 people login at same time , the system becomes dead slow.
can some one please suggest a way to solve this problem. tnx in advance... | 1 |
5,463,118 | 03/28/2011 18:05:46 | 667,143 | 03/19/2011 08:47:55 | 1 | 0 | How can I conduct a poll through an irc bot? | I've set up a irc bot using socket. I've added a few commands , but I'd like to add a "poll" function.
Ideally, the bot would get a command with this format:
`!poll <name> <opt1> <opt2> <opt3> <time>`
How would I go about checking user who voted and ending the poll after a certain time?
Thanks in advance,
Desperate Python Beginner. | python | irc | bots | poll | vote | null | open | How can I conduct a poll through an irc bot?
===
I've set up a irc bot using socket. I've added a few commands , but I'd like to add a "poll" function.
Ideally, the bot would get a command with this format:
`!poll <name> <opt1> <opt2> <opt3> <time>`
How would I go about checking user who voted and ending the poll after a certain time?
Thanks in advance,
Desperate Python Beginner. | 0 |
4,133,580 | 11/09/2010 12:24:19 | 481,455 | 10/20/2010 09:01:21 | 26 | 3 | how to read and display svg files in android | i struck with svg file,problem is reading svg file and displaying it using android.plzzz help me.thank u in advance!!!!!!!!!!!!! | java | android | null | null | null | 11/09/2010 15:09:58 | not a real question | how to read and display svg files in android
===
i struck with svg file,problem is reading svg file and displaying it using android.plzzz help me.thank u in advance!!!!!!!!!!!!! | 1 |
9,072,107 | 01/30/2012 23:00:10 | 441,016 | 09/07/2010 01:14:44 | 344 | 24 | How can I show a line under each row of text in a Spark TextArea | I'm trying to show a horizontal line under each row of text in a Spark TextArea. I want to give the text area the look of legal paper. | flex | flex4 | spark | null | null | null | open | How can I show a line under each row of text in a Spark TextArea
===
I'm trying to show a horizontal line under each row of text in a Spark TextArea. I want to give the text area the look of legal paper. | 0 |
11,607,514 | 07/23/2012 06:36:12 | 707,734 | 04/14/2011 10:12:57 | 8 | 0 | steps to automate the process of login to a remote linux server and install rpm | I would like to automate the process of creating rpm and copying it to remote linux machine and install the rpm on remote linux machine. I would like to use shell and expect scripting. | linux | shell | automation | expect | null | 07/25/2012 02:42:25 | not constructive | steps to automate the process of login to a remote linux server and install rpm
===
I would like to automate the process of creating rpm and copying it to remote linux machine and install the rpm on remote linux machine. I would like to use shell and expect scripting. | 4 |
9,270,791 | 02/14/2012 02:12:05 | 988,129 | 10/10/2011 17:27:42 | 6 | 0 | ReCaptcha/Noscript/Iframe Issues | I have a registration form with recaptcha on my site. For some reason, my posting script won't pick up any variables after the iframe that the recaptcha php script creates. I don't know if its the iframe or the <noscript> that's causing the problem. Any help is appreciated.
Code below.
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=xxxxxxxx"></script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=xxxxxxxxxx" height="300" width="500" frameborder="0"></iframe><br/>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript>Your captcha response was invalid.<br />
<input type="hidden" name="n" value="1"/>I agree to the Terms of Service.
<input type="submit" value="Register" />
</form>
Thanks. | php | variables | iframe | recaptcha | noscript | null | open | ReCaptcha/Noscript/Iframe Issues
===
I have a registration form with recaptcha on my site. For some reason, my posting script won't pick up any variables after the iframe that the recaptcha php script creates. I don't know if its the iframe or the <noscript> that's causing the problem. Any help is appreciated.
Code below.
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=xxxxxxxx"></script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=xxxxxxxxxx" height="300" width="500" frameborder="0"></iframe><br/>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript>Your captcha response was invalid.<br />
<input type="hidden" name="n" value="1"/>I agree to the Terms of Service.
<input type="submit" value="Register" />
</form>
Thanks. | 0 |
6,090,399 | 05/22/2011 19:59:48 | 212,602 | 11/17/2009 05:05:38 | 1 | 0 | Get HOG image features from OpenCV + Python? | I've read this post about how to use OpenCV's HOG-based pedestrian detector: http://stackoverflow.com/questions/2188646/how-can-i-detect-and-track-people-using-opencv
I want to use HOG for detecting other types of objects in images (not just pedestrians). However, the Python binding of *HOGDetectMultiScale* doesn't seem to give access to the actual HOG features.
Is there any way to use Python + OpenCV to extract the HOG features directly from any image? | python | image-processing | opencv | null | null | null | open | Get HOG image features from OpenCV + Python?
===
I've read this post about how to use OpenCV's HOG-based pedestrian detector: http://stackoverflow.com/questions/2188646/how-can-i-detect-and-track-people-using-opencv
I want to use HOG for detecting other types of objects in images (not just pedestrians). However, the Python binding of *HOGDetectMultiScale* doesn't seem to give access to the actual HOG features.
Is there any way to use Python + OpenCV to extract the HOG features directly from any image? | 0 |
10,681,980 | 05/21/2012 08:40:55 | 1,116,747 | 12/26/2011 20:42:31 | 25 | 0 | can i install sqlserver 2008 r2 standard edition if sqlexpress 2008 already installed | in my windows xp maching i already had instaled sqlserver 2008 R2 advanced express edition
now i want to install sqlserver 2008 R2 Standard Edition ,it is possible to both wil be in same machine can i install sqlserver 2008 r2 standard edition. | sql-server | sql-server-2008-r2 | null | null | null | 05/27/2012 15:02:47 | off topic | can i install sqlserver 2008 r2 standard edition if sqlexpress 2008 already installed
===
in my windows xp maching i already had instaled sqlserver 2008 R2 advanced express edition
now i want to install sqlserver 2008 R2 Standard Edition ,it is possible to both wil be in same machine can i install sqlserver 2008 r2 standard edition. | 2 |
241,479 | 10/27/2008 21:38:52 | 28,919 | 10/17/2008 13:34:49 | 76 | 5 | What are the best references for using jQuery? | I'm inteested in what you find are the best development references for learning and using jQuery. Books, websites, etc. are all welcome. | jquery | reference | null | null | null | 06/09/2012 16:56:19 | not constructive | What are the best references for using jQuery?
===
I'm inteested in what you find are the best development references for learning and using jQuery. Books, websites, etc. are all welcome. | 4 |
6,177,510 | 05/30/2011 14:26:28 | 659,003 | 03/14/2011 14:56:47 | 104 | 10 | Half-face data struct library | I'am looking for a c++ library able to handle (at least) tetrahedral meshes via the extended half-edge data structure also called half-face. Do you know such a project ?
For surfaces representation I use [OpenMesh](http://www.openmesh.org/) witch is a very nice implementation of half-edge structure. I implemented my own half-face data struct from scratch since I wasn't able to extent OpenMesh (Array kernel is way to surface oriented to not rewrite the complete library, plus traits/massive template use is not my thing ...) but it's a little too much for me to support. | c++ | 3d | mesh | null | null | 06/14/2012 04:50:06 | not constructive | Half-face data struct library
===
I'am looking for a c++ library able to handle (at least) tetrahedral meshes via the extended half-edge data structure also called half-face. Do you know such a project ?
For surfaces representation I use [OpenMesh](http://www.openmesh.org/) witch is a very nice implementation of half-edge structure. I implemented my own half-face data struct from scratch since I wasn't able to extent OpenMesh (Array kernel is way to surface oriented to not rewrite the complete library, plus traits/massive template use is not my thing ...) but it's a little too much for me to support. | 4 |
3,309,132 | 07/22/2010 13:07:13 | 91,612 | 04/16/2009 12:52:08 | 1,119 | 91 | My SQL Insert query is executed twice | I'm using [adapter.InsertCommand][1] to insert some data into a table.
The only problem is that it's executed twice, thus giving me double entries in the DB.
I've tried following the example in the documentation of `adapter.InsertCommand` and my own code, but get the same result.
This is my code:
public class nokernokDAL
{
SqlConnection connection = new SqlConnection();
SqlDataAdapter adapter = new SqlDataAdapter();
public nokernokDAL()
{
connection.ConnectionString = EPiServer.Global.EPConfig["EPsConnection"].ToString();
connection.Open();
}
public void addNewComment(int userID, int pageID, string title, string comment)
{
string query = "INSERT INTO dbo.nokernok_kommentarer (userID, pageID, commentTitle, comment) " +
"VALUES ("+ userID +", "+ pageID +", '"+ title +"', '"+ comment +"')";
adapter.InsertCommand = new SqlCommand(query, connection);
adapter.InsertCommand.ExecuteNonQuery();
}
}
Anny suggestions in how I can avoid this?
[1]: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.InsertCommand.aspx | c# | .net | sql | sql-server-2005 | null | null | open | My SQL Insert query is executed twice
===
I'm using [adapter.InsertCommand][1] to insert some data into a table.
The only problem is that it's executed twice, thus giving me double entries in the DB.
I've tried following the example in the documentation of `adapter.InsertCommand` and my own code, but get the same result.
This is my code:
public class nokernokDAL
{
SqlConnection connection = new SqlConnection();
SqlDataAdapter adapter = new SqlDataAdapter();
public nokernokDAL()
{
connection.ConnectionString = EPiServer.Global.EPConfig["EPsConnection"].ToString();
connection.Open();
}
public void addNewComment(int userID, int pageID, string title, string comment)
{
string query = "INSERT INTO dbo.nokernok_kommentarer (userID, pageID, commentTitle, comment) " +
"VALUES ("+ userID +", "+ pageID +", '"+ title +"', '"+ comment +"')";
adapter.InsertCommand = new SqlCommand(query, connection);
adapter.InsertCommand.ExecuteNonQuery();
}
}
Anny suggestions in how I can avoid this?
[1]: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.InsertCommand.aspx | 0 |
10,025,357 | 04/05/2012 08:43:29 | 232,957 | 12/16/2009 13:02:23 | 164 | 1 | Client requested protocol SSLv3 not enabled or not supported (IBM JDK 6.0SR10) | After updating from IBM JDK 6.0SR9 to 6.0SR10 I keep getting (on the server-side):
java.io.IOException: javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported
at com.ibm.jsse2.kb.z(kb.java:107)
at com.ibm.jsse2.SSLEngineImpl.b(SSLEngineImpl.java:4)
at com.ibm.jsse2.SSLEngineImpl.c(SSLEngineImpl.java:224)
at com.ibm.jsse2.SSLEngineImpl.wrap(SSLEngineImpl.java:377)
at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:6)
None of the security settings were modified. Any idea how I can (re)enable SSLv3?
Thanks. | java | ssl | sslhandshakeexception | ibm-jdk | null | null | open | Client requested protocol SSLv3 not enabled or not supported (IBM JDK 6.0SR10)
===
After updating from IBM JDK 6.0SR9 to 6.0SR10 I keep getting (on the server-side):
java.io.IOException: javax.net.ssl.SSLHandshakeException: Client requested protocol SSLv3 not enabled or not supported
at com.ibm.jsse2.kb.z(kb.java:107)
at com.ibm.jsse2.SSLEngineImpl.b(SSLEngineImpl.java:4)
at com.ibm.jsse2.SSLEngineImpl.c(SSLEngineImpl.java:224)
at com.ibm.jsse2.SSLEngineImpl.wrap(SSLEngineImpl.java:377)
at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:6)
None of the security settings were modified. Any idea how I can (re)enable SSLv3?
Thanks. | 0 |
8,436,810 | 12/08/2011 19:54:40 | 742,817 | 05/07/2011 07:42:58 | 8 | 1 | getting Basic realm message in http authentication using C# | I'm asking how to get Basic realm message that appears in http authentication requests
using C# ? | c# | httpwebrequest | basic-authentication | webresponse | null | 12/09/2011 03:58:44 | not a real question | getting Basic realm message in http authentication using C#
===
I'm asking how to get Basic realm message that appears in http authentication requests
using C# ? | 1 |
4,448,089 | 12/15/2010 08:38:04 | 525,023 | 11/30/2010 10:37:44 | 20 | 1 | Paramiko X11 mode with python programming | I do not manage to use the Paramiko python module passing through its ssh X11 management fonctionality.
I would like to use it as if I used the ssh -X option.
I have tried several solution but nothing work on my system.
Here is the code I tried :
----
client = paramiko.SSHClient()
client.set_missing_host_key_policy(AutoAddPolicy())
client.connect(machineName, username=xxx, password=xxx)
t = client.get_transport ()
chan = t.open_session ()
chan.request_x11 ()
chan.set_combine_stderr (True)
chan.exec_command (xxxxx) # the command that should display a X11 window
bufsize = -1
stdin = chan.makefile('wb', bufsize)
stdout = chan.makefile('rb', bufsize)
stderr = chan.makefile_stderr('rb', bufsize)
for line in stdout:
print '... ' + line.strip('\n')
client.close()
-----
I also tried (instead of the exec_command) :
chan.get_pty("vt100", 80, 50)
chan.invoke_shell()
chan.send(xxxxx) # the command that should display a X11 window
-----
Unfortunatly, my application freezes at the moment that the X11 window should normally appear. Remark : If I launch a command without a X11 window displaying, it works perfectly.
Thank you for your help,
Regards
| python | ssh | x11 | paramiko | null | null | open | Paramiko X11 mode with python programming
===
I do not manage to use the Paramiko python module passing through its ssh X11 management fonctionality.
I would like to use it as if I used the ssh -X option.
I have tried several solution but nothing work on my system.
Here is the code I tried :
----
client = paramiko.SSHClient()
client.set_missing_host_key_policy(AutoAddPolicy())
client.connect(machineName, username=xxx, password=xxx)
t = client.get_transport ()
chan = t.open_session ()
chan.request_x11 ()
chan.set_combine_stderr (True)
chan.exec_command (xxxxx) # the command that should display a X11 window
bufsize = -1
stdin = chan.makefile('wb', bufsize)
stdout = chan.makefile('rb', bufsize)
stderr = chan.makefile_stderr('rb', bufsize)
for line in stdout:
print '... ' + line.strip('\n')
client.close()
-----
I also tried (instead of the exec_command) :
chan.get_pty("vt100", 80, 50)
chan.invoke_shell()
chan.send(xxxxx) # the command that should display a X11 window
-----
Unfortunatly, my application freezes at the moment that the X11 window should normally appear. Remark : If I launch a command without a X11 window displaying, it works perfectly.
Thank you for your help,
Regards
| 0 |
7,479,538 | 09/20/2011 02:47:17 | 857,071 | 07/22/2011 00:47:33 | 173 | 8 | Image flickering when moving and animaring in VB6 | I am using VB6 make a game. You move with the arrow keys, and also when you move there is a animation. I have cached the character that move's sprites into a stdPicture array, but still get flickering every time for some reason. How can I stop this? I am using an image object with transparent sprites and a solid background. I get flickering with white background on sprite and even in a picture box. Is there any way to stop the fickering? Currently I animate with LoadPicture() and I move with Image.Left = Image.Left +/- 200 etc. | animation | vb6 | flicker | null | null | 01/28/2012 21:06:23 | too localized | Image flickering when moving and animaring in VB6
===
I am using VB6 make a game. You move with the arrow keys, and also when you move there is a animation. I have cached the character that move's sprites into a stdPicture array, but still get flickering every time for some reason. How can I stop this? I am using an image object with transparent sprites and a solid background. I get flickering with white background on sprite and even in a picture box. Is there any way to stop the fickering? Currently I animate with LoadPicture() and I move with Image.Left = Image.Left +/- 200 etc. | 3 |
8,996,743 | 01/25/2012 01:18:02 | 542,687 | 12/14/2010 23:22:38 | 463 | 3 | Why isn't GLsizei defined as unsigned? | I was looking up the `typedef` of `GLsizei` for the OpenGL ES 1.1 implementation on iOS, and was surprised to find that it was defined as an `int`. Some quick googling showed that this is normal.
I was expecting that it would be defined as an `unsigned int` or `size_t`. Why is it defined as just a vanilla `int`?
| opengl | types | opengl-es | null | null | null | open | Why isn't GLsizei defined as unsigned?
===
I was looking up the `typedef` of `GLsizei` for the OpenGL ES 1.1 implementation on iOS, and was surprised to find that it was defined as an `int`. Some quick googling showed that this is normal.
I was expecting that it would be defined as an `unsigned int` or `size_t`. Why is it defined as just a vanilla `int`?
| 0 |
3,918,826 | 10/12/2010 20:38:25 | 227,523 | 12/08/2009 22:11:54 | 1,335 | 47 | Popular keywords in vars, functions etc. names? | help me please with naming vars and functions!
And more specifically about standartizing names and functions (I'm not talking about classes because sometimes it really depends on FrameWork etc.).
For example: list, map, counter/count (or cnt), quantity (or qnty) etc.
I'm asking because sometime it is really difficult for me to find best name (English ins't my native janguage, Russian is. :)).
Thank you.
| naming | variable-naming | null | null | null | 10/12/2010 20:48:48 | not constructive | Popular keywords in vars, functions etc. names?
===
help me please with naming vars and functions!
And more specifically about standartizing names and functions (I'm not talking about classes because sometimes it really depends on FrameWork etc.).
For example: list, map, counter/count (or cnt), quantity (or qnty) etc.
I'm asking because sometime it is really difficult for me to find best name (English ins't my native janguage, Russian is. :)).
Thank you.
| 4 |
6,422,705 | 06/21/2011 08:54:51 | 718,016 | 04/20/2011 22:53:55 | 2 | 0 | The implementation of the game on Iphone | I will implement a game in which the ball must move across the screen, and its board should reflect that.
Example: http://itunes.apple.com/us/app/blocksclassic/id286136632?mt=8
Only in my case the board in the shape of a trapezoid
http://www.google.com/imgres?imgurl=http://lib.rus.ec/i/13/280313/i_046.png&imgrefurl=http://lib.rus.ec/b/280313/read&usg=__yqOfjRlkC5iX9anXrCjC64IQkA0=&h=142&w=250&sz=2&hl=en&start=38&sig2=Lv8PCi8-hS-f9oMVRajN2Q&zoom=1&tbnid=HLgKe5tWzcZBUM:&tbnh=113&tbnw=200&ei=TFEATsGgLcj1sgbPjuW6DQ&prev=/search%3Fq%3D%25D1%2582%25D1%2580%25D0%25B0%25D0%25BF%25D0%25B5%25D1%2586%25D0%25B8%25D1%258F%2B%25D1%2584%25D0%25BE%25D1%2582%25D0%25BE%26hl%3Den%26sa%3DX%26biw%3D1366%26bih%3D870%26tbm%3Disch&itbs=1&iact=hc&vpx=906&vpy=399&dur=15&hovh=113&hovw=200&tx=88&ty=61&page=2&ndsp=24&ved=1t:429,r:4,s:38&biw=1366&bih=870
If the ball hits the side of the trapeze, he should rebound in the direction of 180 degrees.
Which way do I implement it?
Thank you in advance if you need something clarified please ask questions. | iphone | frame | null | null | null | 06/21/2011 14:21:36 | not constructive | The implementation of the game on Iphone
===
I will implement a game in which the ball must move across the screen, and its board should reflect that.
Example: http://itunes.apple.com/us/app/blocksclassic/id286136632?mt=8
Only in my case the board in the shape of a trapezoid
http://www.google.com/imgres?imgurl=http://lib.rus.ec/i/13/280313/i_046.png&imgrefurl=http://lib.rus.ec/b/280313/read&usg=__yqOfjRlkC5iX9anXrCjC64IQkA0=&h=142&w=250&sz=2&hl=en&start=38&sig2=Lv8PCi8-hS-f9oMVRajN2Q&zoom=1&tbnid=HLgKe5tWzcZBUM:&tbnh=113&tbnw=200&ei=TFEATsGgLcj1sgbPjuW6DQ&prev=/search%3Fq%3D%25D1%2582%25D1%2580%25D0%25B0%25D0%25BF%25D0%25B5%25D1%2586%25D0%25B8%25D1%258F%2B%25D1%2584%25D0%25BE%25D1%2582%25D0%25BE%26hl%3Den%26sa%3DX%26biw%3D1366%26bih%3D870%26tbm%3Disch&itbs=1&iact=hc&vpx=906&vpy=399&dur=15&hovh=113&hovw=200&tx=88&ty=61&page=2&ndsp=24&ved=1t:429,r:4,s:38&biw=1366&bih=870
If the ball hits the side of the trapeze, he should rebound in the direction of 180 degrees.
Which way do I implement it?
Thank you in advance if you need something clarified please ask questions. | 4 |
9,921,220 | 03/29/2012 07:51:34 | 958,500 | 09/22/2011 07:10:09 | 27 | 0 | How to stop Backgroundworker and closed form? | I want to completely stop the BackgroundWorker DoWork() Process while running.
I heve applied following code but in "this.Invoke" throwing error : "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." while From close.
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
var dt_Images = db.Rings.Select(I => new { I.PaidRs, I.TypeID, I.RingID, I.CodeNo, Image = Image.FromStream(new MemoryStream(I.Image.ToArray())) }).OrderByDescending(r => r.TypeID);
foreach (var dr in dt_Images.ThenByDescending(r => r.RingID).ToList())
{
BTN = new Button();
BTN.TextImageRelation = TextImageRelation.TextAboveImage;
BTN.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
BTN.AutoSize = true;
BTN.Name = dr.RingID.ToString();
BTN.Image = dr.Image;
BTN.Text = dr.CodeNo.ToString() + " " + dr.TypeID.ToString();
this.Invoke(new MethodInvoker(delegate { if (backgroundWorker1 != null) flowLayoutPanel1.Controls.Add(BTN); else return; }));
BTN.Click += new EventHandler(this.pic_Click);
this.Invoke(new MethodInvoker(delegate { if (backgroundWorker1 == null) txt_pcs.Text = flowLayoutPanel1.Controls.Count.ToString(); else return;}));
}
}
private void Form_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Escape)
{
backgroundWorker1.CancelAsync();
backgroundWorker1 = null;
This.Dispose();
}
}
How to solved this error?
please help me. | .net | winforms | c#-4.0 | controls | backgroundworker | null | open | How to stop Backgroundworker and closed form?
===
I want to completely stop the BackgroundWorker DoWork() Process while running.
I heve applied following code but in "this.Invoke" throwing error : "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." while From close.
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
var dt_Images = db.Rings.Select(I => new { I.PaidRs, I.TypeID, I.RingID, I.CodeNo, Image = Image.FromStream(new MemoryStream(I.Image.ToArray())) }).OrderByDescending(r => r.TypeID);
foreach (var dr in dt_Images.ThenByDescending(r => r.RingID).ToList())
{
BTN = new Button();
BTN.TextImageRelation = TextImageRelation.TextAboveImage;
BTN.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
BTN.AutoSize = true;
BTN.Name = dr.RingID.ToString();
BTN.Image = dr.Image;
BTN.Text = dr.CodeNo.ToString() + " " + dr.TypeID.ToString();
this.Invoke(new MethodInvoker(delegate { if (backgroundWorker1 != null) flowLayoutPanel1.Controls.Add(BTN); else return; }));
BTN.Click += new EventHandler(this.pic_Click);
this.Invoke(new MethodInvoker(delegate { if (backgroundWorker1 == null) txt_pcs.Text = flowLayoutPanel1.Controls.Count.ToString(); else return;}));
}
}
private void Form_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Escape)
{
backgroundWorker1.CancelAsync();
backgroundWorker1 = null;
This.Dispose();
}
}
How to solved this error?
please help me. | 0 |
5,211,479 | 03/06/2011 15:46:01 | 441,049 | 09/07/2010 02:36:49 | 241 | 3 | How to encrypt data at rest? | Is there a sofware we can install on the server or are there any technologies that we can use to encrypt data at rest??
| php | encryption | null | null | null | 03/06/2011 16:21:25 | not a real question | How to encrypt data at rest?
===
Is there a sofware we can install on the server or are there any technologies that we can use to encrypt data at rest??
| 1 |
1,983,717 | 12/31/2009 02:54:09 | 135,383 | 07/09/2009 02:43:56 | 104 | 3 | Finding approximately duplicate database records using T-SQL? | Hey all. I have a MSSQL 2008 database with a fair number of rows. As of now, before new rows are inserted into the table, the stored procedure checks to see if that record already exists in the database (by checking a column labeled Title). This check is exact, and if the to-be-inserted record is slightly different, it will insert it instead of updating the existing row (which is an approximate match). What I would like to do is somehow detect approximate duplications in the table before inserting. So a new record that is to be inserted:
The quick brown fox jumps over the lazy dog
would approximately match:
Quick brown fox jumps over the lazy dog
if this record exists in the table already. I've seen (and used for other situations) the [Levenshtein Distance][1] algorithm implemented in T-SQL, but I'm not sure if this could be applied in my case because a pair of input strings are required to execute the algorithm. How are members of the community handing things of this sort? Thanks.
[1]: http://en.wikipedia.org/wiki/Levenshtein_distance | tsql | sql-server | null | null | null | null | open | Finding approximately duplicate database records using T-SQL?
===
Hey all. I have a MSSQL 2008 database with a fair number of rows. As of now, before new rows are inserted into the table, the stored procedure checks to see if that record already exists in the database (by checking a column labeled Title). This check is exact, and if the to-be-inserted record is slightly different, it will insert it instead of updating the existing row (which is an approximate match). What I would like to do is somehow detect approximate duplications in the table before inserting. So a new record that is to be inserted:
The quick brown fox jumps over the lazy dog
would approximately match:
Quick brown fox jumps over the lazy dog
if this record exists in the table already. I've seen (and used for other situations) the [Levenshtein Distance][1] algorithm implemented in T-SQL, but I'm not sure if this could be applied in my case because a pair of input strings are required to execute the algorithm. How are members of the community handing things of this sort? Thanks.
[1]: http://en.wikipedia.org/wiki/Levenshtein_distance | 0 |
7,359,717 | 09/09/2011 09:38:40 | 936,502 | 09/09/2011 09:38:40 | 1 | 0 | Any way to covert html into readable format in java? | I have some emails whose content is in html format and I want to save in database in readable format any inputs.
Also i have got emails dumped in a text file and i need to extract data from it.Any inputs .All in java | java | null | null | null | null | 09/09/2011 11:26:19 | not a real question | Any way to covert html into readable format in java?
===
I have some emails whose content is in html format and I want to save in database in readable format any inputs.
Also i have got emails dumped in a text file and i need to extract data from it.Any inputs .All in java | 1 |
4,565,289 | 12/30/2010 18:42:40 | 406,930 | 07/30/2010 16:29:21 | 423 | 30 | Upload Images to Server | I have few images that I want to upload to my server. The client side is written in Java, and I will be making a HTTP Post request to upload images. Do I need to write server side code to handle the http post request? If so, where can I find some examples? The server supports PHP and Tomcat. | java | php | file-upload | http-post | null | null | open | Upload Images to Server
===
I have few images that I want to upload to my server. The client side is written in Java, and I will be making a HTTP Post request to upload images. Do I need to write server side code to handle the http post request? If so, where can I find some examples? The server supports PHP and Tomcat. | 0 |
8,129,485 | 11/14/2011 23:05:43 | 633,251 | 02/24/2011 22:43:02 | 214 | 8 | Using inst/extdata with vignette during package checking R 2.14.0 | I have a package which contains a csv file which I put in inst/extdata per R-exts. This file is needed for the vignette. If I Sweave the vignette directly, all works well. When I run R --vanilla CMD check however, the check process can't find the file. I know it has been moved into an .Rcheck directory during checking and this is probably part of the problem. But I don't know how to set it up so both direct Sweave and vignette building/checking works.
The vignette contains a line like this:
EC1 <- dot2HPD(file = "../inst/extdata/E_coli/ecoli.dot",
node.inst = "../inst/extdata/E_coli/NodeInst.csv",
and the function dot2HPD accesses the file via:
ni <- read.csv(node.inst)
Here's the error message:
> tab <- read.csv("../inst/extdata/E_coli/NodeInst.csv")
Warning in file(file, "rt") :
cannot open file '../inst/extdata/E_coli/NodeInst.csv': No such file or directory
When sourcing ‘HiveR.R’:
Error: cannot open the connection
Execution halted
By the way, this is related to this [question][1] but that info seems outdated and doesn't quite cover this territory.
I'm on a Mac.
[1]: http://stackoverflow.com/questions/1886644/how-to-point-to-a-directory-in-an-r-package/1886891#1886891
| r | package | packages | null | null | null | open | Using inst/extdata with vignette during package checking R 2.14.0
===
I have a package which contains a csv file which I put in inst/extdata per R-exts. This file is needed for the vignette. If I Sweave the vignette directly, all works well. When I run R --vanilla CMD check however, the check process can't find the file. I know it has been moved into an .Rcheck directory during checking and this is probably part of the problem. But I don't know how to set it up so both direct Sweave and vignette building/checking works.
The vignette contains a line like this:
EC1 <- dot2HPD(file = "../inst/extdata/E_coli/ecoli.dot",
node.inst = "../inst/extdata/E_coli/NodeInst.csv",
and the function dot2HPD accesses the file via:
ni <- read.csv(node.inst)
Here's the error message:
> tab <- read.csv("../inst/extdata/E_coli/NodeInst.csv")
Warning in file(file, "rt") :
cannot open file '../inst/extdata/E_coli/NodeInst.csv': No such file or directory
When sourcing ‘HiveR.R’:
Error: cannot open the connection
Execution halted
By the way, this is related to this [question][1] but that info seems outdated and doesn't quite cover this territory.
I'm on a Mac.
[1]: http://stackoverflow.com/questions/1886644/how-to-point-to-a-directory-in-an-r-package/1886891#1886891
| 0 |
11,323,905 | 07/04/2012 06:56:42 | 1,498,588 | 07/03/2012 11:14:43 | 1 | 0 | data grabbing tool | I have to write a data grabing tool. Access 2007 as front-end and Oracle 11g as back-end.
When I enter the name in the text box in the Access form. It should generate a file having related fields for the name. the file should be preferably in excel(csv is also accepatable). In this file, some fields need to be picked up from different related tables in oracle and some fields should have static value based on options selected in list box of access form.
I am new to programming. Kindly just give me the rough idea or outlines how to accomplish this VBA Access programming project.
Thank you in advance.
| sql | vba | null | null | null | null | open | data grabbing tool
===
I have to write a data grabing tool. Access 2007 as front-end and Oracle 11g as back-end.
When I enter the name in the text box in the Access form. It should generate a file having related fields for the name. the file should be preferably in excel(csv is also accepatable). In this file, some fields need to be picked up from different related tables in oracle and some fields should have static value based on options selected in list box of access form.
I am new to programming. Kindly just give me the rough idea or outlines how to accomplish this VBA Access programming project.
Thank you in advance.
| 0 |
7,256,355 | 08/31/2011 11:35:34 | 461,800 | 09/29/2010 13:55:03 | 779 | 41 | Best practices for restricting developer access to UAT and production environments, yet still getting anything done | I am working with a small company, that is going through the growing pains of transitioning from a start-up culture to a more mature corporate culture. In the past, developers have had more or less free reign to access UAT environments, and even wide latitude to access production.
However, under the new approach, developers have access only to the Dev and initial QA environments... and are locked out of UAT and production. All access to those environments, from deploying code (Java WAR's in this case), to managing Java app servers, to even reviewing logs and the database, has to funnel through a sysadmin.
It's still early on, but so far this approach does not appear tenable. The net result is that every time there is a production issue, ***or even just a bug ticket entered in UAT***... it requires an "all hands" meeting, with half the department crammed into someone's office or huddled around one person's monitor.
I would like to propose something more workable, while still satisfying the need to restrict access to sensitive user data, etc. One idea that comes to mind is to create a readonly-mount for the log file directory, at some other location where developers may at least view the application-level logs. However, beyond that I am interested in best practices for how to restrict developer access while taking the smallest productivity hit possible.
NOTE: I did find some vaguely-similar questions before I wrote this one. However, they were either [too narrow][1] (and [here][2]), or [dealt with Sarbanes-Oxley matters][3] not at issue here, or [simply asked "are these restrictions normal?"][4] rather than asking how to cope with them.
[1]: http://stackoverflow.com/questions/5285731/best-practice-for-test-and-production-environments
[2]: http://stackoverflow.com/questions/76210/production-test-developer-environments-vs-security
[3]: http://stackoverflow.com/questions/1548738/does-sox-restrict-access-to-qa-environments-or-just-production
[4]: http://stackoverflow.com/questions/1142028/what-should-developers-have-access-to | java | security | testing | project-management | null | 08/31/2011 15:04:43 | not constructive | Best practices for restricting developer access to UAT and production environments, yet still getting anything done
===
I am working with a small company, that is going through the growing pains of transitioning from a start-up culture to a more mature corporate culture. In the past, developers have had more or less free reign to access UAT environments, and even wide latitude to access production.
However, under the new approach, developers have access only to the Dev and initial QA environments... and are locked out of UAT and production. All access to those environments, from deploying code (Java WAR's in this case), to managing Java app servers, to even reviewing logs and the database, has to funnel through a sysadmin.
It's still early on, but so far this approach does not appear tenable. The net result is that every time there is a production issue, ***or even just a bug ticket entered in UAT***... it requires an "all hands" meeting, with half the department crammed into someone's office or huddled around one person's monitor.
I would like to propose something more workable, while still satisfying the need to restrict access to sensitive user data, etc. One idea that comes to mind is to create a readonly-mount for the log file directory, at some other location where developers may at least view the application-level logs. However, beyond that I am interested in best practices for how to restrict developer access while taking the smallest productivity hit possible.
NOTE: I did find some vaguely-similar questions before I wrote this one. However, they were either [too narrow][1] (and [here][2]), or [dealt with Sarbanes-Oxley matters][3] not at issue here, or [simply asked "are these restrictions normal?"][4] rather than asking how to cope with them.
[1]: http://stackoverflow.com/questions/5285731/best-practice-for-test-and-production-environments
[2]: http://stackoverflow.com/questions/76210/production-test-developer-environments-vs-security
[3]: http://stackoverflow.com/questions/1548738/does-sox-restrict-access-to-qa-environments-or-just-production
[4]: http://stackoverflow.com/questions/1142028/what-should-developers-have-access-to | 4 |
5,599,633 | 04/08/2011 19:01:10 | 608,057 | 02/08/2011 11:56:46 | 1 | 0 | Getting the BuildAgent information from a Build - TFS API | I have a IBuildDetail variable with the build information I need.
Okay, but when I check the property BuildAgent it's showing this: build.BuildAgent' threw an exception of type 'System.NotImplementedException
Then I tryed to check build.BuildController.Agents, it's nice I found the BuildAgent, but there are 7 build agents in this collection. I need only the build agent related to my build, not all build agents from that controller.
Anyone knows how to get that information? (Select a build agent name or machine name using an IBuildDetail variable) | tfs2010 | tfsbuild | agent | tfs-sdk | tfs-api | null | open | Getting the BuildAgent information from a Build - TFS API
===
I have a IBuildDetail variable with the build information I need.
Okay, but when I check the property BuildAgent it's showing this: build.BuildAgent' threw an exception of type 'System.NotImplementedException
Then I tryed to check build.BuildController.Agents, it's nice I found the BuildAgent, but there are 7 build agents in this collection. I need only the build agent related to my build, not all build agents from that controller.
Anyone knows how to get that information? (Select a build agent name or machine name using an IBuildDetail variable) | 0 |
10,415,490 | 05/02/2012 14:11:04 | 1,369,852 | 05/02/2012 11:09:27 | 1 | 0 | How to use jquery-1.4.2.min with jquery.js without crash? | i have 2 javascripts that crash when its run on same page -_-
What can i do ? :)
Javascript:
jquery-1.4.2.min.js
Crash With
jquery.js | javascript | jquery | crash | null | null | 05/02/2012 14:14:11 | not a real question | How to use jquery-1.4.2.min with jquery.js without crash?
===
i have 2 javascripts that crash when its run on same page -_-
What can i do ? :)
Javascript:
jquery-1.4.2.min.js
Crash With
jquery.js | 1 |
713,401 | 04/03/2009 10:28:26 | 81,520 | 03/23/2009 16:51:11 | 41 | 5 | How to remove an arbitrary element from a JavaScript array? | In my Google Maps application I can place markers on the map, and I keep a reference to each of the markers placed, along with some extra information in an array called `markers`.
Adding markers is easy, I just `push()` the newly created object onto the array (`markers.push(marker)`);
However, when it comes to removing an arbitrary marker from the array, given an index of the slot, it doesn't behave as expected. My function is:
function deleteMarker(markerIndex) {
if (markerIndex!='' && markerIndex>=0 && markerIndex<markers.length) {
if (confirm('Do you really want to remove this marker from the map?')) {
alert('deleting marker '+markerIndex); //debugging purposes
markers.splice (markerIndex, 1);
}
}
}
I have no previous experience with the splice() function, but looking at [its description @ w3schools][1] it seems to be pretty straight-forward. However, I get the following behaviour:
`markers.splice()` does nothing. So what am I doing wrong?
And also, when `markerIndex` is 0 no confirmation box is shown. At first I assumed the lengthy if-condition evaluated to false and so the whole code block was skipped, however, using Firebug to step through the calls I found out that the condition holds (of course) for index 0 when array is non-empty, next step reveals that the `if (confirm(...))` and `alert('deleting...)` are *skipped* and `markers.splice()` is called (but nothing happens). This behaviour is so strange I decided to open this question.
*Can anyone please clarify what's going on?*
I thought that deleting markers will be the easiest bit of functionality one could do. I can add them, edit their contents, even *clear all markers* (`pop()`-ing markers off the `markers` array until empty) and all works nicely.
[1]: http://www.w3schools.com/jsref/jsref_splice.asp | javascript | arrays | splice | remove | null | null | open | How to remove an arbitrary element from a JavaScript array?
===
In my Google Maps application I can place markers on the map, and I keep a reference to each of the markers placed, along with some extra information in an array called `markers`.
Adding markers is easy, I just `push()` the newly created object onto the array (`markers.push(marker)`);
However, when it comes to removing an arbitrary marker from the array, given an index of the slot, it doesn't behave as expected. My function is:
function deleteMarker(markerIndex) {
if (markerIndex!='' && markerIndex>=0 && markerIndex<markers.length) {
if (confirm('Do you really want to remove this marker from the map?')) {
alert('deleting marker '+markerIndex); //debugging purposes
markers.splice (markerIndex, 1);
}
}
}
I have no previous experience with the splice() function, but looking at [its description @ w3schools][1] it seems to be pretty straight-forward. However, I get the following behaviour:
`markers.splice()` does nothing. So what am I doing wrong?
And also, when `markerIndex` is 0 no confirmation box is shown. At first I assumed the lengthy if-condition evaluated to false and so the whole code block was skipped, however, using Firebug to step through the calls I found out that the condition holds (of course) for index 0 when array is non-empty, next step reveals that the `if (confirm(...))` and `alert('deleting...)` are *skipped* and `markers.splice()` is called (but nothing happens). This behaviour is so strange I decided to open this question.
*Can anyone please clarify what's going on?*
I thought that deleting markers will be the easiest bit of functionality one could do. I can add them, edit their contents, even *clear all markers* (`pop()`-ing markers off the `markers` array until empty) and all works nicely.
[1]: http://www.w3schools.com/jsref/jsref_splice.asp | 0 |
6,942,981 | 08/04/2011 14:13:23 | 878,755 | 08/04/2011 14:08:43 | 1 | 0 | GTK Application doesn't run on windows | I'm a beginner programmer and I've looked around the internet for a solution to this and am still looking. I found someone in this forum with a similar problem, however he is using GtkSharp and I'm using Gtk+. Basically I wrote a program in CodeBlocks using GTK+ (initially I was going to do it on windows but it would not install properly and after several days I just gave up and installed CodeBlocks on my Ubuntu). However, now after I made a release of my program and am trying to run it on a windows computer it does not work. I believe GTK is properly installed on this computer (the demo from the read me worked after I installed GTK). Any help would be appreciated.
Also, if someone can give me a heads up on this: Would my program require for every computer using it to have installed the GTK library? | gtk | gtk+ | codeblocks | code-blocks | null | null | open | GTK Application doesn't run on windows
===
I'm a beginner programmer and I've looked around the internet for a solution to this and am still looking. I found someone in this forum with a similar problem, however he is using GtkSharp and I'm using Gtk+. Basically I wrote a program in CodeBlocks using GTK+ (initially I was going to do it on windows but it would not install properly and after several days I just gave up and installed CodeBlocks on my Ubuntu). However, now after I made a release of my program and am trying to run it on a windows computer it does not work. I believe GTK is properly installed on this computer (the demo from the read me worked after I installed GTK). Any help would be appreciated.
Also, if someone can give me a heads up on this: Would my program require for every computer using it to have installed the GTK library? | 0 |
10,748,061 | 05/25/2012 03:18:27 | 242,682 | 01/03/2010 13:27:42 | 1,322 | 53 | Which cloud hosting provides automatic creation of instances like GAE? | Google AppEngine provides a neat feature which automatically creates, and shutdown, instances depending on the current load.
It has been a very good feature (and cost saving) for my app as only during certain days I have 10 times more traffic.
I wonder which other cloud hosting services provide the same? Especially heroku and dotcloud. | google-app-engine | heroku | cloud-hosting | dotcloud | null | 05/25/2012 14:43:06 | off topic | Which cloud hosting provides automatic creation of instances like GAE?
===
Google AppEngine provides a neat feature which automatically creates, and shutdown, instances depending on the current load.
It has been a very good feature (and cost saving) for my app as only during certain days I have 10 times more traffic.
I wonder which other cloud hosting services provide the same? Especially heroku and dotcloud. | 2 |
4,991,417 | 02/14/2011 11:07:08 | 356,502 | 06/02/2010 13:52:54 | 1 | 0 | Join slows down sql | We have a discussion over SQL Server 2008 and join. One half says the more joins the slower you sql runs. The other half says ihat it does not matter because SQL server takes care of business so you wil not notice any performance loss. What is true? | sql | performance | server | join | null | 02/14/2011 12:51:29 | not constructive | Join slows down sql
===
We have a discussion over SQL Server 2008 and join. One half says the more joins the slower you sql runs. The other half says ihat it does not matter because SQL server takes care of business so you wil not notice any performance loss. What is true? | 4 |
7,949,355 | 10/31/2011 02:03:35 | 985,949 | 10/09/2011 01:09:48 | 67 | 0 | Warning unnecessary with generic collections? | I wonder why Java compiler doesn't trust in this line of code :
List<Car> l = new ArrayList();
and expects to have a typed ArrayList :
List<Car> l = new ArrayList<Car>();
Indeed, compiler indicates an unchecked assignment with the first case.
Why doesn't compiler see that this ArrayList() has just been created and so it's impossible to find already in it some objects other than 'Car'?
This warning would make sense if the untyped ArrayList was created before but doesn't in this case ...
Indeed, since List is typed as 'Car', all futures "l.add('object')" will be allowed only if 'object' is a 'Car'. => So, according to me, no surprise could happen.
Am I wrong ?
Thanks
| java | generics | collections | compiler-warnings | null | null | open | Warning unnecessary with generic collections?
===
I wonder why Java compiler doesn't trust in this line of code :
List<Car> l = new ArrayList();
and expects to have a typed ArrayList :
List<Car> l = new ArrayList<Car>();
Indeed, compiler indicates an unchecked assignment with the first case.
Why doesn't compiler see that this ArrayList() has just been created and so it's impossible to find already in it some objects other than 'Car'?
This warning would make sense if the untyped ArrayList was created before but doesn't in this case ...
Indeed, since List is typed as 'Car', all futures "l.add('object')" will be allowed only if 'object' is a 'Car'. => So, according to me, no surprise could happen.
Am I wrong ?
Thanks
| 0 |
10,074,125 | 04/09/2012 13:43:46 | 1,303,274 | 03/30/2012 12:44:59 | 1 | 0 | How to create an animation like this? | Hi how to create the animation for site's logo like this..
http://www.arch-intl.com/
As you can see the different elements loading one after another in this site. It's done in flash. I would like to do the same in jquery. How do we can set the execution order for each animation elements?
Thanks in advance. | jquery | null | null | null | null | 04/10/2012 03:26:51 | not a real question | How to create an animation like this?
===
Hi how to create the animation for site's logo like this..
http://www.arch-intl.com/
As you can see the different elements loading one after another in this site. It's done in flash. I would like to do the same in jquery. How do we can set the execution order for each animation elements?
Thanks in advance. | 1 |
5,306,033 | 03/14/2011 23:54:53 | 659,736 | 03/14/2011 23:26:32 | 1 | 0 | Insert java utf-18 strings into postgres character fields | HI, I have a postgres database with latin1 charset, and a table "user". I need to insert the name of the users using a prepared statement in java
boolean success = false;
String query = "INSERT INTO public.user (name,email) VALUES(?,?)";
try {
PreparedStatement ps;
ps = db.prepareStatement(query);
ps.setString(1, user.getName());
ps.setString(2, user.getEmail());
if (ps.executeUpdate() != 0)
success = true;
ps.close();
} catch (SQLException ex) {
} finally {
return success;
}
The problem is when user.getName() and user.getEmail() contains characters with accents like è,ò, and so on, the table store weird characters. How can save the right characters sequence from java utf-16 to postgres latin1 charset encoding?
| java | postgresql | null | null | null | null | open | Insert java utf-18 strings into postgres character fields
===
HI, I have a postgres database with latin1 charset, and a table "user". I need to insert the name of the users using a prepared statement in java
boolean success = false;
String query = "INSERT INTO public.user (name,email) VALUES(?,?)";
try {
PreparedStatement ps;
ps = db.prepareStatement(query);
ps.setString(1, user.getName());
ps.setString(2, user.getEmail());
if (ps.executeUpdate() != 0)
success = true;
ps.close();
} catch (SQLException ex) {
} finally {
return success;
}
The problem is when user.getName() and user.getEmail() contains characters with accents like è,ò, and so on, the table store weird characters. How can save the right characters sequence from java utf-16 to postgres latin1 charset encoding?
| 0 |
10,482,649 | 05/07/2012 13:06:58 | 128,991 | 06/25/2009 18:03:49 | 1,219 | 36 | Is there a actively maintained DOM implementation for C#/.NET? | I'm looking for a DOM implementation that I can use on HTML5 documents in C#.
Requirements are:
- Parse HTML5
- Query the DOM through some means
- Manipulate the DOM (create and inject nodes, remove nodes, move nodes, merge/nest other DOMs)
- Obtain the DOM after manipulations as a string
- Ideally the library would be under active development
*Note: I'm aware of Html Agility Pack, however I'm interested in seeing if I have any other options available as it hasn't been maintained since 2010.* | c# | query | html5 | dom | null | null | open | Is there a actively maintained DOM implementation for C#/.NET?
===
I'm looking for a DOM implementation that I can use on HTML5 documents in C#.
Requirements are:
- Parse HTML5
- Query the DOM through some means
- Manipulate the DOM (create and inject nodes, remove nodes, move nodes, merge/nest other DOMs)
- Obtain the DOM after manipulations as a string
- Ideally the library would be under active development
*Note: I'm aware of Html Agility Pack, however I'm interested in seeing if I have any other options available as it hasn't been maintained since 2010.* | 0 |
3,602,142 | 08/30/2010 16:13:12 | 356,849 | 06/02/2010 20:09:19 | 436 | 17 | javascript: parsing variables in the URL | so, my URL is example.com/?ref=person
but ref is null after the regex. What am I doing wrong here?
function getReferer(){
var regex = new RegExp(/ref=(.+)/);
var ref = regex.exec(window.location.ref);
alert(ref);
if (ref == null) return "";
else return ref[1];
} | javascript | regex | null | null | null | null | open | javascript: parsing variables in the URL
===
so, my URL is example.com/?ref=person
but ref is null after the regex. What am I doing wrong here?
function getReferer(){
var regex = new RegExp(/ref=(.+)/);
var ref = regex.exec(window.location.ref);
alert(ref);
if (ref == null) return "";
else return ref[1];
} | 0 |
870,845 | 05/15/2009 20:59:43 | 98,978 | 04/30/2009 21:37:52 | 1 | 0 | JIRA or Trac? | I used Atlassian JIRA for bug and issue tracking at my last job. I absolutely loved it and it was particularly easy on the eyes.
My present company is using Trac instead, and while it does do all the basics, I am finding it really lacking, particularly with the inability to easily setup multiple projects and link issues.
Oh, and the fact that it uses SQLLite is a bit of an issue for me to.
Does anyone have any other good reasons to switch? | jira | trac | bug-tracking | null | null | 09/26/2011 15:24:15 | not constructive | JIRA or Trac?
===
I used Atlassian JIRA for bug and issue tracking at my last job. I absolutely loved it and it was particularly easy on the eyes.
My present company is using Trac instead, and while it does do all the basics, I am finding it really lacking, particularly with the inability to easily setup multiple projects and link issues.
Oh, and the fact that it uses SQLLite is a bit of an issue for me to.
Does anyone have any other good reasons to switch? | 4 |
1,701,828 | 11/09/2009 15:39:32 | 453,176 | 02/23/2009 05:36:53 | 67 | 4 | Are there any MVC 2 books in the pipeline? | I'm looking at getting an asp.net MVC book for christmas but i wanted to make sure that there isn't a book on MVC 2 just around the corner, as i can wait :)
Mike | books | asp.net-mvc | null | null | null | 09/30/2011 12:26:22 | not constructive | Are there any MVC 2 books in the pipeline?
===
I'm looking at getting an asp.net MVC book for christmas but i wanted to make sure that there isn't a book on MVC 2 just around the corner, as i can wait :)
Mike | 4 |
4,829,459 | 01/28/2011 14:43:46 | 966,582 | 12/19/2010 21:06:57 | 37 | 0 | display only specific div with jQuery | The jQuery code below works such that on clicking a link (class address), it slides down a box, and prints all text from the details.php file in the #msg div. However, I want to display only one div (#address), present in the details.php. How can this be done? thanks.
$(document).ready(function() {
$('a.address').click(function() {
$('#box).slideDown("slow");
$.ajax({
type: "POST",
url: "details.php",
success: function(html){
$("#msg").html(html);
}
});
});
}); | jquery | null | null | null | null | null | open | display only specific div with jQuery
===
The jQuery code below works such that on clicking a link (class address), it slides down a box, and prints all text from the details.php file in the #msg div. However, I want to display only one div (#address), present in the details.php. How can this be done? thanks.
$(document).ready(function() {
$('a.address').click(function() {
$('#box).slideDown("slow");
$.ajax({
type: "POST",
url: "details.php",
success: function(html){
$("#msg").html(html);
}
});
});
}); | 0 |
4,527,909 | 12/24/2010 18:59:39 | 66,975 | 02/16/2009 14:28:01 | 918 | 4 | get users password and email it in asp.net mvc | Im using an asp.net mvc 3 project. I want to be able to email a users password to them if they submit their username in RecoverPassword page.
How can i do that?
Thanks | asp.net-mvc | member | sqlmembershipprovider | null | null | null | open | get users password and email it in asp.net mvc
===
Im using an asp.net mvc 3 project. I want to be able to email a users password to them if they submit their username in RecoverPassword page.
How can i do that?
Thanks | 0 |
9,741,584 | 03/16/2012 17:10:35 | 1,211,465 | 02/15/2012 13:46:07 | 19 | 0 | displaying reporting weeks | I dont know how to loop through so that the query displays all the weeks from the reporting date?
The code determines the Mon - Sun week then should insert the values in a temp table to then query the weeks. I have hard coded the report_date and its hould display more than one record.
any ideas
DECLARE @REPORT_DATE DATETIME, @WEEK_BEGINING VARCHAR(10)
SELECT @REPORT_DATE = '2011-01-01T00:00:00'
--SELECT @REPORT_DATE = GETDATE() -- should grab the date now.
SELECT @WEEK_BEGINING = 'MONDAY'
IF @WEEK_BEGINING = 'MONDAY'
SET DATEFIRST 1
ELSE IF @WEEK_BEGINING = 'TUESDAY'
SET DATEFIRST 2
ELSE IF @WEEK_BEGINING = 'WEDNESDAY'
SET DATEFIRST 3
ELSE IF @WEEK_BEGINING = 'THURSDAY'
SET DATEFIRST 4
ELSE IF @WEEK_BEGINING = 'FRIDAY'
SET DATEFIRST 5
ELSE IF @WEEK_BEGINING = 'SATURDAY'
SET DATEFIRST 6
ELSE IF @WEEK_BEGINING = 'SUNDAY'
SET DATEFIRST 7
DECLARE @WEEK_START_DATE DATETIME, @WEEK_END_DATE DATETIME
--GET THE WEEK START DATE
SELECT @WEEK_START_DATE = @REPORT_DATE - (DATEPART(DW, @REPORT_DATE) - 1)
--GET THE WEEK END DATE
SELECT @WEEK_END_DATE = @REPORT_DATE + (7 - DATEPART(DW, @REPORT_DATE))
PRINT 'Week Start: ' + CONVERT(VARCHAR, @WEEK_START_DATE)
PRINT 'Week End: ' + CONVERT(VARCHAR, @WEEK_END_DATE)
CREATE TABLE #WeekList
(
month_date date
)
DECLARE @Interval int = 1
INSERT INTO #WeekList SELECT @WEEK_START_DATE
WHILE @Interval < 1
BEGIN
INSERT INTO #WeekList SELECT DATEADD(MONTH, - @Interval, @WEEK_START_DATE)
SET @Interval = @Interval + 1
END
SELECT
--Create the month ID code:
@WEEK_START_DATE AS Start_Week, @WEEK_END_DATE AS End_Week
FROM #WeekList
ORDER BY Start_Week DESC
DROP TABLE #WeekList | sql | sql-server | sql-server-2008 | tsql | reporting | null | open | displaying reporting weeks
===
I dont know how to loop through so that the query displays all the weeks from the reporting date?
The code determines the Mon - Sun week then should insert the values in a temp table to then query the weeks. I have hard coded the report_date and its hould display more than one record.
any ideas
DECLARE @REPORT_DATE DATETIME, @WEEK_BEGINING VARCHAR(10)
SELECT @REPORT_DATE = '2011-01-01T00:00:00'
--SELECT @REPORT_DATE = GETDATE() -- should grab the date now.
SELECT @WEEK_BEGINING = 'MONDAY'
IF @WEEK_BEGINING = 'MONDAY'
SET DATEFIRST 1
ELSE IF @WEEK_BEGINING = 'TUESDAY'
SET DATEFIRST 2
ELSE IF @WEEK_BEGINING = 'WEDNESDAY'
SET DATEFIRST 3
ELSE IF @WEEK_BEGINING = 'THURSDAY'
SET DATEFIRST 4
ELSE IF @WEEK_BEGINING = 'FRIDAY'
SET DATEFIRST 5
ELSE IF @WEEK_BEGINING = 'SATURDAY'
SET DATEFIRST 6
ELSE IF @WEEK_BEGINING = 'SUNDAY'
SET DATEFIRST 7
DECLARE @WEEK_START_DATE DATETIME, @WEEK_END_DATE DATETIME
--GET THE WEEK START DATE
SELECT @WEEK_START_DATE = @REPORT_DATE - (DATEPART(DW, @REPORT_DATE) - 1)
--GET THE WEEK END DATE
SELECT @WEEK_END_DATE = @REPORT_DATE + (7 - DATEPART(DW, @REPORT_DATE))
PRINT 'Week Start: ' + CONVERT(VARCHAR, @WEEK_START_DATE)
PRINT 'Week End: ' + CONVERT(VARCHAR, @WEEK_END_DATE)
CREATE TABLE #WeekList
(
month_date date
)
DECLARE @Interval int = 1
INSERT INTO #WeekList SELECT @WEEK_START_DATE
WHILE @Interval < 1
BEGIN
INSERT INTO #WeekList SELECT DATEADD(MONTH, - @Interval, @WEEK_START_DATE)
SET @Interval = @Interval + 1
END
SELECT
--Create the month ID code:
@WEEK_START_DATE AS Start_Week, @WEEK_END_DATE AS End_Week
FROM #WeekList
ORDER BY Start_Week DESC
DROP TABLE #WeekList | 0 |
7,199,129 | 08/26/2011 01:26:04 | 787,615 | 06/07/2011 14:13:45 | 4 | 0 | How to get server certificate chain then verify its valid and trusted in Java | I need to create an Https connection with a remote server then retrieve and verify the certificate.
I have established the connection fine:
try {
url = new URL(this.SERVER_URL);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
HttpsURLConnection secured = (HttpsURLConnection) con;
secured.connect();
}
But it seems getServerCertificateChain() method is undefined by the type HttpsURLConnection.
So how do I retrieve the server certificate chain? My understanding is that getServerCertificateChain() should return an array of X509Certificate objects and that this class has methods I can use to interrogate the certificate.
I need to verify that:
(1) the certificate is valid and trusted,
(2) check the Certificate Revocation List Distribution Point against the certificate serial number
(3) make sure it isn't expired
and (4) check that the URL in the certificate is matches another ( which I already have retrieved ).
I'm lost and would really appreciate any help!
Thanks!
Charlie
| java | x509certificate | null | null | null | null | open | How to get server certificate chain then verify its valid and trusted in Java
===
I need to create an Https connection with a remote server then retrieve and verify the certificate.
I have established the connection fine:
try {
url = new URL(this.SERVER_URL);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
HttpsURLConnection secured = (HttpsURLConnection) con;
secured.connect();
}
But it seems getServerCertificateChain() method is undefined by the type HttpsURLConnection.
So how do I retrieve the server certificate chain? My understanding is that getServerCertificateChain() should return an array of X509Certificate objects and that this class has methods I can use to interrogate the certificate.
I need to verify that:
(1) the certificate is valid and trusted,
(2) check the Certificate Revocation List Distribution Point against the certificate serial number
(3) make sure it isn't expired
and (4) check that the URL in the certificate is matches another ( which I already have retrieved ).
I'm lost and would really appreciate any help!
Thanks!
Charlie
| 0 |
9,878,209 | 03/26/2012 19:10:04 | 819,822 | 06/28/2011 19:15:34 | 71 | 3 | Need weird advice in how to allow a Linux process ONLY create and use a single pipe | Hoi.
I am working on an experiment allowing users to use 1% of my CPU. That's like your own Webserver; but a big dynamic remote execution framework (dont ask about that), and I dont want users to use API functions like create files, no sockets, no threads, no console output, nothing.
I need to limit a process so it cannot do anything but use a *single pipe*. Through that pipe the process will use my own wrapped and controlled API.
Is that even possible? I thought like a Linux kernel module.
The issues with limiting RAM and CPU are not primary here, for that there's something on google.
Thanks in advance! | linux | permissions | linux-kernel | pipe | restriction | null | open | Need weird advice in how to allow a Linux process ONLY create and use a single pipe
===
Hoi.
I am working on an experiment allowing users to use 1% of my CPU. That's like your own Webserver; but a big dynamic remote execution framework (dont ask about that), and I dont want users to use API functions like create files, no sockets, no threads, no console output, nothing.
I need to limit a process so it cannot do anything but use a *single pipe*. Through that pipe the process will use my own wrapped and controlled API.
Is that even possible? I thought like a Linux kernel module.
The issues with limiting RAM and CPU are not primary here, for that there's something on google.
Thanks in advance! | 0 |
11,612,330 | 07/23/2012 12:14:48 | 1,423,656 | 05/29/2012 12:16:36 | 27 | 0 | Vector insert? | I have a vector code in c++ this:
typedef vector<boost::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool> >::iterator traveling;
traveling running =
std::partition( wait.begin(), wait.end(), tuple_comp );
running_jobs.insert(running, wait.end());
wait.erase( running, wait.end() );
And this error is giving me:
main.cpp:223: error: no matching function for call to ‘std::vector<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::allocator<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >::insert(threaded_function(ppa::Model_factory&, ppa::Node*)::traveling&, __gnu_cxx::__normal_iterator<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>*, std::vector<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::allocator<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > > >)’
This is netbeans 7.2, I don't know vector in std is supposed to have insert, am I missing something? | c++ | vector | iterator | null | null | null | open | Vector insert?
===
I have a vector code in c++ this:
typedef vector<boost::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool> >::iterator traveling;
traveling running =
std::partition( wait.begin(), wait.end(), tuple_comp );
running_jobs.insert(running, wait.end());
wait.erase( running, wait.end() );
And this error is giving me:
main.cpp:223: error: no matching function for call to ‘std::vector<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::allocator<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >::insert(threaded_function(ppa::Model_factory&, ppa::Node*)::traveling&, __gnu_cxx::__normal_iterator<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>*, std::vector<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::allocator<boost::tuples::tuple<ppa::Node*, ppa::Node*, ppa::Node*, bool, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > > >)’
This is netbeans 7.2, I don't know vector in std is supposed to have insert, am I missing something? | 0 |
6,294,630 | 06/09/2011 14:40:42 | 791,149 | 06/09/2011 14:40:42 | 1 | 0 | how do i insert javascript code into colorbox ? | I need to execute a javascript into a colorbox modal window.
I've heard about placing an onComplete callback but i've no idea on how to write it...i'm totally noobie to jquery/javascript.
Can anyone explain me step by step ?
Thanks | javascript | colorbox | null | null | null | null | open | how do i insert javascript code into colorbox ?
===
I need to execute a javascript into a colorbox modal window.
I've heard about placing an onComplete callback but i've no idea on how to write it...i'm totally noobie to jquery/javascript.
Can anyone explain me step by step ?
Thanks | 0 |
6,980,435 | 08/08/2011 09:58:34 | 403,398 | 07/27/2010 12:52:55 | 17 | 0 | Preserve double slashes in apache mode rewite | Im currently using this rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301]
RewriteRule ^((([A-Za-z0-9-]+)/+)*)$ index.php?url=$1 [L]
To basically add a trailing slash and to pass the part in brackets to my application.
http://www.whatever.com[/part1/part2]
Index then correctly recieves
GET_['url'] = /part1/part2
However
http://www.whatever.com[/part1////part2////part3////]
gives
GET_['url'] = /part1/part2/part3/
- Anyone know how to preserve double slashes? Please dont tell me to do in php. That would be counter productive for many reasons.
Thank you in advance.
| mod-rewrite | apache2 | forward-slash | preserve | null | null | open | Preserve double slashes in apache mode rewite
===
Im currently using this rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301]
RewriteRule ^((([A-Za-z0-9-]+)/+)*)$ index.php?url=$1 [L]
To basically add a trailing slash and to pass the part in brackets to my application.
http://www.whatever.com[/part1/part2]
Index then correctly recieves
GET_['url'] = /part1/part2
However
http://www.whatever.com[/part1////part2////part3////]
gives
GET_['url'] = /part1/part2/part3/
- Anyone know how to preserve double slashes? Please dont tell me to do in php. That would be counter productive for many reasons.
Thank you in advance.
| 0 |
8,817,704 | 01/11/2012 10:25:53 | 1,119,861 | 12/28/2011 19:03:49 | 6 | 0 | java regex match 0-9 and some special characters | I'm having some trouble writing a regex for a telephone numbers. (not too great at them yet)
The number may only contain: 0-9,+,/,.,-, ,(,)
I was thinking:
@Pattern(regexp = "(0-9+/\\.\\- \\(\\))?")
But that already complains when I just enter 100. | java | regex | null | null | null | null | open | java regex match 0-9 and some special characters
===
I'm having some trouble writing a regex for a telephone numbers. (not too great at them yet)
The number may only contain: 0-9,+,/,.,-, ,(,)
I was thinking:
@Pattern(regexp = "(0-9+/\\.\\- \\(\\))?")
But that already complains when I just enter 100. | 0 |
2,140,404 | 01/26/2010 15:30:47 | 93,468 | 02/03/2009 22:24:01 | 1,296 | 35 | How to disassociate a new folder that you just placed into your Local Working Copy | I have added a new folder to one of my local working copies. I have yet to initially check it in though.
I want to take it out and put it on my desktop, then branch and then put it back in and associate with the branched local version.
I noticed though, as I try to commit, that the folder is associated with that local copy because it's showing it as non-versioned in the Tortoise commit dialog.
How do I simply move it and disassociate it as though I had never placed it in my local working copy to begin with? I'm not sure how to do that without screwing things up. | tortoisesvn | null | null | null | null | null | open | How to disassociate a new folder that you just placed into your Local Working Copy
===
I have added a new folder to one of my local working copies. I have yet to initially check it in though.
I want to take it out and put it on my desktop, then branch and then put it back in and associate with the branched local version.
I noticed though, as I try to commit, that the folder is associated with that local copy because it's showing it as non-versioned in the Tortoise commit dialog.
How do I simply move it and disassociate it as though I had never placed it in my local working copy to begin with? I'm not sure how to do that without screwing things up. | 0 |
301,986 | 11/19/2008 14:15:17 | 37,786 | 11/14/2008 20:09:50 | 8 | 0 | Export to Excel in Asp.net MVC | I am working on an ASP.NET MVC application where I need to export data to an excel spreadsheet. Previously, in webforms apps, I used some code I found to render a GridView as an excel-compatible file. This was quite handy. I was wondering what the quickest/most effective method would be to do this in MVC. Thanks. | asp.net-mvc | null | null | null | null | 05/20/2012 15:09:17 | not constructive | Export to Excel in Asp.net MVC
===
I am working on an ASP.NET MVC application where I need to export data to an excel spreadsheet. Previously, in webforms apps, I used some code I found to render a GridView as an excel-compatible file. This was quite handy. I was wondering what the quickest/most effective method would be to do this in MVC. Thanks. | 4 |
11,622,003 | 07/23/2012 23:29:01 | 1,547,128 | 07/23/2012 23:06:59 | 1 | 0 | Cpp server, UDP socket for each client | When I'm trying to bind a UDP socket on a specific ip (other than 127.0.0.1/INADDR_LOOPBACK or 0.0.0.0/INADDR_ANY) it fails.
I need to have a dedicated UDP socket for each client (point to point connection).
If I don't bind the socket and use sendto and recvfrom function, the data never arrives.
Any obvious solution ? | c++ | sockets | udp | point | null | null | open | Cpp server, UDP socket for each client
===
When I'm trying to bind a UDP socket on a specific ip (other than 127.0.0.1/INADDR_LOOPBACK or 0.0.0.0/INADDR_ANY) it fails.
I need to have a dedicated UDP socket for each client (point to point connection).
If I don't bind the socket and use sendto and recvfrom function, the data never arrives.
Any obvious solution ? | 0 |
6,688,730 | 07/14/2011 05:10:29 | 569,466 | 01/09/2011 21:20:04 | 441 | 0 | i lost my shortcut to sql server management studio - where to find it ? | i lost my shortcut to sql server management studio - where to find it ?
what is the EXE name ?
thanks in advance | sql-server-2008 | null | null | null | null | 07/14/2011 12:23:16 | off topic | i lost my shortcut to sql server management studio - where to find it ?
===
i lost my shortcut to sql server management studio - where to find it ?
what is the EXE name ?
thanks in advance | 2 |
8,942,529 | 01/20/2012 14:02:12 | 756,566 | 05/17/2011 00:45:58 | 667 | 9 | Trying to get Javascript to select each child from a multiple select box | I am trying to use PHP to get Javascript to select values in a multiple select box dependent on a particular GET.
Here's my code:
if (isset($_GET["parent"]) && ($_GET['parent'] !== '')) {
$parent = $_GET['parent'];
echo '<script type=text/javascript>
document.getElementById("locpick").value="'.stripslashes($parent).'";
</script>';
$reschild = mysql_query("SELECT child_id from loc_child_xref where loc_id='".$locrow['loc_id']."'");
while ($childrow = mysql_fetch_array($reschild)) {
$childloc = mysql_query("SELECT loc_id, loc_desc from location where loc_id='".$childrow['child_id']."'");
while ($childlocrow = mysql_fetch_array($childloc)) {
echo '<script type="text/javascript>
var pl = document.getElementById("child");
for(var i=0; i<pl.options.length;i++) {
if(pl.options[i].value == "' . stripslashes($childlocrow['loc_id']).'") {
pl.options[i].selected = true;
}
}
</script>';
}
}
}
It selects the first id, but doesn't select all the children for the second. | php | javascript | mysql | null | null | 01/20/2012 14:21:28 | too localized | Trying to get Javascript to select each child from a multiple select box
===
I am trying to use PHP to get Javascript to select values in a multiple select box dependent on a particular GET.
Here's my code:
if (isset($_GET["parent"]) && ($_GET['parent'] !== '')) {
$parent = $_GET['parent'];
echo '<script type=text/javascript>
document.getElementById("locpick").value="'.stripslashes($parent).'";
</script>';
$reschild = mysql_query("SELECT child_id from loc_child_xref where loc_id='".$locrow['loc_id']."'");
while ($childrow = mysql_fetch_array($reschild)) {
$childloc = mysql_query("SELECT loc_id, loc_desc from location where loc_id='".$childrow['child_id']."'");
while ($childlocrow = mysql_fetch_array($childloc)) {
echo '<script type="text/javascript>
var pl = document.getElementById("child");
for(var i=0; i<pl.options.length;i++) {
if(pl.options[i].value == "' . stripslashes($childlocrow['loc_id']).'") {
pl.options[i].selected = true;
}
}
</script>';
}
}
}
It selects the first id, but doesn't select all the children for the second. | 3 |
11,262,538 | 06/29/2012 13:17:12 | 1,491,162 | 06/29/2012 12:32:53 | 1 | 0 | GCC socket read & write function calls issue with data in macnine's tcpdump | GNU C-
gcc c + wrote data to the socket using "write" function call , not shown in machine tcpdump
write(.....)
Multiple threadsa are writing to the same socket
data on machine tcp dump not receive on the using the read function call
read(.....)
read is done block by block using a single thread.
This is happening @ high peak time
| c++ | c | linux | null | null | 06/29/2012 13:35:35 | not a real question | GCC socket read & write function calls issue with data in macnine's tcpdump
===
GNU C-
gcc c + wrote data to the socket using "write" function call , not shown in machine tcpdump
write(.....)
Multiple threadsa are writing to the same socket
data on machine tcp dump not receive on the using the read function call
read(.....)
read is done block by block using a single thread.
This is happening @ high peak time
| 1 |
6,062,056 | 05/19/2011 16:51:27 | 761,470 | 05/19/2011 16:51:27 | 1 | 0 | Lucene in web page using PHP | I am new to Lucene. I have indexed data.
By command line I am able to run query through Lucene.
Now, I want the same to be done through dynamic Web Page.
I i/p to page will be a text file as it is through command line.
thanks,
Ravi | java | php | html | lucene | null | 05/20/2011 23:31:17 | not a real question | Lucene in web page using PHP
===
I am new to Lucene. I have indexed data.
By command line I am able to run query through Lucene.
Now, I want the same to be done through dynamic Web Page.
I i/p to page will be a text file as it is through command line.
thanks,
Ravi | 1 |
3,282,512 | 07/19/2010 15:33:00 | 379,888 | 06/30/2010 09:47:17 | 254 | 1 | graphics in c -rectangle | While working with graphics in C if I need to draw a rectangle ,How do I get its dimensions? | c | null | null | null | null | 07/19/2010 18:10:52 | not a real question | graphics in c -rectangle
===
While working with graphics in C if I need to draw a rectangle ,How do I get its dimensions? | 1 |
8,135,257 | 11/15/2011 10:58:25 | 688,237 | 04/01/2011 20:22:28 | 12 | 2 | Redmine Automated Testing Plugin | I just installed redmine 1.21 on my own server. While I really like the bug tracking I'm missing some integration for my unit-test framework. I've set up my test framework on QTestlib. Is there any way (or plugin) to automate testing and publish the results on a redmine project page? | unit-testing | automated-tests | redmine | qtestlib | null | null | open | Redmine Automated Testing Plugin
===
I just installed redmine 1.21 on my own server. While I really like the bug tracking I'm missing some integration for my unit-test framework. I've set up my test framework on QTestlib. Is there any way (or plugin) to automate testing and publish the results on a redmine project page? | 0 |
6,931,023 | 08/03/2011 18:02:03 | 843,391 | 07/13/2011 19:24:34 | 6 | 0 | PHP Graphics Extensions? | Gentle People:
I am looking for information on PHP Graphics Extensions.
Specifically something for drawing charts and graphs of real
time data comming in from the network. Please note that I am
NOT interested in displaying data simply from a fixed file.
Has anyone ever built GTk+, Cairo or OpenGL as a PHP extension?
Some other Open Source Graphics Package?
Is it feasible? Anything in PHP internals that prevents this?
I would be quite willing to master a couple of books on PHP
extensions if I knew it was feasible.
Thomas Dineen
[email protected]
| php | null | null | null | null | 08/03/2011 23:30:54 | not a real question | PHP Graphics Extensions?
===
Gentle People:
I am looking for information on PHP Graphics Extensions.
Specifically something for drawing charts and graphs of real
time data comming in from the network. Please note that I am
NOT interested in displaying data simply from a fixed file.
Has anyone ever built GTk+, Cairo or OpenGL as a PHP extension?
Some other Open Source Graphics Package?
Is it feasible? Anything in PHP internals that prevents this?
I would be quite willing to master a couple of books on PHP
extensions if I knew it was feasible.
Thomas Dineen
[email protected]
| 1 |
8,643,507 | 12/27/2011 10:17:53 | 295,264 | 03/17/2010 00:16:39 | 7,006 | 422 | Which is more efficient: One long Single Table or Distributed Table? and Why? | This question is all about performance and I would appreciate if the answers are specific to the case I provide.
Which is more appropriate performance-wise?
- creating a table with too many fields
- creating more than one table and distributing similar fields to them
**CASE: An Extensive Web CMS Module**
Pattern 1: Long but one table
cms
-----------------------------------------------
Id
Title
Description
Images
Order
Status
Publish
meta_keywords
meta_description
meta_author
Cleary, most the Open Source CMS like joomla use the above pattern. But i think, that pattern is **killing the spirit of RDBMS**. We can easily separate the content, configuration and meta of a particular article to different tables. Like the following
Pattern 2: Many but related table
Cms_content cms_meta cms_configuration
---------------------------------------------------------------------------
Id id id
Title content_id content_id
Description keywords status
Content description order
Images author publish
**Note: Relations in this case is one-to-one**
Which is the proper pattern to follow? Why choose a long but one table, or why not to choose distributed tables, over the single table?
| mysql | database-design | null | null | null | null | open | Which is more efficient: One long Single Table or Distributed Table? and Why?
===
This question is all about performance and I would appreciate if the answers are specific to the case I provide.
Which is more appropriate performance-wise?
- creating a table with too many fields
- creating more than one table and distributing similar fields to them
**CASE: An Extensive Web CMS Module**
Pattern 1: Long but one table
cms
-----------------------------------------------
Id
Title
Description
Images
Order
Status
Publish
meta_keywords
meta_description
meta_author
Cleary, most the Open Source CMS like joomla use the above pattern. But i think, that pattern is **killing the spirit of RDBMS**. We can easily separate the content, configuration and meta of a particular article to different tables. Like the following
Pattern 2: Many but related table
Cms_content cms_meta cms_configuration
---------------------------------------------------------------------------
Id id id
Title content_id content_id
Description keywords status
Content description order
Images author publish
**Note: Relations in this case is one-to-one**
Which is the proper pattern to follow? Why choose a long but one table, or why not to choose distributed tables, over the single table?
| 0 |
3,988,692 | 10/21/2010 14:43:56 | 254,428 | 01/19/2010 22:06:34 | 543 | 52 | Non for-profit universities that offer computer science undergraduate degree online? | There are many masters degree programs in computer science online offered by reputable organizations. However, I've found very few bachelors only degree programs offered by non for-profit institutions.
I am looking for a degree in computer science and also any programs for entrepreneurship/management or algorithmic trading.
I've found only 2 programs so far that fit:
http://www.regis.edu/regis.asp?sctn=cpcis&p1=ap&p2=cs&p3=ol
http://depaul.edu
Requirements:
100% online
undergraduate
non for-profit
Options:
Bachelor of Science
Bachelor of Arts
Bonuses:
accelerated
recognized
ABET
cost effective
| degree | null | null | null | null | 10/21/2010 14:49:07 | off topic | Non for-profit universities that offer computer science undergraduate degree online?
===
There are many masters degree programs in computer science online offered by reputable organizations. However, I've found very few bachelors only degree programs offered by non for-profit institutions.
I am looking for a degree in computer science and also any programs for entrepreneurship/management or algorithmic trading.
I've found only 2 programs so far that fit:
http://www.regis.edu/regis.asp?sctn=cpcis&p1=ap&p2=cs&p3=ol
http://depaul.edu
Requirements:
100% online
undergraduate
non for-profit
Options:
Bachelor of Science
Bachelor of Arts
Bonuses:
accelerated
recognized
ABET
cost effective
| 2 |
9,651,567 | 03/11/2012 01:06:30 | 1,261,710 | 03/11/2012 00:54:06 | 1 | 0 | css drop down menu falls behind google chart | I've tried everything I could think of.
I've tried playing around with the positioning and the z-indexes but no matter what I do the drop down menu still goes behind the google chart. It works with fire fox but not google chrome or IE. Any advice would be much appreciated!
Here is the drop down css:
#deluxeMenu
{
overflow:visible;
z-index:9999999;
}
ul#deluxeMenu
{
display:block;font-size:0;zoom:1;float: left;
overflow:visible;
position: relative;
z-index:99999;
}
ul#deluxeMenu ul{display:none; z-index:100;}
ul#deluxeMenu li:hover>*{display:block}
ul#deluxeMenu >li:hover{position:relative; z-index:100;}
ul#deluxeMenu ul{
position: absolute;left:-1px;top:98%;z-index:100;}
ul#deluxeMenu ul ul{
position: absolute;left:98%;top:-2px;z-index:100;}
ul#deluxeMenu,ul#deluxeMenu ul{
margin:0px;list-style:none;padding:0px;background- color:#353535;border-width:0px;border-style:none;border-color:#C0AF62; z-index:100;}
ul#deluxeMenu ul{
/*width:145px;padding:0;*/
overflow:visible;
}
ul#deluxeMenu li{
display:block;margin:0;font-size:0;float:left; overflow:visible;
}
ul#deluxeMenu a:active, ul#deluxeMenu a:focus {outline-style:none; z-index:100;}
ul#deluxeMenu a,ul#deluxeMenu li.dis a:hover{
display:block;vertical-align:middle;background-color:#353535;background-image:url(blank.gif);border-width:1px 0px 1px 0px;border-style:solid;border-color:#3F3F3F #333333 #292929 #333333;text-align:center;text-decoration:none;padding:10px 12px 10px 10px;font:normal 13px calibri,arial,tahoma;color: #FFFFFF;text-decoration:none;cursor:pointer;
}
ul#deluxeMenu ul li {float:none; overflow:visible;}
ul#deluxeMenu ul a,ul#deluxeMenu ul li.dis a:hover{
text-align:left;white-space:nowrap;
}
ul#deluxeMenu li:hover>a
{
background-image:url(back-over.gif);border-color:#3F3F3F #333333 #292929 #333333;border-style:solid;font:normal 13px calibri,arial,tahoma;color: #FFFFFF;text-decoration:none;
}
ul#deluxeMenu li.dis a{color: #AAAAAA !important;}
ul#deluxeMenu img{
border: none;vertical-align: middle;margin-right:20px;}
ul#deluxeMenu img.over{display:none}
ul#deluxeMenu li.dis a:hover img.over{display:none !important}
ul#deluxeMenu li.dis a:hover img.def {display:inline !important}
ul#deluxeMenu li:hover > a img.def {display:none;}
ul#deluxeMenu li:hover > a img.over {display:inline;}
ul#deluxeMenu ul span{background-image:none;padding-right:20px;}
Here is the php file for the web page:
<body>
<div style="position:relative;">
<!-- Deluxe Menu -->
<div id = "box">
<ul id="deluxeMenu">
<?php include('populateMenu.php')?>
</ul>
</div>
<div id="chart_div">
</div>
<?php closeDatabase($db); ?>
</div>
</body> | html | css | positioning | z-index | google-charts | null | open | css drop down menu falls behind google chart
===
I've tried everything I could think of.
I've tried playing around with the positioning and the z-indexes but no matter what I do the drop down menu still goes behind the google chart. It works with fire fox but not google chrome or IE. Any advice would be much appreciated!
Here is the drop down css:
#deluxeMenu
{
overflow:visible;
z-index:9999999;
}
ul#deluxeMenu
{
display:block;font-size:0;zoom:1;float: left;
overflow:visible;
position: relative;
z-index:99999;
}
ul#deluxeMenu ul{display:none; z-index:100;}
ul#deluxeMenu li:hover>*{display:block}
ul#deluxeMenu >li:hover{position:relative; z-index:100;}
ul#deluxeMenu ul{
position: absolute;left:-1px;top:98%;z-index:100;}
ul#deluxeMenu ul ul{
position: absolute;left:98%;top:-2px;z-index:100;}
ul#deluxeMenu,ul#deluxeMenu ul{
margin:0px;list-style:none;padding:0px;background- color:#353535;border-width:0px;border-style:none;border-color:#C0AF62; z-index:100;}
ul#deluxeMenu ul{
/*width:145px;padding:0;*/
overflow:visible;
}
ul#deluxeMenu li{
display:block;margin:0;font-size:0;float:left; overflow:visible;
}
ul#deluxeMenu a:active, ul#deluxeMenu a:focus {outline-style:none; z-index:100;}
ul#deluxeMenu a,ul#deluxeMenu li.dis a:hover{
display:block;vertical-align:middle;background-color:#353535;background-image:url(blank.gif);border-width:1px 0px 1px 0px;border-style:solid;border-color:#3F3F3F #333333 #292929 #333333;text-align:center;text-decoration:none;padding:10px 12px 10px 10px;font:normal 13px calibri,arial,tahoma;color: #FFFFFF;text-decoration:none;cursor:pointer;
}
ul#deluxeMenu ul li {float:none; overflow:visible;}
ul#deluxeMenu ul a,ul#deluxeMenu ul li.dis a:hover{
text-align:left;white-space:nowrap;
}
ul#deluxeMenu li:hover>a
{
background-image:url(back-over.gif);border-color:#3F3F3F #333333 #292929 #333333;border-style:solid;font:normal 13px calibri,arial,tahoma;color: #FFFFFF;text-decoration:none;
}
ul#deluxeMenu li.dis a{color: #AAAAAA !important;}
ul#deluxeMenu img{
border: none;vertical-align: middle;margin-right:20px;}
ul#deluxeMenu img.over{display:none}
ul#deluxeMenu li.dis a:hover img.over{display:none !important}
ul#deluxeMenu li.dis a:hover img.def {display:inline !important}
ul#deluxeMenu li:hover > a img.def {display:none;}
ul#deluxeMenu li:hover > a img.over {display:inline;}
ul#deluxeMenu ul span{background-image:none;padding-right:20px;}
Here is the php file for the web page:
<body>
<div style="position:relative;">
<!-- Deluxe Menu -->
<div id = "box">
<ul id="deluxeMenu">
<?php include('populateMenu.php')?>
</ul>
</div>
<div id="chart_div">
</div>
<?php closeDatabase($db); ?>
</div>
</body> | 0 |
3,603,489 | 08/30/2010 19:18:54 | 279,362 | 02/23/2010 10:47:04 | 168 | 7 | So I want to create a browser-based interactive realitme animation of the Earth and the other planets going around the Sun...where do I start? | I would like to create a browser based, interactive, realtime animation, showing the Earth as it goes around the sun, depending on the time of day and time of year. This animation should also (eventually) show the other planets in the solar system and the user should be able to pan around the solar system and see it from different sides (by click-drag, scroll etc.).
I wouldn't think it has any real practical application, but I like the artistic value found in the universe...so it would be interesting to start doing it and I'll probably learn a few things while doing this.
I don't have any experience with planetary physics, although I'd probably understand it if given a good source of information. I do have some experience with web development, with languages like JavaScript, HTML, CSS, Python.
Now, questions:
- Most importantly, how would I begin a
project such as this?
- Where do I get the information about
the rotation of the Earth and the
other planets in the solar system?
- What languages should I use/learn?
- What other ideas do you have about
this idea? What functionality do you
think would be interesting for a
project such as this?
This idea is very much impulse driven, especially at this late hour of the day...as I'm looking out the window and seeing the buildings getting darker and darker, I'm also imagining how the Earth is slowly spinning around itself and also around the Sun and I think it would be a very nice sight to be able to see this from an outside perspective.
Hope to get some feedback. Cheers! | javascript | html | opengl | general-purpose | null | 08/23/2011 21:10:23 | not constructive | So I want to create a browser-based interactive realitme animation of the Earth and the other planets going around the Sun...where do I start?
===
I would like to create a browser based, interactive, realtime animation, showing the Earth as it goes around the sun, depending on the time of day and time of year. This animation should also (eventually) show the other planets in the solar system and the user should be able to pan around the solar system and see it from different sides (by click-drag, scroll etc.).
I wouldn't think it has any real practical application, but I like the artistic value found in the universe...so it would be interesting to start doing it and I'll probably learn a few things while doing this.
I don't have any experience with planetary physics, although I'd probably understand it if given a good source of information. I do have some experience with web development, with languages like JavaScript, HTML, CSS, Python.
Now, questions:
- Most importantly, how would I begin a
project such as this?
- Where do I get the information about
the rotation of the Earth and the
other planets in the solar system?
- What languages should I use/learn?
- What other ideas do you have about
this idea? What functionality do you
think would be interesting for a
project such as this?
This idea is very much impulse driven, especially at this late hour of the day...as I'm looking out the window and seeing the buildings getting darker and darker, I'm also imagining how the Earth is slowly spinning around itself and also around the Sun and I think it would be a very nice sight to be able to see this from an outside perspective.
Hope to get some feedback. Cheers! | 4 |
1,607 | 08/04/2008 21:31:40 | 72 | 08/01/2008 15:09:58 | 124 | 5 | Mechanisms for tracking DB schema changes | What are the best methods for tracking and/or automating DB schema changes? Our team uses Subversion for version control and we've been able to automate some of our tasks this way (pushing builds up to a staging server, deploying tested code to a production server) but we're still doing database updates manually. I would like to find or create a solution that allows us to work efficiently across servers with different environments while continuing to use Subversion as a backend through which code and DB updates are pushed around to various servers.
Many popular software packages include auto-update scripts which detect DB version and apply the necessary changes. Is this the best way to do this even on a larger scale (across multiple projects and sometimes multiple environments and languages)? If so, is there any existing code out there that simplifies the process or is it best just to roll our own solution? Has anyone implemented something similar before and integrated it into Subversion post-commit hooks, or is this a bad idea?
While a solution that supports multiple platforms would be preferable, we definitely need to support the Linux/Apache/MySQL/PHP stack as the majority of our work is on that platform. | database | php | mysql | subversion | null | 05/03/2012 12:25:33 | not constructive | Mechanisms for tracking DB schema changes
===
What are the best methods for tracking and/or automating DB schema changes? Our team uses Subversion for version control and we've been able to automate some of our tasks this way (pushing builds up to a staging server, deploying tested code to a production server) but we're still doing database updates manually. I would like to find or create a solution that allows us to work efficiently across servers with different environments while continuing to use Subversion as a backend through which code and DB updates are pushed around to various servers.
Many popular software packages include auto-update scripts which detect DB version and apply the necessary changes. Is this the best way to do this even on a larger scale (across multiple projects and sometimes multiple environments and languages)? If so, is there any existing code out there that simplifies the process or is it best just to roll our own solution? Has anyone implemented something similar before and integrated it into Subversion post-commit hooks, or is this a bad idea?
While a solution that supports multiple platforms would be preferable, we definitely need to support the Linux/Apache/MySQL/PHP stack as the majority of our work is on that platform. | 4 |
5,644,579 | 04/13/2011 04:53:47 | 669,416 | 03/21/2011 12:28:24 | 11 | 4 | how to make a VIEW in SQL SERVER? | i have more table and i want to merge that some table for getting result.....
how can i do? | c# | c++ | sql | null | null | 04/13/2011 05:46:09 | not a real question | how to make a VIEW in SQL SERVER?
===
i have more table and i want to merge that some table for getting result.....
how can i do? | 1 |
4,689,274 | 01/14/2011 08:39:59 | 336,578 | 05/09/2010 09:54:53 | 176 | 21 | Heap corruption detection tool for C++ | Is there any tool to help me detect heap corruption in C++? I can't provide source code because it's a big project. I can use any tool that works with Visual Studio or with xcode. The tool should work fine with multithreading. The problem is not very common, it appears after a long time and only in very special cases(they were not detected precisely!).
Thank you! | c++ | memory-management | heap-memory | null | null | null | open | Heap corruption detection tool for C++
===
Is there any tool to help me detect heap corruption in C++? I can't provide source code because it's a big project. I can use any tool that works with Visual Studio or with xcode. The tool should work fine with multithreading. The problem is not very common, it appears after a long time and only in very special cases(they were not detected precisely!).
Thank you! | 0 |
11,434,949 | 07/11/2012 14:31:40 | 1,510,488 | 07/08/2012 19:46:26 | 1 | 0 | Solution: simple asp to aspx | I had presented a question but it was pulled.
It's been two years since I coded and over 15 years since any web apps.
I had asked for the aspx version of some asp code.
I needed to do away with access ODBC jet and use the SQL server.
The two main lines I needed help with where:
<% set ors = server.createobject(“ADODB.Recordset”) %>
And
<% ors.open “selectstatment”, “FILEDSN=B.dsn” %>
The answer I discovered:
First you need the library:
<%@import Namespace= “System.Data.SqlClient %>
Then you can use:
<% using conn as new sqlconnection(connstring.ConnectionString) %>
<% dim command as new sqlCommand(sqlselectstatment, conn) %>
and after a
<% conn.Open() %>
and
<% dim reader as sqlDataReader = command.ExecuteReader() %>
you can start reading data.
<% reader.read %>
and see the first field with
<%=reader(0)%>
The final write of the code is using masterpages, web.config and passing paramaters. The connection string is in web.config.
I hope that this gets through because I think it is a very simple solution to just filling a page of thumbnails.
Note: I was just using exprestion web but now I know that VS will supply the needed syntax help for the inline code. Even the help on exprestion web indicates the need for VS as part of the coding support. Don't limit yourself with just one tool.
<%@ Page language="vb" masterpagefile="~/masterpage.master" title="Brooches" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<asp:Content id="Content1" runat="server" contentplaceholderid="Left">
<img alt="Pages" src="Brooches-Page-numbers.jpg" style="width: auto"/>
</asp:Content>
<asp:Content id="Content2" runat="server" contentplaceholderid="Main">
<% Dim rootWebConfig As System.Configuration.Configuration =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration ("~/sitename")
Dim connString As System.Configuration.ConnectionStringSettings
Dim sqlStmt As String = "select Ref from Inventory where Catagory='Brooches'"
Dim RecordCounter1 As Integer
Dim StartRecord As Integer = Request("StartRecord")
connString = rootWebConfig.ConnectionStrings.ConnectionStrings ("BruceoriaSQLConnectionString1")
Using conn As New SqlConnection(connString.ConnectionString)
Dim command As New SqlCommand(sqlStmt, conn)
conn.Open()
Dim reader As SqlDataReader = command.ExecuteReader() %>
<%
For RecordCounter1 = StartRecord To StartRecord + 24
If reader.Read Then %>
<a href="DetailsFrame.asp?SelectedRecord=<%=(RecordCounter1 + Request("StartRecord"))%>"><img border="0" width="100"
height="75" src="images/<%=reader(0)%>tt.jpg" alt="Image"/></a>
<% End If
Next
conn.Close()
End Using%>
</asp:Content>
| asp.net | null | null | null | null | 07/12/2012 08:39:35 | not a real question | Solution: simple asp to aspx
===
I had presented a question but it was pulled.
It's been two years since I coded and over 15 years since any web apps.
I had asked for the aspx version of some asp code.
I needed to do away with access ODBC jet and use the SQL server.
The two main lines I needed help with where:
<% set ors = server.createobject(“ADODB.Recordset”) %>
And
<% ors.open “selectstatment”, “FILEDSN=B.dsn” %>
The answer I discovered:
First you need the library:
<%@import Namespace= “System.Data.SqlClient %>
Then you can use:
<% using conn as new sqlconnection(connstring.ConnectionString) %>
<% dim command as new sqlCommand(sqlselectstatment, conn) %>
and after a
<% conn.Open() %>
and
<% dim reader as sqlDataReader = command.ExecuteReader() %>
you can start reading data.
<% reader.read %>
and see the first field with
<%=reader(0)%>
The final write of the code is using masterpages, web.config and passing paramaters. The connection string is in web.config.
I hope that this gets through because I think it is a very simple solution to just filling a page of thumbnails.
Note: I was just using exprestion web but now I know that VS will supply the needed syntax help for the inline code. Even the help on exprestion web indicates the need for VS as part of the coding support. Don't limit yourself with just one tool.
<%@ Page language="vb" masterpagefile="~/masterpage.master" title="Brooches" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<asp:Content id="Content1" runat="server" contentplaceholderid="Left">
<img alt="Pages" src="Brooches-Page-numbers.jpg" style="width: auto"/>
</asp:Content>
<asp:Content id="Content2" runat="server" contentplaceholderid="Main">
<% Dim rootWebConfig As System.Configuration.Configuration =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration ("~/sitename")
Dim connString As System.Configuration.ConnectionStringSettings
Dim sqlStmt As String = "select Ref from Inventory where Catagory='Brooches'"
Dim RecordCounter1 As Integer
Dim StartRecord As Integer = Request("StartRecord")
connString = rootWebConfig.ConnectionStrings.ConnectionStrings ("BruceoriaSQLConnectionString1")
Using conn As New SqlConnection(connString.ConnectionString)
Dim command As New SqlCommand(sqlStmt, conn)
conn.Open()
Dim reader As SqlDataReader = command.ExecuteReader() %>
<%
For RecordCounter1 = StartRecord To StartRecord + 24
If reader.Read Then %>
<a href="DetailsFrame.asp?SelectedRecord=<%=(RecordCounter1 + Request("StartRecord"))%>"><img border="0" width="100"
height="75" src="images/<%=reader(0)%>tt.jpg" alt="Image"/></a>
<% End If
Next
conn.Close()
End Using%>
</asp:Content>
| 1 |
2,431,196 | 03/12/2010 07:48:01 | 280,138 | 02/24/2010 07:58:44 | 3 | 0 | What should I do or learn to better prepare myself for a co-op position? | I'm currently taking computer systems in a technical institute and I will start looking for a coop job by next September. Since summer vacation is only a few weeks away, I was wondering what I should learn or do to help me land a job and do well in it.
I'm pretty sure I'm ahead of most of my classmates since I got around 1.5 years "head start." For now, I'm planning to learn how to use source control (git - for no reason really) and was actually thinking of learning Scheme through SICP and maybe build something nice with it at the end.
On the other hand, I'm wondering if it's better to expand on what I know right now and I'm thinking of C++ since I enjoy it a lot more than others like Java.
Can I get advice on this? thanks! | internship | null | null | null | null | 03/01/2012 06:15:29 | off topic | What should I do or learn to better prepare myself for a co-op position?
===
I'm currently taking computer systems in a technical institute and I will start looking for a coop job by next September. Since summer vacation is only a few weeks away, I was wondering what I should learn or do to help me land a job and do well in it.
I'm pretty sure I'm ahead of most of my classmates since I got around 1.5 years "head start." For now, I'm planning to learn how to use source control (git - for no reason really) and was actually thinking of learning Scheme through SICP and maybe build something nice with it at the end.
On the other hand, I'm wondering if it's better to expand on what I know right now and I'm thinking of C++ since I enjoy it a lot more than others like Java.
Can I get advice on this? thanks! | 2 |
8,041,168 | 11/07/2011 18:56:41 | 1,034,321 | 11/07/2011 18:41:56 | 1 | 0 | Publish in another wall by pressing button on my website facebook | Good afternoon! I have a web page on facebook. There is a donation button. I need to know how should I do to: when people press that donation button, this is published on my wall and on the wall of that person, in that way that "Name of the person" has made a donation on behalf of the organization "Name of the organization". Thank you for your advice. | javascript | facebook | null | null | null | 11/08/2011 12:45:58 | off topic | Publish in another wall by pressing button on my website facebook
===
Good afternoon! I have a web page on facebook. There is a donation button. I need to know how should I do to: when people press that donation button, this is published on my wall and on the wall of that person, in that way that "Name of the person" has made a donation on behalf of the organization "Name of the organization". Thank you for your advice. | 2 |
7,923,528 | 10/27/2011 23:14:05 | 1,017,473 | 10/27/2011 23:10:36 | 1 | 0 | Vim vs Textmate | Is text mate really worth it? When there is Vim which is free. I've heard that the Vim learning curve is steep but vi(m) is in almost every *nix os. Which is more powerful and is text mate worth the price tag | osx | vim | text | editor | textmate | 10/28/2011 01:16:06 | not constructive | Vim vs Textmate
===
Is text mate really worth it? When there is Vim which is free. I've heard that the Vim learning curve is steep but vi(m) is in almost every *nix os. Which is more powerful and is text mate worth the price tag | 4 |
7,525,209 | 09/23/2011 06:40:57 | 271,248 | 02/11/2010 17:27:52 | 83 | 6 | Not able to retrieve all comments for a post using Facebook Graph Api | I am trying to retrieve all comments on a facebook page post using graph api, but no matter what I try the comments coming via API don't match the ones on the site,
https://graph.facebook.com/73855584817_10150309608274818/comments?limit=0&offset=25
if you see the next page link at the bottom of the json response and use it, the comments are basically repeated. Is there something missing or there is a bug in the API itself?
Regards,<br/>
Rohit | facebook | facebook-graph-api | null | null | null | null | open | Not able to retrieve all comments for a post using Facebook Graph Api
===
I am trying to retrieve all comments on a facebook page post using graph api, but no matter what I try the comments coming via API don't match the ones on the site,
https://graph.facebook.com/73855584817_10150309608274818/comments?limit=0&offset=25
if you see the next page link at the bottom of the json response and use it, the comments are basically repeated. Is there something missing or there is a bug in the API itself?
Regards,<br/>
Rohit | 0 |
8,667,385 | 12/29/2011 11:38:14 | 1,121,034 | 12/29/2011 11:20:35 | 1 | 0 | How to delete "Any Column" option from Dojo Enhanced Grid Filter plugin drop down entry | I have been using Dojo enhance grid filter plugin. My enhance grid is talking to server side stores and thus my filter criteria is also been sent to the server for getting the filtered data.
Dojo filter plugin provides atleast 9-10 filters like contains, "startswith", "endswith" etc.
In my server I have only filtering queries for 2 - 3 filters.
I am using "disabledConditions" for NOT showing criterias in the drop down of filter plugin.
After reading documentation I came to know about anyColumn to disable criteria's in the "Any Column" option in the drop down. Even if I give the entire list of criteria's as disabled in anycolumn, still I see the empty dropdown box.
var disabledArray1 = ["equalTo","startsWith", "notStartsWith","lessThan","lessThanOrEqualTo","largerThan","largerThanOrEqualTo","contains","endsWith","notEqualTo","notContains","notStartsWith","notEndsWith","range","isEmpty"];
filter: {
itemsName: 'Survey Areas',
closeFilterbarButton: true,
ruleCount: 1,
isServerSide: true,
setupFilterQuery: setupFilter,
anycolumn: disabledArray1
},
Is there a way I can delete the entry of "Any Column" from the drop down of plugin filter??
| plugins | filter | dojo | null | null | null | open | How to delete "Any Column" option from Dojo Enhanced Grid Filter plugin drop down entry
===
I have been using Dojo enhance grid filter plugin. My enhance grid is talking to server side stores and thus my filter criteria is also been sent to the server for getting the filtered data.
Dojo filter plugin provides atleast 9-10 filters like contains, "startswith", "endswith" etc.
In my server I have only filtering queries for 2 - 3 filters.
I am using "disabledConditions" for NOT showing criterias in the drop down of filter plugin.
After reading documentation I came to know about anyColumn to disable criteria's in the "Any Column" option in the drop down. Even if I give the entire list of criteria's as disabled in anycolumn, still I see the empty dropdown box.
var disabledArray1 = ["equalTo","startsWith", "notStartsWith","lessThan","lessThanOrEqualTo","largerThan","largerThanOrEqualTo","contains","endsWith","notEqualTo","notContains","notStartsWith","notEndsWith","range","isEmpty"];
filter: {
itemsName: 'Survey Areas',
closeFilterbarButton: true,
ruleCount: 1,
isServerSide: true,
setupFilterQuery: setupFilter,
anycolumn: disabledArray1
},
Is there a way I can delete the entry of "Any Column" from the drop down of plugin filter??
| 0 |
396,955 | 12/29/2008 01:32:47 | 40,868 | 11/26/2008 00:46:25 | 185 | 20 | a better/good way to generate 4x4x4 sudoku board? | For fun when I got time, I like to code games to see how hard it is or just because I want to see how it work from the inside or just for personal challenge. I just like coding. For now, I made [these one][1].
so, I made a sudoku board, first it was the normal 3x3x3 board but then someone asked me to do a 4x4x4 board. I was successful but my algorithm is pretty slow.
The question is, how would you do a fast algorithm for a 4x4x4 (or more) sudoku board?
thanks
P.S. If you do download the game and find bugs/problems let me know please so I can fix them.
[1]: http://pages.videotron.com/spirch/FredGames | .net | algorithm | optimization | fun | null | 01/15/2009 16:27:32 | off topic | a better/good way to generate 4x4x4 sudoku board?
===
For fun when I got time, I like to code games to see how hard it is or just because I want to see how it work from the inside or just for personal challenge. I just like coding. For now, I made [these one][1].
so, I made a sudoku board, first it was the normal 3x3x3 board but then someone asked me to do a 4x4x4 board. I was successful but my algorithm is pretty slow.
The question is, how would you do a fast algorithm for a 4x4x4 (or more) sudoku board?
thanks
P.S. If you do download the game and find bugs/problems let me know please so I can fix them.
[1]: http://pages.videotron.com/spirch/FredGames | 2 |
11,283,040 | 07/01/2012 15:02:56 | 486,604 | 09/28/2009 21:17:49 | 609 | 39 | Deserialize XML string to complex type | My Xml (which I can't change):
<result>
<type>MAZDA</type>
<make>RX-8</type>
<country>JAPAN</country>
</result>
My model:
[Serializable, XmlRoot("result")]
public class VehicleDetails
{
public string Type { get; set; }
public string Make { get; set; }
public string Country { get; set; }
}
de-serializing this XML works as expected but I want to change the `Country` property to a complex type, like so:
public Country Country { get; set; }
and put the country name, "JAPAN", in the `Country.Name` property, any ideas? | c# | xml | deserialization | null | null | null | open | Deserialize XML string to complex type
===
My Xml (which I can't change):
<result>
<type>MAZDA</type>
<make>RX-8</type>
<country>JAPAN</country>
</result>
My model:
[Serializable, XmlRoot("result")]
public class VehicleDetails
{
public string Type { get; set; }
public string Make { get; set; }
public string Country { get; set; }
}
de-serializing this XML works as expected but I want to change the `Country` property to a complex type, like so:
public Country Country { get; set; }
and put the country name, "JAPAN", in the `Country.Name` property, any ideas? | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.