반응형

 

https://survey.stackoverflow.co/2023/#most-popular-technologies-language-prof

 

Stack Overflow Developer Survey 2023

In May 2023 over 90,000 developers responded to our annual survey about how they learn and level up, which tools they're using, and which ones they want.

survey.stackoverflow.co

반응형
반응형

stackoverflow - 2022 developer survey

https://survey.stackoverflow.co/2022/#most-popular-technologies-webframe

 

Stack Overflow Developer Survey 2022

In May 2022 over 70,000 developers told us how they learn and level up, which tools they’re using, and what they want.

survey.stackoverflow.co

반응형
반응형

Convert Datetime to Unix timestamp

 

Convert Datetime to Unix timestamp

In Microsoft SQL Server 2012 or above, is it possible to convert a datetime value to Unix time stamp in a single select statement? If so, how can it be done?

stackoverflow.com

In Microsoft SQL Server 2012 or above, is it possible to convert a datetime value to Unix time stamp in a single select statement? If so, how can it be done?

 
use db

CREATE FUNCTION UNIX_TIMESTAMP (
@ctimestamp datetime
)
RETURNS integer
AS
BEGIN
  /* Function body */
  declare @return integer
   
  SELECT @return = DATEDIFF(SECOND,{d '1970-01-01'}, @ctimestamp)
   
  return @return
END



SELECT dbo.UNIX_TIMESTAMP(GETDATE()) ;

 

https://stackoverflow.com/questions/34455408/convert-datetime-to-unix-timestamp

 

 

How can I convert UNIX timestamp (bigint) to DateTime in SQL Server?

Select dateadd(S, 1637852002, '1970-01-01')

 

.

반응형
반응형

cordova ionic install 중 권한에러 발생시


http://ionicframework.com/getting-started/ 에서  


> npm -g install cordova ionic 


이었는데, 에러 발생 - code: 'EACCES'




그런데, 권한문제인거같아 찾아보니 sudo 권한으로 실행하면 성공.


> sudo npm -g install cordova ionic


stackoverflow 참조 :  Fail to install cordova with npm on Mac os x



반응형
반응형

embed 소스 경로 교체하기

 

id가 audio_file 인 embed 태그가 있다. 소스를 변경하고 싶은데,  jQuery .attr() 로는 변경되지 않는다.

어떻게 할까?

 

<embed src="/resources/audio/_webbook_0001/embed_test.mp3" type="audio/mpeg" id="audio_file>

 

 

StackOverflow에서 찾았다.

 

해당 embed의 parent를 만든다. 부모를 만들어서 부모에 바인드 시키는 것이지.

그래서, 해당 embed를 지우고 다시 부모가 자식을 만들면 동일한 자리에 embed가 생성될 것이다.

 

var parent = $('embed#audio_file').parent();
var newElement = "<embed scr='new src' id='audio_file'>";

$
('embed#audio_file').remove();
parent
.append(newElement);

 

 

 

 

 

http://stackoverflow.com/questions/2493706/javascript-changing-src-attribute-of-a-embed-tag

 

 

반응형

+ Recent posts