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,330,623
04/26/2012 09:24:33
1,182,140
02/01/2012 07:29:48
18
4
How to find out QML EditText character limit listener
Does any one know how to check character limit of EditText in QML?
edittext
character
limit
qml
null
null
open
How to find out QML EditText character limit listener === Does any one know how to check character limit of EditText in QML?
0
8,157,824
11/16/2011 19:57:02
873,286
08/01/2011 18:29:44
72
0
SSH Login permission denied
On remote computer I configured the following file /etc/ssh/sshd_config. I change Password Authentication to "no". Now I am unable to connect to it. It says permission denied. Is there way to connect to it?
linux
ssh
admin
null
null
null
open
SSH Login permission denied === On remote computer I configured the following file /etc/ssh/sshd_config. I change Password Authentication to "no". Now I am unable to connect to it. It says permission denied. Is there way to connect to it?
0
5,168,018
03/02/2011 13:18:51
641,235
10/11/2010 16:35:47
1
0
How to write a program testing the bandwidth between CPU and Memory?(Using C or C++)
follow my question title. And I realize it using the code below: #include <stdlib.h> #include <stdio.h> #include <sys/time.h> #define COFF (1 << 20) //1MB #define LOW_BYTE (1 << 10) //1kb #define UP_BYTE (1 << 23) //8MB #define MAX UP_BYTE/sizeof(double) double a[MAX] = {1}; double current_time(void) { double timestamp; struct timeval tv; gettimeofday(&tv, 0); timestamp = (double)((double)(tv.tv_sec*1e6) +(double)tv.tv_usec); return timestamp; } void test_band_width(int size){ int i; volatile double r = 0; for (i=0; i < size; i+=16) { r += a[i]; } } int main(int argc, char* argv[]){ int k, size; double cycles; double t_start=0.0, t_end=0.0, time=0.0; for (k=UP_BYTE; k >= LOW_BYTE; k >>= 1) { size = k / sizeof(double); t_start = current_time(); test_band_width(size); t_end = current_time(); //printf("time is %lf\n",t_end-t_start); time = (t_end-t_start); printf("time2 is %lf\n\n\n",time); printf("This time the BandWith is %.7f\n",k/(16*time)); } return 0; } But there may be some problem when I tested my PC, maybe the way I test the systime?help me.
c
null
null
null
null
03/03/2011 03:20:04
not a real question
How to write a program testing the bandwidth between CPU and Memory?(Using C or C++) === follow my question title. And I realize it using the code below: #include <stdlib.h> #include <stdio.h> #include <sys/time.h> #define COFF (1 << 20) //1MB #define LOW_BYTE (1 << 10) //1kb #define UP_BYTE (1 << 23) //8MB #define MAX UP_BYTE/sizeof(double) double a[MAX] = {1}; double current_time(void) { double timestamp; struct timeval tv; gettimeofday(&tv, 0); timestamp = (double)((double)(tv.tv_sec*1e6) +(double)tv.tv_usec); return timestamp; } void test_band_width(int size){ int i; volatile double r = 0; for (i=0; i < size; i+=16) { r += a[i]; } } int main(int argc, char* argv[]){ int k, size; double cycles; double t_start=0.0, t_end=0.0, time=0.0; for (k=UP_BYTE; k >= LOW_BYTE; k >>= 1) { size = k / sizeof(double); t_start = current_time(); test_band_width(size); t_end = current_time(); //printf("time is %lf\n",t_end-t_start); time = (t_end-t_start); printf("time2 is %lf\n\n\n",time); printf("This time the BandWith is %.7f\n",k/(16*time)); } return 0; } But there may be some problem when I tested my PC, maybe the way I test the systime?help me.
1
11,695,022
07/27/2012 20:11:24
1,451,836
06/12/2012 17:15:48
16
0
Developing php point-based transaction system
I intend to develop a points based barter system on php, that allows users to buy products using points/coin that are provided to them by the system. lets say, user A got some 500 sign up points, he wants to buy user B's product that is of 400 points, so he pays his 400 points to the user B and gets the product. user B that had his 500 sign up points now has 900 points as he gave his product to user A. Similarly, user A has the product and remaining 100 points. I am a beginner php developer, and to give an idea of my knowledge, let me tell you that i dont even know what term is used to regard this point based system. Since i am starting at level 0 any help would be a boon. I have had some experience with php development but havent developed something substantial and this i intend to be my first substantial development. I would love to be redirected to some open source module that accomodates my requirements as it will make the development faster. If not, i would really appreciate any guidelines, advice, suggestion or anything that is helpful. thanks :)
php
e-commerce
currency
null
null
07/30/2012 06:11:39
not a real question
Developing php point-based transaction system === I intend to develop a points based barter system on php, that allows users to buy products using points/coin that are provided to them by the system. lets say, user A got some 500 sign up points, he wants to buy user B's product that is of 400 points, so he pays his 400 points to the user B and gets the product. user B that had his 500 sign up points now has 900 points as he gave his product to user A. Similarly, user A has the product and remaining 100 points. I am a beginner php developer, and to give an idea of my knowledge, let me tell you that i dont even know what term is used to regard this point based system. Since i am starting at level 0 any help would be a boon. I have had some experience with php development but havent developed something substantial and this i intend to be my first substantial development. I would love to be redirected to some open source module that accomodates my requirements as it will make the development faster. If not, i would really appreciate any guidelines, advice, suggestion or anything that is helpful. thanks :)
1
694,441
03/29/2009 10:39:49
32,718
10/30/2008 10:56:58
83
6
MySite and profile language
**Hi Gyes,** My problem is I installed sharepoint language pack (**arabic**), it works will, I created mysite in arabic and it also works will, but when I navigate to my Profile it's shown in **English**, I want my Profile to be shown in **Arabic** too. **Does anyone have a solution** **Thanks**
sharepoint
mysite
profile
null
null
03/27/2012 21:59:08
off topic
MySite and profile language === **Hi Gyes,** My problem is I installed sharepoint language pack (**arabic**), it works will, I created mysite in arabic and it also works will, but when I navigate to my Profile it's shown in **English**, I want my Profile to be shown in **Arabic** too. **Does anyone have a solution** **Thanks**
2
6,932,156
08/03/2011 19:30:48
877,281
08/03/2011 19:05:13
1
0
CSS comment style
I'm trying to create comment box using html list (li) as shown on the link below but struglling to get the layout right. I also like to display an action button as shown in the second box when the mouse is hoverd over using pure css no javascript. Can someone please help? Many thanks. http://i.stack.imgur.com/yoyz7.gif
html
css
null
null
null
11/09/2011 01:07:16
not a real question
CSS comment style === I'm trying to create comment box using html list (li) as shown on the link below but struglling to get the layout right. I also like to display an action button as shown in the second box when the mouse is hoverd over using pure css no javascript. Can someone please help? Many thanks. http://i.stack.imgur.com/yoyz7.gif
1
9,071,878
01/30/2012 22:38:02
892,387
08/12/2011 19:44:09
119
1
jQuery ui tabs load/tabsload event does not fire
This seems to be the same as my question: http://stackoverflow.com/questions/2615608/jquery-ui-tabs-load-event-does-not-fire but the solution provided doesn't work for me. my code: <script type="text/javascript"> $(document).ready(function(){ $( "#tabs" ).bind( "tabsload", function(event, ui) { alert("ok"); changeheight(); }); $("#tabs").tabs({ load: function(event, ui){ alert("load"); changeheight();}, cache: true}); }); function changeheight(){ alert("changeheight"); var iframe = document.getElementById("#iframe1"); var htmlheight = iframe.contentWindow.document.body.scrollHeight; alert(htmlheight); $("#iframe1").height(htmlheight+"px"); } </script> <div id="tabs"> <ul style="padding: 0; margin: 0;"> <li class="context-tab" ><a href="#iframe1" id="recent-tab" >Recent</a></li> </ul> <iframe id="iframe1" src="/canvas/getstories?context=recent" style="width:95%;"> </iframe> As you can see, I'm trying it both ways, but neither is working.
javascript
jquery
jquery-ui
iframe
jquery-ui-tabs
null
open
jQuery ui tabs load/tabsload event does not fire === This seems to be the same as my question: http://stackoverflow.com/questions/2615608/jquery-ui-tabs-load-event-does-not-fire but the solution provided doesn't work for me. my code: <script type="text/javascript"> $(document).ready(function(){ $( "#tabs" ).bind( "tabsload", function(event, ui) { alert("ok"); changeheight(); }); $("#tabs").tabs({ load: function(event, ui){ alert("load"); changeheight();}, cache: true}); }); function changeheight(){ alert("changeheight"); var iframe = document.getElementById("#iframe1"); var htmlheight = iframe.contentWindow.document.body.scrollHeight; alert(htmlheight); $("#iframe1").height(htmlheight+"px"); } </script> <div id="tabs"> <ul style="padding: 0; margin: 0;"> <li class="context-tab" ><a href="#iframe1" id="recent-tab" >Recent</a></li> </ul> <iframe id="iframe1" src="/canvas/getstories?context=recent" style="width:95%;"> </iframe> As you can see, I'm trying it both ways, but neither is working.
0
6,384,687
06/17/2011 10:52:50
148,869
08/01/2009 06:52:54
673
18
when to use NPN_ReleaseVariantValue in plugin?
When to use ReleaseVariantValue() is not clear to me, I already read https://developer.mozilla.org/en/NPN_ReleaseVariantValue http://dev.opera.com/articles/view/the-opera-plug-in-interface/#NPN_ReleaseVariantValue Can you please tell me in which usecase shall we use it?
npapi
null
null
null
null
null
open
when to use NPN_ReleaseVariantValue in plugin? === When to use ReleaseVariantValue() is not clear to me, I already read https://developer.mozilla.org/en/NPN_ReleaseVariantValue http://dev.opera.com/articles/view/the-opera-plug-in-interface/#NPN_ReleaseVariantValue Can you please tell me in which usecase shall we use it?
0
1,827,521
12/01/2009 16:57:46
126,970
06/22/2009 14:27:59
45
0
Can't add a record twice with Linq to SQL
In the legacy system I look after I have to add the same record to a table, twice. There is an identity on the table that increments with each new record. If I do the following I get the error: **"Cannot add an entity that already exists"** Is there a way to add a record twice without creating another PricingSnapshot object? PricingSnapshot pricingSnapshot = new PricingSnapshot { InvoiceOrderLineId = invoiceOrderLineId, GrossPaymentValue = grossTotal, CreatedBy = "Pricing Engine", CreatedDate = DateTime.Now }; dBpostChanges.PricingSnapshots.InsertOnSubmit(pricingSnapshot); dBpostChanges.SubmitChanges(); dBpostChanges.PricingSnapshots.InsertOnSubmit(pricingSnapshot); dBpostChanges.SubmitChanges();
linq-to-sql
c#
null
null
null
null
open
Can't add a record twice with Linq to SQL === In the legacy system I look after I have to add the same record to a table, twice. There is an identity on the table that increments with each new record. If I do the following I get the error: **"Cannot add an entity that already exists"** Is there a way to add a record twice without creating another PricingSnapshot object? PricingSnapshot pricingSnapshot = new PricingSnapshot { InvoiceOrderLineId = invoiceOrderLineId, GrossPaymentValue = grossTotal, CreatedBy = "Pricing Engine", CreatedDate = DateTime.Now }; dBpostChanges.PricingSnapshots.InsertOnSubmit(pricingSnapshot); dBpostChanges.SubmitChanges(); dBpostChanges.PricingSnapshots.InsertOnSubmit(pricingSnapshot); dBpostChanges.SubmitChanges();
0
9,235,452
02/10/2012 22:04:27
45,963
12/13/2008 12:23:04
3,071
40
"lossless" float to BYTE conversion
I'm using libnoise to generate Perlin noise on a 1024x1024 terrain grid. I want to convert its float output to a BYTE between 0 and 255. The question is ultimately a math one: **how can I convert a value in the real interval (-1,1) to the integer one (0,255) minimizing loss?**
c++
c
math
casting
null
null
open
"lossless" float to BYTE conversion === I'm using libnoise to generate Perlin noise on a 1024x1024 terrain grid. I want to convert its float output to a BYTE between 0 and 255. The question is ultimately a math one: **how can I convert a value in the real interval (-1,1) to the integer one (0,255) minimizing loss?**
0
6,564,339
07/03/2011 17:21:04
818,249
06/27/2011 22:52:50
3
0
An example on how to convert this data format to JSON?
Can someone provide me an example on how to convert this data format to JSON? @Scsi_test (iotest) scsi dkdkdkdkdkdkddk dkdkdkdkdkkdkdk dkdkdkdkkdkdkdk
json
null
null
null
null
07/03/2011 18:04:31
not a real question
An example on how to convert this data format to JSON? === Can someone provide me an example on how to convert this data format to JSON? @Scsi_test (iotest) scsi dkdkdkdkdkdkddk dkdkdkdkdkkdkdk dkdkdkdkkdkdkdk
1
11,254,859
06/29/2012 00:57:46
788,532
06/08/2011 03:20:38
313
4
Lyx Modify Document Class
I have spent the last few hours trying to modify article.cls to conform to my professor's paper requirements (title above abstract, page numbers don't start until the second page of the introduction), but this LaTex code is wildly unfamiliar to me, and I don't see how I can accomplish what I need to. Can anyone point me towards documentation or code samples which could assist me in understanding this?
latex
lyx
null
null
null
06/29/2012 13:17:12
off topic
Lyx Modify Document Class === I have spent the last few hours trying to modify article.cls to conform to my professor's paper requirements (title above abstract, page numbers don't start until the second page of the introduction), but this LaTex code is wildly unfamiliar to me, and I don't see how I can accomplish what I need to. Can anyone point me towards documentation or code samples which could assist me in understanding this?
2
4,008,683
10/24/2010 14:33:55
458,700
09/26/2010 13:30:05
108
4
nHibernate Exception
I working in a project that use nHibernate Technology , My problem is When I'm trying to add an object that contains a list of object's I have the following exception Illegal attempt to associate a collection with two open sessions from Session.Save method I don't know what is the problem or how to solve it , please if any one can help I will appreciated Thanks in Advance
c#
nhibernate
null
null
null
null
open
nHibernate Exception === I working in a project that use nHibernate Technology , My problem is When I'm trying to add an object that contains a list of object's I have the following exception Illegal attempt to associate a collection with two open sessions from Session.Save method I don't know what is the problem or how to solve it , please if any one can help I will appreciated Thanks in Advance
0
4,561,498
12/30/2010 09:33:22
547,514
08/06/2010 09:57:32
128
15
WindowsPresentationFoundation Vs Windows Communication Foundation
Can anyone tell me the difference b/W WPF and WCF?Does WCF uses only IIS?
c#
wpf
wcf
null
null
12/30/2010 11:19:50
not a real question
WindowsPresentationFoundation Vs Windows Communication Foundation === Can anyone tell me the difference b/W WPF and WCF?Does WCF uses only IIS?
1
7,794,803
10/17/2011 13:53:10
440,150
09/05/2010 18:39:51
59
0
Custom control for displaying images
I have my own classes that represent image data. They have various underlying structure but all have indexed property which returns an i,j-th image element. I need to display such images in a form. Right now I pre-convert them to System.Drawing.Bitmap and then display it in a standard Winforms PictureBox. My idea is to create a custom control that will have a property of my image type and will display a picture without preliminary converting it to System.Drawing.Bitmap or System.Drawing.Image. I suggest that the clue to this problem is creating a user-drawn control and overriding OnPaint event there. protected override void OnPaint(PaintEventArgs e) { for(int i=e.ClipRectangle.Left; i<=e.ClipRectangle.Right; i++) { for (int j = e.ClipRectangle.Top; j <= e.ClipRectangle.Bottom; j++) { //do something with i and j here //calculate the corresponding k and l indices //assign _myCustomClassImage[k,l] somewhere } } } Yes, I understand that I can create Bitmap of the clip rectangle's size and use SetPixel to assign it's elements but SetPixel works very slowly. Another idea is to use marshalling to assign bitmap's pixels but the whole idea of creating a bitmap inside an OnPaint event handler seems quite lame. Are there any suggestions in what direction should I continue my work?
.net
winforms
image
drawing
gdi+
null
open
Custom control for displaying images === I have my own classes that represent image data. They have various underlying structure but all have indexed property which returns an i,j-th image element. I need to display such images in a form. Right now I pre-convert them to System.Drawing.Bitmap and then display it in a standard Winforms PictureBox. My idea is to create a custom control that will have a property of my image type and will display a picture without preliminary converting it to System.Drawing.Bitmap or System.Drawing.Image. I suggest that the clue to this problem is creating a user-drawn control and overriding OnPaint event there. protected override void OnPaint(PaintEventArgs e) { for(int i=e.ClipRectangle.Left; i<=e.ClipRectangle.Right; i++) { for (int j = e.ClipRectangle.Top; j <= e.ClipRectangle.Bottom; j++) { //do something with i and j here //calculate the corresponding k and l indices //assign _myCustomClassImage[k,l] somewhere } } } Yes, I understand that I can create Bitmap of the clip rectangle's size and use SetPixel to assign it's elements but SetPixel works very slowly. Another idea is to use marshalling to assign bitmap's pixels but the whole idea of creating a bitmap inside an OnPaint event handler seems quite lame. Are there any suggestions in what direction should I continue my work?
0
7,930,364
10/28/2011 14:11:37
294,016
03/15/2010 14:11:10
17
3
Mapping Domain Model Validation Errors to ViewModel when using FluentValidation
I'm hoping people here can give me some ideas on how to properly do this. Currently I have a ViewModel that I use to render my screen. The View model actually contains the flattened data of several domain models. I've decorated the ViewModel with attributes to do basic validation, but the real validation work happens at the service layer. The problem occurs when there is a validation error at the service layer. The name of the property (i.e. - UserName) doesn't match the entry in the ModelState (i.e. - RegistrationViewModel.UserName). Does anyone have a recommendation for how to handle this? Thanks in advance! Steven
asp.net-mvc
fluentvalidation
null
null
null
null
open
Mapping Domain Model Validation Errors to ViewModel when using FluentValidation === I'm hoping people here can give me some ideas on how to properly do this. Currently I have a ViewModel that I use to render my screen. The View model actually contains the flattened data of several domain models. I've decorated the ViewModel with attributes to do basic validation, but the real validation work happens at the service layer. The problem occurs when there is a validation error at the service layer. The name of the property (i.e. - UserName) doesn't match the entry in the ModelState (i.e. - RegistrationViewModel.UserName). Does anyone have a recommendation for how to handle this? Thanks in advance! Steven
0
11,095,583
06/19/2012 06:33:36
957,225
09/21/2011 14:52:28
577
2
preventing UITableView from calling numberOfRowsAtIndexPath
In my UITableViewCell subclass I have a UITableView, the question is that whenever I scroll the table view the UITableView, the numberOfRowsAtIndexPath, cellForRowAtIndexPath, is getting called all the time.. how do I prevent this from happening aside from hiding it while scrolling?
iphone
objective-c
ios
ipad
null
06/19/2012 12:16:35
not a real question
preventing UITableView from calling numberOfRowsAtIndexPath === In my UITableViewCell subclass I have a UITableView, the question is that whenever I scroll the table view the UITableView, the numberOfRowsAtIndexPath, cellForRowAtIndexPath, is getting called all the time.. how do I prevent this from happening aside from hiding it while scrolling?
1
3,949,527
10/16/2010 15:38:19
469,511
10/07/2010 19:28:07
2
0
Whats wrong with the Thread?
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Thread thread = new Thread(){ public void run() { try { sleep(50); Toast toast = Toast.makeText(getApplicationContext(), "Logged In", 100); toast.show(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }; thread.start(); } This code don't work why?
android
null
null
null
null
10/17/2010 02:24:51
not a real question
Whats wrong with the Thread? === public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Thread thread = new Thread(){ public void run() { try { sleep(50); Toast toast = Toast.makeText(getApplicationContext(), "Logged In", 100); toast.show(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }; thread.start(); } This code don't work why?
1
5,068,602
02/21/2011 16:39:15
150,510
08/04/2009 17:36:15
401
14
Legal Concerns Regarding Flat Fee Projects
I am in contract negotiations with a new consultant. I want the project to go flat fee after a period of time. The time allotted is more than reasonable for the assigned task. He doesn't want the flat fee and wants a week notice without cause in the termination clause. I feel that this exposes me to paying way beyond what I have allotted to this project should things drag on. I am a start-up and cannot afford to pay more than the hourly rate x hour/week x number of set weeks math. Is there any way of protecting myself? Thanks.
contracts
null
null
null
null
02/24/2011 22:59:15
off topic
Legal Concerns Regarding Flat Fee Projects === I am in contract negotiations with a new consultant. I want the project to go flat fee after a period of time. The time allotted is more than reasonable for the assigned task. He doesn't want the flat fee and wants a week notice without cause in the termination clause. I feel that this exposes me to paying way beyond what I have allotted to this project should things drag on. I am a start-up and cannot afford to pay more than the hourly rate x hour/week x number of set weeks math. Is there any way of protecting myself? Thanks.
2
7,053,970
08/13/2011 23:34:40
1,244,239
11/30/2010 18:34:44
145
5
Template Library for CI
I was hoping to see if anyone had access to the template library for CI that was made from williamsconcepts.com because the site doesn't exist anymore. I'm trying to come up with some template files and wanted the library unless someone else knows of another one that is good.
php
codeigniter
null
null
null
08/13/2011 23:51:39
too localized
Template Library for CI === I was hoping to see if anyone had access to the template library for CI that was made from williamsconcepts.com because the site doesn't exist anymore. I'm trying to come up with some template files and wanted the library unless someone else knows of another one that is good.
3
11,503,798
07/16/2012 11:58:54
1,494,687
07/01/2012 19:38:13
1
0
Overtype mode with jquery
I would like to to make my input field act as if the keyboard is in overtype mode. I tried to trigger the keypress event with the delete button in keycode but nothing happen. If anybody has an idea.
javascript
jquery
jquery-events
null
null
07/16/2012 18:23:43
not a real question
Overtype mode with jquery === I would like to to make my input field act as if the keyboard is in overtype mode. I tried to trigger the keypress event with the delete button in keycode but nothing happen. If anybody has an idea.
1
2,267,341
02/15/2010 16:30:28
182,396
10/01/2009 10:00:10
13
0
Codeigniter diffrent DB for each language
I'm using codeigniter and the project i'm working on has to be in two languages. The only thing i can't figure out is how to select a different database in codeigniter when a session variable is set to a certain value. example: if the session variable 'language' is set to 'EN' i want it to select the DB: "databasename_EN" in all other cases select DB: "databasename_EN" The only thing i found was that you can do $this->db->load('bla'); but this means you have to add a DB-load in every model and you have to disable autoload 'database'. Any suggestions? Thx
codeigniter
php
multilanguage
null
null
null
open
Codeigniter diffrent DB for each language === I'm using codeigniter and the project i'm working on has to be in two languages. The only thing i can't figure out is how to select a different database in codeigniter when a session variable is set to a certain value. example: if the session variable 'language' is set to 'EN' i want it to select the DB: "databasename_EN" in all other cases select DB: "databasename_EN" The only thing i found was that you can do $this->db->load('bla'); but this means you have to add a DB-load in every model and you have to disable autoload 'database'. Any suggestions? Thx
0
11,574,767
07/20/2012 07:25:37
1,513,828
07/10/2012 06:06:36
1
0
gd not creating thumbnails in class in certain files with the same code of others that do in the same location (php.ini or 'gd' restriction?)
I have a script that uploads images, then creates two thumbnails. Exceptions are caught. There are no errors that pop up (at least not catchable or fatal errors). But when I put it other files it doesn't work, the very same code it doesn't work, is that possible? Is it a php.ini/gd_restriction ? Will upload the class code separated from this questions due to character limitations...
php
gd
null
null
null
07/20/2012 15:25:02
not a real question
gd not creating thumbnails in class in certain files with the same code of others that do in the same location (php.ini or 'gd' restriction?) === I have a script that uploads images, then creates two thumbnails. Exceptions are caught. There are no errors that pop up (at least not catchable or fatal errors). But when I put it other files it doesn't work, the very same code it doesn't work, is that possible? Is it a php.ini/gd_restriction ? Will upload the class code separated from this questions due to character limitations...
1
6,376,180
06/16/2011 17:39:01
734,984
05/02/2011 19:19:06
548
5
There are books about webcrawlers/spiders/robots?
I searched, but not found any specific book about webcrawlers. Someone could reccomend one for me?
books
web-crawler
spider
robots
null
06/16/2011 23:03:02
not constructive
There are books about webcrawlers/spiders/robots? === I searched, but not found any specific book about webcrawlers. Someone could reccomend one for me?
4
10,050,927
04/07/2012 01:22:05
725,337
04/26/2011 12:14:07
73
1
Configure Hibernate with Vaadin JPAContainer2.0
Im trying to convert the Vaadin demo for JPAContainer to use hibernate instead of eclipselink. But I cannot seem to get it working. Here is the documentation I am referencing https://vaadin.com/book/-/page/jpacontainer.html This is the stack trace when trying to run the app: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.lang.ExceptionInInitializerError com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1004) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:548) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause java.lang.ExceptionInInitializerError sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1365) org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1293) org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1375) org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:62) com.vaadin.demo.jpaaddressbook.DemoDataGenerator.create(DemoDataGenerator.java:55) com.vaadin.demo.jpaaddressbook.JpaAddressbookApplication.<clinit>(JpaAddressbookApplication.java:11) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause org.hibernate.exception.JDBCConnectionException: Could not open connection org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131) org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:304) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl .java:169) org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java: 67) org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160) org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1363) org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:59) com.vaadin.demo.jpaaddressbook.DemoDataGenerator.create(DemoDataGenerator.java:55) com.vaadin.demo.jpaaddressbook.JpaAddressbookApplication.<clinit>(JpaAddressbookApplication.java:11) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/grails_sandbox java.sql.DriverManager.getConnection(DriverManager.java:640) java.sql.DriverManager.getConnection(DriverManager.java:169) org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:192) org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:278) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169) org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67) org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160) org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1363) org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:59) com.vaadin.demo.jpaaddressbook.DemoDataGenerator.create(DemoDataGenerator.java:55) com.vaadin.demo.jpaaddressbook.JpaAddressbookApplication.<clinit>(JpaAddressbookApplication.java:11) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) here is my persistence.xml located in /WEB-INF/classes/META-INF/ <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> <persistence-unit name="addressbook"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.archive.autodetection" value="class" /> <property name="hibernate.format_sql" value="false" /> <property name="hibernate.show_sql" value="false" /> <property name="hibernate.hbm2ddl.auto" value="create-update" /> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" /> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" /> <property name="hibernate.connection.username" value="root" /> <property name="hibernate.connection.password" value="Shadow13" /> <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/grails_sandbox" /> </properties> </persistence-unit> </persistence> Ive included the hibernate library along with mysql connector in /WEB-INF/lib/ I have been messing with this almost the entire day and getting no where with it. Any helper would be appreciated.
hibernate
jpa
vaadin
null
null
null
open
Configure Hibernate with Vaadin JPAContainer2.0 === Im trying to convert the Vaadin demo for JPAContainer to use hibernate instead of eclipselink. But I cannot seem to get it working. Here is the documentation I am referencing https://vaadin.com/book/-/page/jpacontainer.html This is the stack trace when trying to run the app: description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.lang.ExceptionInInitializerError com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1004) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:548) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause java.lang.ExceptionInInitializerError sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1365) org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1293) org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1375) org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:62) com.vaadin.demo.jpaaddressbook.DemoDataGenerator.create(DemoDataGenerator.java:55) com.vaadin.demo.jpaaddressbook.JpaAddressbookApplication.<clinit>(JpaAddressbookApplication.java:11) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause org.hibernate.exception.JDBCConnectionException: Could not open connection org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131) org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:304) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl .java:169) org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java: 67) org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160) org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1363) org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:59) com.vaadin.demo.jpaaddressbook.DemoDataGenerator.create(DemoDataGenerator.java:55) com.vaadin.demo.jpaaddressbook.JpaAddressbookApplication.<clinit>(JpaAddressbookApplication.java:11) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/grails_sandbox java.sql.DriverManager.getConnection(DriverManager.java:640) java.sql.DriverManager.getConnection(DriverManager.java:169) org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:192) org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:278) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297) org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169) org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67) org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160) org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1363) org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:59) com.vaadin.demo.jpaaddressbook.DemoDataGenerator.create(DemoDataGenerator.java:55) com.vaadin.demo.jpaaddressbook.JpaAddressbookApplication.<clinit>(JpaAddressbookApplication.java:11) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:532) java.lang.Class.newInstance0(Class.java:372) java.lang.Class.newInstance(Class.java:325) com.vaadin.terminal.gwt.server.ApplicationServlet.getNewApplication(ApplicationServlet.java:82) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createApplication(AbstractApplicationServlet.java:978) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplicationInstance(AbstractApplicationServlet.java:801) com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:456) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) here is my persistence.xml located in /WEB-INF/classes/META-INF/ <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> <persistence-unit name="addressbook"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.archive.autodetection" value="class" /> <property name="hibernate.format_sql" value="false" /> <property name="hibernate.show_sql" value="false" /> <property name="hibernate.hbm2ddl.auto" value="create-update" /> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" /> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" /> <property name="hibernate.connection.username" value="root" /> <property name="hibernate.connection.password" value="Shadow13" /> <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/grails_sandbox" /> </properties> </persistence-unit> </persistence> Ive included the hibernate library along with mysql connector in /WEB-INF/lib/ I have been messing with this almost the entire day and getting no where with it. Any helper would be appreciated.
0
4,405,179
12/10/2010 02:36:07
496,371
11/03/2010 19:07:51
26
0
What kind of DB Foursquare using?
what kind of db foursquare is using?<br> I don't mean: MySQL, Oracle, or whatever, I mean:<br> Where they get the venue?<br> From google maps?
database
google-maps
maps
foursquare
null
12/10/2010 04:23:42
too localized
What kind of DB Foursquare using? === what kind of db foursquare is using?<br> I don't mean: MySQL, Oracle, or whatever, I mean:<br> Where they get the venue?<br> From google maps?
3
10,640,452
05/17/2012 17:23:32
1,401,570
05/17/2012 17:16:44
1
0
Covert Month Date Time Year format to MM-DD-YYYY format in perl
I want to convert the following date to MM-DD-YYYY format. Sep 12 00:00:00 2012 in perl
perl
null
null
null
null
05/17/2012 21:49:27
not a real question
Covert Month Date Time Year format to MM-DD-YYYY format in perl === I want to convert the following date to MM-DD-YYYY format. Sep 12 00:00:00 2012 in perl
1
9,098,222
02/01/2012 15:11:07
946,282
09/15/2011 08:00:33
682
42
IE7 Jquery SimpleGallery not loading after refresh
I am using a gallery plugin for jQuery called SimpleGallery. When I load my page, everything works perfect, in every browser. But when I refresh the page in Internet Explorer 7, the images won't load anymore. Here's my page: https://www.cap47fb.com/bulthaup/welkom/ And this is my code: $(document).ready(function(){ var mygallery=new simpleGallery({ wrapperid: "simplegallery1", //ID of main gallery container, dimensions: [520, 721], //width/height of gallery in pixels. Should reflect dimensions of the images exactly imagearray: [ ["https://www.cap47fb.com/bulthaup/images/welcome_1.jpg", "", "", ""], ["https://www.cap47fb.com/bulthaup/images/welcome_2.jpg", "", "", ""] ], autoplay: [true, 5000, 20], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int] persist: true, //remember last viewed slide and recall within same session? fadeduration: 1000, //transition duration (milliseconds) oninit:function(){ //event that fires when gallery has initialized/ ready to run //Keyword "this": references current gallery instance (ie: try this.navigate("play/pause")) }, onslide:function(curslide, i){ //event that fires after each slide is shown //Keyword "this": references current gallery instance //curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML) //i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc) } }) }); I've put the code in the document.ready function, so I'm sure everytime I access or reaccess the page, the simplegallery is reloaded, right?
jquery
ie7-bug
null
null
null
null
open
IE7 Jquery SimpleGallery not loading after refresh === I am using a gallery plugin for jQuery called SimpleGallery. When I load my page, everything works perfect, in every browser. But when I refresh the page in Internet Explorer 7, the images won't load anymore. Here's my page: https://www.cap47fb.com/bulthaup/welkom/ And this is my code: $(document).ready(function(){ var mygallery=new simpleGallery({ wrapperid: "simplegallery1", //ID of main gallery container, dimensions: [520, 721], //width/height of gallery in pixels. Should reflect dimensions of the images exactly imagearray: [ ["https://www.cap47fb.com/bulthaup/images/welcome_1.jpg", "", "", ""], ["https://www.cap47fb.com/bulthaup/images/welcome_2.jpg", "", "", ""] ], autoplay: [true, 5000, 20], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int] persist: true, //remember last viewed slide and recall within same session? fadeduration: 1000, //transition duration (milliseconds) oninit:function(){ //event that fires when gallery has initialized/ ready to run //Keyword "this": references current gallery instance (ie: try this.navigate("play/pause")) }, onslide:function(curslide, i){ //event that fires after each slide is shown //Keyword "this": references current gallery instance //curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML) //i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc) } }) }); I've put the code in the document.ready function, so I'm sure everytime I access or reaccess the page, the simplegallery is reloaded, right?
0
8,654,576
12/28/2011 10:20:33
638,593
02/28/2011 09:20:25
37
5
bash sed fail in while loop
#!/bin/bash fname=$2 rname=$1 echo "$(<$fname)" | while read line ; do result=`echo "$(<$rname)" | grep "$line"; echo $?` if [ $result != 0 ] then sed '/$line/d' $fname > newkas fi 2> /dev/null done Hi all, i am new to bash. i have two lists one older than another. I wish to compare the names on 'fname' against 'rname'. 'Result' is the standard out put which i will get if the name is still available in 'rname'. if is not then i will get the non-zero output. Using sed to delete that line and re route it to a new file. I have tried part by part of the code and it works until i add in the while loop function. sed don't seems to work as the final output of 'newkas' is the same as the initial input 'fname'. Is my method wrong or did i miss out any parts?
bash
sed
null
null
null
null
open
bash sed fail in while loop === #!/bin/bash fname=$2 rname=$1 echo "$(<$fname)" | while read line ; do result=`echo "$(<$rname)" | grep "$line"; echo $?` if [ $result != 0 ] then sed '/$line/d' $fname > newkas fi 2> /dev/null done Hi all, i am new to bash. i have two lists one older than another. I wish to compare the names on 'fname' against 'rname'. 'Result' is the standard out put which i will get if the name is still available in 'rname'. if is not then i will get the non-zero output. Using sed to delete that line and re route it to a new file. I have tried part by part of the code and it works until i add in the while loop function. sed don't seems to work as the final output of 'newkas' is the same as the initial input 'fname'. Is my method wrong or did i miss out any parts?
0
5,260,411
03/10/2011 13:43:00
642,760
03/03/2011 10:07:10
16
0
content block with more than 1 content items.
The following code is a Drupal block made in php. 1) How can I implement more then one item now i have test1 but i want test1, test2, test3 and test5. 2) how can i link a title for example test1 to my admin/settings/ menu I want link a item to node_import in Drupal. enter code here function planning_block($op='list', $delta=0, $edit=array()) { switch ($op) { case 'list': $blocks[0]['info'] = t('Stage administration block'); return $blocks; case 'view': $blocks['subject'] = t('Stage administratie'); $blocks['content'] = 'test'; return $blocks; } }
php
drupal
block
null
null
null
open
content block with more than 1 content items. === The following code is a Drupal block made in php. 1) How can I implement more then one item now i have test1 but i want test1, test2, test3 and test5. 2) how can i link a title for example test1 to my admin/settings/ menu I want link a item to node_import in Drupal. enter code here function planning_block($op='list', $delta=0, $edit=array()) { switch ($op) { case 'list': $blocks[0]['info'] = t('Stage administration block'); return $blocks; case 'view': $blocks['subject'] = t('Stage administratie'); $blocks['content'] = 'test'; return $blocks; } }
0
5,500,632
03/31/2011 13:28:37
346,332
05/20/2010 16:29:16
874
50
C# multithreading
Can `ICollection<T>.Count` property getter be considered atomic *(and, therefore, `threadsafe`)?* Thank you.
c#
thread-safety
properties
null
null
null
open
C# multithreading === Can `ICollection<T>.Count` property getter be considered atomic *(and, therefore, `threadsafe`)?* Thank you.
0
10,551,855
05/11/2012 12:59:48
119,894
06/09/2009 15:01:47
78
2
Zend_Form default checked box issues
Racking my brains I have been through the zend documentation and crawled google but cant find the solution. I have a form using Zend_Form and on initial page load I need the contact me checkbox checked by default. I have the below code which is suppose to work I am told but doesnt for me. Any one had any experience with this? $contactme = new Zend_Form_Element_Checkbox('contactme','checked'); $contactme->setLabel("Please untick box if you don't want to be updated with offers.") ->setAttrib('checked','checked') ->setCheckedValue(1) ->setUncheckedValue(0) ->setValue(1); Cheers John
zend-form
zend-form-element
null
null
null
null
open
Zend_Form default checked box issues === Racking my brains I have been through the zend documentation and crawled google but cant find the solution. I have a form using Zend_Form and on initial page load I need the contact me checkbox checked by default. I have the below code which is suppose to work I am told but doesnt for me. Any one had any experience with this? $contactme = new Zend_Form_Element_Checkbox('contactme','checked'); $contactme->setLabel("Please untick box if you don't want to be updated with offers.") ->setAttrib('checked','checked') ->setCheckedValue(1) ->setUncheckedValue(0) ->setValue(1); Cheers John
0
8,276,942
11/26/2011 07:19:30
438,319
09/02/2010 19:24:35
812
20
What are the components of a JavaScript Browser Side Framework/Solution Architecture?
What are the components of a JavaScript browser side web application architecture? I am aware of the following items and looking to for the most complete list. 1. Normalized DOM API that behaves the same in all browsers. 2. Ajax Wrapper offering a better API to access the XHR object. 3. Template engine to make writing widgets easier. 4. Module loading system. ... etc? What are essential components of a client side JavaScript Architecture for building complex web apps?
javascript
javascript-framework
null
null
null
11/27/2011 21:38:13
not a real question
What are the components of a JavaScript Browser Side Framework/Solution Architecture? === What are the components of a JavaScript browser side web application architecture? I am aware of the following items and looking to for the most complete list. 1. Normalized DOM API that behaves the same in all browsers. 2. Ajax Wrapper offering a better API to access the XHR object. 3. Template engine to make writing widgets easier. 4. Module loading system. ... etc? What are essential components of a client side JavaScript Architecture for building complex web apps?
1
5,632,625
04/12/2011 08:50:31
596,364
01/31/2011 04:57:46
248
2
problem in using camera in android
following is the code by which i am capturing images in my app. After capturing the image it saves it in SDcard and shows done and retake when i click the done button i want the captured image to be uploaded to an url. i am not able to know from where the done and retake button gets appeared pls help me... protected static final int TAKE_RECEIPT = 0; Button b1; Intent myIntent; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); b1 = (Button)findViewById(R.id.widget98); b1.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { takePictureFromCamera(); } private void takePictureFromCamera() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, TAKE_RECEIPT); }
android
url
upload
camera
null
null
open
problem in using camera in android === following is the code by which i am capturing images in my app. After capturing the image it saves it in SDcard and shows done and retake when i click the done button i want the captured image to be uploaded to an url. i am not able to know from where the done and retake button gets appeared pls help me... protected static final int TAKE_RECEIPT = 0; Button b1; Intent myIntent; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); b1 = (Button)findViewById(R.id.widget98); b1.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { takePictureFromCamera(); } private void takePictureFromCamera() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, TAKE_RECEIPT); }
0
11,721,066
07/30/2012 11:57:01
1,562,804
07/30/2012 11:26:05
6
0
Your Opinion on Javascript Lessons?
Yes everyone I am a newb. Though I would like everyones opinion on Javascript lessons/tutorials for absolute newbs haha. I know nothing about javascript, not commands, variables, nothing. I started at W3Schools and its seems to be ok. Any other suggestions
javascript
homework
w3c
null
null
07/30/2012 12:27:18
not constructive
Your Opinion on Javascript Lessons? === Yes everyone I am a newb. Though I would like everyones opinion on Javascript lessons/tutorials for absolute newbs haha. I know nothing about javascript, not commands, variables, nothing. I started at W3Schools and its seems to be ok. Any other suggestions
4
11,339,829
07/05/2012 07:40:01
1,344,102
04/19/2012 13:24:12
18
1
Restricting access to certain URLs in a webapp running on Tomcat (6.0.x)
Hi my new problem is as follows: I have a web application running on Tomcat 6.0.x, it's behind an Apache HTTPD reverse proxy, there are other machines behind it one of the supposed to communicate with a certain web service (http://bla.com/**restricted**/stuff/...) while users(that connect from the internet side of the reverse proxy) and other machines should not be able to invoke those methods, preferably not even to know they exist. 1. Well I know I could use RemoteAddrFilter and filter the IP and although it's spoof-able it could be "close enough" but unfortunately I'm stuck with version 6 of Tomcat. 2. If I had complete freedom I could setup this service on a different port and then just use iptables to restrict it but unfortunately it has to be same instance of Tomcat and same web application and I am not familiar with a way to restrict a connector to certain areas in a web app. 3. The application manages it's own security system which cannot be used for authenticating the "caller machine" for "historical" reasons that said making several security constraints is fine but [specification][1] here says that one can have only one login-config element so even if I write a different constraint for the restricted URLs I will not be able to block it by requiring a user certificate for example(thus identifying the calling machine) because I already have a login-config. This more of a "how to do it best" question rather then "I don't know how to do it" because there are plenty of hacky ways to set this up but we don't want to slip to the dark side now do we? I must say I did try to research the subject but I haven't found any obvious solutions and yet if I missed something elegant and obvious I will be more then happy to hear about it(non trivial solutions are very welcome too :) ) , so thanks for any ideas. [1]: http://download.oracle.com/otn-pub/jcp/servlet-2.4-fr-spec-oth-JSpec/servlet-2_4-fr-spec.pdf%20specification
web-services
security
authentication
tomcat
restriction
null
open
Restricting access to certain URLs in a webapp running on Tomcat (6.0.x) === Hi my new problem is as follows: I have a web application running on Tomcat 6.0.x, it's behind an Apache HTTPD reverse proxy, there are other machines behind it one of the supposed to communicate with a certain web service (http://bla.com/**restricted**/stuff/...) while users(that connect from the internet side of the reverse proxy) and other machines should not be able to invoke those methods, preferably not even to know they exist. 1. Well I know I could use RemoteAddrFilter and filter the IP and although it's spoof-able it could be "close enough" but unfortunately I'm stuck with version 6 of Tomcat. 2. If I had complete freedom I could setup this service on a different port and then just use iptables to restrict it but unfortunately it has to be same instance of Tomcat and same web application and I am not familiar with a way to restrict a connector to certain areas in a web app. 3. The application manages it's own security system which cannot be used for authenticating the "caller machine" for "historical" reasons that said making several security constraints is fine but [specification][1] here says that one can have only one login-config element so even if I write a different constraint for the restricted URLs I will not be able to block it by requiring a user certificate for example(thus identifying the calling machine) because I already have a login-config. This more of a "how to do it best" question rather then "I don't know how to do it" because there are plenty of hacky ways to set this up but we don't want to slip to the dark side now do we? I must say I did try to research the subject but I haven't found any obvious solutions and yet if I missed something elegant and obvious I will be more then happy to hear about it(non trivial solutions are very welcome too :) ) , so thanks for any ideas. [1]: http://download.oracle.com/otn-pub/jcp/servlet-2.4-fr-spec-oth-JSpec/servlet-2_4-fr-spec.pdf%20specification
0
4,199,969
11/16/2010 23:06:00
459,866
09/27/2010 19:42:48
11
1
powershell 2.0 on Windows server 2008 R2 cannot connect with OLEDB connection
I developed a powershell application on an XP box that made an OLEDB connection to a Sybase server to extract data that is then inserted into a SQL Server 2008 database instance. After debugging this script and ensuring the process operated correctly, I moved the script to a new Windows Server 2008 R2 box. In order to connect to the Sybase instance I installed the Sybase 12.5.2 client as I had done on the XP box. However, running the script failed with the message: Exception calling "open" with "0" argument(s): "The 'Sybase.ASEOLEDBProvider.2' provider is not registered on the local machine. The base connection string was derived from connectionStrings.com and worked on the XP so I do not believe there is a syntax issue per se. So, I manually registed the OLEDB dll with the command: regsvr32 sydaase.dll it registered with no errors. Cutting out the pertinent lines of the script, the connection logic sequence is [void][Reflection.Assembly]::LoadwithPartialName("System.Data") $dbConn = new-object System.Data.oldeb.oledbConnection $dbConn.connectionString = "Provider=Sybase.ASEOLEDBProvider.2; server name = myServer; port address = xxx; initial catalog = xxx; user Id = xxx; Password = xxxx" I have replaced my data with xxx in this example. I am not clear why this ran without issue on the XP box, but is failing to do so on the Windows Server box though I followed the same configuration process.
powershell
null
null
null
null
null
open
powershell 2.0 on Windows server 2008 R2 cannot connect with OLEDB connection === I developed a powershell application on an XP box that made an OLEDB connection to a Sybase server to extract data that is then inserted into a SQL Server 2008 database instance. After debugging this script and ensuring the process operated correctly, I moved the script to a new Windows Server 2008 R2 box. In order to connect to the Sybase instance I installed the Sybase 12.5.2 client as I had done on the XP box. However, running the script failed with the message: Exception calling "open" with "0" argument(s): "The 'Sybase.ASEOLEDBProvider.2' provider is not registered on the local machine. The base connection string was derived from connectionStrings.com and worked on the XP so I do not believe there is a syntax issue per se. So, I manually registed the OLEDB dll with the command: regsvr32 sydaase.dll it registered with no errors. Cutting out the pertinent lines of the script, the connection logic sequence is [void][Reflection.Assembly]::LoadwithPartialName("System.Data") $dbConn = new-object System.Data.oldeb.oledbConnection $dbConn.connectionString = "Provider=Sybase.ASEOLEDBProvider.2; server name = myServer; port address = xxx; initial catalog = xxx; user Id = xxx; Password = xxxx" I have replaced my data with xxx in this example. I am not clear why this ran without issue on the XP box, but is failing to do so on the Windows Server box though I followed the same configuration process.
0
352,699
12/09/2008 13:29:47
1,353,085
09/08/2008 06:22:18
476
18
How do I find a complete list of extensions installed in VS2008?
I want that list, because if something horrible happens, and I'll have to reinstall Visual Studio - I'll need this list, so that I can recreate the same development environment. This also makes it hard to search for updates - I can not see the versions of currently installed plug-ins. So, is there a single place in Visual Studio, that would show me a complete list of plug-ins and their versions?
visual-studio
vs2008
plugins
null
null
null
open
How do I find a complete list of extensions installed in VS2008? === I want that list, because if something horrible happens, and I'll have to reinstall Visual Studio - I'll need this list, so that I can recreate the same development environment. This also makes it hard to search for updates - I can not see the versions of currently installed plug-ins. So, is there a single place in Visual Studio, that would show me a complete list of plug-ins and their versions?
0
8,453,085
12/09/2011 23:40:02
464,359
10/02/2010 01:46:16
29
1
How do private values get assigned to traders in the JCAT agent-based model?
I'm not sure how many folks are familiar with the [platform][1] used in the [Market Design Competition][2] within the [Trading Agent Competition][3], but I'm trying to redesign how private values get assigned to traders. I've been reading over all the classes in the valuation package in the actual JCAT game source code as well as the server code and I just can't find the classes that: - Assign each trader their own valuation class - Tell each agent when to recalculate its valuation The game [documentation][4] says that "...the CAT server assigns to each trader a private value and the number or goods the trader needs to trade on that day." But I can't the root of that activity in the source code. Many thanks to anyone who can help. [1]: http://jcat.sourceforge.net/ [2]: http://www.marketbasedcontrol.com/blog/?page_id=5 [3]: http://www.sics.se/tac/page.php?id=1 [4]: http://sourceforge.net/projects/jcat/files/cat%20overview/
java
artificial-intelligence
agent-based-modeling
null
null
null
open
How do private values get assigned to traders in the JCAT agent-based model? === I'm not sure how many folks are familiar with the [platform][1] used in the [Market Design Competition][2] within the [Trading Agent Competition][3], but I'm trying to redesign how private values get assigned to traders. I've been reading over all the classes in the valuation package in the actual JCAT game source code as well as the server code and I just can't find the classes that: - Assign each trader their own valuation class - Tell each agent when to recalculate its valuation The game [documentation][4] says that "...the CAT server assigns to each trader a private value and the number or goods the trader needs to trade on that day." But I can't the root of that activity in the source code. Many thanks to anyone who can help. [1]: http://jcat.sourceforge.net/ [2]: http://www.marketbasedcontrol.com/blog/?page_id=5 [3]: http://www.sics.se/tac/page.php?id=1 [4]: http://sourceforge.net/projects/jcat/files/cat%20overview/
0
7,946,019
10/30/2011 15:59:29
1,009,383
10/23/2011 09:44:13
1
0
button click event using javascript in firefox
I want a button click event fire on a checkbox onchange event. following code is working fine in IE but in firefox I am facing a strange problem. if alert is removed button click is not happening, with alert it is working fine in firefox as well as in IE. Any help guys ? -------------------------------------------------------------------------------------------------------------- @Html.CheckBoxFor(model => model.CheckReadOnly, new { @onchange = "javascript:onreadonlybuttonclick()" }) <input id="btnSave" type="submit" value="Save" name="action" /> <script> function onreadonlybuttonclick() { alert('update button click..'); document.getElementById('btnSave').click(); } </script> Thanks Harish
button
mouseclick-event
null
null
null
null
open
button click event using javascript in firefox === I want a button click event fire on a checkbox onchange event. following code is working fine in IE but in firefox I am facing a strange problem. if alert is removed button click is not happening, with alert it is working fine in firefox as well as in IE. Any help guys ? -------------------------------------------------------------------------------------------------------------- @Html.CheckBoxFor(model => model.CheckReadOnly, new { @onchange = "javascript:onreadonlybuttonclick()" }) <input id="btnSave" type="submit" value="Save" name="action" /> <script> function onreadonlybuttonclick() { alert('update button click..'); document.getElementById('btnSave').click(); } </script> Thanks Harish
0
2,175,945
02/01/2010 10:23:40
119,396
06/08/2009 19:04:11
32
0
Android Market Application Updates
Quick question about android market application updates. If I have an app on the market and release an update, is there a way to ensure that the users download the new update? I.e. Does the app tells the user there is an update, or does it stop working until they download an update? Or should I be writing code in my apps to stop working after a fixed period thus forcing the user to download the new version? Thanks, Gaz
android
application
market
null
null
07/28/2012 14:03:14
off topic
Android Market Application Updates === Quick question about android market application updates. If I have an app on the market and release an update, is there a way to ensure that the users download the new update? I.e. Does the app tells the user there is an update, or does it stop working until they download an update? Or should I be writing code in my apps to stop working after a fixed period thus forcing the user to download the new version? Thanks, Gaz
2
7,397,803
09/13/2011 06:43:04
924,724
09/02/2011 06:21:29
108
3
Problem in htaccess
I have created one user, named "myusername" in my WHM server "http://www.sujalserver.com" and tried to access by putting /~myusernameie i.e. http://www.sujalserver.com/~myusername. It works for the homepage ie http://www.sujalserver.com/~myusername (Got my homepage) but while using htaccess -> http://www.sujalserver.com/~myusername/article, it shows page not found. Is there any solution to solve this problem?
.htaccess
null
null
null
null
09/13/2011 10:55:34
off topic
Problem in htaccess === I have created one user, named "myusername" in my WHM server "http://www.sujalserver.com" and tried to access by putting /~myusernameie i.e. http://www.sujalserver.com/~myusername. It works for the homepage ie http://www.sujalserver.com/~myusername (Got my homepage) but while using htaccess -> http://www.sujalserver.com/~myusername/article, it shows page not found. Is there any solution to solve this problem?
2
2,563,171
04/01/2010 19:39:42
227,523
12/08/2009 22:11:54
510
28
How do you tune Eclipse IDE? How do you use Eclipse IDE?
I've started to read the book "Code Craft" by Pete Goodliffe. The fourth chapter is about instruments that developer uses during his daily work; this chapter made me to review my work and I've seriously decided to make it easier with fully personalized IDE. Eclipse IDE is what I've started my learning from... I've read documentation and found that it's really easy to do tasks routine from Eclipse. We are using Mantis for tracking tasks and it was great surprise for me to find out Mantis Connector for Mylyn. Also I was pretty glad to see SVN client integrated into Eclipse IDE. Also I've found UML2 tool for Eclipse, but was disappointed because there is no any graphic interface for building diagramms. (Or, maybe, I'm was searching in wrong place?) - What useful plugins do you use in your daily work? - How do you use Eclipse for collaboration in your team? - Do you have any links about intergration Eclipse IDE experience in dev. team? Thank you!
ide
eclipse
null
null
null
09/01/2011 13:29:01
not constructive
How do you tune Eclipse IDE? How do you use Eclipse IDE? === I've started to read the book "Code Craft" by Pete Goodliffe. The fourth chapter is about instruments that developer uses during his daily work; this chapter made me to review my work and I've seriously decided to make it easier with fully personalized IDE. Eclipse IDE is what I've started my learning from... I've read documentation and found that it's really easy to do tasks routine from Eclipse. We are using Mantis for tracking tasks and it was great surprise for me to find out Mantis Connector for Mylyn. Also I was pretty glad to see SVN client integrated into Eclipse IDE. Also I've found UML2 tool for Eclipse, but was disappointed because there is no any graphic interface for building diagramms. (Or, maybe, I'm was searching in wrong place?) - What useful plugins do you use in your daily work? - How do you use Eclipse for collaboration in your team? - Do you have any links about intergration Eclipse IDE experience in dev. team? Thank you!
4
10,705,268
05/22/2012 15:34:42
668,970
03/21/2011 06:21:45
1,575
128
why two tools (Ant and Maven) from the same vendor Apache
I have experience on Ant but no experience on Maven. I have a question, from the same vendor Apache, we got two build tools Ant and Maven. 1. **Why can't same Ant tool can be upgraded to maven?** <br> 2. **what is the benefits of using Maven over Ant or vise versa ?** 3. **What made to build Maven when Ant works as build tool**
java
apache
maven
ant
null
05/23/2012 07:30:10
not constructive
why two tools (Ant and Maven) from the same vendor Apache === I have experience on Ant but no experience on Maven. I have a question, from the same vendor Apache, we got two build tools Ant and Maven. 1. **Why can't same Ant tool can be upgraded to maven?** <br> 2. **what is the benefits of using Maven over Ant or vise versa ?** 3. **What made to build Maven when Ant works as build tool**
4
10,127,445
04/12/2012 16:07:40
1,329,585
04/12/2012 15:51:38
1
0
Window Opener Error
I recently add an ajax functionality to my page ever since the close process and eventual parent refresh fails with error "Microsoft JScript runtime error: Object doesn't support this property or method" I have read in different blog avoid AJAX affecting Javascript but so far I haven't found the work around Javascript to close child and refresh parent: `function RefreshParent() { window.opener.location.Reload(true); self.close(); }` I have also tried in code behind with same results `Response.Write("<script language='javascript'> { window.opener.location.reload(true);self.close();return false ; }</script>")` Thanks in advance
asp.net
ajax
vb.net
jscript
null
04/18/2012 13:25:40
too localized
Window Opener Error === I recently add an ajax functionality to my page ever since the close process and eventual parent refresh fails with error "Microsoft JScript runtime error: Object doesn't support this property or method" I have read in different blog avoid AJAX affecting Javascript but so far I haven't found the work around Javascript to close child and refresh parent: `function RefreshParent() { window.opener.location.Reload(true); self.close(); }` I have also tried in code behind with same results `Response.Write("<script language='javascript'> { window.opener.location.reload(true);self.close();return false ; }</script>")` Thanks in advance
3
11,274,864
06/30/2012 14:28:58
1,417,244
05/25/2012 11:15:03
332
2
haskell code - What does 'qualified' mean in 'import qualified Data.List?
haskell code - Import Data.List, I understand but "What does 'qualified' mean in 'import qualified Data.List" ?
haskell
null
null
null
null
null
open
haskell code - What does 'qualified' mean in 'import qualified Data.List? === haskell code - Import Data.List, I understand but "What does 'qualified' mean in 'import qualified Data.List" ?
0
10,164,368
04/15/2012 17:31:00
503,761
11/10/2010 20:57:29
30
1
New parser generator
I'm working on a new LR parsing tool for my needs. I want to known if there are any similar tools available and it's uses. It's a dynamic parser generator. The programmer can derive from one of available parser classes and provide the required information. One time the parser compiled (at run-time), action table will be serialized and used afterward. I think it's as simple as using regular expressions in .NET. I can explain more...
c#
.net
parsing
lr
null
04/15/2012 19:03:54
not a real question
New parser generator === I'm working on a new LR parsing tool for my needs. I want to known if there are any similar tools available and it's uses. It's a dynamic parser generator. The programmer can derive from one of available parser classes and provide the required information. One time the parser compiled (at run-time), action table will be serialized and used afterward. I think it's as simple as using regular expressions in .NET. I can explain more...
1
5,545,429
04/04/2011 23:18:42
333,567
05/05/2010 14:47:02
41
2
When is Clojure's Birthday?
I am giving a presentation and I would like to know when Clojure was officially released. Also, so I know when to send the Birthday Card :)
clojure
null
null
null
null
04/05/2011 00:48:50
off topic
When is Clojure's Birthday? === I am giving a presentation and I would like to know when Clojure was officially released. Also, so I know when to send the Birthday Card :)
2
4,202,136
11/17/2010 06:49:52
278,679
02/22/2010 12:42:35
32
1
need for header node
we say that a header linked list is that which consists of a special node called header node that marks the beginning of the list but i dont understand what is really the importance of this header node. please help me?
data-structures
null
null
null
null
null
open
need for header node === we say that a header linked list is that which consists of a special node called header node that marks the beginning of the list but i dont understand what is really the importance of this header node. please help me?
0
7,349,810
09/08/2011 14:38:39
935,051
09/08/2011 14:38:39
1
0
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on <entity> references an unknown entity
I am receiving the following Hibernate Exception: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on cz.rohan.dusps.model.Switchport.konfiguracniTemplateAccess references an unknown entity: cz.rohan.dusps.model.KonfiguracniTemplate org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:103) org.hibernate.cfg.AnnotationConfiguration.processEndOfQueue(AnnotationConfiguration.java:541) org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:523) org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:380) org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1377) org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954) cz.rohan.dusps.helper.SessionFactoryHelper.initFactory(SessionFactoryHelper.java:122) cz.rohan.dusps.helper.SessionFactoryHelper.getSessionFactory(SessionFactoryHelper.java:134) cz.rohan.dusps.filter.HistorieZmenFilter.doFilter(HistorieZmenFilter.java:102) cz.rohan.dusps.filter.CharsetFilter.doFilter(CharsetFilter.java:41) after ~20 hours spent on the problem with various people, having read every possible blog or forum, I am really getting desperate here. This is a mid-sized project. I should mention the database is Postgres 9.1 and we generate the DB using a modelling tool. Hibernate connects to the database but does not generate it. I have created a new entity in the database, it's called "KonfiguracniTemplate" (configuration template). I have created the model, controller, form, validators, .jsp's, all basically copied 1:1 from an existing entity of a similar nature. I can now work with KonfiguracniTemplate, CRUD is fully working. The problem comes when I reference this KonfiguracniTemplate from the entity called Switchport. In the DB there is a relation between the two: - Switchport 1:1 ... 0:N KonfiguracniTemplate (switchport always references a KonfiguracniTemplate; a KonfiguracniTemplate MAY BE referenced zero or more times) - Switchport has FK konfiguracniTemplateAccess_id for this relation. In .../model/Switchport.java the relation is mapped just like all other relations that are working: @ManyToOne @JoinColumn(nullable = false) private KonfiguracniTemplate konfiguracniTemplateAccess; I have tried various forms: @ManyToOne @JoinColumn(name="konfiguracnitemplateaccess_id", nullable = false) private KonfiguracniTemplate konfiguracniTemplateAccess; or @ManyToOne(targetEntity=KonfiguracniTemplate.class) @JoinColumn(name="konfiguracnitemplateaccess_id", nullable = false) private KonfiguracniTemplate konfiguracniTemplateAccess; I have also checked: - both entities are in the same package - they are both annotated "@Entity" using "import javax.persistence.Entity;" - the build produces no error/warning messages - as long as the reference in Switchport is commented out, everything is fine No matter what I try I cannot get rid of the "references an unknown entity" exception. Can somebody please share an idea what is happening or maybe how to debug the issue? The stacktrace at the top of the post is all I get in the logs. All input is greatly appreciated!
java
hibernate
annotations
entity
many-to-one
null
open
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on <entity> references an unknown entity === I am receiving the following Hibernate Exception: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on cz.rohan.dusps.model.Switchport.konfiguracniTemplateAccess references an unknown entity: cz.rohan.dusps.model.KonfiguracniTemplate org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:103) org.hibernate.cfg.AnnotationConfiguration.processEndOfQueue(AnnotationConfiguration.java:541) org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:523) org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:380) org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1377) org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954) cz.rohan.dusps.helper.SessionFactoryHelper.initFactory(SessionFactoryHelper.java:122) cz.rohan.dusps.helper.SessionFactoryHelper.getSessionFactory(SessionFactoryHelper.java:134) cz.rohan.dusps.filter.HistorieZmenFilter.doFilter(HistorieZmenFilter.java:102) cz.rohan.dusps.filter.CharsetFilter.doFilter(CharsetFilter.java:41) after ~20 hours spent on the problem with various people, having read every possible blog or forum, I am really getting desperate here. This is a mid-sized project. I should mention the database is Postgres 9.1 and we generate the DB using a modelling tool. Hibernate connects to the database but does not generate it. I have created a new entity in the database, it's called "KonfiguracniTemplate" (configuration template). I have created the model, controller, form, validators, .jsp's, all basically copied 1:1 from an existing entity of a similar nature. I can now work with KonfiguracniTemplate, CRUD is fully working. The problem comes when I reference this KonfiguracniTemplate from the entity called Switchport. In the DB there is a relation between the two: - Switchport 1:1 ... 0:N KonfiguracniTemplate (switchport always references a KonfiguracniTemplate; a KonfiguracniTemplate MAY BE referenced zero or more times) - Switchport has FK konfiguracniTemplateAccess_id for this relation. In .../model/Switchport.java the relation is mapped just like all other relations that are working: @ManyToOne @JoinColumn(nullable = false) private KonfiguracniTemplate konfiguracniTemplateAccess; I have tried various forms: @ManyToOne @JoinColumn(name="konfiguracnitemplateaccess_id", nullable = false) private KonfiguracniTemplate konfiguracniTemplateAccess; or @ManyToOne(targetEntity=KonfiguracniTemplate.class) @JoinColumn(name="konfiguracnitemplateaccess_id", nullable = false) private KonfiguracniTemplate konfiguracniTemplateAccess; I have also checked: - both entities are in the same package - they are both annotated "@Entity" using "import javax.persistence.Entity;" - the build produces no error/warning messages - as long as the reference in Switchport is commented out, everything is fine No matter what I try I cannot get rid of the "references an unknown entity" exception. Can somebody please share an idea what is happening or maybe how to debug the issue? The stacktrace at the top of the post is all I get in the logs. All input is greatly appreciated!
0
5,416,404
03/24/2011 08:16:39
672,382
03/23/2011 04:24:36
3
0
php fibonacci code.
$temp = 0; $eleman = 1; $toplam = 1; for($i=0;$i<10;$i++) { $toplam = $eleman + $temp ; $eleman = $temp; $temp = $toplam; echo $toplam.”, “; } I have this code but couldn't figure the algorithm.. can anyone comment on lines so then i may figure the algorithm...
php
algorithm
null
null
null
03/24/2011 08:22:29
too localized
php fibonacci code. === $temp = 0; $eleman = 1; $toplam = 1; for($i=0;$i<10;$i++) { $toplam = $eleman + $temp ; $eleman = $temp; $temp = $toplam; echo $toplam.”, “; } I have this code but couldn't figure the algorithm.. can anyone comment on lines so then i may figure the algorithm...
3
2,322,906
02/24/2010 00:44:13
279,969
02/24/2010 00:44:13
1
0
Interview question - c#
I was tasked to conduct my first interview and would like to pose my question to this world for both their feedback on my question and also on their solutions. I have a legacy system with users and files, the info of all files pertaining to a user are stored on a flat file. I want to upgrade this system by storing all info on a db, design tables, and create a C# system that will populate the new db as well as ftp the files to a new path. Define the desgin consideration and develop a prototype. Note: We are looking more for what design one would use and why rather than code that compiles. If it does then kudos to you and we will give it more weight..
c#
null
null
null
null
11/30/2011 03:12:36
not constructive
Interview question - c# === I was tasked to conduct my first interview and would like to pose my question to this world for both their feedback on my question and also on their solutions. I have a legacy system with users and files, the info of all files pertaining to a user are stored on a flat file. I want to upgrade this system by storing all info on a db, design tables, and create a C# system that will populate the new db as well as ftp the files to a new path. Define the desgin consideration and develop a prototype. Note: We are looking more for what design one would use and why rather than code that compiles. If it does then kudos to you and we will give it more weight..
4
11,198,547
06/25/2012 22:53:57
1,137,752
01/08/2012 23:47:35
34
4
Regular languages & Proofs (models of computation)
I need help with a couple HW questions I got for my models of computation course. I read the relevant chapters in the text (Michael Sipser's Introduction to the Theory of Computation), but I feel like these HW questions necessitate knowledge the book hasn't given me... The first question is this: (1) Prove that there does not exist a language L such that L* = {a}* {b}* The hint is to use contradiction. Obviously the right side is a regular expression; zero or more a's followed by zero or more b's. This could also be the empty string epsilon. My trouble comes in with the L*. I have _absolutely no clue_ what a * applied to a language does, or how to work with this equation because of the * on the language L. Any help, or resources for this question would be appreciated. ===== The second question is easier, and I feel like I can almost do it. I can justify it to myself, so I guess the problem is writing it formally. The second question is this: (2) Prove that if A and V are languages over the same alphabet (sigma) and A (is a subset of) B, then A* (is a subset of) B*. The hint is to use induction. Now obviously (for example) if sigma = {1, 0} and A = {00, 01, 10, 11} and B = {00, 01, 10, 11, 100, 101, 110, 111} Then anything in A* is closed under B* because B = A + some other things... If someone could help me formalize this into an inductive form I'd appreciate it. Thanks
computation-theory
null
null
null
null
06/27/2012 11:51:25
off topic
Regular languages & Proofs (models of computation) === I need help with a couple HW questions I got for my models of computation course. I read the relevant chapters in the text (Michael Sipser's Introduction to the Theory of Computation), but I feel like these HW questions necessitate knowledge the book hasn't given me... The first question is this: (1) Prove that there does not exist a language L such that L* = {a}* {b}* The hint is to use contradiction. Obviously the right side is a regular expression; zero or more a's followed by zero or more b's. This could also be the empty string epsilon. My trouble comes in with the L*. I have _absolutely no clue_ what a * applied to a language does, or how to work with this equation because of the * on the language L. Any help, or resources for this question would be appreciated. ===== The second question is easier, and I feel like I can almost do it. I can justify it to myself, so I guess the problem is writing it formally. The second question is this: (2) Prove that if A and V are languages over the same alphabet (sigma) and A (is a subset of) B, then A* (is a subset of) B*. The hint is to use induction. Now obviously (for example) if sigma = {1, 0} and A = {00, 01, 10, 11} and B = {00, 01, 10, 11, 100, 101, 110, 111} Then anything in A* is closed under B* because B = A + some other things... If someone could help me formalize this into an inductive form I'd appreciate it. Thanks
2
10,159,140
04/15/2012 02:49:54
1,010,171
10/24/2011 03:01:27
37
0
NSXMLParser acting strangely
Having a hard time parsing XML created from a web-form using POST. Here's the scenario: 1) User comes to a web-page, enters their name into a text-field, and clicks SUBMIT 2) This calls a PHP file (called "makeXML.php") which generates an XML file containing that user's name in a tag called "currentUserName" 3) an iPhone App then loads this "makeXML.php" file (using 'loadXMLByURL') and parses it, looking specifically to output the contents of the "currentUserName" tag into a UILabel object. Should be pretty simple - but for some reason, the contents of the "currentUserName" tag are coming up *empty* in the App - though they show up perfectly well in the generated XML code in the browser. What's even stranger, is that if I instead *hard-code* a value to "currentUserName" in the PHP file ("makeXML.php") - as opposed to getting that value from the FORM (using $_POST["userName"];) - it all works perfectly well. I'm able to grab the value from the "currentUserName" tag and output it to the UILabel object. NSXMLParser seems to just not like POST'ed values for some reason. Any ideas? Here's the code: portal.html: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Web-Form</title> </head> <body> <form name="form1" method="post" action="makeXML.php"> <p>Enter your name:</p> <p> <input name="userName" type="text" /> </p> <p> <input type="submit" value="SUBMIT" /> </p> </form> </body> </html> Here is "makeXML.php": <?php header("Content-type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; echo "<document>"; $uName = $_POST["userName"]; echo "Here is the name you typed:"; echo "<br/>"; echo "<theUsersName>$uName</theUsersName>"; echo "</document>"; ?> Here is the outputted code from makeXML.php: (Note that this code comes out all on one line - is that how its supposed to be? Shouldn't the "br" tag be working and forcing a line break there?) <?xml version="1.0" encoding="UTF-8" ?><document>Here is the name you typed:<br/><theUsersName>johnson</theUsersName></document>
php
iphone
xml
post
nsxmlparser
04/16/2012 12:05:37
not a real question
NSXMLParser acting strangely === Having a hard time parsing XML created from a web-form using POST. Here's the scenario: 1) User comes to a web-page, enters their name into a text-field, and clicks SUBMIT 2) This calls a PHP file (called "makeXML.php") which generates an XML file containing that user's name in a tag called "currentUserName" 3) an iPhone App then loads this "makeXML.php" file (using 'loadXMLByURL') and parses it, looking specifically to output the contents of the "currentUserName" tag into a UILabel object. Should be pretty simple - but for some reason, the contents of the "currentUserName" tag are coming up *empty* in the App - though they show up perfectly well in the generated XML code in the browser. What's even stranger, is that if I instead *hard-code* a value to "currentUserName" in the PHP file ("makeXML.php") - as opposed to getting that value from the FORM (using $_POST["userName"];) - it all works perfectly well. I'm able to grab the value from the "currentUserName" tag and output it to the UILabel object. NSXMLParser seems to just not like POST'ed values for some reason. Any ideas? Here's the code: portal.html: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Web-Form</title> </head> <body> <form name="form1" method="post" action="makeXML.php"> <p>Enter your name:</p> <p> <input name="userName" type="text" /> </p> <p> <input type="submit" value="SUBMIT" /> </p> </form> </body> </html> Here is "makeXML.php": <?php header("Content-type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; echo "<document>"; $uName = $_POST["userName"]; echo "Here is the name you typed:"; echo "<br/>"; echo "<theUsersName>$uName</theUsersName>"; echo "</document>"; ?> Here is the outputted code from makeXML.php: (Note that this code comes out all on one line - is that how its supposed to be? Shouldn't the "br" tag be working and forcing a line break there?) <?xml version="1.0" encoding="UTF-8" ?><document>Here is the name you typed:<br/><theUsersName>johnson</theUsersName></document>
1
5,526,871
04/03/2011 01:03:02
592,344
01/27/2011 14:32:46
90
3
uploading issue to Google app engine
I am working on building the application on google app engine . For locally its works well but i am unable to upload to google app engine , previously it worked fine for me and i was able to upload but this time i dnt knw wht i am missing . please help me out The error is Reading application configuration data... Bad configuration: XML error validating C:\Documents and Settings\test\My Documents\NetBeansProjects\Guestbook\build\web\WEB-INF\appengine-web.xml against F:\appengine-java-sdk-1.4.0\docs\appengine-web.xsd Caused by: Content is not allowed in trailing section. Please see the logs [C:\DOCUME~1\test\LOCALS~1\Temp\appcfg1769608549616576065.log] for further information. ******************************************************** There is a new version of the SDK available. ----------- Latest SDK: Release: 1.4.3 Timestamp: Thu Mar 24 19:20:22 CET 2011 API versions: [1.0] ----------- Your SDK: Release: 1.4.0 Timestamp: Thu Dec 02 00:14:18 CET 2010 API versions: [1.0] ----------- Please visit http://code.google.com/appengine for the latest SDK. ******************************************************** Reading application configuration data... Bad configuration: XML error validating C:\Documents and Settings\test\My Documents\NetBeansProjects\Guestbook\build\web\WEB-INF\appengine-web.xml against F:\appengine-java-sdk-1.4.0\docs\appengine-web.xsd Caused by: Content is not allowed in trailing section. Please see the logs [C:\DOCUME~1\test\LOCALS~1\Temp\appcfg8011394645514753544.log] for further information.
google-app-engine
null
null
null
null
04/03/2011 19:06:54
too localized
uploading issue to Google app engine === I am working on building the application on google app engine . For locally its works well but i am unable to upload to google app engine , previously it worked fine for me and i was able to upload but this time i dnt knw wht i am missing . please help me out The error is Reading application configuration data... Bad configuration: XML error validating C:\Documents and Settings\test\My Documents\NetBeansProjects\Guestbook\build\web\WEB-INF\appengine-web.xml against F:\appengine-java-sdk-1.4.0\docs\appengine-web.xsd Caused by: Content is not allowed in trailing section. Please see the logs [C:\DOCUME~1\test\LOCALS~1\Temp\appcfg1769608549616576065.log] for further information. ******************************************************** There is a new version of the SDK available. ----------- Latest SDK: Release: 1.4.3 Timestamp: Thu Mar 24 19:20:22 CET 2011 API versions: [1.0] ----------- Your SDK: Release: 1.4.0 Timestamp: Thu Dec 02 00:14:18 CET 2010 API versions: [1.0] ----------- Please visit http://code.google.com/appengine for the latest SDK. ******************************************************** Reading application configuration data... Bad configuration: XML error validating C:\Documents and Settings\test\My Documents\NetBeansProjects\Guestbook\build\web\WEB-INF\appengine-web.xml against F:\appengine-java-sdk-1.4.0\docs\appengine-web.xsd Caused by: Content is not allowed in trailing section. Please see the logs [C:\DOCUME~1\test\LOCALS~1\Temp\appcfg8011394645514753544.log] for further information.
3
3,441,009
08/09/2010 14:28:54
140,187
07/17/2009 14:02:19
785
36
Legal implication in exploiting a security hole
Please refer to the answer provided [here.][1] Just wanted to understand what are the legal implication if someone really exploited such a security hole to disrupt the system. Will he be legally charged for such act, and what kind of punishment / penalty will be levied. As Cyber laws differ from country to country, please refer to the location you are talking about. Please note I dont have any of such ideas, this is just for the sake of understanding. [1]: http://stackoverflow.com/questions/1469899/worst-security-hole-youve-seen/1471831#1471831
security
legal
null
null
null
08/10/2010 04:41:03
off topic
Legal implication in exploiting a security hole === Please refer to the answer provided [here.][1] Just wanted to understand what are the legal implication if someone really exploited such a security hole to disrupt the system. Will he be legally charged for such act, and what kind of punishment / penalty will be levied. As Cyber laws differ from country to country, please refer to the location you are talking about. Please note I dont have any of such ideas, this is just for the sake of understanding. [1]: http://stackoverflow.com/questions/1469899/worst-security-hole-youve-seen/1471831#1471831
2
6,080,697
05/21/2011 08:55:06
758,808
05/18/2011 08:31:16
8
0
what this code mean ?
what this code mean ? what effect when i transform my code into setuo file ? Dim W As Object Dim E As String W = CreateObject("Wscript.shell") If VB.Left(Extension, 1) <> "." Then E = "." & Extension & "\" Else E = Extension & "\" Extension = Mid(Extension, 2) End If W.regwrite("HKCU\" & E, Extension & " File") W.regwrite("HKCU\" & Extension & " File\", Description) W.regwrite("HKCU\" & Extension & " File\DefaultIcon\", FileIcon) W.regwrite("HKCU\" & Extension & " File\Shell\Open\Command\", ProgramPath & " %1") W.regwrite("HKCU\" & Extension & " File\Shell\", "Open") End Sub and what this mean? W.regwrite("HKCU\" & Extension & " File\Shell\Open\Command\", ProgramPath & " %1")
.net
vb.net
null
null
null
05/21/2011 09:18:30
not a real question
what this code mean ? === what this code mean ? what effect when i transform my code into setuo file ? Dim W As Object Dim E As String W = CreateObject("Wscript.shell") If VB.Left(Extension, 1) <> "." Then E = "." & Extension & "\" Else E = Extension & "\" Extension = Mid(Extension, 2) End If W.regwrite("HKCU\" & E, Extension & " File") W.regwrite("HKCU\" & Extension & " File\", Description) W.regwrite("HKCU\" & Extension & " File\DefaultIcon\", FileIcon) W.regwrite("HKCU\" & Extension & " File\Shell\Open\Command\", ProgramPath & " %1") W.regwrite("HKCU\" & Extension & " File\Shell\", "Open") End Sub and what this mean? W.regwrite("HKCU\" & Extension & " File\Shell\Open\Command\", ProgramPath & " %1")
1
9,620,432
03/08/2012 15:43:09
1,257,341
03/08/2012 15:25:54
1
0
How to implement QuickFix with my c++ project
Hi I'm new with Fix protocol and I've been trying to find a way to implement it into c++ files starting from a XML description file. so by searching on the net they recommended me with Quickfix, what I really want to know is what do we should call QuickFix ? a library or a standard or what exactly ? But my main problem is that lately I downloaded the Quickfix package then I couldn't integrate it into my c++ project even with the QuickFix documentation ( which was vague by the way !) so can someone please describe to me exactly step by step how to configure QuickFix with My Visual c++ project and how can I eventually write this code to parse my XML file: > #include "Application.h" #include "quickfix/Session.h"
c++
xml
xml-parsing
quickfix
fix
null
open
How to implement QuickFix with my c++ project === Hi I'm new with Fix protocol and I've been trying to find a way to implement it into c++ files starting from a XML description file. so by searching on the net they recommended me with Quickfix, what I really want to know is what do we should call QuickFix ? a library or a standard or what exactly ? But my main problem is that lately I downloaded the Quickfix package then I couldn't integrate it into my c++ project even with the QuickFix documentation ( which was vague by the way !) so can someone please describe to me exactly step by step how to configure QuickFix with My Visual c++ project and how can I eventually write this code to parse my XML file: > #include "Application.h" #include "quickfix/Session.h"
0
7,006,389
08/10/2011 05:43:27
887,244
08/10/2011 05:43:27
1
0
how to tokenize a number in string form
how to implement a command-line application, named decode(.exe) without using a tokenizer, or any external libraries. The application should take a single positive integer parameter and output the equivalent number in British English words to stdout e.g. "decode 1" outputs "one" "decode 21" outputs "twenty one" "decode 105" outputs "one hundred and five" "decode 56945781" outputs "fifty six (million) nine (hundred) and forty five (thousand) seven (hundred) and eighty one" The application should be able to handle any number from the range 0 - 999999999
c++
string
tokenization
null
null
08/10/2011 06:00:35
not a real question
how to tokenize a number in string form === how to implement a command-line application, named decode(.exe) without using a tokenizer, or any external libraries. The application should take a single positive integer parameter and output the equivalent number in British English words to stdout e.g. "decode 1" outputs "one" "decode 21" outputs "twenty one" "decode 105" outputs "one hundred and five" "decode 56945781" outputs "fifty six (million) nine (hundred) and forty five (thousand) seven (hundred) and eighty one" The application should be able to handle any number from the range 0 - 999999999
1
8,695,845
01/01/2012 22:00:23
460,386
09/28/2010 08:57:49
121
1
removing and collapsing element using greasemonkey
I would like to remove the upper and left <div> elements from a web page (using greasemonkey/scriptish) in order to optimize its layout for displaying it at a galaxy tab 10.1. The web page is tvtv.de and my first approach (I'm completely new to tinkering web-pages) is: // ==UserScript== // @include http://www.tvtv.de/* // ==/UserScript== var elmDeleted = document.getElementById("header"); elmDeleted.parentNode.removeChild(elmDeleted); elmDeleted = document.getElementById("main_left"); elmDeleted.parentNode.removeChild(elmDeleted); The questionable elements are blanked out, but still use the original space in the layout. I also tried different approaches, like setting the element widths to zero, hiding the elements (element.style.display="none"), etc. but the result has always been the same. Is it possible to 'collapse' the elements, so they won't use any space in the page layout? Any help would be greatly appreciated, thanks in advance.
javascript
greasemonkey
null
null
null
null
open
removing and collapsing element using greasemonkey === I would like to remove the upper and left <div> elements from a web page (using greasemonkey/scriptish) in order to optimize its layout for displaying it at a galaxy tab 10.1. The web page is tvtv.de and my first approach (I'm completely new to tinkering web-pages) is: // ==UserScript== // @include http://www.tvtv.de/* // ==/UserScript== var elmDeleted = document.getElementById("header"); elmDeleted.parentNode.removeChild(elmDeleted); elmDeleted = document.getElementById("main_left"); elmDeleted.parentNode.removeChild(elmDeleted); The questionable elements are blanked out, but still use the original space in the layout. I also tried different approaches, like setting the element widths to zero, hiding the elements (element.style.display="none"), etc. but the result has always been the same. Is it possible to 'collapse' the elements, so they won't use any space in the page layout? Any help would be greatly appreciated, thanks in advance.
0
8,289,111
11/27/2011 21:17:22
673,108
03/23/2011 13:28:40
140
4
Comma separated value & wildcards in mysql
I have a value in my database with comma separated data eg. 11,223,343,123 I want to get the data, if it match a certain number (in this example it's number 223). WHERE wp_postmeta.meta_value IN ('223', '223,%', '%,223,%', '%,223') I togught I could use wildcard for it, but with no luck. Any ideas of how to do this? Maybe its better to do this using PHP?
mysql
wildcard
comma-separated
null
null
null
open
Comma separated value & wildcards in mysql === I have a value in my database with comma separated data eg. 11,223,343,123 I want to get the data, if it match a certain number (in this example it's number 223). WHERE wp_postmeta.meta_value IN ('223', '223,%', '%,223,%', '%,223') I togught I could use wildcard for it, but with no luck. Any ideas of how to do this? Maybe its better to do this using PHP?
0
10,788,186
05/28/2012 17:06:35
1,397,421
05/16/2012 00:06:43
1
0
Impossible to create windows forms application using BusinessLogic of Nopcommerce v.1.9
My client ask me something who seems me very simple to do. He has nopcommerce 1.9 web site , and he wish develop a simple windows forms application to modify clients adresses. So i tryed to configure a news windows forms project : static void Main(string[] args) { // Code that runs on application startup NopConfig.Init(); //initialize IoC IoC.InitializeWith(new DependencyResolverFactory()); //initialize task manager TaskManager.Instance.Initialize(NopConfig.ScheduleTasks); TaskManager.Instance.Start(); //open new FormClient().Show(); TaskManager.Instance.Stop(); } Then i create a service manager who expose data : public class ServiceManager { public ICustomerService CustomerService; public ServiceManager() { var dbContext = IoC.Resolve<NopObjectContext>(); CustomerService = new CustomerService(dbContext); } } And impossible to acess CustomerService methods because resolve methode don't find the concrete classe to instiate for NopObjectContext; Is somebody can show me ? THANKS IN ADVANCE (you can find nop commerce 1.9 in this location : http://nopcommerce.codeplex.com/downloads/get/176949 )
winforms
unity
nopcommerce
null
null
null
open
Impossible to create windows forms application using BusinessLogic of Nopcommerce v.1.9 === My client ask me something who seems me very simple to do. He has nopcommerce 1.9 web site , and he wish develop a simple windows forms application to modify clients adresses. So i tryed to configure a news windows forms project : static void Main(string[] args) { // Code that runs on application startup NopConfig.Init(); //initialize IoC IoC.InitializeWith(new DependencyResolverFactory()); //initialize task manager TaskManager.Instance.Initialize(NopConfig.ScheduleTasks); TaskManager.Instance.Start(); //open new FormClient().Show(); TaskManager.Instance.Stop(); } Then i create a service manager who expose data : public class ServiceManager { public ICustomerService CustomerService; public ServiceManager() { var dbContext = IoC.Resolve<NopObjectContext>(); CustomerService = new CustomerService(dbContext); } } And impossible to acess CustomerService methods because resolve methode don't find the concrete classe to instiate for NopObjectContext; Is somebody can show me ? THANKS IN ADVANCE (you can find nop commerce 1.9 in this location : http://nopcommerce.codeplex.com/downloads/get/176949 )
0
9,458,464
02/26/2012 23:50:06
910,201
08/24/2011 17:57:20
319
14
How can I put Windows-based video formats, or YouTube's MP4 format, from PC to iPhone?
How can I put Windows-based video formats, or even better YouTube's MP4 format, from my Windows PC to my iPhone? I have an iPhone 3G and whatever iTunes is on the net, and I have no idea how to do this seemingly simple request. Please do not close. Bonus points (not really) for step-by-step instructions.
iphone
video
file-transfer
null
null
02/27/2012 00:35:44
off topic
How can I put Windows-based video formats, or YouTube's MP4 format, from PC to iPhone? === How can I put Windows-based video formats, or even better YouTube's MP4 format, from my Windows PC to my iPhone? I have an iPhone 3G and whatever iTunes is on the net, and I have no idea how to do this seemingly simple request. Please do not close. Bonus points (not really) for step-by-step instructions.
2
3,675,708
09/09/2010 10:26:10
422,859
08/17/2010 12:53:24
47
0
Android Programming and Java
I had newly started Android Programming. It is known to me that the Android Programming is purely based on the Core Java. Now I wonder that Is it possible for person to work on Application Development in "Core Java" or "Advanced Java" if the person is nicely familiar with the Android Programming only????? I mean if he tries to learn or get into Core Java or Advanced Java Programming, Can he able to do so!!!! I am just trying to clear my doubts. Thanks, david
java
android
null
null
null
01/29/2012 02:29:44
not constructive
Android Programming and Java === I had newly started Android Programming. It is known to me that the Android Programming is purely based on the Core Java. Now I wonder that Is it possible for person to work on Application Development in "Core Java" or "Advanced Java" if the person is nicely familiar with the Android Programming only????? I mean if he tries to learn or get into Core Java or Advanced Java Programming, Can he able to do so!!!! I am just trying to clear my doubts. Thanks, david
4
11,273,808
06/30/2012 11:44:36
731,696
04/29/2011 19:48:52
671
9
tomcat restart => Could not find a SessionFactory [uuid=...,name=null]
Continue solving [this situation][1], I've updated `hibernate` ond `sqljdbc4` `jars` and exception is changed now (please take a look bellow). I'm using - Hibernate v4.1.4 FINAL - JSF 2.1 (mojarra) - all my `@ManagedBeans` `implements Serializable` It has some relation to `@ViewScoped`, because `@SessionScoped` beans are OK **exception**: 30.6.2012 13:29:07 org.apache.catalina.session.StandardManager doLoad SEVERE: IOException while loading persisted sessions: java.io.InvalidObjectException: Could not find a SessionFactory [uuid=f9c33312-cf7f-4f65-ae5f-44261705c18e,name=null] java.io.InvalidObjectException: Could not find a SessionFactory [uuid=f9c33312-cf7f-4f65-ae5f-44261705c18e,name=null] at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization(SessionFactoryImpl.java:2007) at org.hibernate.internal.SessionFactoryImpl.deserialize(SessionFactoryImpl.java:2037) at org.hibernate.internal.SessionImpl.readObject(SessionImpl.java:2092) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284) at org.apache.catalina.session.StandardManager.load(StandardManager.java:204) at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5282) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I've tried to edit my `hibernate.cfg.xml` file this way: <session-factory name="java:hibernate/SessionFactory"> And the error reportd has been changed to: 30.6.2012 13:38:23 org.apache.catalina.session.StandardManager startInternal SEVERE: Exception loading sessions from persistent storage java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(Unknown Source) at org.hibernate.internal.SessionFactoryRegistry.getSessionFactory(SessionFactoryRegistry.java:140) at org.hibernate.internal.SessionFactoryRegistry.getNamedSessionFactory(SessionFactoryRegistry.java:135) at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization(SessionFactoryImpl.java:2000) at org.hibernate.internal.SessionFactoryImpl.deserialize(SessionFactoryImpl.java:2037) at org.hibernate.internal.SessionImpl.readObject(SessionImpl.java:2092) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284) at org.apache.catalina.session.StandardManager.load(StandardManager.java:204) at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5282) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Don't you ever met with this error reports? [1]: http://stackoverflow.com/questions/6506476/java-lang-illegalstateexception-unread-block-data
hibernate
jsf
tomcat
jsf-2.0
null
null
open
tomcat restart => Could not find a SessionFactory [uuid=...,name=null] === Continue solving [this situation][1], I've updated `hibernate` ond `sqljdbc4` `jars` and exception is changed now (please take a look bellow). I'm using - Hibernate v4.1.4 FINAL - JSF 2.1 (mojarra) - all my `@ManagedBeans` `implements Serializable` It has some relation to `@ViewScoped`, because `@SessionScoped` beans are OK **exception**: 30.6.2012 13:29:07 org.apache.catalina.session.StandardManager doLoad SEVERE: IOException while loading persisted sessions: java.io.InvalidObjectException: Could not find a SessionFactory [uuid=f9c33312-cf7f-4f65-ae5f-44261705c18e,name=null] java.io.InvalidObjectException: Could not find a SessionFactory [uuid=f9c33312-cf7f-4f65-ae5f-44261705c18e,name=null] at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization(SessionFactoryImpl.java:2007) at org.hibernate.internal.SessionFactoryImpl.deserialize(SessionFactoryImpl.java:2037) at org.hibernate.internal.SessionImpl.readObject(SessionImpl.java:2092) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284) at org.apache.catalina.session.StandardManager.load(StandardManager.java:204) at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5282) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I've tried to edit my `hibernate.cfg.xml` file this way: <session-factory name="java:hibernate/SessionFactory"> And the error reportd has been changed to: 30.6.2012 13:38:23 org.apache.catalina.session.StandardManager startInternal SEVERE: Exception loading sessions from persistent storage java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(Unknown Source) at org.hibernate.internal.SessionFactoryRegistry.getSessionFactory(SessionFactoryRegistry.java:140) at org.hibernate.internal.SessionFactoryRegistry.getNamedSessionFactory(SessionFactoryRegistry.java:135) at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization(SessionFactoryImpl.java:2000) at org.hibernate.internal.SessionFactoryImpl.deserialize(SessionFactoryImpl.java:2037) at org.hibernate.internal.SessionImpl.readObject(SessionImpl.java:2092) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284) at org.apache.catalina.session.StandardManager.load(StandardManager.java:204) at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5282) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Don't you ever met with this error reports? [1]: http://stackoverflow.com/questions/6506476/java-lang-illegalstateexception-unread-block-data
0
51,645
09/09/2008 11:28:30
5,019
09/07/2008 11:51:36
21
2
How to discover USB storage devices and writable CD/DVD drives (C#)
How can I discover any USB storage devices and/or CD/DVD writers available at a given time (using C# .Net2.0). I would like to present users with a choice of devices onto which a file can be stored for physically removal - i.e. not the hard drive.
c#
.net-2.0
null
null
null
null
open
How to discover USB storage devices and writable CD/DVD drives (C#) === How can I discover any USB storage devices and/or CD/DVD writers available at a given time (using C# .Net2.0). I would like to present users with a choice of devices onto which a file can be stored for physically removal - i.e. not the hard drive.
0
9,442,726
02/25/2012 09:05:51
1,179,779
01/31/2012 07:41:25
6
0
AJAX Variable Scope
Is there a way to output desired mlength outside downloadURL() in the code below? How? var markers=new Array(); var mlength=0; downloadUrl("phpsqlajax_genxml.php", function(data) { var xml = data.responseXML; markers = xml.documentElement.getElementsByTagName("marker"); mlength = markers.length; alert(mlength); //output is not 0 (ex. 3) }); alert(mlength); //outputs 0
php
javascript
ajax
null
null
null
open
AJAX Variable Scope === Is there a way to output desired mlength outside downloadURL() in the code below? How? var markers=new Array(); var mlength=0; downloadUrl("phpsqlajax_genxml.php", function(data) { var xml = data.responseXML; markers = xml.documentElement.getElementsByTagName("marker"); mlength = markers.length; alert(mlength); //output is not 0 (ex. 3) }); alert(mlength); //outputs 0
0
11,680,456
07/27/2012 01:55:36
1,509,580
07/08/2012 04:50:28
43
4
Does anyone know the time that the app review process closes?
I originally thought they review from 9-5pm, however my app was rejected at 7:51pm... Are they reviewing them 24/7 or do they close at a certain time. (I'm in the same time zone as cupertino)
iphone
ios
xcode
null
null
07/27/2012 11:46:04
off topic
Does anyone know the time that the app review process closes? === I originally thought they review from 9-5pm, however my app was rejected at 7:51pm... Are they reviewing them 24/7 or do they close at a certain time. (I'm in the same time zone as cupertino)
2
1,573,732
10/15/2009 17:02:22
99,876
05/02/2009 14:53:05
606
12
Using dlopen, how can I cope with changes to the library file I have loaded?
I have a program written in C++ which uses dlopen to load a dynamic library (Linux, i386, .so). When the library file is subsequently modified, my program tends to crash. This is understandable, since presumably the file is simply mapped into memory. My question is: other than simply creating myself a copy of the file and dlopening that, is there way for me to load a shared object which is safe against subsequent modifications, or any way to recover from modifications to a shared object that I have loaded?
c++
dlopen
linux
null
null
null
open
Using dlopen, how can I cope with changes to the library file I have loaded? === I have a program written in C++ which uses dlopen to load a dynamic library (Linux, i386, .so). When the library file is subsequently modified, my program tends to crash. This is understandable, since presumably the file is simply mapped into memory. My question is: other than simply creating myself a copy of the file and dlopening that, is there way for me to load a shared object which is safe against subsequent modifications, or any way to recover from modifications to a shared object that I have loaded?
0
18,292
08/20/2008 16:13:39
1,946
08/19/2008 14:53:06
21
0
What are some good SSH Servers for windows?
Trying to setup an SSH server on windows server 03. What are some good ones? Preferably open source. I plan on using WinSPC as a client so a server which supports the advanced features implemented by that client would be great.
deployment
ssh
null
null
null
08/17/2011 03:10:20
off topic
What are some good SSH Servers for windows? === Trying to setup an SSH server on windows server 03. What are some good ones? Preferably open source. I plan on using WinSPC as a client so a server which supports the advanced features implemented by that client would be great.
2
6,176,533
05/30/2011 12:53:09
767,244
05/24/2011 06:54:17
210
0
How should i start with PHP zend framework OOP based website
I want to build a website having these things 1. PHP5 or above 2. Zend Framework 3. Purely Object oriented 4. Unit testing 5. Agile Methodology 6. ORM I have to submit one project as a website using above features. I know PHP for about 5 years but not in OOP and i have made many joomla/php/mysql/jquery websites. I know the basics of spring/hibernate/annotations/spring MVC/java but not advanced level So I want to know what sort of website i can build which can have those features. If there is any book or tutorial , please provide the link so that i can start. i have 6 months time
php
unit-testing
oop
zend-framework
null
05/31/2011 14:56:27
not constructive
How should i start with PHP zend framework OOP based website === I want to build a website having these things 1. PHP5 or above 2. Zend Framework 3. Purely Object oriented 4. Unit testing 5. Agile Methodology 6. ORM I have to submit one project as a website using above features. I know PHP for about 5 years but not in OOP and i have made many joomla/php/mysql/jquery websites. I know the basics of spring/hibernate/annotations/spring MVC/java but not advanced level So I want to know what sort of website i can build which can have those features. If there is any book or tutorial , please provide the link so that i can start. i have 6 months time
4
9,625,883
03/08/2012 22:13:46
1,258,031
03/08/2012 21:26:45
1
0
undefined variable notice in php
I have a error message like this "Notice: Undefined variable: sName in C:\HostingSpaces\XYZ\XYZ.com\wwwroot\index.php on line 353".I have surfed few sites they say that this is because you have not declared the variable before using it.I know this is not error but is a notification.They say that either you have to declare a variable before using it or you have to use isset() function.But I have this problem on many of my scripts and I cant edit all of them.I have also tried function "error_reporting()" ,"ini_set()". And also updated .htaccess file but it is still not working.I think I need some more knowledge on how to use .htaccess file or I have to update php.ini file.But I dont have control over it because I m using shared hosting.Please help me.
php
error-handling
null
null
null
03/08/2012 22:19:10
not a real question
undefined variable notice in php === I have a error message like this "Notice: Undefined variable: sName in C:\HostingSpaces\XYZ\XYZ.com\wwwroot\index.php on line 353".I have surfed few sites they say that this is because you have not declared the variable before using it.I know this is not error but is a notification.They say that either you have to declare a variable before using it or you have to use isset() function.But I have this problem on many of my scripts and I cant edit all of them.I have also tried function "error_reporting()" ,"ini_set()". And also updated .htaccess file but it is still not working.I think I need some more knowledge on how to use .htaccess file or I have to update php.ini file.But I dont have control over it because I m using shared hosting.Please help me.
1
6,381,722
06/17/2011 05:31:57
802,641
06/17/2011 03:49:12
11
0
what is the chrome Ctrl-Shift-J window called?
In Opera, we call it DragonFly (Ctrl-Shift-I) In Firefox, it is firebug. What's the sexy name for the tool in Chrome? (Ctrl-Shift-J)
html
google-chrome
extension
null
null
06/17/2011 08:10:24
off topic
what is the chrome Ctrl-Shift-J window called? === In Opera, we call it DragonFly (Ctrl-Shift-I) In Firefox, it is firebug. What's the sexy name for the tool in Chrome? (Ctrl-Shift-J)
2
10,427,212
05/03/2012 07:48:24
357,261
06/03/2010 08:59:33
913
0
what are the common things that email don't get forwrded?
I have proper setting for smtp in web config, and it runs without error, but the email dont get forwarded to appropriate user what may be the reason behind this, am i missing some server setting, please light on it. While i see it get saved in specifiedPickupDirectory.
c#
asp.net
smtp
null
null
05/16/2012 12:35:21
off topic
what are the common things that email don't get forwrded? === I have proper setting for smtp in web config, and it runs without error, but the email dont get forwarded to appropriate user what may be the reason behind this, am i missing some server setting, please light on it. While i see it get saved in specifiedPickupDirectory.
2
4,255,104
11/23/2010 10:32:51
289,666
03/09/2010 13:00:04
1,972
49
Regex to match ALL-CAPS words? (php)
I have a function which fixes capitalization for those naughty users that insist on making everything UPPERCASE! I want my function to only be called when a string contains an uppcase **word**, or more than 3 uppercase letters. Can this be done with a regex?
php
regex
null
null
null
null
open
Regex to match ALL-CAPS words? (php) === I have a function which fixes capitalization for those naughty users that insist on making everything UPPERCASE! I want my function to only be called when a string contains an uppcase **word**, or more than 3 uppercase letters. Can this be done with a regex?
0
4,863,875
02/01/2011 14:39:50
282,343
02/26/2010 20:13:25
199
14
Working with cronjobs
I am venturing into the world of setting up cronjobs and trying to learn more about the server side of things. In doing so, I have attempted to setup a Cronjob on my server to run two separate Ruby scripts on two separate days. **The Problem:** I setup a cronjob to run at noon on Feb 8, 2011 on the 2nd day of the week (Tuesday), but it ran today instead of the 8th. **Cronjobs** # m h dom mon dow command 00 12 5 2 6 /usr/local/bin/ruby /home/ubuntu/email_f.rb 00 12 8 2 2 /usr/local/bin/ruby /home/ubuntu/email_g.rb Am I doing something wrong? The second script is the one that should run on Feb 8, which is next Tuesday, but like I said, it ran today instead.
ubuntu
cron
crontab
null
null
null
open
Working with cronjobs === I am venturing into the world of setting up cronjobs and trying to learn more about the server side of things. In doing so, I have attempted to setup a Cronjob on my server to run two separate Ruby scripts on two separate days. **The Problem:** I setup a cronjob to run at noon on Feb 8, 2011 on the 2nd day of the week (Tuesday), but it ran today instead of the 8th. **Cronjobs** # m h dom mon dow command 00 12 5 2 6 /usr/local/bin/ruby /home/ubuntu/email_f.rb 00 12 8 2 2 /usr/local/bin/ruby /home/ubuntu/email_g.rb Am I doing something wrong? The second script is the one that should run on Feb 8, which is next Tuesday, but like I said, it ran today instead.
0
6,187,521
05/31/2011 12:24:50
776,226
05/30/2011 12:17:49
1
1
what is need of connection open and close of execution in query in winform?
In my form, lot of combo box is there. I want to load different table datas to combo box. I am trying to do that. but code is going on very long. Because of the connection open and close codings. when i run two command in without close connection and open it throw >There is already an open DataReader associated with this Connection which must be closed first. Exception. how to remove this open and close in my program string MyConString = ConfigurationManager.ConnectionStrings["College_Management_System.Properties.Settings.cmsConnectionString"].ConnectionString; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); MySqlDataReader Reader; command.CommandText = "select name from course_master"; connection.Open(); Reader = command.ExecuteReader(); while (Reader.Read()) { cmbo_course.Items.Add(Reader[0].ToString()); } command.CommandText = "select name from country_master"; Reader = command.ExecuteReader(); while (Reader.Read()) { cmbo_perCountry.Items.Add(Reader[0].ToString()); cmbo_country.Items.Add(Reader[0].ToString()); } connection.Close(); thanks in advance.
mysql
winforms
null
null
null
null
open
what is need of connection open and close of execution in query in winform? === In my form, lot of combo box is there. I want to load different table datas to combo box. I am trying to do that. but code is going on very long. Because of the connection open and close codings. when i run two command in without close connection and open it throw >There is already an open DataReader associated with this Connection which must be closed first. Exception. how to remove this open and close in my program string MyConString = ConfigurationManager.ConnectionStrings["College_Management_System.Properties.Settings.cmsConnectionString"].ConnectionString; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); MySqlDataReader Reader; command.CommandText = "select name from course_master"; connection.Open(); Reader = command.ExecuteReader(); while (Reader.Read()) { cmbo_course.Items.Add(Reader[0].ToString()); } command.CommandText = "select name from country_master"; Reader = command.ExecuteReader(); while (Reader.Read()) { cmbo_perCountry.Items.Add(Reader[0].ToString()); cmbo_country.Items.Add(Reader[0].ToString()); } connection.Close(); thanks in advance.
0
8,035,681
11/07/2011 11:15:28
239,512
12/28/2009 10:46:46
585
14
php in_array with strings containing "&" or "space" in php
I have an array like : $array = array('a & b' => 'A & B', 'c & d'=>'C & D'); $string = 'a & b'; when I do `in_array(ucwords($string),$array)` I get FALSE if I do `array_key_exists($string, $array)` I also get FALSE any idea? thanks
php
null
null
null
null
null
open
php in_array with strings containing "&" or "space" in php === I have an array like : $array = array('a & b' => 'A & B', 'c & d'=>'C & D'); $string = 'a & b'; when I do `in_array(ucwords($string),$array)` I get FALSE if I do `array_key_exists($string, $array)` I also get FALSE any idea? thanks
0
4,558,621
12/29/2010 22:59:44
148,009
07/30/2009 18:03:15
3,228
173
WCF - Return object without serializing?
One of my WCF functions returns an object that has a member variable of a type from another library that is beyond my control. I cannot decorate that library's classes. In fact, I cannot even use DataContractSurrogate because the library's classes have private member variables that are essential to operation (i.e. if I return the object without those private member variables, the public properties throw exceptions). If I say that interoperability for this particular method is not needed (at least until the owners of this library can revise to make their objects serializable), is it possible for me to use WCF to return this object such that it can at least be consumed by a .NET client? How do I go about doing that?
wcf
serialization
null
null
null
null
open
WCF - Return object without serializing? === One of my WCF functions returns an object that has a member variable of a type from another library that is beyond my control. I cannot decorate that library's classes. In fact, I cannot even use DataContractSurrogate because the library's classes have private member variables that are essential to operation (i.e. if I return the object without those private member variables, the public properties throw exceptions). If I say that interoperability for this particular method is not needed (at least until the owners of this library can revise to make their objects serializable), is it possible for me to use WCF to return this object such that it can at least be consumed by a .NET client? How do I go about doing that?
0
1,114,767
07/11/2009 22:03:55
88,383
04/08/2009 00:53:19
2,764
141
Django Inheritance And Foreign Keys
Basically, I have a model where I've created a superclass that many other classes share, and then each of those classes has some unique features that differ from each other. Let's say class A is the superclass, and class B, C, and D are children of that class. Both class B and class C can have multiples of class D, however I've seen that it's best to put the foreign key relationship in class D, which then refers to its parent class. Now in other languages, I could simply say it has a ForeignKey relationship to class A, and then the language recognizes the classes' true type. However, I don't think that's how it works with Python. What's the best recommended way of pursuing this issue?
django
python
foreign-key
inheritance
null
null
open
Django Inheritance And Foreign Keys === Basically, I have a model where I've created a superclass that many other classes share, and then each of those classes has some unique features that differ from each other. Let's say class A is the superclass, and class B, C, and D are children of that class. Both class B and class C can have multiples of class D, however I've seen that it's best to put the foreign key relationship in class D, which then refers to its parent class. Now in other languages, I could simply say it has a ForeignKey relationship to class A, and then the language recognizes the classes' true type. However, I don't think that's how it works with Python. What's the best recommended way of pursuing this issue?
0
3,068,958
06/18/2010 10:49:11
100,675
05/04/2009 05:23:29
215
13
getTitle() on Doctrine i18n with non-default language
I'm having a problem getting the title of an object from my i18n object in Doctrine 1.1.6 / Symfony 1.2 I have the following Doctrine Table method: public function getPlace($place_id, $lang=''){ $q = Doctrine::getTable('Place') ->createQuery('p'); if($lang != '') $q = $q->leftJoin('p.Translation ptr') ->addWhere('ptr.lang = ?', $lang); return $q->addWhere('p.id = ?', $place_id) ->fetchOne(); } Then on the view file if I do $place->getTitle(), it prints the title correctly in the language I wanted. However, if I do $place->getTitle() on an action it returns nothing, I have to do $place->Translation['es']->title to get the title in Spanish. If I work with the default language ('en') $place->getTitle() works. Any idea on how to make $place->getTitle() to work always? thanks!
doctrine
internationalization
null
null
null
null
open
getTitle() on Doctrine i18n with non-default language === I'm having a problem getting the title of an object from my i18n object in Doctrine 1.1.6 / Symfony 1.2 I have the following Doctrine Table method: public function getPlace($place_id, $lang=''){ $q = Doctrine::getTable('Place') ->createQuery('p'); if($lang != '') $q = $q->leftJoin('p.Translation ptr') ->addWhere('ptr.lang = ?', $lang); return $q->addWhere('p.id = ?', $place_id) ->fetchOne(); } Then on the view file if I do $place->getTitle(), it prints the title correctly in the language I wanted. However, if I do $place->getTitle() on an action it returns nothing, I have to do $place->Translation['es']->title to get the title in Spanish. If I work with the default language ('en') $place->getTitle() works. Any idea on how to make $place->getTitle() to work always? thanks!
0
20,232
08/21/2008 15:26:42
2,025
08/19/2008 20:59:50
31
7
What languages should I learn before Uni?
This time next year I'll have my A level results and hopefully a Computer Science place at a university. At the moment I'm fairly competent in PHP but I'd like to use the next year to learn something new that would help me next year. So what languages would benefit me at the moment? At the moment I'm thinking about picking up Java, or perhaps C/C++. Any others I should think about?
computer-science
university
null
null
null
07/28/2012 13:50:52
not constructive
What languages should I learn before Uni? === This time next year I'll have my A level results and hopefully a Computer Science place at a university. At the moment I'm fairly competent in PHP but I'd like to use the next year to learn something new that would help me next year. So what languages would benefit me at the moment? At the moment I'm thinking about picking up Java, or perhaps C/C++. Any others I should think about?
4
8,812,674
01/11/2012 00:41:22
606,696
02/07/2011 15:43:35
84
8
how to share global variables across multiple octave scripts?
Suppose I have three octave scripts `a.m, b.m, c.m`, and two global variables `x, y`. Is it possible to define these global variables in such a way that they can be shared across scripts? For example in a separate include file?
octave
null
null
null
null
null
open
how to share global variables across multiple octave scripts? === Suppose I have three octave scripts `a.m, b.m, c.m`, and two global variables `x, y`. Is it possible to define these global variables in such a way that they can be shared across scripts? For example in a separate include file?
0
9,134,160
02/03/2012 19:12:29
789,429
06/08/2011 15:06:36
95
7
Image transitions in monotouch
I'm exploring what transitions/effects are available for image switching. Main idea was to use 2 UIImageView and switch views using built-in iOS animations: - Flip views - Curl - swing - fade in/out - zoom in/out is there other effects i can use in my slideshow? BTW, I'm not gonna use paging control. Will it be easier to work with UIImage on a single UIImageView?
ios
monotouch
uiimage
null
null
null
open
Image transitions in monotouch === I'm exploring what transitions/effects are available for image switching. Main idea was to use 2 UIImageView and switch views using built-in iOS animations: - Flip views - Curl - swing - fade in/out - zoom in/out is there other effects i can use in my slideshow? BTW, I'm not gonna use paging control. Will it be easier to work with UIImage on a single UIImageView?
0
8,010,514
11/04/2011 14:13:18
1,027,046
11/03/2011 05:58:59
31
0
how to put the whole program in a infinite loop controlled by command line arguments
Programming Language : C I'd like to put my program in a infinite loop controlled by command line arguments.. I mean, unless I enter "quit" it should keep on executing based upon the arguments I enter to do..
c
command-line-arguments
null
null
null
11/04/2011 15:01:31
not a real question
how to put the whole program in a infinite loop controlled by command line arguments === Programming Language : C I'd like to put my program in a infinite loop controlled by command line arguments.. I mean, unless I enter "quit" it should keep on executing based upon the arguments I enter to do..
1
8,627,990
12/25/2011 02:54:28
948,620
09/16/2011 10:36:45
20
1
Android RelativeLayout My Own MousePadView
Please help me to fix the code below. I am making a mousepad view for my Android Remote Application. public class MousePadView extends RelativeLayout { private float scale; // MOUSE BUTTONS LEFT CLICK, MIDDLE CLICK, RIGHT CLICK private LinearLayout layoutMouseButtonBody; private RelativeLayout.LayoutParams paramsMouseButtonBody; private Button left; private Button middle; private Button right; private LinearLayout.LayoutParams paramsButtons; // BUTTONS FOR MOUSEWHEEL (UP AND DOWN) private LinearLayout layoutWheelsBody; private RelativeLayout.LayoutParams paramsWheelBody; private Button up; private Button down; private LinearLayout.LayoutParams paramsWheelButton; public MousePadView2(Context context, AttributeSet attrs, int defStyle) { // CONSTRUCTOR super(context, attrs, defStyle); scale = context.getResources().getDisplayMetrics().density; // GET SCALE FOR CONVERTING DPI TO PIXELS // MOUSE BUTTON LAYOUT paramsButtons = new LinearLayout.LayoutParams(DpiToPixels(0), LayoutParams.WRAP_CONTENT, 1); left = new Button(context); left.setText("L"); left.setLayoutParams(paramsButtons); middle = new Button(context); middle.setText("M"); middle.setLayoutParams(paramsButtons); right = new Button(context); right.setText("R"); right.setLayoutParams(paramsButtons); paramsMouseButtonBody = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT); paramsMouseButtonBody.addRule(ALIGN_PARENT_BOTTOM); // RELATIVE LAYOUT RULES paramsMouseButtonBody.addRule(ALIGN_PARENT_LEFT); // RELATIVE LAYOUT RULES paramsMouseButtonBody.addRule(ALIGN_PARENT_RIGHT); // RELATIVE LAYOUT RULES layoutMouseButtonBody = new LinearLayout(context); layoutMouseButtonBody.setBackgroundResource(android.R.drawable.bottom_bar); // layoutMouseButtonBody.setPadding(0, DpiToPixels(4), 0, 0); layoutMouseButtonBody.setOrientation(LinearLayout.HORIZONTAL); layoutMouseButtonBody.setLayoutParams(paramsMouseButtonBody); layoutMouseButtonBody.addView(left); layoutMouseButtonBody.addView(middle); layoutMouseButtonBody.addView(right); // WHEELS paramsWheelButton = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); up = new Button(context); up.setText("U"); up.setLayoutParams(paramsWheelButton); down = new Button(context); down.setText("D"); down.setLayoutParams(paramsWheelButton); paramsWheelBody = new RelativeLayout.LayoutParams(DpiToPixels(32), LayoutParams.WRAP_CONTENT); paramsWheelBody.addRule(LEFT_OF, layoutMouseButtonBody.getId()); paramsWheelBody.addRule(ALIGN_PARENT_BOTTOM); layoutWheelsBody = new LinearLayout(context); layoutWheelsBody.setOrientation(LinearLayout.VERTICAL); layoutWheelsBody.setBackgroundResource(android.R.drawable.bottom_bar); layoutWheelsBody.setLayoutParams(paramsWheelBody); layoutWheelsBody.addView(up); layoutWheelsBody.addView(down); // PARENT setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); addView(layoutMouseButtonBody); // add mousebutton layout in parent (relativelayout) addView(layoutWheelsBody); // add mousewheel button layout in parent (relativelayout) } private int DpiToPixels(int dp) { return (int)(dp * scale + 0.5f); // converting DPI to Pixels } } ![The output generated by Android SDK][1] ![This is the output that I want][2] The image on the Left is the output generated by Android SDK and The right one is the output that I want. [1]: http://i.stack.imgur.com/iFhYN.jpg [2]: http://i.stack.imgur.com/zOsOK.jpg Please Help me. I don't want to inflate layout from XML.
android
android-layout
null
null
null
null
open
Android RelativeLayout My Own MousePadView === Please help me to fix the code below. I am making a mousepad view for my Android Remote Application. public class MousePadView extends RelativeLayout { private float scale; // MOUSE BUTTONS LEFT CLICK, MIDDLE CLICK, RIGHT CLICK private LinearLayout layoutMouseButtonBody; private RelativeLayout.LayoutParams paramsMouseButtonBody; private Button left; private Button middle; private Button right; private LinearLayout.LayoutParams paramsButtons; // BUTTONS FOR MOUSEWHEEL (UP AND DOWN) private LinearLayout layoutWheelsBody; private RelativeLayout.LayoutParams paramsWheelBody; private Button up; private Button down; private LinearLayout.LayoutParams paramsWheelButton; public MousePadView2(Context context, AttributeSet attrs, int defStyle) { // CONSTRUCTOR super(context, attrs, defStyle); scale = context.getResources().getDisplayMetrics().density; // GET SCALE FOR CONVERTING DPI TO PIXELS // MOUSE BUTTON LAYOUT paramsButtons = new LinearLayout.LayoutParams(DpiToPixels(0), LayoutParams.WRAP_CONTENT, 1); left = new Button(context); left.setText("L"); left.setLayoutParams(paramsButtons); middle = new Button(context); middle.setText("M"); middle.setLayoutParams(paramsButtons); right = new Button(context); right.setText("R"); right.setLayoutParams(paramsButtons); paramsMouseButtonBody = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT); paramsMouseButtonBody.addRule(ALIGN_PARENT_BOTTOM); // RELATIVE LAYOUT RULES paramsMouseButtonBody.addRule(ALIGN_PARENT_LEFT); // RELATIVE LAYOUT RULES paramsMouseButtonBody.addRule(ALIGN_PARENT_RIGHT); // RELATIVE LAYOUT RULES layoutMouseButtonBody = new LinearLayout(context); layoutMouseButtonBody.setBackgroundResource(android.R.drawable.bottom_bar); // layoutMouseButtonBody.setPadding(0, DpiToPixels(4), 0, 0); layoutMouseButtonBody.setOrientation(LinearLayout.HORIZONTAL); layoutMouseButtonBody.setLayoutParams(paramsMouseButtonBody); layoutMouseButtonBody.addView(left); layoutMouseButtonBody.addView(middle); layoutMouseButtonBody.addView(right); // WHEELS paramsWheelButton = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); up = new Button(context); up.setText("U"); up.setLayoutParams(paramsWheelButton); down = new Button(context); down.setText("D"); down.setLayoutParams(paramsWheelButton); paramsWheelBody = new RelativeLayout.LayoutParams(DpiToPixels(32), LayoutParams.WRAP_CONTENT); paramsWheelBody.addRule(LEFT_OF, layoutMouseButtonBody.getId()); paramsWheelBody.addRule(ALIGN_PARENT_BOTTOM); layoutWheelsBody = new LinearLayout(context); layoutWheelsBody.setOrientation(LinearLayout.VERTICAL); layoutWheelsBody.setBackgroundResource(android.R.drawable.bottom_bar); layoutWheelsBody.setLayoutParams(paramsWheelBody); layoutWheelsBody.addView(up); layoutWheelsBody.addView(down); // PARENT setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); addView(layoutMouseButtonBody); // add mousebutton layout in parent (relativelayout) addView(layoutWheelsBody); // add mousewheel button layout in parent (relativelayout) } private int DpiToPixels(int dp) { return (int)(dp * scale + 0.5f); // converting DPI to Pixels } } ![The output generated by Android SDK][1] ![This is the output that I want][2] The image on the Left is the output generated by Android SDK and The right one is the output that I want. [1]: http://i.stack.imgur.com/iFhYN.jpg [2]: http://i.stack.imgur.com/zOsOK.jpg Please Help me. I don't want to inflate layout from XML.
0
11,256,479
06/29/2012 05:27:14
783,743
06/04/2011 08:22:56
1,363
75
How to simulate backreferences, lookaheads, and lookbehinds in finite state automata?
I created a simple regular expression lexer and parser to take a regular expression and generate its parse tree. Creating a non-deterministic finite state automaton from this parse tree is relatively simple for basic regular expressions. However I can't seem to wrap my head around how to simulate backreferences, lookaheads, and lookbehinds. From what I read in the purple dragon book I understood that to simulate a lookahead (e.g. `r/s`) where the regular expression `r` is matched iff it's followed by the regular expression `s` you create a non-deterministic finite state automaton in which `/` is replaced by `ε`. Is it possible to create a deterministic finite state automaton that does the same? What about simulating negative lookaheads and lookbehinds? I would really appreciate it if you would link me to a resource which describes how to do this in detail.
regex
finite-automata
lookahead
backreference
lookbehind
06/30/2012 09:07:46
off topic
How to simulate backreferences, lookaheads, and lookbehinds in finite state automata? === I created a simple regular expression lexer and parser to take a regular expression and generate its parse tree. Creating a non-deterministic finite state automaton from this parse tree is relatively simple for basic regular expressions. However I can't seem to wrap my head around how to simulate backreferences, lookaheads, and lookbehinds. From what I read in the purple dragon book I understood that to simulate a lookahead (e.g. `r/s`) where the regular expression `r` is matched iff it's followed by the regular expression `s` you create a non-deterministic finite state automaton in which `/` is replaced by `ε`. Is it possible to create a deterministic finite state automaton that does the same? What about simulating negative lookaheads and lookbehinds? I would really appreciate it if you would link me to a resource which describes how to do this in detail.
2
11,171,769
06/23/2012 18:03:49
1,470,265
06/20/2012 19:22:10
1
0
Make a next button XCode
I would like to know how i can make a next button in my DetailView te select the next row from my table and then load it into the DetailView with the newly loaded data. Kind Regards, Vincent
iphone
objective-c
xcode
next
detailview
06/23/2012 18:17:07
not a real question
Make a next button XCode === I would like to know how i can make a next button in my DetailView te select the next row from my table and then load it into the DetailView with the newly loaded data. Kind Regards, Vincent
1
11,412,353
07/10/2012 11:27:30
1,153,617
01/17/2012 09:52:21
1
0
Google Maps AIP3 - Directions from current location with custom markers
I have been trying to rack my brain around this for ages.... I currently have a working map that gives me directions and can drop the default Google Markers and place a custom marker on the given coordinates, BUT, it won't let me changes the start and end markers no matter what I try and do. **This is my current working code:** <script src="http://maps.google.se/maps/api/js?sensor=true"></script> <script> (function () { var directionsService = new google.maps.DirectionsService(), directionsDisplay = new google.maps.DirectionsRenderer(), createMap = function (start) { var travel = { origin : (start.coords)? new google.maps.LatLng(start.lat, start.lng) : start.address, destination : "-31.432389,152.908482", travelMode : google.maps.DirectionsTravelMode.DRIVING }, mapOptions = { zoom: 10, // Default view center : new google.maps.LatLng(-31.432389,152.908482), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map"), mapOptions); directionsDisplay.setMap(map); directionsDisplay.setPanel(document.getElementById("map-directions")); directionsService.route(travel, function(result, status) { if (status === google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(result); directionsDisplay.suppressMarkers = true; } }); }; // Check for geolocation support if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { // Success! createMap({ coords : true, lat : position.coords.latitude, lng : position.coords.longitude }); }, function () { // Gelocation fallback createMap({ coords : false, address : "-31.432389,152.908482" }); } ); } else { // No geolocation fallback createMap({ coords : false, address : "-31.432389,152.908482" }); } })(); </script> Any help would be greatly appreciated! Thanks.
javascript
google-maps
google-maps-api-3
null
null
07/10/2012 18:01:52
not a real question
Google Maps AIP3 - Directions from current location with custom markers === I have been trying to rack my brain around this for ages.... I currently have a working map that gives me directions and can drop the default Google Markers and place a custom marker on the given coordinates, BUT, it won't let me changes the start and end markers no matter what I try and do. **This is my current working code:** <script src="http://maps.google.se/maps/api/js?sensor=true"></script> <script> (function () { var directionsService = new google.maps.DirectionsService(), directionsDisplay = new google.maps.DirectionsRenderer(), createMap = function (start) { var travel = { origin : (start.coords)? new google.maps.LatLng(start.lat, start.lng) : start.address, destination : "-31.432389,152.908482", travelMode : google.maps.DirectionsTravelMode.DRIVING }, mapOptions = { zoom: 10, // Default view center : new google.maps.LatLng(-31.432389,152.908482), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map"), mapOptions); directionsDisplay.setMap(map); directionsDisplay.setPanel(document.getElementById("map-directions")); directionsService.route(travel, function(result, status) { if (status === google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(result); directionsDisplay.suppressMarkers = true; } }); }; // Check for geolocation support if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { // Success! createMap({ coords : true, lat : position.coords.latitude, lng : position.coords.longitude }); }, function () { // Gelocation fallback createMap({ coords : false, address : "-31.432389,152.908482" }); } ); } else { // No geolocation fallback createMap({ coords : false, address : "-31.432389,152.908482" }); } })(); </script> Any help would be greatly appreciated! Thanks.
1
11,192,788
06/25/2012 15:53:54
750,186
05/12/2011 08:20:10
1,468
37
erlang typechecking
From what I understand there is no way of type-checking the messages send in erlang. lets say i start a module with the following receive loop: loop(State) -> receive {insert, _} -> io:fwrite("insert\n",[]), loop(State); {view, _} -> io:fwrite("view\n", []), loop(State) after 10000 -> ok end. There is no way for me to check what people are sending to the process, and no way to check for that its type safe? Are there any easy work arrounds? The one I have come up with is using functions in the module being called like : send_insert(Message) -> whereis(my_event_handler) ! {insert, Message}, ok. this way at least I can add the `-spec send_insert(string()) -> ok.` spec to the module. now at least I have limited the error to my module. Are there a more standard way of doing typechecking on messages?
erlang
static-analysis
null
null
null
null
open
erlang typechecking === From what I understand there is no way of type-checking the messages send in erlang. lets say i start a module with the following receive loop: loop(State) -> receive {insert, _} -> io:fwrite("insert\n",[]), loop(State); {view, _} -> io:fwrite("view\n", []), loop(State) after 10000 -> ok end. There is no way for me to check what people are sending to the process, and no way to check for that its type safe? Are there any easy work arrounds? The one I have come up with is using functions in the module being called like : send_insert(Message) -> whereis(my_event_handler) ! {insert, Message}, ok. this way at least I can add the `-spec send_insert(string()) -> ok.` spec to the module. now at least I have limited the error to my module. Are there a more standard way of doing typechecking on messages?
0
6,596,327
07/06/2011 12:26:12
369,507
06/17/2010 15:42:19
11
0
How to check if a file is signed in C#?
I'm writing a program that need to load a few other files. is there a way to check if those files are signed or not, without right clicking them and check? I use 300-400 files that change every few days I need to check DLL/EXE/CAB/OCX/MSI (and maybe also vbs/js) is there a way to check it?
c#
dll
exe
sign
null
07/06/2011 15:08:30
not a real question
How to check if a file is signed in C#? === I'm writing a program that need to load a few other files. is there a way to check if those files are signed or not, without right clicking them and check? I use 300-400 files that change every few days I need to check DLL/EXE/CAB/OCX/MSI (and maybe also vbs/js) is there a way to check it?
1
3,355,498
07/28/2010 17:11:32
266,250
02/04/2010 14:07:49
332
19
How many hours per week do you spend fixing IE related bugs?
We are trying to estimate this: If you are a web developer, how many hours per week do you spend working on IE related issues and bugs, where other browsers dont find any problems at all. We're trying to find out if developers still waste a lot of time on it. I know it's difficult to estimate, but even % would help.. I spend ~3h each week trying to make websites work on IE as it supposed to be..
internet-explorer
internet-explorer-6
timetracking
null
null
07/28/2010 17:26:32
off topic
How many hours per week do you spend fixing IE related bugs? === We are trying to estimate this: If you are a web developer, how many hours per week do you spend working on IE related issues and bugs, where other browsers dont find any problems at all. We're trying to find out if developers still waste a lot of time on it. I know it's difficult to estimate, but even % would help.. I spend ~3h each week trying to make websites work on IE as it supposed to be..
2
11,719,180
07/30/2012 10:00:29
1,539,865
07/20/2012 06:18:09
38
6
How I create a dynamic Pop up in ASP.NET
I had wrote a ASP.NET Application that show User Informations from a Active Directory. I use two WebForms. In My first WinForm I can list all User in the AD or search a User. With a Button I can see more Informations about the selected User in the second WinForm. Now I don't want see the main Informations about the selected User in the second WinForm but in a kind of a Pop Up. This Popup is not fix on the desktop but selected. for example: ![enter image description here][1] How I can create this and what is that for a Control? Any Helplinks would help me :P tarasov [1]: http://i.stack.imgur.com/bkzul.jpg
c#
asp.net
webforms
popup
control
null
open
How I create a dynamic Pop up in ASP.NET === I had wrote a ASP.NET Application that show User Informations from a Active Directory. I use two WebForms. In My first WinForm I can list all User in the AD or search a User. With a Button I can see more Informations about the selected User in the second WinForm. Now I don't want see the main Informations about the selected User in the second WinForm but in a kind of a Pop Up. This Popup is not fix on the desktop but selected. for example: ![enter image description here][1] How I can create this and what is that for a Control? Any Helplinks would help me :P tarasov [1]: http://i.stack.imgur.com/bkzul.jpg
0
7,312,760
09/05/2011 21:09:03
929,574
09/05/2011 21:09:03
1
0
Drop Event Bugs?
G is undefined [p]}function Q(){ca=[];ka={}}function ...=p._id;sa(U[ya],L,c,z);f("eventDrop", I am using fullcalender 1.5.2. When I drop, this item always dissapear and firebug catch this error.
fullcalendar
null
null
null
null
09/05/2011 23:55:37
not a real question
Drop Event Bugs? === G is undefined [p]}function Q(){ca=[];ka={}}function ...=p._id;sa(U[ya],L,c,z);f("eventDrop", I am using fullcalender 1.5.2. When I drop, this item always dissapear and firebug catch this error.
1
8,585,703
12/21/2011 06:04:27
816,831
06/27/2011 06:06:59
5
0
Eclipse and android ADT error on new installation
I have installed new eclipse and ADT, i have JDK 1.6 installed in the my machine, when i run the android project get this following error. sample is my project name. [2011-12-21 00:38:58 - sample] ERROR: Unknown command 'crunch' [2011-12-21 00:38:58 - sample] Android Asset Packaging Tool [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] Usage: [2011-12-21 00:38:58 - sample] aapt l[ist] [-v] [-a] file.{zip,jar,apk} [2011-12-21 00:38:58 - sample] List contents of Zip-compatible archive. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] [2011-12-21 00:38:58 - sample] badging Print the label and icon for the app declared in APK. [2011-12-21 00:38:58 - sample] permissions Print the permissions from the APK. [2011-12-21 00:38:58 - sample] resources Print the resource table from the APK. [2011-12-21 00:38:58 - sample] configurations Print the configurations in the APK. [2011-12-21 00:38:58 - sample] xmltree Print the compiled xmls in the given assets. [2011-12-21 00:38:58 - sample] xmlstrings Print the strings of the given compiled xml assets. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [2011-12-21 00:38:58 - sample] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [2011-12-21 00:38:58 - sample] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [2011-12-21 00:38:58 - sample] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [2011-12-21 00:38:58 - sample] [--rename-manifest-package PACKAGE] \ [2011-12-21 00:38:58 - sample] [--rename-instrumentation-target-package PACKAGE] \ [2011-12-21 00:38:58 - sample] [--utf16] [--auto-add-overlay] \ [2011-12-21 00:38:58 - sample] [--max-res-version VAL] \ [2011-12-21 00:38:58 - sample] [-I base-package [-I base-package ...]] \ [2011-12-21 00:38:58 - sample] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [2011-12-21 00:38:58 - sample] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \ [2011-12-21 00:38:58 - sample] [--product product1,product2,...] \ [2011-12-21 00:38:58 - sample] [raw-files-dir [raw-files-dir] ...] [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] Package the android resources. It will read assets and resources that are [2011-12-21 00:38:58 - sample] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R [2011-12-21 00:38:58 - sample] options control which files are output. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:38:58 - sample] Delete specified files from Zip-compatible archive. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:38:58 - sample] Add specified files to Zip-compatible archive. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt v[ersion] [2011-12-21 00:38:58 - sample] Print program version. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] Modifiers: [2011-12-21 00:38:58 - sample] -a print Android-specific data (resources, manifest) when listing [2011-12-21 00:38:58 - sample] -P specify where to output public resource definitions [2011-12-21 00:38:58 - sample] -S directory in which to find resources. Multiple directories will be scanned [2011-12-21 00:38:58 - sample] and the first match found (left to right) will take precedence. [2011-12-21 00:38:58 - sample] -0 specifies an additional extension for which such files will not [2011-12-21 00:38:58 - sample] be stored compressed in the .apk. An empty string means to not [2011-12-21 00:38:58 - sample] compress any files at all. [2011-12-21 00:38:58 - sample] --debug-mode [2011-12-21 00:38:58 - sample] inserts android:debuggable="true" in to the application node of the [2011-12-21 00:38:58 - sample] manifest, making the application debuggable even on production devices. [2011-12-21 00:38:58 - sample] --min-sdk-version [2011-12-21 00:38:58 - sample] inserts android:minSdkVersion in to manifest. If the version is 7 or [2011-12-21 00:38:58 - sample] higher, the default encoding for resources will be in UTF-8. [2011-12-21 00:38:58 - sample] --target-sdk-version [2011-12-21 00:38:58 - sample] inserts android:targetSdkVersion in to manifest. [2011-12-21 00:38:58 - sample] --max-res-version [2011-12-21 00:38:58 - sample] ignores versioned resource directories above the given value. [2011-12-21 00:38:58 - sample] --values [2011-12-21 00:38:58 - sample] when used with "dump resources" also includes resource values. [2011-12-21 00:38:58 - sample] --version-code [2011-12-21 00:38:58 - sample] inserts android:versionCode in to manifest. [2011-12-21 00:38:58 - sample] --version-name [2011-12-21 00:38:58 - sample] inserts android:versionName in to manifest. [2011-12-21 00:38:58 - sample] --custom-package [2011-12-21 00:38:58 - sample] generates R.java into a different package. [2011-12-21 00:38:58 - sample] --auto-add-overlay [2011-12-21 00:38:58 - sample] Automatically add resources that are only in overlays. [2011-12-21 00:38:58 - sample] --rename-manifest-package [2011-12-21 00:38:58 - sample] Rewrite the manifest so that its package name is the package name [2011-12-21 00:38:58 - sample] given here. Relative class names (for example .Foo) will be [2011-12-21 00:38:58 - sample] changed to absolute names with the old package so that the code [2011-12-21 00:38:58 - sample] does not need to change. [2011-12-21 00:38:58 - sample] --rename-instrumentation-target-package [2011-12-21 00:38:58 - sample] Rewrite the manifest so that all of its instrumentation [2011-12-21 00:38:58 - sample] components target the given package. Useful when used in [2011-12-21 00:38:58 - sample] conjunction with --rename-manifest-package to fix tests against [2011-12-21 00:38:58 - sample] a package that has been renamed. [2011-12-21 00:38:58 - sample] --product [2011-12-21 00:38:58 - sample] Specifies which variant to choose for strings that have [2011-12-21 00:38:58 - sample] product variants [2011-12-21 00:38:58 - sample] --utf16 [2011-12-21 00:38:58 - sample] changes default encoding for resources to UTF-16. Only useful when API [2011-12-21 00:38:58 - sample] level is set to 7 or higher where the default encoding is UTF-8. [2011-12-21 00:42:44 - sample] ERROR: Unknown command 'crunch' [2011-12-21 00:42:44 - sample] Android Asset Packaging Tool [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Usage: [2011-12-21 00:42:44 - sample] aapt l[ist] [-v] [-a] file.{zip,jar,apk} [2011-12-21 00:42:44 - sample] List contents of Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] [2011-12-21 00:42:44 - sample] badging Print the label and icon for the app declared in APK. [2011-12-21 00:42:44 - sample] permissions Print the permissions from the APK. [2011-12-21 00:42:44 - sample] resources Print the resource table from the APK. [2011-12-21 00:42:44 - sample] configurations Print the configurations in the APK. [2011-12-21 00:42:44 - sample] xmltree Print the compiled xmls in the given assets. [2011-12-21 00:42:44 - sample] xmlstrings Print the strings of the given compiled xml assets. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [2011-12-21 00:42:44 - sample] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [2011-12-21 00:42:44 - sample] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [2011-12-21 00:42:44 - sample] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [2011-12-21 00:42:44 - sample] [--rename-manifest-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--rename-instrumentation-target-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--utf16] [--auto-add-overlay] \ [2011-12-21 00:42:44 - sample] [--max-res-version VAL] \ [2011-12-21 00:42:44 - sample] [-I base-package [-I base-package ...]] \ [2011-12-21 00:42:44 - sample] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [2011-12-21 00:42:44 - sample] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \ [2011-12-21 00:42:44 - sample] [--product product1,product2,...] \ [2011-12-21 00:42:44 - sample] [raw-files-dir [raw-files-dir] ...] [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Package the android resources. It will read assets and resources that are [2011-12-21 00:42:44 - sample] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R [2011-12-21 00:42:44 - sample] options control which files are output. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Delete specified files from Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Add specified files to Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt v[ersion] [2011-12-21 00:42:44 - sample] Print program version. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Modifiers: [2011-12-21 00:42:44 - sample] -a print Android-specific data (resources, manifest) when listing [2011-12-21 00:42:44 - sample] -c specify which configurations to include. The default is all [2011-12-21 00:42:44 - sample] configurations. The value of the parameter should be a comma [2011-12-21 00:42:44 - sample] separated list of configuration values. Locales should be specified [2011-12-21 00:42:44 - sample] as either a language or language-region pair. Some examples: [2011-12-21 00:42:44 - sample] en [2011-12-21 00:42:44 - sample] port,en [2011-12-21 00:42:44 - sample] port,land,en_US [2011-12-21 00:42:44 - sample] If you put the special locale, zz_ZZ on the list, it will perform [2011-12-21 00:42:44 - sample] pseudolocalization on the default locale, modifying all of the [2011-12-21 00:42:44 - sample] strings so you can look for strings that missed the [2011-12-21 00:42:44 - sample] internationalization process. For example: [2011-12-21 00:42:44 - sample] port,land,zz_ZZ [2011-12-21 00:42:44 - sample] -d one or more device assets to include, separated by commas [2011-12-21 00:42:44 - sample] -f force overwrite of existing files [2011-12-21 00:42:44 - sample] -g specify a pixel tolerance to force images to grayscale, default 0 [2011-12-21 00:42:44 - sample] -j specify a jar or zip file containing classes to include [2011-12-21 00:42:44 - sample] -k junk path of file(s) added [2011-12-21 00:42:44 - sample] -m make package directories under location specified by -J [2011-12-21 00:42:44 - sample] -u update existing packages (add new, replace older, remove deleted files) [2011-12-21 00:42:44 - sample] -v verbose output [2011-12-21 00:42:44 - sample] -x create extending (non-application) resource IDs [2011-12-21 00:42:44 - sample] -z require localization of resource attributes marked with [2011-12-21 00:42:44 - sample] localization="suggested" [2011-12-21 00:42:44 - sample] -A additional directory in which to find raw asset files [2011-12-21 00:42:44 - sample] -G A file to output proguard options into. [2011-12-21 00:42:44 - sample] -F specify the apk file to output [2011-12-21 00:42:44 - sample] -I add an existing package to base include set [2011-12-21 00:42:44 - sample] -J specify where to output R.java resource constant definitions [2011-12-21 00:42:44 - sample] -M specify full path to AndroidManifest.xml to include in zip [2011-12-21 00:42:44 - sample] -P specify where to output public resource definitions [2011-12-21 00:42:44 - sample] -S directory in which to find resources. Multiple directories will be scanned [2011-12-21 00:42:44 - sample] and the first match found (left to right) will take precedence. [2011-12-21 00:42:44 - sample] -0 specifies an additional extension for which such files will not [2011-12-21 00:42:44 - sample] be stored compressed in the .apk. An empty string means to not [2011-12-21 00:42:44 - sample] compress any files at all. [2011-12-21 00:42:44 - sample] --debug-mode [2011-12-21 00:42:44 - sample] inserts android:debuggable="true" in to the application node of the [2011-12-21 00:42:44 - sample] manifest, making the application debuggable even on production devices. [2011-12-21 00:42:44 - sample] --min-sdk-version [2011-12-21 00:42:44 - sample] inserts android:minSdkVersion in to manifest. If the version is 7 or [2011-12-21 00:42:44 - sample] higher, the default encoding for resources will be in UTF-8. [2011-12-21 00:42:44 - sample] --target-sdk-version [2011-12-21 00:42:44 - sample] inserts android:targetSdkVersion in to manifest. [2011-12-21 00:42:44 - sample] --max-res-version [2011-12-21 00:42:44 - sample] ignores versioned resource directories above the given value. [2011-12-21 00:42:44 - sample] --values [2011-12-21 00:42:44 - sample] when used with "dump resources" also includes resource values. [2011-12-21 00:42:44 - sample] --version-code [2011-12-21 00:42:44 - sample] inserts android:versionCode in to manifest. [2011-12-21 00:42:44 - sample] --version-name [2011-12-21 00:42:44 - sample] inserts android:versionName in to manifest. [2011-12-21 00:42:44 - sample] --custom-package [2011-12-21 00:42:44 - sample] generates R.java into a different package. [2011-12-21 00:42:44 - sample] --auto-add-overlay [2011-12-21 00:42:44 - sample] Automatically add resources that are only in overlays. [2011-12-21 00:42:44 - sample] --rename-manifest-package [2011-12-21 00:42:44 - sample] Rewrite the manifest so that its package name is the package name [2011-12-21 00:42:44 - sample] given here. Relative class names (for example .Foo) will be [2011-12-21 00:42:44 - sample] changed to absolute names with the old package so that the code [2011-12-21 00:42:44 - sample] does not need to change. [2011-12-21 00:42:44 - sample] --rename-instrumentation-target-package [2011-12-21 00:42:44 - sample] Rewrite the manifest so that all of its instrumentation [2011-12-21 00:42:44 - sample] components target the given package. Useful when used in [2011-12-21 00:42:44 - sample] conjunction with --rename-manifest-package to fix tests against [2011-12-21 00:42:44 - sample] a package that has been renamed. [2011-12-21 00:42:44 - sample] --product [2011-12-21 00:42:44 - sample] Specifies which variant to choose for strings that have [2011-12-21 00:42:44 - sample] product variants [2011-12-21 00:42:44 - sample] --utf16 [2011-12-21 00:42:44 - sample] changes default encoding for resources to UTF-16. Only useful when API [2011-12-21 00:42:44 - sample] level is set to 7 or higher where the default encoding is UTF-8. [2011-12-21 00:42:44 - sample] ERROR: Unknown option '--no-crunch' [2011-12-21 00:42:44 - sample] Android Asset Packaging Tool [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Usage: [2011-12-21 00:42:44 - sample] aapt l[ist] [-v] [-a] file.{zip,jar,apk} [2011-12-21 00:42:44 - sample] List contents of Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] [2011-12-21 00:42:44 - sample] badging Print the label and icon for the app declared in APK. [2011-12-21 00:42:44 - sample] permissions Print the permissions from the APK. [2011-12-21 00:42:44 - sample] resources Print the resource table from the APK. [2011-12-21 00:42:44 - sample] configurations Print the configurations in the APK. [2011-12-21 00:42:44 - sample] xmltree Print the compiled xmls in the given assets. [2011-12-21 00:42:44 - sample] xmlstrings Print the strings of the given compiled xml assets. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [2011-12-21 00:42:44 - sample] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [2011-12-21 00:42:44 - sample] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [2011-12-21 00:42:44 - sample] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [2011-12-21 00:42:44 - sample] [--rename-manifest-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--rename-instrumentation-target-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--utf16] [--auto-add-overlay] \ [2011-12-21 00:42:44 - sample] [--max-res-version VAL] \ [2011-12-21 00:42:44 - sample] [-I base-package [-I base-package ...]] \ [2011-12-21 00:42:44 - sample] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [2011-12-21 00:42:44 - sample] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \ [2011-12-21 00:42:44 - sample] [--product product1,product2,...] \ [2011-12-21 00:42:44 - sample] [raw-files-dir [raw-files-dir] ...] [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Package the android resources. It will read assets and resources that are [2011-12-21 00:42:44 - sample] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R [2011-12-21 00:42:44 - sample] options control which files are output. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Delete specified files from Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Add specified files to Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt v[ersion] [2011-12-21 00:42:44 - sample] Print program version. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Modifiers: [2011-12-21 00:42:44 - sample] -a print Android-specific data (resources, manifest) when listing [2011-12-21 00:42:44 - sample] -c specify which configurations to include. The default is all [2011-12-21 00:42:44 - sample] configurations. The value of the parameter should be a comma [2011-12-21 00:42:44 - sample] separated list of configuration values. Locales should be specified [2011-12-21 00:42:44 - sample] as either a language or language-region pair. Some examples: [2011-12-21 00:42:44 - sample] en [2011-12-21 00:42:44 - sample] port,en [2011-12-21 00:42:44 - sample] port,land,en_US [2011-12-21 00:42:44 - sample] If you put the special locale, zz_ZZ on the list, it will perform [2011-12-21 00:42:44 - sample] pseudolocalization on the default locale, modifying all of the [2011-12-21 00:42:44 - sample] strings so you can look for strings that missed the [2011-12-21 00:42:44 - sample] internationalization process. For example: [2011-12-21 00:42:44 - sample] port,land,zz_ZZ [2011-12-21 00:42:44 - sample] -d one or more device assets to include, separated by commas [2011-12-21 00:42:44 - sample] -f force overwrite of existing files [2011-12-21 00:42:44 - sample] -g specify a pixel tolerance to force images to grayscale, default 0 [2011-12-21 00:42:44 - sample] -j specify a jar or zip file containing classes to include [2011-12-21 00:42:44 - sample] -k junk path of file(s) added [2011-12-21 00:42:44 - sample] -m make package directories under location specified by -J [2011-12-21 00:42:44 - sample] -u update existing packages (add new, replace older, remove deleted files) [2011-12-21 00:42:44 - sample] -v verbose output [2011-12-21 00:42:44 - sample] -x create extending (non-application) resource IDs [2011-12-21 00:42:44 - sample] -z require localization of resource attributes marked with [2011-12-21 00:42:44 - sample] localization="suggested" [2011-12-21 00:42:44 - sample] -A additional directory in which to find raw asset files [2011-12-21 00:42:44 - sample] -G A file to output proguard options into. [2011-12-21 00:42:44 - sample] -F specify the apk file to output [2011-12-21 00:42:44 - sample] -I add an existing package to base include set [2011-12-21 00:42:44 - sample] -J specify where to output R.java resource constant definitions [2011-12-21 00:42:44 - sample] -M specify full path to AndroidManifest.xml to include in zip [2011-12-21 00:42:44 - sample] -P specify where to output public resource definitions [2011-12-21 00:42:44 - sample] -S directory in which to find resources. Multiple directories will be scanned [2011-12-21 00:42:44 - sample] and the first match found (left to right) will take precedence. [2011-12-21 00:42:44 - sample] -0 specifies an additional extension for which such files will not [2011-12-21 00:42:44 - sample] be stored compressed in the .apk. An empty string means to not [2011-12-21 00:42:44 - sample] compress any files at all. [2011-12-21 00:42:44 - sample] --debug-mode [2011-12-21 00:42:44 - sample] inserts android:debuggable="true" in to the application node of the [2011-12-21 00:42:44 - sample] manifest, making the application debuggable even on production devices. [2011-12-21 00:42:44 - sample] --min-sdk-version [2011-12-21 00:42:44 - sample] inserts android:minSdkVersion in to manifest. If the version is 7 or [2011-12-21 00:42:44 - sample] higher, the default encoding for resources will be in UTF-8. [2011-12-21 00:42:44 - sample] --target-sdk-version [2011-12-21 00:42:44 - sample] inserts android:targetSdkVersion in to manifest. [2011-12-21 00:42:44 - sample] --max-res-version [2011-12-21 00:42:44 - sample] ignores versioned resource directories above the given value. [2011-12-21 00:42:44 - sample] --values [2011-12-21 00:42:44 - sample] when used with "dump resources" also includes resource values. [2011-12-21 00:42:44 - sample] changes default encoding for resources to UTF-16. Only useful when API [2011-12-21 00:42:44 - sample] level is set to 7 or higher where the default encoding is UTF-8. I can not find this error before, so please answer this question.
android
eclipse
eclipse-plugin
null
null
null
open
Eclipse and android ADT error on new installation === I have installed new eclipse and ADT, i have JDK 1.6 installed in the my machine, when i run the android project get this following error. sample is my project name. [2011-12-21 00:38:58 - sample] ERROR: Unknown command 'crunch' [2011-12-21 00:38:58 - sample] Android Asset Packaging Tool [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] Usage: [2011-12-21 00:38:58 - sample] aapt l[ist] [-v] [-a] file.{zip,jar,apk} [2011-12-21 00:38:58 - sample] List contents of Zip-compatible archive. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] [2011-12-21 00:38:58 - sample] badging Print the label and icon for the app declared in APK. [2011-12-21 00:38:58 - sample] permissions Print the permissions from the APK. [2011-12-21 00:38:58 - sample] resources Print the resource table from the APK. [2011-12-21 00:38:58 - sample] configurations Print the configurations in the APK. [2011-12-21 00:38:58 - sample] xmltree Print the compiled xmls in the given assets. [2011-12-21 00:38:58 - sample] xmlstrings Print the strings of the given compiled xml assets. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [2011-12-21 00:38:58 - sample] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [2011-12-21 00:38:58 - sample] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [2011-12-21 00:38:58 - sample] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [2011-12-21 00:38:58 - sample] [--rename-manifest-package PACKAGE] \ [2011-12-21 00:38:58 - sample] [--rename-instrumentation-target-package PACKAGE] \ [2011-12-21 00:38:58 - sample] [--utf16] [--auto-add-overlay] \ [2011-12-21 00:38:58 - sample] [--max-res-version VAL] \ [2011-12-21 00:38:58 - sample] [-I base-package [-I base-package ...]] \ [2011-12-21 00:38:58 - sample] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [2011-12-21 00:38:58 - sample] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \ [2011-12-21 00:38:58 - sample] [--product product1,product2,...] \ [2011-12-21 00:38:58 - sample] [raw-files-dir [raw-files-dir] ...] [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] Package the android resources. It will read assets and resources that are [2011-12-21 00:38:58 - sample] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R [2011-12-21 00:38:58 - sample] options control which files are output. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:38:58 - sample] Delete specified files from Zip-compatible archive. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:38:58 - sample] Add specified files to Zip-compatible archive. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] aapt v[ersion] [2011-12-21 00:38:58 - sample] Print program version. [2011-12-21 00:38:58 - sample] [2011-12-21 00:38:58 - sample] Modifiers: [2011-12-21 00:38:58 - sample] -a print Android-specific data (resources, manifest) when listing [2011-12-21 00:38:58 - sample] -P specify where to output public resource definitions [2011-12-21 00:38:58 - sample] -S directory in which to find resources. Multiple directories will be scanned [2011-12-21 00:38:58 - sample] and the first match found (left to right) will take precedence. [2011-12-21 00:38:58 - sample] -0 specifies an additional extension for which such files will not [2011-12-21 00:38:58 - sample] be stored compressed in the .apk. An empty string means to not [2011-12-21 00:38:58 - sample] compress any files at all. [2011-12-21 00:38:58 - sample] --debug-mode [2011-12-21 00:38:58 - sample] inserts android:debuggable="true" in to the application node of the [2011-12-21 00:38:58 - sample] manifest, making the application debuggable even on production devices. [2011-12-21 00:38:58 - sample] --min-sdk-version [2011-12-21 00:38:58 - sample] inserts android:minSdkVersion in to manifest. If the version is 7 or [2011-12-21 00:38:58 - sample] higher, the default encoding for resources will be in UTF-8. [2011-12-21 00:38:58 - sample] --target-sdk-version [2011-12-21 00:38:58 - sample] inserts android:targetSdkVersion in to manifest. [2011-12-21 00:38:58 - sample] --max-res-version [2011-12-21 00:38:58 - sample] ignores versioned resource directories above the given value. [2011-12-21 00:38:58 - sample] --values [2011-12-21 00:38:58 - sample] when used with "dump resources" also includes resource values. [2011-12-21 00:38:58 - sample] --version-code [2011-12-21 00:38:58 - sample] inserts android:versionCode in to manifest. [2011-12-21 00:38:58 - sample] --version-name [2011-12-21 00:38:58 - sample] inserts android:versionName in to manifest. [2011-12-21 00:38:58 - sample] --custom-package [2011-12-21 00:38:58 - sample] generates R.java into a different package. [2011-12-21 00:38:58 - sample] --auto-add-overlay [2011-12-21 00:38:58 - sample] Automatically add resources that are only in overlays. [2011-12-21 00:38:58 - sample] --rename-manifest-package [2011-12-21 00:38:58 - sample] Rewrite the manifest so that its package name is the package name [2011-12-21 00:38:58 - sample] given here. Relative class names (for example .Foo) will be [2011-12-21 00:38:58 - sample] changed to absolute names with the old package so that the code [2011-12-21 00:38:58 - sample] does not need to change. [2011-12-21 00:38:58 - sample] --rename-instrumentation-target-package [2011-12-21 00:38:58 - sample] Rewrite the manifest so that all of its instrumentation [2011-12-21 00:38:58 - sample] components target the given package. Useful when used in [2011-12-21 00:38:58 - sample] conjunction with --rename-manifest-package to fix tests against [2011-12-21 00:38:58 - sample] a package that has been renamed. [2011-12-21 00:38:58 - sample] --product [2011-12-21 00:38:58 - sample] Specifies which variant to choose for strings that have [2011-12-21 00:38:58 - sample] product variants [2011-12-21 00:38:58 - sample] --utf16 [2011-12-21 00:38:58 - sample] changes default encoding for resources to UTF-16. Only useful when API [2011-12-21 00:38:58 - sample] level is set to 7 or higher where the default encoding is UTF-8. [2011-12-21 00:42:44 - sample] ERROR: Unknown command 'crunch' [2011-12-21 00:42:44 - sample] Android Asset Packaging Tool [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Usage: [2011-12-21 00:42:44 - sample] aapt l[ist] [-v] [-a] file.{zip,jar,apk} [2011-12-21 00:42:44 - sample] List contents of Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] [2011-12-21 00:42:44 - sample] badging Print the label and icon for the app declared in APK. [2011-12-21 00:42:44 - sample] permissions Print the permissions from the APK. [2011-12-21 00:42:44 - sample] resources Print the resource table from the APK. [2011-12-21 00:42:44 - sample] configurations Print the configurations in the APK. [2011-12-21 00:42:44 - sample] xmltree Print the compiled xmls in the given assets. [2011-12-21 00:42:44 - sample] xmlstrings Print the strings of the given compiled xml assets. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [2011-12-21 00:42:44 - sample] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [2011-12-21 00:42:44 - sample] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [2011-12-21 00:42:44 - sample] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [2011-12-21 00:42:44 - sample] [--rename-manifest-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--rename-instrumentation-target-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--utf16] [--auto-add-overlay] \ [2011-12-21 00:42:44 - sample] [--max-res-version VAL] \ [2011-12-21 00:42:44 - sample] [-I base-package [-I base-package ...]] \ [2011-12-21 00:42:44 - sample] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [2011-12-21 00:42:44 - sample] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \ [2011-12-21 00:42:44 - sample] [--product product1,product2,...] \ [2011-12-21 00:42:44 - sample] [raw-files-dir [raw-files-dir] ...] [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Package the android resources. It will read assets and resources that are [2011-12-21 00:42:44 - sample] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R [2011-12-21 00:42:44 - sample] options control which files are output. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Delete specified files from Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Add specified files to Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt v[ersion] [2011-12-21 00:42:44 - sample] Print program version. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Modifiers: [2011-12-21 00:42:44 - sample] -a print Android-specific data (resources, manifest) when listing [2011-12-21 00:42:44 - sample] -c specify which configurations to include. The default is all [2011-12-21 00:42:44 - sample] configurations. The value of the parameter should be a comma [2011-12-21 00:42:44 - sample] separated list of configuration values. Locales should be specified [2011-12-21 00:42:44 - sample] as either a language or language-region pair. Some examples: [2011-12-21 00:42:44 - sample] en [2011-12-21 00:42:44 - sample] port,en [2011-12-21 00:42:44 - sample] port,land,en_US [2011-12-21 00:42:44 - sample] If you put the special locale, zz_ZZ on the list, it will perform [2011-12-21 00:42:44 - sample] pseudolocalization on the default locale, modifying all of the [2011-12-21 00:42:44 - sample] strings so you can look for strings that missed the [2011-12-21 00:42:44 - sample] internationalization process. For example: [2011-12-21 00:42:44 - sample] port,land,zz_ZZ [2011-12-21 00:42:44 - sample] -d one or more device assets to include, separated by commas [2011-12-21 00:42:44 - sample] -f force overwrite of existing files [2011-12-21 00:42:44 - sample] -g specify a pixel tolerance to force images to grayscale, default 0 [2011-12-21 00:42:44 - sample] -j specify a jar or zip file containing classes to include [2011-12-21 00:42:44 - sample] -k junk path of file(s) added [2011-12-21 00:42:44 - sample] -m make package directories under location specified by -J [2011-12-21 00:42:44 - sample] -u update existing packages (add new, replace older, remove deleted files) [2011-12-21 00:42:44 - sample] -v verbose output [2011-12-21 00:42:44 - sample] -x create extending (non-application) resource IDs [2011-12-21 00:42:44 - sample] -z require localization of resource attributes marked with [2011-12-21 00:42:44 - sample] localization="suggested" [2011-12-21 00:42:44 - sample] -A additional directory in which to find raw asset files [2011-12-21 00:42:44 - sample] -G A file to output proguard options into. [2011-12-21 00:42:44 - sample] -F specify the apk file to output [2011-12-21 00:42:44 - sample] -I add an existing package to base include set [2011-12-21 00:42:44 - sample] -J specify where to output R.java resource constant definitions [2011-12-21 00:42:44 - sample] -M specify full path to AndroidManifest.xml to include in zip [2011-12-21 00:42:44 - sample] -P specify where to output public resource definitions [2011-12-21 00:42:44 - sample] -S directory in which to find resources. Multiple directories will be scanned [2011-12-21 00:42:44 - sample] and the first match found (left to right) will take precedence. [2011-12-21 00:42:44 - sample] -0 specifies an additional extension for which such files will not [2011-12-21 00:42:44 - sample] be stored compressed in the .apk. An empty string means to not [2011-12-21 00:42:44 - sample] compress any files at all. [2011-12-21 00:42:44 - sample] --debug-mode [2011-12-21 00:42:44 - sample] inserts android:debuggable="true" in to the application node of the [2011-12-21 00:42:44 - sample] manifest, making the application debuggable even on production devices. [2011-12-21 00:42:44 - sample] --min-sdk-version [2011-12-21 00:42:44 - sample] inserts android:minSdkVersion in to manifest. If the version is 7 or [2011-12-21 00:42:44 - sample] higher, the default encoding for resources will be in UTF-8. [2011-12-21 00:42:44 - sample] --target-sdk-version [2011-12-21 00:42:44 - sample] inserts android:targetSdkVersion in to manifest. [2011-12-21 00:42:44 - sample] --max-res-version [2011-12-21 00:42:44 - sample] ignores versioned resource directories above the given value. [2011-12-21 00:42:44 - sample] --values [2011-12-21 00:42:44 - sample] when used with "dump resources" also includes resource values. [2011-12-21 00:42:44 - sample] --version-code [2011-12-21 00:42:44 - sample] inserts android:versionCode in to manifest. [2011-12-21 00:42:44 - sample] --version-name [2011-12-21 00:42:44 - sample] inserts android:versionName in to manifest. [2011-12-21 00:42:44 - sample] --custom-package [2011-12-21 00:42:44 - sample] generates R.java into a different package. [2011-12-21 00:42:44 - sample] --auto-add-overlay [2011-12-21 00:42:44 - sample] Automatically add resources that are only in overlays. [2011-12-21 00:42:44 - sample] --rename-manifest-package [2011-12-21 00:42:44 - sample] Rewrite the manifest so that its package name is the package name [2011-12-21 00:42:44 - sample] given here. Relative class names (for example .Foo) will be [2011-12-21 00:42:44 - sample] changed to absolute names with the old package so that the code [2011-12-21 00:42:44 - sample] does not need to change. [2011-12-21 00:42:44 - sample] --rename-instrumentation-target-package [2011-12-21 00:42:44 - sample] Rewrite the manifest so that all of its instrumentation [2011-12-21 00:42:44 - sample] components target the given package. Useful when used in [2011-12-21 00:42:44 - sample] conjunction with --rename-manifest-package to fix tests against [2011-12-21 00:42:44 - sample] a package that has been renamed. [2011-12-21 00:42:44 - sample] --product [2011-12-21 00:42:44 - sample] Specifies which variant to choose for strings that have [2011-12-21 00:42:44 - sample] product variants [2011-12-21 00:42:44 - sample] --utf16 [2011-12-21 00:42:44 - sample] changes default encoding for resources to UTF-16. Only useful when API [2011-12-21 00:42:44 - sample] level is set to 7 or higher where the default encoding is UTF-8. [2011-12-21 00:42:44 - sample] ERROR: Unknown option '--no-crunch' [2011-12-21 00:42:44 - sample] Android Asset Packaging Tool [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Usage: [2011-12-21 00:42:44 - sample] aapt l[ist] [-v] [-a] file.{zip,jar,apk} [2011-12-21 00:42:44 - sample] List contents of Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] [2011-12-21 00:42:44 - sample] badging Print the label and icon for the app declared in APK. [2011-12-21 00:42:44 - sample] permissions Print the permissions from the APK. [2011-12-21 00:42:44 - sample] resources Print the resource table from the APK. [2011-12-21 00:42:44 - sample] configurations Print the configurations in the APK. [2011-12-21 00:42:44 - sample] xmltree Print the compiled xmls in the given assets. [2011-12-21 00:42:44 - sample] xmlstrings Print the strings of the given compiled xml assets. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [2011-12-21 00:42:44 - sample] [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [2011-12-21 00:42:44 - sample] [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [2011-12-21 00:42:44 - sample] [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [2011-12-21 00:42:44 - sample] [--rename-manifest-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--rename-instrumentation-target-package PACKAGE] \ [2011-12-21 00:42:44 - sample] [--utf16] [--auto-add-overlay] \ [2011-12-21 00:42:44 - sample] [--max-res-version VAL] \ [2011-12-21 00:42:44 - sample] [-I base-package [-I base-package ...]] \ [2011-12-21 00:42:44 - sample] [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [2011-12-21 00:42:44 - sample] [-S resource-sources [-S resource-sources ...]] [-F apk-file] [-J R-file-dir] \ [2011-12-21 00:42:44 - sample] [--product product1,product2,...] \ [2011-12-21 00:42:44 - sample] [raw-files-dir [raw-files-dir] ...] [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Package the android resources. It will read assets and resources that are [2011-12-21 00:42:44 - sample] supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R [2011-12-21 00:42:44 - sample] options control which files are output. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Delete specified files from Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] [2011-12-21 00:42:44 - sample] Add specified files to Zip-compatible archive. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] aapt v[ersion] [2011-12-21 00:42:44 - sample] Print program version. [2011-12-21 00:42:44 - sample] [2011-12-21 00:42:44 - sample] Modifiers: [2011-12-21 00:42:44 - sample] -a print Android-specific data (resources, manifest) when listing [2011-12-21 00:42:44 - sample] -c specify which configurations to include. The default is all [2011-12-21 00:42:44 - sample] configurations. The value of the parameter should be a comma [2011-12-21 00:42:44 - sample] separated list of configuration values. Locales should be specified [2011-12-21 00:42:44 - sample] as either a language or language-region pair. Some examples: [2011-12-21 00:42:44 - sample] en [2011-12-21 00:42:44 - sample] port,en [2011-12-21 00:42:44 - sample] port,land,en_US [2011-12-21 00:42:44 - sample] If you put the special locale, zz_ZZ on the list, it will perform [2011-12-21 00:42:44 - sample] pseudolocalization on the default locale, modifying all of the [2011-12-21 00:42:44 - sample] strings so you can look for strings that missed the [2011-12-21 00:42:44 - sample] internationalization process. For example: [2011-12-21 00:42:44 - sample] port,land,zz_ZZ [2011-12-21 00:42:44 - sample] -d one or more device assets to include, separated by commas [2011-12-21 00:42:44 - sample] -f force overwrite of existing files [2011-12-21 00:42:44 - sample] -g specify a pixel tolerance to force images to grayscale, default 0 [2011-12-21 00:42:44 - sample] -j specify a jar or zip file containing classes to include [2011-12-21 00:42:44 - sample] -k junk path of file(s) added [2011-12-21 00:42:44 - sample] -m make package directories under location specified by -J [2011-12-21 00:42:44 - sample] -u update existing packages (add new, replace older, remove deleted files) [2011-12-21 00:42:44 - sample] -v verbose output [2011-12-21 00:42:44 - sample] -x create extending (non-application) resource IDs [2011-12-21 00:42:44 - sample] -z require localization of resource attributes marked with [2011-12-21 00:42:44 - sample] localization="suggested" [2011-12-21 00:42:44 - sample] -A additional directory in which to find raw asset files [2011-12-21 00:42:44 - sample] -G A file to output proguard options into. [2011-12-21 00:42:44 - sample] -F specify the apk file to output [2011-12-21 00:42:44 - sample] -I add an existing package to base include set [2011-12-21 00:42:44 - sample] -J specify where to output R.java resource constant definitions [2011-12-21 00:42:44 - sample] -M specify full path to AndroidManifest.xml to include in zip [2011-12-21 00:42:44 - sample] -P specify where to output public resource definitions [2011-12-21 00:42:44 - sample] -S directory in which to find resources. Multiple directories will be scanned [2011-12-21 00:42:44 - sample] and the first match found (left to right) will take precedence. [2011-12-21 00:42:44 - sample] -0 specifies an additional extension for which such files will not [2011-12-21 00:42:44 - sample] be stored compressed in the .apk. An empty string means to not [2011-12-21 00:42:44 - sample] compress any files at all. [2011-12-21 00:42:44 - sample] --debug-mode [2011-12-21 00:42:44 - sample] inserts android:debuggable="true" in to the application node of the [2011-12-21 00:42:44 - sample] manifest, making the application debuggable even on production devices. [2011-12-21 00:42:44 - sample] --min-sdk-version [2011-12-21 00:42:44 - sample] inserts android:minSdkVersion in to manifest. If the version is 7 or [2011-12-21 00:42:44 - sample] higher, the default encoding for resources will be in UTF-8. [2011-12-21 00:42:44 - sample] --target-sdk-version [2011-12-21 00:42:44 - sample] inserts android:targetSdkVersion in to manifest. [2011-12-21 00:42:44 - sample] --max-res-version [2011-12-21 00:42:44 - sample] ignores versioned resource directories above the given value. [2011-12-21 00:42:44 - sample] --values [2011-12-21 00:42:44 - sample] when used with "dump resources" also includes resource values. [2011-12-21 00:42:44 - sample] changes default encoding for resources to UTF-16. Only useful when API [2011-12-21 00:42:44 - sample] level is set to 7 or higher where the default encoding is UTF-8. I can not find this error before, so please answer this question.
0
5,894,358
05/05/2011 07:49:53
128,076
06/24/2009 08:44:28
580
24
Updating the url bar from the webapp to represent the current state
I would like to basically do what Jason asked for [here][1] [1]: http://stackoverflow.com/questions/1457/modify-address-bar-url-in-ajax-app-to-match-current-state In one sentence, I would like the url bar to represent the state of the AJAX application so that I can allow to bookmark it as well as allow the user to return to the previous state by using the back/forward buttons in the browser. The difference for me (From what Jason asked) is that I am using JSF 2.0. I've read that JSF 2.0 added the ability to use get, but I am not sure what the correct way to use this. Thanks for the help.
java
ajax
url
jsf
jsf-2.0
null
open
Updating the url bar from the webapp to represent the current state === I would like to basically do what Jason asked for [here][1] [1]: http://stackoverflow.com/questions/1457/modify-address-bar-url-in-ajax-app-to-match-current-state In one sentence, I would like the url bar to represent the state of the AJAX application so that I can allow to bookmark it as well as allow the user to return to the previous state by using the back/forward buttons in the browser. The difference for me (From what Jason asked) is that I am using JSF 2.0. I've read that JSF 2.0 added the ability to use get, but I am not sure what the correct way to use this. Thanks for the help.
0
4,499,614
12/21/2010 13:14:43
549,953
12/21/2010 13:14:43
1
0
How data passes in the air?
i want to know how blutooth technology works? and specially how data can be passed via Air as in blutooth device? i think creating own bluetooth device will help me to get this reply. so,.. 1)if i am on right way? 2)if i want to build my own bluetooth device then where can i start as i have no knowledge about chips and electronics and all... How to start creating this myself?
bluetooth
null
null
null
null
12/21/2010 13:20:28
off topic
How data passes in the air? === i want to know how blutooth technology works? and specially how data can be passed via Air as in blutooth device? i think creating own bluetooth device will help me to get this reply. so,.. 1)if i am on right way? 2)if i want to build my own bluetooth device then where can i start as i have no knowledge about chips and electronics and all... How to start creating this myself?
2
5,542,111
04/04/2011 17:30:00
691,538
04/04/2011 17:30:00
1
0
PROTECTED RSS feed(s) with multi-user access control
I'm working on a project that needs to have PW PROTECTED RSS feed(s) with multi-user access control. Any suggestions on how I'd go about this? Are there any PHP libraries you can recommend? Thx in advance.
php
rss
null
null
null
04/04/2011 17:41:23
not a real question
PROTECTED RSS feed(s) with multi-user access control === I'm working on a project that needs to have PW PROTECTED RSS feed(s) with multi-user access control. Any suggestions on how I'd go about this? Are there any PHP libraries you can recommend? Thx in advance.
1
8,317,918
11/29/2011 21:22:57
985,026
10/08/2011 04:43:25
17
0
How do Mobile Carriers bill data usage - by byte or by packet?
I'm not entirely sure if this is the right place for this question, but I looked in the Stack Exchange Directory and there didn't seem to be one for mobile networks. Feel free to answer by directing me to somewhere more appropriate for this question. Anyway, I'm working on a project in Android where I'm trying to figure out what the most cost-effective way to send my data is. I'm using TCP Sockets. Essentially, I have a choice between sending a series (say 5) of small (say 100B) payloads or one large payload (1000B). Since I'm not using Nagle's algorithm (which would make the point redundant anyway, right?) I presume that this means that that in the first case I'd be sending 5 packets while in the second case I'd only be sending one packet. What I'm wondering, is which approach is ultimately going to use more data for my users? The former is technically sending half as much data, but will my users get billed for the packet overhead? Any insight greatly appreciated.
android
sockets
tcp
cellphone
null
11/29/2011 21:48:28
off topic
How do Mobile Carriers bill data usage - by byte or by packet? === I'm not entirely sure if this is the right place for this question, but I looked in the Stack Exchange Directory and there didn't seem to be one for mobile networks. Feel free to answer by directing me to somewhere more appropriate for this question. Anyway, I'm working on a project in Android where I'm trying to figure out what the most cost-effective way to send my data is. I'm using TCP Sockets. Essentially, I have a choice between sending a series (say 5) of small (say 100B) payloads or one large payload (1000B). Since I'm not using Nagle's algorithm (which would make the point redundant anyway, right?) I presume that this means that that in the first case I'd be sending 5 packets while in the second case I'd only be sending one packet. What I'm wondering, is which approach is ultimately going to use more data for my users? The former is technically sending half as much data, but will my users get billed for the packet overhead? Any insight greatly appreciated.
2
6,474,739
06/24/2011 23:29:16
353,217
05/28/2010 19:50:24
411
23
in the Decorator pattern why does the abstract decorator need the abstract component
http://en.wikipedia.org/wiki/File:Decorator_UML_class_diagram.svg I'm a little confused about why the abstract Decorator class would need to store (wrap) the abstract component class, what the use case for this?
design-patterns
null
null
null
null
null
open
in the Decorator pattern why does the abstract decorator need the abstract component === http://en.wikipedia.org/wiki/File:Decorator_UML_class_diagram.svg I'm a little confused about why the abstract Decorator class would need to store (wrap) the abstract component class, what the use case for this?
0