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
3,440,869
08/09/2010 14:15:31
40,655
11/25/2008 14:44:44
14,606
480
ASP.Net RadioButton control inherits CheckBox
I've just encountered a "bug" with the following code. foreach(Control control in controls) { if(control is TextBox) { //Do textbox stuff } if(control is CheckBox) { //Do checkbox stuff } if(control is RadioButton) { //Do radiobutton stuff } } The bug was that the "radiobutton stuff" and the "checkbox stuff" were both running for a RadioButton. When stepping through and looking at MSDN, the bug is now obvious, a RadioButton inherits from CheckBox rather than from WebControl directly, therefore both if statements would return true. I'm posting this question though as I have been coding in ASP.Net since 1.0 was in Beta and this is a complete shock to me along with everyone else on my team. Whilst it's true that a RadioButton does have all the functionality of a CheckBox, my "assumption" was that it would have been a completely different control. This obviously "isn't a real question" and more of a discussion point therefore I'm posting as CW.
asp.net
inheritance
checkbox
radio-button
null
null
open
ASP.Net RadioButton control inherits CheckBox === I've just encountered a "bug" with the following code. foreach(Control control in controls) { if(control is TextBox) { //Do textbox stuff } if(control is CheckBox) { //Do checkbox stuff } if(control is RadioButton) { //Do radiobutton stuff } } The bug was that the "radiobutton stuff" and the "checkbox stuff" were both running for a RadioButton. When stepping through and looking at MSDN, the bug is now obvious, a RadioButton inherits from CheckBox rather than from WebControl directly, therefore both if statements would return true. I'm posting this question though as I have been coding in ASP.Net since 1.0 was in Beta and this is a complete shock to me along with everyone else on my team. Whilst it's true that a RadioButton does have all the functionality of a CheckBox, my "assumption" was that it would have been a completely different control. This obviously "isn't a real question" and more of a discussion point therefore I'm posting as CW.
0
9,785,996
03/20/2012 11:35:53
1,201,492
02/10/2012 07:18:15
678
9
how to get he innnerhtml of div in jquery
I want to get the innerhtml of div in Jquery using `.html()` but it is not displaying anything. whereas id is not null
jquery
div
null
null
null
03/21/2012 12:43:28
not a real question
how to get he innnerhtml of div in jquery === I want to get the innerhtml of div in Jquery using `.html()` but it is not displaying anything. whereas id is not null
1
1,297,586
08/19/2009 02:39:54
158,933
08/19/2009 02:34:18
1
0
Top 5 to 10 Installer Packages
Can somebody give me top 5 to 10 Installer Packages Creator aside from WIX and MSI? The said installer creators has the folowing capabilities: 1. Supports MSI 2. Has scriptiing capabilities 3. Custom/user-defined U.I. 4. Has product-key or authorization-key capability 5. Has a boot-strap loader for .NET frameworks Thanks in advance, Glenn
installer
null
null
null
null
09/15/2011 13:01:36
not constructive
Top 5 to 10 Installer Packages === Can somebody give me top 5 to 10 Installer Packages Creator aside from WIX and MSI? The said installer creators has the folowing capabilities: 1. Supports MSI 2. Has scriptiing capabilities 3. Custom/user-defined U.I. 4. Has product-key or authorization-key capability 5. Has a boot-strap loader for .NET frameworks Thanks in advance, Glenn
4
3,307,944
07/22/2010 10:42:59
301,575
03/25/2010 09:54:43
42
0
pinch gesture in iphone sdk
hi i want to know how i detect the font size of text when i use pinch gesture in iphone sdk
iphone
gesture-recognition
null
null
null
07/24/2010 01:57:54
not a real question
pinch gesture in iphone sdk === hi i want to know how i detect the font size of text when i use pinch gesture in iphone sdk
1
8,203,951
11/20/2011 19:12:03
496,965
11/04/2010 09:00:55
548
10
JS: How to handly dynamically returning values given by php with multable lines?
I'm trying to realize an indexhandler. Now I can click on a field in HTML and a second window appears. Then, by clicking one of several buttons on the second page, a value gets returned in the field of the first window. This works like this: self.opener.document.getElementById('idOfFieldOnWindow1').value = 'myValue'; The value here "`myValue`" gets read out of a database by php. This value can also be a text with more than one lines (it contains at one or more linebreaks). If I write these values in the code, it gives me a JavaScript Exception. How can I solve this that I can return the value so it gets shown in the first field including linebreaks? Thanx for help!
php
javascript
return
null
null
11/21/2011 01:46:42
not a real question
JS: How to handly dynamically returning values given by php with multable lines? === I'm trying to realize an indexhandler. Now I can click on a field in HTML and a second window appears. Then, by clicking one of several buttons on the second page, a value gets returned in the field of the first window. This works like this: self.opener.document.getElementById('idOfFieldOnWindow1').value = 'myValue'; The value here "`myValue`" gets read out of a database by php. This value can also be a text with more than one lines (it contains at one or more linebreaks). If I write these values in the code, it gives me a JavaScript Exception. How can I solve this that I can return the value so it gets shown in the first field including linebreaks? Thanx for help!
1
5,679,243
04/15/2011 15:47:01
675,315
03/24/2011 16:41:33
6
0
simple Java problem
Example 1 - works public class MainScreen extends Activity implements OnClickListener { public void onClick(View v) { Button touchedButton = (Button) v; Test (MainScreen.this, touchedButton.getId()); } public void Test (MainScreen mainscreen, int touchedButton) { if (touchedButton == R.id.serviceButton ) startService(new Intent(mainscreen, SimpleService.class)); if (touchedButton == R.id.cancelButton) stopService(new Intent(mainscreen, SimpleService.class)); } } Example 2 – does not work public class MainScreen extends Activity implements OnClickListener { public void onClick(View v) { Button touchedButton = (Button) v; Secondary.Test (MainScreen.this, touchedButton.getId()); } } public class Secondary extends Activity { public void Test (MainScreen mainscreen, int touchedButton) { if (touchedButton == R.id.serviceButton ) startService(new Intent(mainscreen,SimpleService.class)); if (touchedButton == R.id.cancelButton) stopService(new Intent(mainscreen,SimpleService.class)); } } Why does Example 2 not work?
java
null
null
null
null
01/27/2012 13:33:59
not a real question
simple Java problem === Example 1 - works public class MainScreen extends Activity implements OnClickListener { public void onClick(View v) { Button touchedButton = (Button) v; Test (MainScreen.this, touchedButton.getId()); } public void Test (MainScreen mainscreen, int touchedButton) { if (touchedButton == R.id.serviceButton ) startService(new Intent(mainscreen, SimpleService.class)); if (touchedButton == R.id.cancelButton) stopService(new Intent(mainscreen, SimpleService.class)); } } Example 2 – does not work public class MainScreen extends Activity implements OnClickListener { public void onClick(View v) { Button touchedButton = (Button) v; Secondary.Test (MainScreen.this, touchedButton.getId()); } } public class Secondary extends Activity { public void Test (MainScreen mainscreen, int touchedButton) { if (touchedButton == R.id.serviceButton ) startService(new Intent(mainscreen,SimpleService.class)); if (touchedButton == R.id.cancelButton) stopService(new Intent(mainscreen,SimpleService.class)); } } Why does Example 2 not work?
1
4,905,781
02/05/2011 08:01:52
474,403
10/13/2010 11:41:27
1
0
RoR nested categories
I wonder how to make url like: site.com/coding/ruby/rails/article-name As you can see there is nested category. I've already looked at acts-as-tree and awesome nested sets, but it makes urls like site.com/rails/article-name. So, please help me
ruby-on-rails
ruby-on-rails-3
nested
url-routing
null
null
open
RoR nested categories === I wonder how to make url like: site.com/coding/ruby/rails/article-name As you can see there is nested category. I've already looked at acts-as-tree and awesome nested sets, but it makes urls like site.com/rails/article-name. So, please help me
0
9,009,320
01/25/2012 19:53:06
386,679
07/08/2010 13:12:37
390
20
Can't align right hand edges of form elements using percentage widths
Put simply the problem is thus: If the first form element uses 90% of page width why doesn't the second row of elements, using 35% and 55%, use the same amount of the pages width? I find I have to tweak the % up by differing amounts depending on the elements/page composition. More confusingly as browser width changes (narrows) the columns eventually align and going smaller still the problem becomes inverted with the first row narrower than the second. I've tried to search but my problem gets mixed up with people wanting their form elements on the right. So it's my turn for a bad SO question. :) I simply want my form elements to be neat, the right hand edge of each element to be in line with the others. A simple example is the following: <html> <head> <title>Form</title> <style text="text/css"> <!-- html, body { margin:0; padding:0; } form { display: block; } .inputField { width: 90%; } .labelField { width: 35%; } #secondField { width: 55%; } --> </style> </head> <body> <form> <legend>This is the form</legend> <input class="inputField" id="firstField" type="tel" name="cardNo" /><br /> <label class="labelField" for="secondField">Please enter your name:</label> <input class="inputField" id="secondField" type="tel" name="cv2" /><br /> <input class="inputSubmit" id="submit" type="submit" /><br /> </form> </body> </html> I have tried using dl/dt/dd and horrible table/tr/td and even ul/li type forms. All suffer similar issues. Some browsers, such as firefox are only slightly out, but chrome & iOS highlight the problem well. Ideally a solution that specifically works in android and ios browsers would be good.
html
css
forms
browser
alignment
null
open
Can't align right hand edges of form elements using percentage widths === Put simply the problem is thus: If the first form element uses 90% of page width why doesn't the second row of elements, using 35% and 55%, use the same amount of the pages width? I find I have to tweak the % up by differing amounts depending on the elements/page composition. More confusingly as browser width changes (narrows) the columns eventually align and going smaller still the problem becomes inverted with the first row narrower than the second. I've tried to search but my problem gets mixed up with people wanting their form elements on the right. So it's my turn for a bad SO question. :) I simply want my form elements to be neat, the right hand edge of each element to be in line with the others. A simple example is the following: <html> <head> <title>Form</title> <style text="text/css"> <!-- html, body { margin:0; padding:0; } form { display: block; } .inputField { width: 90%; } .labelField { width: 35%; } #secondField { width: 55%; } --> </style> </head> <body> <form> <legend>This is the form</legend> <input class="inputField" id="firstField" type="tel" name="cardNo" /><br /> <label class="labelField" for="secondField">Please enter your name:</label> <input class="inputField" id="secondField" type="tel" name="cv2" /><br /> <input class="inputSubmit" id="submit" type="submit" /><br /> </form> </body> </html> I have tried using dl/dt/dd and horrible table/tr/td and even ul/li type forms. All suffer similar issues. Some browsers, such as firefox are only slightly out, but chrome & iOS highlight the problem well. Ideally a solution that specifically works in android and ios browsers would be good.
0
4,330,569
12/02/2010 00:29:08
258,817
01/25/2010 21:52:28
116
4
Deserializing empty array to Dictionary
I'm working on a Silverlight 3 application that has to communicate with a PHP 5.2.13 server app. We're using [JSON.NET][1] to finish the job, but I'm having some problems with Dictionaries. I'm doing some experiments and trying to deserialize an object that contains a Dictionary: public Dictionary<string, Block> Table { get { return m_table; } set { m_table = value; } } C# serializes properly and I'm happy with it, but on the PHP side, when serializing an equivalent object that has an empty `Table`, it won't work. $this->Table = array(); The problem is that empty arrays, obviously, aren't considered an assoc array and so they are exported as `[]` instead of `{}`. I thought of adding something like `'null' => null` to the array (force assoc) and then do some clean-up in the client, but I don't control the client C# objects neither I can constraint them to be nullable so... I'm stuck on this one ;) Do you know of any solution? Thanks for your time, very much appreciated :) [1]: http://json.codeplex.com/
c#
php
json.net
null
null
null
open
Deserializing empty array to Dictionary === I'm working on a Silverlight 3 application that has to communicate with a PHP 5.2.13 server app. We're using [JSON.NET][1] to finish the job, but I'm having some problems with Dictionaries. I'm doing some experiments and trying to deserialize an object that contains a Dictionary: public Dictionary<string, Block> Table { get { return m_table; } set { m_table = value; } } C# serializes properly and I'm happy with it, but on the PHP side, when serializing an equivalent object that has an empty `Table`, it won't work. $this->Table = array(); The problem is that empty arrays, obviously, aren't considered an assoc array and so they are exported as `[]` instead of `{}`. I thought of adding something like `'null' => null` to the array (force assoc) and then do some clean-up in the client, but I don't control the client C# objects neither I can constraint them to be nullable so... I'm stuck on this one ;) Do you know of any solution? Thanks for your time, very much appreciated :) [1]: http://json.codeplex.com/
0
10,152,757
04/14/2012 10:09:25
1,069,481
11/28/2011 14:15:18
7
5
Landscape and portrait mode for application
I have defined two different layouts in my application.For portrait it is in layout folder and for landscape mode it is in layout-land folder.I have callde two APIs at one page that calls data from web server.Now it automatically moves to both mode.I am testing this on htc froyo set. What i am finding that after switching about 8 9 times(means after 8 9 orientation) application gets crashed.It shows that 19520 bytes allocation is too large for this process. VM won't let us allocate 19520 bytes. 04-14 15:34:54.581: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.581: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.581: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.581: W/System.err(4877): ... 24 more 04-14 15:34:54.581: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.591: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.591: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.591: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.591: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.591: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.601: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.601: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.601: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.601: W/System.err(4877): ... 28 more 04-14 15:34:54.601: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.601: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.601: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.611: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.611: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.621: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.621: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.621: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.621: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.621: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.621: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.621: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.631: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.641: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.641: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.641: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.641: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.641: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.651: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.651: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.651: W/System.err(4877): ... 12 more 04-14 15:34:54.651: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.651: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.651: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.651: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.661: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.661: W/System.err(4877): ... 24 more 04-14 15:34:54.661: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.661: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.661: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.661: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.661: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.671: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.671: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.671: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.671: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.671: W/System.err(4877): ... 28 more 04-14 15:34:54.671: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.671: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.681: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.681: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.691: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.691: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.691: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.691: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.691: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.691: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.691: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.701: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.711: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.711: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.711: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.711: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.721: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.721: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.721: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.721: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.721: W/System.err(4877): ... 12 more 04-14 15:34:54.721: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.731: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.731: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.731: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.731: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.731: W/System.err(4877): ... 24 more 04-14 15:34:54.731: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.741: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.741: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.741: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.741: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.741: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.741: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.741: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.741: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.751: W/System.err(4877): ... 28 more 04-14 15:34:54.751: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.751: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.751: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.751: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.751: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.761: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.761: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.761: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.761: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.761: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.761: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.761: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.771: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.771: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.771: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.771: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.771: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.771: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.771: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.781: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.781: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.791: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.791: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.791: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.791: W/System.err(4877): ... 12 more 04-14 15:34:54.791: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.791: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.791: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.801: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.801: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.801: W/System.err(4877): ... 24 more 04-14 15:34:54.801: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.801: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.801: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.801: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.811: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.811: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.811: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.811: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.811: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.811: W/System.err(4877): ... 28 more 04-14 15:34:54.811: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.821: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.831: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.831: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.831: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.831: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.831: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.831: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.831: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.841: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.841: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.841: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.841: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.841: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.841: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.851: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.851: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.861: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.861: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.861: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.861: W/System.err(4877): ... 12 more 04-14 15:34:54.861: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.861: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.871: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.871: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.871: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.871: W/System.err(4877): ... 24 more 04-14 15:34:54.871: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.871: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.881: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.881: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.881: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.881: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.881: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.881: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.881: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.891: W/System.err(4877): ... 28 more 04-14 15:34:54.891: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.891: E/AndroidRuntime(4877): Uncaught handler: thread main exiting due to uncaught exception 04-14 15:34:54.901: E/AndroidRuntime(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.901: E/AndroidRuntime(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.901: E/AndroidRuntime(4877): ... 12 more 04-14 15:34:54.901: E/AndroidRuntime(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.901: E/AndroidRuntime(4877): ... 24 more 04-14 15:34:54.901: E/AndroidRuntime(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.901: E/AndroidRuntime(4877): ... 28 more
android
null
null
null
null
04/14/2012 12:30:20
not a real question
Landscape and portrait mode for application === I have defined two different layouts in my application.For portrait it is in layout folder and for landscape mode it is in layout-land folder.I have callde two APIs at one page that calls data from web server.Now it automatically moves to both mode.I am testing this on htc froyo set. What i am finding that after switching about 8 9 times(means after 8 9 orientation) application gets crashed.It shows that 19520 bytes allocation is too large for this process. VM won't let us allocate 19520 bytes. 04-14 15:34:54.581: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.581: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.581: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.581: W/System.err(4877): ... 24 more 04-14 15:34:54.581: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.591: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.591: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.591: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.591: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.591: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.601: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.601: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.601: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.601: W/System.err(4877): ... 28 more 04-14 15:34:54.601: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.601: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.601: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.611: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.611: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.611: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.621: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.621: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.621: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.621: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.621: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.621: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.621: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.631: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.631: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.641: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.641: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.641: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.641: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.641: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.651: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.651: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.651: W/System.err(4877): ... 12 more 04-14 15:34:54.651: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.651: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.651: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.651: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.661: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.661: W/System.err(4877): ... 24 more 04-14 15:34:54.661: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.661: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.661: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.661: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.661: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.671: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.671: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.671: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.671: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.671: W/System.err(4877): ... 28 more 04-14 15:34:54.671: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.671: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.681: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.681: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.681: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.691: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.691: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.691: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.691: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.691: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.691: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.691: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.701: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.701: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.711: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.711: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.711: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.711: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.721: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.721: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.721: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.721: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.721: W/System.err(4877): ... 12 more 04-14 15:34:54.721: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.731: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.731: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.731: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.731: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.731: W/System.err(4877): ... 24 more 04-14 15:34:54.731: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.741: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.741: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.741: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.741: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.741: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.741: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.741: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.741: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.751: W/System.err(4877): ... 28 more 04-14 15:34:54.751: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.751: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.751: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.751: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.751: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.761: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.761: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.761: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.761: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.761: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.761: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.761: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.771: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.771: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.771: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.771: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.771: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.771: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.771: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.781: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.781: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.781: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.791: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.791: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.791: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.791: W/System.err(4877): ... 12 more 04-14 15:34:54.791: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.791: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.791: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.801: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.801: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.801: W/System.err(4877): ... 24 more 04-14 15:34:54.801: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.801: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.801: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.801: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.811: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.811: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.811: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.811: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.811: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.811: W/System.err(4877): ... 28 more 04-14 15:34:54.811: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.821: W/System.err(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.821: W/System.err(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.831: W/System.err(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.831: W/System.err(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.831: W/System.err(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.831: W/System.err(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.831: W/System.err(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.831: W/System.err(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.831: W/System.err(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.841: W/System.err(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.841: W/System.err(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.841: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.841: W/System.err(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.841: W/System.err(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.841: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.851: W/System.err(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.851: W/System.err(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.851: W/System.err(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.861: W/System.err(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.861: W/System.err(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.861: W/System.err(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.861: W/System.err(4877): ... 12 more 04-14 15:34:54.861: W/System.err(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.861: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.871: W/System.err(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.871: W/System.err(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.871: W/System.err(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.871: W/System.err(4877): ... 24 more 04-14 15:34:54.871: W/System.err(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.871: W/System.err(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.881: W/System.err(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.881: W/System.err(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.881: W/System.err(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.881: W/System.err(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.881: W/System.err(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.881: W/System.err(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.881: W/System.err(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.891: W/System.err(4877): ... 28 more 04-14 15:34:54.891: D/FlurryAgent(4877): Error logged: uncaught 04-14 15:34:54.891: E/AndroidRuntime(4877): Uncaught handler: thread main exiting due to uncaught exception 04-14 15:34:54.901: E/AndroidRuntime(4877): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.org.Ahoy/com.org.Ahoy.LocateMe}: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2606) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3785) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.access$2300(ActivityThread.java:126) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.os.Handler.dispatchMessage(Handler.java:99) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.os.Looper.loop(Looper.java:123) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.main(ActivityThread.java:4568) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Method.invokeNative(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Method.invoke(Method.java:521) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-14 15:34:54.901: E/AndroidRuntime(4877): at dalvik.system.NativeStart.main(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): Caused by: android.view.InflateException: Binary XML file line #169: Error inflating class <unknown> 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.Activity.setContentView(Activity.java:1629) 04-14 15:34:54.901: E/AndroidRuntime(4877): at com.org.Ahoy.LocateMe.onCreate(LocateMe.java:192) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2529) 04-14 15:34:54.901: E/AndroidRuntime(4877): ... 12 more 04-14 15:34:54.901: E/AndroidRuntime(4877): Caused by: java.lang.reflect.InvocationTargetException 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.widget.ImageView.<init>(ImageView.java:105) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Constructor.constructNative(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 04-14 15:34:54.901: E/AndroidRuntime(4877): ... 24 more 04-14 15:34:54.901: E/AndroidRuntime(4877): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:464) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:340) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.content.res.Resources.loadDrawable(Resources.java:1705) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.content.res.TypedArray.getDrawable(TypedArray.java:548) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.view.View.<init>(View.java:1850) 04-14 15:34:54.901: E/AndroidRuntime(4877): at android.widget.ImageView.<init>(ImageView.java:109) 04-14 15:34:54.901: E/AndroidRuntime(4877): ... 28 more
1
11,127,945
06/20/2012 20:47:15
724,695
04/26/2011 03:31:41
393
7
DirectX Demo does not draw anything on screen
I am learning DirectX 11 right now, and was trying out one of the demos from the book "Beginning DirectX 11 programming". I followed the books guidelines to make a base class that handles window creation and destruction(including d3d11 setup). All other demos are based on this class. So I was writing the Triangle demo, where the aim is to draw a 2d triangle. Here is the implementation of the Triangle class: #include "Triangle.h" Triangle::Triangle(void): mVertexShader(0), mPixelShader(0), mInputLayout(0), mVertexBuffer(0) { } Triangle::~Triangle(void) { } void Triangle::Update(float deltaTime){ } void Triangle::UnloadContent(){ if(mVertexShader) mVertexShader->Release(); if(mPixelShader) mPixelShader->Release(); if(mInputLayout) mInputLayout->Release(); if(mVertexBuffer) mVertexBuffer->Release(); mVertexBuffer = 0; mPixelShader = 0; mVertexShader = 0; mInputLayout = 0; } bool Triangle::LoadContent(){ //Load Vertex Shader and make it active ID3DBlob* vsBlob = 0; if(!CompileShader(L"shaders.fx", "VS_Main", "vs_4_0", &vsBlob)){ MessageBox(0, L"Error Loading Vertex Shader", L"Compile Error", MB_OK); return false; } HRESULT hr; if(FAILED(hr = mDevice->CreateVertexShader(vsBlob->GetBufferPointer(), vsBlob->GetBufferSize(), 0, &mVertexShader))){ if(vsBlob) vsBlob->Release(); return false; } D3D11_INPUT_ELEMENT_DESC vertexLayout[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 } }; unsigned int layoutSize = ARRAYSIZE(vertexLayout); if(FAILED(mDevice->CreateInputLayout( vertexLayout, layoutSize, vsBlob->GetBufferPointer(), vsBlob->GetBufferSize(), &mInputLayout ))){ vsBlob->Release(); return false; } vsBlob->Release(); ID3DBlob* psBlob = 0; if(!CompileShader(L"shaders.fx", "PS_Main", "ps_4_0", &psBlob)){ MessageBox(0, L"Error Loading Pixel Shader", L"Compile Error", MB_OK); if(psBlob) psBlob->Release(); return false; } if(FAILED(mDevice->CreatePixelShader( psBlob->GetBufferPointer(), psBlob->GetBufferSize(), 0, &mPixelShader ))){ psBlob->Release(); return false; } psBlob->Release(); //vertex buffer creation VertexPos vertices[] = { XMFLOAT3( 0.5f, 0.5f, 0.5f ), XMFLOAT3( 0.5f, -0.5f, 0.5f ), XMFLOAT3( -0.5f, -0.5f, 0.5f ) }; D3D11_BUFFER_DESC vertexDesc; ZeroMemory(&vertexDesc, sizeof(vertexDesc)); vertexDesc.Usage = D3D11_USAGE_DEFAULT; vertexDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; vertexDesc.ByteWidth = sizeof(VertexPos) * 3; D3D11_SUBRESOURCE_DATA subresourceData; ZeroMemory(&subresourceData, sizeof(subresourceData)); subresourceData.pSysMem = vertices; if(FAILED(mDevice->CreateBuffer( &vertexDesc, &subresourceData, &mVertexBuffer ))){ return false; } return true; } bool Triangle::CompileShader(wchar_t* filePath, char* entry, char* shaderModel, ID3DBlob** buffer){ DWORD shaderFlags = D3DCOMPILE_ENABLE_STRICTNESS; #if defined(DEBUG) || defined(_DEBUG) shaderFlags |= D3DCOMPILE_DEBUG; #endif ID3DBlob* errorBuffer = 0; HRESULT result; result = D3DX11CompileFromFileW( filePath, 0,0, entry, shaderModel, shaderFlags, 0,0, buffer, &errorBuffer, 0 ); if(FAILED(result)){ if(errorBuffer != 0){ OutputDebugStringA((char*) errorBuffer->GetBufferPointer()); errorBuffer->Release(); } return false; } if(errorBuffer) errorBuffer->Release(); return true; } void Triangle::Render(){ float clearColor[4] = { 1.0f, 0.0f, 1.25f, 1.0f }; mDeviceContext->ClearRenderTargetView(mRenderTarget, clearColor); unsigned int stride = sizeof(VertexPos); unsigned int offset = 0; mDeviceContext->IASetInputLayout(mInputLayout); mDeviceContext->IASetVertexBuffers(0, 1, &mVertexBuffer, &stride, &offset); mDeviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); mDeviceContext->VSSetShader(mVertexShader, 0, 0); mDeviceContext->PSSetShader(mPixelShader, 0, 0); mDeviceContext->Draw(3, 0); mSwapChain->Present(0, 0); } Now when I run this the screen clears up and takes the color i specify, but nothing is drawn on the screen. Just to be sure I just compiled the source code provided by the book and it works just fine. The shaders used are also the same. My computer does support directx 11. Most of the names are self-explanatory i think, but you can ask me if it is confusing. I've tested my framework with other demos and it works fine. I can't seem to find the error in my code.
directx
directx-11
null
null
null
null
open
DirectX Demo does not draw anything on screen === I am learning DirectX 11 right now, and was trying out one of the demos from the book "Beginning DirectX 11 programming". I followed the books guidelines to make a base class that handles window creation and destruction(including d3d11 setup). All other demos are based on this class. So I was writing the Triangle demo, where the aim is to draw a 2d triangle. Here is the implementation of the Triangle class: #include "Triangle.h" Triangle::Triangle(void): mVertexShader(0), mPixelShader(0), mInputLayout(0), mVertexBuffer(0) { } Triangle::~Triangle(void) { } void Triangle::Update(float deltaTime){ } void Triangle::UnloadContent(){ if(mVertexShader) mVertexShader->Release(); if(mPixelShader) mPixelShader->Release(); if(mInputLayout) mInputLayout->Release(); if(mVertexBuffer) mVertexBuffer->Release(); mVertexBuffer = 0; mPixelShader = 0; mVertexShader = 0; mInputLayout = 0; } bool Triangle::LoadContent(){ //Load Vertex Shader and make it active ID3DBlob* vsBlob = 0; if(!CompileShader(L"shaders.fx", "VS_Main", "vs_4_0", &vsBlob)){ MessageBox(0, L"Error Loading Vertex Shader", L"Compile Error", MB_OK); return false; } HRESULT hr; if(FAILED(hr = mDevice->CreateVertexShader(vsBlob->GetBufferPointer(), vsBlob->GetBufferSize(), 0, &mVertexShader))){ if(vsBlob) vsBlob->Release(); return false; } D3D11_INPUT_ELEMENT_DESC vertexLayout[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 } }; unsigned int layoutSize = ARRAYSIZE(vertexLayout); if(FAILED(mDevice->CreateInputLayout( vertexLayout, layoutSize, vsBlob->GetBufferPointer(), vsBlob->GetBufferSize(), &mInputLayout ))){ vsBlob->Release(); return false; } vsBlob->Release(); ID3DBlob* psBlob = 0; if(!CompileShader(L"shaders.fx", "PS_Main", "ps_4_0", &psBlob)){ MessageBox(0, L"Error Loading Pixel Shader", L"Compile Error", MB_OK); if(psBlob) psBlob->Release(); return false; } if(FAILED(mDevice->CreatePixelShader( psBlob->GetBufferPointer(), psBlob->GetBufferSize(), 0, &mPixelShader ))){ psBlob->Release(); return false; } psBlob->Release(); //vertex buffer creation VertexPos vertices[] = { XMFLOAT3( 0.5f, 0.5f, 0.5f ), XMFLOAT3( 0.5f, -0.5f, 0.5f ), XMFLOAT3( -0.5f, -0.5f, 0.5f ) }; D3D11_BUFFER_DESC vertexDesc; ZeroMemory(&vertexDesc, sizeof(vertexDesc)); vertexDesc.Usage = D3D11_USAGE_DEFAULT; vertexDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; vertexDesc.ByteWidth = sizeof(VertexPos) * 3; D3D11_SUBRESOURCE_DATA subresourceData; ZeroMemory(&subresourceData, sizeof(subresourceData)); subresourceData.pSysMem = vertices; if(FAILED(mDevice->CreateBuffer( &vertexDesc, &subresourceData, &mVertexBuffer ))){ return false; } return true; } bool Triangle::CompileShader(wchar_t* filePath, char* entry, char* shaderModel, ID3DBlob** buffer){ DWORD shaderFlags = D3DCOMPILE_ENABLE_STRICTNESS; #if defined(DEBUG) || defined(_DEBUG) shaderFlags |= D3DCOMPILE_DEBUG; #endif ID3DBlob* errorBuffer = 0; HRESULT result; result = D3DX11CompileFromFileW( filePath, 0,0, entry, shaderModel, shaderFlags, 0,0, buffer, &errorBuffer, 0 ); if(FAILED(result)){ if(errorBuffer != 0){ OutputDebugStringA((char*) errorBuffer->GetBufferPointer()); errorBuffer->Release(); } return false; } if(errorBuffer) errorBuffer->Release(); return true; } void Triangle::Render(){ float clearColor[4] = { 1.0f, 0.0f, 1.25f, 1.0f }; mDeviceContext->ClearRenderTargetView(mRenderTarget, clearColor); unsigned int stride = sizeof(VertexPos); unsigned int offset = 0; mDeviceContext->IASetInputLayout(mInputLayout); mDeviceContext->IASetVertexBuffers(0, 1, &mVertexBuffer, &stride, &offset); mDeviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); mDeviceContext->VSSetShader(mVertexShader, 0, 0); mDeviceContext->PSSetShader(mPixelShader, 0, 0); mDeviceContext->Draw(3, 0); mSwapChain->Present(0, 0); } Now when I run this the screen clears up and takes the color i specify, but nothing is drawn on the screen. Just to be sure I just compiled the source code provided by the book and it works just fine. The shaders used are also the same. My computer does support directx 11. Most of the names are self-explanatory i think, but you can ask me if it is confusing. I've tested my framework with other demos and it works fine. I can't seem to find the error in my code.
0
10,669,301
05/19/2012 22:31:08
967,451
09/27/2011 15:54:34
894
12
How to output decimals numbers in PHP for loop?
This: for($i = 5.0; $i < 7.0; $i++) { echo $i.'<br />'; } Outputs: 5 6 I would like to output: 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11 5.12 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.12 How to do that?
php
null
null
null
null
05/20/2012 21:25:17
too localized
How to output decimals numbers in PHP for loop? === This: for($i = 5.0; $i < 7.0; $i++) { echo $i.'<br />'; } Outputs: 5 6 I would like to output: 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11 5.12 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.12 How to do that?
3
11,561,625
07/19/2012 13:12:35
1,043,852
11/13/2011 04:20:17
8
0
Resources for making my own motherboard using 8086 or 80386 or x86 processor?
I am not crazy but just trying to reinvent the wheel to learn more about it. I am electronics graduate and want to make my own motherboard. I want to do this to improve my assembly programming skills. I have done some small projects like making small hardware and writing drivers for them. But, recently i learned x86 assembly so i want to try something more challenging. I tried Google but was unable to find any resource, books or tutorials about this. Can you suggest something ? Thanks in advance.
assembly
x86
hardware
motherboard
null
07/19/2012 15:31:23
off topic
Resources for making my own motherboard using 8086 or 80386 or x86 processor? === I am not crazy but just trying to reinvent the wheel to learn more about it. I am electronics graduate and want to make my own motherboard. I want to do this to improve my assembly programming skills. I have done some small projects like making small hardware and writing drivers for them. But, recently i learned x86 assembly so i want to try something more challenging. I tried Google but was unable to find any resource, books or tutorials about this. Can you suggest something ? Thanks in advance.
2
8,946,230
01/20/2012 18:38:41
1,032,511
11/06/2011 17:23:47
26
3
Trying to make a Custom UITableViewCell with a UITextField becomeFirstResponder when Editing
I have a UITableViewController with custom UITableViewCells that contain a UITextField. When switching the table view into edit mode, I add a new cell to the bottom of the table and would like to make this cell becomeFirstResponder. My tableView:cellForRowAtIndexPath method checks for this bottom cell, so I just added the line: > [cell.theTextField becomeFirstResponder]; Which I believed should work. However, when the table view is first displayed, it does not seem to be working. BUT if I select the cell (making it the first responder), then go out of edit mode (causing a resignFirstResponder within my code), I can then go back into edit mode and magically it becomes the first responder as I would expect! Note that even if I end editing mode with a different cell selected (they all have text fields) and go out of edit mode, then back in, it still works, ***as long as*** at some point I had made the last cell becomeFirstResponder (by selecting it). So, my guess is that when it first becomes the firstResponder, there is something getting set either in the table view or some place else that wasn't originally set, and from then on it makes this work. Anyone have any ideas as to what may be going on here?
ios5
null
null
null
null
null
open
Trying to make a Custom UITableViewCell with a UITextField becomeFirstResponder when Editing === I have a UITableViewController with custom UITableViewCells that contain a UITextField. When switching the table view into edit mode, I add a new cell to the bottom of the table and would like to make this cell becomeFirstResponder. My tableView:cellForRowAtIndexPath method checks for this bottom cell, so I just added the line: > [cell.theTextField becomeFirstResponder]; Which I believed should work. However, when the table view is first displayed, it does not seem to be working. BUT if I select the cell (making it the first responder), then go out of edit mode (causing a resignFirstResponder within my code), I can then go back into edit mode and magically it becomes the first responder as I would expect! Note that even if I end editing mode with a different cell selected (they all have text fields) and go out of edit mode, then back in, it still works, ***as long as*** at some point I had made the last cell becomeFirstResponder (by selecting it). So, my guess is that when it first becomes the firstResponder, there is something getting set either in the table view or some place else that wasn't originally set, and from then on it makes this work. Anyone have any ideas as to what may be going on here?
0
3,164,054
07/02/2010 07:54:23
343,606
05/18/2010 02:11:21
3
0
What's the redundant data in TCP packet?
I am reading "Unix Network Programming" and tcpdump the packet generate by the example. The example is just send out a packet contain string "liha". I read the TCP/IP RFC and found normal IP header is 20B. and normal TCP header except data is 24B. So, there are 8B before string "liha" in the captured packet. Are "0121 3d2a 0120 b43e" useless? 11:00:51.690949 IP localhost.40163 > localhost.9877: Flags [P.], seq 94:99, ack 95, win 513, options [nop,nop,TS val 18955562 ecr 18920510], length 5 0x0000: 4500 0039 ddc6 4000 4006 5ef6 7f00 0001 E..9..@.@.^..... 0x0010: 7f00 0001 9ce3 2695 8465 e35c 8466 58ca ......&..e.\.fX. 0x0020: 8018 0201 fe2d 0000 0101 080a 0121 3d2a .....-.......!=* 0x0030: 0120 b43e 6c69 6861 0a ...>liha.
linux
tcp
tcpdump
null
null
null
open
What's the redundant data in TCP packet? === I am reading "Unix Network Programming" and tcpdump the packet generate by the example. The example is just send out a packet contain string "liha". I read the TCP/IP RFC and found normal IP header is 20B. and normal TCP header except data is 24B. So, there are 8B before string "liha" in the captured packet. Are "0121 3d2a 0120 b43e" useless? 11:00:51.690949 IP localhost.40163 > localhost.9877: Flags [P.], seq 94:99, ack 95, win 513, options [nop,nop,TS val 18955562 ecr 18920510], length 5 0x0000: 4500 0039 ddc6 4000 4006 5ef6 7f00 0001 E..9..@.@.^..... 0x0010: 7f00 0001 9ce3 2695 8465 e35c 8466 58ca ......&..e.\.fX. 0x0020: 8018 0201 fe2d 0000 0101 080a 0121 3d2a .....-.......!=* 0x0030: 0120 b43e 6c69 6861 0a ...>liha.
0
8,455,111
12/10/2011 07:23:55
429,107
08/24/2010 04:35:08
1
0
How to track for 2 domains of example.org and example.org.cn?
just want to make sure what I did is correct. I have 2 domains which is domain.org and domain.org.cn They both are the same site actually, is just showing different language. My question is, if I want to track those 2 sites using one GA id, I should just use 'Multiple top level domains', is it correct? Why I'm asking this is because, I noticed I just got new UI for GA, and in the 'Multiple top level domains' setting, the example says like this below: Examples: - domain.uk - domain.cn - domain.fr which previously was like this below: Examples: - domain.co.uk - domain.com - domain.edu Thanks in advance
google
google-analytics
null
null
null
12/10/2011 17:45:37
off topic
How to track for 2 domains of example.org and example.org.cn? === just want to make sure what I did is correct. I have 2 domains which is domain.org and domain.org.cn They both are the same site actually, is just showing different language. My question is, if I want to track those 2 sites using one GA id, I should just use 'Multiple top level domains', is it correct? Why I'm asking this is because, I noticed I just got new UI for GA, and in the 'Multiple top level domains' setting, the example says like this below: Examples: - domain.uk - domain.cn - domain.fr which previously was like this below: Examples: - domain.co.uk - domain.com - domain.edu Thanks in advance
2
8,347,030
12/01/2011 19:20:17
465,175
10/03/2010 13:28:28
1
0
I'm sending a HTML attachment from SQL Server DB Mail. Why does it have the incorrect MIME type?
When using SQL Server DB Mail to attach an HTML file to a message, the attachment is sent with the incorrect MIME type. When I attach the file inside Outlook, the MIME type is correct. Here is the MIME info from Outlook: ------_=_NextPart_001_01CCB05C.5F8D1025 Content-Type: text/html; name="saved-notepad.html" Content-Transfer-Encoding: base64 Content-Description: saved-notepad.html Content-Disposition: attachment; filename="saved-notepad.html" Here is the MIME info from SQL Server Database Mail: ----boundary_0_132058e8-434b-4ff3-8429-dcd78429bd18 Content-Type: application/octet-stream; name=saved-notepad.html Content-Transfer-Encoding: base64 The files are sent through the same SMTP server. Why does this happen and what can I do to fix it? Here is my code: EXEC msdb.dbo.sp_send_dbmail @profile_name = 'Profile Name', @recipients = 'xxxxxxxx@efaxsend.com', @blind_copy_recipients= 'xxxxxxx@gmail.com', @file_attachments = @HTMLFullPath, @subject = 'Estimate Reminder', @body = '', @body_format = 'html' You may be wondering why my HTML is an attachment and not in the body of the email. It's because eFax only support file attachments.
sql-server
sql-server-2005
tsql
mime-types
dbmail
12/02/2011 01:09:43
off topic
I'm sending a HTML attachment from SQL Server DB Mail. Why does it have the incorrect MIME type? === When using SQL Server DB Mail to attach an HTML file to a message, the attachment is sent with the incorrect MIME type. When I attach the file inside Outlook, the MIME type is correct. Here is the MIME info from Outlook: ------_=_NextPart_001_01CCB05C.5F8D1025 Content-Type: text/html; name="saved-notepad.html" Content-Transfer-Encoding: base64 Content-Description: saved-notepad.html Content-Disposition: attachment; filename="saved-notepad.html" Here is the MIME info from SQL Server Database Mail: ----boundary_0_132058e8-434b-4ff3-8429-dcd78429bd18 Content-Type: application/octet-stream; name=saved-notepad.html Content-Transfer-Encoding: base64 The files are sent through the same SMTP server. Why does this happen and what can I do to fix it? Here is my code: EXEC msdb.dbo.sp_send_dbmail @profile_name = 'Profile Name', @recipients = 'xxxxxxxx@efaxsend.com', @blind_copy_recipients= 'xxxxxxx@gmail.com', @file_attachments = @HTMLFullPath, @subject = 'Estimate Reminder', @body = '', @body_format = 'html' You may be wondering why my HTML is an attachment and not in the body of the email. It's because eFax only support file attachments.
2
10,533,747
05/10/2012 12:14:39
1,387,011
05/10/2012 12:00:41
1
0
JPA entity relationship
I have 3 entities "Teacher,Subject,Form". I want to create a relationship whose primary key is the foreign keys of these "Teacher, Subject, Form". This my relationship entity. @Entity public class TeacherFormMap extends Model{ @Id @ManyToOne @JoinColumn(name="tchId") public Teacher teacher = new Teacher(); @Id @ManyToOne @JoinColumn(name="fmId") public SchClass form = new SchClass(); @Id @ManyToOne @JoinColumn(name="sbjId") public Subject subject = new Subject(); //Check whether the data exist. public boolean isDataExist() { boolean flag = false; List<TeacherFormMap> tfms = TeacherFormMap.findAll(); for(TeacherFormMap tfm:tfms){ if(tfm.subject.equals(subject) && tfm.form.equals(form)) flag = true; } return flag; } } Anytime I save a work I get errors. Any help?
c#
php
c++
null
null
07/10/2012 11:46:33
not a real question
JPA entity relationship === I have 3 entities "Teacher,Subject,Form". I want to create a relationship whose primary key is the foreign keys of these "Teacher, Subject, Form". This my relationship entity. @Entity public class TeacherFormMap extends Model{ @Id @ManyToOne @JoinColumn(name="tchId") public Teacher teacher = new Teacher(); @Id @ManyToOne @JoinColumn(name="fmId") public SchClass form = new SchClass(); @Id @ManyToOne @JoinColumn(name="sbjId") public Subject subject = new Subject(); //Check whether the data exist. public boolean isDataExist() { boolean flag = false; List<TeacherFormMap> tfms = TeacherFormMap.findAll(); for(TeacherFormMap tfm:tfms){ if(tfm.subject.equals(subject) && tfm.form.equals(form)) flag = true; } return flag; } } Anytime I save a work I get errors. Any help?
1
9,652,393
03/11/2012 04:17:25
1,261,847
03/11/2012 04:15:35
1
0
Selling paid apps from India on Android store?
I am located in India. Can developers in India sell PAID mobile apps on android and apple store? I know that free apps can be sold but cannot find enough information about selling paid apps. If not what is the workaround for this? Please advice. Thanks..
android
iphone
null
null
null
04/01/2012 13:28:55
off topic
Selling paid apps from India on Android store? === I am located in India. Can developers in India sell PAID mobile apps on android and apple store? I know that free apps can be sold but cannot find enough information about selling paid apps. If not what is the workaround for this? Please advice. Thanks..
2
11,395,622
07/09/2012 13:04:36
1,510,692
07/08/2012 23:17:46
8
0
Chrome extension to reload and close tab after a time interval
i am working on a extension for google chrome that reloads the a tab once after 2 seconds that the page has loaded and after that waits for 30 minutes and closes the tab or google chrome window. ive tried these scripts in my .js file but none of them seem to worked chrome.tabs.reload(integer tabId, object reloadProperties, function callback) chrome.tabs.remove(integer or array of integer tabIds, function callback) ive already added this permission to my manifest file: {"name": "My First Extension", "version": "1.0", "manifest_version": 2, "description": "The first extension that I made.", "content_scripts": [ {"matches": ["http://*/*"], "js": ["1.js"],"permissions": [ "tabs", "http://*/*"], "permissions": ["tabs"]}]} but it doesnt work thank you all
javascript
google-chrome
script
google-chrome-extension
null
null
open
Chrome extension to reload and close tab after a time interval === i am working on a extension for google chrome that reloads the a tab once after 2 seconds that the page has loaded and after that waits for 30 minutes and closes the tab or google chrome window. ive tried these scripts in my .js file but none of them seem to worked chrome.tabs.reload(integer tabId, object reloadProperties, function callback) chrome.tabs.remove(integer or array of integer tabIds, function callback) ive already added this permission to my manifest file: {"name": "My First Extension", "version": "1.0", "manifest_version": 2, "description": "The first extension that I made.", "content_scripts": [ {"matches": ["http://*/*"], "js": ["1.js"],"permissions": [ "tabs", "http://*/*"], "permissions": ["tabs"]}]} but it doesnt work thank you all
0
8,618,730
12/23/2011 17:05:29
124,658
06/17/2009 20:43:34
80
4
Web Application Deployment
I am using Visual Developer 2010 Express and having a hard time getting my web application to run under IIS. When I configure it in VS, I get an error saying I have a syntax error. When I try to launch the Web Site via the browser, I get a 404 on any one of the pages. This is my first intranet website and I am not that familiar with setting up IIS. What have I messed up on? Can somebody walk me through the steps or point me in the right direction? IIS is not the express version and it is running on a Windows Server. My attempt is to run it under the localhost.
c#
asp.net
visual-studio
visual-studio-2010
iis
12/24/2011 17:45:54
not a real question
Web Application Deployment === I am using Visual Developer 2010 Express and having a hard time getting my web application to run under IIS. When I configure it in VS, I get an error saying I have a syntax error. When I try to launch the Web Site via the browser, I get a 404 on any one of the pages. This is my first intranet website and I am not that familiar with setting up IIS. What have I messed up on? Can somebody walk me through the steps or point me in the right direction? IIS is not the express version and it is running on a Windows Server. My attempt is to run it under the localhost.
1
5,619,223
04/11/2011 09:22:59
698,330
04/08/2011 09:05:00
27
0
Default Threads in Java
How many default Threads are started when ever we call jvm if there is no user created threads in the code ? I already Know 2 threads are going to start, those are 1) Main thread (Non Deamon Thread) 2) Garbage Collector (Deamon Thread)
java
multithreading
null
null
null
null
open
Default Threads in Java === How many default Threads are started when ever we call jvm if there is no user created threads in the code ? I already Know 2 threads are going to start, those are 1) Main thread (Non Deamon Thread) 2) Garbage Collector (Deamon Thread)
0
10,561,478
05/12/2012 06:03:56
1,390,675
05/12/2012 05:46:30
1
0
Find, copy, and replace with regexp or other?
I am a linguist (attempting some data mining of the Latin language) but am rather new to programming. I have a file constituted like this: cerycium:cerycia cessatio:cessatio cessatione cessicius:cessicia cessio:cessio cessione cessionem cessioni and I need it organized like this: cerycium:cerycia cessatio:cessatio cessatio:cessatione cessicius:cessicia cessio:cessio cessio:cessione cessio:cessionem cessio:cessioni Could anyone kindly offer a scipt (bash, regexp, python, whatever) that might do this for me? Thank you!
python
regex
bash
nlp
null
05/13/2012 04:37:12
not a real question
Find, copy, and replace with regexp or other? === I am a linguist (attempting some data mining of the Latin language) but am rather new to programming. I have a file constituted like this: cerycium:cerycia cessatio:cessatio cessatione cessicius:cessicia cessio:cessio cessione cessionem cessioni and I need it organized like this: cerycium:cerycia cessatio:cessatio cessatio:cessatione cessicius:cessicia cessio:cessio cessio:cessione cessio:cessionem cessio:cessioni Could anyone kindly offer a scipt (bash, regexp, python, whatever) that might do this for me? Thank you!
1
5,920,928
05/07/2011 12:12:04
780,582
04/29/2011 06:04:39
4
0
how to find the roots of polynomial equation of 'n'th degree in java
pls help me for resolving the above problem.
java
null
null
null
null
05/07/2011 12:30:13
not a real question
how to find the roots of polynomial equation of 'n'th degree in java === pls help me for resolving the above problem.
1
6,091,656
05/23/2011 00:04:24
58
08/01/2008 13:56:33
4,145
60
Is there a web host that will allow me to run nodejs?
Are there any web hosts out there offering node js support?
node.js
web-hosting
null
null
null
05/23/2011 00:13:11
too localized
Is there a web host that will allow me to run nodejs? === Are there any web hosts out there offering node js support?
3
1,383,378
09/05/2009 14:01:58
135,786
07/09/2009 16:59:12
621
43
In a WPF binding, how can I manipulate the data I'm binding, like, say concat two strings together?
I'd really like to be able to do some manipulation to the stuff I'm binding. Similar to being able to call String.Format() in a <%#%> tag in ASP.Net. For example, assuming this is the type I'm binding: class User { public string FirstName { get; set; } public string LastName { get; set; } public int Age { get; set; } } and this is the Label I'm binding it to (I know this won't work): <Label Name="someLabel" Content="{Binding LastName+,+FirstName+ +Age}")/> Where I want the outcome to be: Smith,John 32
wpf
data-binding
c#
null
null
null
open
In a WPF binding, how can I manipulate the data I'm binding, like, say concat two strings together? === I'd really like to be able to do some manipulation to the stuff I'm binding. Similar to being able to call String.Format() in a <%#%> tag in ASP.Net. For example, assuming this is the type I'm binding: class User { public string FirstName { get; set; } public string LastName { get; set; } public int Age { get; set; } } and this is the Label I'm binding it to (I know this won't work): <Label Name="someLabel" Content="{Binding LastName+,+FirstName+ +Age}")/> Where I want the outcome to be: Smith,John 32
0
6,057,136
05/19/2011 10:19:59
725,430
04/26/2011 13:13:33
131
0
Padding Not Showing?
[On this page][1], the text under the photos in the main section (a.event) isn't showing the 5px padding top and bottom. Any ideas why? Thanks guys =) a.event { width:315px; height:auto; border:0; padding: 5px 0; } [1]: http://www.glamourunderground.com/fitness/
css
wordpress
padding
null
null
05/19/2011 11:46:43
too localized
Padding Not Showing? === [On this page][1], the text under the photos in the main section (a.event) isn't showing the 5px padding top and bottom. Any ideas why? Thanks guys =) a.event { width:315px; height:auto; border:0; padding: 5px 0; } [1]: http://www.glamourunderground.com/fitness/
3
924,921
05/29/2009 08:12:20
75,554
03/09/2009 09:59:40
462
43
Axis webservice with type="xsd:base64Binary"
So i have a wsdl that defines a message part like the following <wsdl:message name="processEnvelopeResponse"> <wsdl:part name="processEnvelopeReturn" type="xsd:base64Binary"/> </wsdl:message> This maps to a xsd, wich then imports other xsds and so on. I have the following questions: 1. How can i generate the Message part objects from the xsd 2. How can i generate the client side objects in a way that allows me to directly fill the message objects and pass it over the wire 3. How do i call the webservice, transforming the generated objects in to base64Binary (this one assumes the above is not possible)
java
web-services
axis
null
null
null
open
Axis webservice with type="xsd:base64Binary" === So i have a wsdl that defines a message part like the following <wsdl:message name="processEnvelopeResponse"> <wsdl:part name="processEnvelopeReturn" type="xsd:base64Binary"/> </wsdl:message> This maps to a xsd, wich then imports other xsds and so on. I have the following questions: 1. How can i generate the Message part objects from the xsd 2. How can i generate the client side objects in a way that allows me to directly fill the message objects and pass it over the wire 3. How do i call the webservice, transforming the generated objects in to base64Binary (this one assumes the above is not possible)
0
7,297,293
09/04/2011 03:45:26
656,925
08/12/2010 02:22:36
899
20
embedded javascritp does not function when inserted in response to an ajax call
**** embedded javascript in the .innerhtml does not run I have what I call a mini-feed in which a user submits a post. This initiates an ajax call which saves the user data to the mysql table. From there PHP generates the xhtml. From there the the PHP generated xhtml is sent back to javascript as response text. This xhtml contains embedded javascript used to display "pretty time". Now if the PHP generatd xhtml/javascript is send to the client in a non-ajax way this works. But when I send it as responseText and then update the DOM using .innerHTM it does not function. Whatever mechanism that picks up javacript with in the XHTML does not seem to like the embedded javascript written into the .innerHTML property of the enclosing div tag. Is there an easy fix for this? Or do I have to construct the UI with in the javascript with out just inserting it all in an innerHTML...in a previous post someone mentioned that .innerHTML was not good practice. Perhaps this is what they meant.
javascript
ajax
null
null
null
null
open
embedded javascritp does not function when inserted in response to an ajax call === **** embedded javascript in the .innerhtml does not run I have what I call a mini-feed in which a user submits a post. This initiates an ajax call which saves the user data to the mysql table. From there PHP generates the xhtml. From there the the PHP generated xhtml is sent back to javascript as response text. This xhtml contains embedded javascript used to display "pretty time". Now if the PHP generatd xhtml/javascript is send to the client in a non-ajax way this works. But when I send it as responseText and then update the DOM using .innerHTM it does not function. Whatever mechanism that picks up javacript with in the XHTML does not seem to like the embedded javascript written into the .innerHTML property of the enclosing div tag. Is there an easy fix for this? Or do I have to construct the UI with in the javascript with out just inserting it all in an innerHTML...in a previous post someone mentioned that .innerHTML was not good practice. Perhaps this is what they meant.
0
5,739,020
04/21/2011 03:02:23
91,748
04/16/2009 17:40:46
226
12
Do you move up or down a directory structure?
My boss and I are having a discussion about whether moving from a folder to one of it's sub-folders should be referred to as moving 'up' or 'down' (ie: from root, do you move up or down to get to home?). What's the general consensus?
directory-structure
philosophy
null
null
null
04/21/2011 03:31:52
too localized
Do you move up or down a directory structure? === My boss and I are having a discussion about whether moving from a folder to one of it's sub-folders should be referred to as moving 'up' or 'down' (ie: from root, do you move up or down to get to home?). What's the general consensus?
3
9,039,294
01/27/2012 19:58:16
1,174,263
01/27/2012 19:50:35
1
0
App working on the wrong facebook account
I have two accounts and have set up an app on one (SharePress from a WordPress site). When a post is uploaded to facebook it does not appear on the account that has the app............. but it does appear on the account that has no apps. I have been scratching my head for hours. Anyone out there have a clue why this is happening? Thanks
facebook
apps
null
null
null
01/27/2012 21:10:48
off topic
App working on the wrong facebook account === I have two accounts and have set up an app on one (SharePress from a WordPress site). When a post is uploaded to facebook it does not appear on the account that has the app............. but it does appear on the account that has no apps. I have been scratching my head for hours. Anyone out there have a clue why this is happening? Thanks
2
3,626,693
09/02/2010 11:36:29
168,472
09/04/2009 11:45:11
102
1
Mac OS X version of Texture2D.m, .h available?
Apple's Texture2D class is a very useful bit of kit for iOS developers. Q. Is there a Mac OS X version of this class available? (I've googled but can only find iOS implementations, mostly through Cocos2D projects.) Cheers.
cocoa
osx
class
opengl
texture2d
null
open
Mac OS X version of Texture2D.m, .h available? === Apple's Texture2D class is a very useful bit of kit for iOS developers. Q. Is there a Mac OS X version of this class available? (I've googled but can only find iOS implementations, mostly through Cocos2D projects.) Cheers.
0
9,321,871
02/17/2012 01:54:15
43,118
12/04/2008 06:57:07
2,478
37
Avoid needing to set jmxremote ports (to use VisualVM remotely)?
We share a remote Linux box for developing various Java apps, and we use VisualVM over ssh to profile the apps [as described here](http://stackoverflow.com/questions/1609961/visualvm-over-ssh). Is there any way to enable JMX/profiling on our Java processes without needing to allocate/provision port numbers among our processes/users? It's annoying to have to always make sure you're specifying a (unique) port number just to enable profiling. To make this all more concrete: hardcoding the port obviously doesn't work and will conflict: exec java -Dcom.sun.management.jmxremote.port=3000 ... We can require always specifying a unique port whenever you run a process, but this is tedious---you have to ensure your ports don't conflict with your other processes and also don't conflict with other users: exec java -Dcom.sun.management.jmxremote.port=$1 ... Currently we use: exec java -Dcom.sun.management.jmxremote.port=$(( $RANDOM + 2000 )) ... But we still occasionally bump into occupied port numbers. We can continue with fancier scripts (e.g. querying `netstat` for occupied port numbers and hoping there's no race), but we're wondering whether there's a better way / whether we're Doing It Wrong.
java
jvm
jmx
hotspot
visualvm
null
open
Avoid needing to set jmxremote ports (to use VisualVM remotely)? === We share a remote Linux box for developing various Java apps, and we use VisualVM over ssh to profile the apps [as described here](http://stackoverflow.com/questions/1609961/visualvm-over-ssh). Is there any way to enable JMX/profiling on our Java processes without needing to allocate/provision port numbers among our processes/users? It's annoying to have to always make sure you're specifying a (unique) port number just to enable profiling. To make this all more concrete: hardcoding the port obviously doesn't work and will conflict: exec java -Dcom.sun.management.jmxremote.port=3000 ... We can require always specifying a unique port whenever you run a process, but this is tedious---you have to ensure your ports don't conflict with your other processes and also don't conflict with other users: exec java -Dcom.sun.management.jmxremote.port=$1 ... Currently we use: exec java -Dcom.sun.management.jmxremote.port=$(( $RANDOM + 2000 )) ... But we still occasionally bump into occupied port numbers. We can continue with fancier scripts (e.g. querying `netstat` for occupied port numbers and hoping there's no race), but we're wondering whether there's a better way / whether we're Doing It Wrong.
0
3,547,696
08/23/2010 12:53:57
418,690
08/12/2010 17:03:34
83
0
Simplest way to upload images
what is the simplest way to upload multi images (like 30-50) at once using PHP to process them? Do you know any js/ajax script? Or it possible to use java uploader like on facebook? I don't need images to use them on WYSIWYG editor, but to upload images per album. so all at once
java
php
upload
null
null
null
open
Simplest way to upload images === what is the simplest way to upload multi images (like 30-50) at once using PHP to process them? Do you know any js/ajax script? Or it possible to use java uploader like on facebook? I don't need images to use them on WYSIWYG editor, but to upload images per album. so all at once
0
9,114,697
02/02/2012 15:10:46
775,896
05/30/2011 07:41:08
383
36
Is there any Apple certification for iOS development?
Is there any certification exam available for iOS development? Like we have for Microsoft .net or Oracle (SUN) JAVA. If anyone have any knowledge about this then please share some links for that as I want to get some APPLE certification for iOS development. Thanks a ton in advance for the reply Mrunal
iphone
ios
ipad
apple
certification
07/14/2012 12:34:37
off topic
Is there any Apple certification for iOS development? === Is there any certification exam available for iOS development? Like we have for Microsoft .net or Oracle (SUN) JAVA. If anyone have any knowledge about this then please share some links for that as I want to get some APPLE certification for iOS development. Thanks a ton in advance for the reply Mrunal
2
8,947,353
01/20/2012 20:17:04
1,044,581
11/13/2011 20:42:38
63
0
How do I add Code(bound) to button to control a Function value in a WHERE Clause?
I have this piece of code that controls the day(s) ago in a Date Add Function. How do I embed this code to a form button, so that I can enter the days in a text box? > WHERE > ((DateSerial(CInt(Left([MY_DATE],4)),CInt(Mid([MY_DATE],5,2)),CInt(Right([MY_DATE],2))))=DateAdd("d",-2,Date()))) I want to bound the day(s) to the button so I can type it in. I already have the form and the button on it. Thanks everyone!
sql
ms-access-2007
null
null
null
null
open
How do I add Code(bound) to button to control a Function value in a WHERE Clause? === I have this piece of code that controls the day(s) ago in a Date Add Function. How do I embed this code to a form button, so that I can enter the days in a text box? > WHERE > ((DateSerial(CInt(Left([MY_DATE],4)),CInt(Mid([MY_DATE],5,2)),CInt(Right([MY_DATE],2))))=DateAdd("d",-2,Date()))) I want to bound the day(s) to the button so I can type it in. I already have the form and the button on it. Thanks everyone!
0
4,095,638
11/04/2010 10:17:24
435,129
08/30/2010 15:54:57
362
24
Music meets DSP: What is the difference between Frequency, Pitch, Tone and Note
I am working through some DSP, in regard to writing music related software, and am getting confused by terminology. I am starting to wonder whether these entities are inherently confusing / handwavey / loosely defined... **Frequency** is clear: Cycles per second, Hz. **Pitch**, **Tone** and **Note** are not clear to me. In addition to these terms, there is '**pitch-class**'. C4 and C5 are said to be in the same pitch class. Also, are there any **other terms** that need to be added to this collection for disambiguation?
signal-processing
frequency
pitch
null
null
11/04/2010 11:06:48
off topic
Music meets DSP: What is the difference between Frequency, Pitch, Tone and Note === I am working through some DSP, in regard to writing music related software, and am getting confused by terminology. I am starting to wonder whether these entities are inherently confusing / handwavey / loosely defined... **Frequency** is clear: Cycles per second, Hz. **Pitch**, **Tone** and **Note** are not clear to me. In addition to these terms, there is '**pitch-class**'. C4 and C5 are said to be in the same pitch class. Also, are there any **other terms** that need to be added to this collection for disambiguation?
2
10,071,079
04/09/2012 09:05:45
1,271,912
03/15/2012 15:22:50
1
4
What is the best answer for finding the maximum sum possible in an array
The question is : Find the maximum sum possible in an array of positive integers by selecting the elements in such a way that no two elements are next to each other. there is an answer like this : but what is the best answer for this question Let's denote the array by "t" and index it from 0. Let f be a function so that f(k)=the maximal sum in the [0..k] subarray with the conditions of the problem. Now use dynamic programming: f(0) = t[0] f(1) = max{ t[0], t[1] } f(k) = max{ f(k-2) + t[k], f(k-1) } if k >= 2 If the array has n elements we need f(n-1). Thanks in advance.
c
arrays
algorithm
null
null
04/12/2012 02:56:46
not a real question
What is the best answer for finding the maximum sum possible in an array === The question is : Find the maximum sum possible in an array of positive integers by selecting the elements in such a way that no two elements are next to each other. there is an answer like this : but what is the best answer for this question Let's denote the array by "t" and index it from 0. Let f be a function so that f(k)=the maximal sum in the [0..k] subarray with the conditions of the problem. Now use dynamic programming: f(0) = t[0] f(1) = max{ t[0], t[1] } f(k) = max{ f(k-2) + t[k], f(k-1) } if k >= 2 If the array has n elements we need f(n-1). Thanks in advance.
1
8,969,949
01/23/2012 10:06:50
218,725
11/25/2009 15:42:47
148
0
Loading Javascript server-side
I'm looking to optimize a website that uses a lot of javascript, I would like to possibly run the javascript server side, can anyone provide any advice on this & javascript optimization in general? Thanks in advance
javascript
optimization
server-side
null
null
01/23/2012 20:41:12
not a real question
Loading Javascript server-side === I'm looking to optimize a website that uses a lot of javascript, I would like to possibly run the javascript server side, can anyone provide any advice on this & javascript optimization in general? Thanks in advance
1
7,342,261
09/08/2011 01:38:49
933,883
09/08/2011 01:38:49
1
0
WordPress no longer posts to Facebook
I have been posting my WordPress blog posts to my Facebook Page for several weeks without issue. Suddenly today it is not working (and I see by multiple posts to WordPress that I am not the only one). I have enabled third party cookies as they said to do. I have unlinked and relinked several times, but still I cannot post to Facebook through WordPress. I have not changed anything. Has anything changed? How can I get this working again?
facebook
wordpress
null
null
null
09/08/2011 03:46:45
off topic
WordPress no longer posts to Facebook === I have been posting my WordPress blog posts to my Facebook Page for several weeks without issue. Suddenly today it is not working (and I see by multiple posts to WordPress that I am not the only one). I have enabled third party cookies as they said to do. I have unlinked and relinked several times, but still I cannot post to Facebook through WordPress. I have not changed anything. Has anything changed? How can I get this working again?
2
10,165,033
04/15/2012 18:54:57
295,189
03/16/2010 21:44:33
1,542
19
acl when the user is not allowed , redirect to some default page
sometime if a user manually enters in the url the action where he is not allowed, he gets this Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] => Array ( [id] => 2 [company_id] => 21 [name] => [group_id] => 2 ) ) I instead want them to be redirected instead of showing this here is my appController public function beforeFilter() { //Configure AuthComponent $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login'); $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'index'); }
cakephp
cakephp-2.0
cakephp-2.1
null
null
null
open
acl when the user is not allowed , redirect to some default page === sometime if a user manually enters in the url the action where he is not allowed, he gets this Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] => Array ( [id] => 2 [company_id] => 21 [name] => [group_id] => 2 ) ) I instead want them to be redirected instead of showing this here is my appController public function beforeFilter() { //Configure AuthComponent $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login'); $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'index'); }
0
4,636,438
01/08/2011 22:12:15
568,371
01/08/2011 22:12:15
1
0
PQN-Non Negative Least Squares Algorithm
I'm trying to code up an implementation of the PQN-NNLS algorithm described on page 10 <a href="http://www.wfu.edu/~plemmons/papers/nonneg.pdf">here</a> in C#. I'm having trouble reading the pseudocode though, could anybody give me a hand and write it out in a more intelligible format? I have already seen the matlab implementation that can be found on google but I don't understand matlab code... Thanks in advance
c#
pseudocode
least-squares
null
null
null
open
PQN-Non Negative Least Squares Algorithm === I'm trying to code up an implementation of the PQN-NNLS algorithm described on page 10 <a href="http://www.wfu.edu/~plemmons/papers/nonneg.pdf">here</a> in C#. I'm having trouble reading the pseudocode though, could anybody give me a hand and write it out in a more intelligible format? I have already seen the matlab implementation that can be found on google but I don't understand matlab code... Thanks in advance
0
11,058,851
06/15/2012 22:16:27
1,459,843
06/15/2012 22:02:21
1
0
website layout not working correctly on older versions of IE - works fine on IE9, FF 13 and chrome
I have created my first site and put alot of time into it and I'm confuse I have tested the site on my browsers IE9 Chrome 19.0.1084.56 m Firefox 13.0 My layout all works for me In checking previous browsers like IE8, IE7 etc the buttons on my menu are not even displaying properly I have an image as a button with a rollover image over the top. They are either half showing the underlying image or not at all and then when clicked on half disappear etc.. I really would like to get some help from an experienced person out there to let me know the best thing to do when it come to my website. Has it got anything to do with the size of the graphics etc? or the way I have done my CSS coding for the rollover buttons?? any help would be greatly appreciated. I'm sorry that I'm a beginner but I have tried to learn what I can and watched hundreds of youtube videos and website tutorials... so I'm not sure where I am going wrong. Website is http://www.kizzieskorner.com PLEASE HELP!!!
php
css
wordpress
internet-explorer
browser-compatibility
06/18/2012 03:38:57
too localized
website layout not working correctly on older versions of IE - works fine on IE9, FF 13 and chrome === I have created my first site and put alot of time into it and I'm confuse I have tested the site on my browsers IE9 Chrome 19.0.1084.56 m Firefox 13.0 My layout all works for me In checking previous browsers like IE8, IE7 etc the buttons on my menu are not even displaying properly I have an image as a button with a rollover image over the top. They are either half showing the underlying image or not at all and then when clicked on half disappear etc.. I really would like to get some help from an experienced person out there to let me know the best thing to do when it come to my website. Has it got anything to do with the size of the graphics etc? or the way I have done my CSS coding for the rollover buttons?? any help would be greatly appreciated. I'm sorry that I'm a beginner but I have tried to learn what I can and watched hundreds of youtube videos and website tutorials... so I'm not sure where I am going wrong. Website is http://www.kizzieskorner.com PLEASE HELP!!!
3
11,140,770
06/21/2012 14:50:00
803,801
06/17/2011 18:59:12
419
5
Matching a character before or after a word, but not both in regex
Lets say I need to match a word `word` where there may be a period before word or after word but not both. Then `word`, `.word`, and `word`. should be matched, but `.word.` should not be matched. How would I match this and capture what occurred before and after the word? That was a simplified example that I'll need to extend to more complicated cases. For example, now the symbols `.` and `'` may occur before or after the word, but they can only occur once. So for example, `.word`, `'word`, `word.'`, and `.word'` are just a few of the valid matches, but something like `.'word.'` shouldn't match, or even `.'word'`. The above example is my main priority, but an added bonus would be the order in which the period and apostrophe are added. Thus `'.word` and `.'word` should both match. I think one way that should work for this is `\.?'?|'?\.?word`, but I was hoping for some way where the number of statements in the OR clause doesn't depend on the number of symbols.
regex
null
null
null
null
null
open
Matching a character before or after a word, but not both in regex === Lets say I need to match a word `word` where there may be a period before word or after word but not both. Then `word`, `.word`, and `word`. should be matched, but `.word.` should not be matched. How would I match this and capture what occurred before and after the word? That was a simplified example that I'll need to extend to more complicated cases. For example, now the symbols `.` and `'` may occur before or after the word, but they can only occur once. So for example, `.word`, `'word`, `word.'`, and `.word'` are just a few of the valid matches, but something like `.'word.'` shouldn't match, or even `.'word'`. The above example is my main priority, but an added bonus would be the order in which the period and apostrophe are added. Thus `'.word` and `.'word` should both match. I think one way that should work for this is `\.?'?|'?\.?word`, but I was hoping for some way where the number of statements in the OR clause doesn't depend on the number of symbols.
0
1,853,613
12/05/2009 21:58:25
457
08/05/2008 21:48:25
2,867
83
Sinatra/Rack Sleep until Response Ready (like Exchange ActiveSync)
I'm wanting to do a lightweight push-style HTTP response in my existing Sinatra web app. Is there any mechanism that allows me to not respond to an HTTP request and keep the connection open until I wake up the connection at a future time?
ruby
sinatra
rack
push
null
null
open
Sinatra/Rack Sleep until Response Ready (like Exchange ActiveSync) === I'm wanting to do a lightweight push-style HTTP response in my existing Sinatra web app. Is there any mechanism that allows me to not respond to an HTTP request and keep the connection open until I wake up the connection at a future time?
0
10,888,584
06/04/2012 21:24:21
1,112,535
12/22/2011 21:48:01
86
0
App is not working on Android 4.0.3 but on Android 2.3.4 it is
I've an app that is working perfectly on Android 2.3.4 (Emulator/Phone). But I tried to install it on Android 4.0.3 (Emulator/Phone) and when i run it is not working. It shows me this message "Unfortunately AppName has stopped" When appears me an error the app is executing these classes: public class EmpleadosAct extends Activity { private ArrayList<String> datos; private ListView list; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActualizarVehiculos(); } public void ActualizarVehiculos() { try { NotesCenter messageCenter = new NotesCenterImpl(); List<Vehiculo> vehiculo = messageCenter.getVehiculo(); for (Vehiculo v : vehiculo) { AndroidOpenDbHelper androidOpenDbHelperObj = new AndroidOpenDbHelper( this); SQLiteDatabase sqliteDatabase = androidOpenDbHelperObj .getWritableDatabase(); ContentValues contentValues = new ContentValues(); contentValues.put(AndroidOpenDbHelper.matricula, v.matricula); long affectedColumnId = sqliteDatabase.insert("Vehiculos", null, contentValues); sqliteDatabase.close(); } } catch (Exception ex) { Log.v("blah", ex.getMessage()); } } } The second class: public class SeleccionarEmpleado extends Activity implements OnClickListener, OnItemClickListener { private ListView listaEmpleados; private EditText ECont; String text; Bundle dataBundle; public EmpleadosAct actemple; protected AppApplication app; private ListAdapter uGraduateListAdapter; private ArrayList<UndergraduateDetailsPojo> pojoArrayList; private String contraseña; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.seleccionarempleado); ***Intent actServicios = new Intent(this, EmpleadosAct.class); startActivity(actServicios);*** listaEmpleados = (ListView) findViewById(R.id.ListaEmpleados); listaEmpleados.setOnItemClickListener(this); pojoArrayList = new ArrayList<UndergraduateDetailsPojo>(); uGraduateListAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, populateList()); listaEmpleados.setAdapter(uGraduateListAdapter); } public boolean onCreateOptionsMenu(Menu menu) { MenuInflater menuInflater = getMenuInflater(); menuInflater.inflate(R.menu.menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.actualizar: //Intent actualizarEmpleados = new Intent(this,EmpleadosAct.class); //startActivity(actualizarEmpleados); //return true; case R.id.opciones: Toast.makeText(SeleccionarEmpleado.this, "Save is Selected", Toast.LENGTH_SHORT).show(); return true; default: return super.onOptionsItemSelected(item); } } public void onClick(View v) { Intent addNewUndergraduateIntent = new Intent(this, InsertarPedido.class); startActivity(addNewUndergraduateIntent); } public List<String> populateList() { List<String> uGraduateNamesList = new ArrayList<String>(); AndroidOpenDbHelper openHelperClass = new AndroidOpenDbHelper(this); SQLiteDatabase sqliteDatabase = openHelperClass.getReadableDatabase(); Cursor cursor = sqliteDatabase.query("Empleados", null, null, null, null, null, null); startManagingCursor(cursor); while (cursor.moveToNext()) { String idempleado = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.idempleado)); String nombre = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.nombre)); String primerapellido = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.primerapellido)); String segundoapellido = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.segundoapellido)); String contra = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.contra)); UndergraduateDetailsPojo ugPojoClass = new UndergraduateDetailsPojo(); ugPojoClass.setIdEmpleado(idempleado); ugPojoClass.setNombreEmpleado(nombre); ugPojoClass.setPrimerApellido(primerapellido); ugPojoClass.setSegundoApellido(segundoapellido); ugPojoClass.setContra(contra); pojoArrayList.add(ugPojoClass); uGraduateNamesList.add(nombre + " " + primerapellido + " " + segundoapellido); } sqliteDatabase.close(); return uGraduateNamesList; } @Override protected void onResume() { super.onResume(); uGraduateListAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, populateList()); listaEmpleados.setAdapter(uGraduateListAdapter); } public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { UndergraduateDetailsPojo clickedObject = pojoArrayList.get(arg2); String Empleado = clickedObject.getNombreEmpleado() + " " + clickedObject.getPrimerApellido() + " " + clickedObject.getSegundoApellido(); Empleado empleadoseleccionado = new Empleado(); empleadoseleccionado.id = clickedObject.getIdEmpleado(); empleadoseleccionado.nombre = Empleado; app = (AppApplication)getApplicationContext(); app.setempleadoActual(empleadoseleccionado); app.setempleadoId(empleadoseleccionado); } } At first it is executing the second class, in the second class there is an Intent that opens the first class. First class adds data to android SQLite database from some remote server. And then the second class is showing this results from android SQLite database. This is the Log: 06-04 21:08:13.034: W/dalvikvm(517): threadid=1: thread exiting with uncaught exception (group=0x409c01f8) 06-04 21:08:13.054: E/AndroidRuntime(517): FATAL EXCEPTION: main 06-04 21:08:13.054: E/AndroidRuntime(517): java.lang.RuntimeException: Unable to start activity ComponentInfo{dokesim.net/myapp.net.EmpleadosAct}: java.lang.NullPointerException: println needs a message 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.access$600(ActivityThread.java:123) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.os.Handler.dispatchMessage(Handler.java:99) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.os.Looper.loop(Looper.java:137) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.main(ActivityThread.java:4424) 06-04 21:08:13.054: E/AndroidRuntime(517): at java.lang.reflect.Method.invokeNative(Native Method) 06-04 21:08:13.054: E/AndroidRuntime(517): at java.lang.reflect.Method.invoke(Method.java:511) 06-04 21:08:13.054: E/AndroidRuntime(517): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 06-04 21:08:13.054: E/AndroidRuntime(517): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 06-04 21:08:13.054: E/AndroidRuntime(517): at dalvik.system.NativeStart.main(Native Method) 06-04 21:08:13.054: E/AndroidRuntime(517): Caused by: java.lang.NullPointerException: println needs a message 06-04 21:08:13.054: E/AndroidRuntime(517): at android.util.Log.println_native(Native Method) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.util.Log.v(Log.java:117) 06-04 21:08:13.054: E/AndroidRuntime(517): at myapp.net.EmpleadosAct.ActualizarVehiculos(EmpleadosAct.java:133) 06-04 21:08:13.054: E/AndroidRuntime(517): at myapp.net.EmpleadosAct.onCreate(EmpleadosAct.java:24) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.Activity.performCreate(Activity.java:4465) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 06-04 21:08:13.054: E/AndroidRuntime(517): ... 11 more So what is it causing that in 2.3.4 android is working everything fine and in 4.0.3 it isn't? There is some problem with my code that doesn't support 4.0.3 version? Thanks for any answer or suggestion.
android
version
ice-cream-sandwich
gingerbread
null
null
open
App is not working on Android 4.0.3 but on Android 2.3.4 it is === I've an app that is working perfectly on Android 2.3.4 (Emulator/Phone). But I tried to install it on Android 4.0.3 (Emulator/Phone) and when i run it is not working. It shows me this message "Unfortunately AppName has stopped" When appears me an error the app is executing these classes: public class EmpleadosAct extends Activity { private ArrayList<String> datos; private ListView list; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActualizarVehiculos(); } public void ActualizarVehiculos() { try { NotesCenter messageCenter = new NotesCenterImpl(); List<Vehiculo> vehiculo = messageCenter.getVehiculo(); for (Vehiculo v : vehiculo) { AndroidOpenDbHelper androidOpenDbHelperObj = new AndroidOpenDbHelper( this); SQLiteDatabase sqliteDatabase = androidOpenDbHelperObj .getWritableDatabase(); ContentValues contentValues = new ContentValues(); contentValues.put(AndroidOpenDbHelper.matricula, v.matricula); long affectedColumnId = sqliteDatabase.insert("Vehiculos", null, contentValues); sqliteDatabase.close(); } } catch (Exception ex) { Log.v("blah", ex.getMessage()); } } } The second class: public class SeleccionarEmpleado extends Activity implements OnClickListener, OnItemClickListener { private ListView listaEmpleados; private EditText ECont; String text; Bundle dataBundle; public EmpleadosAct actemple; protected AppApplication app; private ListAdapter uGraduateListAdapter; private ArrayList<UndergraduateDetailsPojo> pojoArrayList; private String contraseña; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.seleccionarempleado); ***Intent actServicios = new Intent(this, EmpleadosAct.class); startActivity(actServicios);*** listaEmpleados = (ListView) findViewById(R.id.ListaEmpleados); listaEmpleados.setOnItemClickListener(this); pojoArrayList = new ArrayList<UndergraduateDetailsPojo>(); uGraduateListAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, populateList()); listaEmpleados.setAdapter(uGraduateListAdapter); } public boolean onCreateOptionsMenu(Menu menu) { MenuInflater menuInflater = getMenuInflater(); menuInflater.inflate(R.menu.menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.actualizar: //Intent actualizarEmpleados = new Intent(this,EmpleadosAct.class); //startActivity(actualizarEmpleados); //return true; case R.id.opciones: Toast.makeText(SeleccionarEmpleado.this, "Save is Selected", Toast.LENGTH_SHORT).show(); return true; default: return super.onOptionsItemSelected(item); } } public void onClick(View v) { Intent addNewUndergraduateIntent = new Intent(this, InsertarPedido.class); startActivity(addNewUndergraduateIntent); } public List<String> populateList() { List<String> uGraduateNamesList = new ArrayList<String>(); AndroidOpenDbHelper openHelperClass = new AndroidOpenDbHelper(this); SQLiteDatabase sqliteDatabase = openHelperClass.getReadableDatabase(); Cursor cursor = sqliteDatabase.query("Empleados", null, null, null, null, null, null); startManagingCursor(cursor); while (cursor.moveToNext()) { String idempleado = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.idempleado)); String nombre = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.nombre)); String primerapellido = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.primerapellido)); String segundoapellido = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.segundoapellido)); String contra = cursor.getString(cursor .getColumnIndex(AndroidOpenDbHelper.contra)); UndergraduateDetailsPojo ugPojoClass = new UndergraduateDetailsPojo(); ugPojoClass.setIdEmpleado(idempleado); ugPojoClass.setNombreEmpleado(nombre); ugPojoClass.setPrimerApellido(primerapellido); ugPojoClass.setSegundoApellido(segundoapellido); ugPojoClass.setContra(contra); pojoArrayList.add(ugPojoClass); uGraduateNamesList.add(nombre + " " + primerapellido + " " + segundoapellido); } sqliteDatabase.close(); return uGraduateNamesList; } @Override protected void onResume() { super.onResume(); uGraduateListAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, populateList()); listaEmpleados.setAdapter(uGraduateListAdapter); } public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { UndergraduateDetailsPojo clickedObject = pojoArrayList.get(arg2); String Empleado = clickedObject.getNombreEmpleado() + " " + clickedObject.getPrimerApellido() + " " + clickedObject.getSegundoApellido(); Empleado empleadoseleccionado = new Empleado(); empleadoseleccionado.id = clickedObject.getIdEmpleado(); empleadoseleccionado.nombre = Empleado; app = (AppApplication)getApplicationContext(); app.setempleadoActual(empleadoseleccionado); app.setempleadoId(empleadoseleccionado); } } At first it is executing the second class, in the second class there is an Intent that opens the first class. First class adds data to android SQLite database from some remote server. And then the second class is showing this results from android SQLite database. This is the Log: 06-04 21:08:13.034: W/dalvikvm(517): threadid=1: thread exiting with uncaught exception (group=0x409c01f8) 06-04 21:08:13.054: E/AndroidRuntime(517): FATAL EXCEPTION: main 06-04 21:08:13.054: E/AndroidRuntime(517): java.lang.RuntimeException: Unable to start activity ComponentInfo{dokesim.net/myapp.net.EmpleadosAct}: java.lang.NullPointerException: println needs a message 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.access$600(ActivityThread.java:123) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.os.Handler.dispatchMessage(Handler.java:99) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.os.Looper.loop(Looper.java:137) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.main(ActivityThread.java:4424) 06-04 21:08:13.054: E/AndroidRuntime(517): at java.lang.reflect.Method.invokeNative(Native Method) 06-04 21:08:13.054: E/AndroidRuntime(517): at java.lang.reflect.Method.invoke(Method.java:511) 06-04 21:08:13.054: E/AndroidRuntime(517): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 06-04 21:08:13.054: E/AndroidRuntime(517): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 06-04 21:08:13.054: E/AndroidRuntime(517): at dalvik.system.NativeStart.main(Native Method) 06-04 21:08:13.054: E/AndroidRuntime(517): Caused by: java.lang.NullPointerException: println needs a message 06-04 21:08:13.054: E/AndroidRuntime(517): at android.util.Log.println_native(Native Method) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.util.Log.v(Log.java:117) 06-04 21:08:13.054: E/AndroidRuntime(517): at myapp.net.EmpleadosAct.ActualizarVehiculos(EmpleadosAct.java:133) 06-04 21:08:13.054: E/AndroidRuntime(517): at myapp.net.EmpleadosAct.onCreate(EmpleadosAct.java:24) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.Activity.performCreate(Activity.java:4465) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 06-04 21:08:13.054: E/AndroidRuntime(517): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 06-04 21:08:13.054: E/AndroidRuntime(517): ... 11 more So what is it causing that in 2.3.4 android is working everything fine and in 4.0.3 it isn't? There is some problem with my code that doesn't support 4.0.3 version? Thanks for any answer or suggestion.
0
7,985,010
11/02/2011 17:53:16
1,026,187
11/02/2011 17:41:04
1
0
Technological and framework choice for implemeting a dynamic programming language
What is the best way to implement a dynamic language (inspired from JavaScript) compiler? - Translate this language code to C code and then compile the C code to x86 - LLVM Compiler Infrastructure - Parrot VM - LibJit - Any other you propose By "best way" I means the way to get the fastest running.
compiler
interpreter
vm
null
null
11/19/2011 23:35:47
not a real question
Technological and framework choice for implemeting a dynamic programming language === What is the best way to implement a dynamic language (inspired from JavaScript) compiler? - Translate this language code to C code and then compile the C code to x86 - LLVM Compiler Infrastructure - Parrot VM - LibJit - Any other you propose By "best way" I means the way to get the fastest running.
1
2,001,560
01/04/2010 19:24:13
243,405
01/04/2010 19:24:13
1
0
Problem in serializing
Presently I need to serialize one of my object which contains more my own classes object. But the problem is I dont want to save it in a file and then retrieve it into memory stream. Is there any way to directly serialize my object into stream. I used BinaryFormatter for seializing. First I used a MemoryStream directly to take serialize output but it is giving error at time of deserialization. But later when I serialize it with a file then close it and again reopen it , it works perfectly. But I want to take it direct into stream because in my program I need to do it frequently to pass it into network client. And using file repeatedly might slow down my software. Hope I clear my problem. Any Sugetion ?
serialization
null
null
null
null
null
open
Problem in serializing === Presently I need to serialize one of my object which contains more my own classes object. But the problem is I dont want to save it in a file and then retrieve it into memory stream. Is there any way to directly serialize my object into stream. I used BinaryFormatter for seializing. First I used a MemoryStream directly to take serialize output but it is giving error at time of deserialization. But later when I serialize it with a file then close it and again reopen it , it works perfectly. But I want to take it direct into stream because in my program I need to do it frequently to pass it into network client. And using file repeatedly might slow down my software. Hope I clear my problem. Any Sugetion ?
0
8,949,791
01/21/2012 00:53:36
1,161,727
01/21/2012 00:44:32
1
0
Best Practice for a small n-tier application - Linq-sql, Entity FrameWork, or Strongly typed datasets
Im after some advice on building an application for my business. We want to create an Asset Management and Equipment Inspection application that would be linked. We have quite specific needs hence why we will be building in house. I've read quite a bit about n-tier applications and had made my mind up to go with tableAdapters and strongly typed datasets. Ideally we want to be able to write the DAL and forget about it, then work on the UI and BLL. However i've been reading more info regarding Entity Framework, and also linq to sql. About the application. It will be maybe 15 tables deep be used by roughly 10 users. We have 3 locations that will be expanding to possibly 6 in the next few years. We would like to be able to make it portable to mobile device (or at least parts of it). I dont imagine that after the initial setup it would see more than 100 hits per day, so maybe 1000 hits to the DB? Would strongly typed datasets and table adapters be ok for this? The amount of code it would save would be of great benefit, but this app will need to last at least 5 years and be quite scalable. Thanks for any assistance. Andy
entity-framework
linq-to-sql
n-tier
strongly-typed-dataset
null
01/22/2012 01:04:53
not a real question
Best Practice for a small n-tier application - Linq-sql, Entity FrameWork, or Strongly typed datasets === Im after some advice on building an application for my business. We want to create an Asset Management and Equipment Inspection application that would be linked. We have quite specific needs hence why we will be building in house. I've read quite a bit about n-tier applications and had made my mind up to go with tableAdapters and strongly typed datasets. Ideally we want to be able to write the DAL and forget about it, then work on the UI and BLL. However i've been reading more info regarding Entity Framework, and also linq to sql. About the application. It will be maybe 15 tables deep be used by roughly 10 users. We have 3 locations that will be expanding to possibly 6 in the next few years. We would like to be able to make it portable to mobile device (or at least parts of it). I dont imagine that after the initial setup it would see more than 100 hits per day, so maybe 1000 hits to the DB? Would strongly typed datasets and table adapters be ok for this? The amount of code it would save would be of great benefit, but this app will need to last at least 5 years and be quite scalable. Thanks for any assistance. Andy
1
10,546,288
05/11/2012 06:12:38
547,794
12/19/2010 16:18:00
567
11
Using MVC Controller to replace .ashx
I need a controller to handle file uploads. Is it possible to just have a handler print text directly to the page rather than return view(); ? public ActionResult Upload(HttpContext context) { HttpPostedFile file = context.Request.Files["fileData"]; Guid userGuid = (Guid)Membership.GetUser().ProviderUserKey; string userID = userGuid.ToString(); string targetLocation = "D:\\inetpub\\wwwroot\\RTDOTNETMEMBER\\audio\\songs\\mp3\\" + userID + "\\" + file.FileName; file.SaveAs(targetLocation); Response.Write("Testing"); }
c#
asp.net
asp.net-mvc
asp.net-mvc-3
null
null
open
Using MVC Controller to replace .ashx === I need a controller to handle file uploads. Is it possible to just have a handler print text directly to the page rather than return view(); ? public ActionResult Upload(HttpContext context) { HttpPostedFile file = context.Request.Files["fileData"]; Guid userGuid = (Guid)Membership.GetUser().ProviderUserKey; string userID = userGuid.ToString(); string targetLocation = "D:\\inetpub\\wwwroot\\RTDOTNETMEMBER\\audio\\songs\\mp3\\" + userID + "\\" + file.FileName; file.SaveAs(targetLocation); Response.Write("Testing"); }
0
2,401,059
03/08/2010 11:56:50
213,615
11/18/2009 09:41:09
21
2
OpenSSL with unicode paths
I have an implementation of SSL handshake from the client side, by using these functions: SSL_CTX_load_verify_locations SSL_CTX_use_certificate_chain_file SSL_CTX_use_PrivateKey_file All functions get char* type for the filename parameter. How can I change it to support also unicode file locations? Thanks!
openssl
security
ssl-certificate
unicode
null
null
open
OpenSSL with unicode paths === I have an implementation of SSL handshake from the client side, by using these functions: SSL_CTX_load_verify_locations SSL_CTX_use_certificate_chain_file SSL_CTX_use_PrivateKey_file All functions get char* type for the filename parameter. How can I change it to support also unicode file locations? Thanks!
0
10,512,954
05/09/2012 09:05:11
533,356
12/07/2010 08:11:24
26
0
fail when creating shared library with libstdc++ statically linked
using gcc 4.5.1 in a 64bit x86 machine,I first create a.o as following: g++ -fPIC -c a.cc -o a.o then try to create liba.so as following: g++ -static-libstdc++ -shared -W1,-soname,liba.so -o liba.so.1.0.0 a.o but failed, with the following information: relocation R_X86_64_32S against `vtable for __gnu_cxx::stdio_filebuf<wchar_t, std::char_traits<wchar_t> >' can not be used when making a shared object; recompile with -fPIC I try to recompile libstdc++ library,with -fPIC added,but it failed anyway
gcc
libstdc++
null
null
null
null
open
fail when creating shared library with libstdc++ statically linked === using gcc 4.5.1 in a 64bit x86 machine,I first create a.o as following: g++ -fPIC -c a.cc -o a.o then try to create liba.so as following: g++ -static-libstdc++ -shared -W1,-soname,liba.so -o liba.so.1.0.0 a.o but failed, with the following information: relocation R_X86_64_32S against `vtable for __gnu_cxx::stdio_filebuf<wchar_t, std::char_traits<wchar_t> >' can not be used when making a shared object; recompile with -fPIC I try to recompile libstdc++ library,with -fPIC added,but it failed anyway
0
4,304,940
11/29/2010 15:01:36
463,356
09/30/2010 22:34:39
126
1
void pointers in C++
I saw this example on a website, and the websites mentions:- "One of its uses (void pointers) may be to pass generic parameters to a function" // increaser #include <iostream> using namespace std; void increase (void* data, int psize) { if ( psize == sizeof(char) ) { char* pchar; pchar=(char*)data; ++(*pchar); } else if (psize == sizeof(int) ) { int* pint; pint=(int*)data; ++(*pint); } } int main () { char a = 'x'; int b = 1602; increase (&a,sizeof(a)); increase (&b,sizeof(b)); cout << a << ", " << b << endl; return 0; } wouldn't it be simpler to write code like the following? void increaseChar (char* charData) { ++(*charData); } void increaseInt (int* intData) { ++(*intData); } int main () { char a = 'x'; int b = 1602; increaseChar (&a); increaseInt (&b); cout << a << ", " << b << endl; string str; cin >> str; return 0; } It is less code, and really straightforward. And in the first code I had to send the size of the data type here I don't!
c++
null
null
null
null
null
open
void pointers in C++ === I saw this example on a website, and the websites mentions:- "One of its uses (void pointers) may be to pass generic parameters to a function" // increaser #include <iostream> using namespace std; void increase (void* data, int psize) { if ( psize == sizeof(char) ) { char* pchar; pchar=(char*)data; ++(*pchar); } else if (psize == sizeof(int) ) { int* pint; pint=(int*)data; ++(*pint); } } int main () { char a = 'x'; int b = 1602; increase (&a,sizeof(a)); increase (&b,sizeof(b)); cout << a << ", " << b << endl; return 0; } wouldn't it be simpler to write code like the following? void increaseChar (char* charData) { ++(*charData); } void increaseInt (int* intData) { ++(*intData); } int main () { char a = 'x'; int b = 1602; increaseChar (&a); increaseInt (&b); cout << a << ", " << b << endl; string str; cin >> str; return 0; } It is less code, and really straightforward. And in the first code I had to send the size of the data type here I don't!
0
6,085,015
05/21/2011 23:14:14
731,621
04/29/2011 18:56:34
1
0
Have a primary key as well as auto incrementing field.
I have a table with four columns, (id, searchstring, count, timestamp). I want to be able to make to use of the ON DUPLICATE KEY UPDATE feature to update the count of 'searchstring' when a duplicate is entered. However, searchstring needs to be the primary key to be able to do this, and my id is automatically set to my primary key because it is auto incrementing. Is there any way around this?
mysql
primary-key
null
null
null
null
open
Have a primary key as well as auto incrementing field. === I have a table with four columns, (id, searchstring, count, timestamp). I want to be able to make to use of the ON DUPLICATE KEY UPDATE feature to update the count of 'searchstring' when a duplicate is entered. However, searchstring needs to be the primary key to be able to do this, and my id is automatically set to my primary key because it is auto incrementing. Is there any way around this?
0
7,021,624
08/11/2011 06:20:23
92,568
04/18/2009 18:45:13
1,202
34
error C2678: binary '=' : no operator found which takes a left-hand operand of type 'const std::string' (or there is no acceptable conversion)
I am really confused on why I am getting following compilation error. Microsoft Visual Studio Compiler. `error C2678: binary '=' : no operator found which takes a left-hand operand of type 'const std::string' (or there is no acceptable conversion)` #include <stdio.h> #include <iostream> #include <sstream> #include <iterator> class MyException { public: MyException( std::string message, int line = 0) : m_message(message), m_line(line) {} const char* what() const throw(){ if ( m_line != 0 ) { std::ostringstream custom_message; custom_message << "Parsing Error occured at "; custom_message << m_line << " Line : "; custom_message << m_message; m_message = custom_message.str(); } return m_message.c_str(); } private: std::string m_message; int m_line; }; int main(int argc, char **argv) { try { // do something }catch(MyException &e){ std::cout << e.what(); } } Error is coming at line `m_message = custom_message.str();`
c++
visual-studio
null
null
null
null
open
error C2678: binary '=' : no operator found which takes a left-hand operand of type 'const std::string' (or there is no acceptable conversion) === I am really confused on why I am getting following compilation error. Microsoft Visual Studio Compiler. `error C2678: binary '=' : no operator found which takes a left-hand operand of type 'const std::string' (or there is no acceptable conversion)` #include <stdio.h> #include <iostream> #include <sstream> #include <iterator> class MyException { public: MyException( std::string message, int line = 0) : m_message(message), m_line(line) {} const char* what() const throw(){ if ( m_line != 0 ) { std::ostringstream custom_message; custom_message << "Parsing Error occured at "; custom_message << m_line << " Line : "; custom_message << m_message; m_message = custom_message.str(); } return m_message.c_str(); } private: std::string m_message; int m_line; }; int main(int argc, char **argv) { try { // do something }catch(MyException &e){ std::cout << e.what(); } } Error is coming at line `m_message = custom_message.str();`
0
7,798,063
10/17/2011 18:40:20
451,847
09/19/2010 10:13:13
199
3
HTML5 canvas draw faded out background for text
I'm trying to draw a string with a background on a HTML5 canvas. I'm using the GMail favicon as an example, see this picture (from the labs settings page): ![Gmail favicon][1] As you can see, the 8 in the picture has a white glow around it. Here's what I've tried so far: var notstring = notifications.toString(); var xpos = 14; xpos -= (5 * notstring.length); //Draw background ctx.font = "15px sans-serif"; ctx.globalAlpha = 0.5; ctx.fillStyle = "white"; //ctx.fillRect(xpos, 9, (5 * notstring.length) + 2, 7); ctx.fillText(notstring, xpos - 1, 17); //Draw text ctx.font = "10px sans-serif"; ctx.globalAlpha = 1; ctx.fillStyle = "black"; ctx.fillText(notstring, xpos, 15); As you can see I've tried drawing a rectangle behind it, that didn't look good, and text with a different font size, this looked better, but didn't give the fading. I was wondering if anyone here had some suggestions, thanks in advance. [1]: http://i.stack.imgur.com/4ol7a.png
html5
canvas
drawing
null
null
null
open
HTML5 canvas draw faded out background for text === I'm trying to draw a string with a background on a HTML5 canvas. I'm using the GMail favicon as an example, see this picture (from the labs settings page): ![Gmail favicon][1] As you can see, the 8 in the picture has a white glow around it. Here's what I've tried so far: var notstring = notifications.toString(); var xpos = 14; xpos -= (5 * notstring.length); //Draw background ctx.font = "15px sans-serif"; ctx.globalAlpha = 0.5; ctx.fillStyle = "white"; //ctx.fillRect(xpos, 9, (5 * notstring.length) + 2, 7); ctx.fillText(notstring, xpos - 1, 17); //Draw text ctx.font = "10px sans-serif"; ctx.globalAlpha = 1; ctx.fillStyle = "black"; ctx.fillText(notstring, xpos, 15); As you can see I've tried drawing a rectangle behind it, that didn't look good, and text with a different font size, this looked better, but didn't give the fading. I was wondering if anyone here had some suggestions, thanks in advance. [1]: http://i.stack.imgur.com/4ol7a.png
0
7,288,579
09/02/2011 19:52:28
133,273
07/05/2009 04:30:48
467
23
Schema for forum that displays last topic and user
I'm building a simple forum as part of a larger project and one of the requirements is in the list of boards, we display the most recent topic along with the user who posted the topic. Here are the relevant models I have: Board name description subjects_count has_many Subjects Subject title content user_id replies_count belongs_to Board belongs_to User has_many Replies Reply content belongs_to Subject belongs_to User User name has_many Subjects has_many Replies On the boards index view, I have the following fields displayed for each active board (there will probably be 5-10 boards): board.name board.description subjects_count most_recent_subject_title most_recent_subject_id most_recent_subject_user_name To display this information, right now, I'm using the method below: def get_boards_and_latest_subject Board.connection.select_all("SELECT boards.id, boards.name, boards.description, subjects.id as most_recent_subject_id, subjects.title as most_recent_subject_title, subjects.user_id, subjects.created_at, users.name as most_recent_subject_user_name, users.id as user_id, (select count(id) FROM subjects where board_id = boards.id) as subject_count FROM boards INNER JOIN (SELECT board_id, MAX(created_at) MaxDate FROM subjects s GROUP BY board_id) MAXDATES ON boards.id = MaxDates.board_id INNER JOIN subjects ON MaxDates.board_id = subjects.board_id AND MaxDates.MaxDate = subjects.created_at JOIN users ON subjects.user_id = users.id") end I brought this SQL over from the platform I used to begin this project - CodeIgniter - but it seems a bit ridiculous to me now. The goal at the time was to reduce the number of queries when listing the boards. Given the number of boards I have (5-10) wouldn't it be better to do something more like bringing back all the boards in a nice AR call and for each, getting the latest subject and user? Or, another option would be to store the latest subject in the boards table - like a counter cache. Since I'm already updating the table when I add a subject - due to the counter cache, would it just be wise to update the last subject info as well? The boards page on the site that exists today, which we're rebuilding, averages around 20K pageviews per month - so not huge traffic.
ruby-on-rails
null
null
null
null
null
open
Schema for forum that displays last topic and user === I'm building a simple forum as part of a larger project and one of the requirements is in the list of boards, we display the most recent topic along with the user who posted the topic. Here are the relevant models I have: Board name description subjects_count has_many Subjects Subject title content user_id replies_count belongs_to Board belongs_to User has_many Replies Reply content belongs_to Subject belongs_to User User name has_many Subjects has_many Replies On the boards index view, I have the following fields displayed for each active board (there will probably be 5-10 boards): board.name board.description subjects_count most_recent_subject_title most_recent_subject_id most_recent_subject_user_name To display this information, right now, I'm using the method below: def get_boards_and_latest_subject Board.connection.select_all("SELECT boards.id, boards.name, boards.description, subjects.id as most_recent_subject_id, subjects.title as most_recent_subject_title, subjects.user_id, subjects.created_at, users.name as most_recent_subject_user_name, users.id as user_id, (select count(id) FROM subjects where board_id = boards.id) as subject_count FROM boards INNER JOIN (SELECT board_id, MAX(created_at) MaxDate FROM subjects s GROUP BY board_id) MAXDATES ON boards.id = MaxDates.board_id INNER JOIN subjects ON MaxDates.board_id = subjects.board_id AND MaxDates.MaxDate = subjects.created_at JOIN users ON subjects.user_id = users.id") end I brought this SQL over from the platform I used to begin this project - CodeIgniter - but it seems a bit ridiculous to me now. The goal at the time was to reduce the number of queries when listing the boards. Given the number of boards I have (5-10) wouldn't it be better to do something more like bringing back all the boards in a nice AR call and for each, getting the latest subject and user? Or, another option would be to store the latest subject in the boards table - like a counter cache. Since I'm already updating the table when I add a subject - due to the counter cache, would it just be wise to update the last subject info as well? The boards page on the site that exists today, which we're rebuilding, averages around 20K pageviews per month - so not huge traffic.
0
11,562,720
07/19/2012 14:11:01
1,298,462
03/28/2012 14:36:55
1
0
jquery asp.net webservice call not working
I'm trying to call an webservice and always get the error, the alert error shows 'undefined' [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public static string Test() { JavaScriptSerializer js = new JavaScriptSerializer(); return js.Serialize("Test"); } this is the script $.ajax({ type: "POST", contenttype: "application/json; charset=utf-8", data: "{}", url: "WorkflowAjaxHelper.asmx/ChangeFlagRead", dataType: "json", async: false, success: function (res) { alert('success'); }, error: function (err) { alert(err.text); } });
jquery
asp.net
ajax
null
null
null
open
jquery asp.net webservice call not working === I'm trying to call an webservice and always get the error, the alert error shows 'undefined' [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public static string Test() { JavaScriptSerializer js = new JavaScriptSerializer(); return js.Serialize("Test"); } this is the script $.ajax({ type: "POST", contenttype: "application/json; charset=utf-8", data: "{}", url: "WorkflowAjaxHelper.asmx/ChangeFlagRead", dataType: "json", async: false, success: function (res) { alert('success'); }, error: function (err) { alert(err.text); } });
0
11,489,979
07/15/2012 06:38:07
878,485
08/04/2011 11:30:11
69
3
creating mobi file without using third party
I want to generate mobi file for kindle without using any third party using C#. Is there is a way to do that?
c#
kindle
null
null
null
07/15/2012 09:07:39
not a real question
creating mobi file without using third party === I want to generate mobi file for kindle without using any third party using C#. Is there is a way to do that?
1
781,792
04/23/2009 13:49:11
24,875
10/03/2008 15:03:34
310
23
How do I debug a single .cpp file in Visual Studio?
Is there any way to debug a single file in Visual Studio.NET? I'm still a noob with C++, but I want to start learning how to get comfortable with the debugger, and as of right now I am writing really small files. It seems if there is only one source file, it won't let me debug, but the moment I add another one, I can. I am using VS.net 2008.
c++
visual-studio-2008
debugging
null
null
null
open
How do I debug a single .cpp file in Visual Studio? === Is there any way to debug a single file in Visual Studio.NET? I'm still a noob with C++, but I want to start learning how to get comfortable with the debugger, and as of right now I am writing really small files. It seems if there is only one source file, it won't let me debug, but the moment I add another one, I can. I am using VS.net 2008.
0
716,770
04/04/2009 08:31:00
50,475
12/31/2008 12:17:16
783
40
Return plain objects in entity framework for serialization
I have been trying out both Linq to Sql and EF in my ASP.NET MVC application. After switching to EF I realized my XML/JSON serialization output has extra cruft. XML: <Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <EntityKey> <EntitySetName>Persons</EntitySetName> <EntityContainerName>PersonEntities</EntityContainerName> <EntityKeyValues> <EntityKeyMember> <Key>Id</Key> <Value xsi:type="xsd:int">1</Value> </EntityKeyMember> </EntityKeyValues> </EntityKey> <Id>1</Id> <Name>John</Name> </Test> JSON: {"Id":1,"Name":"John","EntityState":2,"EntityKey"{"EntitySetName":"Persons","EntityContainerName":"PersonEntities","EntityKeyValues":[{"Key":"Id","Value":1}],"IsTemporary":false}} Instead I would just like my output to be: {"Id":1, "Name":"John"} My EF query to retrieve the object is: Tests.First(t => t.Id == testId);
entity-framework
poco
serialization
json
linq-to-sql
null
open
Return plain objects in entity framework for serialization === I have been trying out both Linq to Sql and EF in my ASP.NET MVC application. After switching to EF I realized my XML/JSON serialization output has extra cruft. XML: <Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <EntityKey> <EntitySetName>Persons</EntitySetName> <EntityContainerName>PersonEntities</EntityContainerName> <EntityKeyValues> <EntityKeyMember> <Key>Id</Key> <Value xsi:type="xsd:int">1</Value> </EntityKeyMember> </EntityKeyValues> </EntityKey> <Id>1</Id> <Name>John</Name> </Test> JSON: {"Id":1,"Name":"John","EntityState":2,"EntityKey"{"EntitySetName":"Persons","EntityContainerName":"PersonEntities","EntityKeyValues":[{"Key":"Id","Value":1}],"IsTemporary":false}} Instead I would just like my output to be: {"Id":1, "Name":"John"} My EF query to retrieve the object is: Tests.First(t => t.Id == testId);
0
9,980,635
04/02/2012 17:04:24
1,308,237
04/02/2012 14:14:00
1
0
MySQL: SELECT statement that compares values across multiple tables isn't returning the correct rows
I've searched a number of resources on SO and the web to try and figure out why my MySQL select statement isn't returning the correct rows/results. I apologize in advance if there's an answer here I missed and appreciate someone pointing it out to me. A little background. Assume an email campaign application that has the tables: users, groups, campaigns, queue, managers_groups and settings. Each group has their own settings that has a flag called 'delivery_enabled' - 1 or 0. An important note is when a group is managed by another group, the 'managee' group automatically will use the managing group's settings. Thus , even if the 'managee' group's settings have delivery_enabled set to 1 and their managing group's is set to 0, theirs will also be treated as 0. I hope I explained that clearly :/ The following statement is used to return rows from the table 'queue' - the queue holds the messages/emails pending delivery by the application. The statement checks to see if the user's group settings.delivery_enabled = 1 - taking into consideration (via CASE) whether or not we should be using the user's own group settings or their managing group's settings. SELECT t1.* FROM queue t1, campaigns t2, users t3, managers_groups t4, settings t5 WHERE ( t1.campaign_status = 3 && t1.campaign_id = t2.id && t2.user_id = t3.id && t5.delivery_enabled = 1 ) && CASE ( SELECT 'has_manager' FROM managers_groups WHERE managee_group_id = t3.group_id ) WHEN 'has_manager' THEN t4.manager_group_id = t5.group_id ELSE t3.group_id = t5.group_id END GROUP BY t1.id ORDER BY t1.send_at ASC, t1.id ASC The results I'm getting show that a group that has a managing group still uses their own settings and not the managing group's. I feel like something is wrong with my CASE statement in the WHERE CLAUSE, causing the query to fall-back on the ELSE. If someone wants to try it out, here's the data I'm using for this. CREATE TABLE IF NOT EXISTS `campaigns` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(12) NOT NULL, `name` varchar(150) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ; -- -- Dumping data for table `campaigns` -- INSERT INTO `campaigns` (`id`, `user_id`, `name`) VALUES (16, 72, 'Steve''s Campaign'), (13, 83, 'Kelly''s Campaign'), (14, 77, 'Narek''s Campaign'), (15, 75, 'Cynthia''s Campaign'); -- -------------------------------------------------------- -- -- Table structure for table `groups` -- CREATE TABLE IF NOT EXISTS `groups` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(150) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=110 ; -- -- Dumping data for table `groups` -- INSERT INTO `groups` (`id`, `name`) VALUES (108, 'Managers 002'), (107, 'Managers 001'), (106, 'Members 001 - Group B'), (104, 'Members 002 - Group A'), (103, 'Members 001 - Group A'); -- -------------------------------------------------------- -- -- Table structure for table `managers_groups` -- CREATE TABLE IF NOT EXISTS `managers_groups` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `manager_group_id` int(12) NOT NULL, `managee_group_id` int(12) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=280 ; -- -- Dumping data for table `managers_groups` -- INSERT INTO `managers_groups` (`id`, `manager_group_id`, `managee_group_id`) VALUES (274, 108, 104), (279, 107, 103); -- -------------------------------------------------------- -- -- Table structure for table `queue` -- CREATE TABLE IF NOT EXISTS `queue` ( `id` int(12) NOT NULL AUTO_INCREMENT, `campaign_id` int(12) NOT NULL, `campaign_status` int(2) NOT NULL DEFAULT '0', `send_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ; -- -- Dumping data for table `queue` -- INSERT INTO `queue` (`id`, `campaign_id`, `campaign_status`, `send_at`) VALUES (1, 16, 3, '2012-04-01 20:05:45'), (2, 16, 3, '2012-04-01 20:05:45'), (3, 16, 3, '2012-04-01 20:05:45'), (4, 16, 3, '2012-04-01 20:05:45'), (5, 15, 3, '2012-04-01 20:00:18'), (6, 15, 3, '2012-04-01 20:00:18'), (7, 15, 3, '2012-04-01 20:00:18'), (8, 15, 3, '2012-04-01 20:00:18'), (9, 15, 3, '2012-04-01 20:00:18'), (10, 15, 3, '2012-04-01 20:00:18'), (11, 15, 3, '2012-04-01 20:00:18'), (12, 14, 3, '2012-04-01 20:00:06'), (13, 14, 3, '2012-04-01 20:00:06'), (14, 14, 3, '2012-04-01 20:00:06'), (15, 14, 3, '2012-04-01 20:00:06'), (16, 14, 3, '2012-04-01 20:00:06'), (17, 14, 3, '2012-04-01 20:00:06'), (18, 13, 3, '2012-04-01 19:59:53'), (19, 13, 3, '2012-04-01 19:59:53'); -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE IF NOT EXISTS `settings` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `group_id` int(12) unsigned NOT NULL, `delivery_enabled` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `group_id`, `delivery_enabled`) VALUES (19, 107, 1), (20, 108, 0), (18, 106, 0), (16, 104, 1), (15, 103, 1); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `group_id` int(12) NOT NULL, `username` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=86 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `group_id`, `username`) VALUES (83, 106, 'kelly'), (77, 104, 'narek'), (75, 104, 'cynthia'), (72, 103, 'steve'); One more note is that I did try a scaled back version with only three tables and far less data which seemed to work fine, but once I used the same methodology in the larger scenario (which has more tables to reference against) it didn't work. If more info is needed, let me know. Thanks in advance for those who can lend a hand. Much appreciated!
mysql
table
select
compare
case
null
open
MySQL: SELECT statement that compares values across multiple tables isn't returning the correct rows === I've searched a number of resources on SO and the web to try and figure out why my MySQL select statement isn't returning the correct rows/results. I apologize in advance if there's an answer here I missed and appreciate someone pointing it out to me. A little background. Assume an email campaign application that has the tables: users, groups, campaigns, queue, managers_groups and settings. Each group has their own settings that has a flag called 'delivery_enabled' - 1 or 0. An important note is when a group is managed by another group, the 'managee' group automatically will use the managing group's settings. Thus , even if the 'managee' group's settings have delivery_enabled set to 1 and their managing group's is set to 0, theirs will also be treated as 0. I hope I explained that clearly :/ The following statement is used to return rows from the table 'queue' - the queue holds the messages/emails pending delivery by the application. The statement checks to see if the user's group settings.delivery_enabled = 1 - taking into consideration (via CASE) whether or not we should be using the user's own group settings or their managing group's settings. SELECT t1.* FROM queue t1, campaigns t2, users t3, managers_groups t4, settings t5 WHERE ( t1.campaign_status = 3 && t1.campaign_id = t2.id && t2.user_id = t3.id && t5.delivery_enabled = 1 ) && CASE ( SELECT 'has_manager' FROM managers_groups WHERE managee_group_id = t3.group_id ) WHEN 'has_manager' THEN t4.manager_group_id = t5.group_id ELSE t3.group_id = t5.group_id END GROUP BY t1.id ORDER BY t1.send_at ASC, t1.id ASC The results I'm getting show that a group that has a managing group still uses their own settings and not the managing group's. I feel like something is wrong with my CASE statement in the WHERE CLAUSE, causing the query to fall-back on the ELSE. If someone wants to try it out, here's the data I'm using for this. CREATE TABLE IF NOT EXISTS `campaigns` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(12) NOT NULL, `name` varchar(150) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ; -- -- Dumping data for table `campaigns` -- INSERT INTO `campaigns` (`id`, `user_id`, `name`) VALUES (16, 72, 'Steve''s Campaign'), (13, 83, 'Kelly''s Campaign'), (14, 77, 'Narek''s Campaign'), (15, 75, 'Cynthia''s Campaign'); -- -------------------------------------------------------- -- -- Table structure for table `groups` -- CREATE TABLE IF NOT EXISTS `groups` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(150) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=110 ; -- -- Dumping data for table `groups` -- INSERT INTO `groups` (`id`, `name`) VALUES (108, 'Managers 002'), (107, 'Managers 001'), (106, 'Members 001 - Group B'), (104, 'Members 002 - Group A'), (103, 'Members 001 - Group A'); -- -------------------------------------------------------- -- -- Table structure for table `managers_groups` -- CREATE TABLE IF NOT EXISTS `managers_groups` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `manager_group_id` int(12) NOT NULL, `managee_group_id` int(12) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=280 ; -- -- Dumping data for table `managers_groups` -- INSERT INTO `managers_groups` (`id`, `manager_group_id`, `managee_group_id`) VALUES (274, 108, 104), (279, 107, 103); -- -------------------------------------------------------- -- -- Table structure for table `queue` -- CREATE TABLE IF NOT EXISTS `queue` ( `id` int(12) NOT NULL AUTO_INCREMENT, `campaign_id` int(12) NOT NULL, `campaign_status` int(2) NOT NULL DEFAULT '0', `send_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ; -- -- Dumping data for table `queue` -- INSERT INTO `queue` (`id`, `campaign_id`, `campaign_status`, `send_at`) VALUES (1, 16, 3, '2012-04-01 20:05:45'), (2, 16, 3, '2012-04-01 20:05:45'), (3, 16, 3, '2012-04-01 20:05:45'), (4, 16, 3, '2012-04-01 20:05:45'), (5, 15, 3, '2012-04-01 20:00:18'), (6, 15, 3, '2012-04-01 20:00:18'), (7, 15, 3, '2012-04-01 20:00:18'), (8, 15, 3, '2012-04-01 20:00:18'), (9, 15, 3, '2012-04-01 20:00:18'), (10, 15, 3, '2012-04-01 20:00:18'), (11, 15, 3, '2012-04-01 20:00:18'), (12, 14, 3, '2012-04-01 20:00:06'), (13, 14, 3, '2012-04-01 20:00:06'), (14, 14, 3, '2012-04-01 20:00:06'), (15, 14, 3, '2012-04-01 20:00:06'), (16, 14, 3, '2012-04-01 20:00:06'), (17, 14, 3, '2012-04-01 20:00:06'), (18, 13, 3, '2012-04-01 19:59:53'), (19, 13, 3, '2012-04-01 19:59:53'); -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE IF NOT EXISTS `settings` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `group_id` int(12) unsigned NOT NULL, `delivery_enabled` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `group_id`, `delivery_enabled`) VALUES (19, 107, 1), (20, 108, 0), (18, 106, 0), (16, 104, 1), (15, 103, 1); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(12) unsigned NOT NULL AUTO_INCREMENT, `group_id` int(12) NOT NULL, `username` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=86 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `group_id`, `username`) VALUES (83, 106, 'kelly'), (77, 104, 'narek'), (75, 104, 'cynthia'), (72, 103, 'steve'); One more note is that I did try a scaled back version with only three tables and far less data which seemed to work fine, but once I used the same methodology in the larger scenario (which has more tables to reference against) it didn't work. If more info is needed, let me know. Thanks in advance for those who can lend a hand. Much appreciated!
0
7,359,359
09/09/2011 09:04:49
848,117
03/19/2011 20:40:08
1
1
Mirror flip CGPath
I have a simple circle CGPath. I am having trouble flipping it horizontally, like a mirror effect. If you are answering this question, please try to provide a full code and not only a general reference... thx
ios
core-graphics
cgcontext
cgpath
uibezierpath
09/09/2011 17:51:49
not a real question
Mirror flip CGPath === I have a simple circle CGPath. I am having trouble flipping it horizontally, like a mirror effect. If you are answering this question, please try to provide a full code and not only a general reference... thx
1
3,727,916
09/16/2010 14:56:20
428,370
08/23/2010 11:48:54
27
1
[python] xldate_as_tuple
im not quite sure how to use the following function: xldate_as_tuple for the following data xldate:39274.0 xldate:39839.0 could someone please give me an example on usage of the function for the data?
python
date
xlrd
null
null
null
open
[python] xldate_as_tuple === im not quite sure how to use the following function: xldate_as_tuple for the following data xldate:39274.0 xldate:39839.0 could someone please give me an example on usage of the function for the data?
0
9,242,469
02/11/2012 17:45:50
1,066,432
11/26/2011 01:23:28
110
3
Rewriting URL with mod_rewrite
How could I change, www.mysite.com/help.php to www.mysite.com/help using mod_rewrite? And when they type in www.mysite.com/help it will show everything from www.mysite.com/help.php
apache
.htaccess
mod-rewrite
null
null
02/11/2012 20:02:41
not a real question
Rewriting URL with mod_rewrite === How could I change, www.mysite.com/help.php to www.mysite.com/help using mod_rewrite? And when they type in www.mysite.com/help it will show everything from www.mysite.com/help.php
1
8,787,141
01/09/2012 10:40:34
1,138,427
01/09/2012 10:10:50
1
0
Small C/C++ library for GLSL image processing?
For an upcoming project I'm looking for a small cross-platform library that will easily let me apply multiple GLSL fragment shaders to images. Just basic 2D image processing, really. I'm experienced in C++ and GLSL shader writing but haven't done much work in OpenGL. All actual image processing will be done using GLSL shaders, so I don't need a huge library with image processing functions, model and image file loading and so on. I just want the library to handle the OpenGL context, dealing with setting up FBOs and loading/applying the given shaders. I do not want to display the resulting image in a window, so a simple setup for windowless rendering is desirable. I have looked at the common OpenGL frameworks and had some success with SFML, but unfortunately SFML only supports textures with 8-bit color -- I need full 32-bit float precision for this task. Probably frameworks like Cinder could handle my requirements, but it just seems like overkill for what I'm trying to do. So... any ideas for small libraries that will make it easy to apply GLSL shaders to 2D images in an FBO?
c++
opengl
image-processing
glsl
null
02/05/2012 03:46:12
not constructive
Small C/C++ library for GLSL image processing? === For an upcoming project I'm looking for a small cross-platform library that will easily let me apply multiple GLSL fragment shaders to images. Just basic 2D image processing, really. I'm experienced in C++ and GLSL shader writing but haven't done much work in OpenGL. All actual image processing will be done using GLSL shaders, so I don't need a huge library with image processing functions, model and image file loading and so on. I just want the library to handle the OpenGL context, dealing with setting up FBOs and loading/applying the given shaders. I do not want to display the resulting image in a window, so a simple setup for windowless rendering is desirable. I have looked at the common OpenGL frameworks and had some success with SFML, but unfortunately SFML only supports textures with 8-bit color -- I need full 32-bit float precision for this task. Probably frameworks like Cinder could handle my requirements, but it just seems like overkill for what I'm trying to do. So... any ideas for small libraries that will make it easy to apply GLSL shaders to 2D images in an FBO?
4
4,503,742
12/21/2010 20:45:19
275,097
02/17/2010 09:27:24
119
1
How to see "anti if" movement and its gaol?
I have a developer for last 3 years, have been using if-else or if-else if statements a lot in my programing habit. And today, I found [This][1] link. One obvious sample i put here public void doSomthing(String target, String object){ //validate requests if(target != null && target.trim().length() < 1){ //invalid request; } //further logic } Now, I have seen this sort of check all over the places, libraries. So, I wanted to have a discussion about the worthiness of such a movement. Please let me know your views. [1]: http://www.antiifcampaign.com/articles/
java
programming-languages
patterns
anti-patterns
null
12/21/2010 21:00:14
not a real question
How to see "anti if" movement and its gaol? === I have a developer for last 3 years, have been using if-else or if-else if statements a lot in my programing habit. And today, I found [This][1] link. One obvious sample i put here public void doSomthing(String target, String object){ //validate requests if(target != null && target.trim().length() < 1){ //invalid request; } //further logic } Now, I have seen this sort of check all over the places, libraries. So, I wanted to have a discussion about the worthiness of such a movement. Please let me know your views. [1]: http://www.antiifcampaign.com/articles/
1
1,753,008
11/18/2009 01:18:20
194,927
10/22/2009 21:55:16
6
0
Making Controls public/Global in Netbeans with Java.
So I have multiple forms for my current project and I have made classes that interact and do some utility work behind these forms. However I am unable to access controls on other forms. Say I have a text control on Form A and I want to use a class that receives/manipulates data from a completely different Form B. My classes and Form B cannot see this control. I have tried going to properties code variable modifiers set to "Public" Unfortunately this does not seem to do the trick. Any ideas? I appreciate the help!!
java
netbeans
controls
global-variables
public
null
open
Making Controls public/Global in Netbeans with Java. === So I have multiple forms for my current project and I have made classes that interact and do some utility work behind these forms. However I am unable to access controls on other forms. Say I have a text control on Form A and I want to use a class that receives/manipulates data from a completely different Form B. My classes and Form B cannot see this control. I have tried going to properties code variable modifiers set to "Public" Unfortunately this does not seem to do the trick. Any ideas? I appreciate the help!!
0
9,586,330
03/06/2012 15:10:40
239,279
12/27/2009 20:03:55
497
7
Using paypal buy now custom variables
I've got an order page with a single Buy Now button. After a user orders using this button, I'd like to redirect him back to my page with some custom message. For this I'd like to pass his userid to PayPal and get it back. I've found that I can use custom fields - but didn't understand how I use it and how I get it back. Could anyone please help? maybe post some code snippet to understand how to build the custom variable and how I get it back. Thanks
paypal
paypal-sandbox
null
null
null
null
open
Using paypal buy now custom variables === I've got an order page with a single Buy Now button. After a user orders using this button, I'd like to redirect him back to my page with some custom message. For this I'd like to pass his userid to PayPal and get it back. I've found that I can use custom fields - but didn't understand how I use it and how I get it back. Could anyone please help? maybe post some code snippet to understand how to build the custom variable and how I get it back. Thanks
0
5,175,603
03/03/2011 01:25:46
495,363
11/02/2010 23:10:06
1
1
Throws Null Pointer when not in jar
I am doing some XML parse and the program works just fine when I package it to a jar, but when I try to run it in NetBeans, it throws a Null Pointer Exception. I have tried debuging it, but I can't see any reason why it would do that.
java
jar
nullpointerexception
jdom
null
03/03/2011 18:27:59
not a real question
Throws Null Pointer when not in jar === I am doing some XML parse and the program works just fine when I package it to a jar, but when I try to run it in NetBeans, it throws a Null Pointer Exception. I have tried debuging it, but I can't see any reason why it would do that.
1
10,332,153
04/26/2012 11:06:00
1,044,932
11/14/2011 04:10:22
91
0
How to align the textview to right in android?
I am displaying the **date and the cricket score in a table**. But my problem is when I am displaying the No **1,2,3,....upto 9 it is working fine...But when I displayed 10 the date in the next date column is moving one place right because of two digit number 10.** How to solve this issue? ![enter image description here][1] Any help will be thankful.... [1]: http://i.stack.imgur.com/TcKvl.png
android-layout
null
null
null
null
null
open
How to align the textview to right in android? === I am displaying the **date and the cricket score in a table**. But my problem is when I am displaying the No **1,2,3,....upto 9 it is working fine...But when I displayed 10 the date in the next date column is moving one place right because of two digit number 10.** How to solve this issue? ![enter image description here][1] Any help will be thankful.... [1]: http://i.stack.imgur.com/TcKvl.png
0
9,317,210
02/16/2012 18:48:30
1,154,026
01/17/2012 13:37:57
525
23
Send from hotmail with Javamail?
I can send from Yahoo and Gmail, but no matter what I do I can't send from hotmail. public class LiveSenderActivity extends javax.mail.Authenticator { private String mailhost = "smtp.live.com"; private String user; private String password; private Session session; static { Security.addProvider(new com.provider.JSSEProvider()); } public LiveSenderActivity(String user, String password) { this.user = user; this.password = password; // This connects to the actual mailserver Properties props = new Properties(); props.setProperty("mail.transport.protocol", "smtp"); props.setProperty("mail.host", mailhost); props.put("mail.smtp.port", "587"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.socketFactory.port", "587"); props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); props.put("mail.smtp.socketFactory.fallback", "false"); props.setProperty("mail.smtp.quitwait", "false"); session = Session.getDefaultInstance(props, this); } I've tried with and without the SSL stuff, and with port 25 instead of 587... Nothing. Am I doing something wrong? Like I said, yahoo and gmail work like a charm, but not this.. Its not giving me any errors either..
java
android
javamail
null
null
null
open
Send from hotmail with Javamail? === I can send from Yahoo and Gmail, but no matter what I do I can't send from hotmail. public class LiveSenderActivity extends javax.mail.Authenticator { private String mailhost = "smtp.live.com"; private String user; private String password; private Session session; static { Security.addProvider(new com.provider.JSSEProvider()); } public LiveSenderActivity(String user, String password) { this.user = user; this.password = password; // This connects to the actual mailserver Properties props = new Properties(); props.setProperty("mail.transport.protocol", "smtp"); props.setProperty("mail.host", mailhost); props.put("mail.smtp.port", "587"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.socketFactory.port", "587"); props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); props.put("mail.smtp.socketFactory.fallback", "false"); props.setProperty("mail.smtp.quitwait", "false"); session = Session.getDefaultInstance(props, this); } I've tried with and without the SSL stuff, and with port 25 instead of 587... Nothing. Am I doing something wrong? Like I said, yahoo and gmail work like a charm, but not this.. Its not giving me any errors either..
0
1,301,312
08/19/2009 17:07:40
79,856
03/19/2009 04:23:11
817
46
SQLite: Need Date >= (x) number of days from today
Trying to select a date (x) days from today's date, where the date would be start of day (e.g. 12:00am that day). For example, a query with date 5 days earlier.. @"select pkey, dateofmod from data WHERE dateofmod >= date('now', '? days')" , [NSNumber numberWithInt:-5]; doesn't seem to work. (using FMDB).
iphone
nsdate
sqlite
null
null
null
open
SQLite: Need Date >= (x) number of days from today === Trying to select a date (x) days from today's date, where the date would be start of day (e.g. 12:00am that day). For example, a query with date 5 days earlier.. @"select pkey, dateofmod from data WHERE dateofmod >= date('now', '? days')" , [NSNumber numberWithInt:-5]; doesn't seem to work. (using FMDB).
0
11,510,923
07/16/2012 19:09:45
1,478,881
06/25/2012 02:07:26
3
0
Find address using pointer and offset C#
I made a lot of research on memory reading and I reached here. I got the pointer and offset values, by adding an address manually and choosing "Pointer" on Cheat Engine I can get the address. But my question is how can I do this on C#? **Pointer:** "client.dll"+0065F38 **Offset:** E4 This two values return the address in Cheat Engine, I want to know how can I make it in C#.
c#
memory
pointers
offset
reading
07/17/2012 04:36:41
not a real question
Find address using pointer and offset C# === I made a lot of research on memory reading and I reached here. I got the pointer and offset values, by adding an address manually and choosing "Pointer" on Cheat Engine I can get the address. But my question is how can I do this on C#? **Pointer:** "client.dll"+0065F38 **Offset:** E4 This two values return the address in Cheat Engine, I want to know how can I make it in C#.
1
7,067,726
08/15/2011 16:30:15
840,879
07/12/2011 14:00:57
6
3
linked list in python
there are huge number of data, there are various groups. i want to check whether the new data fits in any group and if it does i want to put that data into that group. If datum doesn't fit to any of the group, i want to create new group. So, i want to use linked list for the purpose or is there any other way to doing so?? P.S. i have way to check the similarity between data and group representative(lets not go that in deatil for now) but i dont know how to add the data to group (each group may be list) or create new one if required. i guess what i needis linked list implementation in python, isn't it?
python
linked-list
null
null
null
08/16/2011 00:40:58
not a real question
linked list in python === there are huge number of data, there are various groups. i want to check whether the new data fits in any group and if it does i want to put that data into that group. If datum doesn't fit to any of the group, i want to create new group. So, i want to use linked list for the purpose or is there any other way to doing so?? P.S. i have way to check the similarity between data and group representative(lets not go that in deatil for now) but i dont know how to add the data to group (each group may be list) or create new one if required. i guess what i needis linked list implementation in python, isn't it?
1
8,310,469
11/29/2011 12:11:15
1,178,669
01/05/2010 08:17:25
4,930
221
Why are arguments in JavaScript not preceded by the var keyword?
This may be a silly question, but why are function arguments in JavaScript not preceded by the var keyword? Why: function fooAnything(anything) { return 'foo' + anyThing; } And not: function fooAnything(var anything) { return 'foo' + anyThing; } I have a feeling the answer is `because that's what the Spec says` but still...
javascript
null
null
null
null
null
open
Why are arguments in JavaScript not preceded by the var keyword? === This may be a silly question, but why are function arguments in JavaScript not preceded by the var keyword? Why: function fooAnything(anything) { return 'foo' + anyThing; } And not: function fooAnything(var anything) { return 'foo' + anyThing; } I have a feeling the answer is `because that's what the Spec says` but still...
0
6,008,453
05/15/2011 12:48:56
754,462
05/15/2011 12:42:53
1
0
Linked List need help cant print my data. want to make an add func. in C - C++
this is my code. i wanted to print all my list datas. but i cant cause when i write while(llist->next != NULL) llist->next is NULL but i don't know why. please help me :) #include <iostream> #include <stdlib.h> #include <stdio.h> using namespace std; struct rame { int data; struct rame *next; }; int main() { struct rame *llist; llist = (rame*)malloc(sizeof(struct rame)); llist->data = 10; llist->next = llist; llist->next->data = 15; llist->next->next->data = 20; llist->next->next->next->data = 25; llist->next->next->next->next = NULL; printf("test\n"); if(llist->next == NULL) printf("%d\n",llist->data); else while(llist->next != NULL) { printf("%d\n",llist->data); llist = llist->next; } system("pause"); return 0; }
c++
c
null
null
null
null
open
Linked List need help cant print my data. want to make an add func. in C - C++ === this is my code. i wanted to print all my list datas. but i cant cause when i write while(llist->next != NULL) llist->next is NULL but i don't know why. please help me :) #include <iostream> #include <stdlib.h> #include <stdio.h> using namespace std; struct rame { int data; struct rame *next; }; int main() { struct rame *llist; llist = (rame*)malloc(sizeof(struct rame)); llist->data = 10; llist->next = llist; llist->next->data = 15; llist->next->next->data = 20; llist->next->next->next->data = 25; llist->next->next->next->next = NULL; printf("test\n"); if(llist->next == NULL) printf("%d\n",llist->data); else while(llist->next != NULL) { printf("%d\n",llist->data); llist = llist->next; } system("pause"); return 0; }
0
3,970,130
10/19/2010 15:43:20
145,831
07/27/2009 15:50:24
540
25
Injecting a service into an implementation of NHibernate's IUserType using Autofac.
I'm using NHibernate to map the following class to an Oracle database in my ASP.NET MVC application: public class User { // Needs to be encrypted/decrypted when persisting public virtual string Question { get; set; } // Hashed public virtual string Answer { get; set; } } Using Autofac, I was able to create the following `HashService` to encode the user's secret answer with a model binder. public sealed class HashService : IHashService { public EncodingService(HashAlgorithm hashAlgorithm) { algorithm = hashAlgorithm; } private readonly HashAlgorithm algorithm; public string Encode(string text) { byte[] bytes = algorithm.ComputeHash(text); return Convert.ToBase64String(bytes); } } I am able to configure the `HashAlgorithm` that's passed to this class's constructor simply by changing my Web.Config file. This is then injected into my model binder. I would like to do something similar to encrypt Question property. Unfortunately, I can't find a way to inject my `EncryptionService` into my implementation of `IUserType`. The `AutofacBytecodeProvider` in the [Autofac.Contrib project](http://code.google.com/p/autofac/source/browse/contrib/Source/Autofac.Integration.NHibernate/AutofacBytecodeProvider.cs?r=8a25fdeccb8fff04156a086584a82d99bdb1ee4d) looked promising, but because I'm registering my NHibernate configuration through Autofac I couldn't get it to work. Is there another way to inject dependencies into custom user types with Autofac?
asp.net
nhibernate
autofac
null
null
null
open
Injecting a service into an implementation of NHibernate's IUserType using Autofac. === I'm using NHibernate to map the following class to an Oracle database in my ASP.NET MVC application: public class User { // Needs to be encrypted/decrypted when persisting public virtual string Question { get; set; } // Hashed public virtual string Answer { get; set; } } Using Autofac, I was able to create the following `HashService` to encode the user's secret answer with a model binder. public sealed class HashService : IHashService { public EncodingService(HashAlgorithm hashAlgorithm) { algorithm = hashAlgorithm; } private readonly HashAlgorithm algorithm; public string Encode(string text) { byte[] bytes = algorithm.ComputeHash(text); return Convert.ToBase64String(bytes); } } I am able to configure the `HashAlgorithm` that's passed to this class's constructor simply by changing my Web.Config file. This is then injected into my model binder. I would like to do something similar to encrypt Question property. Unfortunately, I can't find a way to inject my `EncryptionService` into my implementation of `IUserType`. The `AutofacBytecodeProvider` in the [Autofac.Contrib project](http://code.google.com/p/autofac/source/browse/contrib/Source/Autofac.Integration.NHibernate/AutofacBytecodeProvider.cs?r=8a25fdeccb8fff04156a086584a82d99bdb1ee4d) looked promising, but because I'm registering my NHibernate configuration through Autofac I couldn't get it to work. Is there another way to inject dependencies into custom user types with Autofac?
0
2,689,887
04/22/2010 10:14:32
323,143
04/22/2010 10:14:32
1
0
Webservice needs to be accessible through website
I have a .exe program which has an embedded webservice running on port 800. I can access it locally via 127.0.0.1:800 just fine once the program is executed. I need to be able to send the service commands such as: *** 127.0.0.1:800/dev *** will get a list of devices attached to the program. To my knowledge i need to forward port 800 on my router and then access my internet IP externally and I should be able to view/access this web service? am i correct? I am then wanting to create a PHP site which will send the desired commands back to the web-service running on my home pc. Any help will be greatly appreciated.
php
vb.net
.net
web-services
website
null
open
Webservice needs to be accessible through website === I have a .exe program which has an embedded webservice running on port 800. I can access it locally via 127.0.0.1:800 just fine once the program is executed. I need to be able to send the service commands such as: *** 127.0.0.1:800/dev *** will get a list of devices attached to the program. To my knowledge i need to forward port 800 on my router and then access my internet IP externally and I should be able to view/access this web service? am i correct? I am then wanting to create a PHP site which will send the desired commands back to the web-service running on my home pc. Any help will be greatly appreciated.
0
3,193,765
07/07/2010 10:08:00
379,239
06/29/2010 16:51:54
1
1
When should I use stdClass and when should I use an array in php5 oo code ??
In the middle of a period of big refactorings at work, I wish to introduce stdClass ***** as a way to return data from functions and I'm trying to find non-subjectives arguments to support my decision. Are there any situations when would it be best to use one instead of the other ?? What benefits would I get to use stdClass instead of arrays ?? Thank you for your time. John. ---------- *Some would say that functions have to be as little and specific to be able to return one single value. My decision to use stdClass is temporal, as I hope to find the right Value Objects for each process on the long run.*
php
oop
php5
stdclass
null
null
open
When should I use stdClass and when should I use an array in php5 oo code ?? === In the middle of a period of big refactorings at work, I wish to introduce stdClass ***** as a way to return data from functions and I'm trying to find non-subjectives arguments to support my decision. Are there any situations when would it be best to use one instead of the other ?? What benefits would I get to use stdClass instead of arrays ?? Thank you for your time. John. ---------- *Some would say that functions have to be as little and specific to be able to return one single value. My decision to use stdClass is temporal, as I hope to find the right Value Objects for each process on the long run.*
0
4,967,300
02/11/2011 09:15:22
191,125
10/16/2009 10:11:33
85
6
jQuery Plugin Authoring, Help with Click Events (drop down menu).
I'm trying to create a drop-down menu in a plugin manner. I'm familiar with scripting myself to solutions but I've never created a plugin before so I'm trying to learn how to do this, and therefore raising my level as a jQuery developer. I'm trying to create basic drop down functionality. You have a link. You click it, a drop down of links appear. You click outside of the link (the document) the menu of links goes away. I'm having trouble on the go away part. I tried to bind it to document.click but of course that shows the menu and then hides it, as there is nothing making sure it has to be shown first. How do I do this? How do I make it so that the menu only hides after it is shown if you click outside of it? application.js jQuery(document).ready(function($){ $("ul.drop-down").someDropDown(); // failed attempt (shows and hides). Probably should go in plugin anyway. // $(document).click(function(){ // $("ul.drop-down").hybridDropDown('hide'); // }); }); silly_drop_down.js (function($){ var methods = { init : function(options){ return this.each(function(){ $(this).bind('click.silly', methods.show); }); }, show : function() { var $this = $(this); var menu = $this.children("ul"); menu.slideDown("slow"); }, hide : function(){ var $this = $(this); var menu = $this.children("ul"); menu.slideUp("slow"); } }; $.fn.sillyDropDown = function(method){ if ( methods[method] ) { return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) { return methods.init.apply( this, arguments ); } else { $.error( 'Method ' + method + ' does not exist on jQuery.sillyDropDown' ); } }; })(jQuery); the html if it matters <ul id="project-settings" class="drop-down"> <li> <a href="#"> Settings <img src="/images/iconic/white/cog_alt_16x16.png" class="stale"> <img src="/images/iconic/orange/cog_alt_16x16.png" class="hover"> </a> </li> <ul style="display: none;"> <div class="pointer"></div> <li class="first"> <a href="#">Settings...</a> </li> <li> <a href="#">Collaborators...</a> </li> <li> <a href="#">Comments...</a> </li> <hr> <li> <a href="#">Delete Project</a> </li> </ul> </ul>
jquery
jquery-plugins
drop-down-menu
null
null
null
open
jQuery Plugin Authoring, Help with Click Events (drop down menu). === I'm trying to create a drop-down menu in a plugin manner. I'm familiar with scripting myself to solutions but I've never created a plugin before so I'm trying to learn how to do this, and therefore raising my level as a jQuery developer. I'm trying to create basic drop down functionality. You have a link. You click it, a drop down of links appear. You click outside of the link (the document) the menu of links goes away. I'm having trouble on the go away part. I tried to bind it to document.click but of course that shows the menu and then hides it, as there is nothing making sure it has to be shown first. How do I do this? How do I make it so that the menu only hides after it is shown if you click outside of it? application.js jQuery(document).ready(function($){ $("ul.drop-down").someDropDown(); // failed attempt (shows and hides). Probably should go in plugin anyway. // $(document).click(function(){ // $("ul.drop-down").hybridDropDown('hide'); // }); }); silly_drop_down.js (function($){ var methods = { init : function(options){ return this.each(function(){ $(this).bind('click.silly', methods.show); }); }, show : function() { var $this = $(this); var menu = $this.children("ul"); menu.slideDown("slow"); }, hide : function(){ var $this = $(this); var menu = $this.children("ul"); menu.slideUp("slow"); } }; $.fn.sillyDropDown = function(method){ if ( methods[method] ) { return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) { return methods.init.apply( this, arguments ); } else { $.error( 'Method ' + method + ' does not exist on jQuery.sillyDropDown' ); } }; })(jQuery); the html if it matters <ul id="project-settings" class="drop-down"> <li> <a href="#"> Settings <img src="/images/iconic/white/cog_alt_16x16.png" class="stale"> <img src="/images/iconic/orange/cog_alt_16x16.png" class="hover"> </a> </li> <ul style="display: none;"> <div class="pointer"></div> <li class="first"> <a href="#">Settings...</a> </li> <li> <a href="#">Collaborators...</a> </li> <li> <a href="#">Comments...</a> </li> <hr> <li> <a href="#">Delete Project</a> </li> </ul> </ul>
0
11,238,685
06/28/2012 05:45:42
1,487,556
06/28/2012 05:36:03
1
0
java.util.ConcurrentModificationException
why do we get java.util.ConcurrentModificationException while accessing the same synchronize method from different system at a same time. please anyone can help me.
java
synchronization
null
null
null
06/28/2012 06:02:27
not a real question
java.util.ConcurrentModificationException === why do we get java.util.ConcurrentModificationException while accessing the same synchronize method from different system at a same time. please anyone can help me.
1
3,116,195
06/25/2010 07:10:16
375,989
06/25/2010 07:10:16
1
0
python search from tag
i need help with python programming: i need a command which can search all the words between tags from a text file. for example in the text file has <concept> food </concept>. i need to search all the words between <concept> and </concept> and display them. can anybody help please.......
python
null
null
null
null
null
open
python search from tag === i need help with python programming: i need a command which can search all the words between tags from a text file. for example in the text file has <concept> food </concept>. i need to search all the words between <concept> and </concept> and display them. can anybody help please.......
0
7,566,969
09/27/2011 09:31:27
966,693
09/27/2011 09:27:44
1
0
ASP.NET web application taking a lot of time to Debug
actually i have an web application where i have a form which takes data from MYSQL database where i have written an Sp to get the data from DataBase(compares around 1 lakh of records and gives 40,000of records as output) and bind it to Gridview .at the very first time it takes 15 mins to debug and den for second time(reload) it takes approx.1-2 hr(while i call the same Sp in MYSQL DB it takes 8.399 mins) Can any one please help me.
asp.net
null
null
null
null
09/27/2011 14:08:22
not a real question
ASP.NET web application taking a lot of time to Debug === actually i have an web application where i have a form which takes data from MYSQL database where i have written an Sp to get the data from DataBase(compares around 1 lakh of records and gives 40,000of records as output) and bind it to Gridview .at the very first time it takes 15 mins to debug and den for second time(reload) it takes approx.1-2 hr(while i call the same Sp in MYSQL DB it takes 8.399 mins) Can any one please help me.
1
7,940,472
10/29/2011 17:26:15
538,955
12/11/2010 15:31:57
54
3
Favorite documentation generating tool
Quick question for you guys. I'm releasing my new Isis2 library for Linux as well as Windows users (library itself is in C# .NET but API can be called from C++ etc, and it works well with Mono). I've done the standard inline documentation for my public APIs. Now during development I was using Sandcastle helper and creating .chm help files -- compiled HTML. But I see that MSFT no longer is supporting this format. Sandcastle is offering to output stuff in various other priorietary Microsoft formats but as I said, my stuff needs to be equally useful on Linux. So what are people with this set of goals using as a help-file generator? Visual studio is generating the help xml file itself, so I'm just focused on this last step of going from the extracted xml tags to the web pages people click around on. Thanks!
documentation
tags
chm
sandcastle
null
10/30/2011 12:42:19
not constructive
Favorite documentation generating tool === Quick question for you guys. I'm releasing my new Isis2 library for Linux as well as Windows users (library itself is in C# .NET but API can be called from C++ etc, and it works well with Mono). I've done the standard inline documentation for my public APIs. Now during development I was using Sandcastle helper and creating .chm help files -- compiled HTML. But I see that MSFT no longer is supporting this format. Sandcastle is offering to output stuff in various other priorietary Microsoft formats but as I said, my stuff needs to be equally useful on Linux. So what are people with this set of goals using as a help-file generator? Visual studio is generating the help xml file itself, so I'm just focused on this last step of going from the extracted xml tags to the web pages people click around on. Thanks!
4
5,582,512
04/07/2011 14:12:08
190,892
10/15/2009 21:07:32
145
5
definition of Acme Developers for iPhone
I have heard the term acme developer of iPhone. I was just wondering, what it stands for? I think I know the meaning, it is when a developer goes to a client and present's his/her ideas for the app. Thanks for your info.
iphone
null
null
null
null
04/08/2011 03:30:37
off topic
definition of Acme Developers for iPhone === I have heard the term acme developer of iPhone. I was just wondering, what it stands for? I think I know the meaning, it is when a developer goes to a client and present's his/her ideas for the app. Thanks for your info.
2
8,951,344
01/21/2012 07:09:35
109,367
05/19/2009 13:19:18
732
21
How to naming "a list of series"?
For example // Java code, I define a variable who type is list to "models" List<Model> models; This naming convertions work fine on most of the words. I can do something like for(int i = 0; i < models.size(); i++){ Model model = model.get(i); // Something else } But If I define "a list of series" List<Series> series; That the code need to change to for(int i = 0; i < series.size(); i++){ // naming "s" or "ser" I think is not a good idea Series s = s.get(i); // Something else } And I can't distinguish what is variable "series" means. Series series; List<Series> series; This puzzled me for several years, is how we solve this problem?
java
naming
null
null
null
01/23/2012 18:26:31
not constructive
How to naming "a list of series"? === For example // Java code, I define a variable who type is list to "models" List<Model> models; This naming convertions work fine on most of the words. I can do something like for(int i = 0; i < models.size(); i++){ Model model = model.get(i); // Something else } But If I define "a list of series" List<Series> series; That the code need to change to for(int i = 0; i < series.size(); i++){ // naming "s" or "ser" I think is not a good idea Series s = s.get(i); // Something else } And I can't distinguish what is variable "series" means. Series series; List<Series> series; This puzzled me for several years, is how we solve this problem?
4
9,908,133
03/28/2012 13:05:03
1,246,787
03/03/2012 11:49:45
1
1
Realm in authentication mechanism Pop3 Protocol
Is it necessary to have same realm as it is on server while configuring pop3 client ?? for authentication purpose..
networking
pop3
null
null
null
null
open
Realm in authentication mechanism Pop3 Protocol === Is it necessary to have same realm as it is on server while configuring pop3 client ?? for authentication purpose..
0
11,558,463
07/19/2012 10:06:04
846,083
07/15/2011 08:37:17
517
27
Rubymotion including a static library
I'm trying to add the a library to my Rubymotion project, it shows no errors but I can't seem to access the classes in the library, in my rakefile I have ... app.vendor_project('vendor/iSpeechSDK', :static, :products => ["libiSpeechSDK.a"], :headers_dir => "Headers") app.frameworks += ['iSpeechSDK'] The .a file and .h files in the Headers directory all exist In my app_delegate I have this code ... @sdk = iSpeechSDK.sharedSDK But I get the error ... Simulate ./build/iPhoneSimulator-5.0-Development/Mirror Mirror.app (main)> 2012-07-19 10:50:05.978 Mirror Mirror[26195:11903] app_delegate.rb:13:in `application:didFinishLaunchingWithOptions:': undefined local variable or method `iSpeechSDK' for #<AppDelegate:0x9409c70> (NameError) 2012-07-19 10:50:05.980 Mirror Mirror[26195:11903] *** Terminating app due to uncaught exception 'NameError', reason: 'app_delegate.rb:13:in `application:didFinishLaunchingWithOptions:': undefined local variable or method `iSpeechSDK' for #<AppDelegate:0x9409c70> (NameError) ' *** First throw call stack: (0xa88052 0x417d0a 0x207954 0x5c285 0x5bce1)
rubymotion
null
null
null
null
null
open
Rubymotion including a static library === I'm trying to add the a library to my Rubymotion project, it shows no errors but I can't seem to access the classes in the library, in my rakefile I have ... app.vendor_project('vendor/iSpeechSDK', :static, :products => ["libiSpeechSDK.a"], :headers_dir => "Headers") app.frameworks += ['iSpeechSDK'] The .a file and .h files in the Headers directory all exist In my app_delegate I have this code ... @sdk = iSpeechSDK.sharedSDK But I get the error ... Simulate ./build/iPhoneSimulator-5.0-Development/Mirror Mirror.app (main)> 2012-07-19 10:50:05.978 Mirror Mirror[26195:11903] app_delegate.rb:13:in `application:didFinishLaunchingWithOptions:': undefined local variable or method `iSpeechSDK' for #<AppDelegate:0x9409c70> (NameError) 2012-07-19 10:50:05.980 Mirror Mirror[26195:11903] *** Terminating app due to uncaught exception 'NameError', reason: 'app_delegate.rb:13:in `application:didFinishLaunchingWithOptions:': undefined local variable or method `iSpeechSDK' for #<AppDelegate:0x9409c70> (NameError) ' *** First throw call stack: (0xa88052 0x417d0a 0x207954 0x5c285 0x5bce1)
0
5,813,575
04/28/2011 04:16:32
608,199
02/08/2011 06:05:55
105
10
Sphinx how to create Real time indexes?
i am already `sphinx` documentation is follow but it's not clear for me. Any one can help how create `real time indexes in php linux server` ?.
php
sphinx
null
null
null
11/09/2011 00:32:19
not a real question
Sphinx how to create Real time indexes? === i am already `sphinx` documentation is follow but it's not clear for me. Any one can help how create `real time indexes in php linux server` ?.
1
10,586,227
05/14/2012 15:19:41
1,391,308
02/02/2011 09:32:30
1
1
Why does IContainer.IsRegistered(Type serviceType) add registrations?
Why does IContainer.IsRegistered(Type serviceType) add registrations? Type serviceType = typeof (string[]); int rc = container.ComponentRegistry.Registrations.Count(); container.IsRegistered(serviceType); int rc2 = container.ComponentRegistry.Registrations.Count(); Assert.AreEqual(rc, rc2);
autofac
null
null
null
null
null
open
Why does IContainer.IsRegistered(Type serviceType) add registrations? === Why does IContainer.IsRegistered(Type serviceType) add registrations? Type serviceType = typeof (string[]); int rc = container.ComponentRegistry.Registrations.Count(); container.IsRegistered(serviceType); int rc2 = container.ComponentRegistry.Registrations.Count(); Assert.AreEqual(rc, rc2);
0
3,945,841
10/15/2010 20:22:19
20,570
09/22/2008 16:42:01
782
44
Getters/Setters result in more brittle code?
A small debate flared up in a question about [protected member variables][1] regarding the use of getters/setters. There are lots of questions already over whether getters/setters are evil, however one particular argument against them, which was posed by two separate individuals with much higher reputation than myself, struck me. One said that **getters/setters made the code only 0.01% less brittle**, and the other stated that **adding 10 lines of code where one would do makes the code *more* brittle**. This goes against most of what I had previously read, been taught, thought, or experienced. Does anyone else agree/disagree with those comments? [1]: http://stackoverflow.com/questions/3933006/is-it-good-practice-to-make-member-variables-protected/3933120#3933120
getter-setter
null
null
null
null
10/15/2010 20:34:33
not constructive
Getters/Setters result in more brittle code? === A small debate flared up in a question about [protected member variables][1] regarding the use of getters/setters. There are lots of questions already over whether getters/setters are evil, however one particular argument against them, which was posed by two separate individuals with much higher reputation than myself, struck me. One said that **getters/setters made the code only 0.01% less brittle**, and the other stated that **adding 10 lines of code where one would do makes the code *more* brittle**. This goes against most of what I had previously read, been taught, thought, or experienced. Does anyone else agree/disagree with those comments? [1]: http://stackoverflow.com/questions/3933006/is-it-good-practice-to-make-member-variables-protected/3933120#3933120
4
9,326,212
02/17/2012 10:02:35
1,215,900
02/17/2012 09:52:01
1
0
SELECT chaining the result of two queries on MYSQL
I want to chain the contents of two queries. Please notice I DON'T want to use CONCAT() or CONCAT_WS() because that's not what I want to achieve. Query 1 results: Id Name 1 John 2 Mike Query 2 results: Id Name 3 Emily 7 Robert And what I want is: Id Name 1 John 2 Mike 3 Emily 7 Robert I can also rewrite both queries as one. That would be great. Here are my current failed attempts: SELECT a.x AS x, a.y AS y FROM a; SELECT b.x AS x, b.y AS y FROM b; Thank you.
mysql
sql
database
query
select
null
open
SELECT chaining the result of two queries on MYSQL === I want to chain the contents of two queries. Please notice I DON'T want to use CONCAT() or CONCAT_WS() because that's not what I want to achieve. Query 1 results: Id Name 1 John 2 Mike Query 2 results: Id Name 3 Emily 7 Robert And what I want is: Id Name 1 John 2 Mike 3 Emily 7 Robert I can also rewrite both queries as one. That would be great. Here are my current failed attempts: SELECT a.x AS x, a.y AS y FROM a; SELECT b.x AS x, b.y AS y FROM b; Thank you.
0
9,946,397
03/30/2012 15:52:46
543,205
12/15/2010 10:22:48
750
47
Does NHibernate support subqueries in the `from` clause?
Does NHibernate support subqueries in the `from` clause? For example I have sql queries looking like this: SELECT subquery.Id, sum(subquery.Value) ... FROM (SELECT DISTINCT ... ) as subquery WHERE ... GROUP BY subquery.Id I've only found this info: > HQL does not have subquery in from clause support. I've been consider > how to add this, but I think it's going to be a substantial effort. > It's coming, but unless somebody can provide more development time, > it's going to take while to implement. > Patrick Earl from [Google Groups][1] (17.08.2011). Is it still relevant? Maybe I can use Linq to NHibernate? [1]: https://groups.google.com/forum/?fromgroups#!topic/nhusers/mCJ_fOC_wfo
nhibernate
null
null
null
null
null
open
Does NHibernate support subqueries in the `from` clause? === Does NHibernate support subqueries in the `from` clause? For example I have sql queries looking like this: SELECT subquery.Id, sum(subquery.Value) ... FROM (SELECT DISTINCT ... ) as subquery WHERE ... GROUP BY subquery.Id I've only found this info: > HQL does not have subquery in from clause support. I've been consider > how to add this, but I think it's going to be a substantial effort. > It's coming, but unless somebody can provide more development time, > it's going to take while to implement. > Patrick Earl from [Google Groups][1] (17.08.2011). Is it still relevant? Maybe I can use Linq to NHibernate? [1]: https://groups.google.com/forum/?fromgroups#!topic/nhusers/mCJ_fOC_wfo
0
10,054,745
04/07/2012 13:05:21
161,922
09/15/2008 21:12:35
3,483
84
How do you install Python Xlib with pip?
"Python Xlib" ( http://pypi.python.org/pypi/Python%20Xlib ) is a low level python library for working with xlib. I have installed it on my Ubuntu Linux machine via apt, i.e. ``sudo aptitude install python-xlib``. However is it possible to install it with ``pip`` in a virtualenv? I am writing a software package that uses xlib, and would like to be able to include an ``install_requires`` line in my ``setup.py``. Since the package is on PyPI (and appears in results of ``pip search xlib``), I tried to ``pip install …`` the following package names but nothing worked: ``python\ xlib``, ``python-xlib``, ``Python Xlib``, ``Python-Xlib``, ``Python%20Xlib``, but none worked. ` Is it possible to install python xlib with pip?
python
pip
xlib
python-xlib
null
null
open
How do you install Python Xlib with pip? === "Python Xlib" ( http://pypi.python.org/pypi/Python%20Xlib ) is a low level python library for working with xlib. I have installed it on my Ubuntu Linux machine via apt, i.e. ``sudo aptitude install python-xlib``. However is it possible to install it with ``pip`` in a virtualenv? I am writing a software package that uses xlib, and would like to be able to include an ``install_requires`` line in my ``setup.py``. Since the package is on PyPI (and appears in results of ``pip search xlib``), I tried to ``pip install …`` the following package names but nothing worked: ``python\ xlib``, ``python-xlib``, ``Python Xlib``, ``Python-Xlib``, ``Python%20Xlib``, but none worked. ` Is it possible to install python xlib with pip?
0
8,862,955
01/14/2012 14:51:04
811,743
06/23/2011 07:23:16
305
22
Can a torrent client run with 4KB of RAM?
On a microchip. Is it possible to run a torrent client with only 4KB of RAM? I'm talking about a really optimized version.
microcontroller
bittorrent
null
null
null
01/15/2012 12:16:28
off topic
Can a torrent client run with 4KB of RAM? === On a microchip. Is it possible to run a torrent client with only 4KB of RAM? I'm talking about a really optimized version.
2
8,371,648
12/03/2011 22:43:08
1,079,490
12/03/2011 22:36:53
1
0
Get week number and the date for monday and sunday in the current week (Objective-C on iOS)
how is it possible to get the current weeknumber and the date of monday and sunday in the current week?
objective-c
nsdate
nsdateformatter
nsdatecomponents
null
12/04/2011 06:24:09
not a real question
Get week number and the date for monday and sunday in the current week (Objective-C on iOS) === how is it possible to get the current weeknumber and the date of monday and sunday in the current week?
1
1,963,718
12/26/2009 16:29:16
238,885
12/26/2009 16:29:16
1
0
Document Management Solution for 80 million Tiff files
Need to host 80 million tiff files (1000 KB each) some where around 10 Terrabytes, what would be the best Document Management solution. These files need to be on a filesystem but want to indexed thru the Document Management system ( Sharepoint, Documentum, Filenet etc). We already have indexes in CSV format and want to reuse those indexes instead of crawling thru the 80 million files and recreating the indexes.
sharepoint
documentum
null
null
null
12/26/2009 19:06:18
off topic
Document Management Solution for 80 million Tiff files === Need to host 80 million tiff files (1000 KB each) some where around 10 Terrabytes, what would be the best Document Management solution. These files need to be on a filesystem but want to indexed thru the Document Management system ( Sharepoint, Documentum, Filenet etc). We already have indexes in CSV format and want to reuse those indexes instead of crawling thru the 80 million files and recreating the indexes.
2
7,462,811
09/18/2011 16:29:08
771,541
05/26/2011 14:59:47
92
8
Web - Pop up in current window
Could anyone give me an example or a good place to start looking on creating pop-ups that don't open new windows, for example on the XenForo forums, when you click a username. It pops up with details about that user but over the current page as opposed to a new window. Link to see effect, click on any username: http://xenforo.com/community/ I imagine it's some interesting CSS stuff but I'm not entirely sure. So any help would be appreciated to point me in the right direction, thanks! Edit: In fact, come to think of it, it's what Lightbox does as well, didn't think of that.
javascript
css
null
null
null
null
open
Web - Pop up in current window === Could anyone give me an example or a good place to start looking on creating pop-ups that don't open new windows, for example on the XenForo forums, when you click a username. It pops up with details about that user but over the current page as opposed to a new window. Link to see effect, click on any username: http://xenforo.com/community/ I imagine it's some interesting CSS stuff but I'm not entirely sure. So any help would be appreciated to point me in the right direction, thanks! Edit: In fact, come to think of it, it's what Lightbox does as well, didn't think of that.
0
11,305,898
07/03/2012 06:55:08
1,497,880
07/03/2012 06:22:10
1
0
How can I tell if a hacker is doing something I've heard called MIRRORING my mac? Working in terminal using NETSTAT; confused
I think i know who the perpetrator is; last year he compromised my Facebook, Wordpress, and Yahoo/Gmail accounts. A friend @Apple helped and now this. I normally would run Spyware/antivirus stuff and forget about it but I am compiling evidence against an ex whom I believe to be a malicious sociopath and more than creepy. I have my terminal open and typed in NETSTAT and am trying to understand the different states but am mildly confused. What do they mean, how can I tell from what locale the FOREIGN ADDRESS is from, and are there other useful sleuthing commands I can use to catch this a$$ once and for all? Is there anything I can do if I have his iPad's IP address? I certainly don't want to do anything illegal but I want him to GO AWAY and also to BE CAUGHT. If he is cyberstalking me, is this punishable by law?
terminal
ip-address
linux-device-driver
hacking
netstat
07/03/2012 06:59:10
off topic
How can I tell if a hacker is doing something I've heard called MIRRORING my mac? Working in terminal using NETSTAT; confused === I think i know who the perpetrator is; last year he compromised my Facebook, Wordpress, and Yahoo/Gmail accounts. A friend @Apple helped and now this. I normally would run Spyware/antivirus stuff and forget about it but I am compiling evidence against an ex whom I believe to be a malicious sociopath and more than creepy. I have my terminal open and typed in NETSTAT and am trying to understand the different states but am mildly confused. What do they mean, how can I tell from what locale the FOREIGN ADDRESS is from, and are there other useful sleuthing commands I can use to catch this a$$ once and for all? Is there anything I can do if I have his iPad's IP address? I certainly don't want to do anything illegal but I want him to GO AWAY and also to BE CAUGHT. If he is cyberstalking me, is this punishable by law?
2