Treceți la conținutul principal

Cum să..

..îţi alegi numele unui blog.
Gata cu haosul. Mă reorganizez! ( NOT!)
M-am plictisit de postat poze şi aberat texte în acelaşi blog. Pozele arată rău pe alb, textele se citesc greu pe negru, aşa că m-am gândit să le separ.
Şi m-am pus pe treabă.
1: Decid să las factorul întâmplare să aleagă pentru mine.
2: Scriu un script în MSSQL care să-mi anagrameze "tya photography" randomly.
DECLARE @RandomString varchar(32)
DECLARE @counter smallint
DECLARE @string nvarchar(50)
DECLARE @CurrentCharacter nvarchar(1)
DECLARE @RandomNumber float
DECLARE @left nvarchar(1000)
DECLARE @right nvarchar(1000)
declare @new_string nvarchar(1000)
DECLARE @debug bit
DECLARE @name_length tinyint
SET @string = 'tyaphotography'
SET @name_length =len(@string) print @name_length
SET @RandomString =''
SET @debug=1
SET NOCOUNT ON
SET @counter = 1
WHILE @counter <=@name_length
BEGIN
print len(@string)
SET @RandomNumber = Rand()
SET @RandomNumber = ceiling(@RandomNumber * 10)
print @RandomNumber

IF @RandomNumber < =@name_length
BEGIN

SELECT @CurrentCharacter = SUBSTRING(@string, convert(int,@RandomNumber), 1)

--remove used letter
SET @left = SUBSTRING(@string, 0, (convert(int,@RandomNumber)-1))
IF @debug=1 PRINT @left + ' left'
SET @right = SUBSTRING(@string, (convert(int,@RandomNumber)+1), len(@string))
IF @debug=1 PRINT @right + ' right'
SET @new_string = @left + @right

IF @debug=1 PRINT @string + ' string'
SET @string = @new_string
IF @debug=1 PRINT @new_string + ' new string'
SET @counter = @counter + 1
SET @RandomString = @RandomString + @CurrentCharacter
IF @debug=1 PRINT @RandomString + ' random string'
END
ELSE
SET @counter = @counter-1
END
SELECT @RandomString AS 'name'

GO
3.Îl rulez vreo 3 zile.
4.Îmi aleg o listă de nume.
5.Cer părerea colegilor.
6.O colegă se uită pe listă şi spune "Artyia".
- "Dar numele nu este pe listă!", am bâguit eu
Prea târziu. Era deja votat în unanimitate!
7. Şi ..dintr-o întâmplare aleatoare a "întâmplării" s-a născut:ARTYIA:)

Comentarii

Postări populare de pe acest blog

Travel! You will feel taller!

Victoria Falls, Zimbabwe, 2014 Travel! You will feel taller! So you start off in a small village from a small country in Europe, where everything around you seems new and interesting in your first years. You discover the trees and the bees and the nature around you, and then, slowly you move on and  you look up to the sky and imagine something bigger but you have no idea how it would look or feel. Then, you move to a small town and everything suddenly becomes bigger. High school years are interesting and you discover bigger horizons and yet, you dream of something else. Then, it is time to go to college and you move to a bigger town. You feel confused and “close” gets a different meaning. “Close” now means 5 km away, whereas “close” used to mean a couple of meters away. It is crazy and huge and it takes so much time and energy to get used to it. Oh, the frustration! You don’t get why people would say “it is close by ” to something that requires walking for 5 k

Ce ne spunem cand nu ne vorbim - Chris Simion

Cititi-o, e asa...sincera! :) " A avea incredere intr-o alta persoana inseamna a avea incredere ca omul respectiv nu are nevoie sa fie altfel decat este, nu are nevoie sa fie fals. Si asta nu tine de cat il cunosti pe respectivul om sau de felul in care ti-ar placea sa fie acel om, tine, pur si simplu, de intalnirea de har dintre doua fiinte care se aseamana prin nevoile lor. Cand un om face ceva pentru un alt om nu pentru ca simte, ci pentru ca i se cere, este fals, mai bine nu face, se abtine. In tine ramane ceea ce simti sa faci, chiar daca ceea ce faci nu coincide cu ceea ce simti. In interiorul tau se imprima ceea ce simti. Neurmand drumul sufletului strangi frustrari, regrete, complexe. Scapate din frau, te intorc la minciuna, la neadevar, la viata ascunsa. Sufletul pereche este cea mai importanta intalnire cu un om. Este omul-oglinda, omul care te scapa de prejudecati si te obliga sa te vezi asa cum esti, omul care nu te lasa sa te mai minti si care trage de tine sa te

Indian Love Photostory

Fort Alibag, India 2016