This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://<dc>.api.mailchimp.com/2.0/lists/subscribe.json?apikey=<my_api_key>&id=<my_list_id>&email[email][email protected]&merge_vars[FNAME]=John&merge_vars[LNAME]=Doe&double_optin=false&send_welcome=false | |
Where <dc> should be replaced with the portion after the dash in your API Key. e.g. "us1", "us2", "uk1", etc. | |
http://stackoverflow.com/questions/19671676/javascript-mailchimp-api-subscribe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE ROLE mystore LOGIN PASSWORD 'mystore' NOINHERIT CREATEDB; | |
Errors you will get in rails if you don't have the username available: | |
ActiveRecord::NoDatabaseError: FATAL: role does not exist rails | |
friggin start and stop the damn thing: | |
$ brew services list | |
$ brew services restart postgresql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MapActivity" > | |
<fragment xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:map="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/map" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.beckah.helloworld"> | |
<!-- | |
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use | |
Google Maps Android API v2, but you must specify either coarse or fine | |
location permissions for the 'MyLocation' functionality. | |
--> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.beckah.helloworld; | |
import android.support.v4.app.FragmentActivity; | |
import android.os.Bundle; | |
import com.google.android.gms.maps.CameraUpdateFactory; | |
import com.google.android.gms.maps.GoogleMap; | |
import com.google.android.gms.maps.OnMapReadyCallback; | |
import com.google.android.gms.maps.SupportMapFragment; | |
import com.google.android.gms.maps.model.LatLng; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following data is given for the run time of a program: | |
https://d2gne97vdumgn3.cloudfront.net/api/file/XF3gUiIRRh2321KcJHbO | |
And then is graphed in a log-log scale graph and through compressing it for a log-log scale graph, | |
has a slope of 3. | |
https://d2gne97vdumgn3.cloudfront.net/api/file/n3GlkRKWSg6V1EyKAzOj | |
The formula for the line can then be described as: | |
log(T(N)) = b lg N + c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeCampaignInfoTasklet' defined in class path resource [config/batch/marketing-campaign-spring-object-config.xml]: Cannot resolve reference to bean 'campaignInfoFileReader' while setting bean property 'delegateReader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'campaignInfoFileReader': Scope 'step' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No context holder available for step scope | |
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:326) | |
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107) | |
at org.springframework.beans.factory.support.Abs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="stgMktngCampaignFileReader" class="org.springframework.batch.item.file.FlatFileItemReader" | |
abstract="true" lazy-init="true" scope="step"> | |
<property name="resource" value="#{jobParameter[input.file]}" /> | |
<property name="linesToSkip" value="1" /> | |
</bean> | |
<bean id="campaignInfoFileReader" parent="stgMktngCampaignFileReader"> | |
<!-- LINE MAPPER --> | |
<property name="lineMapper"> | |
<bean class="org.springframework.batch.item.file.mapping.DefaultLineMapper"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error creating bean with name 'storeCampaignInfoTasklet' defined in class path resource [config/batch/marketing-campaign-spring-object-config.xml]: Cannot resolve reference to bean 'campaignInfoFileReader' while setting bean property 'delegateReader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'campaignInfoFileReader': Scope 'step' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No context holder available for step scope |