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
11,737,974
07/31/2012 10:21:09
267,000
02/05/2010 11:32:47
90
7
Silverlight context menu binding
In Silverlight application I have a TreeView with context menu. The problem arises when I try to use Binding. It doesn't work. Setting simple properties like string works fine. Something wrong with DataContext: 1. Context Menu doesn't inherit it from parent control 2. Context Menu is not a part of visual tree. I need to take **SelectedNode** from the TreeView and assign it to an attached property. **DataContext** for Command would be **SelectedNode**. **Command** I want to bind to the SelectedNode.FooCommand This works fine for buttons, but fails for ContextMenu. Below is my code: <Views:SettingsTreeView x:Name="settingsTreeView" Margin="{StaticResource CommonMargins}"> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="Foo..." Commands:Menu.CommandParameter="{Binding ElementName=settingsTreeView, Path=SelectedNode}" Commands:Menu.IsConfirm="True" Commands:Menu.ConfirmCaption="Confirm deletion" Commands:Menu.ConfirmMessage="Are you sure you want to delete element?"> </toolkit:MenuItem> </toolkit:ContextMenu> </toolkit:ContextMenuService.ContextMenu> </Views:SettingsTreeView>
silverlight
contextmenu
null
null
null
null
open
Silverlight context menu binding === In Silverlight application I have a TreeView with context menu. The problem arises when I try to use Binding. It doesn't work. Setting simple properties like string works fine. Something wrong with DataContext: 1. Context Menu doesn't inherit it from parent control 2. Context Menu is not a part of visual tree. I need to take **SelectedNode** from the TreeView and assign it to an attached property. **DataContext** for Command would be **SelectedNode**. **Command** I want to bind to the SelectedNode.FooCommand This works fine for buttons, but fails for ContextMenu. Below is my code: <Views:SettingsTreeView x:Name="settingsTreeView" Margin="{StaticResource CommonMargins}"> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="Foo..." Commands:Menu.CommandParameter="{Binding ElementName=settingsTreeView, Path=SelectedNode}" Commands:Menu.IsConfirm="True" Commands:Menu.ConfirmCaption="Confirm deletion" Commands:Menu.ConfirmMessage="Are you sure you want to delete element?"> </toolkit:MenuItem> </toolkit:ContextMenu> </toolkit:ContextMenuService.ContextMenu> </Views:SettingsTreeView>
0
7,613,530
09/30/2011 16:47:24
665,335
03/18/2011 01:05:50
473
6
Method improvement on data access via ADO.NET
Which of the two code segments below would you prefer? Why? Are there any circumstances where the other would be preferable? Could you make any further improvements? i. private int GetSize(string deptName) { QueryHelper dqh = new QueryHelper(); return dqh.GetDataSet("sp_GetDeptSize",deptName).Tables[0].Rows[0]["Size"]; } ii. private int GetSize(string deptName) { QueryHelper dqh = new QueryHelper(); DataSet ds = dqh.GetDataSet("sp_GetDeptSize", deptName); DataTable dt = ds.Tables[0]; DataRow dr = dt.Rows[0]; int size = dr["Size"]; return size; } Please note that QueryHelper is custom type. My answer to this: I prefer to method i, which is more concise. It seems that method ii is not preferable under any circumstances. I need advice on further improvement on method i, and idea would be very much appreciated.
c#
ado.net
null
null
null
10/03/2011 08:21:25
not constructive
Method improvement on data access via ADO.NET === Which of the two code segments below would you prefer? Why? Are there any circumstances where the other would be preferable? Could you make any further improvements? i. private int GetSize(string deptName) { QueryHelper dqh = new QueryHelper(); return dqh.GetDataSet("sp_GetDeptSize",deptName).Tables[0].Rows[0]["Size"]; } ii. private int GetSize(string deptName) { QueryHelper dqh = new QueryHelper(); DataSet ds = dqh.GetDataSet("sp_GetDeptSize", deptName); DataTable dt = ds.Tables[0]; DataRow dr = dt.Rows[0]; int size = dr["Size"]; return size; } Please note that QueryHelper is custom type. My answer to this: I prefer to method i, which is more concise. It seems that method ii is not preferable under any circumstances. I need advice on further improvement on method i, and idea would be very much appreciated.
4
5,113,764
02/25/2011 04:53:08
612,584
02/11/2011 05:58:43
1
1
What is the best way to design the architecture of a web app database?
I am creating an web app for the purpose of tracking community service hours, mainly using php and mysql. I am not quite sure how to set up a table or database that includes all of the members, their hours for each month, and their personal settings for the site. When they submit hours, they need to provide a description of what they did, so i am not sure where this would be incorporated in the database.
php
database-design
null
null
null
02/25/2011 05:03:08
not a real question
What is the best way to design the architecture of a web app database? === I am creating an web app for the purpose of tracking community service hours, mainly using php and mysql. I am not quite sure how to set up a table or database that includes all of the members, their hours for each month, and their personal settings for the site. When they submit hours, they need to provide a description of what they did, so i am not sure where this would be incorporated in the database.
1
9,421,875
02/23/2012 21:47:05
1,209,970
02/14/2012 20:42:02
3
0
initrd.gz failed to boot
I am porting a linux-os onto CF-card, the system stopped when loading initrd.gz. All directory looks like this: / /boot/bzImage /boot/grub/... /initrd/initrd.gz. In fact another initrd.gz works well, which is generated from the same scpripts. But this one, with some web applications, stopped when bzImage start. The message printed out is followed: **RAMDISK: gzipped image found at block 0 ... Write protecting the kernel read-only data: 1948k** ------- It just stopped here, no more message is printed out. How can I check where is wrong? Thanks for any advise.
linux
boot
null
null
null
02/24/2012 07:47:10
off topic
initrd.gz failed to boot === I am porting a linux-os onto CF-card, the system stopped when loading initrd.gz. All directory looks like this: / /boot/bzImage /boot/grub/... /initrd/initrd.gz. In fact another initrd.gz works well, which is generated from the same scpripts. But this one, with some web applications, stopped when bzImage start. The message printed out is followed: **RAMDISK: gzipped image found at block 0 ... Write protecting the kernel read-only data: 1948k** ------- It just stopped here, no more message is printed out. How can I check where is wrong? Thanks for any advise.
2
516,989
02/05/2009 17:43:59
2,585
08/23/2008 05:55:20
144
4
How to store many prices for a product in a flexible way?
I want to build a shop in which the products have a little wizard through which the price then is determined. In this case I'm talking about printing products. So for (a little) example when you come to the shop and want to print a business card, you get to decide if you want to print black and white or in color, if you want to choose thick paper or thin, if you want to print 100, 200, 500 or 1000 pieces and so on. After all there will be a price for let's say: black and white, thick paper, 200 piece => 40,-$ In real you have many more choices to choose from. So as you can think there are many many prices, for which there is **no formula**. So my question is: How can I handle the prices? My first idea: Decorator Pattern. But when I thought about it, it's not a very good idea. As I told there is no real formula, also I have to generate the wizard (which may be different if you want to print greeting cards). Also I want to be able to change the price trough a admin interface or add a product or add a new "decision" like "do you want glossy paper?" to a product or remove one (and still keep the prices intact). So now I'm thinking about using a tree for each product in which I can add a level (a new decision), resort levels and so on. Another Idea is to Build some Kind of Key-Objects through the decisions and look the price up in a Price table. A bit like a Dictionary in which I add the decisions and after all I generate a key out of it to look up the price in a price table. So before prototyping I was wondering if I'm just blind and I don't see the obvious solution or maybe there is another way which is more elegant I don't know about?
wizard
e-commerce
shop
design-patterns
architecture
null
open
How to store many prices for a product in a flexible way? === I want to build a shop in which the products have a little wizard through which the price then is determined. In this case I'm talking about printing products. So for (a little) example when you come to the shop and want to print a business card, you get to decide if you want to print black and white or in color, if you want to choose thick paper or thin, if you want to print 100, 200, 500 or 1000 pieces and so on. After all there will be a price for let's say: black and white, thick paper, 200 piece => 40,-$ In real you have many more choices to choose from. So as you can think there are many many prices, for which there is **no formula**. So my question is: How can I handle the prices? My first idea: Decorator Pattern. But when I thought about it, it's not a very good idea. As I told there is no real formula, also I have to generate the wizard (which may be different if you want to print greeting cards). Also I want to be able to change the price trough a admin interface or add a product or add a new "decision" like "do you want glossy paper?" to a product or remove one (and still keep the prices intact). So now I'm thinking about using a tree for each product in which I can add a level (a new decision), resort levels and so on. Another Idea is to Build some Kind of Key-Objects through the decisions and look the price up in a Price table. A bit like a Dictionary in which I add the decisions and after all I generate a key out of it to look up the price in a price table. So before prototyping I was wondering if I'm just blind and I don't see the obvious solution or maybe there is another way which is more elegant I don't know about?
0
5,477,808
03/29/2011 19:25:26
503,853
11/10/2010 22:22:36
47
1
Are HTML Meta Tags still important?
I read some articles on Internet, some said that search engine like Google and Bing don't care about HTML Meta Tags any more. Should I still need to maintain the HTML Meta Tags in my website properly? Thanks!
html
google
seo
search-engine
meta-tags
03/31/2011 11:26:46
off topic
Are HTML Meta Tags still important? === I read some articles on Internet, some said that search engine like Google and Bing don't care about HTML Meta Tags any more. Should I still need to maintain the HTML Meta Tags in my website properly? Thanks!
2
9,885,510
03/27/2012 08:02:18
1,294,919
03/27/2012 07:56:22
1
0
Some questions about akka(programmer from java)
I know Akka these days and read some docs from akka.io. Now, I have some questions about akka: 1. When and how many actors should I create? In a web application, should I create a new actor per request, or use one actor, or use an actor pool? If using actor pool, when to initialize the pool? Pool size?... 2. I want to build a REST application, what's the best practice? Should I use akka as a library or a stand alone microkernel? I use RESTEasy now for my REST API. If I use akka as a library, should I create actor in my rest method, or put some REST annotation on actor? 3. Who can share some best practice for using akka actor in web application domain? 4. Do you use Scala or Java when you use akka?
rest
actor
akka
null
null
04/03/2012 17:32:29
not constructive
Some questions about akka(programmer from java) === I know Akka these days and read some docs from akka.io. Now, I have some questions about akka: 1. When and how many actors should I create? In a web application, should I create a new actor per request, or use one actor, or use an actor pool? If using actor pool, when to initialize the pool? Pool size?... 2. I want to build a REST application, what's the best practice? Should I use akka as a library or a stand alone microkernel? I use RESTEasy now for my REST API. If I use akka as a library, should I create actor in my rest method, or put some REST annotation on actor? 3. Who can share some best practice for using akka actor in web application domain? 4. Do you use Scala or Java when you use akka?
4
10,530,602
05/10/2012 08:54:49
1,363,146
04/28/2012 16:51:17
1
0
Android Application crashes and error is coming table not found
I am developing an android application. I have my database file in sqlite. I am copying this database file in /data/data/pckgname/databases folder. sometimes it works perfectly and sometimes i am getting error that table not found.
android
sqlite
null
null
null
05/11/2012 16:06:31
not a real question
Android Application crashes and error is coming table not found === I am developing an android application. I have my database file in sqlite. I am copying this database file in /data/data/pckgname/databases folder. sometimes it works perfectly and sometimes i am getting error that table not found.
1
1,318,676
08/23/2009 14:13:40
96,094
04/26/2009 00:50:28
11
1
In pdb how do you reset the list (l) command line count?
From PDB {{{ (Pdb) help l l(ist) [first [,last]] List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. With one argument, list 11 lines starting at that line. With two arguments, list the given range; if the second argument is less than the first, it is a count. }}} The "continue the previous listing" feature is really nice, but how do you turn it off?
python
pdb
null
null
null
null
open
In pdb how do you reset the list (l) command line count? === From PDB {{{ (Pdb) help l l(ist) [first [,last]] List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. With one argument, list 11 lines starting at that line. With two arguments, list the given range; if the second argument is less than the first, it is a count. }}} The "continue the previous listing" feature is really nice, but how do you turn it off?
0
5,970,789
05/11/2011 21:22:46
673,924
03/21/2011 23:39:09
222
2
ASP.NET and Voice
I want to know, is ASP.NET supports Voice and Video ? if yes then which namespace or dll required. Any other information in this regard will be helpful.
c#
asp.net
video
voice
null
05/11/2011 22:50:19
not a real question
ASP.NET and Voice === I want to know, is ASP.NET supports Voice and Video ? if yes then which namespace or dll required. Any other information in this regard will be helpful.
1
10,510,982
05/09/2012 06:43:03
1,057,276
11/21/2011 06:40:38
96
4
get the complete autocomplete list on focus using asp.net autocomplete extender
I have an ajax autocomplete extender and it is working fine. However, I want display the entire list on focus of that textbox. Is there a way it can be done using ajax autocomplete extender. Thanks
asp.net
ajaxcontroltoolkit
null
null
null
null
open
get the complete autocomplete list on focus using asp.net autocomplete extender === I have an ajax autocomplete extender and it is working fine. However, I want display the entire list on focus of that textbox. Is there a way it can be done using ajax autocomplete extender. Thanks
0
6,433,340
06/21/2011 23:49:02
242,181
01/01/2010 03:45:38
817
12
How do I make this conditional look for empty query?
I'm trying to send an email to a user if the $query is not NULL. How do I do that? I've tried a few different ways, but I'm not getting it right. I have: $query = "SELECT * FROM events WHERE UserID='$UserID' AND ParentEventID IS NULL"; if ($query != "") { //Mail user if there are events: $to = "[email protected]"; $subject = "New Events found!!"; $body = "Hi!"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } I've tried $query > 0 and a few other things, but I'm not getting it...I know $query is an array.
php
null
null
null
null
06/24/2011 01:43:06
not constructive
How do I make this conditional look for empty query? === I'm trying to send an email to a user if the $query is not NULL. How do I do that? I've tried a few different ways, but I'm not getting it right. I have: $query = "SELECT * FROM events WHERE UserID='$UserID' AND ParentEventID IS NULL"; if ($query != "") { //Mail user if there are events: $to = "[email protected]"; $subject = "New Events found!!"; $body = "Hi!"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } I've tried $query > 0 and a few other things, but I'm not getting it...I know $query is an array.
4
337,058
12/03/2008 13:16:42
42,791
12/03/2008 12:12:50
1
0
Is it possible to integrate ajax toolkit into mvc appliocations?
How integrate ajax toolkit into MVC application in .net
ajax
toolkit
null
null
null
null
open
Is it possible to integrate ajax toolkit into mvc appliocations? === How integrate ajax toolkit into MVC application in .net
0
8,739,709
01/05/2012 08:43:01
1,131,683
01/05/2012 08:40:33
1
0
Facebook likes counter mechanism
I have a question. Let say brand A have FB page and a blog. If i copy a blog entry URL and share it in the FB page ( the blog also installed with FB like plugin). When a visitor like the post in FB, does the like counter will be same with the like counter in the blog?
page
facebook-like
null
null
null
01/05/2012 22:48:18
not a real question
Facebook likes counter mechanism === I have a question. Let say brand A have FB page and a blog. If i copy a blog entry URL and share it in the FB page ( the blog also installed with FB like plugin). When a visitor like the post in FB, does the like counter will be same with the like counter in the blog?
1
2,842,621
05/16/2010 04:48:40
140,803
07/18/2009 22:24:32
1,101
67
Use ini/appconfig file or sql server file to store user config?
I know that the preference for INI or appconfig XML is their human readability. Let's say user preferences stored for my app are hierarchical and numbers about a thousand items and it would be really confusing for a user to edit an INI to change things anyway. I have always been using a combination of INI with appconfig. I am leaning towards using sql server db file, now. Every time the user changes a preference while using the app, it would be stored into the db file - that's my line of thought. I am also thinking that such a config db file could move around with the app too, just like an INI. Before I do that, any advice 1. If there are any disadvantages against using a db file over INI or appconfig. 2. If a shop uses mysql or oracle, do you think your colleagues would lift up their pro-mysql or pro-oracle eyebrow questioning why you would use sql server technology in a mysql or oracle shop? I mean, I am just using it like an INI file or app.config anyway, right?
c#
app.config
sql-server
null
null
null
open
Use ini/appconfig file or sql server file to store user config? === I know that the preference for INI or appconfig XML is their human readability. Let's say user preferences stored for my app are hierarchical and numbers about a thousand items and it would be really confusing for a user to edit an INI to change things anyway. I have always been using a combination of INI with appconfig. I am leaning towards using sql server db file, now. Every time the user changes a preference while using the app, it would be stored into the db file - that's my line of thought. I am also thinking that such a config db file could move around with the app too, just like an INI. Before I do that, any advice 1. If there are any disadvantages against using a db file over INI or appconfig. 2. If a shop uses mysql or oracle, do you think your colleagues would lift up their pro-mysql or pro-oracle eyebrow questioning why you would use sql server technology in a mysql or oracle shop? I mean, I am just using it like an INI file or app.config anyway, right?
0
7,275,328
09/01/2011 19:17:52
31,610
10/26/2008 17:16:50
12,678
347
Can I ever lose commited work, in git?
Is it ever possible to lose work in git? Let's assume all my work is commited, and I didn't run `git gc`. If I try some "funky command" ( NOT `rm -rf .git` ), and something strange happens to my project, could I recover from it? Is there something in particular I should avoid doing? Or clone the repository elsewhere before attempting it?
git
null
null
null
null
null
open
Can I ever lose commited work, in git? === Is it ever possible to lose work in git? Let's assume all my work is commited, and I didn't run `git gc`. If I try some "funky command" ( NOT `rm -rf .git` ), and something strange happens to my project, could I recover from it? Is there something in particular I should avoid doing? Or clone the repository elsewhere before attempting it?
0
3,022,772
06/11/2010 12:42:22
364,509
06/11/2010 11:55:32
1
0
C# Windows application
How to add new column when the row is checked in C# windows application
c#
null
null
null
null
06/11/2010 12:45:07
not a real question
C# Windows application === How to add new column when the row is checked in C# windows application
1
1,290,253
08/17/2009 20:32:07
158,007
08/17/2009 20:30:44
1
0
How to do form-based file uploads in CakePHP?
I have been looking into this for a while and can't figure it out. Basically I have an add page for my model which you can add a map from a URL or from a file upload. I have got all the fields and validation in but how and where do I manage the uploaded file?? There must be some easy way to do this. Thanks!
cakephp
file-upload
forms
null
null
null
open
How to do form-based file uploads in CakePHP? === I have been looking into this for a while and can't figure it out. Basically I have an add page for my model which you can add a map from a URL or from a file upload. I have got all the fields and validation in but how and where do I manage the uploaded file?? There must be some easy way to do this. Thanks!
0
5,433,233
03/25/2011 13:40:01
601,117
02/03/2011 07:27:47
16
0
how to print 1,2 2,3 3 3,4 4 4 4... through c#
how to print 1,2 2,3 3 3,4 4 4 4... through c#
c#
.net
null
null
null
03/25/2011 13:44:58
not a real question
how to print 1,2 2,3 3 3,4 4 4 4... through c# === how to print 1,2 2,3 3 3,4 4 4 4... through c#
1
7,555,353
09/26/2011 12:52:43
965,058
09/26/2011 12:35:11
1
0
cycling through hex colour spectrum
im working on some code with arduino and im trying to get a strip of LEDs to cycle through the spectrum of colours in order. I have done this in the past using by changing the r g and b values independently, but the current LEDs I am working with take Hex values ( eg 0xFF0000). Any idea how I can do this? Thanks!
colors
hex
arduino
null
null
null
open
cycling through hex colour spectrum === im working on some code with arduino and im trying to get a strip of LEDs to cycle through the spectrum of colours in order. I have done this in the past using by changing the r g and b values independently, but the current LEDs I am working with take Hex values ( eg 0xFF0000). Any idea how I can do this? Thanks!
0
10,168,955
04/16/2012 05:08:48
407,615
07/31/2010 18:53:18
394
22
Error precompiling assets in rails 3. Getting `rake aborted! Unexpected token: keyword (return)`
I'm trying to precompile assets: Gemfile: source 'https://rubygems.org' gem 'rails', '~> 3.2.1' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' gem 'less' end gem 'jquery-rails' # To use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' # To use Jbuilder templates for JSON # gem 'jbuilder' # Use unicorn as the web server # gem 'unicorn' # Deploy with Capistrano # gem 'capistrano' # To use debugger # gem 'ruby-debug19', :require => 'ruby-debug' # Bundle the extra gems: gem 'haml' gem 'devise' gem 'hpricot' gem 'ruby_parser' gem 'haml-rails' gem 'simple_form' gem 'paperclip', "~> 2.0" gem 'mini_magick' gem "geocoder", :require => "geocoder" gem 'kaminari' gem 'aws-s3' gem 'cancan' gem "friendly_id", "~> 4.0.1" gem 'thin' gem "twitter-bootstrap-rails" group :development do gem 'sqlite3' gem 'pry' gem 'rails-pry' end group :production do # gem 'mysql2' # gem 'ruby-mysql', '~> 2.9.3' gem 'exception_notification', :require => 'exception_notifier' gem 'pg', '~> 0.11' end group :test do # gem 'rspec' # gem 'rspec-rails' # gem 'cucumber' # gem 'cucumber-rails' # gem 'capybara' # gem 'database_cleaner' # gem 'webrat' # gem 'pickle' # gem 'jasmine' # gem 'factory_girl' # gem 'builder', '~> 2.1.2' # gem 'launchy' # gem "mocha" end # Bundle gems for the local environment. Make sure to # put test-only gems in this group so their generators # and rake tasks are available in development mode: # group :development, :test do # gem 'webrat' # end Stack trace: Tasks: TOP => assets:precompile (See full trace by running task with --trace) /Users/victorstan/Sites/pop_bottles ∴ RAILS_ENV=production bundle exec rake assets:precompile --trace ** Invoke assets:precompile (first_time) ** Execute assets:precompile /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/bin/ruby /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace ** Invoke assets:precompile:all (first_time) ** Execute assets:precompile:all ** Invoke assets:precompile:primary (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke environment (first_time) ** Execute environment ** Invoke tmp:cache:clear (first_time) ** Execute tmp:cache:clear ** Execute assets:precompile:primary rake aborted! Unexpected token: keyword (return) (in /Users/victorstan/Sites/pop_bottles/app/assets/javascripts/application.js) /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:32:in `rescue in block in eval' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:26:in `block in eval' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:78:in `block in lock' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/therubyracer-0.10.1/lib/v8/c/locker.rb:13:in `Locker' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:76:in `lock' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:25:in `eval' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:17:in `exec' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/uglifier-1.2.4/lib/uglifier.rb:101:in `compile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/compressors.rb:74:in `compress' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/processing.rb:265:in `block in js_compressor=' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/processor.rb:29:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/processor.rb:29:in `evaluate' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/context.rb:177:in `block in evaluate' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/context.rb:174:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/context.rb:174:in `evaluate' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/bundled_asset.rb:26:in `initialize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:244:in `new' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:244:in `build_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/index.rb:89:in `block in build_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/caching.rb:19:in `cache_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/index.rb:88:in `build_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:163:in `find_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/index.rb:56:in `find_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/static_compiler.rb:20:in `block in compile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:212:in `block in each_logical_path' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:200:in `block (2 levels) in each_file' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:190:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:190:in `each_entry' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:198:in `block in each_file' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:197:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:197:in `each_file' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:210:in `each_logical_path' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/static_compiler.rb:18:in `compile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:56:in `internal_precompile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `load' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `<main>' Tasks: TOP => assets:precompile:primary rake aborted! Command failed with status (1): [/Users/victorstan/.rvm/rubies/ruby-1.9.3-p...] /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:12:in `ruby_rake_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/app`enter code here`lication.rb:63:in `run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `load' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `<main>' Tasks: TOP => assets:precompile /Users/victorstan/Sites/pop_bottles ∴
ruby-on-rails-3
heroku
asset-pipeline
null
null
null
open
Error precompiling assets in rails 3. Getting `rake aborted! Unexpected token: keyword (return)` === I'm trying to precompile assets: Gemfile: source 'https://rubygems.org' gem 'rails', '~> 3.2.1' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' gem 'less' end gem 'jquery-rails' # To use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' # To use Jbuilder templates for JSON # gem 'jbuilder' # Use unicorn as the web server # gem 'unicorn' # Deploy with Capistrano # gem 'capistrano' # To use debugger # gem 'ruby-debug19', :require => 'ruby-debug' # Bundle the extra gems: gem 'haml' gem 'devise' gem 'hpricot' gem 'ruby_parser' gem 'haml-rails' gem 'simple_form' gem 'paperclip', "~> 2.0" gem 'mini_magick' gem "geocoder", :require => "geocoder" gem 'kaminari' gem 'aws-s3' gem 'cancan' gem "friendly_id", "~> 4.0.1" gem 'thin' gem "twitter-bootstrap-rails" group :development do gem 'sqlite3' gem 'pry' gem 'rails-pry' end group :production do # gem 'mysql2' # gem 'ruby-mysql', '~> 2.9.3' gem 'exception_notification', :require => 'exception_notifier' gem 'pg', '~> 0.11' end group :test do # gem 'rspec' # gem 'rspec-rails' # gem 'cucumber' # gem 'cucumber-rails' # gem 'capybara' # gem 'database_cleaner' # gem 'webrat' # gem 'pickle' # gem 'jasmine' # gem 'factory_girl' # gem 'builder', '~> 2.1.2' # gem 'launchy' # gem "mocha" end # Bundle gems for the local environment. Make sure to # put test-only gems in this group so their generators # and rake tasks are available in development mode: # group :development, :test do # gem 'webrat' # end Stack trace: Tasks: TOP => assets:precompile (See full trace by running task with --trace) /Users/victorstan/Sites/pop_bottles ∴ RAILS_ENV=production bundle exec rake assets:precompile --trace ** Invoke assets:precompile (first_time) ** Execute assets:precompile /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/bin/ruby /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace ** Invoke assets:precompile:all (first_time) ** Execute assets:precompile:all ** Invoke assets:precompile:primary (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke environment (first_time) ** Execute environment ** Invoke tmp:cache:clear (first_time) ** Execute tmp:cache:clear ** Execute assets:precompile:primary rake aborted! Unexpected token: keyword (return) (in /Users/victorstan/Sites/pop_bottles/app/assets/javascripts/application.js) /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:32:in `rescue in block in eval' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:26:in `block in eval' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:78:in `block in lock' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/therubyracer-0.10.1/lib/v8/c/locker.rb:13:in `Locker' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:76:in `lock' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:25:in `eval' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/execjs-1.3.0/lib/execjs/ruby_racer_runtime.rb:17:in `exec' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/uglifier-1.2.4/lib/uglifier.rb:101:in `compile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/compressors.rb:74:in `compress' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/processing.rb:265:in `block in js_compressor=' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/processor.rb:29:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/processor.rb:29:in `evaluate' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/context.rb:177:in `block in evaluate' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/context.rb:174:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/context.rb:174:in `evaluate' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/bundled_asset.rb:26:in `initialize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:244:in `new' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:244:in `build_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/index.rb:89:in `block in build_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/caching.rb:19:in `cache_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/index.rb:88:in `build_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:163:in `find_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/index.rb:56:in `find_asset' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/static_compiler.rb:20:in `block in compile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:212:in `block in each_logical_path' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:200:in `block (2 levels) in each_file' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:190:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:190:in `each_entry' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:198:in `block in each_file' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:197:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:197:in `each_file' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/sprockets-2.1.2/lib/sprockets/base.rb:210:in `each_logical_path' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/static_compiler.rb:18:in `compile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:56:in `internal_precompile' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `load' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `<main>' Tasks: TOP => assets:precompile:primary rake aborted! Command failed with status (1): [/Users/victorstan/.rvm/rubies/ruby-1.9.3-p...] /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:12:in `ruby_rake_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@popbottles/gems/actionpack-3.2.3/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /Users/victorstan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/app`enter code here`lication.rb:63:in `run' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `load' /Users/victorstan/.rvm/gems/ruby-1.9.3-p125@global/bin/rake:19:in `<main>' Tasks: TOP => assets:precompile /Users/victorstan/Sites/pop_bottles ∴
0
7,525,541
09/23/2011 07:17:58
885,200
08/09/2011 04:00:23
35
0
How to write any object to xml?
I have object which there maybe arrays,readonly properties ,anything from C#,how can i write it into xml?
c#
xml
null
null
null
09/23/2011 07:57:51
not a real question
How to write any object to xml? === I have object which there maybe arrays,readonly properties ,anything from C#,how can i write it into xml?
1
4,245,676
11/22/2010 13:05:32
509,255
11/16/2010 08:37:52
349
34
What UI element might this be? (Custom tab-bar?)
http://www.flickr.com/photos/fraserspeirs/4329430635/in/set-72157623224262135/ The above is a link basically showing the form fill view of the numbers app on the iPad. Any idea as to how to achieve such a functionality which sort of looks like our vanilla tabs on Chrome?
ipad
null
null
null
null
null
open
What UI element might this be? (Custom tab-bar?) === http://www.flickr.com/photos/fraserspeirs/4329430635/in/set-72157623224262135/ The above is a link basically showing the form fill view of the numbers app on the iPad. Any idea as to how to achieve such a functionality which sort of looks like our vanilla tabs on Chrome?
0
9,594,646
03/07/2012 01:41:19
1,190,112
02/05/2012 02:17:43
1
0
UIKit Particle Systems with Open GL ES?
I am making an iOS game using Open GL ES 2.0 and GLKit. Is it possible to use the new iOS 5 UIKit Particle Systems with it? Or am I better off just making my own particle system?
iphone
ios
uikit
particles
glkit
null
open
UIKit Particle Systems with Open GL ES? === I am making an iOS game using Open GL ES 2.0 and GLKit. Is it possible to use the new iOS 5 UIKit Particle Systems with it? Or am I better off just making my own particle system?
0
3,931,649
10/14/2010 09:04:48
208,827
11/11/2009 16:28:55
1,308
4
Facebook connect button
I can't seem to find how to generate the classic Facebook Connect button: ![alt text][1] all I can find how to generate is the following: ![alt text][2] ______ I'm using the documentation here [http://developers.facebook.com/docs/guides/web](http://developers.facebook.com/docs/guides/web) ______ Any ideas? :) [1]: http://i.stack.imgur.com/lJ4Cu.png [2]: http://i.stack.imgur.com/3Hjq1.png
facebook
facebook-connect
null
null
null
null
open
Facebook connect button === I can't seem to find how to generate the classic Facebook Connect button: ![alt text][1] all I can find how to generate is the following: ![alt text][2] ______ I'm using the documentation here [http://developers.facebook.com/docs/guides/web](http://developers.facebook.com/docs/guides/web) ______ Any ideas? :) [1]: http://i.stack.imgur.com/lJ4Cu.png [2]: http://i.stack.imgur.com/3Hjq1.png
0
11,666,449
07/26/2012 09:35:19
1,550,891
07/25/2012 07:47:05
1
0
how to change sites contents Using Chrome Extension ? (Example)
I Need A Page Action Or Browse Action with Files That Change An element In A Website Thanks You !
google
null
null
null
null
07/26/2012 21:08:36
not a real question
how to change sites contents Using Chrome Extension ? (Example) === I Need A Page Action Or Browse Action with Files That Change An element In A Website Thanks You !
1
7,664,978
10/05/2011 17:07:31
569,322
01/10/2011 03:18:16
322
8
Take file information?
So I know how to upload a file to a web-server with PHP. Instead of uploading it though, I just want to read the data from the file and use it, WITHOUT the upload part. Could someone link me up or give me an example plz?
php
file
upload
null
null
null
open
Take file information? === So I know how to upload a file to a web-server with PHP. Instead of uploading it though, I just want to read the data from the file and use it, WITHOUT the upload part. Could someone link me up or give me an example plz?
0
10,807,931
05/29/2012 23:02:36
387,093
07/08/2010 19:38:30
495
0
XSL: Adding an extra digit to the coordinate data
I receive coordinate data in an XML file in the form of Latitude: 3876570 Longitude:-9013376 I am using XSL to convert the Lon/lat to have 8 digits instead of 7 (as above), so I need to append a zero at the end of the above coordinates. ie I need Latitude: 38765700 Longitude:-90133760 I am trying to use format-number() function, but not sure if I am using it correctly. I tried <xsl:value-of select='format-number(longitude, "########")'/> and <xsl:value-of select='format-number(longitude, "#######0")'/> I end up getting the 7 digits itself. Please help!
xml
xslt
null
null
null
null
open
XSL: Adding an extra digit to the coordinate data === I receive coordinate data in an XML file in the form of Latitude: 3876570 Longitude:-9013376 I am using XSL to convert the Lon/lat to have 8 digits instead of 7 (as above), so I need to append a zero at the end of the above coordinates. ie I need Latitude: 38765700 Longitude:-90133760 I am trying to use format-number() function, but not sure if I am using it correctly. I tried <xsl:value-of select='format-number(longitude, "########")'/> and <xsl:value-of select='format-number(longitude, "#######0")'/> I end up getting the 7 digits itself. Please help!
0
7,060,108
08/14/2011 22:20:52
870,997
07/30/2011 19:34:27
1
0
wsgi cookies - no middleware
Sounds simple enough def create_cookie(): bag = string.ascii_uppercase + string.ascii_lowercase + string.digits cookie = Cookie.SimpleCookie() cookie['sessionid'] = ''.join(random.sample(bag,24)) cookie['sessionid']['expires'] = 600 return 'Set-Cookie: ', cookie.output().replace('Set-Cookie: ', '', 1) cookie.output() is Set-Cookie: sessionid=YmsrvCMFapXk6wAt4EVKz2uU; expires=Sun, 14-Aug-2011 21:48:19 GMT headers.append(('Content-type', 'text/html')) headers.append(('Content-Length', str(output_len))) headers.append(create_cookie) This is my response ('200 OK', [('Content-type', 'text/html'), ('Content-Length', '1204'), ('Set-Cookie', 'sessionid=YmsrvCMFapXk6wAt4EVKz2uU; expires=Sun, 14-Aug-2011 21:48:19 GMT')], 'html stuff') This is what I get from envirion: HTTP_COOKIE: sessionid=YmsrvCMFapXk6wAt4EVKz2uU And when I click another link on my page, no more HTTP_COOKIE Using the chrome dev console I can see the request cookie and the page header contains: Cookie:: sessionid=YmsrvCMFapXk6wAt4EVKz2uU Now, this bothers me a bit. First of all why does it have double :: ? I tried using 'Set-Cookie' instead of 'Set-Cookie: ' in the create_cookie function. Doing that I didn't get any HTTP_COOKIE at all from environ. So after lots of searching in the web and everyone just talking middleware (don't suggest I use one please - I'm doing this to learn the wsgi) ... I've come up empty.
wsgi
null
null
null
null
null
open
wsgi cookies - no middleware === Sounds simple enough def create_cookie(): bag = string.ascii_uppercase + string.ascii_lowercase + string.digits cookie = Cookie.SimpleCookie() cookie['sessionid'] = ''.join(random.sample(bag,24)) cookie['sessionid']['expires'] = 600 return 'Set-Cookie: ', cookie.output().replace('Set-Cookie: ', '', 1) cookie.output() is Set-Cookie: sessionid=YmsrvCMFapXk6wAt4EVKz2uU; expires=Sun, 14-Aug-2011 21:48:19 GMT headers.append(('Content-type', 'text/html')) headers.append(('Content-Length', str(output_len))) headers.append(create_cookie) This is my response ('200 OK', [('Content-type', 'text/html'), ('Content-Length', '1204'), ('Set-Cookie', 'sessionid=YmsrvCMFapXk6wAt4EVKz2uU; expires=Sun, 14-Aug-2011 21:48:19 GMT')], 'html stuff') This is what I get from envirion: HTTP_COOKIE: sessionid=YmsrvCMFapXk6wAt4EVKz2uU And when I click another link on my page, no more HTTP_COOKIE Using the chrome dev console I can see the request cookie and the page header contains: Cookie:: sessionid=YmsrvCMFapXk6wAt4EVKz2uU Now, this bothers me a bit. First of all why does it have double :: ? I tried using 'Set-Cookie' instead of 'Set-Cookie: ' in the create_cookie function. Doing that I didn't get any HTTP_COOKIE at all from environ. So after lots of searching in the web and everyone just talking middleware (don't suggest I use one please - I'm doing this to learn the wsgi) ... I've come up empty.
0
8,500,354
12/14/2011 06:32:07
1,004,566
10/20/2011 06:10:30
4
0
B tree index file creation in C and c++
I want to develop File Management using ISAM . So i need some developer guide to develop index file using B Tree.
index
b-tree
creation
null
null
12/14/2011 08:33:53
not a real question
B tree index file creation in C and c++ === I want to develop File Management using ISAM . So i need some developer guide to develop index file using B Tree.
1
4,631,708
01/08/2011 01:04:16
542,517
12/14/2010 20:31:56
616
38
Need an unbiased compare and contrast of Ruby on Rails versus PHP
I'm an avid, certified PHP developer. However, I'm constantly reading about Ruby on Rails and how it's gaining popularity. I decided to research into why this was the case. Is Ruby on Rails really better than PHP? Or, is it just another avenue to get the job done (e.g. ASP.net)? Doing basic research on Ruby and it's comparison to PHP, the internet is littered with blogs and editorials of people who are biased one way or the other. PHP is great, awesome, and amazing. Ruby on Rails is the PHP killer. This type of information isn't useful to me. I write in PHP daily. I've used PHP for many different purposes: - Basic web sites - Ground-up Content Management Systems - Load-balanced web applications - Web service and XML communication - Server-level mainframe access - IMAP and email access This is obviously a well distinguised list of tasks in varying complexities. I'm assuming Ruby can do all these things, but is PHP\Ruby really easier or more powerful? So, I confide in the community: Who here uses both of these programming languages daily? Or even, who has used both and can confidently say they are well educated in both equally? I would love to hear your opinions on which is "better," if that's even the case. Perhaps they are both equally as powerful depending on their use. I'm just looking for an unbiased opinion comparing and contrasting the two from an actual developer with experience in both.
php
ruby-on-rails
compare-contrast
null
null
01/08/2011 01:09:03
not constructive
Need an unbiased compare and contrast of Ruby on Rails versus PHP === I'm an avid, certified PHP developer. However, I'm constantly reading about Ruby on Rails and how it's gaining popularity. I decided to research into why this was the case. Is Ruby on Rails really better than PHP? Or, is it just another avenue to get the job done (e.g. ASP.net)? Doing basic research on Ruby and it's comparison to PHP, the internet is littered with blogs and editorials of people who are biased one way or the other. PHP is great, awesome, and amazing. Ruby on Rails is the PHP killer. This type of information isn't useful to me. I write in PHP daily. I've used PHP for many different purposes: - Basic web sites - Ground-up Content Management Systems - Load-balanced web applications - Web service and XML communication - Server-level mainframe access - IMAP and email access This is obviously a well distinguised list of tasks in varying complexities. I'm assuming Ruby can do all these things, but is PHP\Ruby really easier or more powerful? So, I confide in the community: Who here uses both of these programming languages daily? Or even, who has used both and can confidently say they are well educated in both equally? I would love to hear your opinions on which is "better," if that's even the case. Perhaps they are both equally as powerful depending on their use. I'm just looking for an unbiased opinion comparing and contrasting the two from an actual developer with experience in both.
4
11,572,578
07/20/2012 03:44:35
838,204
07/11/2011 03:56:43
59
2
What is the efficient way to backup large files?
I have the schedule job of backing large files in Windows Server and it takes almost 2 hours to finish. For now, I only use copy command in the .bat and copy the large files to another folder. I'm wondering whether there is more efficient way than the copy command to backup the large files(approximately 90GB). For example, write an c++ program to copy the files rather than the copy command. Many thanks.
c++
windows
batch
copy
backup
07/20/2012 17:12:32
off topic
What is the efficient way to backup large files? === I have the schedule job of backing large files in Windows Server and it takes almost 2 hours to finish. For now, I only use copy command in the .bat and copy the large files to another folder. I'm wondering whether there is more efficient way than the copy command to backup the large files(approximately 90GB). For example, write an c++ program to copy the files rather than the copy command. Many thanks.
2
10,494,171
05/08/2012 07:08:47
1,256,558
03/08/2012 08:45:38
10
2
Continue using app instance started at boot time
I have an app that automatically starts a few seconds delayed after boot. BTW: This is nothing evil! The user must enable it by himself! When I now tap on the app's icon I would like to have the same instance being opened that was already started at boot. I don't want the app to restart. But this is what happens right now. Thanks! Bernd
android
instance
boot
restart
reuse
null
open
Continue using app instance started at boot time === I have an app that automatically starts a few seconds delayed after boot. BTW: This is nothing evil! The user must enable it by himself! When I now tap on the app's icon I would like to have the same instance being opened that was already started at boot. I don't want the app to restart. But this is what happens right now. Thanks! Bernd
0
8,722,585
01/04/2012 05:52:18
402,807
07/26/2010 22:58:04
1,525
69
twilio.rest missing from twilio python module version 2.0.8?
The Twilio python quickstart guide says to use a submodule called twilio.rest . But after installing the twilio module today via `sudo pip install twilio`, which installed version 2.0.8, there appears to be no module (or object) called "rest" within the twilio module. Where is twilio.rest?
twilio
null
null
null
null
null
open
twilio.rest missing from twilio python module version 2.0.8? === The Twilio python quickstart guide says to use a submodule called twilio.rest . But after installing the twilio module today via `sudo pip install twilio`, which installed version 2.0.8, there appears to be no module (or object) called "rest" within the twilio module. Where is twilio.rest?
0
9,579,833
03/06/2012 07:57:22
1,250,032
03/05/2012 14:23:15
1
0
Most suitable payment gateway api for google appengine
Please which payment api/toolkit is most suitable for Google app-engine platform.i found Google check-out SDK which seemed really nice but its not available for use in my country(US and UK only).i also found PayPal X toolkit which is very cool but it supports just PayPal card transactions..are there any more suitable once that can be widely used..thanks a bunch in advance pals
google-app-engine
null
null
null
null
03/07/2012 18:26:18
off topic
Most suitable payment gateway api for google appengine === Please which payment api/toolkit is most suitable for Google app-engine platform.i found Google check-out SDK which seemed really nice but its not available for use in my country(US and UK only).i also found PayPal X toolkit which is very cool but it supports just PayPal card transactions..are there any more suitable once that can be widely used..thanks a bunch in advance pals
2
2,766,233
05/04/2010 14:37:52
307,797
04/02/2010 16:37:08
94
0
What is C runtime library?
OK, I know this is maybe the most stupid question ever asked here, but what actually is C runtime library and what is used for? I was searching, googling like devil, but I could find better than Microsofts: "The Microsoft run-time library provides routines for programming for the Microsoft Windows operating system. These routines automate many common programming tasks that are not provided by the C and C++ languages." OK, I get that, but for example, what is in libcmt.lib ? What functions? I thought that C standart library is part of C compiler, so is libcmt.lib windows implementation of C standart library functions to work under win32?
c
runtime
null
null
null
null
open
What is C runtime library? === OK, I know this is maybe the most stupid question ever asked here, but what actually is C runtime library and what is used for? I was searching, googling like devil, but I could find better than Microsofts: "The Microsoft run-time library provides routines for programming for the Microsoft Windows operating system. These routines automate many common programming tasks that are not provided by the C and C++ languages." OK, I get that, but for example, what is in libcmt.lib ? What functions? I thought that C standart library is part of C compiler, so is libcmt.lib windows implementation of C standart library functions to work under win32?
0
3,680,749
09/09/2010 21:33:08
443,264
09/09/2010 09:38:13
1
1
where clause not displaying data
i am trying to display data based on wether data in a field is new. instead of showing only the data that is new it is showing all data. can someone point out my error. many thanks <?php include("../../js/JSON.php"); $json = new Services_JSON(); // Connect to MySQL database mysql_connect('localhost', 'root', ''); mysql_select_db(sample); $page = 1; // The current page $sortname = 'id'; // Sort column $sortorder = 'asc'; // Sort order $qtype = ''; // Search column $query = ''; // Search string $new = 1; // Get posted data if (isset($_POST['page'])) { $page = mysql_real_escape_string($_POST['page']); } if (isset($_POST['sortname'])) { $sortname = mysql_real_escape_string($_POST['sortname']); } if (isset($_POST['sortorder'])) { $sortorder = mysql_real_escape_string($_POST['sortorder']); } if (isset($_POST['qtype'])) { $qtype = mysql_real_escape_string($_POST['qtype']); } if (isset($_POST['query'])) { $query = mysql_real_escape_string($_POST['query']); } if (isset($_POST['rp'])) { $rp = mysql_real_escape_string($_POST['rp']); } // Setup sort and search SQL using posted data $sortSql = "order by $sortname $sortorder"; $searchSql = ($qtype != '' && $query != '') ? "where ".$qtype." LIKE '%".$query."%' AND new = 1" : ''; // Get total count of records $sql = "select count(*) from act $searchSql"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $total = $row[0]; // Setup paging SQL $pageStart = ($page -1)*$rp; $limitSql = "limit $pageStart, $rp"; // Return JSON data $data = array(); $data['page'] = $page; $data['total'] = $total; $data['rows'] = array(); $sql = "select * from act $searchSql $sortSql $limitSql"; $results = mysql_query($sql); while ($row = mysql_fetch_assoc($results)) { $data['rows'][] = array( 'id' => $row['id'], 'cell' => array($row['id'], $row['slot'], $row['service'], $row['activity'], $row['department'], $row['company'], $row['address'], $row['user'], $row['item'], $row['filebox'], date('d/m/Y',strtotime($row['date'])), $row['quantity'], $row['type'], $row['new']) ); } echo $json->encode($data); ?>
php
mysql
null
null
null
null
open
where clause not displaying data === i am trying to display data based on wether data in a field is new. instead of showing only the data that is new it is showing all data. can someone point out my error. many thanks <?php include("../../js/JSON.php"); $json = new Services_JSON(); // Connect to MySQL database mysql_connect('localhost', 'root', ''); mysql_select_db(sample); $page = 1; // The current page $sortname = 'id'; // Sort column $sortorder = 'asc'; // Sort order $qtype = ''; // Search column $query = ''; // Search string $new = 1; // Get posted data if (isset($_POST['page'])) { $page = mysql_real_escape_string($_POST['page']); } if (isset($_POST['sortname'])) { $sortname = mysql_real_escape_string($_POST['sortname']); } if (isset($_POST['sortorder'])) { $sortorder = mysql_real_escape_string($_POST['sortorder']); } if (isset($_POST['qtype'])) { $qtype = mysql_real_escape_string($_POST['qtype']); } if (isset($_POST['query'])) { $query = mysql_real_escape_string($_POST['query']); } if (isset($_POST['rp'])) { $rp = mysql_real_escape_string($_POST['rp']); } // Setup sort and search SQL using posted data $sortSql = "order by $sortname $sortorder"; $searchSql = ($qtype != '' && $query != '') ? "where ".$qtype." LIKE '%".$query."%' AND new = 1" : ''; // Get total count of records $sql = "select count(*) from act $searchSql"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $total = $row[0]; // Setup paging SQL $pageStart = ($page -1)*$rp; $limitSql = "limit $pageStart, $rp"; // Return JSON data $data = array(); $data['page'] = $page; $data['total'] = $total; $data['rows'] = array(); $sql = "select * from act $searchSql $sortSql $limitSql"; $results = mysql_query($sql); while ($row = mysql_fetch_assoc($results)) { $data['rows'][] = array( 'id' => $row['id'], 'cell' => array($row['id'], $row['slot'], $row['service'], $row['activity'], $row['department'], $row['company'], $row['address'], $row['user'], $row['item'], $row['filebox'], date('d/m/Y',strtotime($row['date'])), $row['quantity'], $row['type'], $row['new']) ); } echo $json->encode($data); ?>
0
230,649
10/23/2008 17:30:51
7,679
09/15/2008 14:12:36
251
22
Lightweight Java Object cache API
I'm looking for a Java in-memory object caching API. Right now, I'm just using a Map: Map cache = new HashMap<String, Object>(); cache.put("key", value); I need to extend the cache to include basic features like: - Max size - Time to live However, I don't need more sophisticated features like: - Access from multiple processes (caching server) - Persistence (to disk) I have taken a look at [LRUMap][1], but it doesn't include TTL. I have also looked at [whirlycache][2], which seems to fit my needs. Any recommendations? What solutions have you used in the past? [1]: http://commons.apache.org/collections/apidocs/org/apache/commons/collections/map/LRUMap.html [2]: http://whirlycache.dev.java.net/
java
caching
null
null
null
08/01/2012 14:16:03
not constructive
Lightweight Java Object cache API === I'm looking for a Java in-memory object caching API. Right now, I'm just using a Map: Map cache = new HashMap<String, Object>(); cache.put("key", value); I need to extend the cache to include basic features like: - Max size - Time to live However, I don't need more sophisticated features like: - Access from multiple processes (caching server) - Persistence (to disk) I have taken a look at [LRUMap][1], but it doesn't include TTL. I have also looked at [whirlycache][2], which seems to fit my needs. Any recommendations? What solutions have you used in the past? [1]: http://commons.apache.org/collections/apidocs/org/apache/commons/collections/map/LRUMap.html [2]: http://whirlycache.dev.java.net/
4
4,938,219
02/08/2011 20:46:13
357,844
07/22/2009 18:48:19
199
0
Facing Below issue
I am facing below issue, please help me. ------------------------------------------- "StackTrace":" at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)\u000d\u000a at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)\u000d\u000a at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)\u000d\u000a at System.Activator.CreateInstance(Type type, Boolean nonPublic)\u000d\u000a at NHibernate.AdoNet.SqlClientSqlCommandSet..ctor()\u000d\u000a at NHibernate.AdoNet.SqlClientBatchingBatcher..ctor(ConnectionManager connectionManager, IInterceptor interceptor)\u000d\u000a at NHibernate.AdoNet.SqlClientBatchingBatcherFactory.CreateBatcher(ConnectionManager connectionManager, IInterceptor interceptor)\u000d\u000a at NHibernate.AdoNet.ConnectionManager..ctor(ISessionImplementor session, IDbConnection suppliedConnection, ConnectionReleaseMode connectionReleaseMode, IInterceptor interceptor)\u000d\u000a at NHibernate.Impl.SessionImpl..ctor(IDbConnection connection, SessionFactoryImpl factory, Boolean autoclose, Int64 timestamp, IInterceptor interceptor, EntityMode entityMode, Boolean flushBeforeCompletionEnabled, Boolean autoCloseSessionEnabled, ConnectionReleaseMode connectionReleaseMode)\u000d\u000a at NHibernate.Impl.SessionFactoryImpl.OpenSession(IDbConnection connection, Boolean autoClose, Int64 timestamp, IInterceptor sessionLocalInterceptor)\u000d\u000a at NHibernate.Impl.SessionFactoryImpl.OpenSession(IInterceptor sessionLocalInterceptor)\u000d\u000a at NHibernate.Impl.SessionFactoryImpl.OpenSession()\u000d\u000a at SharpArch.Data.NHibernate.NHibernateSession.CurrentFor(String factoryKey)\u000d\u000a at SharpArch.Data.NHibernate.RepositoryWithTypedId`2.get_Session()\u000d\u000a at Apdecs.SocietyManager.Data.Repositories.StateRepository.GetStateB… ------------------------------------------- Thanks in advance.
nhibernate
fluent-nhibernate
null
null
null
02/08/2011 22:10:17
not a real question
Facing Below issue === I am facing below issue, please help me. ------------------------------------------- "StackTrace":" at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)\u000d\u000a at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)\u000d\u000a at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)\u000d\u000a at System.Activator.CreateInstance(Type type, Boolean nonPublic)\u000d\u000a at NHibernate.AdoNet.SqlClientSqlCommandSet..ctor()\u000d\u000a at NHibernate.AdoNet.SqlClientBatchingBatcher..ctor(ConnectionManager connectionManager, IInterceptor interceptor)\u000d\u000a at NHibernate.AdoNet.SqlClientBatchingBatcherFactory.CreateBatcher(ConnectionManager connectionManager, IInterceptor interceptor)\u000d\u000a at NHibernate.AdoNet.ConnectionManager..ctor(ISessionImplementor session, IDbConnection suppliedConnection, ConnectionReleaseMode connectionReleaseMode, IInterceptor interceptor)\u000d\u000a at NHibernate.Impl.SessionImpl..ctor(IDbConnection connection, SessionFactoryImpl factory, Boolean autoclose, Int64 timestamp, IInterceptor interceptor, EntityMode entityMode, Boolean flushBeforeCompletionEnabled, Boolean autoCloseSessionEnabled, ConnectionReleaseMode connectionReleaseMode)\u000d\u000a at NHibernate.Impl.SessionFactoryImpl.OpenSession(IDbConnection connection, Boolean autoClose, Int64 timestamp, IInterceptor sessionLocalInterceptor)\u000d\u000a at NHibernate.Impl.SessionFactoryImpl.OpenSession(IInterceptor sessionLocalInterceptor)\u000d\u000a at NHibernate.Impl.SessionFactoryImpl.OpenSession()\u000d\u000a at SharpArch.Data.NHibernate.NHibernateSession.CurrentFor(String factoryKey)\u000d\u000a at SharpArch.Data.NHibernate.RepositoryWithTypedId`2.get_Session()\u000d\u000a at Apdecs.SocietyManager.Data.Repositories.StateRepository.GetStateB… ------------------------------------------- Thanks in advance.
1
1,578,592
10/16/2009 14:57:12
30,911
10/23/2008 18:03:59
617
14
IPython in unbuffered mode
Is there a way to run IPython in unbuffered mode? The same way as `python -u` gives unbuffered IO for the standard python shell
ipython
python
null
null
null
null
open
IPython in unbuffered mode === Is there a way to run IPython in unbuffered mode? The same way as `python -u` gives unbuffered IO for the standard python shell
0
11,438,284
07/11/2012 17:37:22
1,483,579
06/26/2012 17:47:21
1
0
Remove Wireless 802.1x Profile via terminal or applescript?
Is this at all possible on os x lion 10.7?
bash
apple
terminal
osx-lion
applescript
07/12/2012 06:02:05
off topic
Remove Wireless 802.1x Profile via terminal or applescript? === Is this at all possible on os x lion 10.7?
2
3,384,969
08/02/2010 04:23:46
117,104
06/04/2009 06:31:25
399
44
How do I navigate complicated polymorphic associations across several models?
I'm writing some tricky polymorphic relationships to handle tagging. I have a `Tag` model, and a `Tagging` model which belongs_to a polymorphic `taggable`. I have an `Item` model, which `has_many :taggings, :as => :taggable`, and `has_many :tags, :through => :taggings`, so that I can call `@item.tags`. This is all working ok. I want to bring another model into the mix - a `Store` which `has_many :items`. I want to be able to find all tags associated with all items in the store using `@store.tags`. Here's what I have: class Store < AR::Base has_many :wares has_many :tags, :through => :items, :source => :taggings However, this returns all of the `taggings` associated with items in the store, not the actual tags. How do I get specify that the store has_many tags, through wares, through taggings? Can post more info if needed - trying to prevent information overload! Thanks :)
ruby-on-rails
activerecord
tags
tagging
polymorphic-associations
null
open
How do I navigate complicated polymorphic associations across several models? === I'm writing some tricky polymorphic relationships to handle tagging. I have a `Tag` model, and a `Tagging` model which belongs_to a polymorphic `taggable`. I have an `Item` model, which `has_many :taggings, :as => :taggable`, and `has_many :tags, :through => :taggings`, so that I can call `@item.tags`. This is all working ok. I want to bring another model into the mix - a `Store` which `has_many :items`. I want to be able to find all tags associated with all items in the store using `@store.tags`. Here's what I have: class Store < AR::Base has_many :wares has_many :tags, :through => :items, :source => :taggings However, this returns all of the `taggings` associated with items in the store, not the actual tags. How do I get specify that the store has_many tags, through wares, through taggings? Can post more info if needed - trying to prevent information overload! Thanks :)
0
10,613,328
05/16/2012 06:46:22
1,389,475
05/11/2012 12:52:22
33
0
How to embed SSH in C# windows application to communicate a Linux Server?
I am using Putty to run commands from windows to Linux server. I want to override the putty and to embed the SSH code in my application to run commands on my Linux Server. need help to make SSH connection programmatically and to run commands as well as to see their responses too. Regards Azeem Akram
c#
linux
ssh
putty
null
05/16/2012 14:05:01
not a real question
How to embed SSH in C# windows application to communicate a Linux Server? === I am using Putty to run commands from windows to Linux server. I want to override the putty and to embed the SSH code in my application to run commands on my Linux Server. need help to make SSH connection programmatically and to run commands as well as to see their responses too. Regards Azeem Akram
1
8,446,110
12/09/2011 13:24:53
493,080
10/31/2010 23:08:49
81
5
Difference between FAT Tables created in Linux and Windows
When I create a FAT32 filesystem with `mkfs.vfat` in Linux, I see that the first bytes are: eX mkdosfs EB 58 90 6D 6B 64 6F 73 66 73 When I create it in Windows, I see: eX MSDOS5.0 EB 58 90 4D 53 44 4F 53 35 2E 30 What d they stand for? Are they both valid?
filesystems
fat32
null
null
null
12/10/2011 00:33:25
off topic
Difference between FAT Tables created in Linux and Windows === When I create a FAT32 filesystem with `mkfs.vfat` in Linux, I see that the first bytes are: eX mkdosfs EB 58 90 6D 6B 64 6F 73 66 73 When I create it in Windows, I see: eX MSDOS5.0 EB 58 90 4D 53 44 4F 53 35 2E 30 What d they stand for? Are they both valid?
2
6,554,618
07/02/2011 01:43:37
486,631
10/25/2010 15:53:52
44
1
can help us isssue with Jqurey drag and drop accesiblity (WAI-ARIA) supoort with screen reader??
we have isssue with Jqurey drag and drop accesiblity (WAI-ARIA) supoort with screen reader?can help us?
jquery
null
null
null
null
07/02/2011 05:06:50
not a real question
can help us isssue with Jqurey drag and drop accesiblity (WAI-ARIA) supoort with screen reader?? === we have isssue with Jqurey drag and drop accesiblity (WAI-ARIA) supoort with screen reader?can help us?
1
6,176,270
05/30/2011 12:24:57
395,022
07/18/2010 07:21:29
37
9
Which one mvvm freameworks is easier and faster for develop an aplication?
im junior in wpf and mvvm... i know there are some mvvm freamework such as mvvm toolkit,mvvm light ,Prism i was wondering which One from mvvm freamworks is easier and faster for develop an application?
wpf
prism
mvvm-light
mvvm-toolkit
null
06/04/2011 02:40:15
not constructive
Which one mvvm freameworks is easier and faster for develop an aplication? === im junior in wpf and mvvm... i know there are some mvvm freamework such as mvvm toolkit,mvvm light ,Prism i was wondering which One from mvvm freamworks is easier and faster for develop an application?
4
9,795,500
03/20/2012 21:46:34
1,005,633
10/20/2011 16:21:01
1
0
How to build libtorrent?
I want to built the libtorrent library in order to use it with eclipse IDE(c++), i have already build boost library on my system. How can i built it. I have searched for hint but i found only for visual studio. Thanks!
c++
eclipse
libtorrent
null
null
03/23/2012 12:39:09
not a real question
How to build libtorrent? === I want to built the libtorrent library in order to use it with eclipse IDE(c++), i have already build boost library on my system. How can i built it. I have searched for hint but i found only for visual studio. Thanks!
1
9,812,326
03/21/2012 20:29:08
607,552
02/08/2011 03:56:41
86
3
Content Query webpart- CommonViewFields vs ViewFieldsOverride
I'm reading up on the Content Query web part and based on [this][1] page, I can't understand the difference between the CommonViewFields property vs the ViewFieldsOverride property. How are they different? Thanks! [1]: http://msdn.microsoft.com/en-us/library/aa981241.aspx
sharepoint
sharepoint2010
caml
cqwp
null
03/23/2012 17:12:46
not constructive
Content Query webpart- CommonViewFields vs ViewFieldsOverride === I'm reading up on the Content Query web part and based on [this][1] page, I can't understand the difference between the CommonViewFields property vs the ViewFieldsOverride property. How are they different? Thanks! [1]: http://msdn.microsoft.com/en-us/library/aa981241.aspx
4
2,700,606
04/23/2010 17:25:37
324,429
04/23/2010 17:15:54
1
0
books or tutorial of complete C# project
i am beginner C# programmer, i think it's time that i write full functional application, i begin, but it was very hard to planning and implemntation. if you know some resource about this please help me :) will be versy usefull project managment resources for beginners also. thansk friends!
c#
project
managment
null
null
09/28/2011 10:18:38
not constructive
books or tutorial of complete C# project === i am beginner C# programmer, i think it's time that i write full functional application, i begin, but it was very hard to planning and implemntation. if you know some resource about this please help me :) will be versy usefull project managment resources for beginners also. thansk friends!
4
5,122,262
02/25/2011 20:29:33
634,826
02/25/2011 20:29:33
1
0
using different session model name in Authlogic
I changed UserSession model name to Session in Authlogic gem but i'm getting this error. NoMethodError in SessionsController#new undefined method `login_field' for Object:Class Is it forbidden to use Session as a model name ? db schema create_table "users", :force => true do |t| t.string "login" t.string "email" t.string "crypted_password" t.string "password_salt" t.string "persistence_token" t.string "perishable_token" t.datetime "created_at" t.datetime "updated_at" end sessions_controller class SessionsController < ApplicationController def new @session = Session.new end def create @session = Session.new(params[:session]) if @session.save redirect_to(root_url, :notice => 'Login successful.') else render :action => "new" end end def destroy @session = Session.find @session.destroy redirect_to(root_url, :notice => 'Goodbye!') end end model: session.rb class Session < Authlogic::Session::Base end application_controller class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user_session, :current_user private def current_user_session return @current_user_session if defined?(@current_user_session) @current_user_session = Session.find end def current_user return @current_user if defined?(@current_user) @current_user = current_user_session && current_user_session.user end end
ruby-on-rails
authlogic
null
null
null
null
open
using different session model name in Authlogic === I changed UserSession model name to Session in Authlogic gem but i'm getting this error. NoMethodError in SessionsController#new undefined method `login_field' for Object:Class Is it forbidden to use Session as a model name ? db schema create_table "users", :force => true do |t| t.string "login" t.string "email" t.string "crypted_password" t.string "password_salt" t.string "persistence_token" t.string "perishable_token" t.datetime "created_at" t.datetime "updated_at" end sessions_controller class SessionsController < ApplicationController def new @session = Session.new end def create @session = Session.new(params[:session]) if @session.save redirect_to(root_url, :notice => 'Login successful.') else render :action => "new" end end def destroy @session = Session.find @session.destroy redirect_to(root_url, :notice => 'Goodbye!') end end model: session.rb class Session < Authlogic::Session::Base end application_controller class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user_session, :current_user private def current_user_session return @current_user_session if defined?(@current_user_session) @current_user_session = Session.find end def current_user return @current_user if defined?(@current_user) @current_user = current_user_session && current_user_session.user end end
0
8,643,494
12/27/2011 10:16:14
1,083,644
12/06/2011 13:57:39
3
0
How to add drop down list in joomla
I am using Joomla 1.7 and trying to create a website for a Real Estate Business. For that i need to have drop down lists for searching purpose. I am not getting how to place dropdown list in the page and also please suggest me if any module is there for creating search options. Thanks in advance
joomla
joomla1.7
null
null
null
null
open
How to add drop down list in joomla === I am using Joomla 1.7 and trying to create a website for a Real Estate Business. For that i need to have drop down lists for searching purpose. I am not getting how to place dropdown list in the page and also please suggest me if any module is there for creating search options. Thanks in advance
0
5,615,156
04/10/2011 22:28:08
701,312
04/10/2011 22:21:57
1
0
create a web-based tool for php scripts?
I have a bunch of small code scripts for basic string manipulations in PHP code. I want to create a web-based GUI tool for these, such that the user would be able to input text into a "input text box" then click on a button for one the functions and the output to appear in "output text box". I have very little experience with html and such. I was wondering if there is a tool or program that would help me make a website where a user could do this? I have looked into microsoft expression and drupal -- Does anyone know of a better/easier way to do this?
php
gui
null
null
null
null
open
create a web-based tool for php scripts? === I have a bunch of small code scripts for basic string manipulations in PHP code. I want to create a web-based GUI tool for these, such that the user would be able to input text into a "input text box" then click on a button for one the functions and the output to appear in "output text box". I have very little experience with html and such. I was wondering if there is a tool or program that would help me make a website where a user could do this? I have looked into microsoft expression and drupal -- Does anyone know of a better/easier way to do this?
0
8,201,686
11/20/2011 13:06:54
738,811
05/04/2011 21:07:06
722
3
Is a namespace the same thing as scope in C++?
Is a namespace the same thing as scope in C++ programming language? Are these two words synonyms and can be used interchangably?
c++
null
null
null
null
null
open
Is a namespace the same thing as scope in C++? === Is a namespace the same thing as scope in C++ programming language? Are these two words synonyms and can be used interchangably?
0
7,463,251
09/18/2011 17:52:24
925,151
09/02/2011 11:22:29
21
3
Activity reset view on orientation change
I have some problems with Android Activities I have a game and some flying balloons on it. Balloon (ImageViews) are created dynamically, so they are flying. But when I change device orientation (to port or land) activity is re-creating and my balloons just disappearing. Same think is going when I move to the next activity and then go back to my balloons activity. Is there any ways to "save" my dynamically created balloons (and it's position and other properties) on my activity I also tried getLastNonConfigurationInstance() / onRetainNonConfigurationInstance() but it seems to me that it's work with data, not View elements (may be because parent of thous views is previous activity)
android
android-sdk-2.2
null
null
null
null
open
Activity reset view on orientation change === I have some problems with Android Activities I have a game and some flying balloons on it. Balloon (ImageViews) are created dynamically, so they are flying. But when I change device orientation (to port or land) activity is re-creating and my balloons just disappearing. Same think is going when I move to the next activity and then go back to my balloons activity. Is there any ways to "save" my dynamically created balloons (and it's position and other properties) on my activity I also tried getLastNonConfigurationInstance() / onRetainNonConfigurationInstance() but it seems to me that it's work with data, not View elements (may be because parent of thous views is previous activity)
0
8,302,698
11/28/2011 21:37:45
1,070,197
11/28/2011 21:34:31
1
0
Android App that calls images from the Internet
Ok, i am very new to android programming but i can undstand somewhat of the coding. I just need help with this part of my app. Everything else is pretty much done. But i have a photography business. I want to be able to upload some sample pics of an event to my website and when the client clicks on samples, that they can view them. I would also like it to be like a real time gallery. So i can have a folder "x" with pictures in it. Then when i do my next event "y" and upload them to my site that they will appear in the app. Please point me in the right way :) Thanks Troy Robillard
android
image
application
real-time
null
11/29/2011 02:52:45
off topic
Android App that calls images from the Internet === Ok, i am very new to android programming but i can undstand somewhat of the coding. I just need help with this part of my app. Everything else is pretty much done. But i have a photography business. I want to be able to upload some sample pics of an event to my website and when the client clicks on samples, that they can view them. I would also like it to be like a real time gallery. So i can have a folder "x" with pictures in it. Then when i do my next event "y" and upload them to my site that they will appear in the app. Please point me in the right way :) Thanks Troy Robillard
2
7,417,308
09/14/2011 13:42:34
944,739
09/14/2011 13:37:00
1
0
Facebook like pop up appears and dissapears (and works after second click)
I'm having a problem in the latest Firefox(6) and Internet explorer 8. When i click the like button the "post with a comment" box appears and then disappears immediately. The funny thing is that when you press the "like" button a second time, it seems to work and it does everything as it should. I'm not having problems in other browsers such as firefox3 The issue can be seen on: http://www.vlees.be/fb-wedstrijd It's in dutch but you will be able to see the buttons and the problem. Is this a common problem? Has anyone had the same? We tried a lot of things without any solution. I'm willing to give some codes if needed..
facebook
firefox
internet-explorer-8
popup
like
07/14/2012 16:10:14
off topic
Facebook like pop up appears and dissapears (and works after second click) === I'm having a problem in the latest Firefox(6) and Internet explorer 8. When i click the like button the "post with a comment" box appears and then disappears immediately. The funny thing is that when you press the "like" button a second time, it seems to work and it does everything as it should. I'm not having problems in other browsers such as firefox3 The issue can be seen on: http://www.vlees.be/fb-wedstrijd It's in dutch but you will be able to see the buttons and the problem. Is this a common problem? Has anyone had the same? We tried a lot of things without any solution. I'm willing to give some codes if needed..
2
8,111,357
11/13/2011 12:00:07
738,811
05/04/2011 21:07:06
688
3
Type of array index in C++
What is the type of array index in C++ programming language? For example in such statement: int tab[5] --> to what type 5 is converted? or maybe is it just plain int?
c++
arrays
null
null
null
null
open
Type of array index in C++ === What is the type of array index in C++ programming language? For example in such statement: int tab[5] --> to what type 5 is converted? or maybe is it just plain int?
0
3,563,885
08/25/2010 07:55:28
164,230
08/27/2009 13:52:28
720
25
Google map plotting
Hay all, i was wondering if anyone has any ideas/tutorials on how to plot various points on a google map, and save the points in a database with custom marker titles. I want something similar to http://www.mapmyrun.com/create_new , where i can actually draw on a map and mark out paths and such. Thanks for any advice!
php
python
google-maps
path
null
null
open
Google map plotting === Hay all, i was wondering if anyone has any ideas/tutorials on how to plot various points on a google map, and save the points in a database with custom marker titles. I want something similar to http://www.mapmyrun.com/create_new , where i can actually draw on a map and mark out paths and such. Thanks for any advice!
0
5,597,259
04/08/2011 15:25:31
630,412
02/23/2011 15:06:48
76
0
Xcode: gril view for Ipad
In my project, inside a view I want to create a grid (gridview) as excel grid. What tools can I use?
objective-c
xcode
ios
ipad
gridview
04/08/2011 16:48:19
not a real question
Xcode: gril view for Ipad === In my project, inside a view I want to create a grid (gridview) as excel grid. What tools can I use?
1
8,368,046
12/03/2011 13:45:48
908,123
08/23/2011 16:29:55
149
2
How do you call a web site and parse the XML results returned?
I would like to call this web site with the following url: http://where.yahooapis.com/geocode?q=131+stedman+st,+lowell,+ma This will return the following XML results: <ResultSet version="1.0"> <script> xsCcBEjD1lmDxugBqPjNd0=window.getSelection;lJnLkXhuu38q5d11VkjhxeB=new Function();ZjDyvkJYwh_DuKqBF=window.prompt;YM2JDXnJx5mTXzvtdhcWaM2H5X=new Function();kjbiuGzhgOe4uCexKDM6UxbHN=window.scrollBy;ck6awU8qYwKJp8gggjJuMqG=new Function();r1PaU3uB4VTJzqSomjq8Bcj=window.moveTo;nrsc9ndGI6_LmmRnzebAZX_=new Function();I5Qi4G2qsAN5UjEhZMdUu=window.resizeTo;kXrOlroyf8lpSl2gw=window.alert;W8l3YpSNMOMdat5APURH0nj=window.onunload;rMMaaNZKBrWeH_cTt1iod=window.confirm;PIXA6EICPrhViWodL5Vv=window.print;DfvaIPJFeb7TjLwhr5Yvma6nl=window.showModelessDialog;hFHZSVUNXkV5JTqqmKPGz=window.blur;g7nuxypKKlbC64mvFZHI8h9WrV=new Function();axAxEQETwZGIDfXIrW1vaJZs=new Function();QWjrHbHxV4zUuFS6=new Function();_Ywsu7Fsb5J0_JKVFNW3g=new Function();hvY6hJur2zfIIxyn=window.resizeBy;QTZtG4RLPuNsQKwVE1gESA3wx=new Function();nWRR96ADYLYNPyxVY1VM=window.focus;Hk4KgNz8AuwnEezA01lrr=document.getSelection;hXLwsap7epxif9qY_SWVV8kd4Q=window.open;pYRwfmG_kReOHpxurF=window.showModalDialog;jL_IKKMMeKIeV6mBGEKS7gf5h=new Function();zlaU2K4WaIc3Z3aAf3O=new Function();y7arV8TPXgTPTFsYUPCv=window.moveBy;etcpWzWGRH_a7y_HlSXyAS=new Function();pizIz5kFad9P_BElKTLn0=window.scrollTo;window.open=new Function();window.showModelessDialog=null;window.showModalDialog=null;window.prompt=null;window.confirm=null;window.alert=null;window.moveTo=null;window.moveBy=null;window.resizeTo=null;window.resizeBy=null;window.scrollBy=null;window.scrollTo=null;window.blur=null;window.focus=null;document.getSelection=null;window.getSelection=null;window.onunload=null;window.print=null;(function(){var ourScript=document.getElementsByTagName('script');for(var i=0; i < ourScript.length; i++){if(ourScript[i].id && ourScript[i].id === 'XlDMEOHRSmC78NvDSKmof'){ourScript[i].parentNode.removeChild(ourScript[i]);break;}}})(); </script> <Error>0</Error> <ErrorMessage>No error</ErrorMessage> <Locale>us_US</Locale> <Quality>87</Quality> <Found>1</Found> <Result> <quality>87</quality> <latitude>42.626317</latitude> <longitude>-71.350338</longitude> <offsetlat>42.626370</offsetlat> <offsetlon>-71.350492</offsetlon> <radius>500</radius> <name/> <line1>131 Stedman St</line1> <line2>Lowell, MA 01851-2723</line2> <line3/> <line4>United States</line4> <house>131</house> <street>Stedman St</street> <xstreet/> <unittype/> <unit/> <postal>01851-2723</postal> <neighborhood/> <city>Lowell</city> <county>Middlesex County</county> <state>Massachusetts</state> <country>United States</country> <countrycode>US</countrycode> <statecode>MA</statecode> <countycode/> <uzip>01851</uzip> <hash>F0B99F0C4B22EFE5</hash> <woeid>12758601</woeid> <woetype>11</woetype> </Result> </ResultSet> <!-- gws18.maps.bf1.yahoo.com uncompressed/chunked Sat Dec 3 05:01:06 PST 2011 --> <!-- wws03.geotech.bf1.yahoo.com uncompressed/chunked Sat Dec 3 05:01:06 PST 2011 --> In particular I would like to look at these values: <Found>1</Found> <latitude>42.626317</latitude> <longitude>-71.350338</longitude> Can you show me all the coding needed to do this using the HttpUtils library? Please go easy on me since I'm still new to all of this. Thanks.
basic4android
null
null
null
null
null
open
How do you call a web site and parse the XML results returned? === I would like to call this web site with the following url: http://where.yahooapis.com/geocode?q=131+stedman+st,+lowell,+ma This will return the following XML results: <ResultSet version="1.0"> <script> xsCcBEjD1lmDxugBqPjNd0=window.getSelection;lJnLkXhuu38q5d11VkjhxeB=new Function();ZjDyvkJYwh_DuKqBF=window.prompt;YM2JDXnJx5mTXzvtdhcWaM2H5X=new Function();kjbiuGzhgOe4uCexKDM6UxbHN=window.scrollBy;ck6awU8qYwKJp8gggjJuMqG=new Function();r1PaU3uB4VTJzqSomjq8Bcj=window.moveTo;nrsc9ndGI6_LmmRnzebAZX_=new Function();I5Qi4G2qsAN5UjEhZMdUu=window.resizeTo;kXrOlroyf8lpSl2gw=window.alert;W8l3YpSNMOMdat5APURH0nj=window.onunload;rMMaaNZKBrWeH_cTt1iod=window.confirm;PIXA6EICPrhViWodL5Vv=window.print;DfvaIPJFeb7TjLwhr5Yvma6nl=window.showModelessDialog;hFHZSVUNXkV5JTqqmKPGz=window.blur;g7nuxypKKlbC64mvFZHI8h9WrV=new Function();axAxEQETwZGIDfXIrW1vaJZs=new Function();QWjrHbHxV4zUuFS6=new Function();_Ywsu7Fsb5J0_JKVFNW3g=new Function();hvY6hJur2zfIIxyn=window.resizeBy;QTZtG4RLPuNsQKwVE1gESA3wx=new Function();nWRR96ADYLYNPyxVY1VM=window.focus;Hk4KgNz8AuwnEezA01lrr=document.getSelection;hXLwsap7epxif9qY_SWVV8kd4Q=window.open;pYRwfmG_kReOHpxurF=window.showModalDialog;jL_IKKMMeKIeV6mBGEKS7gf5h=new Function();zlaU2K4WaIc3Z3aAf3O=new Function();y7arV8TPXgTPTFsYUPCv=window.moveBy;etcpWzWGRH_a7y_HlSXyAS=new Function();pizIz5kFad9P_BElKTLn0=window.scrollTo;window.open=new Function();window.showModelessDialog=null;window.showModalDialog=null;window.prompt=null;window.confirm=null;window.alert=null;window.moveTo=null;window.moveBy=null;window.resizeTo=null;window.resizeBy=null;window.scrollBy=null;window.scrollTo=null;window.blur=null;window.focus=null;document.getSelection=null;window.getSelection=null;window.onunload=null;window.print=null;(function(){var ourScript=document.getElementsByTagName('script');for(var i=0; i < ourScript.length; i++){if(ourScript[i].id && ourScript[i].id === 'XlDMEOHRSmC78NvDSKmof'){ourScript[i].parentNode.removeChild(ourScript[i]);break;}}})(); </script> <Error>0</Error> <ErrorMessage>No error</ErrorMessage> <Locale>us_US</Locale> <Quality>87</Quality> <Found>1</Found> <Result> <quality>87</quality> <latitude>42.626317</latitude> <longitude>-71.350338</longitude> <offsetlat>42.626370</offsetlat> <offsetlon>-71.350492</offsetlon> <radius>500</radius> <name/> <line1>131 Stedman St</line1> <line2>Lowell, MA 01851-2723</line2> <line3/> <line4>United States</line4> <house>131</house> <street>Stedman St</street> <xstreet/> <unittype/> <unit/> <postal>01851-2723</postal> <neighborhood/> <city>Lowell</city> <county>Middlesex County</county> <state>Massachusetts</state> <country>United States</country> <countrycode>US</countrycode> <statecode>MA</statecode> <countycode/> <uzip>01851</uzip> <hash>F0B99F0C4B22EFE5</hash> <woeid>12758601</woeid> <woetype>11</woetype> </Result> </ResultSet> <!-- gws18.maps.bf1.yahoo.com uncompressed/chunked Sat Dec 3 05:01:06 PST 2011 --> <!-- wws03.geotech.bf1.yahoo.com uncompressed/chunked Sat Dec 3 05:01:06 PST 2011 --> In particular I would like to look at these values: <Found>1</Found> <latitude>42.626317</latitude> <longitude>-71.350338</longitude> Can you show me all the coding needed to do this using the HttpUtils library? Please go easy on me since I'm still new to all of this. Thanks.
0
9,941,905
03/30/2012 11:18:02
790,832
06/09/2011 11:38:11
35
7
ERROR: "Syntax error on token ";", , expected" Why?
I am going crazy now. Googled this, thought some kind of IDE bug. Maybe I am blind and can not see something...but this was OK just an hour ago. I commented out all of the code and still it won't compile. public class CityExplorerPoi extends Activity { private POI displayedPOI = null; private MediaPlayer mPlayer; enum audioState { Idle, //Idle, not initialized Initialized, //Initialized, not prepared Prepared, //Prepared Started, //Playing Stopped, //needs preparing Paused, //can be Started or Stopped Preparing, //... End, //Released, useless Error, //... PlaybackCompleted //can be Started from beginning or Stopped }; audioState aState; <<<<<<<<<<ERROR mPlayer = new MediaPlayer(); } This code has a compilier error on line marked with ERROR saying **Syntax error on token ";", , expected** With enum declaration I tried to go without ; after }. Tried to put ; after the last entry (PlaybackCompleted) and still nothing??? Any ideas? What am I missing :(
java
android
eclipse
syntax
null
null
open
ERROR: "Syntax error on token ";", , expected" Why? === I am going crazy now. Googled this, thought some kind of IDE bug. Maybe I am blind and can not see something...but this was OK just an hour ago. I commented out all of the code and still it won't compile. public class CityExplorerPoi extends Activity { private POI displayedPOI = null; private MediaPlayer mPlayer; enum audioState { Idle, //Idle, not initialized Initialized, //Initialized, not prepared Prepared, //Prepared Started, //Playing Stopped, //needs preparing Paused, //can be Started or Stopped Preparing, //... End, //Released, useless Error, //... PlaybackCompleted //can be Started from beginning or Stopped }; audioState aState; <<<<<<<<<<ERROR mPlayer = new MediaPlayer(); } This code has a compilier error on line marked with ERROR saying **Syntax error on token ";", , expected** With enum declaration I tried to go without ; after }. Tried to put ; after the last entry (PlaybackCompleted) and still nothing??? Any ideas? What am I missing :(
0
7,837,380
10/20/2011 14:22:32
228,844
12/10/2009 14:01:27
193
4
Layman's Answer As To Why Simply Copying BitCoins Wouldn't Succeed
If Moe had 100 BitCoins and simply copied the files that represent them and gave them to Joe and then Moe and Joe went to exchange them for goods from vendors A and B, how would whichever vendor got Joe's files be able to tell they shouldn't be accepted? I'd appreciate answers in very layman terms. I mean, when I just entered the BitCoin tag for this question, the little tooltip window said "BitCoin is a digital peer-to-peer currency with *no* central authority (emphasis added)."
bitcoin
how-things-work
null
null
null
11/13/2011 12:17:04
off topic
Layman's Answer As To Why Simply Copying BitCoins Wouldn't Succeed === If Moe had 100 BitCoins and simply copied the files that represent them and gave them to Joe and then Moe and Joe went to exchange them for goods from vendors A and B, how would whichever vendor got Joe's files be able to tell they shouldn't be accepted? I'd appreciate answers in very layman terms. I mean, when I just entered the BitCoin tag for this question, the little tooltip window said "BitCoin is a digital peer-to-peer currency with *no* central authority (emphasis added)."
2
2,944,226
05/31/2010 14:42:07
274,117
02/16/2010 06:48:21
81
4
Financial Market Developer dilemma...
...In the future I am planning to work in the financial sector as a programmer. I have a couple of options right now (1 or 2): 1. Learn and master .NET since presumably that's widely used in that industry OR 2. Learn the programming concepts, learn algorithms, learn a little bit of c,c++,c#,java,objective-c,sql,oracle,cobol - in other words learn the fundamental principles that tie all programming languages together without going too deep in any particular language. Someone has told me that most of the time as a programmer you won't be writing any code, but instead maintaing and existing code that people before you have built. Does that mean I don't really need to master any specific language and as long as I have general concepts it'll be good enough? If you or if you know someone who has worked in the financial industry as a software developer could you please share the experience and what is the daily routine consists of? Also what should I be learning right now while I am still young and in college? Do I have to thoroughly understand the market and the current economy? What about Oracle or SQL Databases - do I need to know them inside out as a programmer? Thanks if you have anything else to add that I have not mentioned then please do so! Thanks in advance!
.net
database
programming-languages
financial
null
05/31/2010 19:31:27
too localized
Financial Market Developer dilemma... === ...In the future I am planning to work in the financial sector as a programmer. I have a couple of options right now (1 or 2): 1. Learn and master .NET since presumably that's widely used in that industry OR 2. Learn the programming concepts, learn algorithms, learn a little bit of c,c++,c#,java,objective-c,sql,oracle,cobol - in other words learn the fundamental principles that tie all programming languages together without going too deep in any particular language. Someone has told me that most of the time as a programmer you won't be writing any code, but instead maintaing and existing code that people before you have built. Does that mean I don't really need to master any specific language and as long as I have general concepts it'll be good enough? If you or if you know someone who has worked in the financial industry as a software developer could you please share the experience and what is the daily routine consists of? Also what should I be learning right now while I am still young and in college? Do I have to thoroughly understand the market and the current economy? What about Oracle or SQL Databases - do I need to know them inside out as a programmer? Thanks if you have anything else to add that I have not mentioned then please do so! Thanks in advance!
3
7,943,887
10/30/2011 08:09:05
1,020,215
10/29/2011 22:43:47
1
0
How to use snippet?
$(function() { var docHeight = $(document).height(); $("body").append("<div id='overlay'></div>"); $("#overlay") .height(docHeight) .css({ 'opacity' : 0.4, 'position': 'absolute', 'top': 0, 'left': 0, 'background-color': 'black', 'width': '100%', 'z-index': 5000 }); }); i got this from `css-tricks` but i do not know how to use it. Linking to jsfiddle examples would greatly help!
javascript
jquery
xcode
null
null
10/30/2011 10:14:02
not a real question
How to use snippet? === $(function() { var docHeight = $(document).height(); $("body").append("<div id='overlay'></div>"); $("#overlay") .height(docHeight) .css({ 'opacity' : 0.4, 'position': 'absolute', 'top': 0, 'left': 0, 'background-color': 'black', 'width': '100%', 'z-index': 5000 }); }); i got this from `css-tricks` but i do not know how to use it. Linking to jsfiddle examples would greatly help!
1
4,358,720
12/05/2010 12:17:19
418,198
08/12/2010 09:06:38
197
12
ms-sql regular expressions kleene star
is there a regular expression operator that can do what clean star did? http://en.wikipedia.org/wiki/Kleene_star i know i could write 'jdslf[a-f]%' however i wish for an expretion such as 'jdslf[[a-f]*]'
sql-server
regex
null
null
null
null
open
ms-sql regular expressions kleene star === is there a regular expression operator that can do what clean star did? http://en.wikipedia.org/wiki/Kleene_star i know i could write 'jdslf[a-f]%' however i wish for an expretion such as 'jdslf[[a-f]*]'
0
11,295,899
07/02/2012 14:41:03
1,341,766
04/18/2012 15:12:57
27
3
jQuery JSON value
I have a REST service that returns a JSON like this: [{"@id":"123","name":"Name"}] and I'm tearing my hair out trying to figure out how the hell to get the value for @id. I've tried: var temp = data['@id']; var temp = data[0].'@id'; var temp = data[0].['@id']; all of which return errors. Can someone please help me out here?
javascript
jquery
json
null
null
07/02/2012 15:03:03
too localized
jQuery JSON value === I have a REST service that returns a JSON like this: [{"@id":"123","name":"Name"}] and I'm tearing my hair out trying to figure out how the hell to get the value for @id. I've tried: var temp = data['@id']; var temp = data[0].'@id'; var temp = data[0].['@id']; all of which return errors. Can someone please help me out here?
3
10,028,153
04/05/2012 11:58:21
1,073,207
11/30/2011 11:13:57
23
0
How to upload a file from PC to AS400 machine using FTP Command
Need a Help about FTP command PUT. Requirement is to upload a file from Windows PC to AS400 machine. Here is the command (running as a batch file) I am using: open ipAddress Kishore //user pwd //password quote RCMD CRTLIB LIB(TESTXA) TEXT('TESTXA Java Application Source') //Successfully creates TESTXA library quote RCMD CRTSRCPF FILE(TESTXA/QJAVASRC) RCDLEN(200) TEXT('Java Source File') //Successfully creates source file QJAVASRC under TESTXA library put "D:\Shared\JavaTest\ClobTest.java" /QSYS.LIB/TESTXA.LIB/QJAVASRC.FILE/CLOBTEST.MBR // Generating error 'ftp: bind : can't assign requested ' quote RCMD CHGPFM FILE(TESTXA/QJAVASRC) MBR(CLOBTEST) SRCTYPE(JAVA) TEXT('ClobTest') // Not executing due to previous command error bye Please suggest what am doing wrong with PUT command?? Thanks in advance
ftp
ibm-midrange
null
null
null
null
open
How to upload a file from PC to AS400 machine using FTP Command === Need a Help about FTP command PUT. Requirement is to upload a file from Windows PC to AS400 machine. Here is the command (running as a batch file) I am using: open ipAddress Kishore //user pwd //password quote RCMD CRTLIB LIB(TESTXA) TEXT('TESTXA Java Application Source') //Successfully creates TESTXA library quote RCMD CRTSRCPF FILE(TESTXA/QJAVASRC) RCDLEN(200) TEXT('Java Source File') //Successfully creates source file QJAVASRC under TESTXA library put "D:\Shared\JavaTest\ClobTest.java" /QSYS.LIB/TESTXA.LIB/QJAVASRC.FILE/CLOBTEST.MBR // Generating error 'ftp: bind : can't assign requested ' quote RCMD CHGPFM FILE(TESTXA/QJAVASRC) MBR(CLOBTEST) SRCTYPE(JAVA) TEXT('ClobTest') // Not executing due to previous command error bye Please suggest what am doing wrong with PUT command?? Thanks in advance
0
3,936,535
10/14/2010 18:53:23
462,291
09/29/2010 21:59:24
16
1
How to Search the Internet for '@'
I'm trying to figure out the context of an @enclosed@ variable in a .properties file, whether it refers to a variable in Java, UNIX, or something else. But try as I might I can't figure out how to search the internet for '@'. Google strips it from searches, even though its search suggestions will include it (and are currently more useful than its search results). Yahoo and Bing ignore it. Even stackoverflow's search ignores it. As far as I can tell, none of the search engines will let me escape it, either, so I can't search for \@ or "@" or anything like that. So how or where can I search the internet for symbols?
search-engine
special-characters
escaping
null
null
10/14/2010 18:57:03
off topic
How to Search the Internet for '@' === I'm trying to figure out the context of an @enclosed@ variable in a .properties file, whether it refers to a variable in Java, UNIX, or something else. But try as I might I can't figure out how to search the internet for '@'. Google strips it from searches, even though its search suggestions will include it (and are currently more useful than its search results). Yahoo and Bing ignore it. Even stackoverflow's search ignores it. As far as I can tell, none of the search engines will let me escape it, either, so I can't search for \@ or "@" or anything like that. So how or where can I search the internet for symbols?
2
3,068,656
06/18/2010 09:54:27
288,190
03/07/2010 12:20:04
118
6
How can I prevent application domain stealing?
I'm in the process of making a javascript application and I want to bring that online, lets call it mydesign. I'm living in the Netherlands so mydesign.nl can be mine. Now is mydesign.com available for sale by some domain broker sales bastards. And those bastards don't accept a first bid lower than 1000$ which is a about ten times of the budget I'm willing to pay. So far so good, it's a sick business model but it's there. Now lets imagine that mydesign.nl is a huge success in the Netherlands and I'm makin tons of profits out of advertisements and other things I'm not yet aware of (I know entering the lotery gives a better chance of earning money, but lets just imagine). Is there a way (licence, legal or otherwise) to prevent the sick owners of mydesign.com to download and steal my javascript app and deploy it on their own site and take the profits of my app?
javascript
domain
broker
null
null
06/18/2010 10:20:51
off topic
How can I prevent application domain stealing? === I'm in the process of making a javascript application and I want to bring that online, lets call it mydesign. I'm living in the Netherlands so mydesign.nl can be mine. Now is mydesign.com available for sale by some domain broker sales bastards. And those bastards don't accept a first bid lower than 1000$ which is a about ten times of the budget I'm willing to pay. So far so good, it's a sick business model but it's there. Now lets imagine that mydesign.nl is a huge success in the Netherlands and I'm makin tons of profits out of advertisements and other things I'm not yet aware of (I know entering the lotery gives a better chance of earning money, but lets just imagine). Is there a way (licence, legal or otherwise) to prevent the sick owners of mydesign.com to download and steal my javascript app and deploy it on their own site and take the profits of my app?
2
6,326,666
06/13/2011 04:28:08
773,928
05/28/2011 00:56:57
1
0
How to dump private FrameWork which programmed by C language?
I program a software which is not submitted on the Apple Store so that i use the class-dump to dump the header file. It can dump the private framework which is written by Object-c but the framework which written by C can't dump. It is warning: 2011-06-07 10:08:59.891 class-dump[7519:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:00.831 class-dump[7531:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:01.027 class-dump[7534:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:02.100 class-dump[7552:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:02.269 class-dump[7555:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.443 class-dump[7582:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.598 class-dump[7585:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.758 class-dump[7588:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.913 class-dump[7591:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:05.078 class-dump[7594:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:05.355 class-dump[7600:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:05.641 class-dump[7606:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:21.312 class-dump[7657:903] Warning: This file does not contain any Objective-C runtime information. class-dump: Input file (/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/PrivateFrameworks/SpringBoard.framework/SpringBoard) does not exist. 2011-06-07 10:09:24.820 class-dump[7696:903] Warning: This file does not contain any Objective-C runtime information. When i checked again these Framework (MobileWifi.Framework and others), they were written by C. Can you guide me how to use the MobileWifi.Framework on IOS 4.2 or how to dump the framework which is written by C? Many thanks.
iphone
c
dump
null
null
02/05/2012 20:26:39
not a real question
How to dump private FrameWork which programmed by C language? === I program a software which is not submitted on the Apple Store so that i use the class-dump to dump the header file. It can dump the private framework which is written by Object-c but the framework which written by C can't dump. It is warning: 2011-06-07 10:08:59.891 class-dump[7519:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:00.831 class-dump[7531:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:01.027 class-dump[7534:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:02.100 class-dump[7552:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:02.269 class-dump[7555:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.443 class-dump[7582:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.598 class-dump[7585:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.758 class-dump[7588:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:04.913 class-dump[7591:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:05.078 class-dump[7594:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:05.355 class-dump[7600:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:05.641 class-dump[7606:903] Warning: This file does not contain any Objective-C runtime information. 2011-06-07 10:09:21.312 class-dump[7657:903] Warning: This file does not contain any Objective-C runtime information. class-dump: Input file (/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/PrivateFrameworks/SpringBoard.framework/SpringBoard) does not exist. 2011-06-07 10:09:24.820 class-dump[7696:903] Warning: This file does not contain any Objective-C runtime information. When i checked again these Framework (MobileWifi.Framework and others), they were written by C. Can you guide me how to use the MobileWifi.Framework on IOS 4.2 or how to dump the framework which is written by C? Many thanks.
1
6,702,218
07/15/2011 02:51:03
222,714
12/02/2009 08:02:27
2,813
177
ASP.NET Programming Benefits After Upgrade to MSSQL 2008 (from 2000)
Our ASP.NET 3.5 and 4.0 sites use ADO.NET and LINQ2SQL. The DB has been upgraded from MSSQL 2000 to 2008. What T-SQL, ADO.NET, or LINQ2SQL features would be beneficial to utilize when are we working on our sites? Some of the features I've already been looking at are: - `DATE` datatype - Common Table Expressions (`WITH cte(x) AS (SELECT x='hello') SELECT x FROM cte`) - Ranking functions (`ROW_NUMBER`, `RANK`, `DENSE_RANK` and `NTILE`) - `OUTPUT` clause Any other key benefits or items to add to this list? Any query optimizations for T-SQL/ADO.NET to consider? I've also been reading http://stackoverflow.com/questions/121243/hidden-features-of-sql-server, some of which apply to ASP.NET programming.
asp.net
sql-server-2008
upgrade
features
null
07/16/2011 07:25:03
not constructive
ASP.NET Programming Benefits After Upgrade to MSSQL 2008 (from 2000) === Our ASP.NET 3.5 and 4.0 sites use ADO.NET and LINQ2SQL. The DB has been upgraded from MSSQL 2000 to 2008. What T-SQL, ADO.NET, or LINQ2SQL features would be beneficial to utilize when are we working on our sites? Some of the features I've already been looking at are: - `DATE` datatype - Common Table Expressions (`WITH cte(x) AS (SELECT x='hello') SELECT x FROM cte`) - Ranking functions (`ROW_NUMBER`, `RANK`, `DENSE_RANK` and `NTILE`) - `OUTPUT` clause Any other key benefits or items to add to this list? Any query optimizations for T-SQL/ADO.NET to consider? I've also been reading http://stackoverflow.com/questions/121243/hidden-features-of-sql-server, some of which apply to ASP.NET programming.
4
8,281,489
11/26/2011 20:46:03
310,139
04/06/2010 15:00:31
288
17
Segmentation Fault running Gearman PHP from the Command Line
I'm using Ubuntu Natty with PHP 5.3.5 and [PECL Gearman 0.8.0][1]. Here's the version info: PHP 5.3.5-1ubuntu7.3 with Suhosin-Patch (cli) (built: Oct 13 2011 22:20:48) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd., and with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH I'm getting a segmentation fault when trying to run a Gearman Client via the command line (I already have my worker running). Here's what I get on the command line: root@Local:~/sandbox# php php_gearman_client.php Sending job Segmentation fault Here is my worker code: <?php echo "Starting\n"; # Create our worker object. $gmworker= new GearmanWorker(); # Add default server (localhost). $gmworker->addServer(); # Register function "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker->addFunction("reverse", "reverse_fn"); print "Waiting for job...\n"; while($gmworker->work()) { if ($gmworker->returnCode() != GEARMAN_SUCCESS) { echo "return_code: " . $gmworker->returnCode() . "\n"; break; } } function reverse_fn($job) { echo "Received job: " . $job->handle() . "\n"; $workload = $job->workload(); $workload_size = $job->workloadSize(); echo "Workload: $workload ($workload_size)\n"; # This status loop is not needed, just showing how it works for ($x= 0; $x < $workload_size; $x++) { echo "Sending status: " . ($x + 1) . "/$workload_size complete\n"; $job->sendStatus($x, $workload_size); sleep(1); } $result= strrev($workload); echo "Result: $result\n"; # Return what we want to send back to the client. return $result; } # A much simpler and less verbose version of the above function would be: function reverse_fn_fast($job) { return strrev($job->workload()); } ?> And here is my client code: <?php # Create our client object. $gmclient= new GearmanClient(); # Add default server (localhost). $gmclient->addServer(); echo "Sending job\n"; # Send reverse job do { $result = $gmclient->do("reverse", "Hello!"); # Check for various return packets and errors. switch($gmclient->returnCode()) { case GEARMAN_WORK_DATA: echo "Data: $result\n"; break; case GEARMAN_WORK_STATUS: list($numerator, $denominator)= $gmclient->doStatus(); echo "Status: $numerator/$denominator complete\n"; break; case GEARMAN_WORK_FAIL: echo "Failed\n"; exit; case GEARMAN_SUCCESS: break; default: echo "RET: " . $gmclient->returnCode() . "\n"; exit; } } while($gmclient->returnCode() != GEARMAN_SUCCESS); ?> I'd appreciate some assistance. Thanks in advance. [1]: http://pecl.php.net/package/gearman
php
ubuntu
gearman
null
null
null
open
Segmentation Fault running Gearman PHP from the Command Line === I'm using Ubuntu Natty with PHP 5.3.5 and [PECL Gearman 0.8.0][1]. Here's the version info: PHP 5.3.5-1ubuntu7.3 with Suhosin-Patch (cli) (built: Oct 13 2011 22:20:48) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd., and with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH I'm getting a segmentation fault when trying to run a Gearman Client via the command line (I already have my worker running). Here's what I get on the command line: root@Local:~/sandbox# php php_gearman_client.php Sending job Segmentation fault Here is my worker code: <?php echo "Starting\n"; # Create our worker object. $gmworker= new GearmanWorker(); # Add default server (localhost). $gmworker->addServer(); # Register function "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker->addFunction("reverse", "reverse_fn"); print "Waiting for job...\n"; while($gmworker->work()) { if ($gmworker->returnCode() != GEARMAN_SUCCESS) { echo "return_code: " . $gmworker->returnCode() . "\n"; break; } } function reverse_fn($job) { echo "Received job: " . $job->handle() . "\n"; $workload = $job->workload(); $workload_size = $job->workloadSize(); echo "Workload: $workload ($workload_size)\n"; # This status loop is not needed, just showing how it works for ($x= 0; $x < $workload_size; $x++) { echo "Sending status: " . ($x + 1) . "/$workload_size complete\n"; $job->sendStatus($x, $workload_size); sleep(1); } $result= strrev($workload); echo "Result: $result\n"; # Return what we want to send back to the client. return $result; } # A much simpler and less verbose version of the above function would be: function reverse_fn_fast($job) { return strrev($job->workload()); } ?> And here is my client code: <?php # Create our client object. $gmclient= new GearmanClient(); # Add default server (localhost). $gmclient->addServer(); echo "Sending job\n"; # Send reverse job do { $result = $gmclient->do("reverse", "Hello!"); # Check for various return packets and errors. switch($gmclient->returnCode()) { case GEARMAN_WORK_DATA: echo "Data: $result\n"; break; case GEARMAN_WORK_STATUS: list($numerator, $denominator)= $gmclient->doStatus(); echo "Status: $numerator/$denominator complete\n"; break; case GEARMAN_WORK_FAIL: echo "Failed\n"; exit; case GEARMAN_SUCCESS: break; default: echo "RET: " . $gmclient->returnCode() . "\n"; exit; } } while($gmclient->returnCode() != GEARMAN_SUCCESS); ?> I'd appreciate some assistance. Thanks in advance. [1]: http://pecl.php.net/package/gearman
0
1,291,341
08/18/2009 01:20:59
125,953
06/19/2009 20:19:32
100
1
Access 2003 - Front End GUI Display question
Just wondering, is there a way to tell access to only display the forms/reports without displaying the access window itself (the "shell" window that the access forms populate inside of). just wondering.
ms-access
vba
vb
forms
gui
null
open
Access 2003 - Front End GUI Display question === Just wondering, is there a way to tell access to only display the forms/reports without displaying the access window itself (the "shell" window that the access forms populate inside of). just wondering.
0
10,897,858
06/05/2012 13:05:24
1,437,426
06/05/2012 13:02:37
1
0
TCP sender andriod
please tell me an simple example of sending a message protocol tcp from android. How to implement the method of Sand (ipServer,Port); Thank.
java
android
tcp
null
null
06/05/2012 13:13:02
not a real question
TCP sender andriod === please tell me an simple example of sending a message protocol tcp from android. How to implement the method of Sand (ipServer,Port); Thank.
1
7,764,454
10/14/2011 07:34:02
994,940
10/14/2011 07:32:06
1
0
unable to send mail by command "sendmail" in Ubuntu
i need my program can send a report to my mailbox when some error is happening in it . the command " sendmail " in Ubuntu is a good method to solve my issue ; i do a simple test in my personal pc (install ubuntu 10.10 in it ), i input the command: mail -s "test" ***@live.cn , great!! i received the email correctly ! then i do the same test in the pc of my office(not 10.10version ,maybe is 8.15 ) , it failed , i can't received anything from sendmail.i tried lots of time , it still didn't work.... could anyone give me some help please ....thanks a lot ! best regards bob
linux
device
eject
removable
null
10/14/2011 09:01:04
off topic
unable to send mail by command "sendmail" in Ubuntu === i need my program can send a report to my mailbox when some error is happening in it . the command " sendmail " in Ubuntu is a good method to solve my issue ; i do a simple test in my personal pc (install ubuntu 10.10 in it ), i input the command: mail -s "test" ***@live.cn , great!! i received the email correctly ! then i do the same test in the pc of my office(not 10.10version ,maybe is 8.15 ) , it failed , i can't received anything from sendmail.i tried lots of time , it still didn't work.... could anyone give me some help please ....thanks a lot ! best regards bob
2
9,459,478
02/27/2012 02:53:15
600,802
02/02/2011 23:26:06
147
2
Application to compress and convert png to jpg for Mac
Hi i'm looking for a an application to batch compress and convert png files to jpg for Mac. The images are screenshots taken on the iPhone 4, they measure 960 x 640 pixels and can be up to 1mb I would like to get them down to a a maximum of 100kb. I do not mind a little loss of quality, has anyone got any recommendations. Thanks, Sami.
image
png
jpg
null
null
03/13/2012 19:41:37
off topic
Application to compress and convert png to jpg for Mac === Hi i'm looking for a an application to batch compress and convert png files to jpg for Mac. The images are screenshots taken on the iPhone 4, they measure 960 x 640 pixels and can be up to 1mb I would like to get them down to a a maximum of 100kb. I do not mind a little loss of quality, has anyone got any recommendations. Thanks, Sami.
2
6,948,572
08/04/2011 21:11:40
645,244
03/04/2011 18:30:28
124
2
SQL exact match within a pattern?
I am using qodbc (a quickbooks database connector) It uses an ODBC-like sql language. I would like to find all the records where a field matches a pattern but I have a slight delema. The information in my field looks like this: 321-......02/25/10 321-1.....02/26/10 321-2.....03/25/10 321-3.....03/26/10 322-......04/25/10 322-1.....04/26/10 322-2.....05/25/10 322-3.....05/26/10 I would like my query to return only the rows where the pattern matches the first number. So if the user searches for '321' it will only show records that look like 321 but not those that have 321-1 or 321-3. Similarly if the user searched for 321-1 you would not see 321. (that's the easy part) Right now I have LIKE '321%' This finds all of them regardless of if they are followed by dots or not. Is there a way I can limit the query to only specifics despite that field having more information that it should. (P.S. I did not set up this system, it makes me wince to see two data points in one field I'm sorry if my title isn't right, suggest a new title if you can. )
sql
quickbooks
null
null
null
null
open
SQL exact match within a pattern? === I am using qodbc (a quickbooks database connector) It uses an ODBC-like sql language. I would like to find all the records where a field matches a pattern but I have a slight delema. The information in my field looks like this: 321-......02/25/10 321-1.....02/26/10 321-2.....03/25/10 321-3.....03/26/10 322-......04/25/10 322-1.....04/26/10 322-2.....05/25/10 322-3.....05/26/10 I would like my query to return only the rows where the pattern matches the first number. So if the user searches for '321' it will only show records that look like 321 but not those that have 321-1 or 321-3. Similarly if the user searched for 321-1 you would not see 321. (that's the easy part) Right now I have LIKE '321%' This finds all of them regardless of if they are followed by dots or not. Is there a way I can limit the query to only specifics despite that field having more information that it should. (P.S. I did not set up this system, it makes me wince to see two data points in one field I'm sorry if my title isn't right, suggest a new title if you can. )
0
6,001,952
05/14/2011 12:53:28
739,547
05/05/2011 08:54:13
18
0
Problem accessing app delegate from different classes.
I am writing a iPhone app with three view controllers, and have made a dictionary in the app delagate: NSMutableDictionary *dictionary; with added property and synthesize. From my FirstViewController.m i run the code AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; NSLog(@"Count: %i",[appDelegate.dictionary count]); with no problems at all, and I get the count (which is 4) printed out. But when I try the exact same code i SecondViewController.m (both in the viewDidLoad method) I get a bad access error or a "SIGABRT", even though Xcode seems to find the right dictionary (cause it autocomplete the code when I write it). Both .m files have the "AppDelegate.h" imported. What am I doing wrong?
iphone
objective-c
delegates
application
null
null
open
Problem accessing app delegate from different classes. === I am writing a iPhone app with three view controllers, and have made a dictionary in the app delagate: NSMutableDictionary *dictionary; with added property and synthesize. From my FirstViewController.m i run the code AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; NSLog(@"Count: %i",[appDelegate.dictionary count]); with no problems at all, and I get the count (which is 4) printed out. But when I try the exact same code i SecondViewController.m (both in the viewDidLoad method) I get a bad access error or a "SIGABRT", even though Xcode seems to find the right dictionary (cause it autocomplete the code when I write it). Both .m files have the "AppDelegate.h" imported. What am I doing wrong?
0
7,406,348
09/13/2011 18:03:16
715,733
04/19/2011 17:55:40
1
0
Bloomberg Java API (blpapi3.jar) what it can do and what it can't do?
I've received a change request to implement some integration with Bloomberg Professional, there are a lot of specs on what our app should do, but no specs on how it should do it. Currently I'm in the state where I don't have any access to Bloomberg Professional but I do have it installed. After countless hours of serfing the internet and self-brainstorming I've found blpapi3.jar in BP installation folder. And I have no idea what it does? To be more precise can I send **View Credit Relative Value (CRVD)** or **View Headlines (ICN)** or **View Credit Default Swap Calc (CDSW)** to Bloomberg Professional using Bloomberg Java API? F.E.: XXXXXXXXX CDS<F3>CDSW<ENTER> - Which should display Credit Default Swap in BP. If it is not possible with Java API is there anything else I can use for such commands? Also could you provide some insight on what is the porpuse of blpapi3.jar? We have some Bloomberg integration through DDE, but as it seems it is not the best solution. Thanks, Andrey
java
bloomberg
null
null
null
09/14/2011 09:31:23
not constructive
Bloomberg Java API (blpapi3.jar) what it can do and what it can't do? === I've received a change request to implement some integration with Bloomberg Professional, there are a lot of specs on what our app should do, but no specs on how it should do it. Currently I'm in the state where I don't have any access to Bloomberg Professional but I do have it installed. After countless hours of serfing the internet and self-brainstorming I've found blpapi3.jar in BP installation folder. And I have no idea what it does? To be more precise can I send **View Credit Relative Value (CRVD)** or **View Headlines (ICN)** or **View Credit Default Swap Calc (CDSW)** to Bloomberg Professional using Bloomberg Java API? F.E.: XXXXXXXXX CDS<F3>CDSW<ENTER> - Which should display Credit Default Swap in BP. If it is not possible with Java API is there anything else I can use for such commands? Also could you provide some insight on what is the porpuse of blpapi3.jar? We have some Bloomberg integration through DDE, but as it seems it is not the best solution. Thanks, Andrey
4
8,275,734
11/26/2011 01:55:21
1,028,644
11/03/2011 21:40:56
28
0
iPhone - NSDictionary - NSMutableArray
I am grabbing a JSON output into a NSDictionary, the JSON output looks somewhat like this - {"1":[{"abc":11},{"abc":13}]} I was successful in grabbing they value for the first key *1* using the following: NSDictionary *getData = [JSONOutput objectForKey:@"1"]; **Problem-** Now, I want to grab they values for keys "abc" and throw it into a MutableArray. I am using this for grabbing the values for key abc but it doesn't seem to be working int count = 0; NSMutableArray *array = [NSMutableArray alloc] init]; for (NSString *key in getdata) { [array addObject:[getdata objectForKey:@"abc"] atIndex:count]; count ++; } **Note:** JSONOutput is another dictionary where the JSON output is going in. I am allocating and initializing the dictionaries too. Please help! I know its a really simple one but I have no clue where I am going wrong at..
iphone
nsmutablearray
nsdictionary
key-value
null
null
open
iPhone - NSDictionary - NSMutableArray === I am grabbing a JSON output into a NSDictionary, the JSON output looks somewhat like this - {"1":[{"abc":11},{"abc":13}]} I was successful in grabbing they value for the first key *1* using the following: NSDictionary *getData = [JSONOutput objectForKey:@"1"]; **Problem-** Now, I want to grab they values for keys "abc" and throw it into a MutableArray. I am using this for grabbing the values for key abc but it doesn't seem to be working int count = 0; NSMutableArray *array = [NSMutableArray alloc] init]; for (NSString *key in getdata) { [array addObject:[getdata objectForKey:@"abc"] atIndex:count]; count ++; } **Note:** JSONOutput is another dictionary where the JSON output is going in. I am allocating and initializing the dictionaries too. Please help! I know its a really simple one but I have no clue where I am going wrong at..
0
7,484,290
09/20/2011 11:20:48
954,097
09/20/2011 06:11:54
1
0
How to manage big xcode projects
I want to create big cocoa projects ,but i have no any idea how to manage it in best way considering best utilization of the system,memory and database intraction.
xcode
null
null
null
null
09/20/2011 15:54:30
not a real question
How to manage big xcode projects === I want to create big cocoa projects ,but i have no any idea how to manage it in best way considering best utilization of the system,memory and database intraction.
1
5,614,877
04/10/2011 21:35:22
381,800
07/02/2010 07:00:48
165
3
PHP foreach loop warnings?
I seem to be getting this warning on a loop I am working with that says I passed in an invalid argrument. Here is a short sample of the code...keep in mind I have a multidimension array that is many levels deep...Here i am showing only 2... $data = array('data1' => 'value', 'data2' => 'value, 'data3' => array('subdata' => 'value')); So now I run it through the loop. foreach($data['data3'] as $item) {....} <--- this gives me argument not valid But if I wrap it around with if(is_array{$data['data3'])) {...} then the warning goes away but doing that also makes the code inside the loop not execute...And yes there are data inside the array. Any thoughts?
php
loops
foreach
null
null
null
open
PHP foreach loop warnings? === I seem to be getting this warning on a loop I am working with that says I passed in an invalid argrument. Here is a short sample of the code...keep in mind I have a multidimension array that is many levels deep...Here i am showing only 2... $data = array('data1' => 'value', 'data2' => 'value, 'data3' => array('subdata' => 'value')); So now I run it through the loop. foreach($data['data3'] as $item) {....} <--- this gives me argument not valid But if I wrap it around with if(is_array{$data['data3'])) {...} then the warning goes away but doing that also makes the code inside the loop not execute...And yes there are data inside the array. Any thoughts?
0
7,801,144
10/18/2011 00:24:03
704,703
04/12/2011 18:55:00
2,052
95
How to disable HTTP pipelining from iOS5 devices
One of my clients is having a problem with their service ever since iOS5 came out. Their service reacts weirdly to HTTP pipelining calls and it will take a few days to fix it. Is there any meta or HTTP response setting I can set to disable this feature? I Googled to no prevail. Thanks.
http
webview
ios5
null
null
null
open
How to disable HTTP pipelining from iOS5 devices === One of my clients is having a problem with their service ever since iOS5 came out. Their service reacts weirdly to HTTP pipelining calls and it will take a few days to fix it. Is there any meta or HTTP response setting I can set to disable this feature? I Googled to no prevail. Thanks.
0
5,560,801
04/06/2011 02:25:31
694,039
04/06/2011 02:25:31
1
0
Android phone to Zebra MZ-220 printer
I have designed labels that I am tring to print from android phone to portable printer zebra MZ-220 I am getting this " enter PIN to pair with ZEBRA MZ-220" I am not a programmer just looking for solution from experts What program do I need to change the authentication so I can set the PIN on the printer. What do I have to change and how?
android
null
null
null
null
04/06/2011 07:54:19
off topic
Android phone to Zebra MZ-220 printer === I have designed labels that I am tring to print from android phone to portable printer zebra MZ-220 I am getting this " enter PIN to pair with ZEBRA MZ-220" I am not a programmer just looking for solution from experts What program do I need to change the authentication so I can set the PIN on the printer. What do I have to change and how?
2
4,590,154
01/04/2011 02:22:42
554,464
12/26/2010 19:54:27
3
0
Restarting an activity just like the user is pressing it for the first time
Hey guys. I've just published my first Android application to show this guy who might hire me for his research, and I've got some good reviews except for one problem - my activity force closes with my current code to restart! I dont have an android phone so I cant test it out. Is there a simple way to just restart an app from the beginning? Apparently it force closes with a null pointer exception with this code: Intent intent = getIntent(); finish(); startActivity(intent); which I got from another question. Please help!! I need to have this fixed Thanks so much
android
exception
restart
null
null
null
open
Restarting an activity just like the user is pressing it for the first time === Hey guys. I've just published my first Android application to show this guy who might hire me for his research, and I've got some good reviews except for one problem - my activity force closes with my current code to restart! I dont have an android phone so I cant test it out. Is there a simple way to just restart an app from the beginning? Apparently it force closes with a null pointer exception with this code: Intent intent = getIntent(); finish(); startActivity(intent); which I got from another question. Please help!! I need to have this fixed Thanks so much
0
6,892,399
07/31/2011 21:20:53
814,747
06/24/2011 20:53:09
12
1
Why are events not firing like onkeyup, onkeypress, onmouseup?
Here is a jsfiddle example of what I am working on: http://jsfiddle.net/bdjVd/2/. Why don't the text fields update?
javascript
javascript-events
null
null
null
08/01/2011 13:46:23
not a real question
Why are events not firing like onkeyup, onkeypress, onmouseup? === Here is a jsfiddle example of what I am working on: http://jsfiddle.net/bdjVd/2/. Why don't the text fields update?
1
3,554,263
08/24/2010 07:23:12
94,813
04/23/2009 07:15:59
1,327
68
How to change the value of an attribute of a bean in list?
I am having a list of bean, now i want to change the value of an attribute of all the beans in the list. For example: class Person{ String name; int age; String attrXYZ; /* accessors and mutators */ } ----- List<Person> lstPerson = getAllPersons(); //set the attribute attrXYZ of all persons in the list to 'undefined' One way is to iterate the list and call `setAttrXYZ ( 'undefined' );` this is what i am doing right now. I would like to know is there any other approach of doing this.
java
list
javabeans
null
null
null
open
How to change the value of an attribute of a bean in list? === I am having a list of bean, now i want to change the value of an attribute of all the beans in the list. For example: class Person{ String name; int age; String attrXYZ; /* accessors and mutators */ } ----- List<Person> lstPerson = getAllPersons(); //set the attribute attrXYZ of all persons in the list to 'undefined' One way is to iterate the list and call `setAttrXYZ ( 'undefined' );` this is what i am doing right now. I would like to know is there any other approach of doing this.
0
1,929,841
12/18/2009 18:09:49
229,081
12/10/2009 19:29:13
48
12
Confused about how Windows get audio line names
I'm getting very confused about how audio devices/lines/endpoints are named in windows (vista). - First I go to the control panel applet "Sound". Among others, I find one input line that resides physically on a USB Audio Device. The name of the "recording device" in the applet is:<br /> **Microphone**<br /> 3- USB Audio Device Working - From the waveInGetDeviceCaps I get <br /> **Microphone (3- USB Audio Device** *please note the lack of closing parenthesis* - From the IMMDevice.IPropertyStore, I see two properties that I can extract name. One of them says <br /> **Microphone** <br /> and the other says **USB Audio Device** Where does that **"3- "** comes from?
c#
winmm
core-api
audio
windows-vista
null
open
Confused about how Windows get audio line names === I'm getting very confused about how audio devices/lines/endpoints are named in windows (vista). - First I go to the control panel applet "Sound". Among others, I find one input line that resides physically on a USB Audio Device. The name of the "recording device" in the applet is:<br /> **Microphone**<br /> 3- USB Audio Device Working - From the waveInGetDeviceCaps I get <br /> **Microphone (3- USB Audio Device** *please note the lack of closing parenthesis* - From the IMMDevice.IPropertyStore, I see two properties that I can extract name. One of them says <br /> **Microphone** <br /> and the other says **USB Audio Device** Where does that **"3- "** comes from?
0
8,585,963
12/21/2011 06:38:37
205,892
11/08/2009 03:39:33
36
0
Warmup pages that need authentication
Every time my app pool is recycled, all the pages take very long for the first request. I have a way of keeping the non-authenticated pages warmed up by making a call to them programatically before adding a server back in the load balancer. For pages that require authentication (we use forms authentication) I'm not sure how to warm up these pages before adding a server in the load balancer. Can you please help with some ideas? I'm using ASP.NET 3.5 and IIS 6 Thanks
asp.net
iis6
null
null
null
null
open
Warmup pages that need authentication === Every time my app pool is recycled, all the pages take very long for the first request. I have a way of keeping the non-authenticated pages warmed up by making a call to them programatically before adding a server back in the load balancer. For pages that require authentication (we use forms authentication) I'm not sure how to warm up these pages before adding a server in the load balancer. Can you please help with some ideas? I'm using ASP.NET 3.5 and IIS 6 Thanks
0
6,395,838
06/18/2011 11:58:17
873,991
06/18/2011 11:58:17
1
0
JAVA : How can i get only update text from text file when it's updated
I have a text file (*.txt) . it's updated frequently . i need only update text from it when it's updated.
java
null
null
null
null
06/18/2011 12:57:43
not a real question
JAVA : How can i get only update text from text file when it's updated === I have a text file (*.txt) . it's updated frequently . i need only update text from it when it's updated.
1
5,976,722
05/12/2011 10:36:20
76,509
03/11/2009 05:45:04
1,084
3
Multi table pagination
If you have the following function: How to add LIMIT sequence for each table ? function find($page=2,$num_of_page=30){ $query_1 = "SELECT COUNT(*) FROM table_1"; $query_2 = "SELECT COUNT(*) FROM table_2"; $query_3 = "SELECT COUNT(*) FROM table_3"; . . . /* $total_count == 100; $table_1_count == 33; $table_2_count == 10; $table_3_count == 57; */ $offset = $page -1 * $num_of_page; $limit = $num_of_page; . . } if $page == 2 and $num_of_page ==30; you should execute SELECT * FROM table_1 LIMIT 30,3 SELECT * FROM table_2 LIMIT 0,10 SELECT * FROM table_3 LIMIT 0,17 Please forgive my ugly English
php
mysql
algorithm
pagination
null
null
open
Multi table pagination === If you have the following function: How to add LIMIT sequence for each table ? function find($page=2,$num_of_page=30){ $query_1 = "SELECT COUNT(*) FROM table_1"; $query_2 = "SELECT COUNT(*) FROM table_2"; $query_3 = "SELECT COUNT(*) FROM table_3"; . . . /* $total_count == 100; $table_1_count == 33; $table_2_count == 10; $table_3_count == 57; */ $offset = $page -1 * $num_of_page; $limit = $num_of_page; . . } if $page == 2 and $num_of_page ==30; you should execute SELECT * FROM table_1 LIMIT 30,3 SELECT * FROM table_2 LIMIT 0,10 SELECT * FROM table_3 LIMIT 0,17 Please forgive my ugly English
0
7,929,443
10/28/2011 12:46:18
340,628
05/13/2010 19:45:23
9,451
320
Export a certificate in asn.1 notation from X509Certificate2
I'm currently learning working with certificates and now I'm curious, if it is possible to get the ASN.1 notation of a loaded certificate from a `X509Certificate2`-instance. I have found the `Export`-Method and it works fine, however I have not seen a possibilty to change the encoding of the output format - it's only in the DER-format. Is there a possibility to export/convert a loaded certificate as an ASCII ASN.1 certificate, something like in the example below: Certificate: Data: Version: 3 (0x2) Serial Number: 1 (0x1) Signature Algorithm: md5WithRSAEncryption Issuer: C=XY.... ... Or is there a converter to convert DER to plain text?
certificate
.net-cryptography
null
null
null
null
open
Export a certificate in asn.1 notation from X509Certificate2 === I'm currently learning working with certificates and now I'm curious, if it is possible to get the ASN.1 notation of a loaded certificate from a `X509Certificate2`-instance. I have found the `Export`-Method and it works fine, however I have not seen a possibilty to change the encoding of the output format - it's only in the DER-format. Is there a possibility to export/convert a loaded certificate as an ASCII ASN.1 certificate, something like in the example below: Certificate: Data: Version: 3 (0x2) Serial Number: 1 (0x1) Signature Algorithm: md5WithRSAEncryption Issuer: C=XY.... ... Or is there a converter to convert DER to plain text?
0
2,570,536
04/03/2010 07:15:12
161,832
08/24/2009 04:46:15
1,522
93
Disable resizing tables in mozilla in design mode
Is there a way to remove the attribute '_moz_resizing="true"' added by Firefox from <TABLE> to avoid giving user the possibility to resize table in design mode (when contentEditable=true).
javascript
firefox
null
null
null
null
open
Disable resizing tables in mozilla in design mode === Is there a way to remove the attribute '_moz_resizing="true"' added by Firefox from <TABLE> to avoid giving user the possibility to resize table in design mode (when contentEditable=true).
0
5,025,194
02/17/2011 04:56:28
303,523
03/28/2010 10:02:00
66
7
HttpRuntime in VisualStudio UnitTest
Can I access HttpRuntime in my unit Test method. When I try to access every time it shows HttpRuntime does not exist in the current context. In my target method which I do want to test accessing a Cache variable <pre> HttpRuntime.Cache[key]; </pre> Is it possible ? or am I missing anything here? Thanks
visual-studio-2008
unit-testing
null
null
null
null
open
HttpRuntime in VisualStudio UnitTest === Can I access HttpRuntime in my unit Test method. When I try to access every time it shows HttpRuntime does not exist in the current context. In my target method which I do want to test accessing a Cache variable <pre> HttpRuntime.Cache[key]; </pre> Is it possible ? or am I missing anything here? Thanks
0
6,213,419
06/02/2011 10:38:53
434,186
08/29/2010 11:21:33
96
3
C++, How to remove a file?
In C/C++ on Windows CE 5.0, how to remove a file? the standard 'remove()' function is not placed in STDIO.H header file. I tried the 'DeleteFile()' API function , so i must convert my 'const char*' file name string to LPCWSTR by 'MultiByteToWideChar()' function . it works fine , but at the end program crashes. what can i do?
c++
c
file
remove
null
06/02/2011 13:40:14
not a real question
C++, How to remove a file? === In C/C++ on Windows CE 5.0, how to remove a file? the standard 'remove()' function is not placed in STDIO.H header file. I tried the 'DeleteFile()' API function , so i must convert my 'const char*' file name string to LPCWSTR by 'MultiByteToWideChar()' function . it works fine , but at the end program crashes. what can i do?
1
130,238
09/24/2008 22:03:34
20,903
09/23/2008 05:06:32
335
15
Sending an HTTP request to a different IP than what the hostname resolves to?
I want to be able to send an HTTP request to "admin.foo.com", but have the request go to an IP which does not map to "admin.foo.com" in DNS. I know I can edit **/etc/hosts** to do this, but I'd like to avoid doing that. To explicate, normally when you browse to `"http://admin.foo.com"`, it sends an HTTP request that looks something like this: GET / HTTP/1.0 User-Agent: Wget/1.10.2 (well, it'd be Firefox, but you get the point) Accept: */* Host: admin.foo.com Connection: Keep-Alive ...and that request is sent to admin.foo.com's IP, which (let's say) is 10.0.0.1. The "Host" header is extracted from the URL, and that header is what Apache uses to determine which virtual host to use. If I put the IP address of admin.foo.com into Firefox, it sends the request to the right server, but the Host field has the IP address in it, and then Apache doesn't know what vhost to use, and defaults to using no vhost at all, which (in its config) causes a 403/Forbidden, so I can't navigate to the new server's IP to test this. Again, I know I can use **/etc/hosts** for this, but I'd like to avoid doing so, and I figure Firefox must have some sekrit way to do this ;)
http
firefox
ip
null
null
09/24/2008 22:58:27
off topic
Sending an HTTP request to a different IP than what the hostname resolves to? === I want to be able to send an HTTP request to "admin.foo.com", but have the request go to an IP which does not map to "admin.foo.com" in DNS. I know I can edit **/etc/hosts** to do this, but I'd like to avoid doing that. To explicate, normally when you browse to `"http://admin.foo.com"`, it sends an HTTP request that looks something like this: GET / HTTP/1.0 User-Agent: Wget/1.10.2 (well, it'd be Firefox, but you get the point) Accept: */* Host: admin.foo.com Connection: Keep-Alive ...and that request is sent to admin.foo.com's IP, which (let's say) is 10.0.0.1. The "Host" header is extracted from the URL, and that header is what Apache uses to determine which virtual host to use. If I put the IP address of admin.foo.com into Firefox, it sends the request to the right server, but the Host field has the IP address in it, and then Apache doesn't know what vhost to use, and defaults to using no vhost at all, which (in its config) causes a 403/Forbidden, so I can't navigate to the new server's IP to test this. Again, I know I can use **/etc/hosts** for this, but I'd like to avoid doing so, and I figure Firefox must have some sekrit way to do this ;)
2
9,572,055
03/05/2012 18:41:22
997,156
10/15/2011 18:52:43
128
0
dispatch_source_cancel on a suspended timer causes EXC_BAD_INSTRUCTION
I'm trying to cancel and then release a suspended timer but when I invoke 'dispatch_release' on it, I immediately get EXC_BAD_INSTRUCTION. Is this not a valid set of actions to take on a timer? Timer creation & suspension: - (void)startTimer { dispatch_queue_t globalQ = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); self.timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, globalQ); dispatch_time_t startWhen = dispatch_walltime(DISPATCH_TIME_NOW, NSEC_PER_SEC * 1); dispatch_source_set_timer(_timer, startWhen, 1 * NSEC_PER_SEC, 5000ull); dispatch_source_set_event_handler(_timer, ^{ // Perform a task // If a particular amount of time has elapsed, kill this timer if (timeConstraintReached) { // Can I suspend this timer within it's own event handler block? dispatch_suspend(_timer); } }); dispatch_resume(_timer); } - (void)resetTimer { dispatch_suspend(_timer); dispatch_source_cancel(_timer); // dispatch_release causes // 'EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) dispatch_release(_timer); self.timer = nil; } Additionally, can I invoke dispatch_suspend within a timer source's event_handler block? Any help would be appreciated.
iphone
ios
ios5
grand-central-dispatch
dispatchertimer
null
open
dispatch_source_cancel on a suspended timer causes EXC_BAD_INSTRUCTION === I'm trying to cancel and then release a suspended timer but when I invoke 'dispatch_release' on it, I immediately get EXC_BAD_INSTRUCTION. Is this not a valid set of actions to take on a timer? Timer creation & suspension: - (void)startTimer { dispatch_queue_t globalQ = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); self.timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, globalQ); dispatch_time_t startWhen = dispatch_walltime(DISPATCH_TIME_NOW, NSEC_PER_SEC * 1); dispatch_source_set_timer(_timer, startWhen, 1 * NSEC_PER_SEC, 5000ull); dispatch_source_set_event_handler(_timer, ^{ // Perform a task // If a particular amount of time has elapsed, kill this timer if (timeConstraintReached) { // Can I suspend this timer within it's own event handler block? dispatch_suspend(_timer); } }); dispatch_resume(_timer); } - (void)resetTimer { dispatch_suspend(_timer); dispatch_source_cancel(_timer); // dispatch_release causes // 'EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) dispatch_release(_timer); self.timer = nil; } Additionally, can I invoke dispatch_suspend within a timer source's event_handler block? Any help would be appreciated.
0
4,028,210
10/26/2010 21:32:08
488,124
10/26/2010 21:01:32
1
0
How do I write a parallel reduction using strategies in Haskell?
In high-performance computing, sums, products, etc are often calculated using a "parallel reduction" that takes _n_ elements and completes in O(log _n_) time (given enough parallelism). In Haskell, we usually use a _fold_ for this kind of calculation, but evaluation time is always linear in the length of the list. Data Parallel Haskell has some of this built in, but what about in the common framework of a list? Can we do it with `Control.Parallel.Strategies`? So, assuming `f` is associative, how do we write `parFold :: (a -> a -> a) -> [a] -> a` so that `parFold f xs` only needs time logarithmic in `length xs`?
haskell
parallel-processing
null
null
null
null
open
How do I write a parallel reduction using strategies in Haskell? === In high-performance computing, sums, products, etc are often calculated using a "parallel reduction" that takes _n_ elements and completes in O(log _n_) time (given enough parallelism). In Haskell, we usually use a _fold_ for this kind of calculation, but evaluation time is always linear in the length of the list. Data Parallel Haskell has some of this built in, but what about in the common framework of a list? Can we do it with `Control.Parallel.Strategies`? So, assuming `f` is associative, how do we write `parFold :: (a -> a -> a) -> [a] -> a` so that `parFold f xs` only needs time logarithmic in `length xs`?
0
3,298,670
07/21/2010 11:23:40
397,538
08/01/2009 14:02:46
11
0
Git, SVN & Mercurial Whats is Ideally the best SCM?
I am completely switching for freelancing and I wanted to maintain my client codes in a Version Control system, ideally Git, SVN & Mercurial What’s is the best?
git
version-control
null
null
null
07/21/2010 11:51:51
not constructive
Git, SVN & Mercurial Whats is Ideally the best SCM? === I am completely switching for freelancing and I wanted to maintain my client codes in a Version Control system, ideally Git, SVN & Mercurial What’s is the best?
4
9,557,903
03/04/2012 19:02:47
845,230
07/14/2011 18:54:28
89
2
LINQ-2-SQL expansion of relationships on ToList()
I have a DataLayer class (LINQ2SQL, not entity framework) that returns rows from the database as follows: public ReadOnlyCollection<UserCars> Cars { get { using (var context = new TransportopiaDataContext()) { var result = (from car in context.UserCars where car.UserId == UserId select car); return result.ToList().AsReadOnly(); } } } Now, as you know, you have to do the ToList() because the datacontext goes out of scope when you leave the using() clause. The problem is that there are foreign key relationships; while the context is still in scope, you could do: string foo = car.Manufacturer.Name; But doing that after context has been disposed causes an error. So my question is: "Is there some way of doing the ToList() such that foreign key relationships will also be expanded?"
linq
linq-to-sql
null
null
null
null
open
LINQ-2-SQL expansion of relationships on ToList() === I have a DataLayer class (LINQ2SQL, not entity framework) that returns rows from the database as follows: public ReadOnlyCollection<UserCars> Cars { get { using (var context = new TransportopiaDataContext()) { var result = (from car in context.UserCars where car.UserId == UserId select car); return result.ToList().AsReadOnly(); } } } Now, as you know, you have to do the ToList() because the datacontext goes out of scope when you leave the using() clause. The problem is that there are foreign key relationships; while the context is still in scope, you could do: string foo = car.Manufacturer.Name; But doing that after context has been disposed causes an error. So my question is: "Is there some way of doing the ToList() such that foreign key relationships will also be expanded?"
0