i have (one column) list called test in r. when view in r this: > test value 569 n 1012 y 4279 n 7588 n 3434 n 2408 y 1958 y 1251 y how reference "row name"? i.e. 569, 1012, 4279 etc. i want find example value @ "row" 1012 (which "y" here). i've tried using test[1], test[,1] etc. first column isn't column. don't know is. makes kind of sense. don't know find solution this. if test is data frame; txt <- " value 569 n 1012 y 4279 n 7588 n 3434 n 2408 y 1958 y 1251 y " test <- read.table(textconnection(txt), header = true) then, > test["1012", ] [1] y levels: n y will extract required row.
greetings by using pymssql library, want write data mssql database encounter encoding issues. here sample code write db: # -*- coding: utf-8 -*- import _mssql .... connection info data here .... def mssql_connect(): return _mssql.connect(server=host, user=username, password=pass, database=db, charset="utf-8") con = mssql_connect() insert_ex_sql = "insert mydatabsae (id, programname, programdetail) values (1, 'test characters ÜŞiçÇÖö', 'löşüiiğĞü');" con.execute_non_query(insert_ex_sql) con.close() sadly data written db corrupted: the collacation of mssql db is: turkish_ci_as how can solved? here possible solution : the key insert_ex_sq.encode('your language encoder') . try instead: con.execute_non_query(insert_ex_sq.encode('your language encoder'))
i'm in process of making security program network. 1 of it's instances check , monitor api's , libraries called. dll , program go along finished. there problem cant seem fix. when trying inject dll system processes (such explorer.exe, main test system process) ntcreatethreadex return value: c0000022, means along lines of: status_access_denied (it returns in ntstatus, dword do) i have no idea do, i'm running administrator, raised privileges, , used proper functions, still c0000022 here's code i'm using inject ( couldn't post formated code here, because toolbar wouldn't appear) #include "main.h" typedef dword ntstatus; struct ntcreatethreadexbuffer{ ulong size; ulong unknown1; ulong unknown2; pulong unknown3; ulong unknown4; ulong unknown5; ulong unknown6; pulong unknown7; ulong unknown8; }; typedef ntstatus (winapi *lpfun_ntcreatethreadex) ( out phandle hthread, in access_mask desiredaccess, in lpvoid objectattributes, in handle ...
Comments
Post a Comment