Change the maximum upload file size

Change the maximum upload file size

I have a website hosted on a PC I have no access to. I have an upload form allowing people to upload mp3 files up to 30MB big. My server side script is done in PHP.Every time I try and upload a file, I receive an error claiming that the fil

How to migrate from SQLite to PostgreSQL (Rails)

How to migrate from SQLite to PostgreSQL (Rails)

I'm a DB noob so please be kind with me.I'm having some issues pushing my SQLite DB to Heroku via taps gem. Talking with them, they told me one of the solutions could be converting locally my DB from SQLite to PostgreSQL.Is there an easy wa

pros and cons of db and ndb in google app engine

pros and cons of db and ndb in google app engine

I have seen a little of this in stack overflow but I am wondering if there is any reason to use the DB entity model and what the specific pros and cons of using on or the other are.I have read the ndb is a little faster and that it helps wi

Is there a public Google API to access reminders set in Google Now or Google Keep?

Is there a public Google API to access reminders set in Google Now or Google Keep?

The time and location-based reminders in Google Now and Google Keep are different from Google Calendar event reminders. Is there a public API to access these event reminders in Now and Keep? 1:There's no public API for either of these Go

Difference between ByVal and ByRef?

Difference between ByVal and ByRef?

What is the difference? I always use ByVal, but, I don't really have a good idea of when should I and when not... 1:If you pass in a reference, when you modify the value in the method, the variable in the call site will also be modified.

integrating a discourse message board with an existing rails site

integrating a discourse message board with an existing rails site

I'm looking at integrating a message board for a site I'm developing in rails. The new discourse board looks interesting http://www.discourse.org/ but there isn't much information about integrating into another site either via oauth2 or sso

What is producing “TypeError character mapping must return integer…” in this python code?

What is producing “TypeError character mapping must return integer…” in this python code?

please, can someone help me with the code bellow?When I run it the logs said: return method(*args, **kwargs) File "C:\Users\CG\Documents\udacity\rot13serendipo\main.py", line 51, in post text = rot13(text) File "C:\Users\CG\Documents\u

How to know total number of Frame in a file with cv2 in python

How to know total number of Frame in a file with cv2 in python

How to know total number of Frame in a file ( .avi) through Python using open cv module.If possible what all the information (resolution, fps,duration,etc) we can get of a video file through this. 1:With a newer OpenCV version (I use 3.

Why is “ss” equal to the German sharp-s character 'ß'?

Why is “ss” equal to the German sharp-s character 'ß'?

Coming from this question I'm wondering why ä and ae are different(which makes sense) but ß and ss are treated as equal. I haven't found an answer on SO even if this question seems to be related and even mentions "that ß will compare equal

How do I query for fields containing a given text in MySQL?

How do I query for fields containing a given text in MySQL?

SELECT stuff REGEXP 'itunes' as is_itunes;In this MySQL query, if "stuff" has the word "itunes" in it, it will mark it as itunes.However, I want to say "begin with". How can I check for "begin with" instead of anywhere in the text? 1:SEL

SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

I'm following this tutorial step by stephttp://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-hostAnd I'm getting an exception on the line marked below string url = "http://localhost:

auto-generate models for sequelize

auto-generate models for sequelize

I'm wanting to start using Sequelize, a module that allows ORM for mysql in node.js. I was wondering if it's possible to auto-generate the models like CakePHP does. In CakePHP, it will read the table's info, and automatically create the ass

OpenCart admin menu link url

OpenCart admin menu link url

I'm verry new to OpenCart and I'm trying to make a module for it.I want a link in the admin menu to the module I am creating thus I've edited this file:/admin/view/template/common/header.tplThe code I have added:Import / Export L

How to access map generated by leaflet in R

How to access map generated by leaflet in R

Let's say I have a code like this# Install devtools if neededif(!require(devtools)) install.packages("devtools")# view rawif-devtools.R hosted with ❤ by GitHub# Install leaflet packageif(!require(leaflet)) install_github("rstudio/leaflet")l

How to use an array value from php to javascript?

How to use an array value from php to javascript?

it was always a question for me that how can i use an array value in javascript while that array is defined in my php scripts For example consider reading some values from a file and use it in javascript.what's ur plan to do so ? 1:Yo

Accept Cookies in Python

Accept Cookies in Python

How can I accept cookies in a python script? 1:Try this:import urllib2 import cookielibjar = cookielib.FileCookieJar("cookies")opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(jar))print "Currently have %d cookies" % len(jar)pri

File ownership/group is changed when users push to a GIT repository

File ownership/group is changed when users push to a GIT repository

For over a year, I've been having troubles with GIT and directory/file permissions. I have a central repository to which multiple developers push code, using ssh (origin set up as ssh://example/git/repository). I have set up the repository

User (IPrincipal) not avaliable on ApiController's constructor using Web Api 2.1 and Owin

User (IPrincipal) not avaliable on ApiController's constructor using Web Api 2.1 and Owin

I am Using Web Api 2.1 with Asp.Net Identity 2. I am trying to get the authenticated User on my ApiController's constructor (I am using AutoFac to inject my dependencies), but the User shows as not authenticated when the constructor is call

How to add cocoapods to existing workspace not project

How to add cocoapods to existing workspace not project

I am working on a project which is composed of three other projects in a workspace. I want to use CocoaPods to manage my dependecies in the workspace, but CocoaPods always creates its own workspace with only one addtional project. What I wa

Jekyll's “--auto” doesn't work?

Jekyll's “--auto” doesn't work?

I have just reinstalled my whole system and started working on my projects again. I used and still use Jekyll in some of them however I have a problem with auto generation using --auto or _config.yml's auto: true. It simply doesn't work. Th

TSQL logging inside transaction

TSQL logging inside transaction

I'm trying to write to a log file inside a transaction so that the log survives even if the transaction is rolled back.--start codebegin traninsert [something] into dbo.logtable[[main code here]]rollbackcommit-- end codeYou could say just d

how to map levels of java.util.logging and slf4j logger?

how to map levels of java.util.logging and slf4j logger?

This is a basic question but it's really confusing me.I have to map java.util.logging to slf4j logging levels... SLF4J LEVELS :trace debug info warn error fatal JAVA.UTIL.LOGGING LEVELS :finest finer fine config info warning severe.Any sugg

Google analytics: Tracking Not Installed

Google analytics: Tracking Not Installed

I am trying to setup Google Analytics on my site, however it will not detect that it is being tracked. I have placed the code they provided in my header.php right before the as recommended:Not really sure what else to do.. 1:It took a d

SEC7118: XMLHttpRequest CORS - IE Console message

SEC7118: XMLHttpRequest CORS - IE Console message

I am using CORS POST request with everything taken care as given @http://www.html5rocks.com/en/tutorials/cors/Server sets Response header to:'Access-Control-Allow-Origin':'*' and I can see this header value in IE developer tool.But on IE10

How to use 'after_initialize' in Rails 3?

How to use 'after_initialize' in Rails 3?

UPDATEI wrongly checked the edgerails guide instead of the currently correct Rails 3 guide (which has no mention of after_initialize). Not sure why the edgerails guide is "incorrect" though - I thought edgerails guide was supposed to be the