Notepad hakker ;-)

Hyggehjørnet d.  29. maj. 2008, skrevet af ZnarF
Vist: 395 gange.

ZnarF
 
Elitebruger
Tilføjet:
29-05-2008 02:13:47
Svar/Indlæg:
1058/59
Notepad er ikke god til store filer:

Jeg sidder og er igang med noget programmering, hvor jeg sidder med efterhånden 3 Mb kode (37000 linier).

Det er notepad ikke så glad for... notepad bruger også 4 gange den mængde RAM som dokumentet fylder....

Hvis der bruges søg erstat så går det helt galt, meget bedre at bruge matlab editor eller word....

ZZZZZZZZZ nu vil jeg gå i seng efter 19 timer bag skærmen med mit afgangsprojekt... Must sleep 😴
Goaguy
 
Elitebruger
Tilføjet:
29-05-2008 02:36:11
Svar/Indlæg:
3410/199
Ren interesse: Hvad er det helt præcis, du sidder og laver? 🙂


Stumpii
 
Elitebruger
Tilføjet:
29-05-2008 09:40:18
Svar/Indlæg:
1541/132
37000 linier, sQ ikke så lidt 😛

Er det noget vi kommer til at kunne se? 😀


Stumpii
 
Elitebruger
Tilføjet:
29-05-2008 09:40:42
Svar/Indlæg:
1541/132
Edit: Det vel en hjemmeside eller noget? 😎


NickKokkedal
 
Superbruger
Tilføjet:
29-05-2008 12:56:21
Svar/Indlæg:
2600/84
ascii porn?


NoNig
 
Elitebruger
Tilføjet:
29-05-2008 13:03:29
Svar/Indlæg:
23132/740
-> #4

You filthy stinkin' dirty hobo of an ape 🤣

- ... men tænkte det samme 😲 😳 😛


Satai
 
Overclocker
Tilføjet:
29-05-2008 13:26:45
Svar/Indlæg:
700/28
Brug notepad++ eller pspad


micma18
 
Elitebruger
Tilføjet:
29-05-2008 15:02:58
Svar/Indlæg:
4120/115
UltraEdit


micma18
 
Elitebruger
Tilføjet:
29-05-2008 15:02:58
Svar/Indlæg:
4120/115
UltraEdit


DjeavleN
 
Elitebruger
Tilføjet:
29-05-2008 20:17:59
Svar/Indlæg:
2959/206
EditPlus?


hamderD
 
Elitebruger
Tilføjet:
29-05-2008 20:32:02
Svar/Indlæg:
7263/260
skal vi ikke lige lade manden sove lidt først?, er sikker på han svare i tråden.


ZnarF
 
Elitebruger
Tilføjet:
30-05-2008 23:37:01
Svar/Indlæg:
1058/59
#2 Selvfølgelig kan du få lov til at se. Det er kode til at program der simulerer brand.
Jeg er prøver at finde den maksimale brandstørrelse (kW) for en brand i en plejebolig. Jeg modellerer alle møbler i kasse af 5x5 cm! så det er ret kedelig kode. Generer det meste i matlab

Programmet jeg bruger ligger på www.fds-smv.net og er open source 🙂

#4 ASCII porn??? 🤣

#6-#9 Vil lige prøve dem, ellers må jeg over nogle af de gode gamle linux editorer



Stumpii
 
Elitebruger
Tilføjet:
30-05-2008 23:38:55
Svar/Indlæg:
1541/132
#11 Nice, det ser jeg frem til :yes:


Stumpii
 
Elitebruger
Tilføjet:
30-05-2008 23:39:22
Svar/Indlæg:
1541/132
Edit: har du fået sovet ud? 😛


ZnarF
 
Elitebruger
Tilføjet:
30-05-2008 23:42:48
Svar/Indlæg:
1058/59
Nope, fik 5 timer inden ungen vågnede... så tænkte jeg at så kunne jeg lige så godt stå op, men er på vej i seng igen 🙂

Lidt kode:
//-----------------------------------------------------------------------------------------------------------------------------------------
//---- SETUP DESCRIPTION ------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

&HEAD CHID='Plejebolig_seng' /
&TITLE='Plejebolig - brand i seng' /

//-----------------------------------------------------------------------------------------------------------------------------------------
//---- TIME DOMAIN ------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

&TIME TWFIN=900 /

//-----------------------------------------------------------------------------------------------------------------------------------------
//---- GRID -------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

//GRID #1 576.000 CELLS (COARSE MESH)
&MESH IJK=34,40,23, XB=000.000,003.400,000.000,004.000,000.000,002.300/2.3m lofthøjde

//GRID #2 576.000 CELLS (COARSE MESH)
&MESH IJK=34,40,23, XB=003.400,006.800,000.000,004.000,000.000,002.300/2.3m lofthøjde

//GRID #3: 576 CELLS
MESH IJK=004,16,09, XB=-001.000,000.000,000.000,004.000,000.000,002.250/2.3m lofthøjde
&MESH IJK=010,40,23, XB=-001.000,000.000,000.000,004.000,000.000,002.30/2.3m lofthøjde

//GRID #4: 576 CELLS
MESH IJK=31,04,09, XB=-001.000,006.750,004.000,005.000,000.000,002.250/2.3m lofthøjde
&MESH IJK=75,10,23, XB=-001.000,006.500,004.000,005.000,000.000,002.3/2.3m lofthøjde
//-----------------------------------------------------------------------------------------------------------------------------------------
//---- MISCELLANEOUS ----------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

&MISC CSMAG=0.2
PR=0.5
RADIATION=.TRUE.
TMPA=20
RESTART=.FALSE.
BNDF_DEFAULT=.FALSE.
SURF_DEFAULT='OPEN'/

&RADI TIME_STEP_INCREMENT=12,ANGLE_INCREMENT= 20 /

//-----------------------------------------------------------------------------------------------------------------------------------------
//---- REACTIONS --------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

Har jeg lige cuttet ud, det er en model jeg har fået af et firma...

//-----------------------------------------------------------------------------------------------------------------------------------------
//---- MATERIALS --------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

&MATL ID = 'CFD_GYPSUM'
FYI = 'TEKNISK STÅBI - 18. UDGAVE'
CONDUCTIVITY = 1.700
SPECIFIC_HEAT = 1.1
DENSITY = 1200
CONDUCTIVITY = 0.5 /

&MATL ID = 'REOL'
og så videre...

//-----------------------------------------------------------------------------------------------------------------------------------------
//---- SURFACES --------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

&SURF ID = 'CFD_ADIABATIC'
ADIABATIC = .TRUE.
RGB = 256,256,256 /

&SURF ID = 'CFD_GYPSUM_H'
MATL_ID = 'CFD_GYPSUM'
RGB = 169,169,169
THICKNESS = 0.10 /
og igen er der mange flere... men regner ikke med at nogen får noget ud af det...

//-----------------------------------------------------------------------------------------------------------------------------------------
//---- DESIGNFIRE -------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------

&SURF ID = 'FIRE'
HRRPUA = 1600.
RGB = 256,0,0/
&OBST XB=004.250,004.500,000.400,000.650,000.000,000.500,SURF_IDs='FIRE','CFD_ADIABATIC','CFD_ADIABATIC'/

//-----------------------------------------------------------------------------------------------------------------------------------------
//---- VENTS AND OBST (INTERIOR DOMAIN) ---------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------
//CEILING
&OBST XB=000.000,006.750,000.000,004.000,002.300,002.300,SURF_ID='CFD_GYPSUM_H', OUTLINE=.TRUE./

// WALLS
&OBST XB=000.000,006.750,000.000,000.000,000.000,002.300,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./

&OBST XB=000.000,006.750,004.000,004.000,000.000,001.000,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./
&OBST XB=000.000,006.750,004.000,004.000,002.100,002.300,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./
&OBST XB=000.000,001.750,004.000,004.000,001.000,002.100,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./
&OBST XB=002.700,005.550,004.000,004.000,001.000,002.100,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./
&OBST XB=006.500,006.750,004.000,004.000,001.000,002.100,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./

&OBST XB=000.000,000.000,000.000,004.000,000.000,002.300,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./
&OBST XB=006.750,006.750,000.000,004.000,000.000,002.300,SURF_ID='CFD_GYPSUM_V', OUTLINE=.TRUE./

//LETTER TRAY
&OBST XB=000.250,000.530,001.750,002.100,000.700,000.780,SURF_ID='LETTER_TRAY'/
HOLE XB=000.260,000.540,001.760,002.050,000.710,000.790/
&OBST XB=000.250,000.530,001.750,002.100,000.800,000.880,SURF_ID='LETTER_TRAY'/
HOLE XB=000.260,000.540,001.760,002.050,000.810,000.790/
&OBST XB=000.250,000.530,001.750,002.100,000.900,000.980,SURF_ID='LETTER_TRAY'/
HOLE XB=000.260,000.540,001.760,002.050,000.910,000.990/
//FLOOR

// REOL
&OBST XB=0.000,0.050,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.050,0.100,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.100,0.150,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.150,0.200,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.200,0.250,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.250,0.300,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.300,0.350,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.350,0.400,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.400,0.450,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.450,0.500,0.750,0.800,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.000,0.050,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.050,0.100,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.100,0.150,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.150,0.200,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.200,0.250,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.250,0.300,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.300,0.350,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.350,0.400,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.400,0.450,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.450,0.500,0.800,0.850,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.000,0.050,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.050,0.100,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.100,0.150,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.150,0.200,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.200,0.250,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.250,0.300,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.300,0.350,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.350,0.400,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.400,0.450,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.450,0.500,0.850,0.900,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.000,0.050,0.900,0.950,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.050,0.100,0.900,0.950,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.100,0.150,0.900,0.950,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.150,0.200,0.900,0.950,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.200,0.250,0.900,0.950,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.250,0.300,0.900,0.950,0.000,0.050, SURF_ID='REOL' /
&OBST XB=0.300,0.350,0.900,0.950,0.000,0.050, SURF_ID='REOL' /

Det var så det mest spændende, så fortsætter det derudaf indtil jeg definerer output...


Stumpii
 
Elitebruger
Tilføjet:
30-05-2008 23:44:32
Svar/Indlæg:
1541/132
#14 Nice nok 😀 Men jeg tror bare lige jeg holder mig til html og php, alt hjemmeside haløjet, det der er vidst for viderekommende 🤡


ZnarF
 
Elitebruger
Tilføjet:
30-05-2008 23:44:51
Svar/Indlæg:
1058/59
Nå ja... alt andet end møblerne har jeg selv skrevet og fundet værdier på... tog rimelig lang tid, man kan ikke finde værdierne i en samlet tabel...


Stumpii
 
Elitebruger
Tilføjet:
30-05-2008 23:47:56
Svar/Indlæg:
1541/132
#16 okay:/ Men det ligner (for mig som ikke forstår det) et godt stykke arbejde 😀


ZnarF
 
Elitebruger
Tilføjet:
30-05-2008 23:50:52
Svar/Indlæg:
1058/59
#17 Takker 🙂 Jeg håber min vejleder og censor synes det samme 😀


Stumpii
 
Elitebruger
Tilføjet:
30-05-2008 23:54:45
Svar/Indlæg:
1541/132
#18 Ellers må du bare hilse fra mig, jeg er jo berømt 😉