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
10,991,560
06/12/2012 06:34:05
987,173
10/10/2011 06:35:48
143
0
iphone dev sending post to Linkdin from iphone app
i want to post on linkedin from my iphone app, can anyone guide me with some sort of tutorial urls, etc. Thanx and Regards Saad
iphone
objective-c
linkedin
null
null
06/12/2012 11:11:52
not a real question
iphone dev sending post to Linkdin from iphone app === i want to post on linkedin from my iphone app, can anyone guide me with some sort of tutorial urls, etc. Thanx and Regards Saad
1
9,429,495
02/24/2012 10:53:21
231,456
12/14/2009 17:06:23
1,425
70
using git for local development and svn for enterprise source control?
My enterprise use svn as a source control. I would like to use git for my development (branches are so useful). Do you think that there is no problem to checkout a svn project, to work with git in local for my development, and then, commit final changes with svn ? Is there anything special to know when we work like this ?
git
svn
null
null
null
null
open
using git for local development and svn for enterprise source control? === My enterprise use svn as a source control. I would like to use git for my development (branches are so useful). Do you think that there is no problem to checkout a svn project, to work with git in local for my development, and then, commit final changes with svn ? Is there anything special to know when we work like this ?
0
3,409,478
08/04/2010 20:19:02
186,808
10/08/2009 22:57:44
741
20
Web Development -- Not Having to Clear your Cache Each Time
Working with sensitive files that require the cache to be cleared each time... how do I tell Firefox and Chrome to clear my cache each time I refresh the page and/or not cache to begin with? Many thanks!
firefox
caching
google-chrome
null
null
null
open
Web Development -- Not Having to Clear your Cache Each Time === Working with sensitive files that require the cache to be cleared each time... how do I tell Firefox and Chrome to clear my cache each time I refresh the page and/or not cache to begin with? Many thanks!
0
10,267,321
04/22/2012 10:53:07
874,788
08/02/2011 14:07:54
3
1
Having errors in C++ code
this is my code written in C++. I am using Code::Blocks. 1st problem is whatever i do yenifayl2(); // newfile2 nizam(); //sort foxuma(); //file read fayldavam(); //file continue silme(); //delete yenifayl(); //new file ekran(); //screen daxil(); //show is not recognized. Everytime this part gives error. and second problem is when u save it, it saves it in random random, what to do so that i can choose the name ? #include<string.h> #include<stdio.h> #include<conio.h> yenifayl2(); // newfile2 nizam(); //sort foxuma(); //file read fayldavam(); //file continue silme(); //delete yenifayl(); //new file ekran(); //screen daxil(); //show int i=0;int k=0; float sumbal=0; struct st{char Sadi[20];char Tadi[20];char Il[20]; char kod[10]; float ehaqqi;}s[100]; char Sadi1[20];char Tadi1[20];char Il1[20];char kod1[10];float ehaqqi1; //******************************************************************* void main() { int r=0; clrscr();Sadi1[0]='a'; rr:printf("\n rejimler\n 1.yeni fayl\n 2.faylin davami\n 3.fayli oxu"); printf("\n 4.silme \n 5.nizamlama \n 6.proqramin sonu ? "); scanf("%d",&r); if (r==1) { daxil(); ekran(); yenifayl(); goto rr; } if (r==2) { daxil(); ekran(); fayldavam(); goto rr; } if (r==3) { foxuma(); ekran(); goto rr; } if (r==4) { silme(); goto rr; } if (r==5) { nizam(); goto rr; } if (r==6) goto son;else {printf("\n duz daxil et");goto rr;} son: getch(); } //************************************************************************ ekran() {char p1=179;int kk=1; char Sadi2[21];char Tadi2[21];char Il2[21];char kod2[11]; char xx[79]; char xx1[79];char xx2[79]; char y[17]=" "; clrscr(); memset(xx,196,78);xx[78]='\0';xx[0]=218;xx[11]=194;xx[77]=191;xx[32]=194; xx[49]=194;xx[66]=194; memset(xx1,196,78);xx1[78]='\0';xx1[0]=192;xx1[11]=193;xx1[77]=217;xx1[32]=193; xx1[49]=193;xx1[66]=193; memset(xx2,196,78);xx2[78]='\0';xx2[0]=195;xx2[11]=197;xx2[77]=180;xx2[32]=197; xx2[49]=197;xx2[66]=197; clrscr(); printf("\n %s",xx); printf("\n %c Kod %cSehenin adi %c Telebenin adi %cAnadan oldugu il%c ehaqqi %c",p1,p1,p1,p1,p1,p1); printf("\n %s",xx2); for (i=0;i<=k;i++) { memset(Sadi2,' ',20); Sadi2[20]='\0';memcpy(Sadi2,s[i].Sadi,strlen(s[i].Sadi)); memset(Tadi2,' ',16); Tadi2[16]='\0';memcpy(Tadi2,s[i].Tadi,strlen(s[i].Tadi)); memset(Il2,' ',16); Il2[16]='\0';memcpy(Il2,s[i].Il,strlen(s[i].Il)); memset(kod2,' ',10); kod2[10]='\0';memcpy(kod2,s[i].kod,strlen(s[i].kod)); printf("\n %c%s%c%s%c%s%c%s%c ",p1,kod2,p1,Sadi2,p1,Tadi2,p1,Il2,p1); printf("%9.2f%c",s[i].ehaqqi,p1); if ((kk%12)==0) { printf("\n %s",xx1); getch();kk=0;clrscr(); printf("\n %s",xx); printf("\n %c Kod %cSeherin adi %c Telebenin adi %cAnadan oldugu il%c ehaqqi %c",p1,p1,p1,p1,p1,p1); //printf("\n %s",xx2); } printf("\n %s",xx2); kk++; } sumbal=sumbal/(k+1); printf("\n %c %c orta ehaqqi %c%16s%c%16s%c ",p1,p1,p1,y,p1,y,p1); printf("%9.2f%c",sumbal,p1); printf("\n %s",xx1); getch();clrscr(); return 0; } //************************************************************************* daxil() { kod1[0]='a'; i=0; sumbal=0; while (memcmp(kod1,"***",3)!=0) { memset(Sadi1,'\0',20); memset(Tadi1,'\0',20);memset(Il1,'\0',20);memset(kod1,'\0',11); printf("\n kod=");scanf(" %s",&kod1); if(kod1[0]=='*') break; printf("\n Sadi=");scanf(" %s",&Sadi1); printf("\n Tadi=");scanf("%s",&Tadi1); printf("\n Anadan oldugu il=");scanf("%s",&Il1); printf("\n ehaqqi=");scanf("%f",&ehaqqi1); memcpy(s[i].kod,kod1,11); memcpy(s[i].Sadi,Sadi1,20); memcpy(s[i].Tadi,Tadi1,20); memcpy(s[i].Il,Il1,20); s[i].ehaqqi=ehaqqi1; sumbal+=s[i].ehaqqi; printf("\n %s %s %s %s %9.2f",kod1,Sadi1,Tadi1,Il1,ehaqqi1); i++; } k=i-1; return 0; } //************************************************************************ nizam() { int m,i,j,kl; foxuma(); m=k; printf("\n 1-nizamlama koda gore "); printf("\n 2-nizamlama Sadina gore "); printf("\n 3-nizamlama ehaqqinin azalma istiqametinde "); printf("\n 4-nizamlama ehaqqinin artma istiqametinde "); scanf("%d",&kl); for (i=0;i<k;i++) { for (j=0;j<m;j++) { if(kl==4&&s[j].ehaqqi>s[j+1].ehaqqi) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } if(kl==3&&s[j].ehaqqi<s[j+1].ehaqqi) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } if (kl==2&&memcmp(s[j].Sadi,s[j+1].Sadi,15)>0) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } if (kl==1&&memcmp(s[j].kod,s[j+1].kod,10)>0) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } } m=m-1; } ekran(); return 0; } //*********************************************************************** fayldavam() { FILE *ff; ff=fopen("D:bal","a+"); for (i=0;i<=k;i++) { fprintf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,s[i].ehaqqi); } fclose(ff); return 0; } //************************************************************************** silme() { char ud[20];int ks; ud[0]='a'; foxuma(); printf("\n koda gore silme=1,Seherin adina gore silme=2\n"); scanf("%d",&ks); while(memcmp(ud,"***",3)!=0) { if (ks==1) {printf("\n silinen yazi kodu= ");scanf("%s",&ud);} if(ks==2) {printf("\n silinen yazinin soyadi= ");scanf("%s",&ud);} for (i=0;i<=k;i++) { if (ks==1&&memicmp(s[i].kod,ud,strlen(ud))==0) {memcpy(s[i].kod,"uuu",3); break;} if (ks==2&&memicmp(s[i].Sadi,ud,strlen(ud))==0) {memcpy(s[i].kod,"uuu",3); break;} } } yenifayl2(); foxuma(); ekran(); return 0; } //************************************************************************** foxuma() { FILE *ff; ff=fopen("D:bal","r"); sumbal=0; for (i=0;i<=100;i++) { fscanf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,&s[i].ehaqqi); sumbal+=s[i].ehaqqi; if (feof(ff)) break; } k=i; fclose(ff); return 0; } //************************************************************************** yenifayl2() { int k1=0; FILE *ff; ff=fopen("D:bal","w"); for (i=0;i<=k;i++) if (memicmp(s[i].kod,"uuu",3)!=0) { fprintf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,s[i].ehaqqi); k1++; } fclose(ff); k=k1-1; return 0; } //************************************************************************** yenifayl() { FILE *ff; ff=fopen("D:bal","w"); for (i=0;i<=k;i++) { fprintf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,s[i].ehaqqi); } fclose(ff); return 0; } //***************************************************************************
c++
null
null
null
null
04/22/2012 20:45:56
too localized
Having errors in C++ code === this is my code written in C++. I am using Code::Blocks. 1st problem is whatever i do yenifayl2(); // newfile2 nizam(); //sort foxuma(); //file read fayldavam(); //file continue silme(); //delete yenifayl(); //new file ekran(); //screen daxil(); //show is not recognized. Everytime this part gives error. and second problem is when u save it, it saves it in random random, what to do so that i can choose the name ? #include<string.h> #include<stdio.h> #include<conio.h> yenifayl2(); // newfile2 nizam(); //sort foxuma(); //file read fayldavam(); //file continue silme(); //delete yenifayl(); //new file ekran(); //screen daxil(); //show int i=0;int k=0; float sumbal=0; struct st{char Sadi[20];char Tadi[20];char Il[20]; char kod[10]; float ehaqqi;}s[100]; char Sadi1[20];char Tadi1[20];char Il1[20];char kod1[10];float ehaqqi1; //******************************************************************* void main() { int r=0; clrscr();Sadi1[0]='a'; rr:printf("\n rejimler\n 1.yeni fayl\n 2.faylin davami\n 3.fayli oxu"); printf("\n 4.silme \n 5.nizamlama \n 6.proqramin sonu ? "); scanf("%d",&r); if (r==1) { daxil(); ekran(); yenifayl(); goto rr; } if (r==2) { daxil(); ekran(); fayldavam(); goto rr; } if (r==3) { foxuma(); ekran(); goto rr; } if (r==4) { silme(); goto rr; } if (r==5) { nizam(); goto rr; } if (r==6) goto son;else {printf("\n duz daxil et");goto rr;} son: getch(); } //************************************************************************ ekran() {char p1=179;int kk=1; char Sadi2[21];char Tadi2[21];char Il2[21];char kod2[11]; char xx[79]; char xx1[79];char xx2[79]; char y[17]=" "; clrscr(); memset(xx,196,78);xx[78]='\0';xx[0]=218;xx[11]=194;xx[77]=191;xx[32]=194; xx[49]=194;xx[66]=194; memset(xx1,196,78);xx1[78]='\0';xx1[0]=192;xx1[11]=193;xx1[77]=217;xx1[32]=193; xx1[49]=193;xx1[66]=193; memset(xx2,196,78);xx2[78]='\0';xx2[0]=195;xx2[11]=197;xx2[77]=180;xx2[32]=197; xx2[49]=197;xx2[66]=197; clrscr(); printf("\n %s",xx); printf("\n %c Kod %cSehenin adi %c Telebenin adi %cAnadan oldugu il%c ehaqqi %c",p1,p1,p1,p1,p1,p1); printf("\n %s",xx2); for (i=0;i<=k;i++) { memset(Sadi2,' ',20); Sadi2[20]='\0';memcpy(Sadi2,s[i].Sadi,strlen(s[i].Sadi)); memset(Tadi2,' ',16); Tadi2[16]='\0';memcpy(Tadi2,s[i].Tadi,strlen(s[i].Tadi)); memset(Il2,' ',16); Il2[16]='\0';memcpy(Il2,s[i].Il,strlen(s[i].Il)); memset(kod2,' ',10); kod2[10]='\0';memcpy(kod2,s[i].kod,strlen(s[i].kod)); printf("\n %c%s%c%s%c%s%c%s%c ",p1,kod2,p1,Sadi2,p1,Tadi2,p1,Il2,p1); printf("%9.2f%c",s[i].ehaqqi,p1); if ((kk%12)==0) { printf("\n %s",xx1); getch();kk=0;clrscr(); printf("\n %s",xx); printf("\n %c Kod %cSeherin adi %c Telebenin adi %cAnadan oldugu il%c ehaqqi %c",p1,p1,p1,p1,p1,p1); //printf("\n %s",xx2); } printf("\n %s",xx2); kk++; } sumbal=sumbal/(k+1); printf("\n %c %c orta ehaqqi %c%16s%c%16s%c ",p1,p1,p1,y,p1,y,p1); printf("%9.2f%c",sumbal,p1); printf("\n %s",xx1); getch();clrscr(); return 0; } //************************************************************************* daxil() { kod1[0]='a'; i=0; sumbal=0; while (memcmp(kod1,"***",3)!=0) { memset(Sadi1,'\0',20); memset(Tadi1,'\0',20);memset(Il1,'\0',20);memset(kod1,'\0',11); printf("\n kod=");scanf(" %s",&kod1); if(kod1[0]=='*') break; printf("\n Sadi=");scanf(" %s",&Sadi1); printf("\n Tadi=");scanf("%s",&Tadi1); printf("\n Anadan oldugu il=");scanf("%s",&Il1); printf("\n ehaqqi=");scanf("%f",&ehaqqi1); memcpy(s[i].kod,kod1,11); memcpy(s[i].Sadi,Sadi1,20); memcpy(s[i].Tadi,Tadi1,20); memcpy(s[i].Il,Il1,20); s[i].ehaqqi=ehaqqi1; sumbal+=s[i].ehaqqi; printf("\n %s %s %s %s %9.2f",kod1,Sadi1,Tadi1,Il1,ehaqqi1); i++; } k=i-1; return 0; } //************************************************************************ nizam() { int m,i,j,kl; foxuma(); m=k; printf("\n 1-nizamlama koda gore "); printf("\n 2-nizamlama Sadina gore "); printf("\n 3-nizamlama ehaqqinin azalma istiqametinde "); printf("\n 4-nizamlama ehaqqinin artma istiqametinde "); scanf("%d",&kl); for (i=0;i<k;i++) { for (j=0;j<m;j++) { if(kl==4&&s[j].ehaqqi>s[j+1].ehaqqi) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } if(kl==3&&s[j].ehaqqi<s[j+1].ehaqqi) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } if (kl==2&&memcmp(s[j].Sadi,s[j+1].Sadi,15)>0) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } if (kl==1&&memcmp(s[j].kod,s[j+1].kod,10)>0) {ehaqqi1=s[j+1].ehaqqi;s[j+1].ehaqqi=s[j].ehaqqi;s[j].ehaqqi=ehaqqi1; memcpy(Sadi1,s[j+1].Sadi,20);memcpy(s[j+1].Sadi,s[j].Sadi,20); memcpy(s[j].Sadi,Sadi1,20); memcpy(Tadi1,s[j+1].Tadi,20);memcpy(s[j+1].Tadi,s[j].Tadi,20); memcpy(s[j].Tadi,Tadi1,20); memcpy(Il1,s[j+1].Il,20);memcpy(s[j+1].Il,s[j].Il,20); memcpy(s[j].Il,Il1,20); memcpy(kod1,s[j+1].kod,11);memcpy(s[j+1].kod,s[j].kod,11); memcpy(s[j].kod,kod1,11); } } m=m-1; } ekran(); return 0; } //*********************************************************************** fayldavam() { FILE *ff; ff=fopen("D:bal","a+"); for (i=0;i<=k;i++) { fprintf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,s[i].ehaqqi); } fclose(ff); return 0; } //************************************************************************** silme() { char ud[20];int ks; ud[0]='a'; foxuma(); printf("\n koda gore silme=1,Seherin adina gore silme=2\n"); scanf("%d",&ks); while(memcmp(ud,"***",3)!=0) { if (ks==1) {printf("\n silinen yazi kodu= ");scanf("%s",&ud);} if(ks==2) {printf("\n silinen yazinin soyadi= ");scanf("%s",&ud);} for (i=0;i<=k;i++) { if (ks==1&&memicmp(s[i].kod,ud,strlen(ud))==0) {memcpy(s[i].kod,"uuu",3); break;} if (ks==2&&memicmp(s[i].Sadi,ud,strlen(ud))==0) {memcpy(s[i].kod,"uuu",3); break;} } } yenifayl2(); foxuma(); ekran(); return 0; } //************************************************************************** foxuma() { FILE *ff; ff=fopen("D:bal","r"); sumbal=0; for (i=0;i<=100;i++) { fscanf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,&s[i].ehaqqi); sumbal+=s[i].ehaqqi; if (feof(ff)) break; } k=i; fclose(ff); return 0; } //************************************************************************** yenifayl2() { int k1=0; FILE *ff; ff=fopen("D:bal","w"); for (i=0;i<=k;i++) if (memicmp(s[i].kod,"uuu",3)!=0) { fprintf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,s[i].ehaqqi); k1++; } fclose(ff); k=k1-1; return 0; } //************************************************************************** yenifayl() { FILE *ff; ff=fopen("D:bal","w"); for (i=0;i<=k;i++) { fprintf(ff,"\n %s %s %s %s %f",s[i].kod,s[i].Sadi,s[i].Tadi,s[i].Il,s[i].ehaqqi); } fclose(ff); return 0; } //***************************************************************************
3
518,471
02/05/2009 23:30:19
63,107
02/05/2009 23:30:19
1
0
JSlider question: Position after leftclick
Whenever I click a JSlider it gets positioned one majorTick in the direction of the click instead of jumping to the spot I actually click. (If slider is at point 47 and I click 5 it'll jump to 37 instead of 5). Is there any way to change this while using JSliders, or do I have to use another datastructure?
java
null
null
null
null
null
open
JSlider question: Position after leftclick === Whenever I click a JSlider it gets positioned one majorTick in the direction of the click instead of jumping to the spot I actually click. (If slider is at point 47 and I click 5 it'll jump to 37 instead of 5). Is there any way to change this while using JSliders, or do I have to use another datastructure?
0
11,342,416
07/05/2012 10:26:43
1,278,820
03/19/2012 14:48:24
135
3
Free host for ASP.NET C# project
I'm looking for **recommendations of a good free host site** to deploy my ASP.NET with C# website. Database is in Ms Sql Server, and I used Ms Visual Studio for development. It doesn't matter if the host has limitations (needs to be reuploaded after 30 days or so). What I am mostly interested in is that is has **good, reliable instructions on how to actually deploy it**. I only tried this once using aspspider.net and I was really disappointed with the instructions on their site - few and incomplete. **The guidelines should be very simple:** - write the connection strings in this format and where to put it - upload the files of this type here - upload the web.config file here - if you have a master page upload it here and include this piece of code customizing it to fit your website name etc - if you have stored procedures include them here, etc. I imagine it should be like this, but I haven't done it before. Just an attempt using a video found online, because the instructions on the host site were poor, after which I found some mistakes and no guidelines on how to correct. **The hardest part is done:** my website is great and runs locally very well, I am pleased. How to deploy safely and nicely? Any nice sites that require payment would be nice to have too, once I get accustomed to a free host, I would probably want to take it one step forward. Thanks a billion!
c#
asp.net
hosting
web-hosting
null
07/05/2012 10:36:08
off topic
Free host for ASP.NET C# project === I'm looking for **recommendations of a good free host site** to deploy my ASP.NET with C# website. Database is in Ms Sql Server, and I used Ms Visual Studio for development. It doesn't matter if the host has limitations (needs to be reuploaded after 30 days or so). What I am mostly interested in is that is has **good, reliable instructions on how to actually deploy it**. I only tried this once using aspspider.net and I was really disappointed with the instructions on their site - few and incomplete. **The guidelines should be very simple:** - write the connection strings in this format and where to put it - upload the files of this type here - upload the web.config file here - if you have a master page upload it here and include this piece of code customizing it to fit your website name etc - if you have stored procedures include them here, etc. I imagine it should be like this, but I haven't done it before. Just an attempt using a video found online, because the instructions on the host site were poor, after which I found some mistakes and no guidelines on how to correct. **The hardest part is done:** my website is great and runs locally very well, I am pleased. How to deploy safely and nicely? Any nice sites that require payment would be nice to have too, once I get accustomed to a free host, I would probably want to take it one step forward. Thanks a billion!
2
5,924,109
05/07/2011 21:28:50
743,446
05/07/2011 21:28:50
1
0
How to force permission and user:group for the nginx's log?
I'm have installed nginx, I think it's a very good web server, fast and stable. I have seen error.log access.log are saved with root:root permissions rw r r I would like to force these permission, i don't want to use **root** for that. Nginx runs with "nginx" user. So I don't understand with the log are saved with root permissions. I have many vhost, each vhost has own user:group, so can i save the log with these? Thanks
linux
nginx
null
null
null
05/08/2011 11:00:14
off topic
How to force permission and user:group for the nginx's log? === I'm have installed nginx, I think it's a very good web server, fast and stable. I have seen error.log access.log are saved with root:root permissions rw r r I would like to force these permission, i don't want to use **root** for that. Nginx runs with "nginx" user. So I don't understand with the log are saved with root permissions. I have many vhost, each vhost has own user:group, so can i save the log with these? Thanks
2
1,716,853
11/11/2009 17:40:13
85,306
03/31/2009 19:37:02
3,290
190
Is there 'a growing rebellion against cumbersome type systems like those of Java and C++, pushing people towards dynamically typed languages such as Python and JavaScript'?
The [FAQ][1] for the new [Go language][2] explicitly makes this claim. Is there (non-anecdotal) data to actually support such a claim? I've always found dynamic typing sloppy and tiresome, but if I'm loosing touch I at least want some warning. [1]: http://golang.org/doc/go_faq.html [2]: http://golang.org/
static-typing
dynamic-typing
go
null
null
11/11/2009 18:34:59
not constructive
Is there 'a growing rebellion against cumbersome type systems like those of Java and C++, pushing people towards dynamically typed languages such as Python and JavaScript'? === The [FAQ][1] for the new [Go language][2] explicitly makes this claim. Is there (non-anecdotal) data to actually support such a claim? I've always found dynamic typing sloppy and tiresome, but if I'm loosing touch I at least want some warning. [1]: http://golang.org/doc/go_faq.html [2]: http://golang.org/
4
7,299,333
09/04/2011 12:50:15
310,370
04/06/2010 20:22:21
552
13
Bulk email - Spam prevention - Setup PTR - Setup SPF - What else required ? - Mass Email
I am going to send bulk email to my game players. It will be like 300k. I have setup PTR (Reverse DNS) and SPF record. My email sending address is : [email protected] My email sendin IP is : 85.17.154.139 What else do i need to setup for preventing dropping spam box ? If i add image or link to the email does that increase dropping spam folder chance ? When i send email to the gmail it still does not say at email details signed by. What do i need to get that message ? i mean like mailed-by email.penzu.com signed-by penzu.com Can you check that whether i have setup correctly or not. This is mail details of gmail for example Delivered-To: [email protected] Received: by 10.216.173.69 with SMTP id u47cs24905wel; Sun, 4 Sep 2011 05:47:11 -0700 (PDT) Received: by 10.213.16.69 with SMTP id n5mr393688eba.55.1315140430994; Sun, 04 Sep 2011 05:47:10 -0700 (PDT) Return-Path: <[email protected]> Received: from XCPV002 ([85.17.154.139]) by mx.google.com with ESMTP id r44si691059eeh.89.2011.09.04.05.47.09; Sun, 04 Sep 2011 05:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of [email protected] designates 85.17.154.139 as permitted sender) client-ip=85.17.154.139; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 85.17.154.139 as permitted sender) [email protected] Received: from XCPV002 ([85.17.154.139]) by XCPV002 with Microsoft SMTPSVC(7.5.7601.17514); Sun, 4 Sep 2011 12:47:10 +0000 MIME-Version: 1.0 Sender: "85.17.154.139" <[email protected]> From: =?utf-8?Q?MonsterMMORPG_=C5=9Eifre_Hat=C4=B1rlatma?= <[email protected]> To: [email protected] Date: 4 Sep 2011 12:47:10 +0000 Subject: PokemonCraft Accounts Are Restored - MonsterMMORPG Beta Started Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-Path: [email protected] Message-ID: <XCPV002BhCIRi8Y3bYs00000457@XCPV002> X-OriginalArrivalTime: 04 Sep 2011 12:47:10.0104 (UTC) FILETIME=[C2E7B980:01CC6B00] Your Username : MyName <br/> Your Password : MyPw
spam-prevention
spf
mass-emails
ptr
bulk-email
11/28/2011 01:46:05
not a real question
Bulk email - Spam prevention - Setup PTR - Setup SPF - What else required ? - Mass Email === I am going to send bulk email to my game players. It will be like 300k. I have setup PTR (Reverse DNS) and SPF record. My email sending address is : [email protected] My email sendin IP is : 85.17.154.139 What else do i need to setup for preventing dropping spam box ? If i add image or link to the email does that increase dropping spam folder chance ? When i send email to the gmail it still does not say at email details signed by. What do i need to get that message ? i mean like mailed-by email.penzu.com signed-by penzu.com Can you check that whether i have setup correctly or not. This is mail details of gmail for example Delivered-To: [email protected] Received: by 10.216.173.69 with SMTP id u47cs24905wel; Sun, 4 Sep 2011 05:47:11 -0700 (PDT) Received: by 10.213.16.69 with SMTP id n5mr393688eba.55.1315140430994; Sun, 04 Sep 2011 05:47:10 -0700 (PDT) Return-Path: <[email protected]> Received: from XCPV002 ([85.17.154.139]) by mx.google.com with ESMTP id r44si691059eeh.89.2011.09.04.05.47.09; Sun, 04 Sep 2011 05:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of [email protected] designates 85.17.154.139 as permitted sender) client-ip=85.17.154.139; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 85.17.154.139 as permitted sender) [email protected] Received: from XCPV002 ([85.17.154.139]) by XCPV002 with Microsoft SMTPSVC(7.5.7601.17514); Sun, 4 Sep 2011 12:47:10 +0000 MIME-Version: 1.0 Sender: "85.17.154.139" <[email protected]> From: =?utf-8?Q?MonsterMMORPG_=C5=9Eifre_Hat=C4=B1rlatma?= <[email protected]> To: [email protected] Date: 4 Sep 2011 12:47:10 +0000 Subject: PokemonCraft Accounts Are Restored - MonsterMMORPG Beta Started Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-Path: [email protected] Message-ID: <XCPV002BhCIRi8Y3bYs00000457@XCPV002> X-OriginalArrivalTime: 04 Sep 2011 12:47:10.0104 (UTC) FILETIME=[C2E7B980:01CC6B00] Your Username : MyName <br/> Your Password : MyPw
1
7,586,532
09/28/2011 16:36:10
675,967
03/25/2011 00:55:32
1
0
local notifications iOS 5
I have an App that uses local notifications intensively. I need sound and visual alert in the same way like iOS 4.0. There is a way I can programmatically enable the notification working in the same way in iOS 5, without having to ask the user to change Settings> Notifications> MyApp?
objective-c
notifications
ios5
null
null
09/28/2011 20:08:40
too localized
local notifications iOS 5 === I have an App that uses local notifications intensively. I need sound and visual alert in the same way like iOS 4.0. There is a way I can programmatically enable the notification working in the same way in iOS 5, without having to ask the user to change Settings> Notifications> MyApp?
3
9,648,872
03/10/2012 18:07:46
1,261,344
03/10/2012 17:54:18
1
0
Android App can't find file
I'm working on my first Android app and I'm trying to parse an XML file using a DOM parser. I'm using an absolute file path, but the compiler still can't find my file and I'm not sure why. This is the message that LogCat gave me. (Note: I'm using a Mac.) 03-10 11:52:16.427: W/System.err(929): java.io.FileNotFoundException: /Users/leedownen/Desktop/AndroidApp/AssignmentGrabber/src/mus/school/tools/assignmentsbystudent.xml (No such file or directory) package mus.school.tools; import android.app.Activity; import android.os.AsyncTask; import android.os.Bundle; import android.widget.TextView; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.w3c.dom.Node; import org.w3c.dom.Element; import java.io.File; public class AssignmentGrabberActivity extends Activity { class Async extends AsyncTask<String, Void, String> { private String results = ""; @Override protected String doInBackground(String... url) { String myURL = url[0]; try { File fXmlFile = new File(myURL); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(fXmlFile); doc.getDocumentElement().normalize(); //System.out.println("Root element :" + doc.getDocumentElement().getNodeName()); NodeList nList = doc.getElementsByTagName("staff"); //System.out.println("-----------------------"); for (int temp = 0; temp < nList.getLength(); temp++) { Node nNode = nList.item(temp); if (nNode.getNodeType() == Node.ELEMENT_NODE) { Element eElement = (Element) nNode; results = results + "\n" + ("Class : " + getTagValue("ClassName", eElement)) + ("Period : " + getTagValue("period", eElement)) + ("Day : " + getTagValue("Day", eElement)); } } } catch (Exception e) { e.printStackTrace(); } return results; } @Override protected void onPostExecute(String results) { this.results = results; } private String getTagValue(String sTag, Element eElement) { NodeList nlList = eElement.getElementsByTagName(sTag).item(0).getChildNodes(); Node nValue = (Node) nlList.item(0); return nValue.getNodeValue(); } public String getResults() { return results; } } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = new TextView(this); Async myAsync = new Async(); myAsync.execute("/Users/leedownen/Desktop/AndroidApp/AssignmentGrabber/src/mus/school/tools/assignmentsbystudent.xml"); tv.setText(myAsync.getResults()); setContentView(tv); } }
android
xml
filenotfoundexception
domparser
null
null
open
Android App can't find file === I'm working on my first Android app and I'm trying to parse an XML file using a DOM parser. I'm using an absolute file path, but the compiler still can't find my file and I'm not sure why. This is the message that LogCat gave me. (Note: I'm using a Mac.) 03-10 11:52:16.427: W/System.err(929): java.io.FileNotFoundException: /Users/leedownen/Desktop/AndroidApp/AssignmentGrabber/src/mus/school/tools/assignmentsbystudent.xml (No such file or directory) package mus.school.tools; import android.app.Activity; import android.os.AsyncTask; import android.os.Bundle; import android.widget.TextView; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.w3c.dom.Node; import org.w3c.dom.Element; import java.io.File; public class AssignmentGrabberActivity extends Activity { class Async extends AsyncTask<String, Void, String> { private String results = ""; @Override protected String doInBackground(String... url) { String myURL = url[0]; try { File fXmlFile = new File(myURL); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(fXmlFile); doc.getDocumentElement().normalize(); //System.out.println("Root element :" + doc.getDocumentElement().getNodeName()); NodeList nList = doc.getElementsByTagName("staff"); //System.out.println("-----------------------"); for (int temp = 0; temp < nList.getLength(); temp++) { Node nNode = nList.item(temp); if (nNode.getNodeType() == Node.ELEMENT_NODE) { Element eElement = (Element) nNode; results = results + "\n" + ("Class : " + getTagValue("ClassName", eElement)) + ("Period : " + getTagValue("period", eElement)) + ("Day : " + getTagValue("Day", eElement)); } } } catch (Exception e) { e.printStackTrace(); } return results; } @Override protected void onPostExecute(String results) { this.results = results; } private String getTagValue(String sTag, Element eElement) { NodeList nlList = eElement.getElementsByTagName(sTag).item(0).getChildNodes(); Node nValue = (Node) nlList.item(0); return nValue.getNodeValue(); } public String getResults() { return results; } } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = new TextView(this); Async myAsync = new Async(); myAsync.execute("/Users/leedownen/Desktop/AndroidApp/AssignmentGrabber/src/mus/school/tools/assignmentsbystudent.xml"); tv.setText(myAsync.getResults()); setContentView(tv); } }
0
11,451,407
07/12/2012 12:02:31
672,697
03/23/2011 09:14:16
25
3
How to Upload php website to web server?
I havecreated a prestashop website. now i have to upload it to webserver. in my web server there is **Default Parallels Plesk Panel Page**., and i have uploaded it to httpdocs folder. does not work. please help
php
ftp
web-hosting
prestashop
null
07/12/2012 12:07:41
off topic
How to Upload php website to web server? === I havecreated a prestashop website. now i have to upload it to webserver. in my web server there is **Default Parallels Plesk Panel Page**., and i have uploaded it to httpdocs folder. does not work. please help
2
7,483,617
09/20/2011 10:21:25
835,431
07/08/2011 13:16:50
43
4
Dynamically form
In my application I'm working on the joined table (table between m:n association). There I've a form to insert data in this table. My question now is how I can add and remove dynamically with jQuery form fields as you can see here http://railscasts.com/episodes/196-nested-model-form-part-1. Can you give me some examples, tutorials etc.? Thank you very much!
jquery
ruby-on-rails-3
forms
null
null
null
open
Dynamically form === In my application I'm working on the joined table (table between m:n association). There I've a form to insert data in this table. My question now is how I can add and remove dynamically with jQuery form fields as you can see here http://railscasts.com/episodes/196-nested-model-form-part-1. Can you give me some examples, tutorials etc.? Thank you very much!
0
1,401,339
09/09/2009 18:39:32
102,533
05/06/2009 22:33:27
178
3
JQuery dir, sizzle and filter
When I ran the profiler on a JQuery intensive page while tuning for performance, I noticed that these JQuery functions take significant amount of time (in that order) dir (9.42%) Sizzle (3.79%) filter (3.79%) My jquery functions are too large to paste here. Can I get pointers on which JQuery functions internally call these functions? Also, is there a way to get a tree of JS functions using the IE8 profiler (or any other way) that tells me which JS function called which one? Thanks
jquery
null
null
null
null
null
open
JQuery dir, sizzle and filter === When I ran the profiler on a JQuery intensive page while tuning for performance, I noticed that these JQuery functions take significant amount of time (in that order) dir (9.42%) Sizzle (3.79%) filter (3.79%) My jquery functions are too large to paste here. Can I get pointers on which JQuery functions internally call these functions? Also, is there a way to get a tree of JS functions using the IE8 profiler (or any other way) that tells me which JS function called which one? Thanks
0
11,088,673
06/18/2012 18:17:45
850,819
07/18/2011 20:41:48
45
2
Hands-on literature on Oracle Memory Management?
**Does anyone know of concise, yet complete, hands-on literature on Oracle Memory Management for 10g(R2) and 11g(R2)?** There is a lot of information out there, but those are either short problem-solving forum responses, either lengthy and disorganized Oracle Documentation pages. Please, I know the Oracle Documentation. I have been using it for years, but when it comes to memory management, it just doesn't do the trick of informing people. At the very least it doesn't seem to want to work with me on this. By hands-on I mean that I am hoping it will contain examples on which command to run to do what (statistics, parameters), and help me understand the memory management step by step. My motivation for this is that we have a growing Forms 6i & Forms 11g business and we find ourselves using more Java stored procedures, more PL/SQL arrays, parallel sessions, etc. Lately we have encountered cases where Oracle Automatic Memory Management wasn't doing what we hoped : work without flaw with minimal configuration. We use shared Oracle servers. An 80 pages-like pdf would make my day, if such a thing is even possible :)
oracle
memory
literature
null
null
07/10/2012 17:23:40
off topic
Hands-on literature on Oracle Memory Management? === **Does anyone know of concise, yet complete, hands-on literature on Oracle Memory Management for 10g(R2) and 11g(R2)?** There is a lot of information out there, but those are either short problem-solving forum responses, either lengthy and disorganized Oracle Documentation pages. Please, I know the Oracle Documentation. I have been using it for years, but when it comes to memory management, it just doesn't do the trick of informing people. At the very least it doesn't seem to want to work with me on this. By hands-on I mean that I am hoping it will contain examples on which command to run to do what (statistics, parameters), and help me understand the memory management step by step. My motivation for this is that we have a growing Forms 6i & Forms 11g business and we find ourselves using more Java stored procedures, more PL/SQL arrays, parallel sessions, etc. Lately we have encountered cases where Oracle Automatic Memory Management wasn't doing what we hoped : work without flaw with minimal configuration. We use shared Oracle servers. An 80 pages-like pdf would make my day, if such a thing is even possible :)
2
6,849,314
07/27/2011 18:27:28
436,493
12/15/2009 16:58:55
434
10
embedding youtube channels on a website and extracting channel data
hey everyone i have two questions pertaining to youtube: 1) how do you go about embedding youtube channels on your website? so far i've been using this method: <script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&amp;up_channel=illbehonest&amp;synd=open&amp;w=320&amp;h=390&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script> and http://plugins.jquery.com/project/ChannelPlaylist but none have proven to be really feasible! 2) how do you go about extracting youtube channel data for entry into a mysql database? (for example video title, time/date uploaded, url) is there any jquery plugin that does this? many thanks
mysql
youtube
null
null
null
null
open
embedding youtube channels on a website and extracting channel data === hey everyone i have two questions pertaining to youtube: 1) how do you go about embedding youtube channels on your website? so far i've been using this method: <script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&amp;up_channel=illbehonest&amp;synd=open&amp;w=320&amp;h=390&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script> and http://plugins.jquery.com/project/ChannelPlaylist but none have proven to be really feasible! 2) how do you go about extracting youtube channel data for entry into a mysql database? (for example video title, time/date uploaded, url) is there any jquery plugin that does this? many thanks
0
11,535,659
07/18/2012 06:43:43
1,533,704
07/18/2012 05:31:52
1
0
Batch Script that - Keep lines with a certain character or character sequence in it & deletes all other lines (blank or otherwise)
What I would like to be able to do is with a source text file (ASCII) the from root directory of batch script: 1) Keep lines with a certain character or character sequence in it. 2) delete all other lines (blank or otherwise) 3) Write results to another text (ASCII) file in the same root directory as a the batch script and / or source file. Much thanks. Cheers, BK. .
batch-file
dos
ms-dos
null
null
07/18/2012 15:09:07
not a real question
Batch Script that - Keep lines with a certain character or character sequence in it & deletes all other lines (blank or otherwise) === What I would like to be able to do is with a source text file (ASCII) the from root directory of batch script: 1) Keep lines with a certain character or character sequence in it. 2) delete all other lines (blank or otherwise) 3) Write results to another text (ASCII) file in the same root directory as a the batch script and / or source file. Much thanks. Cheers, BK. .
1
11,077,489
06/18/2012 05:47:27
1,439,885
06/06/2012 13:39:21
1
0
Google Api Using With Json
When I Call Google API for get the address and i calling api here like . -(void)searchviews:(NSString*)EditString selector:(SEL)sel { NSLog(@"Welcome To Search views"); searchviews=sel; NSString *path =[NSString stringWithFormat:@"http://maps.google.com/maps/api/geocode/json?address=%@&sensor=false",EditString]; NSURL *url=[NSURL URLWithString:path]; NSLog(@"hiii---%@",url); ASIFormDataRequest *request=[ASIFormDataRequest requestWithURL:url]; [request setRequestMethod:@"POST"]; [request setDelegate:self]; [request startAsynchronous]; [drkSignUp showWithMessage:nil]; NSLog(@" Complet--------------- "); and for Request Method I call like . - (void)requestFinished:(ASIHTTPRequest *)request { //NSLog(@"%@",[request responseString]); NSString *func = [self getFunc:[request url]]; NSLog(@"%@\n%@",func,[request responseString]); if ([func isEqual:@"json?address=%@&sensor=false"]) { NSDictionary *resDict = [parser objectWithString:[request responseString] error:nil]; NSLog(@"---- ResData%@",resDict); NSString *result = [resDict objectForKey:@"successful"]; NSLog(@"hiiiii google api calling............"); [drkSignUp hide]; [self.delegate performSelector:searchviews withObject:[resDict objectForKey:@"results"]]; the is like that but problem create in fun . When i call if ([func isEqual:@"json?address=%@&sensor=false"]) it is not calling cos the it is be Dynamic String.So What Should I put inplace of %@ in func ?
iphone
json
google
null
null
null
open
Google Api Using With Json === When I Call Google API for get the address and i calling api here like . -(void)searchviews:(NSString*)EditString selector:(SEL)sel { NSLog(@"Welcome To Search views"); searchviews=sel; NSString *path =[NSString stringWithFormat:@"http://maps.google.com/maps/api/geocode/json?address=%@&sensor=false",EditString]; NSURL *url=[NSURL URLWithString:path]; NSLog(@"hiii---%@",url); ASIFormDataRequest *request=[ASIFormDataRequest requestWithURL:url]; [request setRequestMethod:@"POST"]; [request setDelegate:self]; [request startAsynchronous]; [drkSignUp showWithMessage:nil]; NSLog(@" Complet--------------- "); and for Request Method I call like . - (void)requestFinished:(ASIHTTPRequest *)request { //NSLog(@"%@",[request responseString]); NSString *func = [self getFunc:[request url]]; NSLog(@"%@\n%@",func,[request responseString]); if ([func isEqual:@"json?address=%@&sensor=false"]) { NSDictionary *resDict = [parser objectWithString:[request responseString] error:nil]; NSLog(@"---- ResData%@",resDict); NSString *result = [resDict objectForKey:@"successful"]; NSLog(@"hiiiii google api calling............"); [drkSignUp hide]; [self.delegate performSelector:searchviews withObject:[resDict objectForKey:@"results"]]; the is like that but problem create in fun . When i call if ([func isEqual:@"json?address=%@&sensor=false"]) it is not calling cos the it is be Dynamic String.So What Should I put inplace of %@ in func ?
0
7,631,518
10/03/2011 06:00:44
976,121
10/03/2011 05:41:59
1
0
How to Read/ Parse Data of Signed_Request from Registration Script in Php 5.1.6
I'm trying to implement the Facebook registration script. The form is getting submitted fine and the server is receiving the signed request. However, it is not able to read/parse the signed request. I used the script recommended on the registration page https://developers.facebook.com/docs/plugins/registration/ (code below) and all I see for output is: signed_request contents: I have verified that the signed_Request is being received. If I pass it to: http://developers.facebook.com/tools/echo?signed_request= I see data. However on my server with the script below nothing. The server is http NOT https and using php 5.1.6 (which doesn't have some of the JSON support) Do I need PHP SDK installed? Or the jsonwrapper? I've tried the jsonwrapper but not PHP SDK. Any help on why the signed_request can not be read would be appreciated. Code below from facebook <?php include ('jsonwrapper/jsonwrapper.php'); define('FACEBOOK_APP_ID', 'XXX'); define('FACEBOOK_SECRET', 'XXX'); function parse_signed_request($signed_request, $secret) { list($encoded_sig, $payload) = explode('.', $signed_request, 2); // decode the data $sig = base64_url_decode($encoded_sig); $data = json_decode(base64_url_decode($payload), true); if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') { error_log('Unknown algorithm. Expected HMAC-SHA256'); return null; } // check sig $expected_sig = hash_hmac('sha256', $payload, $secret, $raw = true); if ($sig !== $expected_sig) { error_log('Bad Signed JSON signature!'); return null; } return $data; } function base64_url_decode($input) { return base64_decode(strtr($input, '-_', '+/')); } if ($_REQUEST) { echo '<p>signed_request contents:</p>'; $response = parse_signed_request($_REQUEST['signed_request'], FACEBOOK_SECRET); echo '<pre>'; print_r($response); echo '</pre>'; } else { echo '$_REQUEST is empty'; } ?> output is "signed_request contents:" If I add: print_r($_REQUEST); to the script I do see the request but can't parse it
php
facebook
registration
facebook-php-sdk
null
null
open
How to Read/ Parse Data of Signed_Request from Registration Script in Php 5.1.6 === I'm trying to implement the Facebook registration script. The form is getting submitted fine and the server is receiving the signed request. However, it is not able to read/parse the signed request. I used the script recommended on the registration page https://developers.facebook.com/docs/plugins/registration/ (code below) and all I see for output is: signed_request contents: I have verified that the signed_Request is being received. If I pass it to: http://developers.facebook.com/tools/echo?signed_request= I see data. However on my server with the script below nothing. The server is http NOT https and using php 5.1.6 (which doesn't have some of the JSON support) Do I need PHP SDK installed? Or the jsonwrapper? I've tried the jsonwrapper but not PHP SDK. Any help on why the signed_request can not be read would be appreciated. Code below from facebook <?php include ('jsonwrapper/jsonwrapper.php'); define('FACEBOOK_APP_ID', 'XXX'); define('FACEBOOK_SECRET', 'XXX'); function parse_signed_request($signed_request, $secret) { list($encoded_sig, $payload) = explode('.', $signed_request, 2); // decode the data $sig = base64_url_decode($encoded_sig); $data = json_decode(base64_url_decode($payload), true); if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') { error_log('Unknown algorithm. Expected HMAC-SHA256'); return null; } // check sig $expected_sig = hash_hmac('sha256', $payload, $secret, $raw = true); if ($sig !== $expected_sig) { error_log('Bad Signed JSON signature!'); return null; } return $data; } function base64_url_decode($input) { return base64_decode(strtr($input, '-_', '+/')); } if ($_REQUEST) { echo '<p>signed_request contents:</p>'; $response = parse_signed_request($_REQUEST['signed_request'], FACEBOOK_SECRET); echo '<pre>'; print_r($response); echo '</pre>'; } else { echo '$_REQUEST is empty'; } ?> output is "signed_request contents:" If I add: print_r($_REQUEST); to the script I do see the request but can't parse it
0
8,144,050
11/15/2011 22:27:40
1,048,533
11/15/2011 21:56:41
1
0
Fixing Long Rows
I have very long row in Excel from a transpose of addresses and na,es. Is there a way to make a new column for each blank cell in the row? I have been trying to search this and it is hard to find this same thing. Thanks!
excel
excel-vba
null
null
null
11/16/2011 01:38:50
not a real question
Fixing Long Rows === I have very long row in Excel from a transpose of addresses and na,es. Is there a way to make a new column for each blank cell in the row? I have been trying to search this and it is hard to find this same thing. Thanks!
1
10,557,864
05/11/2012 20:01:52
1,390,217
05/11/2012 19:51:48
1
0
How do you publish status to a specific friend list?
I would like to publish a status to a specific friend list (e.g. "family" or "best friends"). I can get the ID of the friend lists using the FB API, but I don't see a way to use this ID when publishing the status. With a group, I can just publish to the group ID (https://graph.facebook.com/<groupID>/feed). But this doesn't seem to work for a friend list.
facebook
api
publish
null
null
null
open
How do you publish status to a specific friend list? === I would like to publish a status to a specific friend list (e.g. "family" or "best friends"). I can get the ID of the friend lists using the FB API, but I don't see a way to use this ID when publishing the status. With a group, I can just publish to the group ID (https://graph.facebook.com/<groupID>/feed). But this doesn't seem to work for a friend list.
0
8,450,642
12/09/2011 19:24:54
1,026,203
11/02/2011 17:52:31
20
0
MySQL Server Host
I have a MySQL database which will be called by a .NET Web Service. Some of the tables in my database is meant to contain images and/or binary data files. However, I personally think it is wrong to clog a database with binary files.....so after a lot of research, I decided to save the files in a server host and then save their location in the database. However, since I am new in this server-side technologies, I have no absolutely no clue where the MySQL Server is located in my computer. Can anyone please tell me where I should be saving the files so that I can just call them like this "../Icons/pic.png" instead of doing this "C:\Documents and Settings\Images\Icons\pic.png"...?
mysql
null
null
null
null
12/09/2011 19:46:26
not a real question
MySQL Server Host === I have a MySQL database which will be called by a .NET Web Service. Some of the tables in my database is meant to contain images and/or binary data files. However, I personally think it is wrong to clog a database with binary files.....so after a lot of research, I decided to save the files in a server host and then save their location in the database. However, since I am new in this server-side technologies, I have no absolutely no clue where the MySQL Server is located in my computer. Can anyone please tell me where I should be saving the files so that I can just call them like this "../Icons/pic.png" instead of doing this "C:\Documents and Settings\Images\Icons\pic.png"...?
1
3,122,959
06/26/2010 06:28:45
375,794
06/25/2010 00:06:07
3
2
what is the best technique of using OOP?
Can u give a real sample scenario using OOP structure for developing programs. Would appreciate your response. Thank you,
c#
null
null
null
null
06/26/2010 06:38:33
not a real question
what is the best technique of using OOP? === Can u give a real sample scenario using OOP structure for developing programs. Would appreciate your response. Thank you,
1
7,712,264
10/10/2011 11:46:11
940,031
09/12/2011 07:07:35
6
0
append in word document using c#
`//Text to word file `StringBuilder strBuilder = newStringBuilder();` `strBuilder.Append("<h1 title='Header' align='Center'>Writing To Word Using ` `ASP.NET</h1> ".ToString());` `strBuilder.Append("<br>".ToString());` `strBuilder.Append("<table align='Center'>".ToString());` `strBuilder.Append("<tr>".ToString());` `**strBuilder.Append("<td style='width:100px;color:green'>Date :<asp:Label ` `ID='lbl_dte' runat='server' Text=>Labe2</asp:Label></td>".ToString());**` `strBuilder.Append("<td ` `style='width:100px;color:red'>India</td>".ToString());' `kstrBuilder.Append("</tr>".ToString());` `strBuilder.Append("</table>".ToString());` `// string strPath = Request.PhysicalApplicationPath + ` "\\document\\Test.doc"; `string strPath = filename;` `//string strTextToWrite = TextBox1.Text; FileStream fStream = newFileStream (strPath,FileMode.Append); `fStream.Close();` `StreamWriter sWriter = newStreamWriter(strPath);` `sWriter.Write(strBuilder);` `sWriter.Close();` ` `i add a asp label '<asp:Label ID='lbl_dte' runat='server' `Text=>Labe2</asp:Label> `can i get the contol of label in code behind(c# asp.net)`
c#
asp
null
null
null
10/10/2011 18:05:27
not a real question
append in word document using c# === `//Text to word file `StringBuilder strBuilder = newStringBuilder();` `strBuilder.Append("<h1 title='Header' align='Center'>Writing To Word Using ` `ASP.NET</h1> ".ToString());` `strBuilder.Append("<br>".ToString());` `strBuilder.Append("<table align='Center'>".ToString());` `strBuilder.Append("<tr>".ToString());` `**strBuilder.Append("<td style='width:100px;color:green'>Date :<asp:Label ` `ID='lbl_dte' runat='server' Text=>Labe2</asp:Label></td>".ToString());**` `strBuilder.Append("<td ` `style='width:100px;color:red'>India</td>".ToString());' `kstrBuilder.Append("</tr>".ToString());` `strBuilder.Append("</table>".ToString());` `// string strPath = Request.PhysicalApplicationPath + ` "\\document\\Test.doc"; `string strPath = filename;` `//string strTextToWrite = TextBox1.Text; FileStream fStream = newFileStream (strPath,FileMode.Append); `fStream.Close();` `StreamWriter sWriter = newStreamWriter(strPath);` `sWriter.Write(strBuilder);` `sWriter.Close();` ` `i add a asp label '<asp:Label ID='lbl_dte' runat='server' `Text=>Labe2</asp:Label> `can i get the contol of label in code behind(c# asp.net)`
1
1,264,406
08/12/2009 05:50:07
145,506
07/27/2009 04:12:02
16
0
To get windows status bar position and size
I want to know how do i get the postion( buttom, top, left or right) and size of Windows status bar. Thanks in advance. Ravi Naik.
c#
null
null
null
null
null
open
To get windows status bar position and size === I want to know how do i get the postion( buttom, top, left or right) and size of Windows status bar. Thanks in advance. Ravi Naik.
0
9,707,807
03/14/2012 18:21:57
536,768
12/09/2010 17:06:03
1,100
62
how to force horizontal scrolling in an HTML list using CSS?
I have a list like this: <div> <ul> <li>one</li> <li>two</li> <li>three</li> <li>four</li> </ul> </div> and the following CSS: ul { width: 160px; overflow: auto; } li { width: 80px; display: inline-block; float: left } I'm trying to force the list items to display from left to right, that is one - two - three - four **My problem:** Doing it like this gives me two rows with two items each. **Question:** Is there a CSS way to force the list items to all be in a single row so I can use horizontal scrolling? Right now if I set *overflow:auto* I'm only getting vertical scrollbars, which I don't want. I don't want to set this on the wrapping div. I'm just curious if there is a CSS solution I can use within the list alone. Thanks for help!
html
css
list
float
horizontal-scrolling
null
open
how to force horizontal scrolling in an HTML list using CSS? === I have a list like this: <div> <ul> <li>one</li> <li>two</li> <li>three</li> <li>four</li> </ul> </div> and the following CSS: ul { width: 160px; overflow: auto; } li { width: 80px; display: inline-block; float: left } I'm trying to force the list items to display from left to right, that is one - two - three - four **My problem:** Doing it like this gives me two rows with two items each. **Question:** Is there a CSS way to force the list items to all be in a single row so I can use horizontal scrolling? Right now if I set *overflow:auto* I'm only getting vertical scrollbars, which I don't want. I don't want to set this on the wrapping div. I'm just curious if there is a CSS solution I can use within the list alone. Thanks for help!
0
9,901,197
03/28/2012 04:31:26
1,289,949
03/24/2012 12:15:39
1
0
error in crating custom layout while listview using base adapter in android
I am fetching the images and names from mysql database through the url using json. i can view the images in list view.but not names . i want create custom view inside the getview method.but create cusotom view it show error in logcat..please see the my code and edit my code send to me enter code here public class ImageAdapter extends BaseAdapter { private static final Context Context = null; String qrimage; Bitmap bmp, resizedbitmap; Activity activity = null; private static LayoutInflater inflater = null; private ImageView[] mImages; String[] itemimage; TextView[] tv; String itemname; HashMap<String, String> map = new HashMap<String, String>(); public ImageAdapter(Context context, JSONArray imageArrayJson) { this.mImages = new ImageView[imageArrayJson.length()]; try { for (int i = 0; i < imageArrayJson.length(); i++) { JSONObject image = imageArrayJson.getJSONObject(i); qrimage = image.getString("itemimage"); itemname = image.getString("itemname"); map.put("itemname", image.getString("itemname")); System.out.println(itemname); byte[] qrimageBytes = Base64.decode(qrimage.getBytes()); bmp = BitmapFactory.decodeByteArray(qrimageBytes, 0, qrimageBytes.length); int width = 100; int height = 100; resizedbitmap = Bitmap.createScaledBitmap(bmp, width, height, true); mImages[i] = new ImageView(context); mImages[i].setImageBitmap(resizedbitmap); mImages[i].setScaleType(ImageView.ScaleType.FIT_START); inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); // tv[i].setText(itemname); } } catch (Exception e) { // TODO: handle exception } } public int getCount() { return mImages.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public class ViewHolder { TextView text; } public View getView(int position, View convertView, ViewGroup parent) { // return mImages[position]; ViewHolder holder = new ViewHolder(); if (convertView == null){ convertView = inflater.inflate(R.layout.listview, null); holder.text = (TextView)convertView.findViewById(R.id.text); convertView.setTag(holder); }else{ holder = (ViewHolder)convertView.getTag(); } holder.text.setText(map.get("itemname")); return convertView; } } myxml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/image" android:layout_width="50dip" android:layout_height="50dip" android:src="@drawable/stub" android:scaleType="centerCrop"/> <TextView android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="20dip" android:layout_marginLeft="10dip"/> </LinearLayout> I want append the mimages in imageview and itemname to textview. finally i want mimages and itemname as listview
android
android-layout
null
null
null
null
open
error in crating custom layout while listview using base adapter in android === I am fetching the images and names from mysql database through the url using json. i can view the images in list view.but not names . i want create custom view inside the getview method.but create cusotom view it show error in logcat..please see the my code and edit my code send to me enter code here public class ImageAdapter extends BaseAdapter { private static final Context Context = null; String qrimage; Bitmap bmp, resizedbitmap; Activity activity = null; private static LayoutInflater inflater = null; private ImageView[] mImages; String[] itemimage; TextView[] tv; String itemname; HashMap<String, String> map = new HashMap<String, String>(); public ImageAdapter(Context context, JSONArray imageArrayJson) { this.mImages = new ImageView[imageArrayJson.length()]; try { for (int i = 0; i < imageArrayJson.length(); i++) { JSONObject image = imageArrayJson.getJSONObject(i); qrimage = image.getString("itemimage"); itemname = image.getString("itemname"); map.put("itemname", image.getString("itemname")); System.out.println(itemname); byte[] qrimageBytes = Base64.decode(qrimage.getBytes()); bmp = BitmapFactory.decodeByteArray(qrimageBytes, 0, qrimageBytes.length); int width = 100; int height = 100; resizedbitmap = Bitmap.createScaledBitmap(bmp, width, height, true); mImages[i] = new ImageView(context); mImages[i].setImageBitmap(resizedbitmap); mImages[i].setScaleType(ImageView.ScaleType.FIT_START); inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); // tv[i].setText(itemname); } } catch (Exception e) { // TODO: handle exception } } public int getCount() { return mImages.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public class ViewHolder { TextView text; } public View getView(int position, View convertView, ViewGroup parent) { // return mImages[position]; ViewHolder holder = new ViewHolder(); if (convertView == null){ convertView = inflater.inflate(R.layout.listview, null); holder.text = (TextView)convertView.findViewById(R.id.text); convertView.setTag(holder); }else{ holder = (ViewHolder)convertView.getTag(); } holder.text.setText(map.get("itemname")); return convertView; } } myxml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/image" android:layout_width="50dip" android:layout_height="50dip" android:src="@drawable/stub" android:scaleType="centerCrop"/> <TextView android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:textSize="20dip" android:layout_marginLeft="10dip"/> </LinearLayout> I want append the mimages in imageview and itemname to textview. finally i want mimages and itemname as listview
0
2,354,145
03/01/2010 06:04:45
265,906
02/04/2010 05:05:48
38
0
how to remove what setpixel put on the window?? (c++)
im using SetPixel to make stuff on my window which is the easyest because i only want to set one pixel at a time. SetPixel is great but i need to remove the color every time i update it, i could overwrite the color by black but.. it's a really big waste of time is there some way i can over write all of the colors to black? (i would like something that is faster then reseting them all to black). i make a window and then color with setpixel (there is other ways (to draw on the window) but i only want to set one pixel/color at a time)
clear
screen
pixel
c++
null
null
open
how to remove what setpixel put on the window?? (c++) === im using SetPixel to make stuff on my window which is the easyest because i only want to set one pixel at a time. SetPixel is great but i need to remove the color every time i update it, i could overwrite the color by black but.. it's a really big waste of time is there some way i can over write all of the colors to black? (i would like something that is faster then reseting them all to black). i make a window and then color with setpixel (there is other ways (to draw on the window) but i only want to set one pixel/color at a time)
0
8,660,567
12/28/2011 19:51:17
1,119,200
12/28/2011 11:25:04
13
0
get document title with jQuery
I have to get document title from ajax success data without regex . For example this is not working: http://jsfiddle.net/7UyRa/
jquery
null
null
null
null
null
open
get document title with jQuery === I have to get document title from ajax success data without regex . For example this is not working: http://jsfiddle.net/7UyRa/
0
10,434,154
05/03/2012 15:06:51
869,934
07/29/2011 19:13:26
60
1
How to use PersistentBitmap with Bitmap Resizing?
I currently use code like this that works at refitting the bitmaps for different screen sizes: A.back = GPATools.ResizeTransparentBitmap(A.back, 150, 37, Bitmap.FILTER_LANCZOS, Bitmap.SCALE_TO_FIT); However, every time I load the app, it takes the time to resize it again, so I've been told to use this code for that: classPersistableBitmapimplementsPersistable{ int width; int height; int[] argbData; publicPersistableBitmap(Bitmap image){ width = image.getWidth(); height = image.getHeight(); argbData =newint[width * height]; image.getARGB(argbData,0, width,0,0, width, height); } publicBitmap getBitmapImage(){ Bitmap image =newBitmap(width, height); image.setARGB(argbData,0, width,0,0, width, height); return image; } My problem is, I have no idea how to implement the two together! Please help guys/gals, thanks a lot!
java
blackberry
bitmap
resize
null
null
open
How to use PersistentBitmap with Bitmap Resizing? === I currently use code like this that works at refitting the bitmaps for different screen sizes: A.back = GPATools.ResizeTransparentBitmap(A.back, 150, 37, Bitmap.FILTER_LANCZOS, Bitmap.SCALE_TO_FIT); However, every time I load the app, it takes the time to resize it again, so I've been told to use this code for that: classPersistableBitmapimplementsPersistable{ int width; int height; int[] argbData; publicPersistableBitmap(Bitmap image){ width = image.getWidth(); height = image.getHeight(); argbData =newint[width * height]; image.getARGB(argbData,0, width,0,0, width, height); } publicBitmap getBitmapImage(){ Bitmap image =newBitmap(width, height); image.setARGB(argbData,0, width,0,0, width, height); return image; } My problem is, I have no idea how to implement the two together! Please help guys/gals, thanks a lot!
0
698,141
03/30/2009 17:16:17
79,685
03/18/2009 19:19:42
20
0
What is the best Integrated Development Environment for Web development and What is the best language to build cutting edge websites?
I recently got interested in web development coming from kernel based applications. I am curious to what the best development environment and language that one can use to build a nice looking website. I have a distant familiarity with PHP, CSS and the like but comfortable with HTML. Any suggestions?? Hope i am not too naive.
ide
scripting
programming-languages
flash
null
03/30/2009 17:21:46
not constructive
What is the best Integrated Development Environment for Web development and What is the best language to build cutting edge websites? === I recently got interested in web development coming from kernel based applications. I am curious to what the best development environment and language that one can use to build a nice looking website. I have a distant familiarity with PHP, CSS and the like but comfortable with HTML. Any suggestions?? Hope i am not too naive.
4
7,744,760
10/12/2011 18:31:39
933,531
05/23/2011 20:49:53
1
0
When using swfobject, swf file ignores z-index
I have this issue where if I append a swf file using SWFObject, it ignores my css rules for z-index. I have tried to set the parent container, the swf file, and everything around it; nothing seems to work for me. Has anyone ran into this issue and could give me some helpful advice? Thanks, Kyle
css
actionscript
swf
z-index
swfobject
null
open
When using swfobject, swf file ignores z-index === I have this issue where if I append a swf file using SWFObject, it ignores my css rules for z-index. I have tried to set the parent container, the swf file, and everything around it; nothing seems to work for me. Has anyone ran into this issue and could give me some helpful advice? Thanks, Kyle
0
6,662,042
07/12/2011 09:30:04
649,962
03/08/2011 14:37:31
73
3
I need an SQL Query to compare Table1.field1 with Table2.field4, cut paste Table2.FoundRow results to Table3
working on a project using sqlServer 2008 and I've very very limited knowledge of SQL queries and such , here's what I have and I know that it's utter crap, so please, denizens of SO, help a brother out. `string compareVals = "SELECT * FROM Table2 WHERE Table1.Field1 = Table2.Field4 and change table2.field6 to"+ DateTime.Month.ToString();`
c#
tsql
data
null
null
null
open
I need an SQL Query to compare Table1.field1 with Table2.field4, cut paste Table2.FoundRow results to Table3 === working on a project using sqlServer 2008 and I've very very limited knowledge of SQL queries and such , here's what I have and I know that it's utter crap, so please, denizens of SO, help a brother out. `string compareVals = "SELECT * FROM Table2 WHERE Table1.Field1 = Table2.Field4 and change table2.field6 to"+ DateTime.Month.ToString();`
0
5,719,866
04/19/2011 16:52:13
576,205
01/14/2011 20:56:54
38
0
EXTRACTING FILES FROM A sharepoint DATABASE
I am trying to create a small little program in C# to extract files from a sharepoint database. I obtained the code from a search online and I am trying to edit it so that the files are extracted to a specific folder while maintaining the folder from the sharepoint database. Specifically, I want the user to enter the name of the server from the form, the name of the database that they are trying to extract files from, and finally the path that they wish to use to extract the files. I am getting an error when I debug. The error states: Could not find a part of the path: Regarding this line of code: FileStream fs = new FileStream(txtdir.Text + "/" + DirName + "/" + LeafName, FileMode.Create, FileAccess.Write); Here is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.IO; namespace SPEXTRACTOR { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void ENTER_Click(object sender, EventArgs e) { string DBConnString = "Server=" + txtserver.Text + ";Database=" + txtDB.Text + ";Trusted_Connection=True;"; SqlConnection con = new SqlConnection(DBConnString); con.Open(); SqlCommand com = con.CreateCommand(); com.CommandText = "SELECT ad.SiteId, ad.Id, ad.DirName," + " ad.LeafName, ads.Content" + " FROM AllDocs ad, AllDocStreams ads" + " WHERE ad.SiteId = ads.SiteId" + " AND ad.Id = ads.Id" + " AND ads.Content IS NOT NULL" + " Order by DirName"; //SqlCommand com = con.CreateCommand(); //com.CommandText = "select DirName, LeafName, Content from AllDocStreams, AllDocs where (LeafName like '%.doc' or LeafName like '%.xls' or LeafName like '%.pdf' or LeafName like '%.ppt') and Content is not NULL"; //com.CommandText = "select DirName, LeafName, Content from AllDocStreams, AllDocs where (LeafName like '%.doc' or LeafName like '%.xls' or LeafName like '%.pdf' or LeafName like '%.ppt') and Content is not NULL"; SqlDataReader reader = com.ExecuteReader(); while (reader.Read()) { // grab the file's directory and name string DirName = (string)reader["DirName"]; string LeafName = (string)reader["LeafName"]; if (!Directory.Exists(DirName)) { Directory.CreateDirectory(DirName); Console.WriteLine("Creating directory: " + DirName); } //FileStream fs = new FileStream(DirName + "/" + LeafName, FileMode.Create, FileAccess.Write); FileStream fs = new FileStream(txtdir.Text + "/" + DirName + "/" + LeafName, FileMode.Create, FileAccess.Write); BinaryWriter writer = new BinaryWriter(fs); // depending on the speed of your network, you may want to change the buffer size (it's in bytes) int bufferSize = 1000000; long startIndex = 0; long retval = 0; byte[] outByte = new byte[bufferSize]; // grab the file out of the db one chunk (of size bufferSize) at a time do { retval = reader.GetBytes(4, startIndex, outByte, 0, bufferSize); //retval = reader.GetBytes(2, startIndex, outByte, 0, bufferSize); startIndex += bufferSize; writer.Write(outByte, 0, (int)retval); writer.Flush(); } while (retval == bufferSize); // finish writing the file writer.Close(); fs.Close(); Console.WriteLine("Finished writing file: " + LeafName); } // close the DB connection and whatnots reader.Close(); con.Close(); } } }
c#
visual-studio-2008
sharepoint2007
null
null
null
open
EXTRACTING FILES FROM A sharepoint DATABASE === I am trying to create a small little program in C# to extract files from a sharepoint database. I obtained the code from a search online and I am trying to edit it so that the files are extracted to a specific folder while maintaining the folder from the sharepoint database. Specifically, I want the user to enter the name of the server from the form, the name of the database that they are trying to extract files from, and finally the path that they wish to use to extract the files. I am getting an error when I debug. The error states: Could not find a part of the path: Regarding this line of code: FileStream fs = new FileStream(txtdir.Text + "/" + DirName + "/" + LeafName, FileMode.Create, FileAccess.Write); Here is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.IO; namespace SPEXTRACTOR { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void ENTER_Click(object sender, EventArgs e) { string DBConnString = "Server=" + txtserver.Text + ";Database=" + txtDB.Text + ";Trusted_Connection=True;"; SqlConnection con = new SqlConnection(DBConnString); con.Open(); SqlCommand com = con.CreateCommand(); com.CommandText = "SELECT ad.SiteId, ad.Id, ad.DirName," + " ad.LeafName, ads.Content" + " FROM AllDocs ad, AllDocStreams ads" + " WHERE ad.SiteId = ads.SiteId" + " AND ad.Id = ads.Id" + " AND ads.Content IS NOT NULL" + " Order by DirName"; //SqlCommand com = con.CreateCommand(); //com.CommandText = "select DirName, LeafName, Content from AllDocStreams, AllDocs where (LeafName like '%.doc' or LeafName like '%.xls' or LeafName like '%.pdf' or LeafName like '%.ppt') and Content is not NULL"; //com.CommandText = "select DirName, LeafName, Content from AllDocStreams, AllDocs where (LeafName like '%.doc' or LeafName like '%.xls' or LeafName like '%.pdf' or LeafName like '%.ppt') and Content is not NULL"; SqlDataReader reader = com.ExecuteReader(); while (reader.Read()) { // grab the file's directory and name string DirName = (string)reader["DirName"]; string LeafName = (string)reader["LeafName"]; if (!Directory.Exists(DirName)) { Directory.CreateDirectory(DirName); Console.WriteLine("Creating directory: " + DirName); } //FileStream fs = new FileStream(DirName + "/" + LeafName, FileMode.Create, FileAccess.Write); FileStream fs = new FileStream(txtdir.Text + "/" + DirName + "/" + LeafName, FileMode.Create, FileAccess.Write); BinaryWriter writer = new BinaryWriter(fs); // depending on the speed of your network, you may want to change the buffer size (it's in bytes) int bufferSize = 1000000; long startIndex = 0; long retval = 0; byte[] outByte = new byte[bufferSize]; // grab the file out of the db one chunk (of size bufferSize) at a time do { retval = reader.GetBytes(4, startIndex, outByte, 0, bufferSize); //retval = reader.GetBytes(2, startIndex, outByte, 0, bufferSize); startIndex += bufferSize; writer.Write(outByte, 0, (int)retval); writer.Flush(); } while (retval == bufferSize); // finish writing the file writer.Close(); fs.Close(); Console.WriteLine("Finished writing file: " + LeafName); } // close the DB connection and whatnots reader.Close(); con.Close(); } } }
0
11,744,292
07/31/2012 16:01:01
1,382,123
05/08/2012 12:59:06
8
0
GUI interface, new project
I think you guys are great, by the way!! HANS, dasblinkenlight, you rock, I owe you big time! Well anyway, I am embarking on another software adventure, so far all my ideas are sound. A long time ago before the CATS, on a Mac, I could put up a window, add a scrollbar, widget, put up another window, edit fields, click here, click there, interface with the software I wrote, etc. Now I am working in a Windows' environment, no problem, but I have NO clue, QT4?, what is a good framework I can use to put up windows, buttons, check boxes, scroll bars and the rest of the graphic user's interface, Visual Studio?, something I can learn quickly, and work up to the harder stuff. The software I am writing will pick up information from the screen, edit fields, then buttons are pushed to accomplish various tasks. The information that is collected will be displayed as well, a total 8 window in various sizes, some with scrollbars that enable the user to view his or her work or reuse what is already there. So far, the work flow process I developed with NetBeans using a command line interface that mimics the GUI works fine. I don't mind learning, wherever you guys send me that's where I'll start!! Any ideas, Ernest Striker
gui
netbeans
null
null
null
null
open
GUI interface, new project === I think you guys are great, by the way!! HANS, dasblinkenlight, you rock, I owe you big time! Well anyway, I am embarking on another software adventure, so far all my ideas are sound. A long time ago before the CATS, on a Mac, I could put up a window, add a scrollbar, widget, put up another window, edit fields, click here, click there, interface with the software I wrote, etc. Now I am working in a Windows' environment, no problem, but I have NO clue, QT4?, what is a good framework I can use to put up windows, buttons, check boxes, scroll bars and the rest of the graphic user's interface, Visual Studio?, something I can learn quickly, and work up to the harder stuff. The software I am writing will pick up information from the screen, edit fields, then buttons are pushed to accomplish various tasks. The information that is collected will be displayed as well, a total 8 window in various sizes, some with scrollbars that enable the user to view his or her work or reuse what is already there. So far, the work flow process I developed with NetBeans using a command line interface that mimics the GUI works fine. I don't mind learning, wherever you guys send me that's where I'll start!! Any ideas, Ernest Striker
0
8,706,051
01/02/2012 22:38:22
1,030,470
11/04/2011 21:31:48
8
0
To those of you who do a majority of you developement work in vim; What does your workflow look like?
As a high school student who does most of his coding in the Netbeans IDE (As a class requirement), but also proficient at vim usage (As A Linux user I decided to invest my time in learning it; I actually wrote this post in GVim with the "It's all text" addon). I wish to do more in Vim. I work mostly in Java, and I'm also teaching myself python on the side, and I edit the source files with vanilla Vim with little more than just syntax highlighting for readabilities sake. Any descriptions of your work flow(including OS, and primary language) and auxiliary tools/plug-ins would be much appreciated as well as any notable customization that you have made to said tools, so that I might have an idea of where I might start to look to find my preferred work flow.
vim
workflow
customization
null
null
01/02/2012 22:43:20
off topic
To those of you who do a majority of you developement work in vim; What does your workflow look like? === As a high school student who does most of his coding in the Netbeans IDE (As a class requirement), but also proficient at vim usage (As A Linux user I decided to invest my time in learning it; I actually wrote this post in GVim with the "It's all text" addon). I wish to do more in Vim. I work mostly in Java, and I'm also teaching myself python on the side, and I edit the source files with vanilla Vim with little more than just syntax highlighting for readabilities sake. Any descriptions of your work flow(including OS, and primary language) and auxiliary tools/plug-ins would be much appreciated as well as any notable customization that you have made to said tools, so that I might have an idea of where I might start to look to find my preferred work flow.
2
6,127,810
05/25/2011 16:34:00
709,121
04/15/2011 03:59:14
25
2
Incorrect Entry into database
I have a dropdownlist (with values 'CMC' & 'CHF')and two textbox's. when i select an option from dropdownlist, a text box control appears (visibility is written in javascript). when i enter a number into this textbox and hit the sumbit/next button it should save this information in database. The logic works for the one option but its not working for the other! Both the options have textbox's assoicated with them, which are visible only when the respective option is selected. the frontend logic works (i.e. the visibility) but when I enter a number for 'txt_HFMN' ( the option for this text box to appear in the dropdown is 'CHF' and 'CMC' for textbox 'txt_HFNumber') Here is the code in .cs file: if (txt_HFNumber != null) { strHFNUM = txt_HFNumber.Text; } else if (txt_HFMN != null) { strHFNUM = txt_HFMN.Text; } else { strHFNUM = string.Empty; } I tried to debug it, to pin point the error. The above condition checks only for the 'txt_HFNumber', it never checks the 'else if' part. even though I have entered a value in 'txt_HFMN' it checks for 'txt_HFNumber' and since 'txt_HFNumber' doesn't exist in the front end/no value is entered in this textbox , it inserts a 'null' into the database instead of 'txt_HFMN' entered value! Advise. Really appreciate your help.
javascript
textbox
drop-down-menu
visibility
null
null
open
Incorrect Entry into database === I have a dropdownlist (with values 'CMC' & 'CHF')and two textbox's. when i select an option from dropdownlist, a text box control appears (visibility is written in javascript). when i enter a number into this textbox and hit the sumbit/next button it should save this information in database. The logic works for the one option but its not working for the other! Both the options have textbox's assoicated with them, which are visible only when the respective option is selected. the frontend logic works (i.e. the visibility) but when I enter a number for 'txt_HFMN' ( the option for this text box to appear in the dropdown is 'CHF' and 'CMC' for textbox 'txt_HFNumber') Here is the code in .cs file: if (txt_HFNumber != null) { strHFNUM = txt_HFNumber.Text; } else if (txt_HFMN != null) { strHFNUM = txt_HFMN.Text; } else { strHFNUM = string.Empty; } I tried to debug it, to pin point the error. The above condition checks only for the 'txt_HFNumber', it never checks the 'else if' part. even though I have entered a value in 'txt_HFMN' it checks for 'txt_HFNumber' and since 'txt_HFNumber' doesn't exist in the front end/no value is entered in this textbox , it inserts a 'null' into the database instead of 'txt_HFMN' entered value! Advise. Really appreciate your help.
0
8,075,309
11/10/2011 05:20:03
978,655
10/04/2011 14:31:35
139
2
How to transform this XML into HTML using XSLT..?
Following is the XML piece of code - <Groups> <Group i=1> <Member t="P.M" dec="Y">ABC</Member> <Member t="P.L">PQR</Member> <Member t="M">XYZ</Member> </Group> <Group i=2> <Member t="M" dec="Y">ABC</Member> <Member t="M">PQR</Member> </Group> <Group i=3> <Member t="P.L" dec="Y">ABC</Member> <Member t="M">PQR</Member> <Member t="M">XYZ</Member> </Group> <Group i=4> <Member t="M">ABC</Member> <Member t="M" dec="Y">PQR</Member> </Group> <Group i=5> <Member t="M">ABC</Member> <Member t="M" dec="Y">PQR</Member> <Member t="M" dec="Y">XYZ</Member> </Group> <Group i=6> <Member t="M" dec="Y">ABC</Member> </Group> </Groups> Desired HTML output using **XSLT 1.0** - <U>ABC</U>, P.M, PQR, P.L and XYZ, M <U>ABC</U> and PQR, MM <U>ABC</U>, P.L, PQR and XYZ, MM ABC and <U>PQR</U>, MM ABC, <U>PQR</U> and <U>XYZ</U>, MM <U>ABC</U>, M Description - 1. Each Node value is appended by its attribute value by comma. 2. If 2 members, then an **and** between the Node and Attribute value. (Ex- i=2) 3. If more than 2 members, then a **comma** between first 2 members and an **and** between 2 and 3 member (Ex- i=1 i=3 i=5) 4. If attribute dec="Y" then <U>..</U> to that Node Value
xml
xslt
null
null
null
null
open
How to transform this XML into HTML using XSLT..? === Following is the XML piece of code - <Groups> <Group i=1> <Member t="P.M" dec="Y">ABC</Member> <Member t="P.L">PQR</Member> <Member t="M">XYZ</Member> </Group> <Group i=2> <Member t="M" dec="Y">ABC</Member> <Member t="M">PQR</Member> </Group> <Group i=3> <Member t="P.L" dec="Y">ABC</Member> <Member t="M">PQR</Member> <Member t="M">XYZ</Member> </Group> <Group i=4> <Member t="M">ABC</Member> <Member t="M" dec="Y">PQR</Member> </Group> <Group i=5> <Member t="M">ABC</Member> <Member t="M" dec="Y">PQR</Member> <Member t="M" dec="Y">XYZ</Member> </Group> <Group i=6> <Member t="M" dec="Y">ABC</Member> </Group> </Groups> Desired HTML output using **XSLT 1.0** - <U>ABC</U>, P.M, PQR, P.L and XYZ, M <U>ABC</U> and PQR, MM <U>ABC</U>, P.L, PQR and XYZ, MM ABC and <U>PQR</U>, MM ABC, <U>PQR</U> and <U>XYZ</U>, MM <U>ABC</U>, M Description - 1. Each Node value is appended by its attribute value by comma. 2. If 2 members, then an **and** between the Node and Attribute value. (Ex- i=2) 3. If more than 2 members, then a **comma** between first 2 members and an **and** between 2 and 3 member (Ex- i=1 i=3 i=5) 4. If attribute dec="Y" then <U>..</U> to that Node Value
0
6,812,891
07/25/2011 07:25:37
266,074
02/04/2010 10:19:08
145
3
Help need in designing the PHP code ?
I have a php page whose perpose is taking user information for job recruitment. This page contains a form which has many input fields. This form is as good as a resume of the candidate. there is a section in the form where user enters his skill set the format of that section as follows skill set dropdown skill name dropdown porfeciency dropdown exp. years dropdown exp. month dropdown There are same kind of 8 rows as above. User must fill atleast one row in above section so my question is while submitting the form on above page; is there any way to group that values of the same type in one section to send to action page. Please guide me friends! Thank you!
php
null
null
null
null
07/26/2011 01:59:05
not a real question
Help need in designing the PHP code ? === I have a php page whose perpose is taking user information for job recruitment. This page contains a form which has many input fields. This form is as good as a resume of the candidate. there is a section in the form where user enters his skill set the format of that section as follows skill set dropdown skill name dropdown porfeciency dropdown exp. years dropdown exp. month dropdown There are same kind of 8 rows as above. User must fill atleast one row in above section so my question is while submitting the form on above page; is there any way to group that values of the same type in one section to send to action page. Please guide me friends! Thank you!
1
4,360,010
12/05/2010 17:04:55
465,179
10/03/2010 13:37:44
109
7
Tips and tricks when working with Java Strings, for performance, security ...
I find my self constantly changing my utility methods to improve string handling in my Java code. For example I have changed bunch of my search and replace code to use commons StringUtils.replace method. Or upgrading 1.4 to 1.6 java to type safe code. I would like to ask you to post practices you employ in order to have your string operations run smoothly, securely, fast and the re-usability of your code is fairly simple and elegant. And if you have pattern to it, even better. Also if you now about any new 1.7 java features that are worth the while please post them here.
java
performance
security
string
tips-and-tricks
12/21/2011 14:15:41
not constructive
Tips and tricks when working with Java Strings, for performance, security ... === I find my self constantly changing my utility methods to improve string handling in my Java code. For example I have changed bunch of my search and replace code to use commons StringUtils.replace method. Or upgrading 1.4 to 1.6 java to type safe code. I would like to ask you to post practices you employ in order to have your string operations run smoothly, securely, fast and the re-usability of your code is fairly simple and elegant. And if you have pattern to it, even better. Also if you now about any new 1.7 java features that are worth the while please post them here.
4
2,890,499
05/23/2010 02:23:56
348,107
05/23/2010 02:23:56
1
0
Basic principles of computer encryption?
I can see how a cipher can be developed using substitutions and keys, and how those two things can become more and more complex, thus offering some protection from decryption through brute-force approaches. But specifically I'm wondering: - what other major concepts beyond substitution and key are involved? - is the protection/secrecy of the key a greater vulnerability than the strength of the encryption? - why does encryption still hold up when the key is 'public' ? - are performance considerations a major obstacle to the development of more secure encryption?
security
key
encryption
principles
null
05/23/2010 03:13:20
not a real question
Basic principles of computer encryption? === I can see how a cipher can be developed using substitutions and keys, and how those two things can become more and more complex, thus offering some protection from decryption through brute-force approaches. But specifically I'm wondering: - what other major concepts beyond substitution and key are involved? - is the protection/secrecy of the key a greater vulnerability than the strength of the encryption? - why does encryption still hold up when the key is 'public' ? - are performance considerations a major obstacle to the development of more secure encryption?
1
4,018,947
10/25/2010 21:18:22
1,146,504
06/13/2010 06:04:16
68
2
Create NSArray from plist array
I need to pull out data from a plist array and put it in an NSArray. But it seems to not be working. Here is my main file: NSString *path = [[NSBundle mainBundle] pathForResource:@"htmlData" ofType:@"plist"]; NSMutableDictionary *tempDictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:path]; dictionary = tempDictionary; [tempDictionary release]; NSMutableArray *nameArray = [[NSMutableArray alloc] init]; nameArray = [dictionary objectForKey:@"tagName"]; self.sitesArray = nameArray; [nameArray release]; My plist file. Named: htmlData.plist <plist version="1.0"> <dict> <key>tagName</key> <array> <string>&lt;html&gt;</string> <string>&lt;body&gt;</string> </array> </dict> </plist> It should set `self.sitesArray` equal to `@"<html>", @"<body>, nil;` but it is not working.
iphone
objective-c
null
null
null
null
open
Create NSArray from plist array === I need to pull out data from a plist array and put it in an NSArray. But it seems to not be working. Here is my main file: NSString *path = [[NSBundle mainBundle] pathForResource:@"htmlData" ofType:@"plist"]; NSMutableDictionary *tempDictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:path]; dictionary = tempDictionary; [tempDictionary release]; NSMutableArray *nameArray = [[NSMutableArray alloc] init]; nameArray = [dictionary objectForKey:@"tagName"]; self.sitesArray = nameArray; [nameArray release]; My plist file. Named: htmlData.plist <plist version="1.0"> <dict> <key>tagName</key> <array> <string>&lt;html&gt;</string> <string>&lt;body&gt;</string> </array> </dict> </plist> It should set `self.sitesArray` equal to `@"<html>", @"<body>, nil;` but it is not working.
0
152,023
09/30/2008 07:01:08
10,980
09/16/2008 03:40:08
68
8
WSDL validator
Is there any online service available to validate Web Service WSDL file?
web-services
null
null
null
null
null
open
WSDL validator === Is there any online service available to validate Web Service WSDL file?
0
7,120,779
08/19/2011 11:16:35
795,554
06/13/2011 07:37:35
60
4
How can we custmize Check Box in Android?
I want to display Check box like Radio button though is it possible to give our own shape to the check box if possible than help me please thanks
android
null
null
null
null
null
open
How can we custmize Check Box in Android? === I want to display Check box like Radio button though is it possible to give our own shape to the check box if possible than help me please thanks
0
8,543,651
12/17/2011 08:49:07
440,062
09/05/2010 15:03:47
27
0
Cool APIs to help learn C++?
This isnt quite a programming question, but for my CS class next semester, we're learning C++. Now I'm gonna be proactive and learn some over hte break, and I was wondering if there were any cool API's that are in C++ out there that are fun and not crazy hard, that I could tinker with to help solidify what im learning. Any Ideas? (since this is a really broad question figured these might help narrow it down): I run OSX and Ubuntu Linux I have a kinect i want to tinker with at some point I'd like to learn how to do network programing I want to learn how to do hacker type things (in a legal way preferably) hope that helps narrow it down!
c++
api
computer-science
intermediate
null
12/17/2011 09:02:57
not a real question
Cool APIs to help learn C++? === This isnt quite a programming question, but for my CS class next semester, we're learning C++. Now I'm gonna be proactive and learn some over hte break, and I was wondering if there were any cool API's that are in C++ out there that are fun and not crazy hard, that I could tinker with to help solidify what im learning. Any Ideas? (since this is a really broad question figured these might help narrow it down): I run OSX and Ubuntu Linux I have a kinect i want to tinker with at some point I'd like to learn how to do network programing I want to learn how to do hacker type things (in a legal way preferably) hope that helps narrow it down!
1
2,606,033
04/09/2010 08:42:43
156,446
08/14/2009 11:53:21
295
14
In Reporting Services how to filter second drop down list based on selection in first drop down list?
**Question** *In a Reporting Services Report, How do I filter a second drop down list of cars to only show cars whose ManufacturerId is equal the selected Manufacturer (from the first drop down list)?* **Report Datasets** I have 2 datasets. Dataset 1. A list of Manufacturers. From a stored procedure Report_Manufacturers_P Dataset 2. A list of Cars, including a column called Manufacturers id. From a stored procedure Report_Cars_P **Report Parameters** On the Report I have 2 Parameters. Parameter 1. ManufacturerId. Set from A drop down list of Manufacturers (DataSet 1). Parameter 2. CarId. Set from A drop down list of Cars (DataSet 2). **I've tried..** Creating another sproc called Report_Manufacturer_Cars_P that takes the ManufacturerId as an integer and returns a list of cars made by that manufacturer. Any Ideas. As selecting a Manufacturer doesn't seem to want to kick off anything that filters the Car list? Thanks in advance, -- Lee
reporting
reporting-services
null
null
null
null
open
In Reporting Services how to filter second drop down list based on selection in first drop down list? === **Question** *In a Reporting Services Report, How do I filter a second drop down list of cars to only show cars whose ManufacturerId is equal the selected Manufacturer (from the first drop down list)?* **Report Datasets** I have 2 datasets. Dataset 1. A list of Manufacturers. From a stored procedure Report_Manufacturers_P Dataset 2. A list of Cars, including a column called Manufacturers id. From a stored procedure Report_Cars_P **Report Parameters** On the Report I have 2 Parameters. Parameter 1. ManufacturerId. Set from A drop down list of Manufacturers (DataSet 1). Parameter 2. CarId. Set from A drop down list of Cars (DataSet 2). **I've tried..** Creating another sproc called Report_Manufacturer_Cars_P that takes the ManufacturerId as an integer and returns a list of cars made by that manufacturer. Any Ideas. As selecting a Manufacturer doesn't seem to want to kick off anything that filters the Car list? Thanks in advance, -- Lee
0
5,601,457
04/08/2011 22:35:15
695,818
04/06/2011 23:58:14
8
0
In PHP, can you do an If...Else that changes a variable's value?
Like a $file can change from hello.php to goodbye.php? Is that possible? How?
php
if-statement
null
null
null
04/08/2011 22:40:29
not a real question
In PHP, can you do an If...Else that changes a variable's value? === Like a $file can change from hello.php to goodbye.php? Is that possible? How?
1
3,219,823
07/10/2010 15:38:16
259,185
01/26/2010 11:46:07
40
0
BuildManager.GetType on the Compact Framework ( resolving a class name at runtime on all appdomain )
Is there any way to search for a Type with only its type name in all application domain on the Compact Framework 2.0? Type.GetType's behavior needs one to specify the assembly name on where to look. BuildManager.GetType does exactly that, but it isn't available for the CF. While this would be fine if I could call AppDomain.CurrentDomain.GetAssemblies() , I can't do that either on the CF. If there is no better way to solve this, is there any way to intercept the assembly loading process by the main exe, so I could maintain a list of the current assemblies loaded, even those that are directly referenced by my application? Thanks! Cauê
c#
reflection
compact-framework
types
runtime
null
open
BuildManager.GetType on the Compact Framework ( resolving a class name at runtime on all appdomain ) === Is there any way to search for a Type with only its type name in all application domain on the Compact Framework 2.0? Type.GetType's behavior needs one to specify the assembly name on where to look. BuildManager.GetType does exactly that, but it isn't available for the CF. While this would be fine if I could call AppDomain.CurrentDomain.GetAssemblies() , I can't do that either on the CF. If there is no better way to solve this, is there any way to intercept the assembly loading process by the main exe, so I could maintain a list of the current assemblies loaded, even those that are directly referenced by my application? Thanks! Cauê
0
1,153,117
07/20/2009 11:51:50
131,456
07/01/2009 03:52:35
37
1
php non-ssl login / authentication options?
I am using PHP and the codeigniter framework for a project I am working on, and require a user login/authentication system. For now I'd rather not use SSL (might be overkill and the fact that I am using shared hosting discourages this). I have considered using openID but decided that since my target audience is generally not technical, it might scare users away (not to mention that it requires mirroring of login information etc.). I know that I could write a hash based authentication (such as sha1) since there is no sensitive data being passed (I'd compare the level of sensitivity to that of stackoverflow). That being said, before making a custom solution, it would be nice to know if there are any good libraries or packages out there that you have used to provide semi-secure authentication? I am new to codeigniter, but something that integrates well with it would be preferable. Any ideas? (i'm open to criticism on my approach and open to suggestions as to why I might be crazy not to just use ssl). Thanks in advance.
php
authentication
codeigniter
ssl
null
07/12/2012 12:15:01
not constructive
php non-ssl login / authentication options? === I am using PHP and the codeigniter framework for a project I am working on, and require a user login/authentication system. For now I'd rather not use SSL (might be overkill and the fact that I am using shared hosting discourages this). I have considered using openID but decided that since my target audience is generally not technical, it might scare users away (not to mention that it requires mirroring of login information etc.). I know that I could write a hash based authentication (such as sha1) since there is no sensitive data being passed (I'd compare the level of sensitivity to that of stackoverflow). That being said, before making a custom solution, it would be nice to know if there are any good libraries or packages out there that you have used to provide semi-secure authentication? I am new to codeigniter, but something that integrates well with it would be preferable. Any ideas? (i'm open to criticism on my approach and open to suggestions as to why I might be crazy not to just use ssl). Thanks in advance.
4
4,807,490
01/26/2011 17:04:06
408,079
08/01/2010 19:04:15
771
62
How to Get attributes list from ArrayList of objects
Suppose I have an object that looks like: public class Obj { String foo; String bar; } If I create an arraylist of type Obj and populate it, is there a way I can return a list of all the objects in the array's foo attribute from the ArrayList?
java
arraylist
null
null
null
null
open
How to Get attributes list from ArrayList of objects === Suppose I have an object that looks like: public class Obj { String foo; String bar; } If I create an arraylist of type Obj and populate it, is there a way I can return a list of all the objects in the array's foo attribute from the ArrayList?
0
4,917,864
02/07/2011 03:32:09
200,025
10/31/2009 03:17:04
89
1
Best way to store 'extra' user data in MySQL?
I'm adding a new feature to my user module for my CMS and I've hit a road block... Or I guess, a fork in the road, and I wanted to get some opinions from stackoverflow before I commit to anything. Basically I want to allow admins to add new, 'extra' user fields that users can fill out on registration, edit in their profile, and/or be controlled by other modules. An example of this would be a birthday field, a lengthy description of themselves, or maybe points the user has earned on the site. Needless to say, the data stored will be varied and can range from large amounts of text, to a small integer value. To make matters worse - I want there to be the option to search this data. With that out of the way - what would be the best way to do this? Right now I'm leaning towards having a table with the following columns. userid, refFieldID, varchar, tinyint, smallint, int, text, date, datetime, etc. I would prefer this as it would make searching significantly faster, and the reference table (Which holds all of the field's data, such as the name of the field, whether it's searchable or not, etc.) can reference which column should be used when storing data for that field. The other idea, which was suggested to me and I've seen used in other solutions (vBulletin being one, although I have seen others whose names escape me at the moment), where you just have the userid, reference id, and a medtext field. I don't know enough about MySQL to say this with any certainty, but this method seems like it would be slower to search, and possibly have a larger overhead. So which method would be 'best'? Is there another method I'm missing? Whichever method I end up using, it needs to be fast to search, not massive (A tiny bit of overhead is fine), and preferably allow complex queries used against the data.
mysql
registration
user-accounts
null
null
null
open
Best way to store 'extra' user data in MySQL? === I'm adding a new feature to my user module for my CMS and I've hit a road block... Or I guess, a fork in the road, and I wanted to get some opinions from stackoverflow before I commit to anything. Basically I want to allow admins to add new, 'extra' user fields that users can fill out on registration, edit in their profile, and/or be controlled by other modules. An example of this would be a birthday field, a lengthy description of themselves, or maybe points the user has earned on the site. Needless to say, the data stored will be varied and can range from large amounts of text, to a small integer value. To make matters worse - I want there to be the option to search this data. With that out of the way - what would be the best way to do this? Right now I'm leaning towards having a table with the following columns. userid, refFieldID, varchar, tinyint, smallint, int, text, date, datetime, etc. I would prefer this as it would make searching significantly faster, and the reference table (Which holds all of the field's data, such as the name of the field, whether it's searchable or not, etc.) can reference which column should be used when storing data for that field. The other idea, which was suggested to me and I've seen used in other solutions (vBulletin being one, although I have seen others whose names escape me at the moment), where you just have the userid, reference id, and a medtext field. I don't know enough about MySQL to say this with any certainty, but this method seems like it would be slower to search, and possibly have a larger overhead. So which method would be 'best'? Is there another method I'm missing? Whichever method I end up using, it needs to be fast to search, not massive (A tiny bit of overhead is fine), and preferably allow complex queries used against the data.
0
4,737,416
01/19/2011 15:54:46
112,976
05/27/2009 08:05:49
69
4
Viadeo share link
I am trying to find the link to share a link on Viadeo (the same type as a share on twitter/facebook link). I did not find on Google... Thanks
hyperlink
social-networking
share
social
null
11/23/2011 15:42:27
off topic
Viadeo share link === I am trying to find the link to share a link on Viadeo (the same type as a share on twitter/facebook link). I did not find on Google... Thanks
2
11,653,013
07/25/2012 15:17:49
1,528,447
07/16/2012 09:33:33
1
0
Android:Working with Image-Gallery
Iam working with gallery in my project. I Have to show the images from sdcard in grid view, when user selects a image from gallery it should be saved to the server with text given by him. Can please Any one help me how can i Achieve this? Thanking you in Advance..
android
gridview
gallery
null
null
07/26/2012 02:21:13
not a real question
Android:Working with Image-Gallery === Iam working with gallery in my project. I Have to show the images from sdcard in grid view, when user selects a image from gallery it should be saved to the server with text given by him. Can please Any one help me how can i Achieve this? Thanking you in Advance..
1
2,407,095
03/09/2010 06:40:38
105,066
05/11/2009 23:43:17
1,278
37
how to use ssh from Windows cmd
How can I use ssh & scp from the Windows cmd.exe? I remember I installed a program in the past that let me do this but can't remember now what it was. (I don't mean putty)
windows
ssh
cmd
scp
null
06/02/2011 00:49:20
off topic
how to use ssh from Windows cmd === How can I use ssh & scp from the Windows cmd.exe? I remember I installed a program in the past that let me do this but can't remember now what it was. (I don't mean putty)
2
11,064,699
06/16/2012 15:20:27
1,383,359
05/09/2012 00:13:59
430
0
Clojure Long Literal String
## What I want I some programming langauges have a feature for creating multiline, literal strings, for example: some stuff ... <<EOF this is all part of the string as is this \ is a literal slash \n is a literal \ followed by a literal n the string ends on the next line EOF Question: Does Clojure have something similar to this? I realize that " handles multiline fine, but I wan tit to also properly handle \ as a literal \. Thanks!
clojure
null
null
null
null
null
open
Clojure Long Literal String === ## What I want I some programming langauges have a feature for creating multiline, literal strings, for example: some stuff ... <<EOF this is all part of the string as is this \ is a literal slash \n is a literal \ followed by a literal n the string ends on the next line EOF Question: Does Clojure have something similar to this? I realize that " handles multiline fine, but I wan tit to also properly handle \ as a literal \. Thanks!
0
9,267,278
02/13/2012 20:08:43
1,207,623
02/13/2012 19:47:27
1
0
using the DOS start command when passed arguments have quotes
I have a question about the DOS start command. I have already read this topic: Using the DOS “start” command with parameters passed to the started program http://stackoverflow.com/questions/154075/using-the-dos-start-command-with-parameters-passed-to-the-started-program but my question is a little different. I have this problem: I need to pass paths that need to be quoted. For example, if path have no quotes this works fine: start "" app.exe -option c:\myapp\myfile.txt but if path have double quotes it doesn't works. I have this line in my BATCH file: start "" myapp.exe -option %mypath% and when %mypath% contains double quotes (paths that have spaces or other characters in names) the start command returns very strange results. Thanks Sandro
command-line
null
null
null
null
null
open
using the DOS start command when passed arguments have quotes === I have a question about the DOS start command. I have already read this topic: Using the DOS “start” command with parameters passed to the started program http://stackoverflow.com/questions/154075/using-the-dos-start-command-with-parameters-passed-to-the-started-program but my question is a little different. I have this problem: I need to pass paths that need to be quoted. For example, if path have no quotes this works fine: start "" app.exe -option c:\myapp\myfile.txt but if path have double quotes it doesn't works. I have this line in my BATCH file: start "" myapp.exe -option %mypath% and when %mypath% contains double quotes (paths that have spaces or other characters in names) the start command returns very strange results. Thanks Sandro
0
4,189,980
11/15/2010 23:47:46
410,273
08/04/2010 00:51:12
45
2
how do I use cygwin to rsync files?
How do I do that? Instructions :)
mysql
linux
cygwin
rsync
file-transfer
11/16/2010 01:06:16
off topic
how do I use cygwin to rsync files? === How do I do that? Instructions :)
2
10,392,150
05/01/2012 00:22:57
1,344,281
04/19/2012 14:40:25
10
0
Activity crashes after button click
I currently have this in and android activity but when the button is clicked the application crashes. I cant find what;s wrong. public class SearchActivity extends Activity implements OnClickListener{ private ListView recipes; Intent intent; Button button; EditText input; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.searchlist); button = (Button)findViewById(R.id.submit); input = (EditText)findViewById(R.id.recipeName); //recipes = (ListView)findViewById(R.id.recipes); //recipes.setAdapter(new ArrayAdapter<String> (this, R.layout.main, getResources().getStringArray(R.array.BaconSandwich))); button.setOnClickListener(this); } public void onClick(View clicked) { if(clicked.getId() == R.id.submit) { //recipes = (ListView)findViewById(R.array.recipes); String value = input.getText().toString(); Toast.makeText(this, value, Toast.LENGTH_SHORT).show(); Intent i = new Intent(this, RecipeMethodActivity.class); SearchActivity.this.startActivity(i); } } } The activity is set in the android manifest and the next activity is blank The log cat message I get is: Error in RecipeMethodActivity onCreate().
android
android-activity
oncreate
null
null
null
open
Activity crashes after button click === I currently have this in and android activity but when the button is clicked the application crashes. I cant find what;s wrong. public class SearchActivity extends Activity implements OnClickListener{ private ListView recipes; Intent intent; Button button; EditText input; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.searchlist); button = (Button)findViewById(R.id.submit); input = (EditText)findViewById(R.id.recipeName); //recipes = (ListView)findViewById(R.id.recipes); //recipes.setAdapter(new ArrayAdapter<String> (this, R.layout.main, getResources().getStringArray(R.array.BaconSandwich))); button.setOnClickListener(this); } public void onClick(View clicked) { if(clicked.getId() == R.id.submit) { //recipes = (ListView)findViewById(R.array.recipes); String value = input.getText().toString(); Toast.makeText(this, value, Toast.LENGTH_SHORT).show(); Intent i = new Intent(this, RecipeMethodActivity.class); SearchActivity.this.startActivity(i); } } } The activity is set in the android manifest and the next activity is blank The log cat message I get is: Error in RecipeMethodActivity onCreate().
0
9,575,258
03/05/2012 22:48:22
1,250,924
03/05/2012 22:25:55
1
0
Loading HBase EndpointCoprocessor
When I look for resources on how to load coprocessors, I see examples using RegionObservers, but not much for loading EndpointCoprocessors. For example, the following consistently produces: org.apache.hadoop.hbase.ipc.HBaseRPC$UnknownProtocolException: No matching handler for protocol <redacted>.ColumnStatusProtocol in region ... calling code: results = tbl.coprocessorExec(ColumnStatusProtocol.class, scan.getStartRow(), scan.getStopRow(), new Call<ColumnStatusProtocol, String>() { @Override public String call(ColumnStatusProtocol t) throws IOException { return t.status(Bytes.toBytes(FAMILY), Bytes.toBytes(QUALIFIER)); } } ); My table description hbase(main):006:0> describe 'cTest' DESCRIPTION ENABLED {NAME => 'cTest', coprocessor$1 => 'hdfs://<redacted> true .com:54310/coprocessors/GeotestCoprocessor.jar|<redacted>. ColumnStatusEndpoint|1001|', FAMILIES => [{NAME => 'ip', BLOO MFILTER => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '3', COM PRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', BLO CKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]} 1 row(s) in 0.0760 seconds The regionserver log seems to show everything as hunky dory 2012-03-05 17:54:46,508 INFO org.apache.hadoop.hbase.coprocessor.CoprocessorHost: Class <redacted>.ColumnStatusEndpoint needs to be loaded from a file - hdfs://<redacted>.com:54310/coprocessors/GeotestCoprocessor.jar. 2012-03-05 17:54:46,544 DEBUG org.apache.hadoop.hbase.regionserver.HRegion: Registered protocol handler: region=cTest,,1330984903434.16582084796ed2d9618b4d30288cd690. protocol=<redacted>.ColumnStatusProtocol 2012-03-05 17:54:46,545 INFO org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost: Load coprocessor <redacted>.ColumnStatusEndpoint from HTD of cTest successfully. 2012-03-05 17:54:46,545 DEBUG org.apache.hadoop.hbase.regionserver.HRegion: Instantiated cTest,,1330984903434.16582084796ed2d9618b4d30288cd690. 2012-03-05 17:54:46,558 DEBUG org.apache.hadoop.hbase.regionserver.Store: loaded hdfs://<redacted>.com:54310/hbase/cTest/16582084796ed2d9618b4d30288cd690/ip/34f93ae2919246aa9d16df39d62cce6e, isReference=false, isBulkLoadResult=false, seqid=38, majorCompaction=false Do I need to reference the ColumnStatusProtocol Interface in some fashion? I tried comma separated list in coprocessor$1 but that doesn't work. If I add it as a second coprocessor it throws an exception trying to instantiate it (duh.) If I dont reference I get the UnknownProtocol errors in my client. Any hbase gurus out there care to help me out? Thanks!
java
hadoop
hbase
null
null
03/06/2012 18:22:07
too localized
Loading HBase EndpointCoprocessor === When I look for resources on how to load coprocessors, I see examples using RegionObservers, but not much for loading EndpointCoprocessors. For example, the following consistently produces: org.apache.hadoop.hbase.ipc.HBaseRPC$UnknownProtocolException: No matching handler for protocol <redacted>.ColumnStatusProtocol in region ... calling code: results = tbl.coprocessorExec(ColumnStatusProtocol.class, scan.getStartRow(), scan.getStopRow(), new Call<ColumnStatusProtocol, String>() { @Override public String call(ColumnStatusProtocol t) throws IOException { return t.status(Bytes.toBytes(FAMILY), Bytes.toBytes(QUALIFIER)); } } ); My table description hbase(main):006:0> describe 'cTest' DESCRIPTION ENABLED {NAME => 'cTest', coprocessor$1 => 'hdfs://<redacted> true .com:54310/coprocessors/GeotestCoprocessor.jar|<redacted>. ColumnStatusEndpoint|1001|', FAMILIES => [{NAME => 'ip', BLOO MFILTER => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '3', COM PRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', BLO CKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]} 1 row(s) in 0.0760 seconds The regionserver log seems to show everything as hunky dory 2012-03-05 17:54:46,508 INFO org.apache.hadoop.hbase.coprocessor.CoprocessorHost: Class <redacted>.ColumnStatusEndpoint needs to be loaded from a file - hdfs://<redacted>.com:54310/coprocessors/GeotestCoprocessor.jar. 2012-03-05 17:54:46,544 DEBUG org.apache.hadoop.hbase.regionserver.HRegion: Registered protocol handler: region=cTest,,1330984903434.16582084796ed2d9618b4d30288cd690. protocol=<redacted>.ColumnStatusProtocol 2012-03-05 17:54:46,545 INFO org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost: Load coprocessor <redacted>.ColumnStatusEndpoint from HTD of cTest successfully. 2012-03-05 17:54:46,545 DEBUG org.apache.hadoop.hbase.regionserver.HRegion: Instantiated cTest,,1330984903434.16582084796ed2d9618b4d30288cd690. 2012-03-05 17:54:46,558 DEBUG org.apache.hadoop.hbase.regionserver.Store: loaded hdfs://<redacted>.com:54310/hbase/cTest/16582084796ed2d9618b4d30288cd690/ip/34f93ae2919246aa9d16df39d62cce6e, isReference=false, isBulkLoadResult=false, seqid=38, majorCompaction=false Do I need to reference the ColumnStatusProtocol Interface in some fashion? I tried comma separated list in coprocessor$1 but that doesn't work. If I add it as a second coprocessor it throws an exception trying to instantiate it (duh.) If I dont reference I get the UnknownProtocol errors in my client. Any hbase gurus out there care to help me out? Thanks!
3
8,486,415
12/13/2011 08:49:57
746,293
05/10/2011 06:48:23
13
0
Facebook redirection to site url rather than the app url
I've having problem with Facebook redirection, when I login to facebook redirected from getLoginUrl(), I sends me to the site url rather than the app url. When I check the redirect uri in the URL, it is the site url. I used the code below to change the URL, $loginUrl = $facebook->getLoginUrl(array( 'scope' => 'read_stream,publish_stream,user_photos,friends_photos', 'redirect_uri' => 'http://apps.facebook.com/myappname' )); But now rather than redirecting me to Facebook login page for my app it gives me an error as, An error occurred with [App Name]. Please try again later. I don't know where I commited mistake. Would be glad for a response. Thanks in advance :) Prakash
facebook
facebook-graph-api
facebook-php-sdk
null
null
null
open
Facebook redirection to site url rather than the app url === I've having problem with Facebook redirection, when I login to facebook redirected from getLoginUrl(), I sends me to the site url rather than the app url. When I check the redirect uri in the URL, it is the site url. I used the code below to change the URL, $loginUrl = $facebook->getLoginUrl(array( 'scope' => 'read_stream,publish_stream,user_photos,friends_photos', 'redirect_uri' => 'http://apps.facebook.com/myappname' )); But now rather than redirecting me to Facebook login page for my app it gives me an error as, An error occurred with [App Name]. Please try again later. I don't know where I commited mistake. Would be glad for a response. Thanks in advance :) Prakash
0
11,287,475
07/02/2012 03:25:58
1,495,049
07/02/2012 03:12:53
1
0
Como utilizar el metodo Seek(); en la clase javazoom.jlgui
As I can do seek in java. Well I use javazoom.jlgui and comes with a method for doing seek the method is this: "seek (long value);" Sorry for the ignorance :) now is that I'm starting. My questions are :) Mathematical operations is achieved as Math.round (); multiply or divide? It uses a listener? Use Mapping? Methods of another class? It would be an honor if you could help me, brothers :) Sorry for my bad english.
java
swing
gui
playback
seek
07/03/2012 02:47:11
not a real question
Como utilizar el metodo Seek(); en la clase javazoom.jlgui === As I can do seek in java. Well I use javazoom.jlgui and comes with a method for doing seek the method is this: "seek (long value);" Sorry for the ignorance :) now is that I'm starting. My questions are :) Mathematical operations is achieved as Math.round (); multiply or divide? It uses a listener? Use Mapping? Methods of another class? It would be an honor if you could help me, brothers :) Sorry for my bad english.
1
5,807,105
04/27/2011 16:03:04
39,677
11/03/2008 21:48:03
9,592
5
Can I create a html page with jquery just in firefox w/o saving to a file?
Can I create a html page with jquery just in firefox w/o saving to a file?
javascript
jquery
firefox
null
null
04/29/2011 14:54:48
not a real question
Can I create a html page with jquery just in firefox w/o saving to a file? === Can I create a html page with jquery just in firefox w/o saving to a file?
1
2,902,109
05/25/2010 04:57:07
331,914
05/04/2010 00:37:59
6
0
iPhone WebApp Question
I have this code- /** Save the web view as a screenshot. Currently only supports saving to the photo library. */ - (void)saveScreenshot:(NSArray*)arguments withDict:(NSDictionary*)options { CGRect screenRect = [[UIScreen mainScreen] bounds]; CGRect imageRect = CGRectMake(0, 0, CGRectGetWidth(screenRect), CGRectGetHeight(screenRect)); UIGraphicsBeginImageContext(imageRect.size); [webView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImage, self, nil, nil); UIAlertView *alert= [[UIAlertView alloc] initWithTitle:nil message:@"Image Saved" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; } This is for saving whatever you drew in my app. How would I add the button for this in the HTML code. How do i call from it?
javascript
iphone
objective-c
null
null
null
open
iPhone WebApp Question === I have this code- /** Save the web view as a screenshot. Currently only supports saving to the photo library. */ - (void)saveScreenshot:(NSArray*)arguments withDict:(NSDictionary*)options { CGRect screenRect = [[UIScreen mainScreen] bounds]; CGRect imageRect = CGRectMake(0, 0, CGRectGetWidth(screenRect), CGRectGetHeight(screenRect)); UIGraphicsBeginImageContext(imageRect.size); [webView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImage, self, nil, nil); UIAlertView *alert= [[UIAlertView alloc] initWithTitle:nil message:@"Image Saved" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; } This is for saving whatever you drew in my app. How would I add the button for this in the HTML code. How do i call from it?
0
8,259,078
11/24/2011 15:01:49
1,003,495
10/19/2011 15:32:08
9
0
Set position of an object in a view
Is it possible to set the position and size of an object in an uiview programatically. for example if the view is portrait y want a webview to be in position 0,0 and size 100x100, but when it is in portrait I want to put that webview in another place and resize it. can I do this with CGRectMake ? Thanks
iphone
objective-c
xcode
ipad
uiview
11/25/2011 00:05:38
not a real question
Set position of an object in a view === Is it possible to set the position and size of an object in an uiview programatically. for example if the view is portrait y want a webview to be in position 0,0 and size 100x100, but when it is in portrait I want to put that webview in another place and resize it. can I do this with CGRectMake ? Thanks
1
6,853,728
07/28/2011 03:15:20
637,034
02/28/2011 01:56:34
80
4
Specifics, books or open source projects about p2p algorithms?
I am planning to build a `p2p micro-blog community without central server`, looking for learning materials about p2p algorithms, open sources projects will help a lot.
algorithm
open-source
p2p
null
null
08/01/2012 02:54:35
not constructive
Specifics, books or open source projects about p2p algorithms? === I am planning to build a `p2p micro-blog community without central server`, looking for learning materials about p2p algorithms, open sources projects will help a lot.
4
1,507,972
10/02/2009 06:17:46
95,974
04/25/2009 15:18:38
40
0
How to add new entity to main table's view from pop up view in iPhone?
I am working on an iPhone application but something strange happen. I think I can ask you for advice. I implemented a TableView and a custom view as a create new object form. I make the custom view slide up when user tab 'Add' button in the tool bar in TableView like the code below: - (void)slide_up_form:(id)sender { CustomViewController *controller = [[CustomViewController alloc] init]; // Assign this controller to use add_entity: message to TableView. controller.parent = self; [self presentModalViewController:controller animated:TRUE]; } // To update TableView presentation. -(void)add_block:(Block *)newBlock { [blockArray insertObject:newBlock atIndex:0]; NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; [self.tblCameraList insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone]; [self.tblCameraList scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:YES]; } and in custom view, user fill the form and tab 'Save' button. So I did save the entity to Core data. and need to update the TableView with new object, so I code following statement in custom view: @synthesize parent; - (void)save_block:(id)sender { // save entity. [self.parent add_block:newBlock]; // Slide down the custom view and show the TableView. [[self parentViewController] dismissModalViewControllerAnimated:TRUE]; } I have tested this already in simulator and iPhone. when user tab 'Save' button, the application saved the new entity, but it doesn't update TableView with new entry. Could you give your advice to solve this problem?
iphone
core
data
tableview
null
null
open
How to add new entity to main table's view from pop up view in iPhone? === I am working on an iPhone application but something strange happen. I think I can ask you for advice. I implemented a TableView and a custom view as a create new object form. I make the custom view slide up when user tab 'Add' button in the tool bar in TableView like the code below: - (void)slide_up_form:(id)sender { CustomViewController *controller = [[CustomViewController alloc] init]; // Assign this controller to use add_entity: message to TableView. controller.parent = self; [self presentModalViewController:controller animated:TRUE]; } // To update TableView presentation. -(void)add_block:(Block *)newBlock { [blockArray insertObject:newBlock atIndex:0]; NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; [self.tblCameraList insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone]; [self.tblCameraList scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:YES]; } and in custom view, user fill the form and tab 'Save' button. So I did save the entity to Core data. and need to update the TableView with new object, so I code following statement in custom view: @synthesize parent; - (void)save_block:(id)sender { // save entity. [self.parent add_block:newBlock]; // Slide down the custom view and show the TableView. [[self parentViewController] dismissModalViewControllerAnimated:TRUE]; } I have tested this already in simulator and iPhone. when user tab 'Save' button, the application saved the new entity, but it doesn't update TableView with new entry. Could you give your advice to solve this problem?
0
308,827
11/21/2008 13:49:15
23,084
09/27/2008 23:21:31
48
6
SOAP Message Envelope
Does anybody know if there is a way using java to pass all the XML content of SOAP Envelope to a String? Thanks,
soap
message
java
null
null
null
open
SOAP Message Envelope === Does anybody know if there is a way using java to pass all the XML content of SOAP Envelope to a String? Thanks,
0
4,135,529
11/09/2010 15:43:05
258,689
01/25/2010 18:56:16
126
5
Can someone explain how to use FastTags
There are two ways to create customs tags with the play framework. 1. By defining a groovy template in app/view/tags 2. Directly in pure java by having a class extend FastTags The latest is NOT documented. Please help.
java
playframework
null
null
null
null
open
Can someone explain how to use FastTags === There are two ways to create customs tags with the play framework. 1. By defining a groovy template in app/view/tags 2. Directly in pure java by having a class extend FastTags The latest is NOT documented. Please help.
0
9,385,396
02/21/2012 21:25:21
1,162,541
01/21/2012 16:57:42
101
0
User suspended for 6 days in Google Apps
We're using Google Apps for e-mail for a large number of clients. It's very convenient and we've had little issues. However, we now suddenly have a major problem. An important e-mail addresses was suspended 'due to abuse', with no option to restore this. In the [related help document][1], Google explains: > As a Google Apps account administrator, you can restore some suspended > user accounts. While you can restore users that you (or another > administrator) suspended, you can’t restore users that were > automatically suspended for exceeding any account limits or any user > with an abusive account status. If you can’t restore a user, they > might remain locked out of the account for 1 - 24 hours. Contact > Support if you need immediate assistance. That sounds fair. The limits appear not be be reached (user uses 0% of the account and does not send a whole lot of mail, but you never know what massive e-mail campaign do-it-yourself might undertake). So assuming this was a client-related issue, we waited 1-24 hours. In fact, we waited 6 days. But nothing has happened. The account remains suspended and can not be unsuspended by us. As recommended by other threads, I: - Changed the password of the user - Tried the 'unlock captcha' option - Tried logging in normally through webmail and then type the captcha (but it tells me account is disabled without showing a captcha). So the account remains suspended, which is a huge issue. I have tried to [contact support][2], but all the links lead to online documents, and nothing to a way to contact Google, unless you are a paid user. The forums are full of people asking for this kind of thing, sometimes being attended, and sometimes not. Does anybody know a way to get this solved on the short term? [1]: http://support.google.com/a/bin/answer.py?hl=en&answer=1110339 [2]: http://support.google.com/a/bin/static.py?hl=en&page=contacting_support.html
email
google
null
null
null
02/21/2012 22:04:38
off topic
User suspended for 6 days in Google Apps === We're using Google Apps for e-mail for a large number of clients. It's very convenient and we've had little issues. However, we now suddenly have a major problem. An important e-mail addresses was suspended 'due to abuse', with no option to restore this. In the [related help document][1], Google explains: > As a Google Apps account administrator, you can restore some suspended > user accounts. While you can restore users that you (or another > administrator) suspended, you can’t restore users that were > automatically suspended for exceeding any account limits or any user > with an abusive account status. If you can’t restore a user, they > might remain locked out of the account for 1 - 24 hours. Contact > Support if you need immediate assistance. That sounds fair. The limits appear not be be reached (user uses 0% of the account and does not send a whole lot of mail, but you never know what massive e-mail campaign do-it-yourself might undertake). So assuming this was a client-related issue, we waited 1-24 hours. In fact, we waited 6 days. But nothing has happened. The account remains suspended and can not be unsuspended by us. As recommended by other threads, I: - Changed the password of the user - Tried the 'unlock captcha' option - Tried logging in normally through webmail and then type the captcha (but it tells me account is disabled without showing a captcha). So the account remains suspended, which is a huge issue. I have tried to [contact support][2], but all the links lead to online documents, and nothing to a way to contact Google, unless you are a paid user. The forums are full of people asking for this kind of thing, sometimes being attended, and sometimes not. Does anybody know a way to get this solved on the short term? [1]: http://support.google.com/a/bin/answer.py?hl=en&answer=1110339 [2]: http://support.google.com/a/bin/static.py?hl=en&page=contacting_support.html
2
398,260
12/29/2008 18:22:52
18,853
09/19/2008 13:42:50
122
28
crystal reports 11 : how to handle or trim special characters
In my crystal report, I noticed one of the fields being pulled from a table has special characters. More specifically carriage returns and tabs. Is there a way to either strip this out so it doesn't show up blank in my reports? thanks in advance
crystal-reports
null
null
null
null
null
open
crystal reports 11 : how to handle or trim special characters === In my crystal report, I noticed one of the fields being pulled from a table has special characters. More specifically carriage returns and tabs. Is there a way to either strip this out so it doesn't show up blank in my reports? thanks in advance
0
11,659,445
07/25/2012 22:12:28
1,492,028
06/29/2012 19:38:26
1
0
How to correctly handle db time value with json and javascript/jquery
Does anyone know how to parse a json timespan object? I'd like to return the UTC timespan to my view, and then convert it to the local client time, but I haven't found any reference for how to do that. I'm using mvc so I've got this model: public class TimeSpanModel { public TimeSpan StartTime { get; set; } public TimeSpanModel() { this.StartTime = DateTime.UtcNow.TimeOfDay; } } and in my controller I return this model to my view like this: public ActionResult GetTimeSpanInfo() { TimeSpanModel tsm= new TimeSpanModel (); return Json(tsm); } I'm making the call like this from the view: $.ajax({ type: 'POST', url: '@Url.Content("~/Controller/GetTimeSpanInfo")', success: function (data) { alert(data.StartTime); var dt = new Date(data.StartTime); alert(dt.toString()); } }); but in the first alert box, I only see this: [object Object] so I tried to convert the timespan to a Date, but in the second alert box, I get Invalid Date. Will I have to convert the timespan to a string, and then concatenate that string with some odd date that I don't need in order to create a 'valid' date and then convert it to local time, and then extract the time from that? Or is there an easier, more elegant way of working with TimeSpans, or just the Time portion of a datetime value? Thanks for any help. P.S. It may seem silly to get the UTCnow time only to convert it to local time, but I will eventually get this UTC time value from a db table - type time(0). The method I posted above is merely a shorter way to test how to handle this value once I get it from the db and then set the value in the model.
json
timespan
null
null
null
null
open
How to correctly handle db time value with json and javascript/jquery === Does anyone know how to parse a json timespan object? I'd like to return the UTC timespan to my view, and then convert it to the local client time, but I haven't found any reference for how to do that. I'm using mvc so I've got this model: public class TimeSpanModel { public TimeSpan StartTime { get; set; } public TimeSpanModel() { this.StartTime = DateTime.UtcNow.TimeOfDay; } } and in my controller I return this model to my view like this: public ActionResult GetTimeSpanInfo() { TimeSpanModel tsm= new TimeSpanModel (); return Json(tsm); } I'm making the call like this from the view: $.ajax({ type: 'POST', url: '@Url.Content("~/Controller/GetTimeSpanInfo")', success: function (data) { alert(data.StartTime); var dt = new Date(data.StartTime); alert(dt.toString()); } }); but in the first alert box, I only see this: [object Object] so I tried to convert the timespan to a Date, but in the second alert box, I get Invalid Date. Will I have to convert the timespan to a string, and then concatenate that string with some odd date that I don't need in order to create a 'valid' date and then convert it to local time, and then extract the time from that? Or is there an easier, more elegant way of working with TimeSpans, or just the Time portion of a datetime value? Thanks for any help. P.S. It may seem silly to get the UTCnow time only to convert it to local time, but I will eventually get this UTC time value from a db table - type time(0). The method I posted above is merely a shorter way to test how to handle this value once I get it from the db and then set the value in the model.
0
4,868,966
02/01/2011 23:01:13
435,645
08/31/2010 07:01:49
370
0
C++ mysterious code. any security issue?
foo(foo &afoo): va(foo,va++){ } What is the security issue or problem of this code snippet.
c++
null
null
null
null
02/01/2011 23:43:41
not a real question
C++ mysterious code. any security issue? === foo(foo &afoo): va(foo,va++){ } What is the security issue or problem of this code snippet.
1
313,150
11/24/2008 00:10:49
16,082
09/17/2008 14:35:21
564
16
Why have your software development projects failed?
I am looking for war stories about why software projects you were personally involved with failed. The more disasterous and costly the failure, the better. Good responses should include the size of the project (size of team, length of time, etc) and an answer more specific than 'insufficient planning'. Bonus points for a well-thought out idea on what could have been done differently to save the project. Thanks a lot!
project-management
projects
null
null
null
11/08/2011 04:28:23
off topic
Why have your software development projects failed? === I am looking for war stories about why software projects you were personally involved with failed. The more disasterous and costly the failure, the better. Good responses should include the size of the project (size of team, length of time, etc) and an answer more specific than 'insufficient planning'. Bonus points for a well-thought out idea on what could have been done differently to save the project. Thanks a lot!
2
11,739,485
07/31/2012 11:51:44
1,565,555
07/31/2012 11:27:07
1
0
Personal info of users in application and external sites
I am writing to you with the following question: We are developing an application alike real-quiz with prizes from our sponsors. They provide us questions for the quiz, or equal similar matters of action - watching videos, listening to the audio, the passage of a small flash games, etc. Different kinds of valuable gifts will be randomly drawn among the users of the application.Drawing doesn't depend on user ratings. The only criterion - the more and more active actions& right answers - the more likely for user to grow in chance rank. The task of participants - answering questions - earn as much as possible equivalent to Facebook Credits, application inside currency. That's why, each participant would answer the questions in the application and to access more questions from the add, participants would buy access to them with Facebook Credits. In fact - our application will act as an intermediary between sponsors and users of social networking. The application will contain information about each of the quizzes and quiz itself. Next to each quiz will show the potential-current rating of each individual contest. More quizzes will be part of the external advertiser's site, so the user could click on a button that will redirect to an external site sponsor, which will contain additional quiz. As in the quiz, the application of social network, and the site will present actual power rankings, which will show the potential-current winner (one of them) the specific quiz, that is to be used to access the user and friends to participate in the quiz. So the question: would not it be a contradiction internal rules of Facebook transmission to an external site, which will be built is our piece of information about the user in the format: Name, Last Name and Avatar, as well as the names of Friends who take part in our quiz and Of course, do the quiz questions and they are the equivalent of (video, audio, flash, etc.)? After completing the quiz embedded in the block information on the number of points will be transferred back to the application of social network, which subsequently will be randomly drawing at the end of each quiz. To facilitate matters conceived hint system, and extra lives, which can be re-buy the inside currency of the application, which is completely equivalent of Facebook Credits, but entouraged for application design. Thus, all participants of the quiz application will be involved in the application as well as in social networks and buy more lives and tips, as well as open access to the new quizzes, and will go to external sites, which will use the same Facebook Credits for the above tips and re-buy lives to participate in additional units of the quiz. Maxim.
external
facebook-credits
userinfo
null
null
07/31/2012 13:14:45
off topic
Personal info of users in application and external sites === I am writing to you with the following question: We are developing an application alike real-quiz with prizes from our sponsors. They provide us questions for the quiz, or equal similar matters of action - watching videos, listening to the audio, the passage of a small flash games, etc. Different kinds of valuable gifts will be randomly drawn among the users of the application.Drawing doesn't depend on user ratings. The only criterion - the more and more active actions& right answers - the more likely for user to grow in chance rank. The task of participants - answering questions - earn as much as possible equivalent to Facebook Credits, application inside currency. That's why, each participant would answer the questions in the application and to access more questions from the add, participants would buy access to them with Facebook Credits. In fact - our application will act as an intermediary between sponsors and users of social networking. The application will contain information about each of the quizzes and quiz itself. Next to each quiz will show the potential-current rating of each individual contest. More quizzes will be part of the external advertiser's site, so the user could click on a button that will redirect to an external site sponsor, which will contain additional quiz. As in the quiz, the application of social network, and the site will present actual power rankings, which will show the potential-current winner (one of them) the specific quiz, that is to be used to access the user and friends to participate in the quiz. So the question: would not it be a contradiction internal rules of Facebook transmission to an external site, which will be built is our piece of information about the user in the format: Name, Last Name and Avatar, as well as the names of Friends who take part in our quiz and Of course, do the quiz questions and they are the equivalent of (video, audio, flash, etc.)? After completing the quiz embedded in the block information on the number of points will be transferred back to the application of social network, which subsequently will be randomly drawing at the end of each quiz. To facilitate matters conceived hint system, and extra lives, which can be re-buy the inside currency of the application, which is completely equivalent of Facebook Credits, but entouraged for application design. Thus, all participants of the quiz application will be involved in the application as well as in social networks and buy more lives and tips, as well as open access to the new quizzes, and will go to external sites, which will use the same Facebook Credits for the above tips and re-buy lives to participate in additional units of the quiz. Maxim.
2
5,782,306
04/25/2011 19:29:26
724,264
04/25/2011 19:29:26
1
0
Why isn't OpenGL used in the majority of today's blockbuster games?
My friend came up with this simple question: Why do the "big" titles of today almost all use DirectX, and not OpenGL? Are there specific technical reasons, or is it all Microsoft's marketing?
opengl
directx
null
null
null
04/25/2011 19:38:28
not constructive
Why isn't OpenGL used in the majority of today's blockbuster games? === My friend came up with this simple question: Why do the "big" titles of today almost all use DirectX, and not OpenGL? Are there specific technical reasons, or is it all Microsoft's marketing?
4
340,923
12/04/2008 15:13:45
36,614
11/11/2008 15:50:52
23
0
What is the most readable, appealing font?
besides Wingdings of course. I'm not talking programming font, but for design docs, documentation, web pages etc.. What wins??? Times New Roman 10pt, Arial 12pt, Verdana? Anyone have any science to that opinion you are about to post?
font
documentation
fonts
null
null
03/05/2012 15:20:07
off topic
What is the most readable, appealing font? === besides Wingdings of course. I'm not talking programming font, but for design docs, documentation, web pages etc.. What wins??? Times New Roman 10pt, Arial 12pt, Verdana? Anyone have any science to that opinion you are about to post?
2
4,264,453
11/24/2010 07:39:27
514,306
11/20/2010 07:58:40
91
9
What does it mean the button is _armed_?
What does it mean the button is _armed_?
swing
jbutton
null
null
null
null
open
What does it mean the button is _armed_? === What does it mean the button is _armed_?
0
2,741,441
04/29/2010 23:40:02
95,222
04/23/2009 22:32:54
118
5
Giving the script tag an ID
i came across a scenario where giving a `<script>` element an "ID" would solve a problem easily. However, after reading about the script tag at [w3schools][1] and [quirksmode][2], it seems doing so could have some unforeseen consequences. Has anyone come across any of these issues with modern browsers such as Chrome, Safari, FF3 up and IE 7 up? Thanks [1]: http://www.w3schools.com/TAGS/tag_script.asp "w3schools" [2]: http://www.quirksmode.org/js/placejs.html "quirksmode"
html
scripting
standards
null
null
null
open
Giving the script tag an ID === i came across a scenario where giving a `<script>` element an "ID" would solve a problem easily. However, after reading about the script tag at [w3schools][1] and [quirksmode][2], it seems doing so could have some unforeseen consequences. Has anyone come across any of these issues with modern browsers such as Chrome, Safari, FF3 up and IE 7 up? Thanks [1]: http://www.w3schools.com/TAGS/tag_script.asp "w3schools" [2]: http://www.quirksmode.org/js/placejs.html "quirksmode"
0
66,156
09/15/2008 19:46:47
9,501
09/15/2008 18:59:40
1
0
Who's Data Access Layer do you use for .NET?
We have grown our own DAL library, but are researching using a third party DAL - to relieve the maintenance overhead. I know that Microsoft and some others have written simple DALs - although Microsoft's doesn't seem to play well with Oracle databases. Any other suggestions? Or are we stuck with what we have?
.net
data-access-layer
null
null
null
null
open
Who's Data Access Layer do you use for .NET? === We have grown our own DAL library, but are researching using a third party DAL - to relieve the maintenance overhead. I know that Microsoft and some others have written simple DALs - although Microsoft's doesn't seem to play well with Oracle databases. Any other suggestions? Or are we stuck with what we have?
0
6,800,864
07/23/2011 13:59:42
632,951
02/24/2011 19:10:47
1,979
10
what rules does SQL Server use to determine which column/columns will the phantom clustered index be created on?
The Definitive Guide to Scaling out SQL Server 2005: > if we create a nonclustered index and don’t already have a clustered > index, SQL Server creates a “phantom” clustered index because > nonclustered indexes always point to clustered index keys. 1. What rules does SQL Server use to determine which column/columns will the phantom clustered index be created on? 2. If it is on the primary key of that table (quick guess), what rules does SQL Server use to determine which column/columns will the phantom clustered index be created on for a table without primary keys? (question targeted at any version of SQL Server 2005 and beyond)
sql-server
database
sql-server-2005
sql-server-2008
denali
11/12/2011 08:59:33
off topic
what rules does SQL Server use to determine which column/columns will the phantom clustered index be created on? === The Definitive Guide to Scaling out SQL Server 2005: > if we create a nonclustered index and don’t already have a clustered > index, SQL Server creates a “phantom” clustered index because > nonclustered indexes always point to clustered index keys. 1. What rules does SQL Server use to determine which column/columns will the phantom clustered index be created on? 2. If it is on the primary key of that table (quick guess), what rules does SQL Server use to determine which column/columns will the phantom clustered index be created on for a table without primary keys? (question targeted at any version of SQL Server 2005 and beyond)
2
10,346,891
04/27/2012 07:55:50
309,834
01/13/2009 12:14:25
753
8
How to use robocopy to copy directories on different domains
I want to copy a directory(abc) from domain1/user1 to domain2/user1. any idea how to do this.
copy
domain
teamcity
robocopy
null
04/30/2012 13:38:45
off topic
How to use robocopy to copy directories on different domains === I want to copy a directory(abc) from domain1/user1 to domain2/user1. any idea how to do this.
2
3,737,697
09/17/2010 17:52:08
129,001
06/25/2009 18:14:27
1,413
27
Difference between properties of an object showing in debugger vs proprties in Intellisense
When I inspect an object in the debugger, I see a lot more properties in the debugger than what is available in Intellisense or code. For example, the Page object in ASP.NET in the debugger shows a property RelativeFilePath which has a value. But when I try to use it in code, it doesn't exist. Why is that? I looked up the property RelativeFilePath in MSDN, it exists for mobile controls. Not sure why it shows up then in the debugger for a regular asp.net control.
.net
asp.net
visual-studio
visual-studio-2010
debugger
null
open
Difference between properties of an object showing in debugger vs proprties in Intellisense === When I inspect an object in the debugger, I see a lot more properties in the debugger than what is available in Intellisense or code. For example, the Page object in ASP.NET in the debugger shows a property RelativeFilePath which has a value. But when I try to use it in code, it doesn't exist. Why is that? I looked up the property RelativeFilePath in MSDN, it exists for mobile controls. Not sure why it shows up then in the debugger for a regular asp.net control.
0
10,923,730
06/06/2012 23:28:16
1,385,751
05/09/2012 22:12:30
13
0
Is there a way to define parametrized variables with DUP in x86 assembly?
Using x86 assembly, I need to define an array filled with incrementing values. Currently, I define it as an empty array and fill it at runtime by looping through it and setting a value I increment on each step. This looks something like this; myArray DB 10 DUP (0) ... xor ax, ax xor bx, bx mov cx, 10 initArray: mov myArray[bx], ax inc bx add ax, 43 loop initArray The increment value and the size of the array are both known before runtime, so I could do it by defining the values directly in the code, like this... myArray DB 0, 43, 86, 129, ... ...but that would take a while, especially with long arrays. Now for the question; I was wondering if there's a way to create such an array in assembly, like parametrized macros in C? An equivalent to "#define myArray(x) (x*43)" if you will.
arrays
string
assembly
macros
x86
null
open
Is there a way to define parametrized variables with DUP in x86 assembly? === Using x86 assembly, I need to define an array filled with incrementing values. Currently, I define it as an empty array and fill it at runtime by looping through it and setting a value I increment on each step. This looks something like this; myArray DB 10 DUP (0) ... xor ax, ax xor bx, bx mov cx, 10 initArray: mov myArray[bx], ax inc bx add ax, 43 loop initArray The increment value and the size of the array are both known before runtime, so I could do it by defining the values directly in the code, like this... myArray DB 0, 43, 86, 129, ... ...but that would take a while, especially with long arrays. Now for the question; I was wondering if there's a way to create such an array in assembly, like parametrized macros in C? An equivalent to "#define myArray(x) (x*43)" if you will.
0
5,180,931
03/03/2011 12:51:43
643,000
03/03/2011 12:51:43
1
0
give a recussive method for removing all the elements in a stack
give a recussive method for removing all the elements in a stack
java
null
null
null
null
03/03/2011 12:54:39
not a real question
give a recussive method for removing all the elements in a stack === give a recussive method for removing all the elements in a stack
1
10,291,829
04/24/2012 04:41:01
1,159,050
01/19/2012 17:17:17
97
0
flaskr css not rendering
I cloned the flaskr tutorial from github, created the database and ran >>> python flaskr.py The webage that loaded has no style, i.e the css page isn't contributing. i'm running ubuntu 12, firefox 11.
flask
null
null
null
null
05/22/2012 15:05:16
not a real question
flaskr css not rendering === I cloned the flaskr tutorial from github, created the database and ran >>> python flaskr.py The webage that loaded has no style, i.e the css page isn't contributing. i'm running ubuntu 12, firefox 11.
1
10,337,761
04/26/2012 16:43:28
241,510
12/31/2009 11:57:51
46
2
Software engineering p roblem challenges
What are good programming problem challenges? I am not looking for algorithmic problems (sorting etc). I am looking for problems more related to software engineering, design patterns, class design, test design, UI design. Challenges to write functions is fun, but I'd like to test and sharpen my software engineering skills.
challenge
null
null
null
null
04/26/2012 19:45:28
not constructive
Software engineering p roblem challenges === What are good programming problem challenges? I am not looking for algorithmic problems (sorting etc). I am looking for problems more related to software engineering, design patterns, class design, test design, UI design. Challenges to write functions is fun, but I'd like to test and sharpen my software engineering skills.
4
4,889,944
02/03/2011 18:12:04
602,033
02/03/2011 18:12:04
1
0
PHP/MySQL > Update field when link is clicked.
I need help with a simple code which will update a field (+1) in MySQL when a link on my website is clicked. This is for a "Report" button on my comments database. So I can see how many times a comment has been 'reported'. It's important that the script doesn't redirect or load a new page, just echos a message or a JS alert. Thanks for any help.
php
mysql
update
null
null
null
open
PHP/MySQL > Update field when link is clicked. === I need help with a simple code which will update a field (+1) in MySQL when a link on my website is clicked. This is for a "Report" button on my comments database. So I can see how many times a comment has been 'reported'. It's important that the script doesn't redirect or load a new page, just echos a message or a JS alert. Thanks for any help.
0
8,366,785
12/03/2011 09:31:34
998,627
10/17/2011 06:25:09
4
3
search and suggest with keywords with drop down in java script
I am using php and I have written the code for search and suggest. Like if i enter 're' in text box , it will give all the result start with re in drop down. Now what i want to display all the result with key words math and highlight them in search. Like if i enter 're' then it shud display reliance, reliacne capital, and so on with key highlight. and if i enter 'capital' word then it should return tata capital, reliace capital with capital highlight.(this search is word match search)
php
javascript
null
null
null
null
open
search and suggest with keywords with drop down in java script === I am using php and I have written the code for search and suggest. Like if i enter 're' in text box , it will give all the result start with re in drop down. Now what i want to display all the result with key words math and highlight them in search. Like if i enter 're' then it shud display reliance, reliacne capital, and so on with key highlight. and if i enter 'capital' word then it should return tata capital, reliace capital with capital highlight.(this search is word match search)
0
7,742,683
10/12/2011 15:37:36
204,268
11/05/2009 23:05:55
1
0
Winform - Force user to fill out form on startup
Thanks in advance for the help. I am primarily a web developer but have been tasked with creating a simple winforms application. I have the application complete with the exception of one part. This application will run on startup and prompt the user to enter a reason why they are using the machine. Is there an easy way to force the user to fill out this form before continuing. Basically I want disable everything (start menu, etc) until this form has been filled out and closed. Could I kill explorer.exe then restart? That seems kind of invasive to me. Thanks for the help, -zd
c#
winforms
null
null
null
null
open
Winform - Force user to fill out form on startup === Thanks in advance for the help. I am primarily a web developer but have been tasked with creating a simple winforms application. I have the application complete with the exception of one part. This application will run on startup and prompt the user to enter a reason why they are using the machine. Is there an easy way to force the user to fill out this form before continuing. Basically I want disable everything (start menu, etc) until this form has been filled out and closed. Could I kill explorer.exe then restart? That seems kind of invasive to me. Thanks for the help, -zd
0
1,865,002
12/08/2009 06:30:55
226,901
12/08/2009 05:44:45
1
0
UIPickerView with Multiline UILabel
I'm currently working on a program that populates a picker view dynamically from my Core Data set up. I have everything working data-wise but the problem i'm running into now is formatting on my labels. The picker is presented with it's own toolbar in an actionsheet with a button on the right side of the toolbar. It's initial state is with 2 dials visible. when the button is pressed it changes to 3 dials. <pre><code> - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { UILabel *pickerLabel = (UILabel *)view; CGSize limitSize = CGSizeMake(100.0f, 45.0f); CGSize textSize; CGRect labelRect; NSString *title = @""; switch (numberOfComponents){ case 2: { ...gets strings from fetched data (varying length from 4 to 20+) title = someString } case 3: { ...same as above but for the second set of data. title = someString } } textSize = [title sizeWithFont:[UIFont systemFontOfSize:14] constrainedToSize:limitSize lineBreakMode:UILineBreakModeWordWrap]; labelRect = CGRectMake(0, 0, textSize.width, textSize.height); NSLog(@"length:%i title:%@",[title length],title); NSLog(@"h:%f w:%f",textSize.height,textSize.width); if (pickerLabel == nil) { pickerLabel = [[[UILabel alloc] initWithFrame:labelRect] autorelease]; [pickerLabel setFont:[UIFont systemFontOfSize:14]]; [pickerLabel setBackgroundColor:[UIColor clearColor]]; [pickerLabel setLineBreakMode:UILineBreakModeWordWrap]; [pickerLabel setTextAlignment:UITextAlignmentCenter]; [pickerLabel setNumberOfLines:2]; } [pickerLabel setText:title]; return pickerLabel; } </code> i've manually set the row height at 32.0f. I'm getting very strange results in that some of the Labels in the second component are working perfectly. but others are not wrapping at all, and some are just showing as blank space. ie: Brussels sprout wraps fine (right component). but Milk and Cream doesn't display (only milk is visible) vegetables doesn't appear at all. Where am i going wrong in my code?
iphone
uipickerview
uilabel
uikit
objective-c
null
open
UIPickerView with Multiline UILabel === I'm currently working on a program that populates a picker view dynamically from my Core Data set up. I have everything working data-wise but the problem i'm running into now is formatting on my labels. The picker is presented with it's own toolbar in an actionsheet with a button on the right side of the toolbar. It's initial state is with 2 dials visible. when the button is pressed it changes to 3 dials. <pre><code> - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { UILabel *pickerLabel = (UILabel *)view; CGSize limitSize = CGSizeMake(100.0f, 45.0f); CGSize textSize; CGRect labelRect; NSString *title = @""; switch (numberOfComponents){ case 2: { ...gets strings from fetched data (varying length from 4 to 20+) title = someString } case 3: { ...same as above but for the second set of data. title = someString } } textSize = [title sizeWithFont:[UIFont systemFontOfSize:14] constrainedToSize:limitSize lineBreakMode:UILineBreakModeWordWrap]; labelRect = CGRectMake(0, 0, textSize.width, textSize.height); NSLog(@"length:%i title:%@",[title length],title); NSLog(@"h:%f w:%f",textSize.height,textSize.width); if (pickerLabel == nil) { pickerLabel = [[[UILabel alloc] initWithFrame:labelRect] autorelease]; [pickerLabel setFont:[UIFont systemFontOfSize:14]]; [pickerLabel setBackgroundColor:[UIColor clearColor]]; [pickerLabel setLineBreakMode:UILineBreakModeWordWrap]; [pickerLabel setTextAlignment:UITextAlignmentCenter]; [pickerLabel setNumberOfLines:2]; } [pickerLabel setText:title]; return pickerLabel; } </code> i've manually set the row height at 32.0f. I'm getting very strange results in that some of the Labels in the second component are working perfectly. but others are not wrapping at all, and some are just showing as blank space. ie: Brussels sprout wraps fine (right component). but Milk and Cream doesn't display (only milk is visible) vegetables doesn't appear at all. Where am i going wrong in my code?
0
10,855,199
06/01/2012 18:03:10
967,484
09/27/2011 16:09:09
2,237
39
iPhone iOS a comprehensive list of Apple Demo code?
I've spent about 15 minutes looking for the old WWDC 2010 code called AVCam and found it here: http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html out of sheer curiosity, I wanted to see what other code is available, but the http://developer.apple.com/library/ios/#samplecode/ keeps redirecting me. **Is there a way for me to browse the library of iOS examples from Apple as a member of the iOS development program?** Maybe there's one centralized place where all the demos are listed so I can simply search for them by name? Thank you!
iphone
objective-c
ios
code-sample
null
06/02/2012 02:14:13
not constructive
iPhone iOS a comprehensive list of Apple Demo code? === I've spent about 15 minutes looking for the old WWDC 2010 code called AVCam and found it here: http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html out of sheer curiosity, I wanted to see what other code is available, but the http://developer.apple.com/library/ios/#samplecode/ keeps redirecting me. **Is there a way for me to browse the library of iOS examples from Apple as a member of the iOS development program?** Maybe there's one centralized place where all the demos are listed so I can simply search for them by name? Thank you!
4
6,798,274
07/23/2011 04:43:13
539,211
12/11/2010 22:24:56
1,562
62
Puppy Linux Programming Language Question
I am not a Linux developer of any kind at the moment. That being said, I am trying to build a small application on an embedded touch screen PC. Assuming I can get the touch screen drivers to work, I am looking at using Puppy Linux because it runs on small systems and has a GUI. I don't know what programming language to use. I need to send messages over the ethernet port, read from the serial port, write to the parallel port, and have a GUI. I am not asking for any specifics, just a point in the write direction for language/technology selection. Much thanks.
linux
programming-languages
null
null
null
11/11/2011 23:27:20
not constructive
Puppy Linux Programming Language Question === I am not a Linux developer of any kind at the moment. That being said, I am trying to build a small application on an embedded touch screen PC. Assuming I can get the touch screen drivers to work, I am looking at using Puppy Linux because it runs on small systems and has a GUI. I don't know what programming language to use. I need to send messages over the ethernet port, read from the serial port, write to the parallel port, and have a GUI. I am not asking for any specifics, just a point in the write direction for language/technology selection. Much thanks.
4
8,789,285
01/09/2012 13:40:28
651,004
02/22/2011 06:09:32
18
0
System.AccessViolationException:"Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
Problem is in console application my code (single capture) is running correctly but same code copy on win form application System.AccessViolationException:"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" error got at: dcam_attachbuffer(IntPtr handleCamera,ref Intptr buf,Int32 bufsize); in code : IntPtr pTop=Marshal.AllocHGlobal(bufsize); dcam_attachbuffer(handlecamera,ref pTop,TotalBuf); How it can be possible this code working fine in console window but get error in winform You have any idea about this .
c#
visual-studio
dllimport
unmanaged-memory
null
01/09/2012 18:56:21
not a real question
System.AccessViolationException:"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" === Problem is in console application my code (single capture) is running correctly but same code copy on win form application System.AccessViolationException:"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" error got at: dcam_attachbuffer(IntPtr handleCamera,ref Intptr buf,Int32 bufsize); in code : IntPtr pTop=Marshal.AllocHGlobal(bufsize); dcam_attachbuffer(handlecamera,ref pTop,TotalBuf); How it can be possible this code working fine in console window but get error in winform You have any idea about this .
1
9,775,519
03/19/2012 18:10:42
1,014,234
10/26/2011 09:00:45
228
30
Android - Camera, save pic every 20 seconds
If it possible to retrieve camera pic in background and save the pic every 30 seconds?
android
camera
preview
pic
null
03/20/2012 18:35:46
not a real question
Android - Camera, save pic every 20 seconds === If it possible to retrieve camera pic in background and save the pic every 30 seconds?
1
1,002,547
06/16/2009 16:22:12
96,660
04/27/2009 16:51:48
1
0
OneToOne relationship with shared primary key generates n+1 selects; any workaround?
Imagine 2 tables in a relational database, e.g. Person and Billing. There is a (non-mandatory) OneToOne association defined between these entities, and they share the Person primary key (i.e. PERSON_ID is defined in both Person and Billing, and it is a foreign key in the latter). When doing a select on Person via a named query such as: from Person p where p.id = :id Hibernate/JPA generates two select queries, one on the Person table and another on the Billing table. The example above is very simple and would not cause any performance issues, given the query returns only one result. Now, imagine that <code>Person</code> has <code>n</code> OneToOne relationships (all non-mandatory) with other entities (all sharing the <code>Person</code> primary key). Correct me if I'm wrong, but running a <code>select</code> query on Person, returning <code>r</code> results, would result in <code>(n+1)*r</code> selects being generated by Hibernate, even if the associations are <i>lazy</i>. Is there a workaround for this potential performance disaster (other than not using a shared primary key at all)? Thank you for all your ideas.
java
jpa
hibernate
null
null
null
open
OneToOne relationship with shared primary key generates n+1 selects; any workaround? === Imagine 2 tables in a relational database, e.g. Person and Billing. There is a (non-mandatory) OneToOne association defined between these entities, and they share the Person primary key (i.e. PERSON_ID is defined in both Person and Billing, and it is a foreign key in the latter). When doing a select on Person via a named query such as: from Person p where p.id = :id Hibernate/JPA generates two select queries, one on the Person table and another on the Billing table. The example above is very simple and would not cause any performance issues, given the query returns only one result. Now, imagine that <code>Person</code> has <code>n</code> OneToOne relationships (all non-mandatory) with other entities (all sharing the <code>Person</code> primary key). Correct me if I'm wrong, but running a <code>select</code> query on Person, returning <code>r</code> results, would result in <code>(n+1)*r</code> selects being generated by Hibernate, even if the associations are <i>lazy</i>. Is there a workaround for this potential performance disaster (other than not using a shared primary key at all)? Thank you for all your ideas.
0
3,340,171
07/27/2010 01:32:10
38,803
11/19/2008 03:23:42
3,318
71
Data structure for when key and value are equally "important"
So, this is probably a stupid question, but I have a mapping of unique IDs to unique values. Sometimes I want the value for a certain ID, sometimes I want to know the ID of a certain value. I search more than I modify the collection. I'm wondering if there's a special datastructure that makes sense here, or if I should just maintain two copies of the collection (which is never super large)--one keyed by ID, and one keyed by value. Thanks!
language-agnostic
data-structures
performance
mapping
null
null
open
Data structure for when key and value are equally "important" === So, this is probably a stupid question, but I have a mapping of unique IDs to unique values. Sometimes I want the value for a certain ID, sometimes I want to know the ID of a certain value. I search more than I modify the collection. I'm wondering if there's a special datastructure that makes sense here, or if I should just maintain two copies of the collection (which is never super large)--one keyed by ID, and one keyed by value. Thanks!
0
10,689,057
05/21/2012 16:35:22
1,408,366
05/21/2012 16:31:01
1
0
Both pattern and color for background
I need to set both color and pattern for my site background, but I do not know how. Can someone help me?? thanks in advance
jquery
html
css
css3
null
05/22/2012 18:06:30
not a real question
Both pattern and color for background === I need to set both color and pattern for my site background, but I do not know how. Can someone help me?? thanks in advance
1
10,118,016
04/12/2012 05:43:50
1,328,229
04/12/2012 05:30:14
1
0
Comment/Guestbook Scripts but with no database
Im new to programming and heres my problem. I have a simple HTML webpage which I am hosting locally. My iPad is not going to have internet connection so I was able to boot the HTML page in my iPad using app called My Kiosk Pro (http://itunes.apple.com/ca/app/kiosk-pro/id409918026?mt=8) Heres the example of setting it up in a localhost (http://www.kioskproapp.com/help.html#settings_local) Now the fact I don't have internet connection, I need to have a commenting/guestbook style functionality in the bottom of the page. So the user comes on, types a message in the input box, push submit and the comment goes to the bottom and its saved there. Is there anyway I can store this without a database running? Anyway I can resolve this issue please give out any suggestions.
javascript
html
disqus
xml-comments
commenting
04/12/2012 07:43:40
not a real question
Comment/Guestbook Scripts but with no database === Im new to programming and heres my problem. I have a simple HTML webpage which I am hosting locally. My iPad is not going to have internet connection so I was able to boot the HTML page in my iPad using app called My Kiosk Pro (http://itunes.apple.com/ca/app/kiosk-pro/id409918026?mt=8) Heres the example of setting it up in a localhost (http://www.kioskproapp.com/help.html#settings_local) Now the fact I don't have internet connection, I need to have a commenting/guestbook style functionality in the bottom of the page. So the user comes on, types a message in the input box, push submit and the comment goes to the bottom and its saved there. Is there anyway I can store this without a database running? Anyway I can resolve this issue please give out any suggestions.
1
1,636,189
10/28/2009 09:51:24
47,341
12/18/2008 09:55:47
4,084
132
What's the key to the field "this certificate is encoded for the following purpose(s)" in ssl certificates ?
In the property page of an SSL certificate (accessible in windows using mmc/certificates), each certificate is associated with a set of intended purposes looking either like this : > Protects e-mail messages Proves your > identity to a remote computer Ensures > the identity of a remote computer > Ensures software came from software > publisher Protects software from > alteration after publication All > issuance policies Or like this : > 1.3.6.1.4.1.6449.1.2.1.3.4 How can I get the correspondance between those strings and a human-readable format ?
oid
ssl
ssl-certificate
null
null
null
open
What's the key to the field "this certificate is encoded for the following purpose(s)" in ssl certificates ? === In the property page of an SSL certificate (accessible in windows using mmc/certificates), each certificate is associated with a set of intended purposes looking either like this : > Protects e-mail messages Proves your > identity to a remote computer Ensures > the identity of a remote computer > Ensures software came from software > publisher Protects software from > alteration after publication All > issuance policies Or like this : > 1.3.6.1.4.1.6449.1.2.1.3.4 How can I get the correspondance between those strings and a human-readable format ?
0
7,106,672
08/18/2011 11:28:52
900,256
08/18/2011 09:04:16
1
0
Could not solve Index was out of range exception
I have a form with treeView and Datagridview sometimes when I click on the DatagridViewComboboxCell I'm getting an exception : SystemArgumentOutOfRnge exception {"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"} Here's the stack trace : at System.Collections.ArrayList.get_Item(Int32 index) at System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex) at System.Windows.Forms.DataGridView.get_CurrentCellInternal() at System.Windows.Forms.DataGridView.CommitEdit(DataGridViewDataErrorContexts context, Boolean forCurrentCellChange, Boolean forCurrentRowChange) at System.Windows.Forms.DataGridView.OnCellMouseDown(HitTestInfo hti, Boolean isShiftDown, Boolean isControlDown) at System.Windows.Forms.DataGridView.OnCellMouseDown(DataGridViewCellMouseEventArgs e) at System.Windows.Forms.DataGridView.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.DataGridView.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at DataGridViewConnectionParams_CellClick(Object sender, DataGridViewCellEventArgs e) Could you please advise me how to resolve this issue. I understand that the grid failing to commit the cell but how could I change that ...
c#
winforms
datagridview
null
null
08/18/2011 12:56:36
not a real question
Could not solve Index was out of range exception === I have a form with treeView and Datagridview sometimes when I click on the DatagridViewComboboxCell I'm getting an exception : SystemArgumentOutOfRnge exception {"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"} Here's the stack trace : at System.Collections.ArrayList.get_Item(Int32 index) at System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex) at System.Windows.Forms.DataGridView.get_CurrentCellInternal() at System.Windows.Forms.DataGridView.CommitEdit(DataGridViewDataErrorContexts context, Boolean forCurrentCellChange, Boolean forCurrentRowChange) at System.Windows.Forms.DataGridView.OnCellMouseDown(HitTestInfo hti, Boolean isShiftDown, Boolean isControlDown) at System.Windows.Forms.DataGridView.OnCellMouseDown(DataGridViewCellMouseEventArgs e) at System.Windows.Forms.DataGridView.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.DataGridView.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at DataGridViewConnectionParams_CellClick(Object sender, DataGridViewCellEventArgs e) Could you please advise me how to resolve this issue. I understand that the grid failing to commit the cell but how could I change that ...
1