Jump to content

ratapan

Üye
  • Posts

    564
  • Joined

  • Last visited

Everything posted by ratapan

  1. Arkadaşlar Ubuntu 20.04 sistemde Type-c portundan ikinci ekrana görüntü aktarmak için Type-c hub aldım. Windows ta otomatik görüyor ama ubuntuda monitöre görüntü veremedim. Displaylink yükledim open source nvidia driver ı nı seçtim, wayland ile oturum açtım ama nafile görüntü aktaramadım ubuntu da. Xrandr da Type-c den bağlanan monitör listelenmiyor. Usb taktığım hub a ait aygıtlarında 2 adet aygıt bulunuyor. Via usb 3.0 ve 2.0 hub olarak listeleniyor. Yabancı forumlarda da çözüm bulamadım. Nasıl çözebilirim acaba? @forjest Üstad müsaitseniz yardımcı olabilir misiniz acaba?
  2. Samsung son yıllarda imei değişimini engellemek için yazılımın içine şifreli .cert dosyası oluşturuyor fabrika çıkışı.İmei numaranın vs bu dosyanın içinde rom yükleme vb işlemlerde cert dosyası sıfırlanıyorsa imei numarası da gitmiş oluyor.
  3. Dbeaver (Management Studio alternatifi.Bence daha iyi) ile istediğin veritabanına giriş yapabilirsin boyutu 70 mb falan.Dene istersen. Bağlanabilece ğin veri tabanı tipleri ekteki resimde .
  4. Genymotion var onu dene.%100 sorunsuz bir emulator ben de bulamadım ama
  5. https://ezgif.com/maker siteye gir resimleri seç sürelerini belirle oluştur kullan
  6. Arkadaşlar Yönetim panelinden kullanıcıya yeni sayfa (view) ekletmek istiyorum ve sayfa bilgilerini db ye kaydediyorum.Fakat bu sayfa controller da ve view lerde olmadığı için üretilmiyor.Acaba sadece db üzerinden okuyarak nasıl view oluşturabilirim?View e db de kayıtlı olan url üzerinden erişilebilecek.
  7. Ve yine sevindirici bir haber Philips Morris te cuğaraya zam yapmış. Çok mutluyum. 

    1. Show previous comments  1 more
    2. sk8er_boi

      sk8er_boi

      Bir şeyin yasaklanması hiç bir zaman çözüm değildir. Uyuşturucu yasak diye kimse içmiyor mu? Amerika'da alkol yasaklandığında kullanım bitti mi? Hayır, mafya diye bir şey türedi.

      Fiyatlar arttıkça  insanlar daha ucuz yöntemlere yönelecektir. Mesela 1-2 liralık bonzai zehiri gibi.

    3. Cyph3r

      Cyph3r

      Kilis'te Zumerret adinda bir sigara satılıyordu... Kaliteli ve 6.5 TL... Ayrılırken almak aklıma gelmedi... Şimdi otobüsle gidip alip gelsem yine kar ederim galiba ?

    4. ratapan

      ratapan

      @Cyph3r Zumerret kartonu 54 tl

  8. Arkadaşlar Gmail uygulaması ile telefonumdan birisine mail ile bi dosya göndermek istediğimde, dosyanın ismi örneğin deneme.htm ise Gmail ileriye 5647 uzantısı dahi olmayan bir dosya olarak ekliyor ve karşı taraf açamıyor dosyayı.dosya telefonumda boyutu da 100 kb . Bu sorunu yaşayıpta çözen var mı acaba?
  9. Windows açılışında sürücü imzalamayı devre dışı bırak gelişmiş başlatma seçeneklerinde onu denediniz mi? http://www.serhatakinci.com/index.php/windows-10-guvenli-mod-baslatma.html
  10. Hocam bazen resim dosyalarının Header kısmı bozuluyor.İstersen nette araştır bu konuyu.Aynı sorunu yaşamıştım Header kısmı(Hex) düzelttim resimler düzeldi.Bi dene
  11. Arkadaşlar rol bazlı erişim kısıtlama işlemi yapmak istiyorum veri tabanından giriş yapmış kişinin rollerini çekiyorum ve giriş için gerekli olan roller ile karşılaştırıyorum aşağıdaki kodlar ile.Fakat HttpContext.Current.User.IsInRole fonksiyonu karşılaştırdığı değerler aynı olmasına rağmen false dönüyor.Nasıl çözebilirim acaba bu sorunu? // Giriş için gerekli roller(Admin,Editor,Student) metoda gönderilip roles dizisine atanıyor string[] roles = Roles.Split(','); bool isAuthorized = false; for (int i = 0; i < roles.Length; i++) { // isinrole metodu aktif kullanıcının rollerini roles dizisi ile karşılaştıyor.İki değer de örneğin Admin fakat metod false dönüyor. if (HttpContext.Current.User.IsInRole(roles[i])) { isAuthorized = true; } } if (isAuthorized == false) { throw new SecurityException("You are not authorized!"); }
  12. Böyle sorunlarda ben direkt BTK ya yazıyorum yoksa işi çözmüyor sorguncu pislikler
  13. Sigara içenlere Müjde.ZAM GELDİ

    1. casper0007

      casper0007

      Cok ıyı oldu colugun cocugun rızkı dumana gıdıyor

    2. Alphonso_Elric

      Alphonso_Elric

      Oley be en sevdiğim. :)

    3. MOTUN
  14. Linux türevlerini dene.Hatta @forjest üstadın konularına bak illa ki bulursun .
  15. @şrarskoz http://driverindirme.blogspot.com/2014/09/pegatron-ipmip-rev102-bios-download.html linki incele
  16. Google drive toplu indirme işleminde sürekli eksik dosya kalıyor Arkadaşlar Google drive da 3-5 gb boyutunda 15 adet klasörüm var.Bu klasörlerde iç içe klasörler ve bu klasörlerin içinde de zip formatında partlar halinde dosyalar var.Ben ne zaman bu 15 adet ana klasörlerden birini indirmek istesem Google bu dosyaları sıkıştırıyor ve indirme işlemi başlıyor fakat sürekli eksik dosyalar oluyor ve indirdiğim klasörün içindeki klasörleri ve bunların içindeki zip dosyalarını tek tek kontrol etmek zorunda kalıyorum.Bu sorunu yaşayan ve çözebilen birisi var mı acaba?
  17. Winregistry diya bi class oluştur sana gönderdiğim kodları oraya ekle ama içinden public static void main(String[] args) { ile başlayan main metodunu sil.Main classı alttaki kodla değiştir import java.lang.reflect.InvocationTargetException; import java.util.logging.Level; import java.util.logging.Logger; public class Main { public static void main(String[] args) { //ana sayfa değeri okuma kısmı String value = null; try { value = Main.readString( Main.HKEY_CURRENT_USER, //HKEY "Software\\Microsoft\\Internet Explorer\\Main", //Key "Start Page"); //ValueName } catch (IllegalArgumentException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (InvocationTargetException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } System.out.println(value); ////////////// ana sayfa değiştirme kısmı try { Main.writeStringValue(Main.HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main", "Start Page", "www.google.com.tr/"); } catch (IllegalArgumentException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (InvocationTargetException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } } }
  18. @Mehmet bir örnek buldum denedim çalışıyor ama biraz uzun.Ben değiştirme ve okuma işlemini gerçekleştirdim kodda.Açıklama olarak //ana sayfa değeri okuma kısmı ve ////////////// ana sayfa değiştirme kısmı olarak ekledim . import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import java.util.prefs.Preferences; public class Main { public static final int HKEY_CURRENT_USER = 0x80000001; public static final int HKEY_LOCAL_MACHINE = 0x80000002; public static final int REG_SUCCESS = 0; public static final int REG_NOTFOUND = 2; public static final int REG_ACCESSDENIED = 5; private static final int KEY_ALL_ACCESS = 0xf003f; private static final int KEY_READ = 0x20019; private static final Preferences userRoot = Preferences.userRoot(); private static final Preferences systemRoot = Preferences.systemRoot(); private static final Class<? extends Preferences> userClass = userRoot.getClass(); private static final Method regOpenKey; private static final Method regCloseKey; private static final Method regQueryValueEx; private static final Method regEnumValue; private static final Method regQueryInfoKey; private static final Method regEnumKeyEx; private static final Method regCreateKeyEx; private static final Method regSetValueEx; private static final Method regDeleteKey; private static final Method regDeleteValue; static { try { regOpenKey = userClass.getDeclaredMethod("WindowsRegOpenKey", new Class[]{int.class, byte[].class, int.class}); regOpenKey.setAccessible(true); regCloseKey = userClass.getDeclaredMethod("WindowsRegCloseKey", new Class[]{int.class}); regCloseKey.setAccessible(true); regQueryValueEx = userClass.getDeclaredMethod("WindowsRegQueryValueEx", new Class[]{int.class, byte[].class}); regQueryValueEx.setAccessible(true); regEnumValue = userClass.getDeclaredMethod("WindowsRegEnumValue", new Class[]{int.class, int.class, int.class}); regEnumValue.setAccessible(true); regQueryInfoKey = userClass.getDeclaredMethod("WindowsRegQueryInfoKey1", new Class[]{int.class}); regQueryInfoKey.setAccessible(true); regEnumKeyEx = userClass.getDeclaredMethod( "WindowsRegEnumKeyEx", new Class[]{int.class, int.class, int.class}); regEnumKeyEx.setAccessible(true); regCreateKeyEx = userClass.getDeclaredMethod( "WindowsRegCreateKeyEx", new Class[]{int.class, byte[].class}); regCreateKeyEx.setAccessible(true); regSetValueEx = userClass.getDeclaredMethod( "WindowsRegSetValueEx", new Class[]{int.class, byte[].class, byte[].class}); regSetValueEx.setAccessible(true); regDeleteValue = userClass.getDeclaredMethod( "WindowsRegDeleteValue", new Class[]{int.class, byte[].class}); regDeleteValue.setAccessible(true); regDeleteKey = userClass.getDeclaredMethod( "WindowsRegDeleteKey", new Class[]{int.class, byte[].class}); regDeleteKey.setAccessible(true); } catch (Exception e) { throw new RuntimeException(e); } } public static void main(String[] args) { //ana sayfa değeri okuma kısmı String value = null; try { value = Main.readString( Main.HKEY_CURRENT_USER, //HKEY "Software\\Microsoft\\Internet Explorer\\Main", //Key "Start Page"); //ValueName } catch (IllegalArgumentException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (InvocationTargetException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } System.out.println(value); ////////////// ana sayfa değiştirme kısmı try { Main.writeStringValue(Main.HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main", "Start Page", "www.google.com.tr/"); } catch (IllegalArgumentException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } catch (InvocationTargetException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } } private Main() { } /** * Read a value from key and value name * * @param hkey HKEY_CURRENT_USER/HKEY_LOCAL_MACHINE * @param key * @param valueName * @return the value * @throws IllegalArgumentException * @throws IllegalAccessException * @throws InvocationTargetException */ public static String readString(int hkey, String key, String valueName) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { if (hkey == HKEY_LOCAL_MACHINE) { return readString(systemRoot, hkey, key, valueName); } else if (hkey == HKEY_CURRENT_USER) { return readString(userRoot, hkey, key, valueName); } else { throw new IllegalArgumentException("hkey=" + hkey); } } /** * Read value(s) and value name(s) form given key * * @param hkey HKEY_CURRENT_USER/HKEY_LOCAL_MACHINE * @param key * @return the value name(s) plus the value(s) * @throws IllegalArgumentException * @throws IllegalAccessException * @throws InvocationTargetException */ public static Map<String, String> readStringValues(int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { if (hkey == HKEY_LOCAL_MACHINE) { return readStringValues(systemRoot, hkey, key); } else if (hkey == HKEY_CURRENT_USER) { return readStringValues(userRoot, hkey, key); } else { throw new IllegalArgumentException("hkey=" + hkey); } } /** * Read the value name(s) from a given key * * @param hkey HKEY_CURRENT_USER/HKEY_LOCAL_MACHINE * @param key * @return the value name(s) * @throws IllegalArgumentException * @throws IllegalAccessException * @throws InvocationTargetException */ public static List<String> readStringSubKeys(int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { if (hkey == HKEY_LOCAL_MACHINE) { return readStringSubKeys(systemRoot, hkey, key); } else if (hkey == HKEY_CURRENT_USER) { return readStringSubKeys(userRoot, hkey, key); } else { throw new IllegalArgumentException("hkey=" + hkey); } } /** * Create a key * * @param hkey HKEY_CURRENT_USER/HKEY_LOCAL_MACHINE * @param key * @throws IllegalArgumentException * @throws IllegalAccessException * @throws InvocationTargetException */ public static void createKey(int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { int[] ret; if (hkey == HKEY_LOCAL_MACHINE) { ret = createKey(systemRoot, hkey, key); regCloseKey.invoke(systemRoot, new Object[]{new Integer(ret[0])}); } else if (hkey == HKEY_CURRENT_USER) { ret = createKey(userRoot, hkey, key); regCloseKey.invoke(userRoot, new Object[]{new Integer(ret[0])}); } else { throw new IllegalArgumentException("hkey=" + hkey); } if (ret[1] != REG_SUCCESS) { throw new IllegalArgumentException("rc=" + ret[1] + " key=" + key); } } /** * Write a value in a given key/value name * * @param hkey * @param key * @param valueName * @param value * @throws IllegalArgumentException * @throws IllegalAccessException * @throws InvocationTargetException */ public static void writeStringValue(int hkey, String key, String valueName, String value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { if (hkey == HKEY_LOCAL_MACHINE) { writeStringValue(systemRoot, hkey, key, valueName, value); } else if (hkey == HKEY_CURRENT_USER) { writeStringValue(userRoot, hkey, key, valueName, value); } else { throw new IllegalArgumentException("hkey=" + hkey); } } /** * Delete a given key * * @param hkey * @param key * @throws IllegalArgumentException * @throws IllegalAccessException * @throws InvocationTargetException */ public static void deleteKey(int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { int rc = -1; if (hkey == HKEY_LOCAL_MACHINE) { rc = deleteKey(systemRoot, hkey, key); } else if (hkey == HKEY_CURRENT_USER) { rc = deleteKey(userRoot, hkey, key); } if (rc != REG_SUCCESS) { throw new IllegalArgumentException("rc=" + rc + " key=" + key); } } /** * delete a value from a given key/value name * * @param hkey * @param key * @param value * @throws IllegalArgumentException * @throws IllegalAccessException * @throws InvocationTargetException */ public static void deleteValue(int hkey, String key, String value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { int rc = -1; if (hkey == HKEY_LOCAL_MACHINE) { rc = deleteValue(systemRoot, hkey, key, value); } else if (hkey == HKEY_CURRENT_USER) { rc = deleteValue(userRoot, hkey, key, value); } if (rc != REG_SUCCESS) { throw new IllegalArgumentException("rc=" + rc + " key=" + key + " value=" + value); } } // ===================== private static int deleteValue(Preferences root, int hkey, String key, String value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { int[] handles = (int[]) regOpenKey.invoke(root, new Object[]{ new Integer(hkey), toCstr(key), new Integer(KEY_ALL_ACCESS)}); if (handles[1] != REG_SUCCESS) { return handles[1]; // can be REG_NOTFOUND, REG_ACCESSDENIED } int rc = ((Integer) regDeleteValue.invoke(root, new Object[]{ new Integer(handles[0]), toCstr(value) })).intValue(); regCloseKey.invoke(root, new Object[]{new Integer(handles[0])}); return rc; } private static int deleteKey(Preferences root, int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { int rc = ((Integer) regDeleteKey.invoke(root, new Object[]{new Integer(hkey), toCstr(key)})).intValue(); return rc; // can REG_NOTFOUND, REG_ACCESSDENIED, REG_SUCCESS } private static String readString(Preferences root, int hkey, String key, String value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { int[] handles = (int[]) regOpenKey.invoke(root, new Object[]{ new Integer(hkey), toCstr(key), new Integer(KEY_READ)}); if (handles[1] != REG_SUCCESS) { return null; } byte[] valb = (byte[]) regQueryValueEx.invoke(root, new Object[]{ new Integer(handles[0]), toCstr(value)}); regCloseKey.invoke(root, new Object[]{new Integer(handles[0])}); return (valb != null ? new String(valb).trim() : null); } private static Map<String, String> readStringValues(Preferences root, int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { HashMap<String, String> results = new HashMap<String, String>(); int[] handles = (int[]) regOpenKey.invoke(root, new Object[]{ new Integer(hkey), toCstr(key), new Integer(KEY_READ)}); if (handles[1] != REG_SUCCESS) { return null; } int[] info = (int[]) regQueryInfoKey.invoke(root, new Object[]{new Integer(handles[0])}); int count = info[0]; // count int maxlen = info[3]; // value length max for (int index = 0; index < count; index++) { byte[] name = (byte[]) regEnumValue.invoke(root, new Object[]{ new Integer(handles[0]), new Integer(index), new Integer(maxlen + 1)}); String value = readString(hkey, key, new String(name)); results.put(new String(name).trim(), value); } regCloseKey.invoke(root, new Object[]{new Integer(handles[0])}); return results; } private static List<String> readStringSubKeys(Preferences root, int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { List<String> results = new ArrayList<String>(); int[] handles = (int[]) regOpenKey.invoke(root, new Object[]{ new Integer(hkey), toCstr(key), new Integer(KEY_READ) }); if (handles[1] != REG_SUCCESS) { return null; } int[] info = (int[]) regQueryInfoKey.invoke(root, new Object[]{new Integer(handles[0])}); int count = info[0]; // Fix: info[2] was being used here with wrong results. Suggested by davenpcj, confirmed by Petrucio int maxlen = info[3]; // value length max for (int index = 0; index < count; index++) { byte[] name = (byte[]) regEnumKeyEx.invoke(root, new Object[]{ new Integer(handles[0]), new Integer(index), new Integer(maxlen + 1) }); results.add(new String(name).trim()); } regCloseKey.invoke(root, new Object[]{new Integer(handles[0])}); return results; } private static int[] createKey(Preferences root, int hkey, String key) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { return (int[]) regCreateKeyEx.invoke(root, new Object[]{new Integer(hkey), toCstr(key)}); } private static void writeStringValue(Preferences root, int hkey, String key, String valueName, String value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { int[] handles = (int[]) regOpenKey.invoke(root, new Object[]{ new Integer(hkey), toCstr(key), new Integer(KEY_ALL_ACCESS)}); regSetValueEx.invoke(root, new Object[]{ new Integer(handles[0]), toCstr(valueName), toCstr(value) }); regCloseKey.invoke(root, new Object[]{new Integer(handles[0])}); } // utility private static byte[] toCstr(String str) { byte[] result = new byte[str.length() + 1]; for (int i = 0; i < str.length(); i++) { result[i] = (byte) str.charAt(i); } result[str.length()] = 0; return result; } }
  19. İlgili hata genelde kayıt için gönderilen verilerin veri tabanında kayıt türü (int ,varchar vs) uyumsuzluğu veya karakter uzunluğunu aşımında ortaya çıkıyor.Kayıt işlemi yaparken gönderdiğin değerleri kontrol edersen tek tek hangi alan adında sorun yaşadığını çözebilirsin.Yine de çözemezsen projeyi paylaş ilgilenecek arkadaşlar olur.
  20. veri tabanı tablo ve alan özelliklerini paylaşabilir misin acaba?
  21. @lord_figo18 https://forum.xda-developers.com/nokia-3/development/nokia-3-official-firmware-india-uae-t3674320 linki dene.Denediğin linkleri de yazarsan boşuna aynı sayfayla uğraşmayız.Bi de bunlar var .https://easy-firmware.com/index.php?a=downloads&amp;b=folder&amp;id=36512 https://drive.google.com/uc?id=1-Hfld78KXu8ujeqJ5R9RFJhuv38jLrja&amp;export=download şifre:fIrmwaRe27 https://forum.xda-developers.com/general/general/tool-unpack-repack-nb0-rom-t3495091
  22. @lord_figo18 adb üzerinden frp bypass etmeyi deneyebilirsin.Çok yöntem vs var umarım çabucak çözersin https://frpfix.blogspot.com/2018/03/remove-frp-via-adb-command.html veya https://blog.sombex.com/2018/01/all-adb-and-fastboot-commands-to-remove-frp-lock-on-android-phones.html
  23. @abdulhey_ Annemde kalp kapağı kireçlenmesi var ve bu kireç sürekli artıyor ve bunun ilacı yok(Kireçlenmeyi önleyen veya azaltan). Tv de İbrahim SARAÇOĞLU nun kireçlenmeye karlı anlattığı kürü denedik ve kireçlenme minimum seviyeye indi. 2,5 aya kadar istersen senin rahatsızlığın için de kür önerisi var deneyebilirsin.Umarım faydalı olur bu sıkıntıdan kurtulursun.
×
×
  • Create New...