전체보기 (73) 썸네일형 리스트형 [Open Source] PUSHSHARP 소개 (C#) PUSHSHARP - PUSH 를 위한 C# 라이브러리 입니다. - https://github.com/Redth/PushSharp PushSharp push객체 (공통) //Create our push services broker var push = new PushBroker(); //Wire up the events for all the services that the broker registers push.OnNotificationSent += NotificationSent; push.OnChannelException += ChannelException; push.OnServiceException += ServiceException; push.OnNotificationFailed += Notifica.. NetHelper 제거 - 서비스의 삭제는 프로세스 종료상태에서 입력해야 바로 적용이되며, 실행중인 상태에서는 재부팅해야 적용이 됩니다. - Windows Vista 및 Windows 7 버전에서는 명령프롬프트를 관리자권한으로 실행하세요. # 등록된 서비스 이름 확인 1. 제어판 > 관리도구 > 서비스 등록된 서비스이름 : NetHelper Client V6.0 Main Service # 서비스를 사용안함으로 설정 1. 시작버튼 > 프로그램 > 보조프로그램 > 명령프롬프트 오른쪽 클릭후 관리자 권한으로 실행 2. 다음명령줄 입력(두번째 명령어 [start= disabled] 에서 "=" 다음에 공백 후 disabled 필수) sc stop "NetHelper Client V6.0 Main Service" sc config "N.. [Server] GCM 전송 및 결과 처리 ( c#) GCM 전송 및 결과 처리 #region ANDROID 전송 // 안드로이드 전송 후 결과를 저장합니다. MobilePushResponseModel responseModel = new MobilePushResponseModel(); MobilePushResponseModel resultModel = new MobilePushResponseModel() { results = new List()}; foreach (var data in makeMessageForAndroid(message, AndroidPushList, locationUrl)) { responseModel = new MobilePushResponseModel (); responseModel = new JavaScriptSerializer (.. [Server] GCM 메세지 만들기 및 전송 (C#) GCM 메세지를 만듭니다. /// GCM 전송 메세지를 만듭니다. /// /// /// /// /// public string makeMessageForAndroid( string message, string deviceId, string locationUrl) { StringBuilder requestData = new StringBuilder(); requestData.Append( "{" ); requestData.Append( " \"registration_ids\": [ \"" ).Append(deviceId).Append( "\" ]"); requestData.Append( ", \"data\": {" ); requestData.Append( " \"message\": \"" ).Append(.. [Server] GCM 전송 Request 및 Response 분석 (C#) 요약 - 결과 1. 유효하지 않은 registration_ids 이나 해당 단말기가 최종적으로 다시 어플을 설치하여 정상 push를 받을 수 있는 경우 여기서 "32" 값은 다시 어플을 설치하여 정상 push를 받을수 있는 registration_ids 이다. : { "message_id": "1:2342", "registration_id": "32" } 2. 유효하지 않은 registration_ids 이면서 해당 단말기에 어플을 삭제 후 설치하지 않은 경우 : { "error": "NotRegistered"} 3. 유효한 registration_ids 인경우 : { "message_id": "1:1516" } 4. GCM에 정상 발송하지 못해 재전송이 필요한경우 : { "error": "Unavail.. How Can I trim all elements in a list? How Can I trim all elements in a list? String strCommaString = "aa, bb, cc, dd"; Response.Write("before Trim result"); Response.Write(" "); IList strListBeforeTrim = strCommaString.Split(',').ToArray(); foreach (var item in strListBeforeTrim) { Response.Write("[" + item + "]"); } Response.Write(" "); Response.Write("after Trim result"); Response.Write(" "); IList strListAfterTrim = strCommaStrin.. prototype.js - [배열의 길이는 유한한 양수로 할당해야 합니다.] error message [배열의 길이는 유한한 양수로 할당해야 합니다.] solution prototype.js에서 아래 부분 수정 [AS-IS] shift: function() { var result = this[0]; for (var i = 0; i 0){ this.length--; } return result; }, prototype과 jquery를 함께 사용할경우 prototype과 jquery를 함께 사용할경우 var $j = jQuery.noConflict(); // $j is now an alias to the jQuery function; creating the new alias is optional. $j(document).ready(function() { $j( "div" ).hide(); }); // The $ variable now has the prototype meaning, which is a shortcut for // document.getElementById(). mainDiv below is a DOM element, not a jQuery object. window.onload = function() { var mainDiv = $( .. 이전 1 ··· 3 4 5 6 7 8 9 10 다음