source file: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dateutil/relativedelta.py
file stats: 368 lines, 44 executed: 12.0% covered
1. # -*- coding: utf-8 -*- 2. import datetime 3. import calendar 4. 5. import operator 6. from math import copysign 7. 8. from six import integer_types 9. from warnings import warn 10. 11. __all__ = ["relativedelta", "MO", "TU", "WE", "TH", "FR", "SA", "SU"] 12. 13. 14. class weekday(object): 15. __slots__ = ["weekday", "n"] 16. 17. def __init__(self, weekday, n=None): 18. self.weekday = weekday 19. self.n = n 20. 21. def __call__(self, n): 22. if n == self.n: 23. return self 24. else: 25. return self.__class__(self.weekday, n) 26. 27. def __eq__(self, other): 28. try: 29. if self.weekday != other.weekday or self.n != other.n: 30. return False 31. except AttributeError: 32. return False 33. return True 34. 35. def __repr__(self): 36. s = ("MO", "TU", "WE", "TH", "FR", "SA", "SU")[self.weekday] 37. if not self.n: 38. return s 39. else: 40. return "%s(%+d)" % (s, self.n) 41. 42. MO, TU, WE, TH, FR, SA, SU = weekdays = tuple([weekday(x) for x in range(7)]) 43. 44. 45. class relativedelta(object): 46. """ 47. The relativedelta type is based on the specification of the excellent 48. work done by M.-A. Lemburg in his 49. `mx.DateTime <http://www.egenix.com/files/python/mxDateTime.html>`_ extension. 50. However, notice that this type does *NOT* implement the same algorithm as 51. his work. Do *NOT* expect it to behave like mx.DateTime's counterpart. 52. 53. There are two different ways to build a relativedelta instance. The 54. first one is passing it two date/datetime classes:: 55. 56. relativedelta(datetime1, datetime2) 57. 58. The second one is passing it any number of the following keyword arguments:: 59. 60. relativedelta(arg1=x,arg2=y,arg3=z...) 61. 62. year, month, day, hour, minute, second, microsecond: 63. Absolute information (argument is singular); adding or subtracting a 64. relativedelta with absolute information does not perform an aritmetic 65. operation, but rather REPLACES the corresponding value in the 66. original datetime with the value(s) in relativedelta. 67. 68. years, months, weeks, days, hours, minutes, seconds, microseconds: 69. Relative information, may be negative (argument is plural); adding 70. or subtracting a relativedelta with relative information performs 71. the corresponding aritmetic operation on the original datetime value 72. with the information in the relativedelta. 73. 74. weekday: 75. One of the weekday instances (MO, TU, etc). These instances may 76. receive a parameter N, specifying the Nth weekday, which could 77. be positive or negative (like MO(+1) or MO(-2). Not specifying 78. it is the same as specifying +1. You can also use an integer, 79. where 0=MO. 80. 81. leapdays: 82. Will add given days to the date found, if year is a leap 83. year, and the date found is post 28 of february. 84. 85. yearday, nlyearday: 86. Set the yearday or the non-leap year day (jump leap days). 87. These are converted to day/month/leapdays information. 88. 89. Here is the behavior of operations with relativedelta: 90. 91. 1. Calculate the absolute year, using the 'year' argument, or the 92. original datetime year, if the argument is not present. 93. 94. 2. Add the relative 'years' argument to the absolute year. 95. 96. 3. Do steps 1 and 2 for month/months. 97. 98. 4. Calculate the absolute day, using the 'day' argument, or the 99. original datetime day, if the argument is not present. Then, 100. subtract from the day until it fits in the year and month 101. found after their operations. 102. 103. 5. Add the relative 'days' argument to the absolute day. Notice 104. that the 'weeks' argument is multiplied by 7 and added to 105. 'days'. 106. 107. 6. Do steps 1 and 2 for hour/hours, minute/minutes, second/seconds, 108. microsecond/microseconds. 109. 110. 7. If the 'weekday' argument is present, calculate the weekday, 111. with the given (wday, nth) tuple. wday is the index of the 112. weekday (0-6, 0=Mon), and nth is the number of weeks to add 113. forward or backward, depending on its signal. Notice that if 114. the calculated date is already Monday, for example, using 115. (0, 1) or (0, -1) won't change the day. 116. """ 117. 118. def __init__(self, dt1=None, dt2=None, 119. years=0, months=0, days=0, leapdays=0, weeks=0, 120. hours=0, minutes=0, seconds=0, microseconds=0, 121. year=None, month=None, day=None, weekday=None, 122. yearday=None, nlyearday=None, 123. hour=None, minute=None, second=None, microsecond=None): 124. 125. # Check for non-integer values in integer-only quantities 126. if any(x is not None and x != int(x) for x in (years, months)): 127. raise ValueError("Non-integer years and months are " 128. "ambiguous and not currently supported.") 129. 130. if dt1 and dt2: 131. # datetime is a subclass of date. So both must be date 132. if not (isinstance(dt1, datetime.date) and 133. isinstance(dt2, datetime.date)): 134. raise TypeError("relativedelta only diffs datetime/date") 135. 136. # We allow two dates, or two datetimes, so we coerce them to be 137. # of the same type 138. if (isinstance(dt1, datetime.datetime) != 139. isinstance(dt2, datetime.datetime)): 140. if not isinstance(dt1, datetime.datetime): 141. dt1 = datetime.datetime.fromordinal(dt1.toordinal()) 142. elif not isinstance(dt2, datetime.datetime): 143. dt2 = datetime.datetime.fromordinal(dt2.toordinal()) 144. 145. self.years = 0 146. self.months = 0 147. self.days = 0 148. self.leapdays = 0 149. self.hours = 0 150. self.minutes = 0 151. self.seconds = 0 152. self.microseconds = 0 153. self.year = None 154. self.month = None 155. self.day = None 156. self.weekday = None 157. self.hour = None 158. self.minute = None 159. self.second = None 160. self.microsecond = None 161. self._has_time = 0 162. 163. # Get year / month delta between the two 164. months = (dt1.year - dt2.year) * 12 + (dt1.month - dt2.month) 165. self._set_months(months) 166. 167. # Remove the year/month delta so the timedelta is just well-defined 168. # time units (seconds, days and microseconds) 169. dtm = self.__radd__(dt2) 170. 171. # If we've overshot our target, make an adjustment 172. if dt1 < dt2: 173. compare = operator.gt 174. increment = 1 175. else: 176. compare = operator.lt 177. increment = -1 178. 179. while compare(dt1, dtm): 180. months += increment 181. self._set_months(months) 182. dtm = self.__radd__(dt2) 183. 184. # Get the timedelta between the "months-adjusted" date and dt1 185. delta = dt1 - dtm 186. self.seconds = delta.seconds + delta.days * 86400 187. self.microseconds = delta.microseconds 188. else: 189. # Relative information 190. self.years = years 191. self.months = months 192. self.days = days + weeks * 7 193. self.leapdays = leapdays 194. self.hours = hours 195. self.minutes = minutes 196. self.seconds = seconds 197. self.microseconds = microseconds 198. 199. # Absolute information 200. self.year = year 201. self.month = month 202. self.day = day 203. self.hour = hour 204. self.minute = minute 205. self.second = second 206. self.microsecond = microsecond 207. 208. if any(x is not None and int(x) != x 209. for x in (year, month, day, hour, 210. minute, second, microsecond)): 211. # For now we'll deprecate floats - later it'll be an error. 212. warn("Non-integer value passed as absolute information. " + 213. "This is not a well-defined condition and will raise " + 214. "errors in future versions.", DeprecationWarning) 215. 216. 217. if isinstance(weekday, integer_types): 218. self.weekday = weekdays[weekday] 219. else: 220. self.weekday = weekday 221. 222. yday = 0 223. if nlyearday: 224. yday = nlyearday 225. elif yearday: 226. yday = yearday 227. if yearday > 59: 228. self.leapdays = -1 229. if yday: 230. ydayidx = [31, 59, 90, 120, 151, 181, 212, 231. 243, 273, 304, 334, 366] 232. for idx, ydays in enumerate(ydayidx): 233. if yday <= ydays: 234. self.month = idx+1 235. if idx == 0: 236. self.day = yday 237. else: 238. self.day = yday-ydayidx[idx-1] 239. break 240. else: 241. raise ValueError("invalid year day (%d)" % yday) 242. 243. self._fix() 244. 245. def _fix(self): 246. if abs(self.microseconds) > 999999: 247. s = _sign(self.microseconds) 248. div, mod = divmod(self.microseconds * s, 1000000) 249. self.microseconds = mod * s 250. self.seconds += div * s 251. if abs(self.seconds) > 59: 252. s = _sign(self.seconds) 253. div, mod = divmod(self.seconds * s, 60) 254. self.seconds = mod * s 255. self.minutes += div * s 256. if abs(self.minutes) > 59: 257. s = _sign(self.minutes) 258. div, mod = divmod(self.minutes * s, 60) 259. self.minutes = mod * s 260. self.hours += div * s 261. if abs(self.hours) > 23: 262. s = _sign(self.hours) 263. div, mod = divmod(self.hours * s, 24) 264. self.hours = mod * s 265. self.days += div * s 266. if abs(self.months) > 11: 267. s = _sign(self.months) 268. div, mod = divmod(self.months * s, 12) 269. self.months = mod * s 270. self.years += div * s 271. if (self.hours or self.minutes or self.seconds or self.microseconds 272. or self.hour is not None or self.minute is not None or 273. self.second is not None or self.microsecond is not None): 274. self._has_time = 1 275. else: 276. self._has_time = 0 277. 278. @property 279. def weeks(self): 280. return self.days // 7 281. @weeks.setter 282. def weeks(self, value): 283. self.days = self.days - (self.weeks * 7) + value * 7 284. 285. def _set_months(self, months): 286. self.months = months 287. if abs(self.months) > 11: 288. s = _sign(self.months) 289. div, mod = divmod(self.months * s, 12) 290. self.months = mod * s 291. self.years = div * s 292. else: 293. self.years = 0 294. 295. def normalized(self): 296. """ 297. Return a version of this object represented entirely using integer 298. values for the relative attributes. 299. 300. >>> relativedelta(days=1.5, hours=2).normalized() 301. relativedelta(days=1, hours=14) 302. 303. :return: 304. Returns a :class:`dateutil.relativedelta.relativedelta` object. 305. """ 306. # Cascade remainders down (rounding each to roughly nearest microsecond) 307. days = int(self.days) 308. 309. hours_f = round(self.hours + 24 * (self.days - days), 11) 310. hours = int(hours_f) 311. 312. minutes_f = round(self.minutes + 60 * (hours_f - hours), 10) 313. minutes = int(minutes_f) 314. 315. seconds_f = round(self.seconds + 60 * (minutes_f - minutes), 8) 316. seconds = int(seconds_f) 317. 318. microseconds = round(self.microseconds + 1e6 * (seconds_f - seconds)) 319. 320. # Constructor carries overflow back up with call to _fix() 321. return self.__class__(years=self.years, months=self.months, 322. days=days, hours=hours, minutes=minutes, 323. seconds=seconds, microseconds=microseconds, 324. leapdays=self.leapdays, year=self.year, 325. month=self.month, day=self.day, 326. weekday=self.weekday, hour=self.hour, 327. minute=self.minute, second=self.second, 328. microsecond=self.microsecond) 329. 330. def __add__(self, other): 331. if isinstance(other, relativedelta): 332. return self.__class__(years=other.years + self.years, 333. months=other.months + self.months, 334. days=other.days + self.days, 335. hours=other.hours + self.hours, 336. minutes=other.minutes + self.minutes, 337. seconds=other.seconds + self.seconds, 338. microseconds=(other.microseconds + 339. self.microseconds), 340. leapdays=other.leapdays or self.leapdays, 341. year=other.year or self.year, 342. month=other.month or self.month, 343. day=other.day or self.day, 344. weekday=other.weekday or self.weekday, 345. hour=other.hour or self.hour, 346. minute=other.minute or self.minute, 347. second=other.second or self.second, 348. microsecond=(other.microsecond or 349. self.microsecond)) 350. if not isinstance(other, datetime.date): 351. raise TypeError("unsupported type for add operation") 352. elif self._has_time and not isinstance(other, datetime.datetime): 353. other = datetime.datetime.fromordinal(other.toordinal()) 354. year = (self.year or other.year)+self.years 355. month = self.month or other.month 356. if self.months: 357. assert 1 <= abs(self.months) <= 12 358. month += self.months 359. if month > 12: 360. year += 1 361. month -= 12 362. elif month < 1: 363. year -= 1 364. month += 12 365. day = min(calendar.monthrange(year, month)[1], 366. self.day or other.day) 367. repl = {"year": year, "month": month, "day": day} 368. for attr in ["hour", "minute", "second", "microsecond"]: 369. value = getattr(self, attr) 370. if value is not None: 371. repl[attr] = value 372. days = self.days 373. if self.leapdays and month > 2 and calendar.isleap(year): 374. days += self.leapdays 375. ret = (other.replace(**repl) 376. + datetime.timedelta(days=days, 377. hours=self.hours, 378. minutes=self.minutes, 379. seconds=self.seconds, 380. microseconds=self.microseconds)) 381. if self.weekday: 382. weekday, nth = self.weekday.weekday, self.weekday.n or 1 383. jumpdays = (abs(nth) - 1) * 7 384. if nth > 0: 385. jumpdays += (7 - ret.weekday() + weekday) % 7 386. else: 387. jumpdays += (ret.weekday() - weekday) % 7 388. jumpdays *= -1 389. ret += datetime.timedelta(days=jumpdays) 390. return ret 391. 392. def __radd__(self, other): 393. return self.__add__(other) 394. 395. def __rsub__(self, other): 396. return self.__neg__().__radd__(other) 397. 398. def __sub__(self, other): 399. if not isinstance(other, relativedelta): 400. raise TypeError("unsupported type for sub operation") 401. return self.__class__(years=self.years - other.years, 402. months=self.months - other.months, 403. days=self.days - other.days, 404. hours=self.hours - other.hours, 405. minutes=self.minutes - other.minutes, 406. seconds=self.seconds - other.seconds, 407. microseconds=self.microseconds - other.microseconds, 408. leapdays=self.leapdays or other.leapdays, 409. year=self.year or other.year, 410. month=self.month or other.month, 411. day=self.day or other.day, 412. weekday=self.weekday or other.weekday, 413. hour=self.hour or other.hour, 414. minute=self.minute or other.minute, 415. second=self.second or other.second, 416. microsecond=self.microsecond or other.microsecond) 417. 418. def __neg__(self): 419. return self.__class__(years=-self.years, 420. months=-self.months, 421. days=-self.days, 422. hours=-self.hours, 423. minutes=-self.minutes, 424. seconds=-self.seconds, 425. microseconds=-self.microseconds, 426. leapdays=self.leapdays, 427. year=self.year, 428. month=self.month, 429. day=self.day, 430. weekday=self.weekday, 431. hour=self.hour, 432. minute=self.minute, 433. second=self.second, 434. microsecond=self.microsecond) 435. 436. def __bool__(self): 437. return not (not self.years and 438. not self.months and 439. not self.days and 440. not self.hours and 441. not self.minutes and 442. not self.seconds and 443. not self.microseconds and 444. not self.leapdays and 445. self.year is None and 446. self.month is None and 447. self.day is None and 448. self.weekday is None and 449. self.hour is None and 450. self.minute is None and 451. self.second is None and 452. self.microsecond is None) 453. # Compatibility with Python 2.x 454. __nonzero__ = __bool__ 455. 456. def __mul__(self, other): 457. f = float(other) 458. return self.__class__(years=int(self.years * f), 459. months=int(self.months * f), 460. days=int(self.days * f), 461. hours=int(self.hours * f), 462. minutes=int(self.minutes * f), 463. seconds=int(self.seconds * f), 464. microseconds=int(self.microseconds * f), 465. leapdays=self.leapdays, 466. year=self.year, 467. month=self.month, 468. day=self.day, 469. weekday=self.weekday, 470. hour=self.hour, 471. minute=self.minute, 472. second=self.second, 473. microsecond=self.microsecond) 474. 475. __rmul__ = __mul__ 476. 477. def __eq__(self, other): 478. if not isinstance(other, relativedelta): 479. return False 480. if self.weekday or other.weekday: 481. if not self.weekday or not other.weekday: 482. return False 483. if self.weekday.weekday != other.weekday.weekday: 484. return False 485. n1, n2 = self.weekday.n, other.weekday.n 486. if n1 != n2 and not ((not n1 or n1 == 1) and (not n2 or n2 == 1)): 487. return False 488. return (self.years == other.years and 489. self.months == other.months and 490. self.days == other.days and 491. self.hours == other.hours and 492. self.minutes == other.minutes and 493. self.seconds == other.seconds and 494. self.microseconds == other.microseconds and 495. self.leapdays == other.leapdays and 496. self.year == other.year and 497. self.month == other.month and 498. self.day == other.day and 499. self.hour == other.hour and 500. self.minute == other.minute and 501. self.second == other.second and 502. self.microsecond == other.microsecond) 503. 504. def __ne__(self, other): 505. return not self.__eq__(other) 506. 507. def __div__(self, other): 508. return self.__mul__(1/float(other)) 509. 510. __truediv__ = __div__ 511. 512. def __repr__(self): 513. l = [] 514. for attr in ["years", "months", "days", "leapdays", 515. "hours", "minutes", "seconds", "microseconds"]: 516. value = getattr(self, attr) 517. if value: 518. l.append("{attr}={value:+g}".format(attr=attr, value=value)) 519. for attr in ["year", "month", "day", "weekday", 520. "hour", "minute", "second", "microsecond"]: 521. value = getattr(self, attr) 522. if value is not None: 523. l.append("{attr}={value}".format(attr=attr, value=repr(value))) 524. return "{classname}({attrs})".format(classname=self.__class__.__name__, 525. attrs=", ".join(l)) 526. 527. def _sign(x): 528. return int(copysign(1, x)) 529. 530. # vim:ts=4:sw=4:et


How to test that a job dispatches another job in Laravel
Written by Regis Freyd and published on August 15, 2020
Sometimes, in your Laravel application, you need a job that will dispatch other jobs. For instance, a cron that triggers a job to calculate the activity of all users, and this job triggers a single job for each user.
The only way to know if the second job gets triggered is to fake the Bus chain, using Queue::fake
at the beginning of your tests.
But if you do that, you will only test that the first job get dispatched. It will be dispatched, but not executed - therefore, the secondary jobs won’t be dispatched at all.
How do you test that all the secondary jobs were effectively dispatched?
Instead of calling the first job in a more traditional way, like FirstJob()::dispatch()
, we need to instantiate it and call both the dispatch() and handle() methods to actually bypass the fact that the first job isn't really dispatched thanks to the calling the Queue::fake() method.
Regis Freyd is a full-stack developer and product manager living in Montreal. He’s the author of the popular open source personal CRM Monica. You should follow him on Twitter.
Hi from Canada 🇨🇦
You are not being tracked. Analytics of this site are provided by Fathom, a privacy-friendly analytics tool.


Kitchener man arrested after four-and-a-half-hour police search in Guelph
Wellington OPP say the man was located and taken into custody without incident
by Ariel DeutschmannA 38-year-old Kitchener man is facing numerous charges following a four and a half hour police search in Guelph.
On the morning of Nov. 15th, Wellington County Ontario Provincial Police received a citizen report in the area of Fourth Line of a suspicious vehicle casing residences.
OPP say when they arrived on scene, the suspect allegedly left the vehicle and fled into the bush.
A containment area was setup by uniformed officers while the Wellington County OPP Canine Unit, Emergency Response Team Unit, OPP Aviation services and the Guelph Police Services Canine Unit investigated.
After four and a half hours, OPP say the suspect was located and taken into custody without incident.
Besides a series of charges, the suspect is also being held for a bail hearing.
No other details have been released.


CORONA VIRUS SENSITIZATION
A micro-credit finance institution
Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus. Most people infected with the COVID-19 virus will experience mild to moderate respiratory illness and recover without requiring special treatment. Older people, and those with underlying medical problems like cardiovascular disease, diabetes, chronic respiratory disease, and cancer are more likely to develop serious illness. The best way to prevent and slow down transmission is to be well informed about the COVID-19 virus, the disease it causes and how it spreads. Protect yourself and others from infection by washing your hands or using an alcohol based rub frequently and not touching your face. The COVID-19 virus spreads primarily through droplets of saliva or discharge from the nose when an infected person coughs or sneezes, so it’s important that you also practice respiratory etiquette (for example, by coughing into a flexed elbow).
Human coronaviruses, first characterized in the 1960s, are responsible for a substantial proportion of upper respiratory tract infections in children. Since 2003, at least 5 new human coronaviruses have been identified, including the severe acute respiratory syndrome coronavirus, which caused significant morbidity and mortality. NL63, representing a group of newly identified group I coronaviruses that includes NL and the New Haven coronavirus, has been identified worldwide. These viruses are associated with both upper and lower respiratory tract disease and are likely common human pathogens. The global distribution of a newly identified group II coronavirus, HKU1, has not yet been established. Coronavirology has advanced significantly in the past few years. The SARS epidemic put the animal coronaviruses in the spotlight. The background and history relative to this important and expanding research area are


| Package | com.threerings.util |
| Class | public class Assert |
Assert.isNotNull(mystack.top()); Assert.isTrue(mystack.length == 1, "Unexpected number of items on stack!");Deprecation notes: What we really want is a way to turn off assertions at compile time. We don't want folks who happen to be running a debug player to have their player exit. And why wouldn't you always want an exception if something's going to go wrong?
| Property | Defined by | ||
|---|---|---|---|
| dumpStack : Boolean = true [static] Controls whether stack dumps should be included in the error log (default value is true).
| Assert |
| Method | Defined by | ||
|---|---|---|---|
|
fail(message:String):void
[static] Displays an error message, with an optional stack trace.
| Assert | ||
|
isFalse(value:Boolean, message:String = null):void
[static] Asserts that the value is false.
| Assert | ||
|
isNotNull(value:Object, message:String = null):void
[static] Asserts that the value is not equal to null.
| Assert | ||
|
isNull(value:Object, message:String = null):void
[static] Asserts that the value is equal to null.
| Assert | ||
|
isTrue(value:Boolean, message:String = null):void
[static] Asserts that the value is true.
| Assert |
| _debug | property |
protected static var _debug:Boolean
| dumpStack | property |
public static var dumpStack:Boolean = true
Controls whether stack dumps should be included in the error log (default value is true).
| _log | property |
protected static var _log:Log
| fail | () | method |
public static function fail(message:String):void
Displays an error message, with an optional stack trace.
Parametersmessage:String |
| isFalse | () | method |
public static function isFalse(value:Boolean, message:String = null):void
Asserts that the value is false.
Parametersvalue:Boolean |
|
message:String (default = null )
|
| isNotNull | () | method |
public static function isNotNull(value:Object, message:String = null):void
Asserts that the value is not equal to null.
Parametersvalue:Object |
|
message:String (default = null )
|
| isNull | () | method |
public static function isNull(value:Object, message:String = null):void
Asserts that the value is equal to null.
Parametersvalue:Object |
|
message:String (default = null )
|
| isTrue | () | method |
public static function isTrue(value:Boolean, message:String = null):void
Asserts that the value is true.
Parametersvalue:Boolean |
|
message:String (default = null )
|


Connection Close Check Rule detects the usage of java.sql.Connection#close()
method call
Connection connection = null; try { connection = ...; // get the connection from the Platform; ...; // more code; connection.close(); } catch (SQLException sqlException) { connection.close(); ...; // more code; sqlException.printStackTrace(); } finally { connection.close(); ...; // more code; }
try (Connection connection = ...) { // get the connection from the Platform inside the try expression ...; // more code; } catch (SQLException sqlException) { logger.error("Failed to get the connection from Platform", sqlException); }


I've tried AMT (alphamethyltryptamine) about 10 times in the past but always with higher doses. I noticed that at 50mg the negative effects, 24 hour insomnia, unbearable body load, heavy perspiration, and uncomfortable nausea, made it not worth it to even take the drug. I figured maybe half the dose would give almost the same positive effects without the extreme negatives.
5pm: poured out a capsule of 25mg in water and drank solution. I also swallowed the gelcap in order to intake the leftover powder in the capsule.
5:45: began feeling a warm fuzzy feeling encompassing my body but mainly as sweat beginning at my forehead.
7pm: still am not peaking however the visuals have just begin to appear. Very mild but nonetheless visuals.
8pm: I think I have hit the peak: laughter comes very easy, peoples' faces are very distored and my face looks as though I am breaking out, however, my face always looks like that whenever I trip.
The experience was mild, I can still talk to my parents, however I have to watch what I say because the truth seems to slip out a lot easier.
2am: After drinking half a fifth of Soco and smoking some herb I find it very easy to fall asleep.
7am: Wake up the next morning feeling hung over from the alcohol rather than the AMT.... I think that is a good thing.
The point of my experience was just to see if a low dose of AMT was worth ingesting. It definately was.  Therefore, I recommend for first time users to start at a low dose, ie. 20-25 mg orally ingested and seeing what it does, then moving up depending on how hard you want to trip and how much negative effects you can stand.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


{% load static %}
My job is mostly lorem ipsuming and dolor sit ameting as long as consectetur adipiscing elit.
Sometimes quisque commodo massa gets in the way and sed ipsum porttitor facilisis.
The best thing about my job is that vestibulum id ligula porta felis euismod and nullam quis risus eget urna mollis ornare.
Thanks for visiting my profile.


The World Wide Web started early in the 1990s and has grown exponentially since then.
The Web consists of HTML documents, where hyperlinks connect the pages like a web.
HTML or hypertext markup language is the code that runs webpages like this one.
When a person goes to a web page like Google, their computer sends an HTTP request to a server.
The server finds the right HTML document, and sends it back to the person's computer to be displayed.
Tags
Tags are bits of HTML code that instruct the computer on what to do.
Many tags have an opening tag and a closing tag, but there are a expections to this rule, such as the
tag for a line break.
Tags tell the computer how an HTML document should look.
Inline or Block elements
Some HTML elements are known as inline because the formatting they create
appears inline with the text. Other elemetns are block elements because they make
an invisible box around the content that is placed inside the tags.

They literally take everything literally.
Stage 1
Tree like structure of HTML
HTML is structure a bit like a family tree. My parents had two kids, so there are two boxes underneath my parents box.
This forms the boxes of the webpage, which is the frame upon which all things on the web are hung.
Boxes, not Tubes
Everything on the web has a box that it fits into, and these boxes can be moved about on the page like pictures in a scrapbook.
There is an invisible grid that can be manipulated so make your HTML page look how you want it to look.
CSS
CSS stands for Cascading Style Sheets, which give coders a great way to control how their webpage looks.
By giving similar HTML elements the same class name, the CSS can tell the HTML what style it should use on that class.
Stage 2
Computer Science
Computer science is a scientific and practical approach to both problem solving and programming.
Thinking in a mechanical way, by breaking down problems into smaller pieces or steps that can be solved as you go.
A computer scientist specializes in the theory of computation and design.
Programming languages.
A computer program is simply a list of instructions that direct a computer on what to do and how to do it.
Because computers don't think, these instructions have to be very specific and in a specific language that the computer can understand.
These languages are programming languages, like C++ or Python. While it would be nice to use a language like english to program
a computer, our native languages are too ambigious for a computer to completely understand, until we achieve AI.
Python
Python is a "programming language." It is an easy way to write computer code that has established data structures and definitions.
Python is a common and accepted computer language that I'm only just beginning to understand completely.
Print function
The Print funciont within Python is the simpliest expression I know. It tells Python to print out the result or number that results
from the program as written. Spaces between the print funcion and the item printed on the line don't matter.
Variables
Names can be used to keep track of many things, from numbers to text. When creating a variable, you
give the variable a name and then assign it some expression. The = sign is used to assign a named variable it's expression.
For example, the Speed of Light = 29979245. Variables can be altered by what the program tells it the new variable is.
This is a powerful tool in making programs that can do many complicated things.
Other signs can be used to change the variables as well. The + sign will add something to the variable (ie: hours = hours + 1).
The * sign will do multiplication.
Strings
Strings are a sequence of characters between single or double quotes. The quote types much match.
The + sign can add things to strings as well. Python can locate parts of a string by using the [] function.
It is important to remember that Python starts counting from 0 and not 1 when it looks at a string.
So when trying to find the first letter in a string, it is going to be stringname[0] and not [1]. The : will allow
us to find parts of a string from the starting position, to the stopping position, [0:5] for example.
Find operation
The Find method can find any or all instances of what you are looking for in a string. The output of the find
is the position of the first occurance in the string. This is done with string.find(string). The find function can use
one or more parameters in it's find function, which greatly expands its use. Passing in a number can tell the find function
where in the string to start the search.
Functions and Inputs
The def funtion allows us to define a string using an input as entered by the user. Def string(n): allows us to define
a string by what we input into the program, which is n in this case, and since there is only one input, only one input will be accepted.
Def string(a,b,c) would be looking for 3 inputs when defining that string.
With these inputs, we can use programming to alter that string and print out or return new results.
When making functions, PRINT gives the value to the users as an output string and the program loses the value. Whereas,
RETURN will give the value back to the program, so that internal functions can still work.
Flows and Loops
If, While and For can make loops when programming in Python. This allows a function to occure over and over again
until some end function or endstate is met. If statements are like IF/THEN in basic. If a certain condition is met,
then return or print the outcome. If it is not met, then move to the next line of code. The While statement creates a loop
that will keep running, until the condition is shown to be false (while n < 0, for example). The For statement
will move through a collection of ready made inputs or lists and then completes.


Ernst & Young1
I developed a computer vision application using Flutter and machine learning. The app scans objects through the device's camera, identifies them using YOLOv8, and opens related user manuals. It was a rewarding experience in mobile app development and computer vision.
Innoval Digital Solutions Pvt Limited2
I had the opportunity to acquire practical experience in SAP ERP, with a focus on modules like SAP HRM, SAP PP, SAP MM, SAP FSCM, and SAP SD. My expertise includes data management, reporting, and business process integration. I am enthusiastic about applying these skills in the ever-evolving landscape of enterprise technology.
Zamroo: The Selling Application3
I worked as a software tester, responsible for ensuring the quality of both web application and mobile application. I created test plans, executed test cases, identified and reported bugs, and collaborated with the development team. Additionally, I maintained test documentation and explored test automation. It was a valuable experience in software testing and quality assurance.


23
1 Any male person whose reproductive organs have been destroyed may not be included as one of Yahweh's people.
2 No illegitimate person or descendant of an illegitimate person, extending to the tenth generation, shall be included as one of Yahweh's people.
3 No one from the Ammon or Moab people groups shall be included as one of Yahweh's people, extending to the tenth generation.
4 One reason for this is that their leaders refused to give your ancestors food and water when they were traveling from Egypt to Canaan. Another reason is that they paid Balaam son of Beor from the town of Pethor in Mesopotamia, to curse you Israelites.
5 But Yahweh our God did not pay attention to Balaam; instead, he caused Balaam to bless your ancestors, because Yahweh loved them.
6 As long as Israel is a nation, you must not do anything to cause things to go well for those two people groups to enable them to prosper.
7 But do not despise anyone from the Edom people group, because they are descendants of your ancestor Jacob, just like you are. And do not despise people from Egypt, because they treated your ancestors well when they first lived in Egypt.
8 The grandchildren of people from Edom and Egypt who live among you now may be included among Yahweh's people.
9 When your soldiers are living in camp in time of war, they must avoid doing things that would make them unacceptable to God.
10 If any soldier becomes unacceptable to God because semen comes out of his body during the night, the next morning he must go outside the camp and stay there during that day.
11 But in the evening of that day, he must bathe himself, and at sunset he will be allowed to come back into the camp.
12 Your soldiers must have a toilet area outside the camp where you can go when you need to.
13 When you go to fight against your enemies, carry a stick along along with your weapons, in order that when you need to defecate, you can dig a hole with the stick, and then cover up the hole when you have finished defecating.
14 You must keep the camp acceptable to Yahweh our God, because he is with you in your camp to protect you and to enable you to defeat your enemies. Do not do anything disgraceful that would cause Yahweh to abandon you.
15 If slaves who escape from their masters come to you and request you to protect them, do not send them back to their masters.
16 Allow them to stay among you, in whatever town they choose, and do not mistreat them.
17 Do not allow any Israelite man or woman to become prostitutes at the temple.
18 Also, do not allow any people who earned money from being a prostitute to bring any of that money into the temple of Yahweh our God, even if they solemnly promised to pay that money to him. Yahweh hates those who are prostitutes.
19 When you lend money or food or anything else to a fellow Israelite, do not charge them interest.
20 You are allowed to charge interest when you lend money to foreigners who live in your land, but not when you lend money to Israelites. Do this in order that Yahweh our God will bless you in everything that you do in the land that you are about to enter and occupy.
21 When you solemnly promise to give something to Yahweh your God or to do something for him, do not delay in doing it. Yahweh expects you to do what you promised, and if you do not do it, you will be committing a sin.
22 But if you do not solemnly promise to do something, that is not sinful.
23 But if you voluntarily promise to do something, you must do it.
24 When you walk through someone else's vineyard, you are allowed to pick and eat as many grapes as you want, but you must not put any in a container and take them away.
25 When you walk along a path in someone else's field of grain, you are allowed to pluck some of the grain and eat it, but you must not cut any grain with a sickle and take it with you.


Toggle navigation
Biosystems Group at UCSF
Home
(current)
Research
People
Collaboration
Links
Observations
Publications
News
Articles in Peer Reviewed Journals (Since 2004)
Peer Reviewed Articles in Proceedings (since 2004) & Book Chapters


Sarah Sanders eyes possible run for governor of Arkansas
by Associated PressHOT SPRINGS, Ark. (AP) — Former White House press secretary Sarah Sanders is laying the groundwork for a possible run for governor of Arkansas in 2022.
Sanders say she hasn’t made a decision yet regarding a race that’s three years away. But she is headlining GOP dinners around the state where she was born and raised and returned to last summer.
So far Sanders has stayed away from offering positions on many state issues, instead recounting her time in the White House for audiences.
Sanders has name recognition in the state thanks to her high-profile job in Washington and the praise she receives from President Donald Trump. But she’s also known as the daughter of a long-serving former governor, Mike Huckabee.
Sanders is a Fox News contributor and has a book coming out next year.


This page has a selection of projects I created at Epicodus.
An attempt at immitating the styling of wikipedia and an introduction to bootstrap classes created using the following technologies:
A mockup of a simple Animal Shelter adoption page created using the following technologies:


## Accessing Databases via Web APIs --- ## What is an API? * API stands for **Application Programming Interface** * a set of rules and procedures that facilitate interactions between computers and their applications --- ## Web APIs * allows users to query a remote database over the internet * take on a variety of formats * majority adhere to a particular style known as **Reperesentational State Transfer** or **REST** * "RESTful" APIs are conveinent because we can use them to query databases using URLs --- ## RESTful Web APIs are All Around You... Consider a simple Google search. Go ahead and search something. Ever wonder what all that extra stuff in the address bar was all about? --- ## RESTful Web APIs are All Around You... It looks like Google makes its query by taking the search terms, separating each of them with a "`+`", and appending them to the link: `https://www.google.com/#q=` So that we have `https://www.google.com/#q=search1+search2` So can change our Google search by adding some terms to the URL. --- ## Some Basic Terminology: URL * Uniform Resource Location * a string of characters that, when interpreted via the Hypertext Transfer Protocol (HTTP) * points to a data resource, notably files written in Hypertext Markup Language (HTML) or a subset of a database. --- ## Some Basic Terminology: HTTP Methods / Verbs * *GET*: requests a representation of a data resource corresponding to a particular URL. The process of executing the GET method is often referred to as a "GET request" and is the main method used for querying RESTful databases. * *HEAD*, *POST*, *PUT*, *DELETE*: other common methods, though mostly never used for database querying. --- ## How Do GET Requests Work? A Web Browsing Example * Surfing the Web = Making a bunch of GET Requests * For instance, I open my web browser and type in http://www.wikipedia.org. Once I hit return, I'd see a webpage. * Several different processes occured, however, between me hitting "return" and the page finally being rendered. --- ## Step 1: The GET Request * web browser took the entered character string * used the command-line tool "Curl" to write a properly formatted HTTP GET request * submitted it to the server that hosts the Wikipedia homepage. --- ## STEP 2: The Response * Wikipedia's server receives this request * send back an HTTP response * from which Curl extracted the HTML code for the page ```{html} [1] "\n\n\n\n
\n
Wikipedia
\n\n


Add
Create Folder
Upload File
Sign Up
Log in
Log out
New Notification
Themes
Default
Amelia
Cosmo
Configuration
Show Hidden Files


PRIMAL FEAR (1996)
A film review by Steve Kong Copyright 1997 Steve Kong
Primal Fear is a movie in which Richard Gere gives one of his best performances yet. Primal Fear is more than just a show case for Richard Gere's acting abilities, it also show cases the acting abilities of all the supporting cast, including one great performance by Edward Norton.
Primal Fear follows the life of Martin Vail (Richard Gere) who is a high profile lawyer that is known to most all in the city of Chicago and gets magazine cover interviews. Vail chases high profile cases instead of ambulances, he believes that everyone should get a good defense, and he doesn't care if the person is guilty or not, he just wants to defend them. That is until he runs in to Aaron Stampler, who is accused of the murder of the Archbishop of the church where Stampler is an altar boy.
Primal Fear has many threads running throughout the movie, and eventually the all tie together, but it is not so obvious how they will. The script for Primal Fear is literate and does not treat the audience like idiots.
This movie serves to show case the acting talents of more than just Richard Gere. Along with Edward Norton as Aaron Stampler, Laura Linney, John Mahoney, Alfre Woodard, Frances McDormand all give well balanced performances throughout the film.
I highly recommend Primal Fear, it is a smart well written film that is can't be missed.
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=! steve kong<EMAIL_ADDRESS>spy on me at: http://home.earthlink.net/~boiled/steve-cam.html movie reviews: http://www.geocities.com/Hollywood/Lot/2259/ "try not. do. or do not. there is no try." - yoda !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


1 /** 2 * The top-level Protovis namespace. All public methods and fields should be 3 * registered on this object. Note that core Protovis source is surrounded by an 4 * anonymous function, so any other declared globals will not be visible outside 5 * of core methods. This also allows multiple versions of Protovis to coexist, 6 * since each version will see their own <tt>pv</tt> namespace. 7 * 8 * @namespace The top-level Protovis namespace, <tt>pv</tt>. 9 */ 10 var pv = {}; 11 12 /** 13 * Protovis major and minor version numbers. 14 * 15 * @namespace Protovis major and minor version numbers. 16 */ 17 pv.version = { 18 /** 19 * The major version number. 20 * 21 * @type number 22 * @constant 23 */ 24 major: 3, 25 26 /** 27 * The minor version number. 28 * 29 * @type number 30 * @constant 31 */ 32 minor: 2 33 }; 34 35 /** 36 * Returns the passed-in argument, <tt>x</tt>; the identity function. This method 37 * is provided for convenience since it is used as the default behavior for a 38 * number of property functions. 39 * 40 * @param x a value. 41 * @returns the value <tt>x</tt>. 42 */ 43 pv.identity = function(x) { return x; }; 44 45 /** 46 * Returns <tt>this.index</tt>. This method is provided for convenience for use 47 * with scales. For example, to color bars by their index, say: 48 * 49 *
.fillStyle(pv.Colors.category10().by(pv.index))
 50 * 51 * This method is equivalent to <tt>function() this.index</tt>, but more 52 * succinct. Note that the <tt>index</tt> property is also supported for 53 * accessor functions with {@link pv.max}, {@link pv.min} and other array 54 * utility methods. 55 * 56 * @see pv.Scale 57 * @see pv.Mark#index 58 */ 59 pv.index = function() { return this.index; }; 60 61 /** 62 * Returns <tt>this.childIndex</tt>. This method is provided for convenience for 63 * use with scales. For example, to color bars by their child index, say: 64 * 65 *
.fillStyle(pv.Colors.category10().by(pv.child))
 66 * 67 * This method is equivalent to <tt>function() this.childIndex</tt>, but more 68 * succinct. 69 * 70 * @see pv.Scale 71 * @see pv.Mark#childIndex 72 */ 73 pv.child = function() { return this.childIndex; }; 74 75 /** 76 * Returns <tt>this.parent.index</tt>. This method is provided for convenience 77 * for use with scales. This method is provided for convenience for use with 78 * scales. For example, to color bars by their parent index, say: 79 * 80 *
.fillStyle(pv.Colors.category10().by(pv.parent))
 81 * 82 * Tthis method is equivalent to <tt>function() this.parent.index</tt>, but more 83 * succinct. 84 * 85 * @see pv.Scale 86 * @see pv.Mark#index 87 */ 88 pv.parent = function() { return this.parent.index; }; 89 90 /** 91 * Stores the current event. This field is only set within event handlers. 92 * 93 * @type Event 94 * @name pv.event 95 */ 96


| Location |
| Located about 21 miles (33 km) north of Chiclayo, or about 30 minutes via car |
| Phone Number |
| (51)(074)-507989 |
| Address |
| Campiña San Antonio, 1 Km al Este del Pueblo de Túcume, Túcume, Lambayeque, Peru |
|<EMAIL_ADDRESS>|
| Website |
| www.museodesitiotucume.org |
| Hours |
| Monday- Sunday, 8:00 AM- 4:30 PM |
| Price |
|
Adults: 8 Soles University Students: 3 Soles Children: 1 Sol Guide Service: 30 soles for up to 15 people (plus tip) |
| English/Spanish Tours |
| They have tour guides at Túcume you can hire out. It is hit or miss whether the English-speaking guides will be working, so you will want to hire a guide from a separate travel agency to be sure they speak English. |
| Time It Takes |
| About 3-4 hours (plus transportation time) |
| Bathrooms |
| Yes |
| Gift Shop |
| They sell artisan work in their gift shop. In addition, they have a small snack bar right next to the amphitheater. |
| Activities |
| -El Pueblito de Los Ninos: a pathway that leads you through a small children’s pueblo, past rice fields and various animals. - El Purgatorio Hill: climb to the top of this hill for a spectacular view of the whole city and its surrounding area. This hill is considered sacred by the locals, and is utilized by local “healing wizards” for weekly rituals. - Huaca Las Balsas: an archaeological find associated with residential living. A tent and raised walkway allow visitors to admire the beautiful motifs and carvings on the adobe walls. It provides another gift shop, bathrooms, and a small snack bar. |
| Interesting Facts |
| - Local shaman healers (or “curanderos”) utilize shamanic techniques and thehallucinogen San Pedro cactus in their weekly rituals on top of Purgatory Hill. Local people fear the site, causing Túcume to be one of the few ancient archaeological sites in the area to have never been hit by grave robbers. - Túcume has been a hot spot for archaeologists, as 119 skeletons were found in one of the temples there. This seems like almost indisputable evidence of human sacrifice rituals, which may have been made in an attempts to stop the Spanish invasion of 1532. - One of the huacas, Huaca Larga, was over 7 football fields long and is the largest adobe structure known of in the world. |


This document is a scripting exercise! Click the buttons to run the scripts.
Write a function called multiply that takes two arguments (a, b) and returns the result of multiplying those arguments together. Use the new function to log to the console the result of multiplying two numbers, e.g. 354 * 875 and 9876.543 * 765.123.
Try calling function multiply with one parameter or three parameters instead of the required two parameters and log the result to the console. What happens? How does JavaScript handle missing or surplus parameters? Research the special values undefined and NaN.
Write a function called countChar that counts how often a character c occurs in a string s. The function takes two arguments (s and c) and returns a number. Use the new function to log to the console the number of times the character 'l' occurs in the word 'Hello'. HINT: since we are looking for a single character, we can use the String.charAt() method
Write a function called countStr that counts how often a search string needle occurs in a string haystack. The function takes two string arguments and returns a number. Use the new function to log to the console
HINT: since we are looking for a string with multiple characters, we cannot use the String.charAt() method. Instead, try the String.indexOf() method and use the second parameter to control the start index for the search after each find. This is a tricky problem, so don't despair if things don't work out immediately.
Write a function called rotate that takes two arguments (arr, an array,
and num, a number), which will modify the arr array by popping an
element off the last element and splicing it at the start of the array.
This should be repeated num times, effectively rotating the array. For
example:
rotate(["Harry","Sarah","Oscar","Tina"], 2) ->
["Oscar","Tina","Harry","Sarah"];
Sort the array [12, 9, 33, 8, 71, 2, 41, 5] first in alphabetical order, then in ascending and in descending numerical order, each time logging the result to the console. Use anonymous functions as arguments to the Array.sort() method for the numerical sorts.


erts_alloc_config
Module
Module Summary
Description
erts_alloc_config is currently an experimental tool and might be subject to backward incompatible changes.
erts_alloc(3) is an Erlang Run-Time System internal memory allocator library. erts_alloc_config is intended to be used to aid creation of an erts_alloc(3) configuration that is suitable for a limited number of runtime scenarios. The configuration that erts_alloc_config produce is intended as a suggestion, and may need to be adjusted manually.
The configuration is created based on information about a number of runtime scenarios. It is obviously impossible to foresee every runtime scenario that can occur. The important scenarios are those that cause maximum or minimum load on specific memory allocators. Load in this context is total size of memory blocks allocated.
The current implementation of erts_alloc_config concentrate on configuration of multi-block carriers. Information gathered when a runtime scenario is saved is mainly current and maximum use of multi-block carriers. If a parameter that change the use of multi-block carriers is changed, a previously generated configuration is invalid and erts_alloc_config needs to be run again. It is mainly the single block carrier threshold that effects the use of multi-block carriers, but other single-block carrier parameters might as well. If another value of a single block carrier parameter than the default is desired, use the desired value when running erts_alloc_config.
A configuration is created in the following way:
-
Pass the +Mea config command-line flag to the Erlang runtime system you are going to use for creation of the allocator configuration. It will disable features that prevent erts_alloc_config from doing its job. Note, you should not use this flag when using the created configuration. Also note that it is important that you use the same amount of schedulers when creating the configuration as you are going the use on the system using the configuration.
-
Run your applications with different scenarios (the more the better) and save information about each scenario by calling save_scenario/0. It may be hard to know when the applications are at an (for erts_alloc_config) important runtime scenario. A good approach may therefore be to call save_scenario/0 repeatedly, e.g. once every tenth second. Note that it is important that your applications reach the runtime scenarios that are important for erts_alloc_config when you are saving scenarios; otherwise, the configuration may perform bad.
-
When you have covered all scenarios, call make_config/1 in order to create a configuration. The configuration is written to a file that you have chosen. This configuration file can later be read by an Erlang runtime-system at startup. Pass the command line argument -args_file FileName to the erl(1) command.
-
The configuration produced by erts_alloc_config may need to be manually adjusted as already stated. Do not modify the file produced by erts_alloc_config; instead, put your modifications in another file and load this file after the file produced by erts_alloc_config. That is, put the -args_file FileName argument that reads your modification file later on the command-line than the -args_file FileName argument that reads the configuration file produced by erts_alloc_config. If a memory allocation parameter appear multiple times, the last version of will be used, i.e., you can override parameters in the configuration file produced by erts_alloc_config. Doing it this way simplifies things when you want to rerun erts_alloc_config.
The configuration created by erts_alloc_config may perform bad, ever horrible, for runtime scenarios that are very different from the ones saved when creating the configuration. You are, therefore, advised to rerun erts_alloc_config if the applications run when the configuration was made are changed, or if the load on the applications have changed since the configuration was made. You are also advised to rerun erts_alloc_config if the Erlang runtime system used is changed.
erts_alloc_config saves information about runtime scenarios and performs computations in a server that is automatically started. The server register itself under the name '__erts_alloc_config__'.
Exports
save_scenario() -> ok | {error, Error}
Types
save_scenario/0 saves information about the current runtime scenario. This information will later be used when make_config/0, or make_config/1 is called.
The first time save_scenario/0 is called a server will be started. This server will save runtime scenarios. All saved scenarios can be removed by calling stop/0.
make_config() -> ok | {error, Error}
Types
This is the same as calling make_config(group_leader()).
make_config(FileNameOrIODev) -> ok | {error, Error}
Types
make_config/1 uses the information previously saved by save_scenario/0 in order to produce an erts_alloc configuration. At least one scenario have had to be saved. All scenarios previously saved will be used when creating the configuration.
If FileNameOrIODev is a string(), make_config/1 will use FileNameOrIODev as a filename. A file named FileNameOrIODev is created and the configuration will be written to that file. If FileNameOrIODev is an io_device() (see the documentation of the module io), the configuration will be written to the io device.
Types
Stops the server that saves runtime scenarios.


Risto
No.57 |Ramakrishna Road | Colombo 06 | Srilanka
Toggle navigation
Business Casual
Home
Menus &
Offers
Reservations
& Orders
Payments &
Loyalty Points
Welcome
Risto-
Restaurant Section
By
Team LESA
Restaurant Profile
Name
Email Address
Phone Number
Address
Number
Street
City
Nearest Town
Restaurant Open time
`
Restaurant Close time
Lunch Open time
Lunch Close time
Dinner Open time
Dinner Close time
Minimum Price
Maximum Price
Short
Description
Long
Description
Province
Choose
Eastern
Uva
Western
Southern
Northern
Central
North Western
Sabaragamuwa
North Central
Services Offered
Choose
Bar
Credit Card
Free Wifi
Take Away
Delivery
Dine In
Buffet
Outdoor Dining
Live Perfomances
Vegetarian
Air Conditioned
Parking Area
Family Friendly
Reservation
Online Order
Restaurant Images
Submit
Reset


{{assignment.course.title}}
{{assignment.descreption}}
{{assignment.instructor}}
{{assignment.dueDate}}
{{assignment.time}}


"x" "1" "NAGAYABU,O, YAMAMOTO,KS AND SAKAMOTO,Y, MUTAGENICITY TESTS ONCARUMONAM (1). REC-ASSAY AND REVERSION TEST IN BACTERIA, YAKURI TO CHIRYO14(6):3887-3891, 1986"


CHECK-IN DATE:
CHECK-OUT DATE:
Well prepared means no surprises.  We help to find the ticket and accomodation you need, offer the routes, car rentals and even book a taxi. Just choose the destination- we will do the rest
Hotels, guesthouses and apartments
countries
airlines and lowcosters
Travel agenicies and companies


A 'multigraph' is a graph which is permitted to have multiple edges (parallel edges), that is, edges that have the same end nodes. A 'loop' is an edge that connects a vertex to itself.
import networkx as nx G = nx.MultiGraph() # an undirected multigraph H = nx.MultiDiGraph() # a directed multigraph


This guide assumes that you have finished the “Getting started” tutorial or that you are experienced with Sakuli v1.
Most of the complexity and conventions are due to the backwards compatibility to v1, which requires a specific folder and file structure for various reasons (the biggest is Sahi). Sakuli offers now various ways to reduce this complexity dramatically. These features will eventually become part of upcoming releases.
The minimum setup for a Sakuli project looks like this:
This file layout also represents the logical structure of Sakuli, which consists of a testsuite with one or more testcase(s). Sakuli’s run
command takes the path to a testsuite folder and runs all testcases defined in testsuite.suite
of the given folder.
The folder _logs
is created automatically when Sakuli starts the first execution of a test suite.
To change the path of the created folder _logs
you can use sakuli.log.folder
.
See Configuring Tests for more information.
Sakuli stores all error screenshots in this folder, which can be configured with these properties:
sakuli.screenshot.onError
sakuli.screenshot.dir
sakuli.screenshot.storage
See Configuring Tests for more information.
Sakuli logs all information about the test execution in this file.
To configure the log level, set log.level
property in sakuli.properties
or testsuite.properties
accordingly.
The file ‘steps.cache’ is created after the first successful execution. It contains the step names of a test case
(defined with testcase.endOfStep()
). With the correct .steps.cache
file Sakuli can omit the last step Finished step UNNAMED with state Ok.
.
This file is a relic from Sahi where you define testcases and their respective start-urls. It has a simple format:
<CASE-PATH>/<CASE-FILE> <START-URL>
<CASE-PATH>
is a path within the testsuite file, which has to contain the file <CASE_FILE>
. The <START-URL>
is no longer used by Sakuli (but required to fulfil the file format). The format also supports comments (//
at the beginning of a line). Testcases can be activated or deactivated by using comments.
The configured start-url is omitted to force test authors to write explicit navigation to the url for testcases using
_navigateTo
.
Each testsuite requires a testsuite.properties
file with at least one entry:
testsuite.id=SomeName
It “inherits” its values from ../sakuli.properties
(which also means that the same property from sakuli.properties
becomes overridden).
Property files are a common way to store configuration in Java, the former runtime for Sakuli. It is a simple key-value format (
<KEY>=<VALUE>
) where every line defines a key-value pair. To organize the keys, it is a common - but not required - practice to separate names by dots (similar to Java namespaces).
There are several predefined properties that can be configured to influence the behavior of Sakuli (* indicates a required property):
| Property | Type: Default | Comment / Example |
|---|---|---|
testsuite.id |
String*: / | Name of the suite shown in the output and used by the forwarder |
testsuite.browser |
String: ‘firefox’ | Browser which is started by the WebDriver (it can be overridden by the --browser command line argument) |
You can also define own properties and use them in your testcases. Just put your custom property key with the corresponding value in one of the .property
files and into your testcase. You can retrieve the values with help of the Environment Class:
// omitting boilerplate
// assuming you have added
// user.name=Tester
// in one of the property files
const env = new Environment();
await _setValue(_textbox('username'), env.getProperty('user.name'));


Basic information
Here is the basic information of your project
,
including the number of modules, packages, classes, methods and fields. There are two
statistical measurements for classes: class file and declared class.
The class file represents the .java files in your project.
The declared class is classified as a public outer class, a package-private outer class or a
nested class,
with six types: class, enum, abstract class, interface, annotation, and package/module-info file.
Number Of Modules
[[${numDiff}]] [[${numDiff}]] Since [[${#dates.format(preProjectInfo.getCreateDate(), 'yyyy-MM-dd HH:mm:ss')}]]
Number Of Packages
[[${numDiff}]] [[${numDiff}]] Since [[${#dates.format(preProjectInfo.getCreateDate(), 'yyyy-MM-dd HH:mm:ss')}]]
Number Of Java Files / Declared Classes
[[${numDiff}]] [[${numDiff}]] / [[${numDiff2}]] [[${numDiff2}]] Since [[${#dates.format(preProjectInfo.getCreateDate(), 'yyyy-MM-dd HH:mm:ss')}]]


Heyy! This is Aysha, as you probabbly can tell I really love pastels and kawaii stuff! I am a second year student at DIDI and I love what I am studying and yet super excited to learn even more things and tackle much more difficult obstacles. Please feel free to look around, have a wonderful day! :3


A Whoop! is an exclusive price for your home
A Whoop! can be used by you or someone you live with
A Whoop! expires when you or someone in your household used it or on the date shown.
Unlock your Bike Whoop! to book a bike service at your home’s exclusive price. More than 1 bike? Add a Whoop! or upgrade your button.
Find out moreYour tradesperson Whoop! guarantees you an exclusive price on your next trades job. Need more than 2 tradespeople? Add a Whoop! or upgrade.
Find out moreUnlock your takeaway Whoop! to get yummy takeaways at exclusive prices. Fancy more than one takeaway a week? No problem, just upgrade
Find out more


We will select our universe of stocks by dropping securities with prices lower than $5 and pick the ones with the highest dollar traded volume.
# Sort the equities in DollarVolume decendingly selected = sorted([x for x in coarse if x.Price > 5], key=lambda x: x.DollarVolume, reverse=True) symbols = [x.Symbol for x in selected[:self.num_equities]]
We want to minimize our algorithm's exposure to market factors. PCA is a procedure that extracts uncorrelated components of a possibly-correlated set of observations to reveal the factors that contribute most to a the variance of the observations as a whole. Applying PCA to the data above enables us to reduce dimensionality and select the most relevant market factors to shape our asset universe. Based on the results found in the cited paper, and for the sake of demonstration, we chose 3 components to account for the bulk of the variance. In our algorithm, the 3 principal components of the feature space are formed by the historical close values.
# Sample data for PCA (smooth it using np.log function) sample = np.log(history.dropna(axis=1)) sample -= sample.mean() # Center it column-wise # Fit the PCA model for sample data model = PCA().fit(sample) # Get the first n_components factors factors = np.dot(sample, model.components_.T)[:,:self.num_components]
We will model the mean-reverting residuals of our assets from a regression line. We use linear regression to derive the weight of each stock in the portfolio based on its price deviation, which is measured by the residual. If the absolute value of a stock's residual is large, it means that the level of price deviation is high and we should give it more weight in the portfolio. Similarly, if the absolute value of the residual is small, it is reasonable to give the stock less weight in the portfolio. To facilitate this, we can first standardize the residuals to get their z-scores. Then, based on the z-scores, it is easy to detect the level of price deviation. Specifically, the level of deviation is higher when the absolute values of the z-scores are large. From this it is natural to use the inverse of the absolute values of the z-scores as a measurement of the weights of the portfolio.
# Train Ordinary Least Squares linear model for each stock OLSmodels = {ticker: sm.OLS(sample[ticker], factors).fit() for ticker in sample.columns} # Get the residuals from the linear regression after PCA for each stock resids = pd.DataFrame({ticker: model.resid for ticker, model in OLSmodels.items()}) # Get the Z scores by standarize the given pandas dataframe X zscores = ((resids - resids.mean()) / resids.std()).iloc[-1] # residuals of the most recent day # Get the stocks far from mean (for mean reversion) selected = zscores[zscores < -1.5] # Return the weights for each selected stock weights = selected * (1 / selected.abs().sum())


Best of all games are listed based on the players reviews and comments.
 Every match is an intense 6v6 battle between a cast of unique heroes
A bold new direction in open-world freedom, storytelling, mission-based gameplay and online multiplayer, Grand Theft Auto V focuses on the pursuit
Avatar is a 2009 American epic science fiction film directed, written, produced, and co-edited by James Cameron and starring Sam Worthington, Zoe Saldana,
Official Site of Anthem Blue Cross Blue Shield, a trusted health insurance plan provider. Shop plans for Medicare, Medical, Dental, Vision & Employers.
Cyberpunk 2077 is an open-world, action-adventure story set in Night City, a megalopolis obsessed with power, glamour and body modification.
In Forest Hills, Queens, New York City, Midtown High School student Peter Benjamin Parker is a science-whiz orphan living with his Uncle Ben and Aunt May.
Play your way through history in the award-winning video game series. Assassin's Creed immerses players in the memories of ancestors, who are fighting for good
Slayer Threat Level at Maximum. Gain access to the latest demon-killing tech with the DOOM Slayer's advanced Praetor Suit, including a shoulder-mounted
Overwatch is a vibrant team-based shooter set on a near-future earth. Every match is an intense 6v6 battle between a cast of unique heroes, each with their
A bold new direction in open-world freedom, storytelling, mission-based gameplay and online multiplayer, Grand Theft Auto V focuses on the pursuit
James Smith on I have been waiting for this page since last year!
Smith Mark on How to download this game
cooper justin on Can you help me how to download it
John Martin on I'm in love with this game! Beautiful!


A geek-themed bakery is about to open on Queen West
The Grand Order of Divine Sweets (aka The GOoDS) will start serving up chocolate Xenomorph eggs and TARDIS treats this week
by Natalia ManzoccoIf you've got the kind of sweet tooth that only a chocolate carbonite-coated Han Solo, TARDIS-shaped bon bon or Poké Ball truffle can satisfy, your hour has come: A nerdy-themed cafe is opening in the heart of Queen West later this week.
Joining The Lockhart, The Sidekick, Storm Crow Manor and See-Scape in the local nerdy dining establishment pantheon, The Grand Order of Divine Sweets (also known as The GOoDS) is about to open at 1162 Queen West (at Beaconsfield) on December 12.
The business – the brainchild of Samantha Lapointe, the owner of now-shuttered bakery Cakes Cove, and Meridith Braun, a gaming industry veteran – offers a wide variety of "fandom-inspired desserts", from Hoth chocolate to Xenomorph mint eggs.
To kick things off, The GOoDS is hosting a promo called 12 Days of Geekmas, which will see a new slate of nerdy specials every day starting on opening day. December 14, meanwhile, is their grand opening event, which promises cosplay appearances, a Baby Yoda* cake, and "a chance to eat the universe". (We're listening...)
*NOTE: Character's name may not actually be Baby Yoda.


DIE HARD 2 (1990)
A film review by Steve Kong Copyright 1997 Steve Kong
I love the Die Hard series and if you were to ask me to rate the three, the first would be on the top of my list, followed by the third and Die Hard 2 would be the last. For me Die Hard 2 is the weakest of the three, but that don't mean that it's a bad film at all. It just means that the other two are a lot stronger than this one. I fell that the missing presence of Die Hard and Die Hard: With a Vengeance director John McTiernan is what makes Die Hard 2 a weaker film.
John McClane says that the story of his life is about being in the wrong place and the wrong time. And that seems to be true. In Die Hard 2, it's Christmas again and McClane is at the Dulles International Airport waiting to pick up his wife who is coming home from a business trip. Also at the airport are some terrorists who are there waiting to pick up their boss, who is a deposed leader, General Esperanza. Die Hard 2 sets up the story quickly so that it can move into its amazing action sequences.
Along the way we meet our typical stereotypical characters who are nothing more than cardboard cut out stock characters that serve the only one of two purposes: 1) help McClane or 2) die. This is not a problem though because the story itself is so preposterous that it is actually pretty fun to watch. Yes, the story is pretty unbelievable but director Renny Harlin does a good job at keeping the pace quick and brisk. This makes it easy to suspend your disbelief, actually, it leaves no time for disbelief. And this is where I see the problem with Die Hard 2, the action is sometimes way too over-the-top and comes at a pace that is so brute and in your face that it's painful. Harlin who seems to like to show everything when doing action sequences shows a lot of unnecessary violences and gore.
Bruce Willis IS John McClane and there's no doubt there. Willis seems so in touch with the McClane character that he is wholly fun to watch. Dennis Franz is the lead-in-the-head typical antagonist for the McClane character, and while Franz fills in the shoes OK, he's not really doing too much during the film. William Sadler is Stuart, the leader of the terrorist, and he does a good job with his part. I did like the performance of John Amos as Grant who shows up halfway through the film.
Die Hard 2 might be the weakest of the series, but it is still a great action film. Don't miss this one. Willis is made for his part and it is he who makes this so much fun to watch.
!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=! steve kong<EMAIL_ADDRESS>find the latest movie reviews at the hard boiled movie page http://boiled.sbay.org/boiled/ !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


--- layout: page title: About header-img: "img/about-bg.png" ---
St. Louis native who wants to build cool stuff that helps people.


Reports singleton classes.
Singleton classes are declared so that only one instance of the
class may ever be instantiated. Singleton classes complicate testing,
and their presence may indicate a lack of object-oriented design.
Powered by InspectionGadgets


TheMealDB is an open online database of recipes for meals. It was written by somebody who felt that there was no suitable API for his needs, so he wrote one himself. It is very rudimentary, but it provides the names of meals that someone might want to cook, high quality PNG images of ingredients, and also high quality PNG images of fully-cooked meals. Some things you can do with it are:
TheMealDB website: https://www.themealdb.com/api.php
GitHub Public APIs: https://github.com/public-apis/public-apis#food--drink
Data can be retrieved from the API using many options: meal name (s=), first letter (f=), id (i=), categories (c=), area / cuisine (a=), or ingredients (i=). For my GET request, I used the filter by main ingredient feature, which uses the filter.php page with the ?i=word query string. The input field allows the user to specify which ingredient to use as the API query string for the request. As a default, I set this variable equal to "chicken". You see these results when the page is loaded initially. When a user enters an ingredient and then clicks the button or hits [Enter], the API call is made and the database retrieves meal names and thumbnail photos in a stylized table, or it displays a message to the user saying no meals could be found with the ingredient they entered.
1. Inspiring creativity in the kitchen (especially during quarantine)
Sometimes fridge items go untouched for just a bit too long. Maybe certain ingredients looked more appetizing in the grocery store or maybe people get too attached to their favorite meals. Whatever the case may be, sometimes there is just a shortage of creativity. If there are avocados sitting in the fridge and the main chef in the kitchen does not know what to do with them, they can simply enter the word "avocado" into the query field of this site and they will be presented with a whole table of meal ideas with photos to get their mouth watering!
2. Simulating a cooking show
This site could be made into a fun cooking show activity (like Iron Chef) where you have a mystery ingredient and you have to be able to prepare that ingredient in many different ways over the course of several days. This would help people improve their cooking skills and would also open their horizons to new meal ideas from a diverse selection of cuisines.


Lebanon's banks shut as staff strike over safety fears
BEIRUT (Reuters) - Lebanon’s banks and schools were shut on Tuesday in a new wave of disruption amid urgent political efforts to form a new government to steer the country out of its worst economic crisis since the 1975-90 civil war.
Bank branches, which were closed for nearly half of October, shut again on fears for the safety of staff who have felt intimidated by customers demanding access to their money and protesters who have gathered at banks, a union leader said.
The demonstrations have been fueled by anger at Lebanon’s ruling elite, widely perceived to have overseen rampant state corruption for decades.
Banks have been seeking to prevent capital flight by imposing restrictions on dollar withdrawals and transfers abroad.
“We aim to meet with the Association of Banks in Lebanon today and decide how we’re going to work together to solve this issue so that bank employees are not harassed,” President of the Federation of Syndicates of Bank Employees George al-Hajj said.
ATM machines will be stocked so that depositors do not feel “punished” by the strike action, Hajj said.
Lebanon’s central bank said on Monday that bank deposits were secure and it had the ability to preserve the stability of the pegged Lebanese pound.
In a televised news conference, central bank governor Riad Salameh said capital controls were not on the table and there would be no haircut - or value-reduction - on deposits.
Schools were also closed on Tuesday, a decision the education minister announced on Monday because of calls for a wider strike and out of respect for “students’ right to express their views”.
Lebanon was pitched into deep turmoil on Oct. 17, when a wave of protests against the ruling elite began that led Prime Minister Saad al-Hariri to resign on Oct. 29.


Reports methods and method hierarchies in which the return value always appears to be the same constant.


GROUP BY first_name, last_name, hire_date,a.emp_no;
Going all in again:
What is this query bring back?
SELECT first_name, last_name,
hire_date,a.emp_no, salary, from_date as
salary_start_date, to_date as
salary_end_date
FROM employees a
JOIN salaries b ON a.emp_no = b.emp_no
where salary >60000
and from_date >2000-01-01
order by last_name
Anyone whose salary is greater than $60,000 and who was hired after 1/1/2000
Stretch break!
Now the power of subqueries
Using nested logic datasets to query other data sets
Subqueries
A subquery or inner query or nested query is a query within a query.
Most of the time, a subquery is used when you know how to search for a value using a SELECT statement, but do not know the exact value in the database.
--From Beginner SQL Tutorials
Using nested logic datasets to query other data sets
Subqueries: How much money did only the engineers make?
What kind of business questions can we answer now? SQL Power!
Exercises:
How many employees do we have>
SELECT COUNT(DISTINCT emp_no)
FROM employees;
How Many People Got Raises in 1999?
select * from
select emp_no, count(*) as number_of_salaries from salaries
where from_date>'1998-01-01'
and from_date<'2000-01-01'
group by emp_no) a
where number_of_salaries >1
What’s the most common title we have?
select title, count(distinct a.emp_no) from titles a
join employees b
on a.emp_no=b.emp_no
group by title
What kind of business questions can we answer now? SQL Power!
Exercises:
What's the top salary by department?
How much money did non-engineers make>
Extra-hard question:
How many women engineers got raises in 2000 versus male engineer, and who were their managers?
Rehash
What did we do so far?
What a database is
What a table is
Why relationships are good
How to query a table or database with SQL
How to read a SQL query
How to ask business questions with SQL
We learned cRud; now we learn CrUD
Now that you see how powerful SQL is, let’s make some tables of our own. What if we have tons of data we want to query?
Or we want to join our Excel tables to other data?
With great power comes great responsibility
You have the ability to create tables. But also to delete them by accident, to create duplicate data,or to confuse people with data.

Use it wisely :)
Databases, schemas, and tables
DB Schema→ Table → Row → Value
Excel File → Workbook → Row → Cell
First we create our schema
Name it with your first name or something easy you can remember;
You’ll have to keep typing it, so under 10 characters is optimal
And you should see it show up here:
Now we create a table to put in the schema
Let's do favorite movies that we did at the beginning of the class.
Let's have: First Name, Favorite Movie, Number of times watched
First, we need to design it a bit in our head.
Which columns do we want? Which one will be the unique primary key? How to we want to name the columns?
Things to think about when designing relational tables
How will you join to other tables?
What kind of data are you storing?
Who else will use your tables?
Quick Overview of Database Design(from Sondra's class)
Relational Database Model
Storing the data as relations
eliminates redundancy
saves space
reduces mistakes (ties in to consistency)
Quick Overview of Database Design(from Sondra's class)
Tables are joined on special fields called keys
Primary Key (PK)
A field (or set of fields) that uniquely identify a row
In math speak, the minimal set of fields that the row is functionally dependent upon
Foreign Reference Key (FK)
A field (or set of fields) that is a PK in some other table
IThere can be multiple FK in a table
Points to a row in another table
Data Types
Data usually comes in two types: numbers and charactes
Numbers
Boolean: True or False [0,1]
Int/TinyInt: whole numbers, negatives [5, -7]
Decimal: [.5555, 2.40404040]
Strings
Varchar(can't add/subtract):[Belle, five,5]
Have to specify length
Blob: [9999349234023403204300000]
Dates/Times
Date: 2013-01-01, 9/1/2012]
Timestamp(UTC) [1385496316]
*Accepted mySQL formats: https://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
Let's look at the data types in the tables we have
By going to STRUCTURE
Our movie database (with real data)
First Name as the Primary Key and Foreign Key
We can join by the name, as long as it’s unique
But our names aren’t unique, so we’ll create an incrementer
First Name Should be a Character Field.
Favorite Movie should be a character Field.
Times Watched should be an Integer. We want to be able to add it.
Two ways to execute in MySQL: PHPMyAdmin and command line
For the second half of the class we’ll be working with commands more than the UI, but there is usually more than 1 way to do everything in MySQL.
How to create a table with SQL
Run in the sample place you did your select statements:
Some Data types in MySQL(Part 2)
CHAR()
A fixed section from 0 to 255 characters long.
VARCHAR( )
A variable section from 0 to 255 characters long.
TINYTEXT
A string with a maximum length of 255 characters.
TEXT
A string with a maximum length of 65,535 characters.
BLOB
A string with a maximum length of 65,535 characters.
MEDIUMTEXT
A string with a maximum length of 16777215 characters.
MEDIUMBLOB
A string with a maximum length of 16777215 characters.
LONGTEXT
A string with a maximum length of<PHONE_NUMBER> characters.
LONGBLOB
A string with a maximum length of<PHONE_NUMBER> characters.
Here's the create statement for one of the tables we've been working with
CREATE TABLE employees (
emp_no INT NOT NULL,
first_name VARCHAR(14) NOT NULL,
last_name VARCHAR(16) NOT NULL,
gender ENUM ('M','F') NOT NULL,
hire_date DATE NOT NULL,
PRIMARY KEY (emp_no)
);
Which field is the primary key? Which fields are numbers? What’s enum*?
Let's get to it
In PHPMYADMIN: STEP 1
In PHPMYADMIN: STEP 2
In PHPMYADMIN: STEP 3
Congratulations, it’s a baby table!
Now let's do some quick analysis
select * from vicki. moviesample
select first_name from vicki. moviesample
select count(*) from vicki.moviesample
What do we get?
Nothing! because our table has no data. :(
...yet
To the SQL: Inserting data into a SQL table
Now that we have the table set up, we can insert the values. Let’s load a row of data.
Adding data to tables
Now let's check it..wahoo! We have rows!
How do we add the rest of the data?
INSERT INTO vicki.movie_sample
(first_name, favorite_movie,
times_watched)
VALUES ('Vicki’, ‘Beauty and the
Beast’, ‘5’);
INSERT INTO vicki.movie_sample
(first_name, favorite_movie,
times_watched)
VALUES ('Jasmine’, ‘Aladdin’,
‘456’);
Break to enter the rest of the data into the table
What kind of issues do you see arising from wrong data entry?
There are much easier ways of getting data into tables
Bulk-loading ETL
Writing a script in Perl, Ruby, Python, or any other scripting language
Manipulating Excel to write your insert/update statements
Our beautiful movie table!
Let’s answer some exercises with SQL:
What's the most popular movie?
SELECT favorite_movie, COUNT(DISTINCT first_name)
FROM moviesample
GROUP BY favorite_movie
ORDER BY COUNT(DISTINCT first_name) DESC
What’s the most popular name this Saturday?
How many times was the most someone watched a movie?
How many movies have ‘The’ in the title?
How many people watched a favorite movie more than 3 times?
Now, let's make another table
We want to see which decade was more popular among GDI members. This one has the data for the movie name and the year it was made.
How do we add the rest of the data?
select * from vicki.moviesample a
join vicki.year_released b
on a.movie_title=b. movie_title
What happens when you have two fields with the same name in your select statement?
What is movie title called in year_released (special role?)
What would be a better field to join on?
What’s the year with the most popular movies?
And, what’s the decade with the most popular movies?
Hint: Take the first three digits of the year
select left(year_released,3), count(*) from..
Deleting SQL Values
What kind of issues do you see arising from wrong data entry?
This is the part where you have to be really careful. Most users won’t have access to delete tables.
truncate table; Leaves the table structure in tact, just deletes the values. (deleting all values in a spreadsheet, keeping file)
drop table; Deletes EVERYTHING. BADBADBAD. (file goes in the trash)
Dropping Rows Example
Easy way in UI: The delete button. Be careful!
SQL...more accurate.
delete from user1.moviesample
where first_name=’Shrek’;
You can delete with any type of where statement
delete from moviesample
where first_name like ’%S’;
delete from moviesample
where times_watched >=’500’;
Altering the Table
SELECT is to count things
CREATE is to create a table
DELETE is to erase
ALTER is to fundamentally change a table:
alter table icecream drop column flavor;
alter table icecream add unique (quantity);
alter table icecream modify flavor VARCHAR(35);
Try it now:
alter table vicki.moviesample add column year_released
varchar(4) after times_watched;
Troubleshooting SQL Errors
You misspelled something
Selection from table you don't have rights to
Your group by statements don't have enough columns
Query’s running too long
Format for date/time doesn’t match
You’re selecting from the wrong table in the schema
Date type is the wrong type for a join
You haven’t aliased your table
Best Practices
Limit your queries by timerange
Only do joins on primary keys
Profile your data beforehand
Save your SQL queries for future use
Be friends with your database people
Write explain plans!
A word about non-relational "big data"
The end!
Here's what we've learned:
Reading tables (cRud)
Basic SQL Logic
Writing tables (CrUD)
Basic deletes and updates
Best practices for writing SQL and writing tables
Next steps: Set up some tables of your own, practice on these tables, become friends with DBAs, and become a SQL superstar.
def hello_world
@name = 'GDI'
puts "Hi, #{@name}"
end
But wait! We teach code
Python
def hello_world():
name = "GDI"
print 'Hi, ' + name
return
But wait! We teach code
Java
public void helloWorld(){
String name = "GDI";
System.out.println("Hi," + name)
}
Fragmented Views
Hit the next arrow...
... to step through ...
any type
of view
fragments
Fragment Styles
There's a few styles of fragments, like:
grow
shrink
roll-in
fade-out
highlight-red
highlight-green
highlight-blue
Vertical Slides
Slides can be nested inside of other slides,
try pressing down.
Basement Level 1
Press down or up to navigate.
Basement Level 2
Basement Level 3
That's it, time to go back up.
Point of View
Press ESC to enter the slide overview. Hold down alt and click on any element to zoom in on it using zoom.js. Alt + click anywhere to zoom back out.
rvl.io
You know, we are nerds after all and will probably get a kick out of all of this HTML. BUT, if you really don't like writing slides in HTML you can use the online editor rvl.io.
These guys come in two forms, inline:
The nice thing about standards is that there are so many to choose from and block:
For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
Intergalactic Interconnections
You can link between slides internally,
like this.
Take a Moment
Press b or period on your keyboard to enter the 'paused' mode. This mode is helpful when you want to take distracting slides off the screen
during a presentation.
GDI Philly
Starter Slides
wifi: network
password: password
Early?
any prep instructions
Welcome!
Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.
Slack is a free, chat and messaging system available as either a web or native application for your desktop or mobile device. All our welcome to join our Slack team, but we need to add you! For an invitation, sign up here.
Join #[slack-room-name] to slack about this class!
Introduce yourself
Who are you?
What do you hope to get out of this class?
[Fun introductory question here. Make it inclusive!]
Let's Develop It
Task instructions might go here
BONUS: Finished early? Try this.
Code solution might go here
Stretch break!
Summary
Intro
Exercise
Stretch break
Wrap up
Homework (optional)
Describe a next-level homework task for students to tackle
Be sure to include solutions to this and all exercises, including bonus items.
Don't feel you need to finish this right away! Check into #[slack-room-name] for follow-up and questions.


---
layout: page
title : About Me
header : A Short Introduction
group: navigation
---
{% include JB/setup %}
Hey!
I'm Andrew Rodriguez (as you might have concluded), and this is my first true writing blog.
I made this blog because it's surprisingly easy to lose track of projects and thoughts. Every day seems to have a lot more hours when you keep yourself busy.
[Side-self-note: I want to see how much my battery charges by the time I'm done with this entry. It's currently at 10%.]
This blog will include my rambles, studies, rationalizations (as crude as some may be), and meditations in various fields of study:
- Games
- Music
- Food
- Life events [Things I can invite people to]
- Other things that I certainly care about regardless of whether or not you do
As this blog ages, each category will expand and new ones will likely emerge! If you ever wish to browse a certain field, I'd suggest you direct your attention to the "Categories" button on the left (on dekstop) or above (on mobile). It's probably going to be your favorite button on this site, next to the "X." It's already my favorite button - he looks pretty dashing, doesn't he? I heard he's having an affair with the Tumblr button despite the long distance. Don't tell anyone, it's very sensitive information!
[Note to self: Make links to each category on this page for ease of access]
Thanks for taking your time to browse this page. And if you're reading this and sticking around, you're already my best friend. Toodles!
- Andrew
P.S.: Oh, yeah. Battery is now at 20%


interface Bin2dStatParameters : OptionsCapsule
bins |
abstract val bins: Pair<Int, Int>? |
binWidth |
abstract val binWidth: Pair<Number?, Number?>? |
drop |
abstract val drop: Boolean? |
seal |
open fun seal(): Options |
geom_bin2d |
Divide the plane into a grid and color the bins by the count of cases in them. class geom_bin2d : TileAesthetics, Bin2dStatAesthetics, Bin2dStatParameters, LayerBase
|
stat_bin2d |
class stat_bin2d : TileAesthetics, Bin2dStatAesthetics, Bin2dStatParameters, LayerBase
|


--- layout: not_homepage quote: HERE GOES A QUOTE. author: [Author] --- {% include quote.html quote=page.quote author=page.author %}
Hi, my name is Alessandro and I'm a ML engineer...
I am now looking for my next adventure, so feel free to browse the projects section to check out what I've built, shoot me an email or connect on linkedIn.


Xlsxir v1.4.1 Xlsxir.ConvertTime
Converts a time formatted as a decimal number that represents the fraction
of the day in char_list
form, to a tiem formatted in Erlang :erlang.time()
format (i.e. {hour, minute, second}
).
Summary
Functions
Given a charlist in the form of a fraction of the day, return the time
formatted as :erlang.time()
Functions
Given a charlist in the form of a fraction of the day, return the time
formatted as :erlang.time()
.
Note that the float
representation of the input must be a number between
0
(inclusive) and 1
(exclusive).
Parameters
charlist
- Character list in the form of a fractional number (i.e.0.25
)
Example
iex> Xlsxir.ConvertTime.from_charlist('0.25')
{6, 0, 0}


Hi all, wanna know your thoughts on that build. I wanna make a bard/RDD and Im not sure if I should go with BG or fighter:
1) BG access to a Bull STR that stacks with bard, sneak attacks and access to divine might/shield and of course increased saves. That woudl take advantage of the bard char attribute.
2) WAY more feats, and access to Weap Spec. and EWP...
What do you think? _________________ K.M. aka Chillychill
"Y'a pire que ne pas pouvoir, y'a savoir qu'on peut et ne jamais tenter"
What I think? Blackguard. BLACKGUARD. BLACKGUARD!!!!!!
IMO a mix of both :/. From painful personal experience, I find blackguards hard to build but it's not really a power class...
I have a bard/RDD/Blackguard build. Take a look. Click Here
Its not to powerful tho. A fighter can give you better AB by taking many levs pre epic. But Blackie's got style, and way better saves. And some nifty sneaks to boot.
Take KD pre epic and your RDD levels will help to ensure that you have plenty of opportunities to do sneak damage. Epic prowess and epic weapon focus can be taken by anyone.
1) BG access to a Bull STR that stacks with bard, sneak attacks and access to divine might/shield and of course increased saves. That woudl take advantage of the bard char attribute.
 If you are going for strength.. then fighter. It will give you alot more. hmm...
peace
Edited By avado on 09/22/05 05:05
How many levels will you take of this third class? Just a few fighter levels can be very handy for getting that +6 dam, but if taking a lot of levels I'd consider bg. Oh, and you can use the search engine to see what others have tried


Your Mars age is:
You've left years on Mars:
Your Mercury age is :
You've left years on Mercury:
Your Venus age is :
You've left years on Venus:
Your Jupiter age is:
You've left years on Jupiter:


Author: {{quote.author}}
Submitted By: {{quote.submit}}
{{quote.completeDate|dateCount}} days passed since initial quote creation date


Computer Science graduate student with 2+ years of professional experience in Software Development and Machine Learning, with strong proven proficiency in Python, Java, SDLC, Azure, AWS, Data Analysis and Visualization, NLP, Network Protocols, AngularJS, JavaScript, MongoDB, MySQL, Spark, Hadoop, Machine Learning, Artificial Intelligence, and Operating System concepts along with demonstrated skills in leadership and project management, seeking new opportunities.
Python, PyTorch, MySQL, Django, React, JavaScript, Azure, Veracode
Python, MongoDB, AWS, Doc2Vec, LDA, NLTK, D3.js, HTML, JavaScript, AngularJS
Python, TensorFlow, MongoDB, Twitter API, Youtube API, LDA, Flask, HTML, AngularJS, JavaScript, CSS
Python, TensorFlow, AWS, Pandas, Scipy, NumPy, NLTK
Android, Java, HTML, PHP, MongoDB, JavaScript, JSON, MySQL
GPA: 3.77
GPA: 3.70


Headings are described by heading elements. There are six levels of heading elements: h1 to h6.
The h1 element is used to describe the main heading of the page.